/* ============================================================
   LimeliChat landing — design tokens
   Voice: bright, precise, hospitable. Committed lime on warm paper.
   ============================================================ */
:root {
  /* Color (OKLCH, neutrals tinted toward the brand hue ~145) */
  --paper:        oklch(0.985 0.012 95);
  --paper-2:      oklch(0.965 0.018 110);
  --ink:          oklch(0.22 0.03 152);
  --ink-soft:     oklch(0.42 0.025 152);
  --muted:        oklch(0.55 0.02 150);
  --hairline:     oklch(0.9 0.015 130);
  --lime:         oklch(0.84 0.19 128);
  --lime-deep:    oklch(0.7 0.17 132);
  --lime-tint:    oklch(0.95 0.05 125);
  --forest:       oklch(0.31 0.06 156);
  --forest-deep:  oklch(0.24 0.05 158);
  --on-forest:    oklch(0.96 0.02 120);

  /* Type */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* Fluid scale (~1.25–1.3 ratio) */
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  /* Layout */
  --wrap: 1140px;
  --radius: 18px;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 150 / 0.06), 0 3px 10px oklch(0.3 0.04 150 / 0.05);
  --shadow-lg: 0 24px 60px -24px oklch(0.3 0.06 150 / 0.35), 0 8px 24px -12px oklch(0.3 0.06 150 / 0.2);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--lime-deep); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 0.5rem 0.9rem; border-radius: 8px;
}
.skip-link:focus { left: 0.5rem; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-weight: 600; font-size: var(--step--1);
  padding: 0.62rem 1.1rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out-quart), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--lg { font-size: var(--step-0); padding: 0.85rem 1.5rem; }
