/* ReFlight landing page. Same visual language as the app: black-and-white
   surfaces, Space Grotesk headings, Inter body. The logo is a split-flap tile,
   charcoal cut across the middle; the landing borrows that "flap" for numbers. */
/* Fonts are self-hosted (latin subset of the Google Fonts variable files, SIL OFL)
   so the page doesn't wait on a request chain to fonts.googleapis.com. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/space-grotesk-latin.woff2) format("woff2"); }
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --fg: #0a0a0a;
  --muted: #5f6470;
  --faint: #9aa0ab;
  --line: #e8e8ea;
  --card: #ffffff;
  --accent: #0a0a0a;
  --on-accent: #ffffff;
  --live: #16a34a;
  --danger: #dc2626;
  --flap-top: #2A2A2A;       /* the logo's charcoal halves */
  --flap-bottom: #141414;
  /* the cut is part of the background, so it passes behind the digits, not over them */
  --flap-split: linear-gradient(var(--flap-top) calc(50% - .5px), #000 calc(50% - .5px) calc(50% + .5px), var(--flap-bottom) calc(50% + .5px));
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 60px rgba(0,0,0,.08);
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  /* One motion curve for the whole page: a fast start that settles without
     overshoot, the CSS stand-in for a critically damped spring. */
  --settle: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a; --bg-soft: #121214; --fg: #f5f5f6; --muted: #a3a7b0; --faint: #6b6f78;
    --line: rgba(255,255,255,.1); --card: #151517; --accent: #f5f5f6; --on-accent: #0a0a0a;
    --live: #22c55e; --danger: #f87171; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.45);
    color-scheme: dark;
  }
  /* charcoal tiles on a near-black page need a lit edge to stay visible */
  .flap, .steps li::before { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 8px 20px rgba(0,0,0,.4); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Anchor targets stop below the sticky header instead of underneath it. */
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 20; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(40px, 6.8vw, 70px); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }

/* buttons: feedback lands on the press itself, not on release */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 12px 20px; border-radius: 11px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); cursor: pointer; transition: opacity .15s, transform .3s var(--settle); }
@media (hover: hover) {
  .btn:hover { opacity: .86; }
  .btn-ghost:hover { opacity: 1; border-color: var(--faint); }
}
.btn:active:not(:disabled) { transform: scale(.96); opacity: .8; transition-duration: .08s; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-small { font-size: .875rem; padding: 8px 14px; border-radius: 9px; }

/* header */
/* A translucent layer the page scrolls under. Its hairline only appears once
   there's content beneath it to separate from. */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--line); }
@supports (animation-timeline: scroll()) {
  .site-header { border-bottom-color: transparent; animation: header-edge linear both; animation-timeline: scroll(); animation-range: 0 48px; }
  @keyframes header-edge { to { border-bottom-color: var(--line); } }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; border-bottom-color: var(--fg); }
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; }
.brand img { border-radius: 17.6%; }
.brand b { font-weight: inherit; }
nav { display: flex; align-items: center; gap: 22px; }
nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .9375rem; transition: color .15s; }
nav a:not(.btn):hover, nav a:not(.btn):active { color: var(--fg); }

/* hero: copy centred above a full-width working preview */
.hero { padding-block: 72px 96px; overflow-x: clip; }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 8vw, 88px); line-height: 1; letter-spacing: -.045em; }
.lead { font-size: 1.1875rem; line-height: 1.55; letter-spacing: -.011em; color: var(--muted); margin-top: 24px; max-width: 36em; }
.lead strong { color: var(--fg); font-weight: 600; }
.fine { font-size: .875rem; color: var(--faint); margin-top: 16px; max-width: 34em; }
.hero .signup { margin-top: 36px; }

