/* ==========================================================================
   Tropfen · inovy.dev/tropfen
   Self-contained stylesheet for every page under /tropfen/** (landing EN/TR,
   privacy, terms, support, delete-account, add). No dependency on /styles.css.

   Design DNA (from the app): sunflower yellow ground, near-black ink camera
   UI, pastel lavender / mint / peach stages, pills everywhere, big radii,
   Plus Jakarta Sans with a white "marker" highlight on key words.
   ========================================================================== */

/* ---- Fonts (local, latin + latin-ext for Turkish) ---------------------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-800.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url('/assets/fonts/plus-jakarta-sans-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- Design tokens ------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Brand constants: never change with theme */
  --yellow: #F7D867;
  --yellow-hover: #EAB308;
  --yellow-deep: #E8C64A;      /* the darker wedge behind the phone */
  --ink-900: #16151A;          /* phone / camera UI, text on yellow */
  --white: #FFFFFF;
  --lavender: #CDD0FB;
  --mint: #C3E6DD;
  --peach: #F4E3D8;
  --violet: #4A4AC9;           /* small labels on lavender */
  --again: #F6D3D1;            /* SRS grade pills, as in the app */
  --hard: #EEE4A3;
  --gotit: #C3E6DD;

  /* Theme tokens (light) */
  --bg: #F4F3F8;
  --surface: #FFFFFF;
  --subtle: #ECEAF2;
  --ink: #16151A;
  --muted: #686576;
  --border: #E6E4EE;
  --stage-lav: var(--lavender);
  --stage-peach: var(--peach);
  --stage-mint: var(--mint);
  --pill-bg: rgba(255, 255, 255, 0.62);
  --btn-bg: var(--ink-900);
  --btn-ink: #FFFFFF;
  --show-moon: inline-block;
  --show-sun: none;
  --shadow-sm: 0 2px 8px rgba(22, 21, 26, 0.05);
  --shadow-md: 0 16px 40px -12px rgba(22, 21, 26, 0.18);
  --shadow-lg: 0 40px 80px -24px rgba(22, 21, 26, 0.35);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;

  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

/* Dark theme: system preference (unless the toggle forced light) ... */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #16151A;
    --surface: #211F28;
    --subtle: #2A2833;
    --ink: #F8F7FC;
    --muted: #A39FAF;
    --border: #2D2B38;
    --stage-lav: #2B2D44;
    --stage-peach: #3B2E28;
    --stage-mint: #223832;
    --pill-bg: rgba(255, 255, 255, 0.08);
    --btn-bg: var(--yellow);
    --btn-ink: var(--ink-900);
    --show-moon: none;
    --show-sun: inline-block;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.6);
  }
}
/* ... and the explicit toggle */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16151A;
  --surface: #211F28;
  --subtle: #2A2833;
  --ink: #F8F7FC;
  --muted: #A39FAF;
  --border: #2D2B38;
  --stage-lav: #2B2D44;
  --stage-peach: #3B2E28;
  --stage-mint: #223832;
  --pill-bg: rgba(255, 255, 255, 0.08);
  --btn-bg: var(--yellow);
  --btn-ink: var(--ink-900);
  --show-moon: none;
  --show-sun: inline-block;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.6);
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow-hover); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.container { width: min(680px, calc(100% - 40px)); margin: 12vh auto 80px; text-align: center; }

.skip-link {
  position: absolute; top: -100px; left: 20px; z-index: 100;
  padding: 10px 16px; border-radius: 99px;
  background: var(--ink-900); color: var(--white); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Marker highlights: white on yellow (hero) and yellow on page (chapters) */
.mark, .mark-y {
  display: inline;
  padding: 0.02em 0.18em;
  border-radius: 0.28em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: var(--ink-900);
}
.mark { background: var(--white); }
.mark-y { background: var(--yellow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); flex: none; }

.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }

