/* RouterSync site, in the app's sign world (DESIGN.md): coral is wayfinding and
   nothing else, night blue deep carries pictograms on square plates, Signika
   speaks on signs and titles, sign colours stay the same in light and dark. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Signika (SIL Open Font License, /assets/fonts/Signika-OFL.txt), Latin subset. */
@font-face {
  font-family: "Signika";
  src: url("/assets/fonts/Signika-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Signika";
  src: url("/assets/fonts/Signika-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f3f5f9;
  --bg-tint: #e9eef6;
  --surface: #fbfcfe;
  --ink: #0e1a2d;
  --ink-2: #44506a;
  --line: #d9e0eb;
  --blue: #23508f;
  /* Sign colours: identical in both themes. */
  --coral: #ff7a63;
  --night: #213a5e;
  --deep: #0e1a2d;
  --on-sign: #eef3fa;
  --on-sign-2: rgb(238 243 250 / 0.78);
  --error-text: #b23a2a;
  /* The primary action: night deep on a light page, light on a dark one. */
  --action-bg: var(--deep);
  --action-ink: var(--on-sign);
  --radius-sign: 8px;
  --gutter: 24px;
  --radius-control: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sign-font: "Signika", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1220;
    --bg-tint: #0f1a2c;
    --surface: #111c2e;
    --ink: #e8eef7;
    --ink-2: #a3b2c9;
    --line: #1f2c42;
    --blue: #8fb3ee;
    --error-text: #ff9b88;
    --action-bg: var(--on-sign);
    --action-ink: var(--deep);
    --sign-edge: 0 0 0 1px rgb(238 243 250 / 0.1);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  /* The hero sign hangs to the window's edge: nothing may scroll sideways. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--night); color: var(--on-sign); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
@media (max-width: 640px) { :root { --gutter: 18px; } }

h1, h2, h3 { margin: 0; font-family: var(--sign-font); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; }
/* "Wi-Fi" stays on one line (build_site.py wraps it). */
.nw { white-space: nowrap; }
h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); line-height: 1.06; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36ch; line-height: 1.5; }
.body { color: var(--ink-2); max-width: 60ch; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Accessibility helpers */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: the app's sign button, a coral arrow plate and the label */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 0; border-radius: var(--radius-control);
  font: 600 1rem/1 var(--font); letter-spacing: -0.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--action-bg); color: var(--action-ink); box-shadow: none; padding-left: 8px; }