/* The flap: the logo's tile, reused wherever the page shows a number or version. */
.flap { display: inline-grid; place-items: center; min-width: 2.4em; padding: .35em .6em; border-radius: 8px;
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; color: #f5f5f6;
  background: var(--flap-split); box-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* working preview */
.stage { position: relative; margin-top: 64px; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; font-size: 14px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-title { flex: 1; text-align: center; margin-right: 42px; font-size: 12px; font-weight: 600; color: var(--faint); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; }
.mock-side { border-right: 1px solid var(--line); padding: 16px 12px; background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
/* app switcher: the open app is ringed */
.mock-switch { display: flex; gap: 8px; margin: 0 4px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-switch .app-icon { width: 28px; height: 28px; opacity: .55; }
.mock-switch .app-icon.on { opacity: 1; outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 8px; }
.mock-app { display: flex; align-items: center; gap: 10px; margin: 0 4px 20px; font-weight: 600; font-size: 13px; line-height: 1.3; }
.mock-app em { display: block; font-style: normal; font-weight: 500; font-size: 11px; color: var(--faint); }
.mock-app .app-icon { width: 34px; height: 34px; }
.mock-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 6px 8px; }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-row em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 11px; color: var(--faint); }
.mock-row.on { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); opacity: .5; flex: none; }
.dot.live { background: var(--live); opacity: 1; }
.dot.edit { background: var(--accent); opacity: 1; }
.mock-main { padding: 18px; display: grid; gap: 14px; min-width: 0; align-content: start; }
.mock-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mock-head b { font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.mock-tag { font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.mock-hint { margin-left: auto; font-size: 12px; color: var(--faint); transition: opacity .3s; }
.mock:focus-within .mock-hint { opacity: 0; }
.mock-save { margin-left: 8px; font: inherit; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 12px; cursor: pointer; transition: opacity .15s, transform .3s var(--settle), background-color .2s; }
.mock-save:active:not(:disabled) { transform: scale(.94); transition-duration: .08s; }
.mock-save:disabled { cursor: default; opacity: .4; }
.mock-save.is-saved { opacity: 1; background: var(--live); color: #fff; animation: pop .45s var(--settle); }
@keyframes pop { from { transform: scale(.9); } }
.mock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mock-card { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; position: relative; cursor: text; background: var(--card); transition: border-color .15s, box-shadow .2s; }
/* Bar: this locale has text for the version being edited. Red: something to fix. */
.mock-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); transition: background-color .15s; }
.mock-card:hover { border-color: color-mix(in srgb, var(--faint) 60%, var(--line)); }
.mock-card:focus-within { border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 8%, transparent); }
.mock-card.is-flagged::before { background: var(--danger); }
.mock-loc { display: block; font-weight: 600; font-size: 12px; margin-bottom: 6px; }
.mock-card textarea { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; resize: none; overflow: hidden; font: inherit; color: var(--muted); line-height: 1.5; caret-color: var(--fg); }
.mock-card textarea:focus { outline: none; color: var(--fg); }
.mock-foot { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-size: 11px; letter-spacing: .01em; }
.mock-flag { color: var(--danger); font-weight: 600; }
.mock-flag:empty { display: none; }
.mock-card.is-over .mock-count { color: var(--danger); }
.mock-count { margin-left: auto; color: var(--faint); font-variant-numeric: tabular-nums; }
/* iOS zooms into any field under 16px when it's focused; touch screens get readable text instead. */
@media (pointer: coarse) { .mock-card textarea { font-size: 16px; } }

/* Icons of the made-up apps in the illustrations (SVG sprite in index.html). */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-icon { display: block; flex: none; width: 44px; height: 44px; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.18)); }

/* sections */
.section { padding-block: 112px; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; }
.section h2 + .sub { color: var(--muted); margin-top: 12px; font-size: 1.0625rem; }
.steps p, .split p, .tile > p { color: var(--muted); margin-top: 8px; }