.btn--solid { background: var(--lime); color: var(--ink); box-shadow: 0 1px 0 oklch(0.7 0.17 132 / 0.6) inset, var(--shadow-sm); }
.btn--solid:hover { background: var(--lime-deep); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn--outline { background: transparent; border-color: var(--hairline); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--ghost { background: transparent; color: var(--ink-soft); padding-inline: 0.7rem; }
.btn--ghost:hover { color: var(--ink); }
.btn--quiet { background: oklch(0.31 0.06 156 / 0.06); color: var(--ink); }
.btn--quiet:hover { background: oklch(0.31 0.06 156 / 0.12); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background-color 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: oklch(0.985 0.012 95 / 0.82); backdrop-filter: saturate(1.4) blur(12px); border-color: var(--hairline); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand__accent { color: var(--lime-deep); }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); }
.brand__mark svg { fill: var(--forest-deep); }
.brand__mark .mk-dot { fill: var(--lime); }
.nav__links { display: flex; gap: 1.6rem; margin-inline: auto; font-size: var(--step--1); font-weight: 500; }
.nav__links a { color: var(--ink-soft); position: relative; padding: 0.3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--lime-deep); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.lang { display: inline-flex; background: var(--paper-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 2px; }
.lang__btn { border: 0; background: transparent; font: 600 0.75rem/1 var(--body); color: var(--muted); padding: 0.35rem 0.55rem; border-radius: 999px; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.lang__btn.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.nav__burger { display: none; flex: none; width: 40px; height: 40px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav__burger span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 220ms var(--ease-out), opacity 180ms ease; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding-top: clamp(2.5rem, 1rem + 6vw, 6rem); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 620px; z-index: -1;
  background:
    radial-gradient(60% 60% at 78% 8%, var(--lime-tint), transparent 60%),
    radial-gradient(50% 50% at 8% 0%, oklch(0.95 0.04 150), transparent 55%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; color: var(--lime-deep); text-transform: uppercase; }
.hero__title { font-size: var(--step-4); font-weight: 800; margin: 0.6rem 0 1.1rem; max-width: 14ch; }
.hero__sub { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.hero__proof { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: var(--step--1); color: var(--ink-soft); font-weight: 500; }
.hero__proof li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__proof svg { fill: none; stroke: var(--lime-deep); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Hero demo (browser + chat widget) ───────────────── */
.hero__demo { position: relative; }
.demo-browser { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-browser__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: var(--paper-2); border-bottom: 1px solid var(--hairline); }
.demo-browser__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline); }
.demo-browser__url { margin-left: 10px; font-size: 0.72rem; color: var(--muted); background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px; padding: 3px 12px; }
.demo-browser__body { position: relative; height: 420px; padding: 22px; }
.demo-page { display: flex; flex-direction: column; gap: 14px; opacity: 0.55; }
.demo-page__line { height: 12px; border-radius: 6px; background: var(--paper-2); }
.demo-page__line.w90 { width: 90%; } .demo-page__line.w80 { width: 80%; } .demo-page__line.w70 { width: 70%; } .demo-page__line.w50 { width: 50%; } .demo-page__line.w40 { width: 40%; }
.demo-page__block { height: 96px; border-radius: 12px; background: linear-gradient(120deg, var(--lime-tint), var(--paper-2)); margin: 4px 0; }

/* the chat */
.chat {
  position: absolute; right: 18px; bottom: 18px; width: 290px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
  transform-origin: bottom right;
  animation: chat-in 700ms var(--ease-out) both;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--forest); color: var(--on-forest); }
.chat__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--forest-deep); display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.chat__name { font-weight: 700; font-size: 0.85rem; }
.chat__status { display: flex; align-items: center; gap: 5px; font-size: 0.68rem; opacity: 0.85; }
.chat__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.84 0.19 128 / 0.6); } 70% { box-shadow: 0 0 0 7px oklch(0.84 0.19 128 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.84 0.19 128 / 0); } }
.chat__log { padding: 14px; display: flex; flex-direction: column; gap: 9px; height: 250px; overflow: hidden; background: var(--paper); }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 0.8rem; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: bubble-in 360ms var(--ease-out) forwards; }
@keyframes bubble-in { to { opacity: 1; transform: translateY(0); } }
.bubble--bot { background: var(--paper-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble--user { background: var(--forest); color: var(--on-forest); align-self: flex-end; border-bottom-right-radius: 5px; }
.bubble--typing { display: inline-flex; gap: 4px; align-self: flex-start; }
.bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble--typing span:nth-child(2) { animation-delay: 0.2s; } .bubble--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
.chat__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.78rem; }
.chat__send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--lime); }
.chat__send svg { fill: var(--forest-deep); }
.demo-launcher { position: absolute; right: -6px; bottom: -14px; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.demo-launcher svg { fill: var(--forest-deep); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ── Marquee ─────────────────────────────────────────── */
.marquee { margin-top: clamp(2.5rem, 1rem + 5vw, 5rem); border-block: 1px solid var(--hairline); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scroll 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.6rem; }
.marquee__track span::before { content: "✦"; color: var(--lime-deep); }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ── Section heads ───────────────────────────────────── */
.section-head { max-width: 30ch; margin-bottom: clamp(2rem, 1rem + 2vw, 3.2rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 0.8rem; color: var(--ink-soft); font-size: var(--step-1); max-width: 48ch; }
.section-head--light h2, .section-head--light p { color: var(--on-forest); }
.section-head--light p { opacity: 0.85; }

/* ── Features ────────────────────────────────────────── */
.features { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.feat { padding: 1.6rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); transition: transform 300ms var(--ease-out), box-shadow 300ms ease, border-color 300ms ease; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feat__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--lime-tint); margin-bottom: 1rem; }
.feat__icon svg { fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat__icon .ic-check { stroke: var(--lime-deep); stroke-width: 2.2; } .feat__icon .ic-thin { stroke-width: 1.1; } .feat__icon .ic-thin, .feat__icon .ic-check { fill: none; }
.feat h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.feat p { color: var(--ink-soft); font-size: var(--step-0); }

/* ── How (dark band) ─────────────────────────────────── */
.how { background: var(--forest-deep); color: var(--on-forest); padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; position: relative; }
.how::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 90% 0%, oklch(0.84 0.19 128 / 0.14), transparent 60%); pointer-events: none; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; counter-reset: s; }
.step { padding: 1.8rem; border: 1px solid oklch(0.96 0.02 120 / 0.14); border-radius: var(--radius); background: oklch(0.96 0.02 120 / 0.04); position: relative; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); color: var(--forest-deep); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 1.1rem; }
.step h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.step p { color: oklch(0.96 0.02 120 / 0.78); }
.snippet { display: block; margin-top: 1rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.72rem; color: var(--lime); background: oklch(0.18 0.04 158); border: 1px solid oklch(0.96 0.02 120 / 0.12); border-radius: 10px; padding: 0.7rem 0.8rem; overflow-x: auto; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.pricing .section-head { margin-inline: auto; text-align: center; max-width: 40ch; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; align-items: start; }
.plan { padding: 1.8rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); position: relative; transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--featured { border-color: transparent; background: linear-gradient(180deg, var(--lime-tint), var(--paper) 42%); box-shadow: var(--shadow-lg); outline: 2px solid var(--lime); }
.plan__badge { position: absolute; top: -12px; left: 1.8rem; background: var(--lime); color: var(--forest-deep); font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.plan__name { font-size: var(--step-1); }
.plan__price { margin: 0.5rem 0 0.2rem; }
.plan__amt { font-family: var(--display); font-weight: 800; font-size: var(--step-3); }
.plan__per { color: var(--muted); font-weight: 600; }
.plan__for { color: var(--ink-soft); font-size: var(--step--1); min-height: 2.6em; }
.plan__list { list-style: none; padding: 1rem 0; margin: 1rem 0; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 0.6rem; font-size: var(--step--1); }
.plan__list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 13px; height: 8px; border-left: 2px solid var(--lime-deep); border-bottom: 2px solid var(--lime-deep); transform: rotate(-45deg); }
.plan__cta { width: 100%; }
.plans__note { text-align: center; margin-top: 1.6rem; color: var(--ink-soft); font-size: var(--step--1); }
.plans__note a { color: var(--lime-deep); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.faq__intro h2 { font-size: var(--step-3); }
.faq__intro p { margin-top: 0.8rem; color: var(--ink-soft); }
.faq__intro a { color: var(--lime-deep); font-weight: 600; }
.qa { border-bottom: 1px solid var(--hairline); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 18px; height: 18px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--lime-deep); transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.qa summary i::before { width: 100%; height: 2px; }
.qa summary i::after { width: 2px; height: 100%; }
.qa[open] summary i::after { transform: scaleY(0); opacity: 0; }
.qa__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.qa__body > p { overflow: hidden; color: var(--ink-soft); }
.qa[open] .qa__body { grid-template-rows: 1fr; }
.qa[open] .qa__body > p { padding-bottom: 1.15rem; }

/* ── Final CTA ───────────────────────────────────────── */
.cta { padding: clamp(2rem, 1rem + 3vw, 4rem) 0 clamp(3.5rem, 2rem + 6vw, 7rem); }
.cta__inner { text-align: center; background: var(--forest); color: var(--on-forest); border-radius: clamp(20px, 1rem + 2vw, 34px); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 1.5rem; position: relative; overflow: hidden; }
.cta__inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 50% 120%, oklch(0.84 0.19 128 / 0.3), transparent 70%); }
.cta__inner > * { position: relative; }
.cta h2 { font-size: var(--step-3); max-width: 18ch; margin-inline: auto; }
.cta p { margin: 0.9rem auto 1.8rem; color: oklch(0.96 0.02 120 / 0.85); font-size: var(--step-1); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.cta .btn--quiet { background: oklch(0.96 0.02 120 / 0.12); color: var(--on-forest); }
.cta .btn--quiet:hover { background: oklch(0.96 0.02 120 / 0.2); }

/* ── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); padding-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand p { color: var(--muted); margin-top: 0.7rem; max-width: 32ch; font-size: var(--step--1); }
.footer__col h4 { font-family: var(--body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.8rem; }
.footer__col a { display: block; color: var(--ink-soft); padding: 0.25rem 0; font-size: var(--step--1); }
.footer__col a:hover { color: var(--lime-deep); }
.footer__bar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--hairline); padding: 1.2rem 0; color: var(--muted); font-size: var(--step--1); }

/* ── Scroll reveal ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 60ms; }
.reveal:nth-child(3) { transition-delay: 120ms; }
.reveal:nth-child(4) { transition-delay: 180ms; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { max-width: 420px; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 0.5rem 1.25rem 1rem;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.7rem 0; border-bottom: 1px solid var(--hairline); }
  .nav__links a::after { display: none; }
  .nav__actions .btn--solid { padding-inline: 0.9rem; }
}
@media (max-width: 560px) {
  .nav__actions .btn--ghost { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .demo-browser__body { height: 380px; }
  .chat { width: calc(100% - 36px); }
}

/* ── Reduced motion ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, .demo-launcher, .chat__status i { animation: none; }
}

@media (hover: none) {
  .feat:hover, .plan:hover { transform: none; }
}

/* ── Legal pages ─────────────────────────────────── */
.legal {
  max-width: 74ch;
  margin: 0 auto;
  padding: 5rem 0 8rem;
}
.legal__title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .5rem;
}
.legal__meta {
  color: var(--muted);
  font-size: var(--step--1);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1.25rem;
}
.legal__meta a { color: var(--lime-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal h2 {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--ink);
  margin: 3rem 0 .75rem;
}
.legal h3 {
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 .5rem;
}
.legal p { color: var(--ink-soft); line-height: 1.8; margin-bottom: .85rem; }
.legal ul, .legal ol { color: var(--ink-soft); line-height: 1.8; padding-left: 1.5rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--lime-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal code { font-family: ui-monospace, monospace; font-size: .88em; background: var(--paper-2); border-radius: 4px; padding: .1em .35em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--step--1); overflow-x: auto; display: block; }
.legal th { text-align: left; font-weight: 600; color: var(--ink); padding: .6rem .8rem; background: var(--paper-2); border-bottom: 2px solid var(--hairline); white-space: nowrap; }
.legal td { padding: .55rem .8rem; border-bottom: 1px solid var(--hairline); color: var(--ink-soft); vertical-align: top; }
.legal tr:last-child td { border-bottom: none; }
.legal .toc { background: var(--paper-2); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.legal .toc p { margin: 0 0 .5rem; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.legal .toc ol { margin: 0; padding-left: 1.2rem; }
.legal .toc li { margin-bottom: .2rem; font-size: var(--step--1); }
.legal .toc a { color: var(--lime-deep); }
.legal .notice { background: var(--lime-tint); border-left: 3px solid var(--lime-deep); border-radius: 0 10px 10px 0; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.legal .notice p { margin: 0; color: var(--ink); }
[data-lang-content] { display: none; }
[data-lang-content].is-active { display: block; }
