/* PrivateJetSky: the "night ops" art direction, v5.1 visual system.
   Base #0A0F1A night / bone ink / contrail cyan accent / amber EST chips.

   Three voices, strictly cast:
     Besley (self-hosted, OFL) : the reading voice. A Clarendon: the letterform
       of timetables, engineering plates and ledgers. Headlines at 600, prose at
       400, the italic as a deliberate second voice against the roman.
     Fragment Mono (self-hosted, OFL) : the instrument voice. Every figure,
       label, code and brief.
     System sans : the silent voice. Controls and card chrome only.
   Fallbacks (Georgia / Consolas) keep every page correct if fonts fail.

   Geometry: radius zero everywhere. Precision comes from hairlines, corner
   registration ticks on engaged elements, and one chamfered plate reserved for
   the primary action. No font service, no CDN: font-src 'self' only. */

@font-face {
  font-family: 'Besley';
  src: url('fonts/besley.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Besley';
  src: url('fonts/besley-italic.woff2') format('woff2');
  font-weight: 400 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('fonts/fragment-mono.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --night:  #0A0F1A;
  --panel:  #101828;
  --panel2: #0C1322;
  --line:   #1D2940;
  --line2:  #263453;
  --ink:    #EDE8DC;
  --muted:  #8B94A6;
  --cyan:   #5BC8E8;
  --cyan-deep: #12293A;
  --amber:  #C9973F;
  --good:   #86C9A8;
  --serif:  'Besley', Georgia, 'Times New Roman', serif;
  --sans:   system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:   'Fragment Mono', Consolas, 'SF Mono', Menlo, monospace;
  --tick:   rgba(91, 200, 232, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--night);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--cyan); color: var(--night); font-family: var(--mono);
  padding: 10px 18px; font-size: 13px;
}
.skip-link:focus { left: 0; }

.strip {
  margin-top: 26px; padding: 14px 18px;
  border: 1px dashed var(--line2); border-radius: 0;
  font-size: 14px; color: var(--muted);
}
.cta-band { text-align: center; padding: 56px 22px; border-top: 1px solid var(--line); }
.cta-band h2 { max-width: none; margin-bottom: 8px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }
.cta-band .btn { margin: 0 6px 10px; }
.crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--cyan); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
h1 { font-weight: 600; letter-spacing: -.005em; }
.band h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin-bottom: 14px; max-width: 22ch; }
h2 { font-size: clamp(25px, 3.4vw, 36px); line-height: 1.16; margin-bottom: 14px; max-width: 27ch; }
h3 { font-size: 19px; margin-bottom: 8px; }

/* Corner registration ticks: the mark of an engaged instrument. They appear on
   the lead verdict, on a panel while a control inside it has focus, on link
   cards under the cursor, and on the citation plate. Never decoration at rest,
   always a response to attention. */
.panel, .verdict, .cardlist a, .idx-cite { position: relative; }
.panel::before, .panel::after,
.verdict.lead::before, .verdict.lead::after,
.cardlist a::before, .cardlist a::after,
.idx-cite::before, .idx-cite::after {
  content: ''; position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--tick); opacity: 0; transition: opacity .18s ease;
  pointer-events: none;
}
.panel::before, .verdict.lead::before, .cardlist a::before, .idx-cite::before {
  top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px;
}
.panel::after, .verdict.lead::after, .cardlist a::after, .idx-cite::after {
  bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px;
}
.panel:focus-within::before, .panel:focus-within::after,
.verdict.lead::before, .verdict.lead::after,
.cardlist a:hover::before, .cardlist a:hover::after,
.cardlist a:focus-visible::before, .cardlist a:focus-visible::after,
.idx-cite::before, .idx-cite::after { opacity: 1; }

.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  color: var(--cyan); margin-bottom: 14px;
}
.section-lede { max-width: 62ch; color: var(--muted); margin-bottom: 26px; }

/* The reading voice. Anything a visitor sits and reads is set in the serif;
   card chrome and control labels stay in the silent sans; data stays mono. */
