/* Langbella website. Colours are the app's own (lib/core/constants/colors.dart,
   lib/core/theme/scene_palette.dart): the Home scene by day, the night scene in
   dark mode. Typeface: Figtree, the app's font, served from this site. */

@font-face { font-family: Figtree; src: url(/fonts/figtree-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(/fonts/figtree-800.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  --sky-top: #9cd2f2;
  --sky-mid: #c8e7f8;
  --horizon: #e6f4f6;
  --hill-far: #bcdcc6;
  --hill-far-shade: #afd3bb;
  --hill-near: #b4db93;
  --hill-near-shade: #a6d283;
  --meadow: #d3ebb4;
  --cloud: #ffffff;
  --cloud-shade: #e4f1f9;
  --ground: #f4f7ef;
  --ground-deep: #eaf0e2;
  --surface: #ffffff;
  --border: #e2e9da;
  --ink: #15362c;
  --text: #222222;
  --muted: #5b6660;
  --rose: #dd3157;
  --rose-press: #b92443;
  --rose-text: #c42a4c;
  --rose-tint: #fdecef;
  --leaf: #3fa34d;
  --leaf-text: #2e7a3d;
  --leaf-tint: #e7f4e5;
  --button: #111b17;
  --on-button: #ffffff;
  --bezel: #1f2724;
  --card-shadow: 0 1px 2px rgb(21 54 44 / 0.06), 0 18px 40px -18px rgb(21 54 44 / 0.28);
  --radius-card: 28px;
  --measure: 34rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #0f1b2b;
    --sky-mid: #152430;
    --horizon: #1c2d2e;
    --hill-far: #1d3130;
    --hill-far-shade: #1a2c2b;
    --hill-near: #233a2b;
    --hill-near-shade: #1f3427;
    --meadow: #243829;
    --cloud: #2a3a4a;
    --cloud-shade: #223140;
    --ground: #141a16;
    --ground-deep: #101511;
    --surface: #1c241f;
    --border: #2b3830;
    --ink: #eaf3ec;
    --text: #d9e2dc;
    --muted: #9eaca4;
    --rose: #e8466a;
    --rose-press: #f06a88;
    --rose-text: #ff8fa6;
    --rose-tint: #3a1f27;
    --leaf-text: #8fd59a;
    --leaf-tint: #1f3324;
    --button: #eaf3ec;
    --on-button: #101511;
    --bezel: #050807;
    --card-shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 40px -18px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sky-top: #0f1b2b; --sky-mid: #152430; --horizon: #1c2d2e;
  --hill-far: #1d3130; --hill-far-shade: #1a2c2b; --hill-near: #233a2b; --hill-near-shade: #1f3427; --meadow: #243829; --cloud: #2a3a4a; --cloud-shade: #223140;
  --ground: #141a16; --ground-deep: #101511; --surface: #1c241f; --border: #2b3830;
  --ink: #eaf3ec; --text: #d9e2dc; --muted: #9eaca4;
  --rose: #e8466a; --rose-press: #f06a88; --rose-text: #ff8fa6; --rose-tint: #3a1f27;
  --leaf-text: #8fd59a; --leaf-tint: #1f3324; --button: #eaf3ec; --on-button: #101511; --bezel: #050807;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.0625rem/1.6 Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rose-text); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: #fbd5dd; color: #15362c; }
button { font: inherit; color: inherit; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 24px 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-nav > a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; }
.top-nav > a:hover { background: rgb(255 255 255 / 0.45); }

.lang { position: relative; }
.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang summary::-webkit-details-marker { display: none; }
.lang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.lang li a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.lang li a:hover { background: var(--ground); }
.lang li a[aria-current] { font-weight: 800; color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang summary, :root:not([data-theme="light"]) .top-nav > a:hover { background: rgb(255 255 255 / 0.08); }
}

.suggest a {
  display: block;
  padding: 10px 24px;
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  background: var(--horizon);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.suggest a[hidden] { display: none; }

/* ---------- hero: the app's Home scene with a working player ---------- */

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--horizon) 100%);
}
.clouds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cloud polygon { fill: var(--cloud); }
.cloud .cloud-shade { fill: var(--cloud-shade); }
.cloud-far { opacity: 0.6; }
.hills { position: relative; display: block; width: 100%; height: clamp(70px, 9vw, 130px); margin: -40px 0 -1px; z-index: 1; }
.h-far { fill: var(--hill-far); }
.h-far-shade { fill: var(--hill-far-shade); }
.h-near { fill: var(--hill-near); }
.h-near-shade { fill: var(--hill-near-shade); }
.h-meadow { fill: var(--meadow); }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  align-items: end;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
.hero-copy { align-self: start; padding-top: clamp(24px, 9vh, 110px); }
.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.hero-body { margin-top: 22px; max-width: 30rem; font-size: 1.1875rem; line-height: 1.55; color: var(--ink); opacity: 0.85; }
.hero-note { margin-top: 14px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); opacity: 0.7; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.badge { display: block; line-height: 0; border-radius: 10px; }
.badge img { height: 52px; width: auto; }
.badge.is-soon { cursor: default; }
.app-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.app-tile img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 16px -6px rgb(21 54 44 / 0.45); }