/* ---- Buttons ------------------------------------------------------------ */
.btn, .app-store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 99px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s ease;
}
.btn:hover, .app-store-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(22, 21, 26, 0.45); }
.btn:active, .app-store-btn:active { transform: translateY(0) scale(0.98); }
.btn svg, .app-store-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
/* On a yellow ground the button is always ink, in both themes */
.on-yellow .btn, .on-yellow .app-store-btn { background: var(--ink-900); color: var(--white); }
.on-yellow .btn:hover, .on-yellow .app-store-btn:hover { box-shadow: 0 16px 32px -10px rgba(22, 21, 26, 0.5); }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 76px;
  padding-inline: max(20px, calc((100% - 1140px) / 2));
}
.tropfen-brand-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease);
}
.tropfen-brand-logo:hover { transform: translateY(-1px); }
.tropfen-brand-logo img { width: 28px; height: 28px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 10px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-size: 14px; font-weight: 700; text-decoration: none; color: var(--muted); border-radius: 99px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--ink); background: var(--subtle); }
.language-switch, .theme-toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.3s var(--ease), border-color 0.2s ease;
}
.language-switch:hover, .theme-toggle-btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.theme-toggle-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle-btn .ico-moon { display: var(--show-moon); }
.theme-toggle-btn .ico-sun { display: var(--show-sun); }
.theme-toggle-btn.theme-toggle-animated svg { animation: spinIn 0.45s var(--ease); }

/* Landing page header sits on the yellow stage */
.tropfen-landing .site-header { background: var(--yellow); color: var(--ink-900); }
.tropfen-landing .nav-link { color: rgba(22, 21, 26, 0.72); }
.tropfen-landing .nav-link:hover { color: var(--ink-900); background: rgba(255, 255, 255, 0.45); }
.tropfen-landing .language-switch, .tropfen-landing .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.55); border-color: transparent; color: var(--ink-900);
}
.tropfen-landing .language-switch:hover, .tropfen-landing .theme-toggle-btn:hover { background: var(--white); border-color: transparent; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--yellow); color: var(--ink-900);
}
/* The darker wedge from the App Store artwork */
.hero::before {
  content: ''; position: absolute; right: 0; bottom: 0; width: 52%; height: 78%;
  background: var(--yellow-deep); opacity: 0.55;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: stretch;
  padding-top: 40px;
}
.hero-copy { align-self: center; padding: 24px 0 88px; }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.55);
  font-size: 13px; font-weight: 700;
}
.hero-eyebrow img { width: 18px; height: 18px; }
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.04; letter-spacing: -0.035em;
  isolation: isolate; /* lets the marker sit under the previous line's descenders */
}
.hero h1 .mark { position: relative; z-index: -1; }
html[lang="tr"] .hero h1 { font-size: clamp(36px, 4.9vw, 62px); } /* Turkish runs longer */
.hero h1 .mark { animation: markIn 0.7s var(--ease) 0.5s both; background: linear-gradient(var(--white), var(--white)) no-repeat 0 0 / 0% 100%; }
.hero .lede { color: rgba(22, 21, 26, 0.78); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 34px; }
.hero-subnote { font-size: 13px; font-weight: 600; color: rgba(22, 21, 26, 0.7); }

.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  animation: rise 1s var(--ease) 0.2s both;
}

/* The CSS-built camera phone */
.phone {
  position: relative; width: 300px; height: 610px; margin-bottom: -70px; flex: none;
  padding: 12px; border-radius: 48px; background: var(--ink-900);
  box-shadow: 0 50px 100px -30px rgba(22, 21, 26, 0.55);
}
.phone-screen {
  height: 100%; border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 18px 14px 14px; background: #1B1A22; color: var(--white);
}
.cam-top { display: flex; align-items: center; justify-content: space-between; }
.cam-ic {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); color: var(--ink-900);
}
.cam-ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cam-ic--dark { background: #2A2833; color: var(--white); }
.cam-lang {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px;
  background: #2A2833; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.cam-lang i { width: 7px; height: 7px; border-radius: 50%; background: #34C77B; }
.cam-hint { margin: 10px 0 0; text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, 0.62); }
.cam-view { position: relative; flex: 1; min-height: 120px; }
.cam-view::before, .cam-view::after {
  content: ''; position: absolute; bottom: 0; border-radius: 60px 60px 20px 20px;
  background: #24232C; filter: blur(8px);
}
.cam-view::before { left: 26%; width: 76px; height: 72%; }
.cam-view::after { left: 56%; width: 56px; height: 52%; opacity: 0.8; }
.cam-sub {
  position: relative; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 4px;
  min-height: 74px; padding: 12px 14px; border-radius: 22px;
  border: 2px solid var(--yellow); background: rgba(255, 255, 255, 0.07);
  font-size: 14.5px; font-weight: 700; line-height: 1.35; text-align: center;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.cam-sub.out { opacity: 0; transform: translateY(6px); }
.cam-sub .w { padding: 1px 5px; border-radius: 7px; transition: background-color 0.25s ease, color 0.25s ease; }
.cam-sub .w.on { background: var(--yellow); color: var(--ink-900); animation: tap 0.9s var(--ease); }
.cam-detected {
  display: inline-flex; align-items: center; gap: 6px; align-self: center;
  margin-top: 10px; padding: 7px 12px; border-radius: 99px;
  background: var(--yellow); color: var(--ink-900); font-size: 11px; font-weight: 700;
}
.cam-detected svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cam-seg {
  display: inline-flex; gap: 2px; align-self: center; margin-top: 14px; padding: 4px; border-radius: 99px; background: #2A2833;
}
.cam-seg span { padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.cam-seg .on { background: var(--white); color: var(--ink-900); }
.cam-shutter { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 10px; }
.cam-chip {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--lavender); color: var(--violet); font-size: 10.5px; font-weight: 800;
}
.cam-shot {
  width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--white); display: grid; place-items: center;
}
.cam-shot::before { content: ''; grid-area: 1 / 1; width: 50px; height: 50px; border-radius: 50%; background: var(--white); }
.cam-shot svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: var(--ink-900); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; z-index: 1; }

