/* Learn Lingala — marketing landing page. Mobile-first; shares tokens and font with the app. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/app/fonts/onest-latin.woff2) format('woff2-variations');
  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: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  /* Includes ɛ ɔ Ɛ Ɔ and the combining tone mark (U+0301) used in Lingala. */
  src: url(/app/fonts/onest-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0301, 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: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url(/app/fonts/unbounded-latin.woff2) format('woff2-variations');
  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: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  /* Includes ɛ ɔ Ɛ Ɔ and the combining tone mark (U+0301) used in Lingala. */
  src: url(/app/fonts/unbounded-latin-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0301, 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;
}

:root {
  --font-display: 'Unbounded', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f3f5f2;
  --bg-elev: #ffffff;
  --surface-2: #e9eee8;
  --ink: #0b1510;
  --ink-2: #2f3c35;
  --muted: #64716a;
  --line: #dde4dc;
  --brand: #0a8458;
  --brand-600: #076c47;
  --brand-700: #05583a;
  --brand-900: #032a1c;
  --brand-50: #e3f4ec;
  --on-brand: #ffffff;
  --lime: #c6f24e;
  --on-lime: #0c1a05;
  --gold: #f6b72d;
  --gold-50: #fef3d8;
  --coral: #e5483a;
  --stage: linear-gradient(155deg, #0a5c3f 0%, #053b28 50%, #021c12 100%);
  --shadow-md: 0 10px 30px -14px rgba(11, 21, 16, 0.25), 0 2px 6px rgba(11, 21, 16, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(2, 28, 18, 0.6), 0 12px 24px -12px rgba(11, 21, 16, 0.2);
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060c09;
    --bg-elev: #0e1712;
    --surface-2: #0a130e;
    --ink: #eef5f0;
    --ink-2: #c8d5cd;
    --muted: #87978e;
    --line: #1a2720;
    --brand: #3ddc97;
    --brand-600: #31c283;
    --brand-700: #1f9a66;
    --brand-900: #03190f;
    --brand-50: #0b2418;
    --on-brand: #03140c;
    --gold: #f8c24a;
    --gold-50: #2a2210;
    --coral: #f2675a;
    --stage: linear-gradient(155deg, #0b4a33 0%, #062c1e 50%, #03130c 100%);
    --shadow-md: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
    color-scheme: dark;
  }
}

/* --- Base ------------------------------------------------------------------------ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
img, svg { display: block; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--font-display); letter-spacing: -0.04em; line-height: 1.08; font-weight: 650; }
h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; text-wrap: balance; }
.hl { color: var(--brand); }

/* --- Buttons --------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-weight: 680; font-size: 1rem; letter-spacing: -0.01em;
  padding: 0.8rem 1.3rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.06rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 14px 28px -12px var(--brand); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--bg-elev); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 12px 30px -12px rgba(198, 242, 78, 0.7); }
.btn-lime:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-glass { color: #fff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.btn-glass:hover { border-color: rgba(255, 255, 255, 0.5); }

/* --- Nav ------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.03em; font-weight: 500; }
.brand b { font-weight: 700; color: var(--brand); }
.brand-mark { width: 30px; height: 30px; }
.brand, .link-quiet { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-cta .link-quiet { display: none; }
  .brand { font-size: 0.92rem; }
}
.nav-links { display: none; gap: 1.6rem; margin: 0 auto; }
.nav-links a { color: var(--ink-2); font-size: 0.95rem; font-weight: 550; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.link-quiet { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }
.link-quiet:hover { color: var(--ink); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* --- Hero: a dark stage panel inset from the page edges ----------------------------- */

.hero { padding: 8px 10px 0; }
.hero-stage {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  border-radius: 32px; padding: 40px 0 48px; background: var(--stage);
}
.hero-stage::before {
  content: ''; position: absolute; z-index: -1; right: -15%; top: -30%; width: 75%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(198, 242, 78, 0.22), transparent 70%);
}
.hero-stage::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 550; color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 0.4rem 0.85rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198, 242, 78, 0.18); flex: none; }
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem); letter-spacing: -0.045em; line-height: 1.04;
  margin: 1.2rem 0 1.2rem; text-wrap: balance; font-weight: 650;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.lede { font-size: clamp(1.04rem, 1rem + 0.3vw, 1.2rem); color: rgba(255, 255, 255, 0.78); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.9rem 0 1.4rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.trust svg, .pc-fb svg { width: 1.1em; height: 1.1em; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.trust svg { stroke: var(--lime); }

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .hero-stage { border-radius: 26px; padding-top: 32px; }
}
@media (min-width: 980px) {
  .hero { padding: 10px 16px 0; }
  .hero-stage { padding: 80px 0 88px; border-radius: 40px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.phone {
  position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 17; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a2d29, #0e0f0e); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #050505; z-index: 2; }
.phone-screen {
  height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); padding: 54px 14px 14px; font-size: 14px;
}
.pc-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pc-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); font-size: 20px; }
.pc-who { display: flex; flex-direction: column; line-height: 1.2; }
.pc-who b { font-size: 14.5px; }
.pc-who small { color: var(--muted); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.pc-who i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf8f; }
.pc-mission { margin: 10px 0 6px; font-size: 11.5px; color: var(--ink-2); background: var(--gold-50); border-radius: 12px; padding: 7px 10px; }
.pc-mission b { color: var(--ink); margin-right: 4px; }
.pc-log { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; padding: 8px 0; overflow: hidden; }
.pc-msg { max-width: 82%; padding: 9px 12px; border-radius: 18px; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.pc-msg span { font-weight: 600; }
.pc-msg small { font-size: 11.5px; opacity: 0.72; }
.pc-msg.them { align-self: flex-start; background: var(--bg-elev); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pc-msg.you { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; }
.pc-fb {
  align-self: flex-end; max-width: 88%; display: flex; gap: 6px; align-items: flex-start;
  font-size: 11.5px; line-height: 1.35; color: var(--ink-2); background: var(--brand-50); border-radius: 12px; padding: 7px 9px;
}
.pc-fb.ok { background: var(--gold-50); }
.pc-fb.ok svg { stroke: none; fill: var(--gold); }
.pc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 14px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); }
.pc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.pc-typing i:nth-child(2) { animation-delay: 0.2s; }
.pc-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.pc-suggest { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.pc-suggest span { font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--bg-elev); border-radius: 999px; padding: 6px 10px; white-space: nowrap; }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px; background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-size: 12px; }
.float-streak { left: 0; top: 40%; color: var(--ink); }
.float-streak .fi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--gold-50); color: #e8890c; }
.float-streak .fi svg { width: 20px; height: 20px; }
.float-local { right: 0; bottom: 14%; flex-direction: column; align-items: flex-start; gap: 3px; animation-delay: -3s; color: var(--ink); }
.fl-lg { font-weight: 750; font-size: 17px; letter-spacing: -0.01em; }
.tag-local { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; color: #8a5a00; background: var(--gold-50); border-radius: 999px; padding: 2px 8px; }
@media (prefers-color-scheme: dark) { .tag-local { color: var(--gold); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 520px) {
  .float-streak { left: -6px; top: 30%; }
  .float-local { right: -6px; bottom: 8%; }
}

/* Demo chat animation (JS adds .play; without JS everything is shown). */
.pc-log.play > * { opacity: 0; transform: translateY(8px); }
.pc-log.play > .in { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.pc-log.play > .gone { display: none; }

/* --- Stats strip ----------------------------------------------------------------- */

.stats { margin-top: 28px; }
.stats-grid { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stats-grid div { padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.stats-grid div + div { border-left: 1px solid var(--line); }
.stats-grid div:nth-child(3) { border-left: 0; }
.stats-grid div:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stats-grid b { font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); letter-spacing: -0.05em; line-height: 1; font-weight: 650; color: var(--brand); }
.stats-grid span { color: var(--muted); font-size: 0.9rem; font-weight: 550; }
@media (min-width: 760px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 1px solid var(--line); }
  .stats-grid div:nth-child(n + 3) { border-top: 0; }
  .stats-grid div { padding: 30px 12px; }
}

/* --- Sections -------------------------------------------------------------------- */

.section { padding: 76px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 650; color: var(--brand); margin-bottom: 1rem; }
.kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.sub { color: var(--ink-2); font-size: 1.08rem; margin-top: 1rem; max-width: 40em; }
@media (min-width: 900px) { .section { padding: 112px 0; } .section-head { margin-bottom: 56px; } }

/* Who */
.who-grid { display: grid; gap: 14px; }
.who { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.who:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.who-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.who-ico svg, .fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.who p { color: var(--ink-2); margin-top: 0.5rem; font-size: 0.98rem; }
@media (min-width: 640px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .who-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Steps */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 24px; }
.step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: var(--brand-900); color: var(--lime); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.step p { color: var(--ink-2); margin-top: 0.55rem; font-size: 0.98rem; }
.step b { color: var(--ink); font-weight: 680; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .step:not(:last-child)::after {
    content: ''; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px; background: var(--line);
  }
}

/* Try it */
.try-grid { display: grid; gap: 36px; align-items: center; }
.try-grid .sub { margin-bottom: 1.6rem; }
.try-grid .sub b { color: var(--brand); }
.builder { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-md); }
.builder-controls { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.builder-controls label { display: flex; flex-direction: column; gap: 6px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.builder-controls label:first-child { grid-column: 1 / -1; }
.builder-controls select {
  font: inherit; font-size: 0.98rem; font-weight: 550; text-transform: none; letter-spacing: 0; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem; width: 100%; min-width: 0;
}
.builder-controls select:focus { border-color: var(--brand); outline: none; }
.toggle {
  grid-column: 1 / -1; font: inherit; font-weight: 650; font-size: 0.95rem; color: var(--ink-2); cursor: pointer;
  background: var(--bg); border: 1.5px dashed var(--line); border-radius: 12px; padding: 0.7rem;
}
.toggle b { color: var(--coral); }
.toggle.on { border-style: solid; border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, transparent); color: var(--ink); }
.builder-output { margin-top: 18px; border-radius: 18px; padding: 24px 20px; text-align: center; background: var(--stage); color: #fff; }
.builder-lg { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.15; }
.builder-parts { margin: 12px 0 8px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); }
.chunk { display: inline-block; padding: 1px 7px; border-radius: 7px; font-weight: 700; margin: 2px 1px; }
.chunk-subject { background: rgba(242, 177, 52, 0.25); color: #ffd98a; }
.chunk-verb { background: rgba(255, 255, 255, 0.14); color: #fff; }
.chunk-tense { background: rgba(111, 159, 240, 0.25); color: #b9d0ff; }
.chunk-object { background: rgba(47, 191, 143, 0.25); color: #9ff0d1; }
.chunk-negate { background: rgba(240, 107, 85, 0.3); color: #ffc0b4; }
.builder-en { font-size: 1.05rem; color: rgba(255, 255, 255, 0.9); font-weight: 550; }
@media (min-width: 900px) {
  .try-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .builder { padding: 28px; }
  .builder-controls { grid-template-columns: repeat(3, 1fr); }
  .builder-controls label:first-child { grid-column: auto; }
}

/* Bento */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 0.6rem;
}
.tile p { color: var(--ink-2); font-size: 0.98rem; }
.tile-tag { align-self: flex-start; font-size: 0.74rem; font-weight: 750; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 4px 10px; margin-bottom: 0.4rem; }
.tile h3 { font-size: 1.3rem; }

.tile-chat { background: var(--stage); color: #fff; border-color: transparent; gap: 22px; }
.tile-chat p { color: rgba(255, 255, 255, 0.8); margin-top: 0.6rem; }
.tile-chat h3 { margin-top: 0.2rem; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
.tile-chat .tile-tag { background: rgba(198, 242, 78, 0.14); color: var(--lime); }
.mini-chat { display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 16px; font-size: 14px; }
.mini-chat .pc-msg.them { background: rgba(255, 255, 255, 0.95); color: #191815; border: 0; }
.mini-chat .pc-msg.you { background: var(--lime); color: var(--on-lime); }
.mini-chat .pc-fb { background: rgba(198, 242, 78, 0.12); color: rgba(255, 255, 255, 0.9); }
.mini-chat .pc-fb.ok svg { fill: var(--lime); }

.mini-tr { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.tr-in { display: flex; align-items: center; gap: 8px; font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.tr-in svg { width: 18px; height: 18px; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; }
.tr-out { background: var(--brand-50); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.tr-out b { font-size: 1.25rem; letter-spacing: -0.02em; color: var(--brand); }
.tr-out small { color: var(--ink-2); font-size: 0.82rem; }
.tr-out small span { font-weight: 700; }

.tile-local { background: var(--gold-50); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.tile-local .tile-tag { background: var(--gold); color: #1c1606; }
.pairs { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 0.6rem; }
.pairs li {
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  background: var(--bg-elev); border-radius: 14px; padding: 10px 14px;
}
.pairs li > span:not(.arrow) { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); grid-row: 1; }
.pairs li > span:nth-of-type(1) { grid-column: 1; }
.pairs li > span:nth-of-type(3) { grid-column: 3; }
.pairs li > b { grid-row: 2; font-size: 1rem; }
.pairs li > b:nth-of-type(1) { grid-column: 1; color: var(--muted); font-weight: 600; }
.pairs li > b:nth-of-type(2) { grid-column: 3; color: var(--brand); }
.pairs .arrow { grid-column: 2; grid-row: 1 / 3; color: var(--gold); font-weight: 800; }


@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-chat { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .tile-chat { grid-column: span 2; grid-row: span 2; justify-content: space-between; padding: 34px; }
  .tile-translate { grid-column: span 2; }
  .tile-local { grid-column: span 2; grid-row: span 2; }
  .tile-study { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; }
  .tile-test, .tile-habit, .tile-lang, .tile-offline { grid-column: span 1; }
  .tile-translate { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; align-content: start; }
  .tile-translate > :not(.mini-tr) { grid-column: 1; }
  .tile-translate .mini-tr { grid-column: 2; grid-row: 1 / span 3; margin: 0; padding: 0; justify-content: center; }
}

.mini-bd { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border-radius: 18px; padding: 16px; margin-top: 6px; }
.mini-bd-lg { font-family: var(--font-display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--brand); }
.mini-bd-pieces { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mini-bd-pieces span:not(.gap) { display: flex; flex-direction: column; padding: 5px 8px; border-radius: 10px; background: var(--bg-elev); border: 1px solid var(--line); line-height: 1.2; }
.mini-bd-pieces b { font-size: 0.95rem; }
.mini-bd-pieces b.s { color: #7356d8; }
.mini-bd-pieces b.v { color: var(--brand); }
.mini-bd-pieces b.t { color: #c4760a; }
.mini-bd-pieces small { font-size: 0.72rem; color: var(--muted); }
.mini-bd-pieces i { color: var(--muted); font-style: normal; }
.mini-bd-pieces .gap { width: 10px; }
.mini-bd-note { font-size: 0.85rem; color: var(--ink-2); background: var(--gold-50); border-radius: 10px; padding: 8px 10px; }
.mini-bd-note span { font-weight: 750; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b47406; margin-right: 4px; }
@media (prefers-color-scheme: dark) { .mini-bd-pieces b.s { color: #a993f5; } }

/* Path */
.path { list-style: none; display: grid; gap: 14px; }
.lvl { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.lvl-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.lvl-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; background: var(--brand-50); color: var(--brand); }
.lvl-time { font-size: 0.8rem; font-weight: 650; color: var(--muted); }
.lvl h3 { font-size: 1.2rem; display: flex; flex-direction: column; gap: 3px; }
.lvl h3 small { font-size: 0.88rem; font-weight: 550; color: var(--muted); letter-spacing: 0; }
.lvl ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.lvl li li, .lvl ul li { position: relative; padding-left: 22px; font-size: 0.94rem; color: var(--ink-2); }
.lvl ul li::before { content: ''; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px; border-left: 2.4px solid var(--brand); border-bottom: 2.4px solid var(--brand); transform: rotate(-45deg); }
.lvl-goal { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.lvl-goal .lvl-n { background: var(--brand); color: var(--on-brand); }
.lvl-badge { position: absolute; top: -12px; right: 16px; background: var(--brand); color: var(--on-brand); font-size: 0.74rem; font-weight: 750; border-radius: 999px; padding: 4px 10px; }
.lvl-local { background: linear-gradient(160deg, var(--gold-50), var(--bg-elev)); }
.lvl-local .lvl-n { background: var(--gold); color: #1c1606; }
@media (min-width: 700px) { .path { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .path { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .lvl-top { flex-direction: column; align-items: flex-start; }
}

/* Compare */
.compare-wrap .section-head { margin-inline: auto; text-align: center; }
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-elev); max-width: 920px; margin: 0 auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.95rem; }
.compare th, .compare td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.85rem; color: var(--muted); font-weight: 650; }
.compare thead th.us { color: var(--brand); font-size: 0.95rem; font-weight: 800; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.compare td.us { background: var(--brand-50); font-weight: 750; }
.compare td { color: var(--muted); font-weight: 550; }
.compare td.yes::before, .compare td.no::before, .compare td.part::before { display: inline-block; margin-right: 6px; font-weight: 800; }
.compare td.yes::before { content: '✓'; color: var(--brand); }
.compare td.no::before { content: '–'; color: var(--muted); }
.compare td.part::before { content: '◐'; color: var(--gold); }
.compare td.us.yes { color: var(--brand); }

/* FAQ */
.faq-wrap { display: grid; gap: 8px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 680; font-size: 1.03rem; position: relative; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-2); color: var(--brand); font-weight: 700; transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--ink-2); }
@media (min-width: 900px) {
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* Final CTA */
.final { padding: 20px 0 80px; }
.final-inner {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 64px 24px;
  width: calc(100% - 40px); max-width: 1140px;
  background: radial-gradient(70% 90% at 50% 0%, rgba(198, 242, 78, 0.2), transparent 70%), var(--stage); color: #fff;
}
.final-inner::before, .final-inner::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.12); pointer-events: none; }
.final-inner::before { width: 420px; height: 420px; left: -160px; bottom: -220px; }
.final-inner::after { width: 300px; height: 300px; right: -100px; top: -140px; border-color: rgba(198, 242, 78, 0.35); }
.final-greet { font-weight: 650; color: var(--lime); font-size: 1.1rem; margin-bottom: 0.8rem; }
.final h2 { max-width: 16em; margin: 0 auto; color: #fff; }
.final-inner > p:not(.final-greet):not(.final-small) { max-width: 34em; margin: 1rem auto 2rem; color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.final-small { margin-top: 1rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }
@media (min-width: 900px) { .final { padding: 40px 0 120px; } .final-inner { padding: 96px 40px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 120px; }
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.brand-foot { margin-bottom: 8px; }
.footer-links { display: flex; gap: 48px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links h4 { font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.footer-links a { color: var(--ink-2); font-weight: 550; font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand); }
@media (min-width: 760px) { .footer { padding-bottom: 48px; } .footer-inner { flex-direction: row; justify-content: space-between; } }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.sticky-cta.show { transform: none; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* Reveal on scroll (only when JS is running). */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Phones: the comparison table fits the screen, with icons only. */
@media (max-width: 600px) {
  .compare { min-width: 0; font-size: 0.86rem; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare tbody th { padding-left: 14px; }
  .compare thead th { font-size: 0.74rem; line-height: 1.25; }
  .compare thead th.us { font-size: 0.8rem; }
  .compare td { font-size: 0; }
  .compare td::before { font-size: 1.05rem; margin: 0 !important; }
}
