/* MikroWiFi site styles, shared by every static page.
   The CSP allows no script, so everything interactive here (the billing
   period switch, the FAQ) is plain HTML and CSS. */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}

:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #080d14;
  --surface: #0c131c;
  --surface-2: #111a25;
  --line: rgba(148, 196, 214, 0.12);
  --line-2: rgba(148, 196, 214, 0.2);
  --ink: #eaf3f7;
  --muted: #93a7b3;
  --faint: #667a86;
  --accent: #22d3ee;
  --brand: #0e7490;
  --brand-ink: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --grad: linear-gradient(95deg, #5eead4 0%, #22d3ee 45%, #38bdf8 100%);
  --glow: rgba(14, 116, 144, 0.45);
  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75);
  --header: rgba(5, 8, 13, 0.72);

  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 20px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f9fb;
    --bg-2: #edf4f7;
    --surface: #ffffff;
    --surface-2: #f1f7f9;
    --line: rgba(12, 44, 60, 0.1);
    --line-2: rgba(12, 44, 60, 0.18);
    --ink: #0a1620;
    --muted: #4a5f6d;
    --faint: #6d808c;
    --accent: #0e7490;
    --ok: #059669;
    --warn: #b45309;
    --grad: linear-gradient(95deg, #0d9488 0%, #0e7490 50%, #0369a1 100%);
    --glow: rgba(34, 211, 238, 0.28);
    --shadow: 0 30px 70px -28px rgba(10, 40, 60, 0.35);
    --header: rgba(245, 249, 251, 0.78);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  /* Anchored sections land below the sticky header, not under it. */
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* The page runs under the notch (viewport-fit=cover); keep text clear of
   it in landscape. */
.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* Icons: one inline sprite per page, drawn with the text colour. */
.i {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 18px/1 var(--display); letter-spacing: -0.02em; text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
  transition: color 160ms ease, background-color 160ms ease;
}
.nav a[aria-current="page"] { color: var(--ink); }
.header-cta { margin-left: 8px; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--display); letter-spacing: -0.005em; text-decoration: none;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--brand); color: var(--brand-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px -10px var(--glow);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 10px; }
.btn .i { width: 18px; height: 18px; }