/* features: a bento grid, each tile showing the feature instead of only describing it */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.tile { grid-column: span 3; background: var(--bg-soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.tile.span-2 { grid-column: span 2; }
.tile.span-4 { grid-column: span 4; }
/* The illustration takes whatever height the row gives the tile, centred in it; the text sits below. */
.viz { flex: 1; min-height: 168px; margin-bottom: 28px; display: flex; align-items: center; font-size: 13px; }
.viz em { font-style: normal; }
/* small white cards inside the grey tiles */
.viz-apps > span, .viz-locales > span, .viz-checks > span, .viz-diff p { background: var(--card); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 1px var(--line); }

/* one row of equal cards, as tall as the tallest, centred in the tile */
.viz-apps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-content: center; gap: 12px; }
.viz-apps > span { flex: 1; min-width: 0; padding: 16px; display: grid; gap: 10px; align-content: start; }
.viz-apps b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-apps em { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.viz-locales, .viz-checks { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.viz-locales > span, .viz-checks > span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; position: relative; }
.viz-locales em, .viz-checks em { margin-left: auto; font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
.viz-locales > span::before { content: ""; width: 3px; height: 14px; border-radius: 3px; background: var(--accent); }

.viz-reuse { flex-wrap: wrap; justify-content: center; align-content: center; gap: 14px; }
.viz-reuse .flap { font-size: 22px; }
.viz-reuse em { flex-basis: 100%; text-align: center; color: var(--muted); }
.arrow { width: 36px; height: 2px; background: var(--faint); position: relative; flex: none; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid var(--faint); border-width: 2px 2px 0 0; transform: rotate(45deg); }

.viz-diff p { padding: 18px 20px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.viz-diff del { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-radius: 4px; padding: 1px 3px; }
.viz-diff ins { color: var(--fg); text-decoration: none; background: color-mix(in srgb, var(--live) 16%, transparent); border-radius: 4px; padding: 1px 3px; }

.viz-checks > span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.viz-checks > .bad::before { background: var(--danger); }
.viz-checks > .bad em { color: var(--danger); font-weight: 600; }

.viz-fan { justify-content: center; gap: 14px; flex-wrap: wrap; }
.viz-fan .flap { font-size: 15px; }
.fan { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.fan b { background: var(--card); box-shadow: 0 0 0 1px var(--line); border-radius: 7px; padding: 4px 8px; font-weight: 600; font-size: 12px; text-align: center; }
.csv { flex-basis: 100%; text-align: center; color: var(--muted); font-weight: 600; font-size: 12px; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.split p { max-width: 36em; margin-top: 12px; }
.h2-follow { margin-top: 40px; }
.versions { list-style: none; margin: 0; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.versions li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.versions li:first-child { background: var(--bg-soft); }
.versions li em { margin-left: auto; font-style: normal; font-weight: 500; font-size: .8125rem; color: var(--muted); }
.versions li.muted { opacity: .55; }

/* steps: numbered with flap tiles, like a departures board */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 56px; border-radius: 10px; margin-bottom: 20px;
  font-family: var(--display); font-size: 28px; font-weight: 700; color: #f5f5f6;
  background: var(--flap-split); box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 8px 20px rgba(0,0,0,.12); }

.roadmap { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.roadmap li { border: 1px dashed var(--faint); border-radius: 999px; padding: 8px 16px; color: var(--muted); font-size: .9375rem; }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 28px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.005em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: opacity .15s; }
summary:active { opacity: .6; transition-duration: 0s; }
summary::-webkit-details-marker { display: none; }
/* The plus is two bars; opening folds the vertical one away, so it becomes a minus in place. */
summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--faint);
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: background-size .3s var(--settle), color .15s; }
summary:hover::after { color: var(--fg); }
details[open] summary::after { background-size: 14px 1.5px, 1.5px 0; }
/* Where the browser can animate to height: auto, the answer unfolds instead of popping in. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  details { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; opacity: 0; overflow: clip; transition: block-size .35s var(--settle), opacity .25s, content-visibility .35s allow-discrete; }
  details[open]::details-content { block-size: auto; opacity: 1; }
}
details p { color: var(--muted); margin-top: 10px; max-width: 42em; }

/* final call to action: a charcoal panel, the same in both themes */
.final { text-align: center; padding-top: 0; }
.final-inner { display: grid; justify-items: center; gap: 26px; position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 24px; border-radius: 32px; color: #f5f5f6; background: var(--flap-bottom); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.final-inner::before { content: ""; position: absolute; inset: -40% 10% 45%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.1), transparent); filter: blur(30px); }
.final-mark { border-radius: 22%; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.final h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -.035em; max-width: 14em; }
.final .signup { margin-top: 4px; }
.final .signup input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #f5f5f6; }
.final .signup input::placeholder { color: rgba(255,255,255,.4); }
.final .signup input:focus { border-color: #f5f5f6; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.final .btn { background: #f5f5f6; border-color: #f5f5f6; color: #0a0a0a; }
.final .signup-msg { color: rgba(255,255,255,.7); }
.final :focus-visible { outline-color: #f5f5f6; }
.final .signup.is-done .signup-msg::before { background: #f5f5f6; color: #0a0a0a; }
.final .signup.is-done .signup-msg { color: #f5f5f6; background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }

.site-footer { border-top: 1px solid var(--line); padding-block: 28px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { font-size: 16px; }
.site-footer p { color: var(--faint); font-size: .8125rem; }

/* early-access signup (Kit) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; max-width: 480px; }
.signup input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; transition: border-color .15s, box-shadow .2s; }
.signup input:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 8%, transparent); }
/* Flag a mistyped address once the person has finished with the field, not while they type. */
.signup input:user-invalid { border-color: var(--danger); }
.signup .btn { flex: none; cursor: pointer; font-family: inherit; }
.signup .btn:disabled { opacity: .6; cursor: default; }
.signup-msg { flex-basis: 100%; margin: 0; font-size: .875rem; color: var(--muted); }
.signup-msg:empty { display: none; }
.signup.is-error .signup-msg { color: var(--danger); }
/* signed up: the field and button give way to a note */
.signup.is-done input, .signup.is-done .btn { display: none; }
.signup.is-done .signup-msg { display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: .9375rem; line-height: 1.5; color: var(--fg); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 13px 16px; animation: materialize .5s var(--settle); }
/* The note arrives as a surface coming into focus rather than a flat fade. */
@keyframes materialize { from { opacity: 0; filter: blur(6px); transform: scale(.97); } }
.signup.is-done .signup-msg::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; margin-top: 1px; }
.signup-center { margin: 0 auto; justify-content: center; width: 100%; }
.fine a { color: var(--muted); }

/* responsive */
@media (max-width: 900px) {
  .hero { padding-block: 48px 72px; }
  .stage { margin-top: 48px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 88px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.span-2, .tile.span-4 { grid-column: span 1; }
  .mock-body { grid-template-columns: 168px 1fr; }
  .mock-cards { grid-template-columns: 1fr; }
  .mock-hint { display: none; }
  .mock-save { margin-left: auto; }
}
@media (max-width: 600px) {
  nav a:not(.btn) { display: none; }
  .steps, .bento { grid-template-columns: 1fr; gap: 28px; }
  .bento { gap: 12px; }
  .tile { padding: 22px; }
  .section { padding-block: 64px; }
  .final { padding-top: 0; }
  .final-inner { padding: 56px 20px; border-radius: 24px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-title { margin-right: 0; }
  .lead { font-size: 1.0625rem; }
  .viz { min-height: 0; }
  .viz-apps > span:nth-child(3) { display: none; }
}

/* Reduced motion keeps the feedback but drops movement: no scaling, no unfolding,
   short fades only. */
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled), .mock-save:active:not(:disabled) { transform: none; }
  .mock-save.is-saved { animation: none; }
  .signup.is-done .signup-msg { animation: fade .2s; }
  details::details-content { transition: none !important; }
  summary::after { transition: none; }
}
@keyframes fade { from { opacity: 0; } }