.btn-primary::before {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 6px;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230e1a2d'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.btn-primary:hover { opacity: 0.92; }
.btn-small { min-height: 40px; padding: 0 14px 0 6px; font-size: 0.94rem; border-radius: 8px; }
.btn-small::before { width: 28px; height: 28px; border-radius: 5px; background-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--ink); text-decoration: none; }
.link-arrow:hover { color: var(--blue); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

.signup { display: grid; gap: 8px; max-width: 470px; }
.signup label { font-size: 0.92rem; font-weight: 550; color: var(--ink); }
.signup-row { display: flex; gap: 8px; }
.signup input[type="email"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--surface); color: var(--ink);
  font: 400 1rem var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup input[type="email"]::placeholder { color: #66728a; }
@media (prefers-color-scheme: dark) { .signup input[type="email"]::placeholder { color: #8d9bb3; } }
.signup input[type="email"]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.signup-note { font-size: 0.88rem; color: var(--ink-2); min-height: 1.4em; }
.signup-note[data-state="error"] { color: var(--error-text); font-weight: 550; }
.signup-note[data-state="done"] { color: var(--ink); font-weight: 550; }
@media (max-width: 480px) { .signup-row { flex-direction: column; } .signup .btn { width: 100%; justify-content: flex-start; } }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.12rem var(--sign-font); color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.lang { font-weight: 600 !important; font-size: 0.9rem !important; }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } .nav .wrap { gap: 16px; } }
@media (max-width: 420px) { .nav-links { gap: 14px; } .nav .btn-small { font-size: 0.88rem; } }
@media (max-width: 350px) { .brand span { display: none; } }

/* Hero and the sign story */
.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.story-copy { display: grid; }
.hero-copy { min-height: calc(100dvh - 66px); display: grid; align-content: center; gap: 26px; padding-block: 40px 72px; }
.hero-copy .secondary { font-size: 0.98rem; }
/* The hero sign hangs from the right edge of the window, like an overhead sign;
   its readouts and action stay on the page grid. */
.sign-col {
  --bleed: calc(max(0px, (100vw - 1180px) / 2) + var(--gutter));
  position: sticky; top: 100px; padding-block: 44px;
  margin-right: calc(-1 * var(--bleed));
}
.sign-col .sign { border-radius: var(--radius-sign) 0 0 var(--radius-sign); }
.sign-col .sign-plate { width: clamp(80px, 8.5vw, 128px); }
.sign-col .sign-plate svg { width: clamp(34px, 3.6vw, 52px); }
.sign-col .sign-msg { padding: clamp(22px, 3vw, 40px) var(--bleed) clamp(22px, 3vw, 40px) clamp(22px, 3vw, 40px); gap: 8px; }
.sign-col .sign-title { font-size: clamp(3rem, 6.2vw, 6.2rem); }
.sign-col .sign-line { font-size: clamp(1.15rem, 1.9vw, 1.7rem); }
.sign-col .sign-strip { padding: 16px var(--bleed) 16px clamp(22px, 3vw, 32px); font-size: 1rem; }
.sign-col .sign-read .mono { font-size: 0.95rem; }
.sign-col .sign-segs i { width: 36px; height: 5px; }
.sign-col .sign-panel { padding: 4px var(--bleed) clamp(22px, 3vw, 32px) clamp(22px, 3vw, 32px); }
.sign-col .sign-btn { min-height: 68px; font-size: 1.2rem; gap: 16px; padding: 0 12px; }
.sign-col .sign-btn .plate { width: 46px; height: 46px; }
.sign-col .sign-btn .plate svg { width: 24px; height: 24px; }

.steps { display: grid; gap: 0; padding-bottom: 12vh; }
.step { min-height: 64vh; display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; align-content: center; align-items: start; max-width: 34rem; }
.step-text { display: grid; gap: 12px; }
/* The step's number on its own plate, lit coral while the sign shows that step. */
.step-num { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--deep); color: var(--on-sign); font: 700 1.4rem/1 var(--sign-font); box-shadow: var(--sign-edge, 0 0 #0000); transition: background-color 0.35s var(--ease), color 0.35s var(--ease); margin-top: 2px; }
.step.is-on .step-num { background: var(--coral); color: var(--deep); }
.step h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }

/* Between tablet and desktop the hero copy column is narrow: the waitlist field and button stack. */
@media (min-width: 901px) and (max-width: 1100px) {
  .hero-copy .signup-row { flex-direction: column; }
  .hero-copy .signup .btn { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-copy { display: contents; }
  .hero-copy { min-height: auto; padding-block: 36px 28px; grid-row: 1; }
  /* On a phone the sign spans the screen, edge to edge. */
  .sign-col { --bleed: var(--gutter); position: static; padding-block: 8px 24px; grid-row: 2; margin-inline: calc(-1 * var(--gutter)); }
  .sign-col .sign { border-radius: 0; }
  .sign-col .sign-title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .sign-col .sign-msg { padding-block: 18px; gap: 6px; }
  .sign-col .sign-strip { font-size: 0.88rem; padding-block: 10px; }
  .sign-col .sign-read .mono { font-size: 0.88rem; }
  .sign-col .sign-segs i { width: 20px; height: 4px; }
  .sign-col .sign-btn { min-height: 58px; font-size: 1.08rem; }
  .sign-col .sign-btn .plate { width: 38px; height: 38px; }
  .steps { grid-row: 3; padding-bottom: 24px; }
  .step { min-height: auto; padding-block: 26px; border-top: 1px solid var(--line); grid-template-columns: 40px 1fr; column-gap: 16px; }
  .step-num { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* The sign: an overhead airport sign, as at the top of the app */
.sign {
  background: var(--deep); color: var(--on-sign);
  border-radius: var(--radius-sign); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgb(14 26 45 / 0.5), var(--sign-edge, 0 0 #0000);
}
.sign-band { display: grid; grid-template-columns: auto 1fr; background: var(--coral); color: var(--deep); }
.sign-plate { position: relative; display: grid; place-items: center; width: clamp(64px, 7vw, 88px); background: var(--deep); color: var(--on-sign); }
.sign-plate svg { width: clamp(28px, 3vw, 38px); height: auto; }
.sign-plate > span { grid-area: 1 / 1; display: grid; place-items: center; opacity: 0; transform: translateY(40%); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.sign[data-stage="0"] .plate-0, .sign[data-stage="1"] .plate-1, .sign[data-stage="2"] .plate-2,
.sign[data-stage="3"] .plate-3, .sign[data-stage="4"] .plate-4 { opacity: 1; transform: none; }
.ticket-band .sign-plate svg { opacity: 1; }
.sign-msg { padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.4vw, 28px); display: grid; gap: 4px; min-width: 0; }
.sign-title { font: 700 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--sign-font); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.sign-line { display: flex; align-items: center; gap: 8px; font: 600 clamp(1.05rem, 1.5vw, 1.3rem)/1.25 var(--sign-font); min-height: 1.3em; overflow: hidden; }
.sign-line .line-arrow { width: 1.1em; height: 1.1em; flex: none; transition: opacity 0.3s; }
.sign:not([data-stage="0"]) .line-arrow { display: none; }
.sign-line [data-pass-line] { display: inline-block; }
.sign-line .reflip { animation: reflip 0.45s var(--ease); }
@keyframes reflip { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }

.sign-strip { display: flex; align-items: center; gap: 14px; padding: 12px clamp(18px, 2.4vw, 24px); font-size: 0.92rem; color: var(--on-sign-2); }
.sign-read { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sign-read svg { width: 16px; height: 16px; }
.sign-read .mono { font-size: 0.86rem; }
.sign-read-online { display: none; }
.sign[data-stage="4"] .sign-read-idle { display: none; }
.sign[data-stage="4"] .sign-read-online { display: inline-flex; }
.sign-segs { margin-left: auto; display: inline-flex; gap: 5px; }
.sign-segs i { width: 26px; height: 4px; border-radius: 2px; background: rgb(238 243 250 / 0.18); transition: background-color 0.35s var(--ease); }
.sign[data-stage="1"] .sign-segs i:nth-child(-n+1),
.sign[data-stage="2"] .sign-segs i:nth-child(-n+2),
.sign[data-stage="3"] .sign-segs i:nth-child(-n+3),
.sign[data-stage="4"] .sign-segs i { background: var(--coral); }

.sign-panel { padding: 4px clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px); }
.sign-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 10px;
  border: 0; border-radius: var(--radius-control); cursor: pointer;
  background: var(--on-sign); color: var(--deep); font: 600 1.08rem var(--font); text-align: left;
  transition: transform 0.15s var(--ease), opacity 0.2s;
}
.sign-btn:active { transform: scale(0.99); }
.sign-btn .plate { width: 38px; height: 38px; border-radius: 7px; background: var(--coral); display: grid; place-items: center; flex: none; }
.sign-btn .plate svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.sign-btn .again { display: none; }
.sign[data-stage="4"] .sign-btn .again { display: block; }
.sign[data-stage="4"] .sign-btn .plate > svg:first-child { display: none; }
/* While the sign re-signs, the action steps back like the app's (no grey, no dimmed coral). */
.sign[data-stage="1"] .sign-btn, .sign[data-stage="2"] .sign-btn, .sign[data-stage="3"] .sign-btn { background: rgb(238 243 250 / 0.08); color: var(--on-sign-2); cursor: default; }
.sign[data-stage="1"] .sign-btn .plate, .sign[data-stage="2"] .sign-btn .plate, .sign[data-stage="3"] .sign-btn .plate { background: rgb(238 243 250 / 0.12); color: var(--on-sign-2); }

@media (max-width: 520px) {
  .sign-strip { flex-wrap: wrap; row-gap: 8px; }
  .sign-segs i { width: 18px; }
}

/* Sections, ruled like the panels of a sign: a hairline between sections and
   between the columns of a section. */
.section { padding-block: clamp(72px, 9vw, 116px); border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: 48px; }

/* Where: the app at work */
.bento { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sign); overflow: hidden; background: var(--surface); }
.tile { background: var(--surface); display: grid; grid-template-rows: auto 1fr; align-content: start; }
.tile + .tile { border-left: 1px solid var(--line); }
/* One shot height across the panel, so the three titles share a line. */
@media (min-width: 961px) {
  .bento .tile .shot { height: 380px; min-height: 0; overflow: hidden; }
  .bento .tile-known .shot { display: flex; align-items: flex-end; }
}
.tile-copy { padding: 22px 24px 24px; display: grid; gap: 8px; }
.tile-copy p { color: var(--ink-2); font-size: 0.98rem; }
.tile .shot { background: var(--bg-tint); }
.tile-mac .shot { padding: 28px 22px 0; display: grid; place-items: end center; min-height: 360px; }
.tile-mac .shot picture, .tile-iphone .shot picture { display: contents; }
.tile-mac .shot img { width: 340px; max-width: 100%; border-radius: 10px 10px 0 0; box-shadow: 0 18px 40px -22px rgb(14 26 45 / 0.45), 0 0 0 1px var(--line); }
.tile-iphone .shot { padding: 28px 22px 0; height: 360px; overflow: hidden; }
.tile-iphone .shot img { width: 210px; margin-inline: auto; border-radius: 30px 30px 0 0; border: 6px solid #0b1220; border-bottom: 0; }
.tile-known .shot { padding: 28px 22px 0; }
.tile-known .shot img { border-radius: 10px 10px 0 0; }
.bento-note { margin-top: 18px; font-size: 0.86rem; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-known { grid-column: span 2; border-left: 0 !important; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-known { grid-column: auto; }
  .tile + .tile { border-left: 0; border-top: 1px solid var(--line); }
}

/* Trust */
.trust { background: var(--bg-tint); }
.trust-grid { display: grid; }
.trust-copy { display: grid; grid-template-columns: 0.9fr 1.1fr; grid-template-rows: auto 1fr; gap: 22px clamp(32px, 6vw, 88px); align-items: start; }
.trust-copy h2, .trust-copy .lede { grid-column: 1; }
.facts { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 0; border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); }
.fact { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact svg { width: 48px; height: 48px; padding: 11px; border-radius: 8px; background: var(--deep); color: var(--on-sign); box-shadow: var(--sign-edge, 0 0 #0000); }
.fact b { display: block; font: 600 1.12rem/1.3 var(--sign-font); }
.fact span { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 860px) {
  .trust-copy { grid-template-columns: 1fr; }
  .facts { grid-column: 1; grid-row: auto; margin-top: 10px; border-left: 0; padding-left: 0; }
  .fact:first-child { border-top: 1px solid var(--line); padding-top: 18px; }
}

/* Pro */
.pro { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pro-copy { display: grid; gap: 20px; position: sticky; top: 110px; }
.pro-list { display: grid; border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); }
.pro-item:first-child { padding-top: 0; }
.pro-buy { display: grid; gap: 8px; justify-items: start; }
.pro-buy .fine { font-size: 0.86rem; color: var(--ink-2); }
/* Pro features read as a gate list: plate, name, line, tag at the end. */
.pro-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 18px; align-items: start; padding-block: 20px; border-bottom: 1px solid var(--line); }
.pro-item .glyph { width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--deep); color: var(--on-sign); box-shadow: var(--sign-edge, 0 0 #0000); }
.pro-item .glyph svg { width: 24px; height: 24px; }
.pro-item h3 { font-size: 1.25rem; }
.pro-item p { color: var(--ink-2); font-size: 0.97rem; margin-top: 4px; }
.pro-item:has(.tag:not(.tag-live)) .glyph { background: var(--line); color: var(--ink-2); box-shadow: none; }
.tag { font: 600 0.8rem/1 var(--font); padding: 6px 10px; border-radius: 999px; white-space: nowrap; background: var(--line); color: var(--ink-2); }
.tag-live { background: var(--night); color: var(--on-sign); }
@media (max-width: 860px) { .pro { grid-template-columns: 1fr; } .pro-copy { position: static; } .pro-list { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .pro-item:first-child { padding-top: 20px; } }
@media (max-width: 520px) { .pro-item { grid-template-columns: 44px 1fr; } .pro-item .tag { grid-column: 2; justify-self: start; } .pro-item .glyph { width: 44px; height: 44px; } }

/* FAQ: compatibility as ruled rows, questions as "from here to" rows */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; align-items: start; }
.compat { display: grid; gap: 18px; padding-right: clamp(24px, 4vw, 48px); }
.compat dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.compat dl > div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.compat dt { font: 600 1.08rem var(--sign-font); }
.compat dd { margin: 2px 0 0; color: var(--ink-2); font-size: 0.97rem; }
.qa { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 48px); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child summary { padding-top: 0; }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; padding-block: 16px; font: 600 1.14rem/1.35 var(--sign-font); }
.qa summary::-webkit-details-marker { display: none; }
.q-plate { width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center; background: var(--deep); color: var(--on-sign); box-shadow: var(--sign-edge, 0 0 #0000); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.q-plate svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease); }
.qa summary:hover .q-plate svg { transform: translateX(2px); }
/* An open question is the path being followed: coral plate, arrow down. */
.qa details[open] .q-plate { background: var(--coral); color: var(--deep); }
.qa details[open] .q-plate svg { transform: rotate(90deg); }
.qa details p { color: var(--ink-2); padding: 0 0 20px 56px; max-width: 64ch; }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .compat { padding-right: 0; }
  .qa { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .qa details:first-child summary { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .q-plate svg { transition: none; } }

/* Final call: one more sign */
.final { padding-block: 40px clamp(80px, 10vw, 128px); }
.ticket { display: grid; grid-template-columns: 1.4fr 1fr; border-radius: var(--radius-sign); background: var(--deep); color: var(--on-sign); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(14 26 45 / 0.5), var(--sign-edge, 0 0 #0000); }
.ticket-band { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; background: var(--coral); color: var(--deep); }
.ticket-band h2 { padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px); color: var(--deep); }
.ticket-main { padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; align-content: start; }
.ticket-main .body { color: var(--on-sign-2); }
.ticket .signup label { color: var(--on-sign); }
.ticket .signup input[type="email"] { background: rgb(238 243 250 / 0.08); border-color: rgb(238 243 250 / 0.18); color: var(--on-sign); }
.ticket .signup input[type="email"]::placeholder { color: rgb(238 243 250 / 0.62); }
.ticket .signup input[type="email"]:focus { border-color: var(--on-sign); box-shadow: 0 0 0 3px rgb(238 243 250 / 0.2); }
.ticket .btn-primary { background: var(--on-sign); color: var(--deep); }
.ticket .signup-note { color: var(--on-sign-2); }
.ticket .signup-note[data-state="error"] { color: #ffb3a6; }
.ticket .signup-note[data-state="done"] { color: var(--on-sign); }
.ticket-stub { border-left: 1px solid rgb(238 243 250 / 0.14); padding: clamp(24px, 4vw, 44px); display: grid; align-content: start; gap: 14px; }
.ticket-stub h3 { color: var(--on-sign); }
.ticket-stub p { color: var(--on-sign-2); font-size: 0.95rem; }
.ticket-stub a.btn { justify-self: start; background: rgb(238 243 250 / 0.1); color: var(--on-sign); box-shadow: inset 0 0 0 1px rgb(238 243 250 / 0.2); }
.ticket-stub a.btn:hover { background: rgb(238 243 250 / 0.16); }
.ticket-stub .fine { font-size: 0.82rem; }
@media (max-width: 860px) { .ticket { grid-template-columns: 1fr; } .ticket-stub { border-left: 0; border-top: 1px solid rgb(238 243 250 / 0.14); } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 0.92rem; color: var(--ink-2); }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: start; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer small { grid-column: 1 / -1; font-size: 0.84rem; }
@media (max-width: 640px) { .footer .wrap { grid-template-columns: 1fr; } }

/* Legal page */
.legal { max-width: 720px; padding-block: 64px 96px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .sign-plate > span, .sign-segs i { transition: none; }
  .sign-line .reflip { animation: none; }
}