.section-lede, .lede-doc,
.doc p, .doc li, .page p, .page li,
.verdict-panel > p, .questions-lede, .q-ask,
.own-verdict, .renewal-read, .e-line,
.fp-item p, .empty-state p, .caution-panel p,
.vstep-what, .noscript-note p, .noscript-note li,
.std-empty p, .std-list p, .idx-cite .foot, .grid2 p {
  font-family: var(--serif); font-weight: 400;
}
.doc p, .doc li, .page p, .page li { font-size: 16px; line-height: 1.7; }
.est {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--amber); border: 1px solid rgba(201,151,63,.45);
  padding: 1px 5px; border-radius: 0; vertical-align: 2px; white-space: nowrap;
}
.foot { font-size: 13px; color: var(--muted); margin-top: 14px; }
.foot.mono { font-size: 11px; letter-spacing: .08em; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: rgba(10,15,26,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--mono); font-size: 15px; letter-spacing: .14em; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--cyan); font-weight: 700; }
.mark { width: 22px; height: 22px; color: var(--cyan); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }
.nav-foot { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: var(--muted); padding: 7px 10px; border-radius: 0; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.on { color: var(--cyan); }
.nav-links a.cta { color: var(--night); background: var(--cyan); font-weight: 700; }
.nav-links a.cta:hover { background: #7ed7f0; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(10,15,26,.96) 34%, rgba(10,15,26,.55) 70%, rgba(10,15,26,.35)),
    url('assets/hero.jpg') center right / cover no-repeat,
    var(--night);
}
.hero-sky {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease;
  pointer-events: none;
}
.hero-sky.sky-on { opacity: 1; }
.hero-inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 108px 22px 76px; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; max-width: 17ch;
  margin-bottom: 22px; letter-spacing: -.008em; text-wrap: balance;
}
/* The second sentence is the second voice: lighter, italic, contrail cyan,
   always beginning its own line. The weight turn against the 600 roman is the
   typographic signature. */
.hero h1 em {
  display: block; font-style: italic; font-weight: 400;
  color: var(--cyan); letter-spacing: 0; margin-top: 2px;
}
.lede { max-width: 52ch; font-size: 19px; line-height: 1.55; color: #C8CBD4; margin-bottom: 32px; font-family: var(--serif); font-weight: 400; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hook {
  display: flex; gap: 18px; align-items: baseline; max-width: 600px;
  border-top: 1px solid var(--line2);
  padding: 16px 0 0; margin-bottom: 26px;
}
.hook-num { font-size: clamp(28px, 3.6vw, 40px); color: var(--cyan); letter-spacing: .02em; }
.hook-txt { font-size: 12.5px; line-height: 1.55; color: var(--muted); letter-spacing: .02em; max-width: 44ch; }
.hook-txt b { color: var(--ink); }
.hook-txt i { font-style: normal; opacity: .75; }
.trust { font-size: 11px; letter-spacing: .14em; color: var(--muted); }

/* ---------- buttons ----------
   Two instruments, one grammar.
   Primary: a chamfered plate, the only cut corner on the site: the shape means
   "this is the action". Hover brightens the plate and advances the arrow;
   press seats it 1px.
   Secondary: a hairline key with a cyan strip-light along its base. Hover
   raises the light through the key and flips the label to night. */
.btn {
  display: inline-block; cursor: pointer; position: relative;
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em;
  color: var(--ink); border: 1px solid var(--line2); border-radius: 0;
  padding: 13px 22px;
  /* Longhands, deliberately: the strip-light lives in background-image and
     grows via background-size, so variants (.ghost) may retint the panel
     through background-color without ever resetting the fill mechanics. */
  background-color: var(--panel);
  background-image: linear-gradient(0deg, var(--cyan), var(--cyan));
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  transition: background-size .2s ease, color .2s ease, border-color .16s ease;
}
.btn:hover, .btn:focus-visible {
  background-size: 100% 100%; color: var(--night);
  border-color: var(--cyan); text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.ghost { background-color: transparent; }
.btn.primary {
  background: var(--cyan); color: var(--night); border: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  padding: 14px 24px;
}
.btn.primary::after {
  content: '\2192'; display: inline-block; margin-left: 10px;
  transition: transform .18s ease;
}
.btn.primary:hover, .btn.primary:focus-visible { background: #7ed7f0; color: var(--night); }
.btn.primary:hover::after { transform: translateX(4px); }
.btn.tiny { padding: 8px 13px; font-size: 11px; }
.btn.tiny.primary { padding: 9px 15px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }

/* ---------- bands & grids ---------- */
.band { padding: 72px 0; border-bottom: 1px solid var(--line); }
.band.alt { background: var(--panel2); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.grid2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 24px; }
.grid2 p + p { margin-top: 14px; }
.cell {
  background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 22px;
}
.cell h3 { font-size: 17px; color: var(--ink); }
.cell p { font-size: 14.5px; color: var(--muted); }
.ticks { list-style: none; margin-top: 6px; }
.ticks li { padding: 7px 0 7px 22px; position: relative; font-size: 14.5px; color: var(--muted); border-bottom: 1px dotted var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: '›'; position: absolute; left: 4px; color: var(--cyan); }

/* four ways */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.way { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--cyan); border-radius: 0; padding: 22px; }
.way p { font-size: 14.5px; color: var(--muted); }
.way-band { font-size: 11px; letter-spacing: .12em; color: var(--cyan); margin-bottom: 10px; }

/* ---------- panels & controls ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 24px; }
.controls { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: flex-end; margin-bottom: 26px; }
.ctrl { display: flex; flex-direction: column; gap: 8px; min-width: 210px; flex: 1; }
.ctrl.small { min-width: 130px; flex: 0 1 170px; }
.ctrl.grow { flex: 2 1 260px; }
.ctrl.wide { flex: 1 1 100%; }
.ctrl-flush { align-self: flex-end; justify-content: flex-end; }
/* Nested control rows (the audit's route/distance modes) keep the outer flow
   while laying their own children out like any controls row. */
.pair-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: flex-end; }
.pair-row .ctrl { min-width: 180px; flex: 1; }
.pair-row .swap { align-self: flex-end; margin-bottom: 2px; }
@media (max-width: 640px) {
  .pair-row .ctrl { min-width: 100%; }
  .pair-row .swap { align-self: center; }
}
.ctrl label, .ctrl-label, .ctrl legend {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 10px;
}
.ctrl output { color: var(--cyan); font-size: 13px; }
select, input[type=text], input[type=number], input[type=date], textarea {
  background: var(--night); color: var(--ink);
  border: 1px solid var(--line2); border-radius: 0;
  font: 15px/1.4 var(--sans); padding: 10px 12px; width: 100%;
  box-shadow: inset 0 -2px 0 transparent;
  transition: border-color .14s, box-shadow .14s;
}
select:hover, input:hover, textarea:hover { border-color: var(--cyan); }
select:focus, input:focus, textarea:focus { box-shadow: inset 0 -2px 0 var(--cyan); }
.seg button { transition: background .14s, color .14s, box-shadow .14s; box-shadow: inset 0 -2px 0 transparent; }
.seg button.on { box-shadow: inset 0 -2px 0 var(--cyan); }
input[type=range] { accent-color: var(--cyan); width: 100%; padding: 8px 0; }