/* Store badges, drawn rather than images so they stay sharp and themed. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 176px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #0b1118; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: transform 160ms var(--ease-out), border-color 160ms ease, background-color 160ms ease;
}
.store:active { transform: scale(0.97); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store small { display: block; font: 500 11px/1.2 var(--text); opacity: 0.78; letter-spacing: 0.01em; }
.store strong { display: block; font: 650 18px/1.15 var(--display); letter-spacing: -0.01em; }
@media (prefers-color-scheme: light) { .store { background: #0a1620; border-color: #0a1620; } }

/* Every hover lives behind a pointer that can hover: on touch a tap
   leaves :hover stuck on. */
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); background: var(--surface-2); }
  .btn-primary:hover { background: #0c8aa9; }
  .btn-ghost:hover { border-color: var(--accent); }
  .store:hover { border-color: rgba(255, 255, 255, 0.4); background: #101a24; }
  .foot a:hover { color: var(--ink); }
  .text-link:hover { text-decoration-color: currentColor; }
  .toc a:hover, .crumbs a:hover { color: var(--accent); }
}

.text-link {
  color: var(--accent); font-weight: 600; text-decoration: underline;
  text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; padding: 72px 0 40px; }
.hero::before {
  /* Decorative light behind the phones; static, so nothing on the page
     moves until someone scrolls or taps. */
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font: 600 13px/1 var(--display); color: var(--muted); letter-spacing: 0;
  text-transform: none;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in oklab, var(--ok) 22%, transparent); }
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 750;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 34em; }
.hero .stores { margin-top: 30px; }
.hero-note { margin-top: 16px; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .i { width: 16px; height: 16px; color: var(--ok); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-visual .phone.front { width: min(300px, 70%); z-index: 2; transform: translateX(14%); }
.hero-visual .phone.back {
  position: absolute; width: min(250px, 58%); z-index: 1; left: 2%; top: 10%;
  transform: rotate(-7deg); opacity: 0.9;
}
.ticket {
  position: absolute; z-index: 3; left: 0; bottom: 6%; width: min(230px, 52%);
  background: #fff; border-radius: 14px; padding: 10px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(-4deg);
}
.ticket img { border-radius: 6px; }
.ticket::before, .ticket::after {
  /* The notches of a tear-off receipt. */
  content: ""; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--bg);
}
.ticket::before { left: -7px; }
.ticket::after { right: -7px; }
.float-chip {
  position: absolute; z-index: 3; right: -2%; top: 48%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font: 600 14px/1.25 var(--display);
}
.float-chip small { display: block; color: var(--muted); font: 500 12px/1.3 var(--text); }
.float-chip .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.float-chip .ico .i { width: 18px; height: 18px; }

/* ---------- Phone frame around real app screenshots ---------- */

.phone {
  position: relative; aspect-ratio: 1206 / 2622;
  padding: 2.4%;
  /* Two-value radii keep the corners round at any width. */
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #5a6570 0%, #171d24 24%, #0a0e13 50%, #1e252d 78%, #56606b 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 3px #05070a, var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 13% / 6%; background: #101418; }

/* ---------- Trust strip ---------- */

.strip { padding: 28px 0 8px; }
.strip ul {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  color: var(--faint); font: 600 14px/1.4 var(--display); letter-spacing: 0.01em;
}
.strip li { display: inline-flex; align-items: center; gap: 8px; }
.strip .i { width: 18px; height: 18px; color: var(--accent); }

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

.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 14px 0 14px; letter-spacing: -0.025em; }
.section-head p { color: var(--muted); font-size: 18px; }

/* How it works */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px;
  border-radius: 11px; background: var(--grad); color: #04222b;
  font: 750 16px/1 var(--display);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Feature rows: text beside the real screens */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-media { order: -1; }
.feature-text h3 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; margin: 14px 0 14px; }
.feature-text > p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks .i { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.checks strong { font-weight: 600; }
.feature-media {
  position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; gap: 18px;
  padding: 48px 24px; border-radius: 28px; min-height: 520px;
  background:
    radial-gradient(70% 60% at 50% 40%, var(--glow), transparent 75%),
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.feature-media .phone { width: min(250px, 46%); }
.feature-media .phone.solo { width: min(270px, 62%); }
.feature-media .phone.lift { transform: translateY(-22px); }
.feature-media .portal {
  width: min(250px, 46%); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line-2); background: #fff;
}
.feature-media .ticket { position: absolute; left: auto; right: 7%; bottom: 9%; width: min(200px, 40%); transform: rotate(5deg); }
.feature-media .ticket::before, .feature-media .ticket::after { background: var(--surface); }

/* Screens drift up as they arrive: a scroll-linked, compositor-only
   effect where the browser supports it, and nothing at all where it does
   not or when motion is reduced. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(32px) scale(0.98); }
    }
  }
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.card .ico {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 12px; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 15px; }

/* Who it's for */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.use .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.use h3 { font-size: 18px; margin-bottom: 6px; }
.use p { color: var(--muted); font-size: 15px; }

/* Privacy band */
.privacy-band {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 32px;
  background:
    radial-gradient(60% 80% at 100% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.privacy-band h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; margin: 14px 0 14px; }
.privacy-band > div > p { color: var(--muted); font-size: 17px; }
.privacy-band .checks { margin-top: 0; }

/* ---------- Pricing ---------- */

.billing {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 36px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
}
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font: 600 14.5px/1 var(--display); color: var(--muted);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.billing label span { font-size: 12px; color: var(--ok); }
.billing input:checked + label { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.billing input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pricing { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.plan.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 24px 60px -30px var(--glow);
}
.plan .tag {
  position: absolute; top: -12px; left: 24px;
  padding: 5px 10px; border-radius: 999px; background: var(--grad); color: #04222b;
  font: 700 12px/1 var(--display); letter-spacing: 0.02em;
}
.plan h3 { font-size: 20px; }
.plan .for { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 4px; min-height: 2.9em; }
.price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.price .amt { font: 750 42px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 14px; }
.billed { color: var(--faint); font-size: 13px; min-height: 1.6em; }
.plan ul { list-style: none; margin: 20px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.plan .limits { margin-top: auto; padding-top: 20px; color: var(--faint); font-size: 13px; }

/* Billing period switch. The monthly figures are the default; without
   :has() the switch is hidden and they stay. */
.p-s, .p-y { display: none; }
.pricing:has(#p-s:checked) .p-m, .pricing:has(#p-y:checked) .p-m { display: none; }
.pricing:has(#p-s:checked) .p-s, .pricing:has(#p-y:checked) .p-y { display: inline; }
@supports not selector(:has(*)) { .billing { display: none; } }

.fine { color: var(--faint); font-size: 14px; text-align: center; margin-top: 24px; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color 160ms ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font: 600 17px/1.4 var(--display); letter-spacing: -0.01em;
  -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 20px; height: 20px; color: var(--muted); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--accent); }
/* Opening an answer grows it instead of snapping, where supported. */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Closing call to action ---------- */

.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: 32px;
  background:
    radial-gradient(60% 90% at 50% 0%, var(--glow), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-2);
}
.cta-band img.mark { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 16px 40px -12px var(--glow); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.025em; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 14px auto 28px; max-width: 32em; }
.cta-band .stores { justify-content: center; }

/* ---------- Footer ---------- */

.foot { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot .brand { color: var(--ink); }
.foot h2 { font: 650 13px/1 var(--display); color: var(--ink); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot a { text-decoration: none; transition: color 160ms ease; }
.foot .about p { margin-top: 14px; max-width: 26em; }
.foot .legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: 13px; }

/* ---------- Document pages (privacy, terms, account deletion) ---------- */

.doc-hero { padding: 64px 0 8px; }
.doc-hero .wrap, .doc .wrap { max-width: 800px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs .sep { opacity: 0.6; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.03em; margin: 18px 0 12px; }
.doc-hero .meta { color: var(--muted); font-size: 15px; }
.summary {
  margin-top: 28px; padding: 22px 24px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 16px;
}
.summary strong { color: var(--ink); }
.toc { margin-top: 20px; padding: 18px 24px; border-radius: 18px; border: 1px solid var(--line); }
.toc h2 { font: 650 13px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; columns: 2; column-gap: 24px; font-size: 15px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--muted); text-decoration: none; }
.doc { padding: 24px 0 96px; }
.prose { font-size: 16.5px; line-height: 1.75; color: color-mix(in oklab, var(--ink) 88%, var(--muted)); }
.prose h2 { font-size: 23px; letter-spacing: -0.02em; margin: 44px 0 10px; color: var(--ink); scroll-margin-top: 84px; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; color: var(--ink); }
.prose p { margin: 10px 0; }
.prose ul, .prose ol { margin: 10px 0 10px 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.panel { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin-top: 18px; }
.panel h2 { margin-top: 0; }
.panel.warn { border-color: color-mix(in oklab, var(--warn) 45%, transparent); }
.panel .badge {
  display: inline-block; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px;
  font: 700 12px/1 var(--display); letter-spacing: 0.03em; color: var(--accent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
}
.timeline { list-style: none; margin: 14px 0 0 !important; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; margin: 0 !important; }
.timeline li::before {
  content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.timeline li::after { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; color: var(--ink); }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink);
  /* 16px or iOS zooms the page into the field. */
  font: 16px/1.4 var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.form .btn { justify-self: start; }

/* 404 */
.lost { padding: 120px 0 40px; text-align: center; }
.lost .code { font: 800 clamp(88px, 16vw, 160px)/1 var(--display); letter-spacing: -0.06em; }
.lost h1 { font-size: clamp(26px, 4vw, 36px); margin: 12px 0 10px; }
.lost p:not(.code) { color: var(--muted); font-size: 18px; margin-bottom: 28px; }
.lost .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 0; padding: 12px 0 8px; max-width: 460px; width: 100%; margin: 0 auto; }
  .feature, .privacy-band { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .uses { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .privacy-band { padding: 36px 28px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .steps, .grid, .uses, .plans { grid-template-columns: 1fr; }
  .feature-media { min-height: 0; padding: 32px 16px; }
  .feature-media .phone { width: 46%; }
  .hero-visual .phone.front { width: 62%; transform: translateX(12%); }
  .hero-visual .phone.back { width: 50%; }
  .float-chip { top: 46%; right: 0; padding: 10px 12px; font-size: 13px; }
  .float-chip .ico { width: 30px; height: 30px; }
  .ticket { width: 48%; }
  .store { flex: 1 1 160px; justify-content: center; }
  .billing { display: flex; }
  .billing label { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13.5px; flex-direction: column; gap: 4px; }
  .cta-band { padding: 56px 20px; }
  .toc ol { columns: 1; }
  .panel { padding: 22px; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