/* Floating word card beside the phone (the "Tap a word" sheet) */
.wordcard {
  position: absolute; right: calc(50% - 150px - 118px); bottom: 190px; width: 226px;
  padding: 16px 16px 14px; border-radius: 22px;
  background: var(--lavender); color: var(--ink-900);
  box-shadow: 0 30px 60px -20px rgba(22, 21, 26, 0.45);
  opacity: 0; transform: translateY(14px) scale(0.96);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.wordcard.show { opacity: 1; transform: none; }
.wc-form { font-size: 11px; font-weight: 700; color: var(--violet); }
.wc-lemma { margin-top: 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.wc-def { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wc-chips span { padding: 3px 9px; border-radius: 99px; background: var(--white); font-size: 10.5px; font-weight: 700; }
.wc-save {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 14px; border-radius: 99px;
  background: var(--ink-900); color: var(--white); font-size: 12px; font-weight: 700;
}
.wc-sound {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white);
}
.wc-sound svg { width: 14px; height: 14px; fill: var(--ink-900); }

/* ---- Sections ----------------------------------------------------------- */
.sec { padding: 96px 0 0; }
.sec h2 { font-size: clamp(30px, 4vw, 48px); }
.sec-head { max-width: 680px; }

/* Screenshot rail */
.rail-sec { padding-top: 104px; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rail-nav { display: flex; gap: 8px; flex: none; }
.rail-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ease), opacity 0.2s ease;
}
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail-btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }
.rail-btn:disabled { opacity: 0.35; cursor: default; transform: none; background: var(--surface); color: var(--ink); }
.rail {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  padding: 8px max(20px, calc((100% - 1140px) / 2)) 24px;
  scroll-padding-inline: max(20px, calc((100% - 1140px) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging img { pointer-events: none; }
.shot { flex: 0 0 272px; margin: 0; scroll-snap-align: start; }
.shot-img {
  aspect-ratio: 1290 / 2796; border-radius: 30px; overflow: hidden;
  background: var(--subtle); border: 1px solid var(--border); box-shadow: var(--shadow-md);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.shot:hover .shot-img { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.shot figcaption { margin-top: 14px; padding: 0 6px; }
.shot b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.shot span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.shot:nth-child(2) { --d: 0.06s; } .shot:nth-child(3) { --d: 0.12s; } .shot:nth-child(4) { --d: 0.18s; }
.shot:nth-child(5) { --d: 0.24s; } .shot:nth-child(6) { --d: 0.3s; } .shot:nth-child(7) { --d: 0.36s; }

/* Chapters: pastel stages that hold a cropped phone */
.chapters { padding-top: 80px; display: grid; gap: 24px; }
.stage {
  --pad: clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch;
  padding: var(--pad) var(--pad) 0;
}
.stage--lav { background: var(--stage-lav); }
.stage--peach { background: var(--stage-peach); }
.stage--ink { background: var(--ink-900); border: 1px solid rgba(255, 255, 255, 0.08); color: #F8F7FC; --muted: rgba(248, 247, 252, 0.72); --pill-bg: rgba(255, 255, 255, 0.08); --border: rgba(255, 255, 255, 0.1); }
.stage-copy { align-self: center; padding-bottom: var(--pad); }
.stage-copy p { margin-top: 18px; max-width: 480px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.stage--ink .eyebrow { color: rgba(248, 247, 252, 0.72); }
.stage-copy .mark-y { color: var(--ink-900); }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.points li {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 99px;
  background: var(--pill-bg); font-size: 13px; font-weight: 700;
}
.points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; }
.stage-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.stage--peach .stage-visual { justify-content: flex-end; }

/* Crop the real App Store screenshot down to its phone (artwork is templated:
   phone spans x 16-84 % and starts at y 31 %), then let it rise from the bottom edge. */
.crop {
  width: min(300px, 100%); aspect-ratio: 0.46; overflow: hidden; flex: none;
  border-radius: 44px 44px 0 0; box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.crop img { width: 146.5%; max-width: none; height: auto; margin: -99.2% 0 0 -23.3%; }
.stage:hover .crop { transform: translateY(-6px); }

/* Flip card (chapter 02): lavender word on the front, its scene on the back */
.flip {
  position: absolute; left: 0; bottom: 22%; width: 236px; aspect-ratio: 236 / 190; z-index: 2;
  perspective: 1200px; cursor: pointer; border: 0; padding: 0; background: none; text-align: left;
}
.flip-inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 0.8s var(--ease);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: block; padding: 18px; border-radius: 22px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  color: var(--ink-900); box-shadow: 0 30px 60px -20px rgba(22, 21, 26, 0.45);
}
.face > span { display: block; }
.face--front { background: var(--lavender); }
.face--back { background: var(--peach); transform: rotateY(180deg); }
.face-tags { display: flex; gap: 6px; }
.face-tags span { padding: 3px 9px; border-radius: 99px; background: var(--white); font-size: 10.5px; font-weight: 700; }
.face-word { margin-top: 10px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.face-def { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.face-forms { margin-top: 10px; font-size: 11px; font-weight: 700; color: var(--violet); }
.face-src { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #9A6B4F; }
.face-src svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.face-line { margin-top: 12px; font-size: 17px; font-weight: 700; line-height: 1.3; }
.face-line .mark { padding: 0 0.2em; }
.face-trans { margin-top: 8px; font-size: 12.5px; color: rgba(22, 21, 26, 0.7); }
.face-hint { position: absolute; right: 16px; bottom: 14px; font-size: 10.5px; font-weight: 700; color: rgba(22, 21, 26, 0.5); }

/* SRS grade strip (chapter 03) */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; max-width: 420px; }
.grade { padding: 14px 10px; border-radius: 18px; text-align: center; color: var(--ink-900); }
.grade b { display: block; font-size: 15px; font-weight: 800; }
.grade span { font-size: 12px; font-weight: 600; opacity: 0.75; }
.grade--again { background: var(--again); color: #B8372E; }
.grade--hard { background: var(--hard); color: #7A6A12; }
.grade--gotit { background: var(--gotit); color: #1F6B55; }
.progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 420px; font-size: 13px; font-weight: 700; }
.progress i { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.progress i::before { content: ''; display: block; width: 42%; height: 100%; border-radius: 99px; background: var(--yellow); transform-origin: left; animation: grow 1.2s var(--ease) both; }

/* ---- Pro ---------------------------------------------------------------- */
.pro-sec { padding-top: 24px; }
.pro {
  --pad: clamp(28px, 5vw, 72px);
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: var(--pad);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  background: var(--yellow); color: var(--ink-900);
}
.pro::before {
  content: ''; position: absolute; right: 0; bottom: 0; width: 46%; height: 100%;
  background: var(--yellow-deep); opacity: 0.5; clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.pro > * { position: relative; }
.pro .eyebrow { color: rgba(22, 21, 26, 0.7); }
.pro .eyebrow::before { background: var(--ink-900); }
.pro p { margin-top: 18px; max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(22, 21, 26, 0.78); }
.pro-list { display: grid; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.pro-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.pro-list li::before {
  content: ''; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316151A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.pro-note { margin-top: 16px !important; font-size: 13px !important; color: rgba(22, 21, 26, 0.65) !important; }
.pro-visual { display: flex; justify-content: center; align-items: center; min-height: 300px; }
.cardstack { position: relative; width: 190px; height: 240px; }
.cs {
  position: absolute; inset: 0; border-radius: 28px; display: grid; place-items: center;
  font-size: 56px; font-weight: 800; letter-spacing: -0.04em;
  box-shadow: 0 30px 60px -20px rgba(22, 21, 26, 0.5);
  transition: transform 0.6s var(--ease);
}
.cs-1 { background: var(--white); color: var(--ink-900); transform: rotate(-9deg) translate(-16px, 8px); }
.cs-2 { background: var(--ink-900); color: var(--yellow); transform: rotate(5deg) translate(10px, -6px); }
.pro:hover .cs-1 { transform: rotate(-13deg) translate(-26px, 12px); }
.pro:hover .cs-2 { transform: rotate(7deg) translate(16px, -12px); }
.pro-pill {
  position: absolute; top: -14px; right: -22px; padding: 8px 14px; border-radius: 99px;
  background: var(--white); color: var(--ink-900); font-size: 12px; font-weight: 800; letter-spacing: 0.12em;
  box-shadow: var(--shadow-md);
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq-sec { padding-top: 104px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head .eyebrow::before { display: none; }
.faq-list, .faq-accordion { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface);
  padding: 0 22px; transition: border-color 0.2s ease, box-shadow 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--muted); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 700; line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316151A' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { padding: 0 0 20px; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--muted); max-width: 64ch; }
.faq-item p a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---- End CTA & footer --------------------------------------------------- */
.cta-end { padding: 112px 0 104px; text-align: center; }
.cta-end img { width: 64px; height: 64px; margin: 0 auto 24px; }
.cta-end h2 { font-size: clamp(32px, 4.5vw, 52px); }
.cta-end .hero-cta { justify-content: center; margin-top: 30px; }
.cta-end .hero-subnote { color: var(--muted); }

.site-footer {
  padding: 36px max(20px, calc((100% - 1140px) / 2)) 48px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); }
.footer-brand .tropfen-brand-logo { font-size: 18px; gap: 8px; }
.footer-brand .tropfen-brand-logo img { width: 22px; height: 22px; border-radius: 6px; }
.footer-brand .by { font-size: 12px; font-weight: 500; color: var(--muted); }
.footer-brand .by a { font-weight: 700; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 4px; margin-top: 20px; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; margin-left: -12px; border-radius: 99px;
  text-decoration: none; color: var(--muted); font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.footer-links a + a { margin-left: 4px; }
.footer-links a:hover { color: var(--ink); background: var(--subtle); }

/* ---- Legal & utility pages --------------------------------------------- */
.legal-main.wrap { width: min(800px, calc(100% - 40px)); padding: 56px 0 96px; }
.legal-head { margin-bottom: 40px; }
.legal-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
.legal-head .lede { margin-top: 16px; }
.legal-date { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.prose { display: grid; gap: 14px; }
.prose section {
  padding: 26px 30px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
}
.prose h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; }
.prose p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--ink); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.contact-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  margin: 14px 0; padding: 22px 28px; border-radius: 24px;
  background: var(--yellow); color: var(--ink-900); font-weight: 700;
}
.contact-callout a { color: var(--ink-900); text-decoration-thickness: 2px; }
.legal-main .faq-list { margin-bottom: 14px; }

.container img { margin: 0 auto 24px; width: 56px; height: 56px; border-radius: 16px; }
.container h1 { font-size: clamp(32px, 5vw, 44px); }
.container p { margin-top: 18px; font-size: 17px; color: var(--muted); }
.container p a:not(.app-store-btn) { color: var(--ink); font-weight: 700; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

/* ---- Scroll reveal & keyframes ----------------------------------------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes markIn { to { background-size: 100% 100%; } }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(247, 216, 103, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(247, 216, 103, 0); } }
@keyframes spinIn { from { transform: rotate(-90deg) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .wordcard { right: calc(50% - 150px - 40px); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-copy { padding: 16px 0 48px; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero::before { width: 70%; height: 55%; }
  .phone { width: 280px; height: 570px; margin-bottom: -80px; }
  .wordcard { right: calc(50% - 140px - 40px); bottom: 150px; width: 210px; }
  .stage, .pro { grid-template-columns: 1fr; }
  .stage-copy { padding-bottom: 0; }
  .stage-visual { margin-top: 40px; }
  .stage--peach .stage-visual { justify-content: center; }
  .flip { position: static; width: min(300px, 100%); margin: 0 auto 28px; aspect-ratio: auto; height: 190px; }
  .stage--peach .stage-visual { flex-direction: column; align-items: center; }
  .pro-visual { min-height: 260px; }
}
@media (max-width: 760px) {
  .sec { padding-top: 72px; }
  .rail-sec { padding-top: 80px; }
  .chapters { padding-top: 56px; }
  .faq-sec { padding-top: 80px; }
  .cta-end { padding: 88px 0 80px; }
  .site-header { height: 68px; }
  .theme-toggle-btn { padding: 0 11px; }
  .theme-toggle-btn .tt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .shot { flex-basis: 232px; }
  .grades { max-width: none; }
}
@media (max-width: 480px) {
  .wrap, .legal-main.wrap, .container { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; }
  .site-footer { padding-inline: 16px; }
  .rail { padding-inline: 16px; scroll-padding-inline: 16px; }
  .site-header nav { gap: 6px; }
  .nav-link { padding: 0 10px; font-size: 13px; }
  .language-switch { padding: 0 11px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); }
  .hero-cta .app-store-btn { width: 100%; }
  .phone { width: 260px; height: 530px; margin-bottom: -64px; }
  .wordcard { right: 0; bottom: 118px; width: 196px; }
  .wc-lemma { font-size: 22px; }
  .cam-lang { font-size: 10.5px; padding: 7px 10px; }
  .cam-hint { font-size: 9.5px; }
  .phone-screen { padding: 16px 12px 12px; }
  .prose section { padding: 22px 20px; }
  .contact-callout { padding: 20px; }
  .faq-item { padding: 0 16px; }
  .faq-item summary { font-size: 16px; }
}

/* ---- Reduced motion: everything static, nothing hidden ----------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .hero h1 .mark { background-size: 100% 100%; }
  .wordcard { opacity: 1; transform: none; }
}


/* Hover stability: elements that lift on hover keep a slightly larger, invisible hit area
   so the pointer never slips out from under them at the edge and re-triggers the hover. */
.btn { position: relative; }
.btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.app-store-btn { position: relative; }
.app-store-btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.tropfen-brand-logo { position: relative; }
.tropfen-brand-logo::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.language-switch { position: relative; }
.language-switch::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.theme-toggle-btn { position: relative; }
.theme-toggle-btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }
.rail-btn { position: relative; }
.rail-btn::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; }

/* Store buttons are "coming soon" pills until launch: same shape, no link affordance. */
.tropfen-page span.app-store-btn, span.app-store-btn { cursor: default; background: transparent; color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--ink) 35%, transparent); box-shadow: none; }
.tropfen-page span.app-store-btn::before, span.app-store-btn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow, #F7D867); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow, #F7D867) 40%, transparent); }
.tropfen-page span.app-store-btn:hover, span.app-store-btn:hover { transform: none; box-shadow: none; }

.tropfen-page { --store-ink: var(--ink, #16151A); --store-on: var(--bg, #F4F3F8); --store-badge: var(--yellow, #F7D867); --store-badge-on: #16151A; }
.tropfen-page .on-yellow .store-btn, .tropfen-page .hero .store-btn { --store-on: #F8F7FC; background: color-mix(in srgb, #16151A 78%, transparent); }
.tropfen-page .on-yellow .store-btn::after, .tropfen-page .hero .store-btn::after { background: #fff; color: #16151A; }

/* ===== Store buttons: two real-looking badges, faded until launch, "Soon" tag top-right ===== */
.store-btns { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.store-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--store-ink, #15141A) 72%, transparent); color: var(--store-on, #fff); cursor: default; user-select: none; }
.store-btn > svg { width: 24px; height: 24px; fill: currentColor; flex: none; opacity: .75; }
.store-btn > span { display: flex; flex-direction: column; line-height: 1.1; opacity: .8; }
.store-btn small { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.store-btn b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.store-btn::after { content: "Soon"; position: absolute; top: -10px; right: -8px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: var(--store-badge, #E95A3E); color: var(--store-badge-on, #fff); box-shadow: 0 6px 14px rgba(0,0,0,.18); }
html[lang="tr"] .store-btn::after { content: "Yakında"; }
.store-btns--sm .store-btn { min-height: 48px; padding: 6px 14px 6px 12px; border-radius: 14px; gap: 8px; }
.store-btns--sm .store-btn > svg { width: 20px; height: 20px; }
.store-btns--sm .store-btn small { font-size: 10px; }
.store-btns--sm .store-btn b { font-size: 15px; }
@media (max-width: 480px) { .store-btns { gap: 10px; } .store-btn { flex: 1 1 calc(50% - 5px); justify-content: center; padding-left: 10px; padding-right: 10px; min-height: 52px; } .store-btn small { white-space: nowrap; } .store-btn b { font-size: 15px; } .store-btn::after { right: -4px; } }
