/* FS UI Enhancer website: shared by every page (index, menus, ground, in-flight, traffic,
   pro, support). The look is the brand's "Quiet" style, as in the video openers and the
   YouTube art: near-black, Archivo headlines in mixed case, mono eyebrows, square glass,
   sim blue for Community and gold only for Pro. Pages are long Apple-style product pages:
   one idea per screen, big type, real footage.
   Served no-cache (nginx.conf), so a redeploy reaches visitors at once. */

:root {
  --bg: #05080d;
  --bg-2: #080d15;
  --surface: #0c131e;
  --surface-2: #121b29;
  --glass: rgba(14, 21, 32, .72);
  --line: #1a2536;
  --line-2: #26344a;
  --ink: #edf2f9;
  --ink-2: #c3cddc;
  --muted: #a3afc2;
  --dim: #6d7a90;
  --blue: #3b84eb;
  --blue-hi: #6aa6ff;
  --blue-soft: #a9c8f5;
  --gold: #f2c14e;
  --on-gold: #1a1405;
  --red: #ff7a6e;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1240px;
  --gut: 24px;
  --top: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 64px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, figure, ul, ol, h1, h2, h3, h4, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; padding: 10px 16px; background: var(--blue); color: #fff; }
.skip:focus { left: 8px; }

/* ---- type ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-wrap: balance; }
.display { font-size: clamp(52px, 9vw, 132px); line-height: .92; letter-spacing: -0.045em; }
.h1 { font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -0.04em; }
.h2 { font-size: clamp(36px, 5vw, 68px); line-height: .98; letter-spacing: -0.035em; }
.h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -0.03em; }
.h4 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.display span, .h1 span, .h2 span, .h3 span { display: block; }
.blue { color: var(--blue-hi); }
.gold { color: var(--gold); }
.lede { max-width: 58ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.lede b, .copy b { color: var(--ink); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow.pro { color: var(--gold); }
.eyebrow.plain::before { display: none; }

/* ---- edition and status tags ---- */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; font: 600 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.tag.free { background: color-mix(in srgb, var(--blue) 22%, transparent); color: var(--blue-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }
.tag.pro { background: var(--gold); color: var(--on-gold); }
.tag.part { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent); }
.tag.new { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag.beta { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- buttons: square, like the Canopy panels ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 28px; border: 0; font: 600 16px/1 var(--body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms, box-shadow 160ms, color 160ms; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #5596ef; box-shadow: 0 0 28px color-mix(in srgb, var(--blue) 55%, transparent); }
.btn.gold { background: var(--gold); color: var(--on-gold); }
.btn.gold:hover { background: #ffd067; box-shadow: 0 0 28px color-mix(in srgb, var(--gold) 40%, transparent); }
.btn.ghost { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.btn.sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: default; pointer-events: none; }
.btn .price { font-weight: 500; opacity: .75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buy-form { display: contents; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-hi); font-weight: 600; text-decoration: none; }
.more::after { content: "\2192"; transition: transform 200ms var(--ease); }
.more:hover::after { transform: translateX(4px); }
.more.pro { color: var(--gold); }

/* ---- top bar ---- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: var(--top); }
.brand { display: flex; align-items: center; gap: 11px; flex: none; font: 800 15px/1 var(--display); font-stretch: 125%; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.brand svg { width: 22px; height: 22px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; color: var(--muted); font-size: 15px; text-decoration: none; transition: color 140ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a.pro-link:hover, .nav a.pro-link[aria-current="page"] { color: var(--gold); }
.top .actions { gap: 8px; flex: none; }

/* page sub-nav: the page's own sections, under the top bar (Apple's local nav) */
.local { position: sticky; top: var(--top); z-index: 39; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.local .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.local b { flex: none; font: 700 17px/1 var(--display); letter-spacing: -0.01em; }
.local nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.local nav::-webkit-scrollbar { display: none; }
.local nav a { flex: none; padding: 6px 10px; color: var(--muted); font-size: 14px; text-decoration: none; white-space: nowrap; }
.local nav a:hover, .local nav a.on { color: var(--ink); }

/* No reveal on scroll (2026-11-29, user: the page felt bouncy as blocks slid in). The
   pages' .rv classes are left in place and do nothing. */

/* ---- sections ---- */
section { padding-block: clamp(80px, 11vw, 150px); }
section.tight { padding-block: clamp(56px, 7vw, 96px); }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(44px, 6vw, 72px); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---- media frames ---- */
.frame { position: relative; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame.r169 { aspect-ratio: 16 / 9; }
.frame.contain img { object-fit: contain; background: #000; }
/* A feature row whose screenshot isn't taken yet (shotSoon in features-data.js). */
.frame.shot-soon { display: grid; place-items: center; text-align: center; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 10% 10%, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 10% 10%, radial-gradient(80% 90% at 50% 10%, var(--surface-2) 0%, var(--bg-2) 60%, var(--bg) 100%); }
.frame.shot-soon div { display: grid; gap: 8px; padding: 16px; }
.frame.shot-soon b { font: 500 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }
.frame.shot-soon span { color: var(--dim); font-size: 15px; }
.frame figcaption, .cap { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.frame .cap.tr { left: auto; bottom: auto; right: 16px; top: 16px; }
.illus-note { position: absolute; right: 12px; top: 12px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }

/* ---- page hero (feature pages) ---- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) 0; }
.page-hero .head { margin-bottom: clamp(40px, 5vw, 64px); }
.page-hero .frame { aspect-ratio: 16 / 8; }

/* ---- home hero: full-bleed footage ---- */
.hero { position: relative; min-height: min(calc(100svh - var(--top)), 980px); display: flex; align-items: flex-end; overflow: hidden; background: #000; }
.hero video, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5, 8, 13, .55) 0%, rgba(5, 8, 13, 0) 26%, rgba(5, 8, 13, .25) 55%, var(--bg) 100%),
  linear-gradient(90deg, rgba(5, 8, 13, .85) 0%, rgba(5, 8, 13, .35) 48%, rgba(5, 8, 13, 0) 75%); }
.hero-in { position: relative; display: grid; gap: 26px; width: 100%; padding-block: 140px clamp(56px, 8vw, 96px); }
.hero .lede { text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--blue-hi); transform: rotate(45deg); }

/* ---- the flight, phase by phase (home) ---- */
.flight { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-bottom: 18px; }
.phase { position: relative; display: grid; align-content: start; gap: 14px; min-height: 300px; padding: 0 26px 30px 0; scroll-snap-align: start; text-decoration: none; }
.phase::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; height: 1px; background: var(--line-2); }
.phase .no { position: relative; display: flex; align-items: center; gap: 12px; height: 66px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.phase .no i { position: relative; width: 13px; height: 13px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--blue-hi); transform: rotate(45deg); transition: background-color 200ms; }
.phase:hover .no i { background: var(--blue-hi); }
.phase h3 { font-size: 26px; line-height: 1.08; letter-spacing: -0.02em; }
.phase p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.phase .tags { margin-top: auto; padding-top: 6px; }
.phase .go { color: var(--blue-hi); font-size: 15px; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity 200ms, transform 200ms var(--ease); }
.phase:hover .go, .phase:focus-visible .go { opacity: 1; transform: none; }

/* ---- bento: the four areas (home) ---- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; overflow: hidden; padding: 34px; background: var(--surface); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.tile.w4 { grid-column: span 4; }
.tile.w2 { grid-column: span 2; }
.tile.w3 { grid-column: span 3; }
.tile > img, .tile > video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 13, 0) 30%, rgba(5, 8, 13, .55) 62%, rgba(5, 8, 13, .94) 100%); }
.tile:hover > img, .tile:hover > video { transform: scale(1.04); }
.tile .eyebrow { margin-bottom: 14px; }
.tile h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1; letter-spacing: -0.035em; }
.tile p { max-width: 44ch; margin-top: 14px; color: var(--ink-2); }
.tile .more { margin-top: 18px; }
/* one quiet line under the areas, and a centred link under the editions (home) */
.works { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.works-h { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }
.center-note { margin-top: 40px; text-align: center; }

/* ---- feature rows: copy beside media ---- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(100px, 13vw, 170px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.copy { display: grid; gap: 22px; align-content: start; }
.copy > p { color: var(--ink-2); }
.points { display: grid; gap: 12px; color: var(--ink-2); font-size: 17px; }
.points li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.points li::before { content: ""; width: 7px; height: 7px; margin-top: 10px; background: var(--blue-hi); transform: rotate(45deg); }
.points li.pro::before { background: var(--gold); }
.points b { color: var(--ink); font-weight: 600; }
.feature .tags { margin-bottom: -6px; }

/* a full-width statement with media under it */
.statement { display: grid; gap: clamp(36px, 5vw, 60px); }
.statement .frame { aspect-ratio: 16 / 8; }

/* ---- small feature cards, in a grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: grid; align-content: start; gap: 12px; padding: 28px 28px 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.card .tags { margin-bottom: 2px; }
.card.pro { box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 0 var(--gold); }
.card.free { box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 0 var(--blue); }
a.card { text-decoration: none; transition: background-color 160ms; }
a.card:hover { background: var(--surface-2); }
.card .ico { width: 34px; height: 34px; color: var(--blue-hi); }
.card.pro .ico { color: var(--gold); }

/* gallery of real panels, three across */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery figure { display: grid; gap: 14px; }
.gallery .frame { aspect-ratio: 4 / 3; }
.gallery h3 { font-size: 20px; letter-spacing: -0.015em; }
.gallery p { color: var(--muted); font-size: 16px; }

/* tabs over one frame (Traffic window views, etc.) */
.tabs { display: grid; gap: 18px; }
.tab-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-row button { height: 38px; padding: 0 16px; border: 0; background: var(--surface); color: var(--muted); font: 500 15px/1 var(--body); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); transition: color 140ms, background-color 140ms; }
.tab-row button:hover { color: var(--ink); }
.tab-row button[aria-selected="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.tab-panels { position: relative; }
.tab-panels > [role="tabpanel"][hidden] { display: none; }
.tab-note { color: var(--muted); font-size: 16px; min-height: 3.2em; }

/* ---- feature lists (features-data.js, drawn by site.js) ----
   Every feature as a compact row: name, one line, edition. Opening a row shows the
   detail and, where there is one, its screenshot. */
.points.pro li::before { background: var(--gold); }
.feat-bar { position: sticky; top: calc(var(--top) + 52px); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 36px; padding: 12px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
[data-page="features"] .feat-bar { top: var(--top); }
.alt .feat-bar { background: color-mix(in srgb, var(--bg-2) 88%, transparent); }
.seg { display: inline-flex; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button, .feat-open { height: 38px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font: 500 15px/1 var(--body); cursor: pointer; transition: color 140ms, background-color 140ms; }
.seg button i { margin-left: 6px; font: 500 12px/1 var(--mono); font-style: normal; opacity: .7; }
.seg button:hover, .feat-open:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg button[aria-pressed="true"][data-show="pro"] { background: var(--gold); color: var(--on-gold); }
.feat-open { margin-left: auto; box-shadow: inset 0 0 0 1px var(--line-2); }
.feat-search { flex: 1 1 220px; max-width: 360px; height: 38px; padding: 0 14px; border: 0; background: var(--surface); color: var(--ink); font: 400 15px/1 var(--body); box-shadow: inset 0 0 0 1px var(--line-2); }
.feat-search:focus { outline: none; box-shadow: inset 0 0 0 1px var(--blue-hi); }
.feat-block + .feat-block { margin-top: 72px; }
.feat-area { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.feat-group + .feat-group { margin-top: 40px; }
.feat-group > h3 { margin-bottom: 12px; }
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-items: start; }
.feat { border-bottom: 1px solid var(--line); }
.feat summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; cursor: pointer; list-style: none; }
.feat summary::-webkit-details-marker { display: none; }
.feat .ft { display: grid; gap: 4px; }
.feat .ft b { font: 600 17px/1.3 var(--body); }
.feat .ft b::after { content: "+"; margin-left: 8px; color: var(--blue-hi); font-weight: 400; display: inline-block; transition: transform 200ms var(--ease); }
.feat[open] .ft b::after { transform: rotate(45deg); }
.feat .ft span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.feat summary:hover .ft b { color: var(--blue-hi); }
.feat .tags { gap: 6px; justify-content: flex-end; padding-top: 2px; }
.feat .fd { display: grid; gap: 16px; padding: 0 0 22px; }
.feat .fd .points { font-size: 15px; gap: 8px; }
.feat .fd .points li::before { margin-top: 8px; width: 6px; height: 6px; }
.feat-none { color: var(--muted); }
.feat[hidden], .feat-group[hidden], .feat-block[hidden] { display: none; }

/* ---- integrations ---- */
.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.logos > div { display: grid; gap: 10px; align-content: start; padding: 30px; background: var(--bg); }
.logos h3 { font-size: 24px; letter-spacing: -0.02em; }
.logos p { color: var(--muted); font-size: 16px; }

/* ---- editions ---- */
.editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edition { display: grid; align-content: start; gap: 20px; padding: clamp(30px, 4vw, 48px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 3px 0 var(--blue); }
.edition.pro { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 7%, var(--surface)) 0%, var(--surface) 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 30%, var(--line)), inset 0 3px 0 var(--gold); }
.edition .name { font: 700 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -0.035em; }
.edition .cost { font: 700 22px/1.2 var(--display); }
.edition .cost small { display: block; margin-top: 6px; font: 400 15px/1.4 var(--body); color: var(--muted); }
.edition .points { font-size: 16px; }
.edition .actions { margin-top: 8px; }

/* ---- compare table (pro.html) ---- */
.switch { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; cursor: pointer; color: var(--muted); font-size: 16px; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; width: 46px; height: 26px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms; }
.switch i::after { content: ""; position: absolute; left: 4px; top: 4px; width: 18px; height: 18px; background: var(--muted); transition: transform 200ms var(--ease), background-color 200ms; }
.switch input:checked + i { background: color-mix(in srgb, var(--gold) 28%, var(--surface-2)); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--gold); }
.switch input:focus-visible + i { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.switch input:checked ~ span { color: var(--ink); }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { position: sticky; top: var(--top); z-index: 2; background: var(--bg); padding-block: 22px 16px; vertical-align: bottom; }
.compare thead th b { display: block; font: 700 26px/1 var(--display); letter-spacing: -0.03em; }
.compare thead th span { display: block; margin-top: 6px; font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare thead th.pro b { color: var(--gold); }
.compare tbody th[scope="rowgroup"] { padding-top: 44px; font: 500 12px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-soft); border-bottom-color: var(--blue); }
.compare tbody tr:not(.grp):hover { background: var(--surface); }
.compare td:first-child { width: 52%; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 24%; }
.compare td small { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.compare .y { color: var(--blue-hi); font-weight: 700; }
.compare .py { color: var(--gold); font-weight: 700; }
.compare .n { color: #34415a; }
.compare tr.hide { display: none; }
.compare tfoot td { padding-block: 30px 0; border-bottom: 0; }
.compare tfoot .btn { width: 100%; }
.compare tfoot p { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---- steps (how buying / installing works) ---- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: grid; align-content: start; gap: 12px; padding: 28px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); counter-increment: step; }
.steps li::before { content: "0" counter(step); font: 500 13px/1 var(--mono); letter-spacing: .16em; color: var(--blue-hi); }
.steps.pro li::before { color: var(--gold); }
.steps h3 { font-size: 21px; letter-spacing: -0.015em; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---- FAQ ---- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font: 600 19px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 28px/1 var(--body); color: var(--blue-hi); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { display: grid; gap: 12px; max-width: 72ch; padding-bottom: 26px; color: var(--ink-2); }
.faq .a a { color: var(--blue-hi); }

/* ---- big closing call to action ---- */
.cta { position: relative; overflow: hidden; padding-block: clamp(100px, 14vw, 180px); text-align: center; isolation: isolate; }
.cta > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(5, 8, 13, .55) 0%, var(--bg) 100%); }
.cta .head { margin-bottom: 36px; }
.cta .actions { justify-content: center; }
.cta .fine { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* ---- next page links (bottom of feature pages) ---- */
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.next a { position: relative; display: grid; align-content: end; min-height: 220px; padding: 26px; overflow: hidden; text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); isolation: isolate; }
.next a img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity 300ms, transform 1200ms var(--ease); }
.next a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 13, 0) 20%, rgba(5, 8, 13, .92) 100%); }
.next a:hover img { opacity: .8; transform: scale(1.04); }
.next .eyebrow { margin-bottom: 10px; }
.next h3 { font-size: 26px; letter-spacing: -0.025em; }

/* ---- footer ---- */
footer { padding-block: 72px 56px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot h4 { margin-bottom: 14px; font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.foot ul { display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .about p { max-width: 34ch; margin-top: 16px; }
.legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---- drawn illustrations (ground services, pushback, landing report) ---- */
.illus { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(90% 90% at 50% 0%, #142238 0%, #0a111c 55%, #070b12 100%); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.illus svg { width: 100%; height: 100%; }
.glass { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 20px 50px -20px rgba(0, 0, 0, .8); }

/* scene host: a fixed-size drawing (art/scenes.js) scaled to its frame */
.scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #070b12; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.scene > .draw { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .tile > img, .tile > video, .next a img { transition: none; }
}
@media (max-width: 1080px) {
  .nav a.hide-m { display: none; }
  .cards.four, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .top .actions { margin-left: auto; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .copy { order: 0; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.w4, .tile.w2, .tile.w3 { grid-column: auto; min-height: 400px; }
  .cards, .gallery, .logos, .editions, .next, .steps.three { grid-template-columns: minmax(0, 1fr); }
  .local b { display: none; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feat-bar { position: static; }
  .local nav { margin-left: 0; }
}
@media (max-width: 600px) {
  :root { --gut: 16px; }
  body { font-size: 17px; }
  .cards.two, .cards.four, .steps { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: repeat(2, 1fr); }
  .top .btn.gold { display: none; }
  .tile { padding: 24px; }
  .page-hero .frame, .statement .frame { aspect-ratio: 4 / 3; }
  .hero-in { padding-top: 96px; }
}