/* The tree is the centrepiece (owner's pick 2026-11-12): the level-25 Home
   screen whose tree keeps its app size at the base and grows larger toward
   the top (scripts/hero_tree.py). The screen image holds the tree inside the
   screen (the top chips behind it); .hero-front holds the tree in front of
   the frame and the status bar, at screen points x -73, y -287, 506 x 481
   (printed by hero_tree.py). --f is one screen point. */
.hero-scene { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-stage {
  --f: min(0.82px, calc((100svh - 100px) / 990));
  --w: calc(var(--f) * 390 / 0.94);
  position: relative;
  margin: calc(var(--f) * 287 - var(--w) * 0.03 + 8px) 0 28px;
}
.phone.hero-phone {
  --w: calc(var(--f) * 390 / 0.94); /* .phone sets its own --w; the tree needs this one */
  z-index: 1;
  aspect-ratio: auto;
  height: calc(var(--f) * 844 + var(--w) * 0.06);
  box-shadow: 0 40px 60px -28px rgb(21 54 44 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}
.hero-phone .shot img { width: 100%; height: 100%; display: block; }
.hero-phone .status { position: absolute; inset: 0 0 auto 0; z-index: 2; }
.hero-front {
  position: absolute;
  z-index: 2;
  left: calc(var(--w) * 0.03 - var(--f) * 73);
  top: calc(var(--w) * 0.03 - var(--f) * 287);
  width: calc(var(--f) * 506);
  pointer-events: none;
}
.hero-front img { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage { animation: rise 900ms cubic-bezier(0.05, 0.7, 0.1, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-phone .status { color: #fff; }
}

/* ---------- features: two short sections, each with a working phone ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 24px 0;
}
.feature-pod { background: none; }
.feature-words { grid-template-columns: auto minmax(0, 1fr); }
.feature h2, .grow h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 15ch; }
.feature-copy > p, .grow > p { margin-top: 16px; max-width: 31rem; font-size: 1.125rem; line-height: 1.55; color: var(--muted); }
.feature-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.page-home .feature-pod { padding-top: 40px; }

/* Topic -> episode: what Create does, in one card. */
.create {
  margin-top: 28px;
  max-width: 26rem;
  padding: 18px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
}
.create-ask { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.create-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--ground);
  border: 1.5px solid var(--border);
  font-weight: 600;
  color: var(--ink);
}
.caret { width: 2px; height: 1.2em; margin-left: 2px; background: var(--rose); }
@media (prefers-reduced-motion: no-preference) { .create.is-typing .caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } } }
.create.is-done .caret { display: none; }
.create-status { margin-top: 12px; font-size: 0.9375rem; color: var(--muted); }
.create-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px 10px 10px;
  border: 0;
  border-radius: 16px;
  background: var(--ground);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, opacity 300ms ease;
}
.create-result:hover { transform: translateY(-1px); }
.create:not(.is-done) .create-result { opacity: 0; pointer-events: none; }
.create-result .mini-cover { --w: 390px; width: 46px; height: 46px; font-size: 0.6875rem; }
.create-result-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.create-result-text small { font-size: 0.8125rem; color: var(--muted); }
.create-result-text b { font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.create-play { width: 40px; height: 40px; border-radius: 50%; background: var(--button); display: grid; place-items: center; }
.create-play svg { width: 18px; height: 18px; fill: var(--on-button); }
.create-play .i-pause { display: none; }
/* Generate: nothing happens until the visitor taps it (owner 2026-11-12). */
.create:not(.is-typed) .gen, .create.is-working .gen, .create.is-done .gen { display: none; }
.gen-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; font: inherit; font-weight: 800; font-size: 1.0625rem; box-shadow: 0 10px 24px -10px rgb(221 49 87 / 0.7); cursor: pointer; transition: transform 160ms ease, background 160ms ease; }
.gen-btn:hover { background: var(--rose-press); transform: translateY(-1px); }
.gen-btn:active { transform: scale(0.98); }
.gen-btn .i-sparkle { width: 20px; height: 20px; fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .create.is-typed .gen-btn { animation: gen-in 360ms cubic-bezier(0.2, 0, 0, 1) both, gen-pulse 2.4s ease-in-out 1s 2; }
  @keyframes gen-in { from { opacity: 0; transform: translateY(6px); } }
  @keyframes gen-pulse { 50% { box-shadow: 0 10px 24px -10px rgb(221 49 87 / 0.7), 0 0 0 8px rgb(221 49 87 / 0.14); } }
}
.gen-note { margin-top: 8px; text-align: center; font-size: 0.8125rem; color: var(--muted); }
.gen-work { margin-top: 14px; }
.gen-steps { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.gen-steps li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--muted); }
.gen-steps b { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; font-size: 0.75rem; background: var(--ground-deep); color: var(--muted); }
.gen-steps li.is-now { color: var(--ink); font-weight: 700; }
.gen-steps li.is-now b { background: var(--rose-tint); color: var(--rose-text); }
.gen-steps li.is-done { color: var(--ink); }
.gen-steps li.is-done b { background: var(--leaf); color: #fff; font-size: 0; }
.gen-steps li.is-done b::after { content: ''; width: 9px; height: 5px; margin-top: -4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.gen-bar { display: block; height: 8px; margin-top: 14px; border-radius: 8px; background: var(--ground-deep); overflow: hidden; }
.gen-bar i { display: block; height: 100%; width: var(--g, 0%); border-radius: 8px; background: var(--rose); transition: width 900ms linear; }
.create:not(.is-done) .create-result { display: none; }
@media (prefers-reduced-motion: no-preference) { .create.is-done .create-result { animation: gen-in 360ms cubic-bezier(0.2, 0, 0, 1) both; } }
/* The player waits for the episode: blurred lines and a Generate button. */
.player-wait { position: absolute; inset: 22% 0 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: rgb(244 247 239 / 0.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); font: inherit; color: #15362c; cursor: pointer; }
.player-wait .i-sparkle { width: 2.4em; height: 2.4em; padding: 0.55em; border-radius: 50%; background: #dd3157; fill: #fff; box-shadow: 0 10px 24px -10px rgb(221 49 87 / 0.8); }
.player-wait b { font-size: 1.05em; font-weight: 800; }
.player-wait small { font-size: 0.8em; color: #5b6660; }
.phone-live.is-ready .player-wait { display: none; }
.phone-live:not(.is-ready) ~ .callout { opacity: 0; }

/* Growth: a real sequence, so it is labelled by level. */
.grow { max-width: 1080px; margin: 0 auto; padding: clamp(80px, 10vw, 128px) 24px 0; text-align: center; }
.grow h2, .grow > p { margin-left: auto; margin-right: auto; }
.growth {
  list-style: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: clamp(190px, 26vw, 300px);
  margin: 40px 0 0;
  padding: 0 10px;
  background: linear-gradient(180deg, transparent calc(100% - 44px), var(--meadow) calc(100% - 44px));
  border-radius: 0 0 50% 50% / 0 0 44px 44px;
}
/* Each tree is a share (--f) of one unit: the column height, or 1.89x the
   column width when that is smaller (the widest crown, level 25, then just
   fits). Sizing by height alone let narrow columns squeeze the bushy trees,
   so the thin level-10 sapling ended up tallest on phones. */
.growth li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; container-type: size; }
.growth img { height: calc(var(--f) * min(100cqh, 189cqw)); width: auto; object-fit: contain; object-position: bottom; }
.growth li:nth-child(1) { --f: 0.22; }
.growth li:nth-child(2) { --f: 0.36; }
.growth li:nth-child(3) { --f: 0.5; }
.growth li:nth-child(4) { --f: 0.63; }
.growth li:nth-child(5) { --f: 0.74; }
.growth li:nth-child(6) { --f: 0.84; }

/* Questions: visible text under the growth row. */
.page-home .qa { max-width: 1080px; margin: clamp(64px, 8vw, 104px) auto 0; text-align: left; }
.qa h2 { text-align: center; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.035em; }
/* Dropdowns (owner 2026-11-12): native <details>, closed by default; the
   answers stay in the page for search engines and assistants. */
.qa-list { list-style: none; max-width: 760px; margin: 32px auto 0; padding: 0; display: grid; gap: 12px; }
.qa-list li { border-radius: 20px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.qa-list summary { display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; border-radius: 20px; }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.qa-list h3 { flex: 1; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.qa-chev { flex: none; width: 10px; height: 10px; margin-top: -4px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 200ms ease; }
.qa-list details[open] .qa-chev { transform: rotate(225deg); margin-top: 4px; }
.qa-list p { margin: 0; padding: 0 22px 20px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .qa-chev { transition: none; } }
.qa-more { margin-top: 24px; text-align: center; font-weight: 700; }
.qa-more a { color: var(--ink); }
@media (max-width: 560px) { .qa-list summary { padding: 16px 18px; } .qa-list p { padding: 0 18px 18px; } }
/* Phones: four larger trees (1, 10, 20, 25) instead of six small ones. */
@media (max-width: 560px) {
  .growth { height: 230px; }
  .growth li:nth-child(2), .growth li:nth-child(4) { display: none; }
}
.growth span { height: 44px; display: flex; align-items: center; font-size: 0.875rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.cta { margin-top: clamp(80px, 10vw, 128px); }

/* Callouts: short labels pointing at what to try. */
.callout {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--ground);
  font-weight: 800;
  font-size: 0.875rem;
  line-height: 1.25;
  width: max-content;
  max-width: 9.5em;
  text-align: center;
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
  pointer-events: none;
  transition: opacity 300ms ease;
}
.callout::after { content: ""; position: absolute; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.callout-play { right: calc(100% + 10px); bottom: 74px; }
.callout-play::after { right: -4px; top: calc(50% - 5px); }
.callout-tap { right: calc(100% + 10px); top: 230px; }
.callout-tap::after { right: -4px; top: calc(50% - 5px); }
.stage-phone { position: relative; }
.is-playing ~ .callout-play, .has-tapped ~ .callout-tap { opacity: 0; }

/* Language switch above the live phone. */
.switch { display: inline-flex; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgb(255 255 255 / 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.switch button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 0.875rem; color: var(--ink); cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgb(21 54 44 / 0.18); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .switch { background: rgb(255 255 255 / 0.08); }
  :root:not([data-theme="light"]) .switch button[aria-pressed="true"] { background: #2b3a33; }
  :root:not([data-theme="light"]) .app-tile img { box-shadow: 0 6px 16px -6px rgb(0 0 0 / 0.7); }
}

/* ---------- phones ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  aspect-ratio: 390 / 844;
  margin: 0;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.155);
  background: var(--bezel);
  box-shadow: 0 50px 70px -40px rgb(21 54 44 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
  flex: none;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: #f4f7ef;
  color: #222;
  font-size: calc(var(--w) * 0.0435);
  -webkit-user-select: none;
  user-select: none;
}
.phone-shot .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-live { --w: 316px; }
.status { position: relative; height: 11.5%; flex: none; display: flex; align-items: flex-start; justify-content: space-between; padding: 5.4% 8% 0 10%; font-weight: 600; font-size: 0.95em; }
.status-island { position: absolute; left: 50%; top: 3.4%; width: 31%; height: 30%; transform: translateX(-50%); border-radius: 999px; background: #000; }
.status-icons { width: 17%; height: auto; margin-top: 1.5%; fill: currentColor; }
.phone-shot .status { position: absolute; inset: 0 0 auto 0; z-index: 2; }

/* Live player: a copy of the app's transcript screen. */
.phone-live .screen { display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; justify-content: space-between; padding: 1% 5% 3%; }
.app-top svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-top > svg:last-child { fill: currentColor; stroke: none; }
.chips { display: flex; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: #e9efe3; font-size: 0.7em; color: #555; }
.chip svg { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
.story { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.story[hidden] { display: none; }
.app-head { display: flex; align-items: center; gap: 10px; padding: 0 5% 3%; }
.app-head b { display: block; font-weight: 800; font-size: 1.02em; letter-spacing: -0.01em; }
.app-head small { display: block; font-size: 0.75em; color: #6a6a6a; }
.mini-cover {
  flex: none;
  display: grid;
  place-items: end start;
  width: calc(var(--w) * 0.11);
  height: calc(var(--w) * 0.11);
  padding: 0 0 3px 4px;
  border-radius: 9px;
  background: linear-gradient(160deg, #d9f1ec, #a9ddd2);
  color: #0b5b4f;
  font-size: 0.6em;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.lines {
  position: relative;
  flex: 1;
  min-height: 0;
  list-style: none;
  margin: 0;
  padding: 2% 6% 30%;
  overflow: hidden; /* moves with the audio only, so the page never gets stuck scrolling the phone */
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 7%, #000 82%, transparent 100%);
}
.lines::-webkit-scrollbar { display: none; }
.line { position: relative; padding: 0 0 0 4%; margin-bottom: 7%; border-left: 2.5px solid transparent; transition: border-color 200ms; }
.line.is-active { border-left-color: #222; }
.line-time { display: block; font-size: 0.72em; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.line-text { font-size: 1.06em; line-height: 1.55; color: #8a8a8a; transition: color 200ms; }
.line.is-active .line-text, .line.is-done .line-text { color: #222; }
.line.is-done .line-text { color: #555; }
.w {
  display: inline;
  padding: 0 1px;
  margin: 0 -1px;
  border: 0;
  border-radius: 4px;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color 90ms;
}
.w.is-name { cursor: default; }
.w.is-now { background: #fbd5dd; color: #222; }
.w[aria-pressed="true"] { background: #dd3157; color: #fff; }
.line-translate { display: none; align-items: center; gap: 4px; margin-top: 2px; padding: 4px 0; border: 0; background: none; color: #c42a4c; font: inherit; font-weight: 600; font-size: 0.85em; cursor: pointer; }
.line.is-active .line-translate { display: inline-flex; }
.line-translate svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.line-translation { font-size: 0.9em; color: #15362c; line-height: 1.45; }
.app-player { flex: none; padding: 2% 7% 9%; background: #f4f7ef; }
.seek { position: relative; height: 4px; border-radius: 2px; background: #d9ddd5; }
.seek-fill { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 2px; background: #222; }
.seek-knob { position: absolute; top: 50%; left: var(--p, 0%); width: 13px; height: 13px; border-radius: 50%; background: #222; transform: translate(-50%, -50%); }
.times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 0.68em; color: #555; font-variant-numeric: tabular-nums; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 4%; }
.controls svg { width: 1.6em; height: 1.6em; fill: none; stroke: #222; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.controls text { font: 700 7px Figtree, sans-serif; fill: #222; stroke: none; }
.speed { font-weight: 800; font-size: 0.85em; width: 1.9em; }
.ctl, .play { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.ctl-static { display: grid; place-items: center; }
.play { width: 3.3em; height: 3.3em; border-radius: 50%; background: #222; box-shadow: 0 0 0 0 rgb(221 49 87 / 0.5); }
.play svg { width: 1.45em; height: 1.45em; fill: #fff; stroke: none; }
.play .i-pause, .is-playing .play .i-play { display: none; }
.is-playing .play .i-pause { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .phone-live:not(.is-playing):not(.was-played) .play { animation: pulse 2.2s ease-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(221 49 87 / 0.55); } 70%, 100% { box-shadow: 0 0 0 16px rgb(221 49 87 / 0); } }
}
.gloss {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 11px;
  background: #15362c;
  color: #fff;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.gloss.is-on { opacity: 1; transform: none; }

/* Live flashcards: a copy of the app's study card, swipeable. */
.phone-cards .screen { display: flex; flex-direction: column; }
.cards-top { display: flex; align-items: center; gap: 10px; padding: 0 6% 4%; }
.cards-top svg { width: 1.2em; height: 1.2em; fill: none; stroke: #222; stroke-width: 2; stroke-linecap: round; }
.cards-progress { flex: 1; height: 5px; border-radius: 3px; background: #e2e9da; overflow: hidden; }
.cards-progress-fill { display: block; height: 100%; width: var(--p, 33%); background: #3fa34d; border-radius: 3px; transition: width 300ms ease; }
.cards-count { font-size: 0.75em; color: #6a6a6a; font-variant-numeric: tabular-nums; }
.stack { position: relative; flex: 1; margin: 0 6%; }
.card {
  position: absolute;
  inset: 0 0 4% 0;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e9da;
  box-shadow: 0 1px 2px rgb(21 54 44 / 0.06), 0 14px 30px -16px rgb(21 54 44 / 0.35);
}
.card-next { transform: scale(0.94) translateY(5%); opacity: 0.7; }
.card-live { cursor: grab; touch-action: none; perspective: 900px; background: none; border: 0; box-shadow: none; outline-offset: 4px; will-change: transform; }
.card-live:active { cursor: grabbing; }
.card-front, .card-back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6%;
  padding: 8%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e2e9da;
  box-shadow: 0 1px 2px rgb(21 54 44 / 0.06), 0 18px 34px -16px rgb(21 54 44 / 0.4);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 380ms cubic-bezier(0.2, 0, 0, 1);
}
.card-back { transform: rotateY(180deg); background: linear-gradient(180deg, #fff 50%, #fdecef); }
.card-live.is-flipped .card-front { transform: rotateY(-180deg); }
.card-live.is-flipped .card-back { transform: rotateY(0); }
.card-word { font-size: 2.1em; font-weight: 800; letter-spacing: -0.03em; text-align: center; line-height: 1.05; color: #15362c; }
.card-say { width: 2.6em; height: 2.6em; border-radius: 50%; border: 0; background: #edf2e7; display: grid; place-items: center; cursor: pointer; }
.card-say svg { width: 1.3em; height: 1.3em; fill: none; stroke: #222; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-hint { position: absolute; bottom: 7%; font-size: 0.75em; color: #8a8a8a; }
.card-small { font-size: 1.05em; font-weight: 600; color: #15362c; }
.card-rule { width: 2.2em; height: 3px; border-radius: 2px; background: #dd3157; opacity: 0.45; }
.card-meaning { font-size: 1.6em; font-weight: 800; letter-spacing: -0.02em; text-align: center; color: #15362c; }
.card-tag {
  position: absolute;
  z-index: 2;
  top: 7%;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid;
  font-weight: 800;
  font-size: 0.85em;
  opacity: 0;
  pointer-events: none;
}
.tag-again { right: 7%; color: #c42a4c; transform: rotate(10deg); }
.tag-good { left: 7%; color: #2e7a3d; transform: rotate(-10deg); }
.grades { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 2% 6% 10%; }
.grade { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid; font: inherit; font-weight: 800; font-size: 0.9em; line-height: 1.2; cursor: pointer; }
.grade small { font-weight: 400; font-size: 0.75em; }
.grade-again { background: #fdecef; color: #c42a4c; border-color: #f3c5cf; }
.grade-good { background: #e7f4e5; color: #2e7a3d; border-color: #c4e3c2; }

/* The app's Sentences pill and sheet (study card back -> Example Sentences). */
.phone-cards .screen { position: relative; }
.card-pill { display: inline-flex; align-items: center; gap: 0.45em; margin-top: 4%; padding: 0.55em 1.1em; border: 0; border-radius: 999px; background: #edf2e7; color: #15362c; font: inherit; font-weight: 700; font-size: 0.9em; cursor: pointer; }
.card-pill svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.card-pill:hover { background: #e2eadb; }
.sheet { position: absolute; inset: 0; z-index: 5; overflow: hidden; border-radius: inherit; }
.sheet[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.35); opacity: 0; transition: opacity 220ms ease; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 66%; padding: 0 5% 6%; display: flex; flex-direction: column; gap: 3%; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform 300ms cubic-bezier(0.2, 0, 0, 1); }
.sheet.is-open .sheet-scrim { opacity: 1; }
.sheet.is-open .sheet-panel { transform: none; }
.sheet-handle { align-self: center; width: 40px; height: 4px; margin-top: 10px; border-radius: 2px; background: #9aa39e; }
.sheet-head { display: flex; align-items: center; gap: 0.7em; padding: 0.8em; border-radius: 14px; border: 1px solid rgb(221 49 87 / 0.2); background: linear-gradient(135deg, rgb(221 49 87 / 0.15), rgb(221 49 87 / 0.05)); }
.sheet-icon { display: grid; place-items: center; width: 2.4em; height: 2.4em; flex: none; border-radius: 10px; background: rgb(221 49 87 / 0.2); }
.sheet-icon svg { width: 1.3em; height: 1.3em; fill: #dd3157; }
.sheet-titles { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sheet-titles b { font-size: 1em; color: #222; }
.sheet-titles span { font-size: 0.9em; font-weight: 600; color: #c42a4c; }
.sheet-titles small { font-size: 0.72em; color: #6a6a6a; }
.sheet-close { width: 2.2em; height: 2.2em; flex: none; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.sheet-close svg { width: 1.2em; height: 1.2em; fill: none; stroke: #555; stroke-width: 2; stroke-linecap: round; }
.sheet-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3em; padding: 0.8em 0.9em; border: 0; border-radius: 12px; background: #eef3e8; text-align: left; font: inherit; color: #222; cursor: pointer; }
.sheet-sentence { font-size: 0.95em; line-height: 1.4; }
.sheet-sentence mark { background: none; color: #c42a4c; font-weight: 700; }
.sheet-tile small { font-size: 0.72em; color: #6a6a6a; }
.sheet-translation { font-size: 0.85em; line-height: 1.35; color: #5b6660; }
@media (prefers-reduced-motion: reduce) { .sheet-scrim, .sheet-panel { transition: none; } }

/* ---------- one landscape, top to bottom (owner pick B, 2026-11-12) ----------
   The hero's sky fades into the page; faint clouds over the podcast section;
   the tree section is a meadow behind low-poly hills; evening falls into the
   night band. CSS and inline SVG only: no extra requests. */
:root { --hills-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpolygon fill='%23bcdcc6' points='0,90 120,52 250,74 390,30 520,64 660,38 800,70 930,22 1080,60 1220,34 1340,58 1440,44 1440,200 0,200'/%3E%3Cpolygon fill='%23afd3bb' points='390,30 520,64 470,200 330,200'/%3E%3Cpolygon fill='%23afd3bb' points='930,22 1080,60 1010,200 880,200'/%3E%3Cpolygon fill='%23b4db93' points='0,140 160,104 330,130 520,92 720,124 900,100 1100,130 1280,104 1440,122 1440,200 0,200'/%3E%3Cpolygon fill='%23a6d283' points='160,104 330,130 250,200 90,200'/%3E%3Cpolygon fill='%23a6d283' points='520,92 720,124 640,200 470,200'/%3E%3Cpolygon fill='%23a6d283' points='900,100 1100,130 1020,200 860,200'/%3E%3Cpolygon fill='%23d3ebb4' points='0,176 240,164 520,172 820,160 1120,170 1440,162 1440,200 0,200'/%3E%3C/svg%3E"); --dusk: linear-gradient(180deg, var(--meadow) 0%, #bccf9f 22%, #7f9a7c 45%, #3d5450 68%, #1b2a33 86%, #111d2c 100%); --dusk-h: 300px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hills-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpolygon fill='%231d3130' points='0,90 120,52 250,74 390,30 520,64 660,38 800,70 930,22 1080,60 1220,34 1340,58 1440,44 1440,200 0,200'/%3E%3Cpolygon fill='%231a2c2b' points='390,30 520,64 470,200 330,200'/%3E%3Cpolygon fill='%231a2c2b' points='930,22 1080,60 1010,200 880,200'/%3E%3Cpolygon fill='%23233a2b' points='0,140 160,104 330,130 520,92 720,124 900,100 1100,130 1280,104 1440,122 1440,200 0,200'/%3E%3Cpolygon fill='%231f3427' points='160,104 330,130 250,200 90,200'/%3E%3Cpolygon fill='%231f3427' points='520,92 720,124 640,200 470,200'/%3E%3Cpolygon fill='%231f3427' points='900,100 1100,130 1020,200 860,200'/%3E%3Cpolygon fill='%23243829' points='0,176 240,164 520,172 820,160 1120,170 1440,162 1440,200 0,200'/%3E%3C/svg%3E"); --dusk: linear-gradient(180deg, var(--meadow) 0%, #1a2a2c 55%, #111d2c 100%); } }
:root[data-theme="dark"] { --hills-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpolygon fill='%231d3130' points='0,90 120,52 250,74 390,30 520,64 660,38 800,70 930,22 1080,60 1220,34 1340,58 1440,44 1440,200 0,200'/%3E%3Cpolygon fill='%231a2c2b' points='390,30 520,64 470,200 330,200'/%3E%3Cpolygon fill='%231a2c2b' points='930,22 1080,60 1010,200 880,200'/%3E%3Cpolygon fill='%23233a2b' points='0,140 160,104 330,130 520,92 720,124 900,100 1100,130 1280,104 1440,122 1440,200 0,200'/%3E%3Cpolygon fill='%231f3427' points='160,104 330,130 250,200 90,200'/%3E%3Cpolygon fill='%231f3427' points='520,92 720,124 640,200 470,200'/%3E%3Cpolygon fill='%231f3427' points='900,100 1100,130 1020,200 860,200'/%3E%3Cpolygon fill='%23243829' points='0,176 240,164 520,172 820,160 1120,170 1440,162 1440,200 0,200'/%3E%3C/svg%3E"); --dusk: linear-gradient(180deg, var(--meadow) 0%, #1a2a2c 55%, #111d2c 100%); }
body.page-home {
  background: linear-gradient(180deg, var(--horizon) 0, var(--horizon) 900px,
    color-mix(in srgb, var(--horizon), var(--meadow) 45%) 55%, color-mix(in srgb, var(--horizon), var(--meadow) 75%) 100%);
  overflow-x: clip;
}
.page-home .feature-pod { position: relative; }
.page-home .feature-pod::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 520px;
  transform: translateX(-50%);
  background: var(--cloud);
  opacity: 0.7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520' preserveAspectRatio='xMidYMin slice'%3E%3Cpolygon points='90,150 116,128 150,133 172,116 208,124 230,150'/%3E%3Cpolygon points='1180,90 1214,62 1260,68 1290,44 1338,56 1366,90'/%3E%3Cpolygon opacity='.6' points='640,250 658,237 680,240 694,230 718,237 730,250'/%3E%3Cpolygon opacity='.6' points='1300,420 1318,407 1342,410 1356,400 1380,407 1392,420'/%3E%3C/svg%3E") center top / 100% auto no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520' preserveAspectRatio='xMidYMin slice'%3E%3Cpolygon points='90,150 116,128 150,133 172,116 208,124 230,150'/%3E%3Cpolygon points='1180,90 1214,62 1260,68 1290,44 1338,56 1366,90'/%3E%3Cpolygon opacity='.6' points='640,250 658,237 680,240 694,230 718,237 730,250'/%3E%3Cpolygon opacity='.6' points='1300,420 1318,407 1342,410 1356,400 1380,407 1392,420'/%3E%3C/svg%3E") center top / 100% auto no-repeat;
  pointer-events: none;
}
.page-home .feature-pod > * { position: relative; z-index: 1; }
.page-home .grow {
  position: relative;
  max-width: none;
  margin-top: calc(clamp(70px, 9vw, 130px) + 40px);
  padding: clamp(48px, 6vw, 80px) 24px 0;
  background: var(--meadow);
}
.page-home .grow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(70px, 9vw, 130px);
  background: var(--hills-img) center bottom / 100% 100% no-repeat;
}
.page-home .grow::after { content: ""; display: block; height: var(--dusk-h); margin: 48px -24px 0; background: var(--dusk); }
.page-home .growth { max-width: 1080px; margin-left: auto; margin-right: auto; background: none; }
.page-home .cta { margin-top: 0; }
@media (max-width: 560px) { :root { --dusk-h: 170px; } }

/* ---------- closing band: the night scene ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 30% 100%, #1c2d2e 0, #152430 45%, #0f1b2b 100%);
  color: #eaf3ec;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff9 50%, transparent 51%), radial-gradient(1.5px 1.5px at 32% 12%, #fff7 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 28%, #fffa 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 34%, #fff6 50%, transparent 51%), radial-gradient(1px 1px at 46% 8%, #fff8 50%, transparent 51%);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: end; gap: 56px; max-width: 1000px; margin: 0 auto; padding: 72px 24px 0; }
.cta-island img { width: 100%; margin-bottom: -6px; }
.cta-copy { padding-bottom: 80px; }
.cta h2 { color: #eaf3ec; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.04; max-width: 14ch; }
.cta p { margin-top: 14px; font-size: 1.125rem; color: #c9d6cd; max-width: 28rem; }
.cta .app-tile { color: #eaf3ec; }
.cta-mail { font-size: 1rem !important; }
.cta-mail a { color: #ff9fb3; }

/* ---------- footer ---------- */

.foot { background: var(--ground-deep); border-top: 1px solid var(--border); }
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px max(40px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 32px;
  align-items: center;
}
.foot .brand { font-size: 1.0625rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { grid-column: 1 / 3; font-size: 0.875rem; color: var(--muted); }
.foot-lang { grid-column: 3; grid-row: 1; }
.foot-lang ul { top: auto; bottom: calc(100% + 8px); }
.foot-lang summary { background: var(--surface); border: 1px solid var(--border); }

/* ---------- plain pages: support, legal, 404 ---------- */

.page-plain { background: linear-gradient(180deg, var(--sky-mid) 0, var(--horizon) 120px, var(--ground) 260px) no-repeat, var(--ground); }
.plain { max-width: 44rem; margin: 0 auto; padding: 32px 24px 96px; }
.plain h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.plain h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 24px; }
.plain h3 { font-size: 1.15rem; margin: 28px 0 8px; }
.plain p, .plain li { line-height: 1.65; }
.plain p + p { margin-top: 14px; }
.lead { margin-top: 14px; font-size: 1.1875rem; color: var(--muted); }
.support-monkey { width: 110px; margin-bottom: 16px; }
.contacts { display: grid; gap: 12px; margin: 32px 0 0; }
.contacts div { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.contacts dt { font-size: 0.9375rem; color: var(--muted); }
.contacts dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 800; }
.contacts a { color: var(--ink); text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.faq { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; color: var(--ink); font-size: 1.0625rem; }
.faq p { padding: 0 0 18px; color: var(--text); }
.notfound { text-align: center; }
.notfound img { width: 140px; margin: 24px auto; }
.button { display: inline-block; margin-top: 24px; padding: 14px 22px; border-radius: 14px; background: var(--button); color: var(--on-button); font-weight: 800; text-decoration: none; }

.legal { max-width: 46rem; }
.legal > h1 + p, .legal > h1 + p + p { color: var(--muted); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal blockquote { margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--border); color: var(--muted); }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.legal a { overflow-wrap: anywhere; }
.toc { margin: 32px 0 8px; padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.toc .toc-title { margin: 0 0 8px; font-size: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 0; padding: 3px 0; font-size: 0.9375rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--rose-text); text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.9375rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.table-scroll th { font-weight: 800; color: var(--ink); background: var(--ground); }
.table-scroll tr:last-child td { border-bottom: 0; }
.back-top { margin-top: 48px; }


/* ---------- narrow screens ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .hero-copy { padding-bottom: 8px; }
  .hero-scene { padding-top: 8px; }
  .hero-stage { --f: calc(min(100vw, 430px) * 0.0016); margin-bottom: 20px; }
  .feature, .feature-words { grid-template-columns: 1fr; justify-items: start; }
  .feature-words .feature-visual { order: 2; }
  .feature-visual { justify-self: center; }
  .cta-inner { grid-template-columns: 1fr; gap: 0; text-align: center; padding-top: 56px; }
  .cta-copy { order: -1; padding-bottom: 24px; }
  .cta h2, .cta p { margin-left: auto; margin-right: auto; }
  .cta .stores { justify-content: center; }
  .cta-island { width: 220px; margin: 0 auto; }
  .foot-inner { grid-template-columns: 1fr; }
  .foot-note, .foot-lang { grid-column: auto; grid-row: auto; }
  .foot-lang ul { left: 0; right: auto; }
}
@media (max-width: 560px) {
  .top { padding-left: 16px; padding-right: 16px; }
  .top-nav > a { padding: 8px; }
  .lang summary { padding: 8px 10px; }
  .hero, .feature, .grow, .plain { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 1.2rem + 6vw, 2.9rem); }
  .hero-body { font-size: 1.0625rem; margin-top: 14px; }
  .stores { margin-top: 20px; gap: 10px; }
  .app-tile { display: none; }
  .badge img { height: 46px; }
  .phone-live { --w: min(300px, 80vw); }
  .callout { display: none; }
  .growth span { font-size: 0.6875rem; }
  .growth { padding: 0; gap: 2px; }
}
@media (max-width: 560px) { .clouds { display: none; } }
/* Phones: no breakout. A plain, large phone with the app's Home as it is
   (home-<sky>-<loc>.webp) right under the headline, body and store buttons,
   so the app is on the first screen; the note follows it. The breakout tree
   is the desktop composition. */
@media (max-width: 560px) {
  .hero-copy { display: contents; }
  .hero h1 { order: 1; padding-top: 12px; }
  .hero-body { order: 2; }
  .hero .stores { order: 3; justify-content: center; flex-wrap: nowrap; margin-top: 16px; }
  .hero .stores .badge img { height: 40px; }
  .hero-scene { order: 4; }
  .hero-note { order: 5; text-align: center; margin: 10px 0 28px; font-size: 0.875rem; }
  .hero-stage { --f: calc(min(74vw, 300px) * 0.94 / 390); margin: 16px 0 16px; }
  .hero-front { display: none; }
}
}
}