.seg { display: flex; border: 1px solid var(--line2); border-radius: 0; overflow: hidden; }
.seg button {
  flex: 1; cursor: pointer; background: var(--night); color: var(--muted);
  border: 0; border-right: 1px solid var(--line2);
  font: 12px var(--mono); letter-spacing: .04em; padding: 11px 10px;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--cyan-deep); color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.chips button {
  cursor: pointer; background: var(--night); color: var(--muted);
  border: 1px solid var(--line2); border-radius: 0;
  font: 12px var(--mono); letter-spacing: .04em; padding: 8px 14px;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .14s, border-color .14s, box-shadow .14s;
}
.chips button:hover { color: var(--ink); border-color: var(--cyan); }
.chips button.on {
  background: var(--cyan-deep); color: var(--cyan); border-color: var(--cyan);
  box-shadow: inset 0 -2px 0 var(--cyan);
}

/* ---------- quick-start presets ---------- */
.presets-label { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.presets button {
  cursor: pointer; text-align: left;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 0;
  font: 15px var(--serif); padding: 14px 16px;
  transition: border-color .15s;
}
.presets button span { display: block; font: 11px var(--mono); letter-spacing: .1em; color: var(--muted); margin-top: 5px; }
.presets button:hover { border-color: var(--cyan); }
.presets button.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.presets button.on span { color: var(--cyan); }
@media (max-width: 640px) { .presets { grid-template-columns: 1fr; } }

/* ---------- route arc instrument ---------- */
.arc-wrap { display: flex; justify-content: center; margin: 4px 0 10px; }
#r-arc { display: block; max-width: 100%; }

/* ---------- choreography (JS-gated; base state only when motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  #m-chart path.series { transition: stroke-dashoffset .9s ease; }
}

/* ---------- matcher verdicts ---------- */
.verdicts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 26px; }
.verdict { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 22px; }
.verdict.lead { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan) inset; }
.verdict.dead { opacity: .55; }
.verdict header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.verdict h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.tag { font-size: 10px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line2); padding: 2px 7px; border-radius: 0; }
.verdict-rank {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  padding: 3px 8px; border-radius: 0; background: var(--night); color: var(--muted);
}
.verdict-rank.top { background: var(--cyan); color: var(--night); font-weight: 700; }
.verdict-rank.no { background: #3A1D22; color: #E8837A; }
.verdict-cost { font-size: 22px; font-family: var(--serif); margin-bottom: 10px; }
.verdict-cost .per { font-size: 13px; font-family: var(--sans); color: var(--muted); }
.why, .watch { list-style: none; margin-top: 8px; }
.why li, .watch li { font-size: 13.5px; padding: 5px 0 5px 20px; position: relative; color: var(--muted); }
.why li::before { content: '+'; position: absolute; left: 4px; color: var(--good); font-family: var(--mono); }
.watch li::before { content: '!'; position: absolute; left: 6px; color: var(--amber); font-family: var(--mono); }

/* ---------- chart ---------- */
.chart-panel { position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-head h3 { font-size: 17px; }
.chart svg { width: 100%; height: auto; display: block; }
.grid { stroke: var(--line); stroke-width: 1; }
.axis { fill: var(--muted); font: 11px var(--mono); letter-spacing: .06em; }
.dlabel { font: 12px var(--mono); letter-spacing: .04em; fill: var(--ink); }
.you { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.you-label { fill: var(--ink); font: 10px var(--mono); letter-spacing: .1em; }
.cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-tip {
  position: absolute; top: 20px; pointer-events: none;
  background: var(--night); border: 1px solid var(--line2); border-radius: 0;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; min-width: 170px; z-index: 5;
}
.chart-tip span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.chart-tip b { color: var(--ink); margin-left: auto; }
.chart-tip i { width: 10px; height: 3px; border-radius: 0; display: inline-block; }
.chart-table { margin-top: 14px; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
tbody th { color: var(--muted); font-weight: 400; }

.share { margin-top: 16px; font-size: 13px; }

/* ---------- routes ---------- */
.route-controls { align-items: flex-end; }
.route-controls .swap { align-self: flex-end; margin-bottom: 2px; font-size: 15px; }
.ctrl.pax { flex: 0 1 110px; min-width: 100px; }
.route-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; letter-spacing: .04em; }
.route-meta b { color: var(--ink); }
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 20px; }
.route-card.stop { border-style: dashed; }
.route-card header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.route-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; }
.route-time { font-size: 12px; color: var(--cyan); letter-spacing: .08em; }
.route-cost { font-family: var(--serif); font-size: 20px; margin: 6px 0; }
.route-cost .per { font-size: 12.5px; font-family: var(--sans); color: var(--muted); }
.route-note { font-size: 13px; color: var(--muted); }

/* ---------- aircraft explorer ---------- */
.x-controls { align-items: flex-end; }
.x-count { font-size: 11px; letter-spacing: .12em; margin-bottom: 16px; }
.ac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ac-card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 20px; display: flex; flex-direction: column; }
.ac-card header .tag { display: inline-block; margin-bottom: 8px; }
.ac-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; margin-bottom: 12px; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 12px; }
.specs div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dotted var(--line); padding: 4px 0; }
.specs div:last-child { grid-column: 1 / -1; }
.specs dt { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.specs dd { font-size: 12px; color: var(--ink); text-align: right; }
.ac-note { font-size: 13px; color: var(--muted); flex: 1; margin-bottom: 14px; }
.cmp {
  cursor: pointer; background: transparent; color: var(--cyan);
  border: 1px solid var(--line2); border-radius: 0;
  font: 11px var(--mono); letter-spacing: .1em; padding: 9px;
}
.cmp:hover { border-color: var(--cyan); }
.cmp.on { background: var(--cyan-deep); border-color: var(--cyan); }
.compare { margin-top: 30px; }
.compare h3 { font-size: 12px; letter-spacing: .16em; color: var(--cyan); margin-bottom: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 0; background: var(--panel); }
.table-scroll table { min-width: 560px; }

/* ---------- ownership ---------- */
.own-head { font-size: 13px; color: var(--muted); margin-bottom: 14px; letter-spacing: .03em; }
.own-head b { color: var(--ink); }
.own-table th { font-weight: 400; font-size: 14px; }
.own-table td { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 13.5px; }
.own-total th, .own-total td { color: var(--cyan); border-top: 1px solid var(--line2); font-size: 15px; }
.own-verdict { margin-top: 16px; font-size: 15px; color: var(--muted); max-width: 70ch; }
.own-verdict b { color: var(--ink); }

/* ---------- fine print / faq ---------- */
.fp { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 10px; }
#faq-list.fp { grid-template-columns: 1fr; max-width: 780px; }
.fp-group { break-inside: avoid; }
.fp-head { display: flex; align-items: baseline; gap: 12px; font-size: 18px; margin-bottom: 10px; }
.fp-head .eyebrow { margin: 0; }
.fp-item { border: 1px solid var(--line); border-radius: 0; background: var(--panel); margin-bottom: 8px; }
.fp-item summary {
  cursor: pointer; padding: 14px 18px; font-size: 15px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.fp-item summary::-webkit-details-marker { display: none; }
.fp-item summary::after { content: '+'; font-family: var(--mono); color: var(--cyan); }
.fp-item[open] summary::after { content: '−'; }
.fp-item p { padding: 0 18px 14px; font-size: 14px; color: var(--muted); }
.fp-ask { color: var(--cyan) !important; font-size: 13px !important; }

/* ---------- RFP ---------- */
.rfp .checks { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px 16px 14px; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; }
.rfp .checks legend { padding: 0 6px; }
.rfp .checks label { display: flex; align-items: center; gap: 8px; font: 14px var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.rfp .checks input { width: auto; accent-color: var(--cyan); }
.rfp-out pre {
  white-space: pre-wrap; word-break: break-word;
  background: var(--night); border: 1px solid var(--line2); border-radius: 0;
  padding: 20px; font-size: 13px; line-height: 1.7; color: var(--ink);
}
.rfp-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- footer ---------- */
.footer { padding: 46px 0 30px; background: var(--panel2); }
.foot-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; margin-bottom: 28px; }
.brand-foot { font-size: 15px; letter-spacing: .14em; margin-bottom: 10px; }
.brand-foot b { color: var(--cyan); }
.footer .muted { font-size: 13.5px; max-width: 52ch; }
.footer nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer nav a { font-size: 14px; color: var(--muted); }
.footer nav a:hover { color: var(--cyan); }
.tiny-print { font-size: 10px; letter-spacing: .12em; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- generated library pages ---------- */
.page { max-width: 880px; margin: 0 auto; padding: 48px 22px 80px; }
.page h1 { font-family: var(--serif); font-size: clamp(27px, 4vw, 40px); font-weight: 400; line-height: 1.15; margin: 8px 0 14px; }
.page h2 { font-size: 21px; margin: 40px 0 12px; max-width: none; }
.page p, .page li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.page > p, .page section p { margin-bottom: 14px; }
.page b, .page strong { color: var(--ink); }
.page ul, .page ol { padding-left: 22px; margin-bottom: 14px; }
.page li { margin-bottom: 8px; }
.statrow { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.statrow span {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  border: 1px solid var(--line2); border-radius: 0; padding: 7px 12px; color: var(--muted);
}
.statrow b { color: var(--cyan); font-weight: 400; }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; margin: 12px 0 20px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; white-space: normal; }
table.data thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
table.data td { font-family: var(--mono); font-size: 13px; }
.table-wrap { overflow-x: auto; }
.cardlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.cardlist a {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  padding: 18px; color: var(--ink);
}
.cardlist a:hover { border-color: var(--cyan); text-decoration: none; }
.cardlist .cl-title { font-family: var(--serif); font-size: 17px; margin-bottom: 6px; display: block; }
.cardlist .cl-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); display: block; }
.cardlist .cl-note { font-size: 13px; color: var(--muted); margin-top: 8px; display: block; }
.bandimg { height: 230px; background: linear-gradient(180deg, rgba(10,15,26,.45), rgba(10,15,26,.85)), url('/assets/altitude.jpg') center / cover no-repeat; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .cardlist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .cardlist { grid-template-columns: 1fr; }
  table.data th, table.data td { padding: 8px 7px; font-size: 12px; }
  table.data td { font-size: 11.5px; }
  .bandimg { height: 150px; }
}

/* ---------- document pages (methodology, legal, verify, partner standard) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 60px 22px 90px; }
.doc h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 400; margin: 10px 0 18px; line-height: 1.15; }
.doc h2 { font-size: 22px; margin: 42px 0 12px; max-width: none; }
.doc h3 { font-size: 17px; margin-bottom: 6px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.doc p { margin-bottom: 14px; }
.doc b, .doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc .lede-doc { font-size: 17px; color: #C8CBD4; max-width: 62ch; }
.docmeta { font: 11px var(--mono); letter-spacing: .14em; color: var(--muted); margin-bottom: 28px; }
.doc .eq {
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--cyan);
  border-radius: 0; padding: 14px 18px; font-family: var(--mono); font-size: 13px;
  color: var(--ink); margin: 14px 0 18px; overflow-x: auto; white-space: pre; line-height: 1.8;
}
.doc table { margin: 10px 0 20px; }
.doc-wide { max-width: 1000px; }
.doc-sign { margin-top: 40px; margin-bottom: 0; }
/* Identity table on the imprint: a record, not a data grid. The selectors are
   deliberately heavier than table.data's cell rules, which otherwise win and
   force nowrap right-aligned mono, spilling the address off narrow screens. */
table.data.doc-idtable { table-layout: fixed; }
table.data.doc-idtable th { width: 34%; vertical-align: top; white-space: normal; text-align: left; }
table.data.doc-idtable td { text-align: left; white-space: normal; font-family: var(--sans); font-size: 15px; color: var(--ink); overflow-wrap: break-word; }

/* ---------- source lines ---------- */
/* Links out are ordinary anchors: the page still requests nothing but itself. */
.srcline { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.srctag { font-size: 9.5px; letter-spacing: .16em; color: var(--cyan); border: 1px solid var(--line2); padding: 2px 6px; border-radius: 0; margin-right: 6px; white-space: nowrap; }
.srcline a { color: var(--ink); border-bottom: 1px solid var(--line2); }
.srcline a:hover { color: var(--cyan); border-bottom-color: var(--cyan); text-decoration: none; }
.srchost { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.srcread { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.srcsep { color: var(--line2); }
.ext { font-size: 11px; opacity: .7; }
.fp-anchor { padding: 0 18px 14px !important; font-size: 11px !important; font-family: var(--mono); letter-spacing: .08em; }
.fp-anchor a { color: var(--muted); }
.fp-anchor a:hover { color: var(--cyan); }
.fp-item .srcline { padding: 0 18px 4px; }

/* ---------- shared engine furniture ---------- */
.empty-state { border-style: dashed; }
.noscript-note { border-left: 2px solid var(--amber); margin: 26px 0; }
.noscript-note .vlabel { color: var(--amber); display: block; margin-bottom: 8px; }
.noscript-note p, .noscript-note li { color: var(--muted); font-size: 15px; max-width: 68ch; }
.noscript-note ol { padding-left: 22px; margin-top: 10px; }
.noscript-note li { margin-bottom: 7px; }
.empty-tag, .verdict-tag { font-size: 10px; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.empty-state p:last-child { color: var(--muted); font-size: 15px; margin: 0; max-width: 62ch; }
.vlabel { font-size: 10px; letter-spacing: .14em; color: var(--cyan); }

/* ---------- quote audit ---------- */
.band-panel { margin-bottom: 18px; }
.band-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.band-head h3 { font-size: 18px; margin: 0; }
.band-meta { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.band-figure { font-family: var(--serif); font-size: clamp(26px, 4vw, 36px); color: var(--cyan); margin: 4px 0 16px; }
.band-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); gap: 2px 26px; }
.band-detail div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding: 7px 0; }
.band-detail dt { font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.band-detail dd { font-size: 12px; color: var(--ink); text-align: right; }

.verdict-panel { border-left: 2px solid var(--cyan); margin-bottom: 18px; }
.verdict-panel.tone-above, .verdict-panel.tone-below { border-left-color: var(--amber); }
.verdict-panel h3 { font-family: var(--serif); font-size: clamp(21px, 3vw, 27px); margin-bottom: 10px; }
.verdict-panel > p { color: var(--muted); max-width: 68ch; font-size: 15.5px; }
.verdict-panel b { color: var(--ink); }

.band-viz { margin-top: 34px; }
.viz-track { position: relative; height: 34px; background: var(--night); border: 1px solid var(--line); border-radius: 0; }
.viz-band { position: absolute; top: 0; bottom: 0; background: rgba(91, 200, 232, .16); border-left: 1px solid var(--cyan); border-right: 1px solid var(--cyan); }
.viz-you { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--ink); }
.viz-you-lab {
  position: absolute; bottom: 100%; left: 0; margin-bottom: 5px; transform: translateX(-50%);
  font-size: 9.5px; letter-spacing: .12em; color: var(--ink); white-space: nowrap;
}
.viz-you.flip .viz-you-lab { transform: translateX(-100%); }
.viz-scale { position: relative; height: 30px; margin-top: 7px; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.viz-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.viz-scale .viz-edge { color: var(--cyan); }
.viz-scale .viz-mid { top: 15px; }

.caution-panel { border-left: 2px solid #E8837A; margin-bottom: 18px; }
.caution-panel .verdict-tag { color: #E8837A; }
.caution-panel p { color: var(--muted); max-width: 68ch; font-size: 15.5px; margin: 0; }

.questions-panel .questions-lede { color: var(--muted); max-width: 68ch; font-size: 15px; margin-bottom: 16px; }
.questions-panel > p:not(.questions-lede):not(.band-meta) { color: var(--muted); max-width: 68ch; font-size: 15px; }
ol.questions { list-style: none; counter-reset: q; padding: 0; margin: 0; }
ol.questions li { counter-increment: q; position: relative; padding: 14px 0 14px 44px; border-bottom: 1px solid var(--line); }
ol.questions li:last-child { border-bottom: 0; padding-bottom: 0; }
ol.questions li::before {
  content: counter(q, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font: 12px var(--mono); letter-spacing: .1em; color: var(--cyan);
}
.q-ask { font-size: 16px; color: var(--ink); margin-bottom: 5px; max-width: 62ch; }
.q-why { font-size: 13px; color: var(--muted); margin: 0; }

.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 6px 24px; }
.qcheck, .vcheck { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--muted); padding: 7px 0; cursor: pointer; }
.qcheck input, .vcheck input { width: auto; margin-top: 3px; accent-color: var(--cyan); flex: none; }
.qcheck:hover, .vcheck:hover { color: var(--ink); }
.qcheck input:checked + span { color: var(--ink); }

/* ---------- renewal mode ---------- */
.renewal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-bottom: 16px; }
.renewal-grid div { display: flex; flex-direction: column; gap: 3px; border-left: 1px solid var(--line2); padding-left: 14px; }
.renewal-grid b { font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.rn-per { font-size: 12px; color: var(--muted); }
.renewal-read { font-size: 15px; color: var(--muted); max-width: 72ch; }
.renewal-read b { color: var(--ink); }
.exit-line { margin-top: 12px; padding-top: 12px; border-top: 1px dotted var(--line); font-size: 13.5px; color: var(--muted); }
.exit-line b { color: var(--ink); }
.exit-line .vlabel { display: block; margin-bottom: 4px; }

/* ---------- empty-leg checker ---------- */
.e-line { font-size: 16px; color: var(--muted); max-width: 68ch; margin-bottom: 18px; }
.e-line b { color: var(--ink); }
.e-risk { border-top: 1px solid var(--line); padding-top: 16px; }
.e-risk .vlabel { display: block; margin-bottom: 8px; }
.e-foot { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- trip brief ---------- */
.tb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.tb-status { font-size: 10px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line2); padding: 3px 8px; border-radius: 0; }
.tb-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 4px; flex: 1 1 100%; }

/* ---------- operator verification ---------- */
.vsteps { list-style: none; padding: 0; margin: 26px 0 0; counter-reset: v; }
.vstep { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--line2); border-radius: 0; padding: 22px; margin-bottom: 16px; }
.vstep.done { border-left-color: var(--good); }
.vstep-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.vstep-n { font-size: 12px; letter-spacing: .12em; color: var(--cyan); }
.vstep-head h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin: 0; }
.vstep-what { font-size: 15px; color: var(--muted); max-width: 70ch; margin-bottom: 14px; }
.vstep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 4px; }
.vstep-grid p { font-size: 13.5px; color: var(--muted); margin: 0; }
.vstep-grid .vlabel { display: block; margin-bottom: 4px; }
.vstep-limits .vlabel { color: var(--amber); }
.vstep-record { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--line); }
.vnote { flex: 1 1 260px; }
.v-progress { font-size: 10px; letter-spacing: .14em; color: var(--muted); border: 1px solid var(--line2); padding: 4px 10px; border-radius: 0; }
.v-progress.all-done { color: var(--good); border-color: var(--good); }
.flaglist { list-style: none; padding: 0; }
.flaglist li { position: relative; padding: 9px 0 9px 24px; font-size: 15px; color: var(--muted); border-bottom: 1px dotted var(--line); }
.flaglist li:last-child { border-bottom: 0; }
.flaglist li::before { content: '!'; position: absolute; left: 6px; color: var(--amber); font-family: var(--mono); }

