/* Fanlight concept preview, v5. Dark only. Breezy and spacious: big sky art with software windows on top.
   System: near-black page, monochrome product panels, fine separators, compact labels,
   one amber accent reserved for items that need a decision.
   Motion rules (see README): ease-out curves, 140 to 300 ms, transform and opacity only,
   nothing animates on keyboard input, everything off under prefers-reduced-motion. */

@font-face {
  font-family: "Inter Variable";
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("../assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url("../assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #151718;
  --surface: #222526;
  --surface-1: #1b1e1f;
  --surface-2: #272b2c;
  --ink: #f3f0e8;
  --muted: #b6b8b5;
  --faint: #a2a5a2;
  --amber: #e7b57a;
  --amber-soft: rgba(231, 181, 122, 0.1);
  --amber-line: rgba(231, 181, 122, 0.42);
  --line: rgba(243, 240, 232, 0.1);
  --line-strong: rgba(243, 240, 232, 0.18);

  --glass: rgba(20, 26, 36, 0.8);
  --glass-line: rgba(255, 255, 255, 0.2);

  --sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader Variable", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Motion: strong ease-out for things that arrive or respond, ease-in-out for things that move on screen. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --wrap-wide: 1320px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-window: 20px;
  --radius-stage: clamp(20px, 2.6vw, 32px);
  --header-h: 72px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, h5, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.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;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Header: floats over the sky, settles into dark glass after the first scroll ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: rgba(14, 18, 26, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
  position: relative;
  max-width: var(--wrap-wide); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: #fff; text-decoration: none; border-radius: 8px;
}
.brand__mark { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand__word { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1; }

.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; font-weight: 500;
}
.site-nav a[aria-current="true"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.header-cta { margin-left: 0; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
}
.button--small { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.button svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button--primary { background: var(--ink); color: #151718; box-shadow: 0 12px 34px -12px rgba(2, 10, 30, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.button--solid { background: var(--ink); color: #151718; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button[disabled], .button[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.button--next { min-width: 9.75rem; }

/* Press feedback: a small, immediate squeeze. */
.button:not([disabled]):active, .step:active { transform: scale(0.97); }

/* ---------- Hero: sky art, centered message, one window ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: clamp(104px, 13vh, 150px) 0 clamp(72px, 9vw, 128px);
}
.hero__art {
  position: absolute; inset: 0 0 auto 0; z-index: -1;
  height: clamp(700px, 70vw, 1120px);
  overflow: hidden; background: #0b2a57;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__art::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 40% at 50% 36%, rgba(4, 18, 50, 0.46) 0%, rgba(4, 18, 50, 0.22) 55%, rgba(4, 18, 50, 0) 100%),
    linear-gradient(180deg, rgba(4, 16, 44, 0.42) 0%, rgba(4, 16, 44, 0.1) 22%, rgba(21, 23, 24, 0) 80%, var(--bg) 100%);
}

.hero__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hero__copy { max-width: 58rem; margin: 0 auto; text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(6, 18, 44, 0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none; }

h1, h2 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 {
  margin: 0 auto 26px; max-width: 13em;
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1.02; letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(2, 12, 36, 0.45);
}
.lede {
  max-width: 41rem; margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; text-wrap: pretty;
  text-shadow: 0 1px 24px rgba(2, 12, 36, 0.55);
}
.hero__actions { margin-top: 36px; }

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---------- Windows (product chrome) ---------- */
.window {
  background: var(--surface-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-window);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 60px 110px -40px rgba(2, 8, 24, 0.85), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.window__chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem; color: var(--muted);
}
.dots { display: inline-flex; gap: 7px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b4041; }
.window__address {
  flex: 1 1 auto; min-width: 0; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window__tag {
  flex: none; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em;
}

/* Glass frame with a dark canvas inside: the art shows through the frame, never behind the text. */
.window--glass {
  background: rgba(20, 26, 36, 0.9);
  border-color: var(--glass-line);
  box-shadow: 0 0 0 1px rgba(0, 8, 24, 0.35), 0 70px 120px -44px rgba(2, 8, 24, 0.9), 0 1px 0 rgba(255, 255, 255, 0.14) inset;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .window--glass { background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.25); backdrop-filter: blur(26px) saturate(1.25); }
}
.window--glass .window__chrome { background: transparent; border-bottom: 0; }
.window--glass .dots i { background: rgba(255, 255, 255, 0.28); }
.window--glass .window__body { padding: 0 8px 8px; gap: 8px; }
.window--glass .side { background: transparent; border: 0; padding: 8px 6px; }
.window--glass .today { border-radius: 14px; border: 1px solid var(--line); }

.window--hero { max-width: 1080px; margin: clamp(40px, 4.4vw, 64px) auto 0; position: relative; z-index: 3; }
.window__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 300px; }

.side { padding: 18px 12px; border-right: 1px solid var(--line); background: var(--surface-1); }
.side__label { padding: 0 10px 10px; color: var(--faint); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.side li {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--muted); font-size: 0.875rem;
}
.side li[aria-current="true"] { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.side__icon { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; opacity: 0.7; }

.today { padding: 20px 24px 22px; background: var(--surface-1); }
.today__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.today__title { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.today__sub { color: var(--faint); font-size: 0.8125rem; }

.group + .group { margin-top: 18px; }
.group__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.group__count { padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 0.6875rem; line-height: 18px; font-variant-numeric: tabular-nums; }

.needs { display: grid; gap: 6px; }
.item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none;
}
.item--attention { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-soft), rgba(231, 181, 122, 0.04)), var(--surface); }
.item--static { padding: 10px 16px; background: transparent; }
.item__flag { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(231, 181, 122, 0.16); flex: none; }
.item__ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.item__text { display: grid; gap: 2px; min-width: 0; }
.item__title { font-size: 0.9375rem; font-weight: 600; }
.item__meta { color: var(--muted); font-size: 0.8125rem; }
.item__go { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }
.item__go svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.item__tag { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.75rem; font-weight: 500; white-space: nowrap; }

/* "Prepared for you" strip: four plain numbers, no chart. */
.ready { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.ready li { display: grid; gap: 2px; padding: 12px 16px; background: var(--surface-1); }
.ready strong { color: var(--ink); font-size: 1.5rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.ready span { color: var(--muted); font-size: 0.8125rem; }

/* ---------- Sections and art stages ---------- */
.section { padding-top: clamp(88px, 11vw, 168px); }
.section-inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.022em; margin-bottom: 18px; }
.section-head h2:focus { outline: none; }
.section-head h2:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 6px; }
.section-lede { color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.55; text-wrap: pretty; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: auto;
  padding: clamp(18px, 5.5vw, 88px);
  border-radius: var(--radius-stage);
}
.stage--wide { width: min(var(--wrap-wide), calc(100% - 2 * var(--gutter))); }
.stage__art { position: absolute; inset: 0; z-index: -1; background: #0f2a4d; }
.stage__art img { width: 100%; height: 100%; object-fit: cover; }
.stage__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 12, 30, 0.1) 0%, rgba(4, 12, 30, 0.3) 100%); }

/* ---------- Why Fanlight: three ways to begin the morning ---------- */
.alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1140px; margin: 0 auto; }
.alt {
  display: flex; flex-direction: column;
  padding: 28px 26px 8px; border-radius: 20px;
  border: 1px solid var(--glass-line); background: rgba(20, 26, 36, 0.88);
  box-shadow: 0 30px 60px -36px rgba(2, 8, 24, 0.8), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .alt { background: rgba(20, 26, 36, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
}
.alt h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted); font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.alt__verdict { margin-bottom: 26px; color: var(--ink); font-family: var(--serif); font-size: clamp(1.625rem, 2.3vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.alt dl { margin-top: auto; }
.alt dl > div { min-height: 6.25rem; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.alt dt { margin-bottom: 4px; color: var(--faint); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.alt dd { color: #d3d6d2; font-size: 0.9375rem; line-height: 1.45; }
.alt--fanlight { background: rgba(28, 36, 50, 0.94); border-color: rgba(255, 255, 255, 0.46); box-shadow: 0 40px 80px -32px rgba(2, 8, 24, 0.9), 0 1px 0 rgba(255, 255, 255, 0.22) inset; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .alt--fanlight { background: rgba(28, 36, 50, 0.88); }
}
.alt--fanlight h3 { color: #fff; }
.alt--fanlight dd { color: var(--ink); }

/* ---------- The example ---------- */
.workflow { padding-top: clamp(40px, 5vw, 80px); }
#workflow { scroll-margin-top: 36px; } /* keeps the small label above this heading clear of the sticky header */
.workflow .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.workflow .stage { padding-block: clamp(20px, 6vw, 96px); }

.demo { max-width: 1040px; margin: 0 auto; }
.demo__file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.demo__flag { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.9375rem; }
.demo__flag strong { font-weight: 600; white-space: nowrap; }
.demo__flag .sep { color: var(--faint); }
.demo__fileline { color: var(--muted); font-size: 0.8125rem; }

.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface-1); }
.stepper-wrap { position: relative; }
.stepper { display: flex; flex-wrap: wrap; gap: 6px; }
.step {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: 0.9375rem; font-weight: 500; cursor: pointer; touch-action: manipulation;
}
.step__n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step[aria-selected="true"] { color: var(--ink); }

/* The selected pill is a second, inverted copy of the stepper revealed through a clip-path.
   Moving the clip makes the pill slide from step to step without animating layout. */
.stepper--ghost { position: absolute; inset: 0; pointer-events: none; clip-path: inset(0 100% 0 0 round 999px); }
.stepper--ghost .step { background: var(--ink); border-color: var(--ink); color: #151718; cursor: default; }
.stepper--ghost .step__n { background: #151718; color: var(--ink); }

.demo__controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.demo__status { margin-right: 6px; color: var(--faint); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

.panels { padding: 24px 24px 28px; background: var(--surface-1); }
.panel:focus { outline: none; }
.panel:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; border-radius: 10px; }
.panel__head { max-width: 40rem; margin-bottom: 20px; }
.panel__head h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.012em; margin-bottom: 4px; }
.panel__head p { color: var(--muted); font-size: 0.9375rem; }

/* Panels share one grid cell, so the window keeps one steady height and nothing jumps between steps. */
.js .panels { display: grid; }
.js .panel { grid-area: 1 / 1; align-self: start; visibility: hidden; opacity: 0; pointer-events: none; transform: translateX(14px); }
.js .panel[data-pos="before"] { transform: translateX(-10px); }
.js .panel[data-active="true"] { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source { padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.source__kicker, .card__kicker, .record__kicker {
  color: var(--faint); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px;
}
.source h4, .card h4 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.008em; margin-bottom: 12px; }
.fields > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 9px 10px; margin: 0 -10px; border-top: 1px solid var(--line); border-radius: 8px; font-size: 0.875rem; }
.fields > div:first-child { border-top-color: transparent; }
.fields dt { color: var(--faint); }
.fields dd { color: var(--ink); overflow-wrap: anywhere; }
.fields .is-changed { background: var(--amber-soft); box-shadow: inset 2px 0 0 var(--amber); border-top-color: transparent; }
.fields .is-changed + .is-changed { margin-top: 2px; }
.fields .is-changed dd::after {
  content: "Changed"; margin-left: 10px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--amber-line); color: var(--amber); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; vertical-align: 1px;
}

.legend { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
.legend strong { color: var(--ink); font-weight: 600; }
.mark { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--amber); transform: translateY(1px); }
.note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; background: rgba(255, 255, 255, 0.015); }
.note--end { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.link-button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; }

.prep { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 14px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card--suggest { border-color: var(--amber-line); background: linear-gradient(180deg, var(--amber-soft), rgba(231, 181, 122, 0.03)), var(--surface); }
.card--suggest .card__kicker { color: var(--amber); }
.card--suggest h4 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 10px; }
.card--suggest p { color: var(--muted); font-size: 0.9375rem; }
.card__subkicker { margin-top: 22px; margin-bottom: 8px; color: var(--faint) !important; font-size: 0.6875rem !important; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.reasons { border-top: 1px solid var(--line); }
.reasons li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.875rem; }
.reasons li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.tag { display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink) !important; font-size: 0.75rem !important; font-weight: 500; }

.checks li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.checks__state { display: inline-block; width: max-content; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.checks__state--yours { border-color: var(--amber-line); color: var(--amber); }
.checks__text { display: grid; gap: 1px; color: var(--muted); font-size: 0.8125rem; }
.checks__text strong { color: var(--ink); font-size: 0.9375rem; font-weight: 600; }

.record { max-width: 46rem; margin: 0 auto; padding: 24px 28px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.8); }
.record__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.record__head h4 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.record__meta { color: var(--muted); font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; }
.record__block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.record__block h5 { margin-bottom: 8px; color: var(--faint); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.record__list { list-style: decimal; padding-left: 1.25rem; color: var(--ink); font-size: 0.875rem; }
.record__list li { padding: 3px 0; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; }
.diff { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.diff th, .diff td { padding: 9px 12px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.diff thead th { border-top: 0; color: var(--faint); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.diff tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.diff tbody td:last-child { color: var(--ink); box-shadow: inset 2px 0 0 var(--amber); background: var(--amber-soft); }
.record__block--choice { border-bottom: 0; }
.record__choice { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.008em; margin-bottom: 6px; }
.record__note { color: var(--muted); font-size: 0.875rem; }
.record__limits { padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; }

.caption { max-width: 1040px; margin: 22px auto 0; padding: 0 var(--gutter); color: var(--faint); font-size: 0.8125rem; text-align: center; }

/* ---------- Inside Fanlight: placeholder frames on art ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 64px) clamp(20px, 3vw, 40px); }
.tile--wide { grid-column: 1 / -1; }
.tile__stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center;
  padding: clamp(18px, 5vw, 72px);
  border-radius: var(--radius-stage);
  background: #0f2a4d;
}
.tile--wide .tile__stage { padding: clamp(18px, 6vw, 96px); }
.tile__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.tile__stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 12, 30, 0.08), rgba(4, 12, 30, 0.28)); }
.tile figcaption { padding: 20px 6px 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tile figcaption strong { color: var(--ink); font-weight: 600; }

.ph { width: min(100%, 780px); }
.tile--wide .ph { width: min(100%, 980px); }
.ph__body { display: grid; grid-template-columns: minmax(56px, 24%) minmax(0, 1fr); gap: 8px; padding: 0 8px 8px; min-height: clamp(190px, 22vw, 300px); }
.tile--wide .ph__body { min-height: clamp(220px, 28vw, 400px); }
.ph__rail { display: grid; align-content: start; gap: 12px; padding: 14px 10px; }
.ph__rail span { display: block; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.16); }
.ph__rail span:nth-child(1) { width: 78%; }
.ph__rail span:nth-child(2) { width: 62%; }
.ph__rail span:nth-child(3) { width: 70%; }
.ph__rail span:nth-child(4) { width: 54%; }
.ph__main {
  position: relative; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); align-content: start; gap: 12px;
  padding: 24px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-1);
}
.ph__main::after { content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(243, 240, 232, 0.22); border-radius: 10px; pointer-events: none; }
.ph__bar { display: block; width: 58%; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.ph__bar--lg { width: 40%; height: 18px; background: rgba(255, 255, 255, 0.12); }
.ph__bar--sm { width: 32%; }
.ph__label {
  align-self: center; justify-self: center; padding: 8px 12px;
  color: var(--muted); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: center;
}

/* ---------- Close: who decides, on a horizon ---------- */
.close { padding-bottom: clamp(88px, 11vw, 168px); }
.stage--close { display: grid; gap: clamp(36px, 5vw, 64px); padding: clamp(40px, 8vw, 120px) clamp(18px, 5vw, 80px) clamp(44px, 7vw, 104px); }
.stage--close .section-head { margin: 0 auto; }
.stage--close h2 { color: #fff; text-shadow: 0 2px 34px rgba(2, 10, 30, 0.5); }
.stage--close .section-lede { color: #e4e8ee; text-shadow: 0 1px 20px rgba(2, 10, 30, 0.55); }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.roles > div {
  padding: 24px 22px 26px; border-radius: 18px;
  border: 1px solid var(--glass-line); background: rgba(20, 26, 36, 0.88);
  box-shadow: 0 30px 60px -36px rgba(2, 8, 24, 0.8), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .roles > div { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
}
.roles dt { margin-bottom: 6px; font-size: 1rem; font-weight: 600; }
.roles dd { color: #d3d6d2; font-size: 0.9375rem; }
.close__action { text-align: center; }

/* ---------- Close v4: near-black stage with one light source, after the Linear and Vercel references ---------- */
.close-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: clamp(32px, 4.5vw, 56px); text-align: center;
  width: min(var(--wrap-wide), calc(100% - 2 * var(--gutter))); margin-inline: auto;
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 80px) clamp(36px, 5vw, 72px);
  border-radius: var(--radius-stage); border: 1px solid rgba(255, 255, 255, 0.08);
  background: #05070a;
}
.close-stage__glow {
  position: absolute; z-index: -1; left: 50%; top: 0; width: min(1200px, 150%); height: 78%; transform: translateX(-50%);
  background: radial-gradient(ellipse 46% 58% at 50% 34%, rgba(255, 236, 204, 0.24) 0%, rgba(255, 236, 204, 0.08) 42%, rgba(5, 7, 10, 0) 72%);
  pointer-events: none;
}
.fanlight-glow {
  width: min(420px, 74%); height: auto; overflow: visible;
  filter: drop-shadow(0 0 26px rgba(255, 236, 204, 0.5)) drop-shadow(0 0 90px rgba(255, 236, 204, 0.28));
}
.fanlight-glow .arch { fill: #05070a; stroke: rgba(255, 246, 228, 0.92); stroke-width: 1.5; }
.fanlight-glow .spokes { fill: none; stroke: rgba(255, 246, 228, 0.28); stroke-width: 1; stroke-linecap: round; }
.fanlight-glow .sill { fill: none; stroke: rgba(255, 246, 228, 0.5); stroke-width: 1.5; }
.close-stage__head { max-width: 46rem; }
.close-stage__head h2 { margin-bottom: 18px; color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; }
.close-stage .section-lede { color: #c9ccd2; }
.roles--quiet { width: 100%; margin-top: clamp(24px, 4vw, 48px); gap: 0 clamp(20px, 3vw, 40px); text-align: left; }
.roles--quiet > div { padding: 22px 0 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.roles--quiet dt { color: #fff; }
.roles--quiet dd { color: #c9ccd2; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--wrap-wide); margin: 0 auto; padding: 44px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px;
}
.site-footer__brand { display: grid; gap: 8px; }
.site-footer__brand .brand { color: var(--ink); }
.site-footer__brand p { color: var(--muted); font-size: 0.9375rem; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; max-width: 30rem; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.site-footer__links svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__aside { flex-basis: 100%; margin-top: 6px; color: var(--muted); font-size: 0.875rem; }
.site-footer__art { position: relative; height: clamp(220px, 30vw, 440px); overflow: hidden; }
.site-footer__art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 72%; }
.site-footer__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(21, 23, 24, 0.5) 30%, rgba(21, 23, 24, 0) 62%, rgba(10, 14, 22, 0.55) 100%); }
.site-footer__fine {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px var(--gutter);
  max-width: var(--wrap-wide); margin: 0 auto; color: #e3e5e1; font-size: 0.75rem; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
}

/* ---------- No JavaScript: show every step ---------- */
.no-js .stepper-wrap, .no-js .demo__controls { display: none; }
.no-js .panel + .panel { margin-top: 36px; }

/* ---------- Hover: only on devices that can hover, so touch never gets a stuck hover ---------- */
@media (hover: hover) {
  .site-nav a:not([aria-current="true"]):hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
  .button--primary:hover, .button--solid:hover { background: #fff; }
  .button--ghost:hover { border-color: var(--ink); }
  .item--attention:hover { border-color: var(--amber); }
  .step:not([aria-selected="true"]):hover { color: var(--ink); border-color: var(--line-strong); }
  .site-footer__links a:hover { border-color: var(--ink); }
}

/* ---------- Motion (optional) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Interactions: named properties only, fast, ease-out. */
  .site-header::before { transition: opacity 220ms var(--ease-out); }
  .site-nav a { transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
  .button { transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
  .button svg { transition: transform 220ms var(--ease-out); }
  .step { transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
  .item--attention { transition: border-color 160ms var(--ease-out); }
  .item__go svg { transition: transform 220ms var(--ease-out); }
  .site-footer__links a { transition: border-color 160ms var(--ease-out); }
  @media (hover: hover) {
    .button:hover svg { transform: translateY(2px); }
    .item--attention:hover .item__go svg { transform: translateX(3px); }
  }

  /* Hero: the message arrives first, then the window, then the rows inside it. */
  .hero__art img { transform: scale(1.07); animation: drift 70s ease-in-out infinite alternate; will-change: transform; }
  .hero__copy > * { animation: fade-up 640ms var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 70ms; }
  .hero__copy > :nth-child(3) { animation-delay: 140ms; }
  .hero__copy > :nth-child(4) { animation-delay: 210ms; }
  .hero__copy > :nth-child(5) { animation-delay: 280ms; }
  .window--hero { animation: rise 760ms var(--ease-out) both; animation-delay: 200ms; }
  .needs > li, .ready { animation: row-in 420ms var(--ease-out) both; }
  .needs > li:nth-child(1) { animation-delay: 520ms; }
  .needs > li:nth-child(2) { animation-delay: 580ms; }
  .needs > li:nth-child(3) { animation-delay: 640ms; }
  .ready { animation-delay: 700ms; }
  .window--hero .item__flag::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--amber);
    animation: ping 1400ms var(--ease-out) 1000ms 1 both; pointer-events: none;
  }
  @keyframes drift { from { transform: scale(1.07) translate3d(-1.6%, 0, 0); } to { transform: scale(1.07) translate3d(1.6%, -0.6%, 0); } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes ping { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.2); opacity: 0; } }

  /* Demo: panels slide a short way in the direction of travel. Transitions retarget if you click quickly. */
  .js .panel { transition: opacity 160ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 160ms; }
  .js .panel[data-active="true"] { transition: opacity 240ms var(--ease-out) 40ms, transform 300ms var(--ease-out) 40ms, visibility 0s; }
  .stepper--ghost.is-ready { transition: clip-path 300ms var(--ease-in-out); }
  /* Keyboard input is repeated and deliberate: it never waits for an animation. */
  .demo[data-instant] .panel, .demo[data-instant] .stepper--ghost, .demo[data-instant] .step { transition-duration: 0s !important; transition-delay: 0s !important; }

  /* The lines that changed light up as each step opens, so the difference is seen, not hunted for. */
  .panel[data-active="true"] .is-changed { animation: mark-in 520ms var(--ease-out) both; animation-delay: calc(200ms + var(--k, 0) * 80ms); }
  .fields .is-changed:nth-child(2) { --k: 0; }
  .fields .is-changed:nth-child(4) { --k: 1; }
  .fields .is-changed:nth-child(5) { --k: 2; }
  .demo[data-instant] .panel .is-changed { animation: none; }
  @keyframes mark-in { from { background-color: transparent; box-shadow: inset 0 0 0 transparent; } to { background-color: var(--amber-soft); box-shadow: inset 2px 0 0 var(--amber); } }

  /* Finale: the light comes up slowly. Rare moment, so it can take its time. */
  .reveal-ready .close-stage__glow[data-reveal] { transform: translateX(-50%); transition: opacity 1400ms var(--ease-out); }
  .reveal-ready .close-stage__glow[data-reveal].is-in { transform: translateX(-50%); }
  .reveal-ready .fanlight-glow[data-reveal] { transform: translateY(14px) scale(0.985); transition: opacity 1000ms var(--ease-out) 120ms, transform 1200ms var(--ease-out) 120ms; }
  .reveal-ready .fanlight-glow[data-reveal].is-in { transform: none; }

  /* Scroll reveals: set up by the script, applied once, and never needed to read the page. */
  .reveal-ready [data-reveal] { opacity: 0; transform: scale(1.035); transition: opacity 700ms var(--ease-out), transform 1200ms var(--ease-out); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
  .reveal-ready [data-rise] { opacity: 0; transform: translateY(20px); transition: opacity 560ms var(--ease-out), transform 640ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
  .reveal-ready [data-rise].is-in { opacity: 1; transform: none; }
}

/* ---------- Short laptop screens: keep "Needs your decision" on the first screen ---------- */
@media (min-width: 861px) and (max-height: 800px) {
  .hero { padding-top: 84px; }
  .badge { margin-bottom: 16px; }
  h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); margin-bottom: 14px; }
  .lede { font-size: 1.0625rem; }
  .hero__actions { margin-top: 22px; }
  .window--hero { margin-top: 30px; }
}

/* ---------- Laptop and tablet ---------- */
@media (max-width: 1000px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alts { grid-template-columns: 1fr; max-width: 560px; }
  .alt dl > div { min-height: 0; }
  .alt dl { margin-top: 0; }
  .hero__art::after {
    background: linear-gradient(180deg, rgba(4, 16, 44, 0.68) 0%, rgba(4, 16, 44, 0.64) 56%, rgba(4, 16, 44, 0.4) 70%, rgba(21, 23, 24, 0) 84%, var(--bg) 100%);
  }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
  .window__body { grid-template-columns: 1fr; }
  .side { display: none; }
  .compare, .prep { grid-template-columns: 1fr; }
  .window__tag { display: none; }
  .window__chrome { justify-content: space-between; }
  .window__address { text-align: left; }
  .item { grid-template-columns: auto minmax(0, 1fr); }
  .item__go, .item__tag { grid-column: 2; justify-self: start; }
  .ready { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr; }
  .ph__body { grid-template-columns: 1fr; }
  .ph__rail { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
  .brand__word { font-size: 1.375rem; }
  .header-cta { min-height: 44px; }
  .hero { padding-top: 88px; padding-bottom: 64px; }
  .hero__art { height: 720px; }
  .hero__art img { object-position: 100% 40%; }
  .badge { margin-bottom: 20px; font-size: 0.75rem; padding: 6px 12px; }
  h1 { font-size: clamp(2.2rem, 10.2vw, 2.9rem); margin-bottom: 18px; }
  .hero__actions { margin-top: 26px; }
  .window--hero { margin-top: 36px; }
  .today { padding: 16px 16px 18px; }
  .window__chrome { padding: 10px 12px; }
  .alt { padding: 24px 22px 6px; }
  .roles--quiet { gap: 0; }
  .demo__file { padding: 14px 16px; }
  .demo__flag .sep { display: none; }
  .demo__flagtext { flex-basis: 100%; padding-left: 18px; }
  .demo__bar { padding: 14px 16px; }
  .stepper-wrap { flex: 1 1 100%; }
  .step { flex: 1 1 100%; justify-content: flex-start; }
  .panels { padding: 20px 16px 20px; }
  .source { padding: 16px 16px 10px; }
  .fields > div { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 8px; }
  .fields .is-changed dd::after { display: table; margin: 6px 0 0; }
  .record { padding: 18px 16px; }
  .record__meta { text-align: left; }
  .checks li { grid-template-columns: 1fr; gap: 4px; }
  .demo__controls { flex: 1 1 100%; flex-wrap: wrap; margin-left: 0; }
  .demo__status { order: -1; flex-basis: 100%; margin-right: 0; }
  .demo__controls .button { flex: 1 1 0; min-height: 44px; }
  .demo__controls .button--next { flex: 2 1 0; white-space: nowrap; } /* the longer label gets the wider button so it stays on one line */
  .ph__body { min-height: 170px; }
  .ph__main { padding: 18px; }
  .roles { grid-template-columns: 1fr; }
  .close__action .button { width: 100%; }
  .site-footer__inner { padding-bottom: 28px; }
  .site-footer__art { height: 240px; }
  .site-footer__fine { padding-bottom: 16px; }
}

/* ---------- Forced colors ---------- */
@media (forced-colors: active) {
  .item--attention, .fields .is-changed, .card--suggest, .roles > div, .alt, .window--glass { border: 1px solid CanvasText; }
  .button--primary, .button--solid { border-color: ButtonText; }
  .step[aria-selected="true"] { border-color: Highlight; border-width: 2px; }
}

/* ================= v5: pages, menu, download, booking ================= */

/* ---------- Header: five page links, one download button, a menu on small screens ---------- */
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.header-cta { flex: none; margin-left: 0; }
.site-header__inner { flex-wrap: wrap; row-gap: 4px; }
.site-nav { flex-wrap: wrap; }
.menu-button {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 0.9375rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.menu-button:active { transform: scale(0.97); }
.menu-button__icon { position: relative; display: block; width: 16px; height: 10px; }
.menu-button__icon i { position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 200ms var(--ease-out); }
.menu-button__icon i:first-child { top: 1px; }
.menu-button__icon i:last-child { bottom: 1px; }
.menu-open .menu-button__icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-button__icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.site-header.menu-open::before { opacity: 1; }

/* ---------- Hero: two actions and an honest status line ---------- */
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.button--glass {
  background: rgba(8, 18, 40, 0.6); color: #fff; border-color: rgba(255, 255, 255, 0.44);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero__note {
  display: inline-block; margin-top: 18px; padding: 5px 16px; border-radius: 999px;
  background: rgba(5, 18, 50, 0.58); box-shadow: 0 0 26px 12px rgba(5, 18, 50, 0.5);
  color: #fff; font-size: 0.875rem; text-shadow: 0 1px 12px rgba(2, 12, 36, 0.6);
}
.hero__note a { text-underline-offset: 3px; }
.close__action { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Questions and booking ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px);
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.split__head h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); line-height: 1.06; letter-spacing: -0.022em; max-width: 9em; }
.faq { border-bottom: 1px solid var(--line-strong); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 64px; padding: 14px 0; list-style: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 38rem; padding: 0 0 26px; color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.faq details p a { text-underline-offset: 3px; }

.book { margin-top: clamp(80px, 10vw, 156px); scroll-margin-top: 0; } /* html already adds scroll-padding-top for the header */
.book:focus { outline: none; }
.window--embed { max-width: 980px; margin: 0 auto; }
.embed { position: relative; height: clamp(620px, 78vh, 720px); background: var(--surface-1); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; color-scheme: dark; }
.embed__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.9375rem; }
.book .caption a { text-underline-offset: 3px; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(124px, 17vh, 176px) 0 clamp(44px, 6vw, 88px); }
.page-hero__art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0b2a57; }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.page-hero__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4, 16, 44, 0.62) 0%, rgba(4, 16, 44, 0.66) 55%, rgba(21, 23, 24, 0.55) 82%, var(--bg) 100%);
}
.page-hero__inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--gutter); }
.page-hero .eyebrow { margin-bottom: 18px; color: rgba(255, 255, 255, 0.92); }
.hero__eyebrow { margin-bottom: 18px; color: rgba(255, 255, 255, 0.92); }
.page-hero h1 { margin: 0 0 20px; max-width: 12em; font-size: clamp(2.6rem, 6vw, 4.75rem); }
.page-hero .lede { max-width: 38rem; margin: 0; }

.rows { max-width: var(--wrap-wide); margin: 0 auto; padding: clamp(8px, 2vw, 24px) var(--gutter) 0; }
.rows--tight { padding-top: clamp(40px, 5vw, 72px); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(24px, 5vw, 80px);
  padding: clamp(32px, 4.5vw, 56px) 0; border-top: 1px solid var(--line); scroll-margin-top: 0;
}
.rows > .row:first-child { border-top: 0; }
.row h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.018em; }
.row__body p { max-width: 40rem; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.row__body p + p { margin-top: 1em; }
.row__body p a:not(.button) { color: var(--ink); text-underline-offset: 3px; }
.row__body .row__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.person {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; max-width: 40rem;
  padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface-1);
}
.person__avatar {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.02em;
}
.person h3 { font-family: var(--serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.015em; }
.row__body .person__role { margin: 2px 0 14px; font-size: 0.9375rem; }
.row__body .person__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.person__links a { min-height: 24px; color: var(--ink); text-underline-offset: 3px; }

.lanes-wrap { max-width: var(--wrap-wide); margin: 0 auto; padding: 8px var(--gutter) 0; }
.lanes { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: start; }
.lane { padding: 26px 26px 10px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface-1); }
.lane__kicker { margin-bottom: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.lane__head h3 { margin-bottom: 12px; font-family: var(--serif); font-weight: 400; font-size: 1.625rem; letter-spacing: -0.015em; }
.lane li { padding: 16px 0; border-top: 1px solid var(--line); }
.lane__item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lane h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; }
.lane li p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.chip { flex: none; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.caption--left { max-width: none; margin: 18px 0 0; text-align: left; }

.cta-wrap { padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(56px, 7vw, 96px); }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px;
  max-width: var(--wrap-wide); margin: 0 auto; padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-stage); background: #05070a;
}
.cta-band h2 { margin-bottom: 10px; color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; }
.cta-band p { max-width: 36rem; color: #c9ccd2; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Download dialog ---------- */
.dialog {
  width: min(520px, calc(100% - 2 * var(--gutter))); max-width: none; padding: 0;
  border: 1px solid var(--glass-line); border-radius: 22px; background: rgba(20, 26, 36, 0.98); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8); overscroll-behavior: contain;
}
.dialog[open] { padding: 22px clamp(22px, 4vw, 32px) 30px; animation: dialog-in 200ms var(--ease-out); }
.dialog::backdrop { background: rgba(4, 8, 16, 0.68); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog__top { display: flex; justify-content: flex-end; margin: 0 -12px 0 0; }
.dialog__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog__x svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.dialog h2 { margin: 0 0 14px; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; }
.dialog p { color: var(--muted); text-wrap: pretty; }
.dialog p + p { margin-top: 12px; }
.dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
html:has(dialog[open]) { overflow: hidden; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer columns ---------- */
.fcols { display: flex; flex-wrap: wrap; gap: 28px clamp(32px, 6vw, 88px); }
.fcol { display: grid; gap: 2px; align-content: start; min-width: 9rem; }
.fcol__title { margin: 0 0 8px; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fcol a { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 36px; color: var(--ink); font-size: 0.9375rem; text-decoration: none; }
.fcol a svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .fcol a:hover, .row__body p a:not(.button):hover, .person__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .faq summary:hover { color: #fff; }
  .button--glass:hover { background: rgba(8, 18, 40, 0.74); border-color: rgba(255, 255, 255, 0.7); }
  .dialog__x:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
  .menu-button:hover { background: rgba(255, 255, 255, 0.16); }
}

/* ---------- v5 responsive ---------- */
@media (max-width: 1000px) {
  .lanes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__head h2 { max-width: none; }
}
@media (max-width: 1000px) {
  .js .menu-button { display: inline-flex; }
  .js .header-cta { margin-left: auto; }
  .js .site-header__inner { flex-wrap: nowrap; }
  .js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
    margin: 0; padding: 8px var(--gutter) 18px;
    background: rgba(14, 18, 26, 0.97); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .js .site-header.menu-open .site-nav { display: flex; }
  .js .site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; font-size: 1.0625rem; }
  .no-js .site-nav { display: flex; flex-basis: 100%; order: 3; margin: 0; overflow-x: auto; }
  .no-js .header-cta { margin-left: auto; }
}
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .header-cta { display: none; }
  .js .menu-button { margin-left: auto; }
  .hero__actions .button { flex: 1 1 100%; }
  .close__action .button { width: 100%; }
  .embed { height: 820px; }
  .page-hero { padding-top: 104px; }
  .cta-band__actions .button, .row__actions .button, .dialog__actions .button { flex: 1 1 100%; }
  .lane { padding: 22px 20px 6px; }
  .fcol a { min-height: 44px; }
  .person__links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 560px) {
  .person { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dialog[open] { animation: none; }
  .menu-button__icon i, .faq summary::after { transition: none; }
}
@media (forced-colors: active) {
  .dialog, .lane, .person, .cta-band { border: 1px solid CanvasText; }
  .button--glass { border-color: ButtonText; }
}

/* Example screens in the "What gets easier" tiles */
.ph .today__head { flex-wrap: wrap; row-gap: 2px; }
.ph .today__title { white-space: nowrap; }

/* How it works (homepage) */
.how__steps { list-style: none; margin: 0; padding: 0; }
.how__steps > li { padding: 22px 22px 24px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface-1); }
.how__n { width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.how__steps > li:nth-child(n+3) .how__n { background: var(--amber-soft); color: var(--amber); }
.how__t { margin-bottom: 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.how__d { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 560px) { .how__steps { grid-template-columns: 1fr; } }
