/* Laterland website: "Kolaj Defter" scrapbook look, matching the app. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Caveat"; src: url("../fonts/Caveat-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --paper: #FBF3E2; --paper-2: #F4EAD4; --card: #FFFDF7; --dot: #E3D6BB;
  --ink: #2A2521; --ink-2: #5E5246; --ink-3: #8A7C6C; --line: #E6DAC2;
  --teal: #237A70; --tomato: #C8452C; --mustard: #F2B23E; --plum: #6E4390; --sky: #3E8FB0;
  --night: #1F2A44; --shadow: 0 1px 2px rgba(42,37,33,.08), 0 12px 32px -12px rgba(42,37,33,.28);
  --radius: 22px; --wrap: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1E1A16; --paper-2: #26211C; --card: #2B2520; --dot: #3A3229;
    --ink: #F2E9DA; --ink-2: #CDBFAC; --ink-3: #9C8E7C; --line: #3D352C;
    --tomato: #E8694F; --teal: #4FB3A6; --plum: #A57CC7;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -14px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1E1A16; --paper-2: #26211C; --card: #2B2520; --dot: #3A3229;
  --ink: #F2E9DA; --ink-2: #CDBFAC; --ink-3: #9C8E7C; --line: #3D352C;
  --tomato: #E8694F; --teal: #4FB3A6; --plum: #A57CC7;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background-color: var(--paper); color: var(--ink);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.2px); background-size: 20px 20px;
  font: 500 17px/1.6 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--tomato); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hand { font-family: "Caveat", "Bradley Hand", cursive; font-weight: 700; letter-spacing: -.01em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1.5px dashed var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.brand span { font-family: "Caveat", cursive; font-weight: 700; font-size: 32px; line-height: 1; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline wavy var(--tomato); text-underline-offset: 6px; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; font-weight: 800; font-size: 13px; }
.lang a { padding: 5px 11px; color: var(--ink); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 12px; padding: 7px 12px; font: 800 14px "DM Sans", sans-serif; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 24px 24px; background: var(--paper); border-bottom: 1.5px dashed var(--line); }
  .nav.open { display: flex; }
}

/* ---------- buttons & stickers ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--tomato); }
.btn-primary:hover { color: var(--paper); transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--tomato); }
.btn-ghost { color: var(--ink); background: var(--card); }
.btn-ghost:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.btn .stack { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.sticker { display: inline-block; padding: 5px 13px; border-radius: 999px; font-weight: 800; font-size: 14px; color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.18); transform: rotate(var(--r, -3deg)); white-space: nowrap; }
.s-teal { background: #237A70; } .s-tomato { background: #C8452C; } .s-mustard { background: #F2B23E; color: #2A2521; }
.s-plum { background: #6E4390; } .s-ink { background: #2A2521; } .s-sky { background: #2F7E9E; }
.tape { position: absolute; width: 92px; height: 26px; background: rgba(242,178,62,.78); top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.08); z-index: 3; }
.tape.t-teal { background: rgba(35,122,112,.55); } .tape.t-pink { background: rgba(232,138,160,.65); } .tape.t-blue { background: rgba(62,143,176,.55); }
.squiggle { display: block; width: 100%; max-width: 260px; height: 14px; margin-top: 2px; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--tomato); }

/* ---------- phone frame ---------- */
.phone { position: relative; width: 100%; max-width: 300px; border-radius: 44px; padding: 9px; background: #121212; box-shadow: 0 0 0 1.5px #3a3a3a inset, var(--shadow); }
.phone > img { width: 100%; height: auto; aspect-ratio: 1320/2868; object-fit: cover; border-radius: 36px; background: var(--paper-2); }
.phone > video { width: 100%; height: auto; aspect-ratio: 9/16; object-fit: cover; border-radius: 36px; background: #000; }
.phone::after { content: ""; position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
.phone.no-notch::after { display: none; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(56px, 8vw, 96px); line-height: .95; margin: 14px 0 8px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--tomato); }
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 34ch; margin: 18px 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-3); font-weight: 700; font-size: 14px; }
.hero .meta span::before { content: "✓ "; color: var(--teal); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { max-width: 320px; transform: rotate(2deg); z-index: 2; }
.hero-visual .polaroid { position: absolute; z-index: 1; }
.hero-visual .p1 { left: -30px; top: 70px; transform: rotate(-9deg); width: 160px; z-index: 3; }
.hero-visual .p2 { right: -30px; bottom: 60px; transform: rotate(8deg); width: 160px; z-index: 3; }
.hero-visual .sticker { position: absolute; z-index: 4; font-size: 15px; }
.hero-visual .h-s1 { left: 6px; bottom: 120px; --r: -8deg; }
.hero-visual .h-s2 { right: 10px; top: 60px; --r: 7deg; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual .p1, .hero-visual .p2 { display: none; }
}

.polaroid { background: var(--card); padding: 8px 8px 30px; border-radius: 4px; box-shadow: var(--shadow); position: relative; }
.polaroid img { border-radius: 2px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.polaroid figcaption { font-family: "Caveat", cursive; font-size: 20px; text-align: center; margin-top: 6px; color: var(--ink); line-height: 1; }

/* ---------- stat strip ---------- */
.strip { margin: 40px 0; }
.strip .card { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 40px 44px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.strip .big { font-family: "Caveat", cursive; font-size: clamp(54px, 7vw, 84px); line-height: .95; }
.strip .big b { color: var(--mustard); font-weight: 700; }
.strip p { margin: 0; font-size: 19px; color: #E8DCC8; max-width: 52ch; }
@media (max-width: 760px) { .strip .card { grid-template-columns: 1fr; gap: 16px; padding: 32px 26px; } }

/* ---------- sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(44px, 5.5vw, 64px); line-height: 1; margin: 8px 0 12px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 26px 24px 0; box-shadow: var(--shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 18px; right: 22px; font-family: "Caveat", cursive; font-size: 56px; line-height: 1; color: var(--line); }
.step h3 { font-size: 22px; margin: 0 0 6px; padding-right: 40px; }
.step p { color: var(--ink-2); margin: 0 0 22px; font-size: 16px; }
.step .phone { margin: auto auto -120px; max-width: 230px; }
.step { padding-bottom: 0; min-height: 520px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } .step .phone { margin-bottom: -160px; } .step { height: 560px; } }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1.5px dashed var(--line); }
.feature.flip .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; gap: 18px; position: relative; }
.feature-media .phone { max-width: 280px; }
.feature-media .phone:nth-child(2) { margin-top: 60px; }
.feature h3 { font-family: "Caveat", cursive; font-weight: 700; font-size: clamp(40px, 4.6vw, 54px); line-height: 1; margin: 10px 0 14px; }
.feature p { color: var(--ink-2); font-size: 18px; margin: 0 0 14px; }
.feature ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.feature li { padding-left: 30px; position: relative; color: var(--ink); }
.feature li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px; background: var(--mustard); transform: rotate(-8deg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 18px; }
.chips .sticker:nth-child(2n) { --r: 3deg; } .chips .sticker:nth-child(3n) { --r: -1deg; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { max-width: 230px; }
}

/* island showcase */
.island { background: linear-gradient(180deg, #2C6E8E 0%, #1F4F6C 100%); color: #F7F1E4; border-radius: 36px; padding: 64px 48px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.island.night { background: linear-gradient(180deg, #1A2340 0%, #0F1529 100%); }
.island .section-head p { color: #D9E6EC; }
.island .section-head h2 { color: #fff; }
.island .eyebrow { color: var(--mustard); }
.island-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; align-items: end; }
.island-grid figure { margin: 0; }
.island-grid figcaption { font-family: "Caveat", cursive; font-size: 26px; text-align: center; margin-top: 14px; color: #fff; }
.island-grid .phone { margin: 0 auto; max-width: 260px; }
.island-grid figure:nth-child(2) .phone { max-width: 290px; }
.districts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; justify-content: center; }
.districts .sticker { background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(#fff 1px, transparent 1.5px); background-size: 90px 90px; background-position: 13px 27px; }
@media (max-width: 900px) { .island { padding: 48px 22px; border-radius: 28px; } .island-grid { grid-template-columns: 1fr; } .island-grid figure:not(:nth-child(2)) { display: none; } }

/* privacy band */
.privacy-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.p-card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; color: #fff; }
.p-card h3 { margin: 0 0 6px; font-size: 19px; }
.p-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-band { grid-template-columns: 1fr; } }

.langs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.langs .sticker { font-size: 17px; padding: 8px 18px; }

.faq { max-width: 820px; margin: 0 auto; }
details { background: var(--card); border-radius: 18px; margin: 0 0 12px; box-shadow: 0 1px 2px rgba(42,37,33,.08); border: 1.5px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 800; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--tomato); font-weight: 700; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 22px 20px; color: var(--ink-2); }
details .a p { margin: 0 0 10px; }
details .a ol, details .a ul { margin: 0 0 10px; padding-left: 22px; }

.cta-final { text-align: center; padding: 90px 0 100px; }
.cta-final h2 { font-family: "Caveat", cursive; font-size: clamp(54px, 7vw, 88px); line-height: .95; margin: 0 0 14px; }
.cta-final p { color: var(--ink-2); font-size: 19px; margin: 0 auto 28px; max-width: 46ch; }
.cta-final img.icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 22px; box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { border-top: 1.5px dashed var(--line); padding: 40px 0 56px; color: var(--ink-3); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; font-size: 12.5px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- document pages (privacy / support) ---------- */
.doc-hero { padding: 56px 0 24px; }
.doc-hero h1 { font-family: "Caveat", cursive; font-size: clamp(54px, 7vw, 80px); line-height: .95; margin: 8px 0 12px; }
.doc-hero p { color: var(--ink-2); font-size: 19px; max-width: 60ch; margin: 0; }
.doc-hero .dates { margin-top: 16px; font-size: 14px; color: var(--ink-3); font-weight: 700; }
.doc { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding: 28px 0 80px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--card); border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 1px 2px rgba(42,37,33,.08); border: 1.5px solid var(--line); max-height: calc(100vh - 120px); overflow: auto; }
.toc h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 20px; font-size: 14px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--tomato); }
.prose { background: var(--card); border-radius: 26px; padding: 44px 48px; box-shadow: var(--shadow); min-width: 0; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; padding-top: 4px; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--paper-2); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.prose .summary { background: var(--paper-2); border-radius: 18px; padding: 22px 24px; margin: 0 0 28px; border: 1.5px dashed var(--line); }
.prose .summary h2 { margin: 0 0 10px; font-size: 20px; }
.prose .summary ul { margin: 0; }
.prose .note { border-left: 4px solid var(--mustard); padding: 10px 16px; background: var(--paper-2); border-radius: 0 12px 12px 0; }
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; max-height: none; }
  .prose { padding: 30px 22px; border-radius: 22px; }
}

.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 40px; }
.support-cards .p-card a.btn { margin-top: 14px; padding: 10px 16px; font-size: 14px; }
@media (max-width: 900px) { .support-cards { grid-template-columns: 1fr; } }
.faq-group { margin-bottom: 40px; }
.faq-group > h2 { font-family: "Caveat", cursive; font-size: 40px; margin: 0 0 14px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }  /* hidden only when JS runs */
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* keep grid children from forcing the page wider than the screen */
.hero .wrap > *, .feature > *, .steps > *, .doc > *, .island-grid > *, .strip .card > * { min-width: 0; }
@media (max-width: 900px) {
  .feature-media .phone { max-width: calc(50% - 9px); }
  .feature-media .phone:nth-child(2) { margin-top: 36px; }
  .hero .ctas .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 52px; }
  .phone { border-radius: 30px; padding: 6px; }
  .phone > img, .phone > video { border-radius: 25px; }
  .phone::after { top: 12px; height: 14px; }
  .section { padding: 52px 0; }
}