/* ---------- the index ---------- */
.idx-hero { border-bottom: 1px solid var(--line); padding: 56px 0 44px; }
.idx-edition { font-size: 11px; letter-spacing: .18em; color: var(--cyan); margin-bottom: 12px; }
.idx-figure { font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); color: var(--ink); line-height: 1.15; max-width: 20ch; }
.idx-spread { overflow-x: auto; margin: 16px 0 8px; }
.idx-spread table { min-width: 700px; }
.idx-spread td.pjs { color: var(--cyan); }
.idx-spread .lab, table.data .lab { font-size: 10.5px; color: var(--muted); display: block; letter-spacing: .04em; white-space: normal; }
.delta-up { color: var(--amber); }
.delta-dn { color: var(--good); }
.idx-cite { background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--cyan); border-radius: 0; padding: 18px 22px; margin: 26px 0; }
.idx-cite p { margin-bottom: 6px; }
.idx-cite .cite-text { font-family: var(--mono); font-size: 13px; color: var(--ink); line-height: 1.7; }
.srcgrid { list-style: none; padding: 0; }
.srcgrid li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.srcgrid li:last-child { border-bottom: 0; }
.srckind { font: 9.5px var(--mono); letter-spacing: .14em; padding: 2px 7px; border-radius: 0; border: 1px solid var(--line2); color: var(--muted); margin-right: 8px; white-space: nowrap; }
.srckind.primary { color: var(--good); border-color: rgba(134,201,168,.4); }
.srckind.database { color: var(--cyan); border-color: rgba(91,200,232,.4); }
.srckind.seller { color: var(--amber); border-color: rgba(201,151,63,.45); }
.ctxrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 18px 0 8px; }
.ctxrow .cell b { display: block; font-family: var(--serif); font-size: 25px; font-weight: 400; color: var(--cyan); margin: 4px 0 6px; }

/* ---------- partner standard ---------- */
.std-empty { border: 1px dashed var(--line2); border-radius: 0; padding: 26px; margin: 26px 0; }
.std-empty p { margin: 0; max-width: 66ch; }
.std-list { list-style: none; padding: 0; counter-reset: s; }
.std-list li { counter-increment: s; position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); }
.std-list li:last-child { border-bottom: 0; }
.std-list li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 20px;
  font: 12px var(--mono); letter-spacing: .1em; color: var(--cyan);
}
.std-list h3 { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 5px; }
.std-list p { margin: 0; }

@media (max-width: 720px) {
  .vstep-grid { grid-template-columns: 1fr; gap: 12px; }
  .vstep-record { align-items: stretch; }
}

/* ---------- Decision Memo (print artifact) ---------- */
#memo { display: none; }
@media print {
  body > *:not(#memo) { display: none !important; }
  body { background: #fff; color: #111; font: 12pt/1.5 'Besley', Georgia, serif; }
  #memo { display: block; padding: 0; max-width: 100%; }
  /* One letterhead for every artifact this site produces, so a forwarded
     PrivateJetSky document is recognisable as one before it is read. */
  #memo .memo-head { border-bottom: 1.5pt solid #111; padding-bottom: 6pt; margin-bottom: 16pt; }
  #memo .memo-brand { font: 11pt 'Fragment Mono', Consolas, monospace; letter-spacing: .2em; margin-bottom: 1pt; }
  #memo .memo-artifact { font: 9pt 'Fragment Mono', Consolas, monospace; letter-spacing: .22em; color: #333; margin-bottom: 5pt; }
  #memo .memo-meta { font: 8.5pt 'Fragment Mono', Consolas, monospace; color: #555; margin-bottom: 0; }
  #memo h1 { font-size: 20pt; font-weight: normal; margin-bottom: 8pt; }
  #memo h2 { font-size: 13pt; font-weight: normal; margin: 11pt 0 5pt; }
  #memo .memo-profile { margin-bottom: 10pt; }
  #memo .memo-verdicts { padding-left: 18pt; }
  #memo .memo-verdicts li { margin-bottom: 6pt; font-size: 10.5pt; }
  #memo table { border-collapse: collapse; width: 100%; font: 9.5pt 'Fragment Mono', Consolas, monospace; margin: 5pt 0 10pt; }
  #memo th, #memo td { border: 1pt solid #999; padding: 4pt 8pt; text-align: right; }
  #memo th:first-child, #memo td:first-child { text-align: left; }
  #memo .memo-foot { font-size: 8.5pt; color: #444; margin-top: 8pt; }
}

/* ---------- mobile navigation ---------- */
@media (max-width: 820px) {
  /* backdrop-filter would make the fixed overlay position against the header */
  .topbar { backdrop-filter: none; background: rgba(10, 15, 26, 0.97); }
  .nav-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; cursor: pointer;
    border: 1px solid var(--line2); border-radius: 0; z-index: 70;
  }
  .nav-btn span {
    display: block; width: 100%; height: 2px; background: var(--ink);
    border-radius: 0; transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-btn { border-color: var(--cyan); }
  .nav-toggle:checked ~ .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cyan); }
  .nav-toggle:checked ~ .nav-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cyan); }
  .nav-toggle:focus-visible ~ .nav-btn { outline: 2px solid var(--cyan); outline-offset: 2px; }

  .nav-links {
    position: fixed; inset: 0; z-index: 40;
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 0; padding: 86px 30px 40px;
    background: var(--night);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .nav-toggle:checked ~ .nav-links {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .28s ease, transform .28s ease;
  }
  .nav-links a {
    font-family: var(--serif); font-size: 30px; letter-spacing: 0;
    color: var(--ink); padding: 13px 0; width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:hover, .nav-links a.on { color: var(--cyan); }
  .nav-links a.cta {
    background: var(--cyan); color: var(--night);
    font-family: var(--mono); font-size: 15px; letter-spacing: .08em;
    text-align: center; padding: 15px; margin-top: 26px;
    border-radius: 0; border-bottom: 0; font-weight: 700;
  }
  .nav-foot { display: block; margin-top: 22px; font-size: 11px; letter-spacing: .12em; }
  .nav-foot a { display: inline; font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 0; border: 0; width: auto; }
  .nav-mobile-only { display: block; }
  html.nav-open, html.nav-open body { overflow: hidden; }

  /* Touch targets. Anything you tap gets a finger-sized box below this width,
     including the compact buttons that are fine with a mouse. */
  .btn { padding: 14px 22px; line-height: 1.2; }
  .btn.tiny { padding: 14px 17px; font-size: 12px; }
  .seg button { min-height: 46px; }
  .qcheck, .vcheck { min-height: 44px; padding: 11px 0; }
  .brand { min-height: 44px; }
  .fp-item summary { padding: 16px 18px; min-height: 44px; }
  .cmp { min-height: 44px; }
  .chips button { min-height: 44px; padding: 8px 16px; }
  .presets button { padding: 16px; }
  .btn, .btn.tiny { min-height: 44px; }
  select, input[type=text], input[type=number], input[type=date] { min-height: 44px; }
}
@media (min-width: 821px) {
  .nav-mobile-only { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid4, .ways { grid-template-columns: repeat(2, 1fr); }
  .route-grid, .ac-grid { grid-template-columns: repeat(2, 1fr); }
  .fp { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .band { padding: 52px 0; }
  .hero-inner { padding: 56px 18px 44px; }
  .grid4, .ways, .route-grid, .ac-grid, .verdicts, .grid2, .foot-grid { grid-template-columns: 1fr; }
  .hook { flex-direction: column; gap: 6px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .controls { gap: 16px; }
  .ctrl, .ctrl.small { min-width: 100%; flex: 1 1 100%; }
  .route-controls .swap { align-self: center; }
}
