/* TailWatcher site. Night-sky navy from the logo, engine-exhaust orange as the
   one hot accent, departures-board black and amber for the split-flap pieces.
   Layout: one centred column (1160px) of full-width bands; the hero and the
   board are the two loud moments, everything between them stays quiet. */
:root {
  color-scheme: dark;
  --night: #061024;
  --sky: #0b1d3a;
  --sky-2: #12305c;
  --blue: #1f5fa8;
  --ice: #9cc8ff;
  --ink: #eef3fa;
  --muted: #9fb2cc;
  --faint: #6c819f;
  --line: rgba(156, 200, 255, .14);
  --line-2: rgba(156, 200, 255, .26);
  --glow: #ff8a3d;
  --glow-hot: #ffd2a8;
  --glow-deep: #e2611a;
  --board: #0c0d10;
  --board-2: #15171b;
  --tile-top: #26292f;
  --tile-bot: #1f2227;
  --amber: #ffd23f;
  --green: #6fe39b;
  --red: #ff7a5c;
  --paper: #f4f7fb;
  --paper-ink: #0b1d3a;
  --paper-muted: #50637f;

  --display: "Barlow Condensed", "DIN Condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img, svg { max-width: 100%; }
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--mono); font-size: .86em; }
code { background: rgba(156, 200, 255, .1); border: 1px solid var(--line); padding: .08em .38em; border-radius: 5px; color: #dbe9ff; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 8vw, 104px); position: relative; }
.eyebrow {
  font: 600 14px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font: 700 clamp(40px, 5.6vw, 64px)/.98 var(--display); letter-spacing: -.005em; text-transform: uppercase; margin-top: 14px; }
.lede { font-size: clamp(18px, 1.9vw, 21px); color: var(--muted); max-width: 62ch; margin-top: 18px; }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  border-radius: 999px; font: 600 17px/1 var(--body); text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-hot { background: var(--glow); color: #1a0b02; box-shadow: 0 8px 30px -8px rgba(255, 138, 61, .7); }
.btn-hot:hover { background: #ff9d5c; color: #1a0b02; transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(255, 138, 61, .85); }
.btn-ghost { background: rgba(156, 200, 255, .06); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(156, 200, 255, .13); color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(6, 16, 36, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: 700 25px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(156, 200, 255, .08); }
.nav-gh { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; border: 1px solid var(--line-2); border-radius: 999px !important; padding: 7px 14px !important; margin-left: 6px; }
.nav-gh svg { width: 18px; height: 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 880px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 10px var(--gutter-r) 16px var(--gutter-l); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 18px; }
  .nav-gh { margin: 8px 0 0; justify-content: center; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1200px 600px at 78% 30%, rgba(31, 95, 168, .45), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--sky) 70%, #0d2244 100%); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(120px, 14vw, 170px); }
.hero-copy { min-width: 0; }
.hero-mark { width: 92px; height: 92px; display: block; margin-bottom: 26px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.hero h1 { font: 800 clamp(52px, 7.4vw, 96px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 .hot { color: var(--glow); text-shadow: 0 0 40px rgba(255, 138, 61, .35); }
.hero .lede { color: #c3d3ea; margin-top: 24px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font: 500 14px/1.3 var(--mono); color: var(--muted); letter-spacing: .02em; list-style: none; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* radar + phone */
.scope { position: relative; min-width: 0; display: grid; place-items: center; aspect-ratio: 1 / 1.02; max-width: 520px; width: 100%; margin-left: auto; }
.radar { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 95, 168, .28) 0%, rgba(11, 29, 58, .2) 55%, transparent 70%); }
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(156, 200, 255, .32), rgba(156, 200, 255, 0) 55deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, #000 0 69.5%, transparent 70%); mask: radial-gradient(circle, #000 0 69.5%, transparent 70%);
  animation: sweep 6s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.blip::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--glow); opacity: 0; animation: ping 3s ease-out infinite; animation-delay: inherit; }
.blip span { position: absolute; left: 14px; top: -8px; font: 600 11px/1 var(--mono); color: var(--glow-hot); white-space: nowrap; letter-spacing: .04em; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

.phone {
  position: relative; z-index: 2; width: min(300px, 74%); aspect-ratio: 9 / 18.6; border-radius: 44px;
  background: #05080f; padding: 11px; box-shadow: 0 0 0 1.5px #2a3952, 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(31, 95, 168, .8);
}
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background: radial-gradient(140% 80% at 30% 0%, #2b4f86 0%, #13284b 45%, #0a1426 100%); }
.phone-notch { position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: #05080f; border-radius: 20px; z-index: 3; }
.phone-time { text-align: center; padding-top: 52px; font: 300 58px/1 var(--body); color: #f4f7fd; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.phone-date { text-align: center; font: 500 14px/1 var(--body); color: #c9d7ee; margin-top: 6px; }
.stack { position: absolute; left: 10px; right: 10px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.notif {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 11px 12px; border-radius: 18px;
  background: rgba(236, 242, 252, .17); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: #fff; font-size: 12.5px; line-height: 1.32; border: 1px solid rgba(255, 255, 255, .08);
  transform-origin: 50% 100%;
}
.notif .app { width: 34px; height: 34px; border-radius: 9px; background: #317f6f; display: grid; place-items: center; }
.notif .app svg { width: 20px; height: 20px; }
.notif .top { display: flex; justify-content: space-between; gap: 6px; color: rgba(255, 255, 255, .62); font-size: 11px; }
.notif b { display: block; font-weight: 600; font-size: 13px; margin-top: 1px; }
.notif p { color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .notif:nth-child(3) { display: none; } .blip span { display: none; } .notif p { -webkit-line-clamp: 2; } }
.notif.enter { animation: notif-in .6s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes notif-in { from { transform: translateY(26px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* takeoff strip at the bottom of the hero */
.runway { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.runway::before { content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(238, 243, 250, .5) 0 46px, transparent 46px 86px); opacity: .5; }
.runway::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(180deg, rgba(6, 16, 36, 0), var(--night)); }
.jet { position: absolute; left: -140px; bottom: 30px; width: 120px; animation: takeoff 14s cubic-bezier(.55, 0, .7, .4) infinite; }
.jet svg { width: 100%; height: auto; display: block; }
.trail { position: absolute; right: 96%; top: 52%; height: 3px; width: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55)); animation: trail 14s cubic-bezier(.55, 0, .7, .4) infinite; }
@keyframes takeoff {
  0% { transform: translate(0, 0) rotate(0); }
  38% { transform: translate(52vw, 0) rotate(0); }
  48% { transform: translate(64vw, -14px) rotate(-7deg); }
  70%, 100% { transform: translate(118vw, -150px) rotate(-11deg); }
}
@keyframes trail { 0%, 40% { width: 0; } 70%, 100% { width: 340px; } }
@media (prefers-reduced-motion: reduce) {
  .sweep, .jet, .trail, .blip::after { animation: none !important; }
  .jet { left: 62%; transform: translateY(-40px) rotate(-9deg); }
  .notif.enter { animation: none; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .scope { margin: 0 auto; max-width: 440px; }
}

/* ---------- departures board ---------- */
.board-band { background: linear-gradient(180deg, var(--night), #070a12 30%, #070a12 70%, var(--night)); }
.board {
  background: var(--board); border-radius: 18px; padding: clamp(16px, 3vw, 30px);
  box-shadow: inset 0 0 0 1px #24272d, 0 30px 80px -30px rgba(0, 0, 0, .9);
  position: relative;
}
.board::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 3px; background: var(--amber); border-radius: 0 0 4px 4px; opacity: .85; }
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
.board-title { display: flex; align-items: center; gap: 14px; font: 700 clamp(26px, 3.6vw, 40px)/1 var(--display); letter-spacing: .14em; color: var(--amber); text-transform: uppercase; }
.board-title svg { width: 38px; height: 38px; }
.board-clock { font: 600 15px/1 var(--mono); color: #b9bcc4; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.board-clock b { color: var(--amber); font-weight: 600; }
.board-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 6px; }
.board-grid { display: grid; grid-template-columns: repeat(5, auto) minmax(220px, 1fr); column-gap: clamp(10px, 1.8vw, 22px); row-gap: 10px; align-items: center; }
@media (max-width: 1100px) { .board-grid { min-width: max-content; } }
.board-grid .h { font: 600 12.5px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: #7d8290; padding-bottom: 4px; }
.board-grid .note { font-size: 14.5px; line-height: 1.35; color: #b9bcc4; max-width: 340px; }
.board-grid .note b { color: #f2eee2; font-weight: 600; }
.flaps { display: inline-flex; gap: 3px; }
.flap {
  --w: 21px; --h: 31px; position: relative; width: var(--w); height: var(--h); border-radius: 3px; perspective: 200px;
  background: linear-gradient(var(--tile-top) 0 50%, var(--tile-bot) 50% 100%); color: #f2eee2;
  font: 700 19px/1 var(--mono); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .03), 0 1px 0 rgba(0, 0, 0, .6);
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: #050608; }
.flap.y { color: var(--amber); } .flap.g { color: var(--green); } .flap.o { color: var(--glow); } .flap.r { color: var(--red); } .flap.m { color: #7d8290; }
.flap.flip { animation: flapflip .44s cubic-bezier(.3, .6, .4, 1) both; }
@keyframes flapflip { 0% { transform: rotateX(0); } 45% { transform: rotateX(88deg); filter: brightness(.55); } 55% { transform: rotateX(-88deg); filter: brightness(.55); } 100% { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .flap.flip { animation: none; } }
@media (max-width: 640px) {
  .flap { --w: 17px; --h: 26px; font-size: 15px; }
  .board-grid { grid-template-columns: auto auto; min-width: 0; row-gap: 6px; column-gap: 8px; }
  .board-grid .c-time, .board-grid .c-plane, .board-grid .c-to, .board-grid .c-note { display: none; }
  .board-grid .note { grid-column: 1 / -1; max-width: none; margin-bottom: 8px; font-size: 14px; }
}
@media (max-width: 360px) { .flap { --w: 15px; --h: 24px; font-size: 13px; } }
.board-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 22px; padding-top: 16px; border-top: 1px dashed #2a2d33; font: 500 13.5px/1.4 var(--mono); color: #7d8290; }
.board-foot a { color: var(--amber); }
.board-caption { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; color: var(--muted); font-size: 16px; }
.board-caption b { display: block; color: var(--ink); font: 700 20px/1.1 var(--display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- boarding passes (headline features) ---------- */
.passes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .passes { grid-template-columns: 1fr; max-width: 640px; } }
.pass {
  --notch: 13px; position: relative; display: grid; grid-template-rows: auto 1fr auto; min-width: 0;
  background: var(--paper); color: var(--paper-ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - 92px), transparent 98%, #000) , radial-gradient(circle var(--notch) at 100% calc(100% - 92px), transparent 98%, #000);
  -webkit-mask-composite: source-in; mask: radial-gradient(circle var(--notch) at 0 calc(100% - 92px), transparent 98%, #000) intersect, radial-gradient(circle var(--notch) at 100% calc(100% - 92px), transparent 98%, #000);
}
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--sky); color: var(--ink); padding: 14px 20px; }
.pass-head span { font: 600 12.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); }
.pass-head img { width: 30px; height: 30px; border-radius: 7px; }
.pass-body { padding: 22px 22px 24px; display: grid; gap: 14px; align-content: start; }
.route { display: flex; align-items: center; gap: 12px; }
.route .code { font: 800 46px/1 var(--display); letter-spacing: .01em; }
.route .code small { display: block; font: 600 11px/1.2 var(--mono); letter-spacing: .12em; color: var(--paper-muted); text-transform: uppercase; margin-top: 3px; }
.route .path { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, #9aaac2 0 6px, transparent 6px 12px); position: relative; }
.route .path svg { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%, -50%) rotate(90deg); color: var(--blue); }
.pass h3 { font: 700 28px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.pass p { color: var(--paper-muted); font-size: 16.5px; line-height: 1.5; }
.pass p code { background: #e4ebf5; border-color: #d3deeb; color: #0b1d3a; white-space: normal; }
.pass-stub { border-top: 2px dashed #c8d3e2; height: 92px; padding: 14px 22px; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; align-items: center; gap: 10px; }
.pass-stub div { font: 600 10.5px/1.25 var(--mono); letter-spacing: .14em; color: var(--paper-muted); text-transform: uppercase; }
.pass-stub div b { display: block; font: 700 22px/1.1 var(--display); letter-spacing: .02em; color: var(--paper-ink); margin-top: 3px; }
.pass-stub .hot b { color: var(--glow-deep); }

/* ---------- also on board ---------- */
.also { margin-top: clamp(56px, 7vw, 84px); }
.also h3 { font: 700 26px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.also h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 34px; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.feat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(156, 200, 255, .08); border: 1px solid var(--line); color: var(--ice); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h4 { margin: 2px 0 4px; font: 600 18px/1.3 var(--body); color: var(--ink); }
.feat p { color: var(--muted); font-size: 16px; line-height: 1.5; }
.tag-new { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #1a0b02; background: var(--glow); padding: 3px 6px; border-radius: 4px; vertical-align: 2px; margin-left: 6px; }

/* ---------- how it works (flight plan) ---------- */
.plan { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: wpt; }
.plan::before { content: ""; position: absolute; left: 30px; right: 30px; top: 29px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); }
.plan li { position: relative; min-width: 0; }
.wpt { position: relative; width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 20px; }
.wpt svg { width: 60px; height: 60px; }
.wpt b { position: absolute; font: 700 18px/1 var(--mono); color: var(--ink); }
.plan li:last-child .wpt b { color: #1a0b02; }
.plan h3 { font: 700 26px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.plan .ident { font: 600 12px/1 var(--mono); color: var(--faint); letter-spacing: .14em; margin-bottom: 8px; display: block; }
.plan p { color: var(--muted); font-size: 16.5px; margin-top: 8px; }
@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr; gap: 26px; }
  .plan::before { left: 29px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 10px, transparent 10px 18px); }
  .plan li { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 18px; }
  .wpt { margin: 0; }
}

/* signal path diagram */
.signal { margin-top: clamp(56px, 7vw, 80px); border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); background: linear-gradient(180deg, rgba(18, 48, 92, .35), rgba(11, 29, 58, .15)); }
.signal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.signal-head h3 { font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.signal-head p { color: var(--muted); font-size: 15.5px; }
.signal-scroll { overflow-x: auto; }
.signal svg { display: block; width: 100%; min-width: 760px; height: auto; }
.signal .lbl { font: 700 17px var(--display); letter-spacing: .06em; fill: var(--ink); text-transform: uppercase; }
.signal .sub { font: 500 12px var(--mono); fill: var(--muted); }
.signal .pkt { animation: pkt 4s linear infinite; }
@keyframes pkt { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -96; } }
@media (prefers-reduced-motion: reduce) { .signal .pkt { animation: none; } }

/* ---------- trips timeline ---------- */
.trip-band { background: linear-gradient(180deg, var(--night), var(--sky) 55%, var(--night)); overflow: hidden; }
.trip-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .trip-grid { grid-template-columns: 1fr; } }
.trip-copy .lede { margin-top: 18px; }
.trip-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.trip-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--muted); font-size: 16.5px; }
.trip-points li svg { width: 22px; height: 22px; color: var(--glow); margin-top: 2px; }
.trip-points b { color: var(--ink); font-weight: 600; }

.leg { border-radius: 20px; background: rgba(6, 16, 36, .55); border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); min-width: 0; }
.leg-map { position: relative; height: 150px; margin-bottom: 18px; }
.leg-map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.leg-map .apt { font: 800 26px var(--display); fill: var(--ink); letter-spacing: .02em; }
.leg-map .aptsub { font: 500 11.5px var(--mono); fill: var(--faint); }
.leg-map .tiny { font: 600 11.5px var(--mono); fill: var(--glow-hot); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: start; }
.tl time { font: 600 14px/1 var(--mono); color: var(--faint); padding-top: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.tl-card { background: rgba(236, 242, 252, .07); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; min-width: 0; }
.tl-card b { display: block; font-weight: 600; font-size: 15.5px; }
.tl-card span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.tl.hot .tl-card { border-color: rgba(255, 138, 61, .5); background: rgba(255, 138, 61, .1); }
.tl.done .tl-card { border-color: rgba(111, 227, 155, .4); background: rgba(111, 227, 155, .07); }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 880px) { .extras { grid-template-columns: 1fr; } }
.extra { border-top: 2px solid var(--glow); padding-top: 16px; }
.extra h4 { margin: 0 0 6px; font: 700 22px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.extra p { color: var(--muted); font-size: 16px; }
.extra code { white-space: normal; }

/* ---------- text commands chat ---------- */
.cmd-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .cmd-grid { grid-template-columns: 1fr; } }
.chat { border-radius: 22px; background: #0e1626; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); min-width: 0; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #317f6f; color: #fff; }
.chat-top svg { width: 24px; height: 24px; }
.chat-top b { font-weight: 600; font-size: 16px; }
.chat-top small { display: block; font: 500 11.5px/1.2 var(--mono); opacity: .8; }
.chat-log { height: 380px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; animation: notif-in .45s cubic-bezier(.2, .9, .3, 1.15) both; }
.msg.me { align-self: flex-end; background: #2f6fd0; color: #fff; border-bottom-right-radius: 5px; font-family: var(--mono); font-size: 14px; }
.msg.tw { align-self: flex-start; background: #1d2a40; color: #e7eef9; border-bottom-left-radius: 5px; }
.msg.tw b { display: block; font-weight: 600; margin-bottom: 2px; }
.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input div { flex: 1; min-height: 40px; border-radius: 20px; background: #1a2436; padding: 10px 16px; font: 500 14px/1.4 var(--mono); color: #e7eef9; min-width: 0; overflow: hidden; white-space: nowrap; }
.chat-input div:empty::before { content: "Message"; color: #6c819f; font-family: var(--body); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--glow); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-input .send { width: 40px; height: 40px; border-radius: 50%; background: #317f6f; display: grid; place-items: center; flex: none; }
.chat-input .send svg { width: 18px; height: 18px; color: #fff; }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } .caret { animation: none; } }

.cmd-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.cmd-table th { text-align: left; font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.cmd-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.cmd-table td:first-child { padding-right: 16px; width: 46%; }
.cmd-table code { white-space: normal; color: var(--glow-hot); background: rgba(255, 138, 61, .08); border-color: rgba(255, 138, 61, .22); }
.cmd-more { margin-top: 16px; font-size: 15.5px; color: var(--muted); }

/* ---------- screens ---------- */
.screens-band { background: radial-gradient(900px 500px at 50% 0%, rgba(31, 95, 168, .3), transparent 70%), var(--night); }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(156, 200, 255, .07); border: 1px solid var(--line-2); margin-bottom: 26px; }
.tabs button { font: 600 16px/1 var(--body); color: var(--muted); background: none; border: 0; padding: 11px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--night); }
.tabs button[data-theme-tab="board"][aria-selected="true"] { background: var(--amber); color: #000; }
.shots { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 28px; align-items: end; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } .shot-phone { width: min(250px, 70%); justify-self: center; } }
.browser { border-radius: 14px; overflow: hidden; background: #0d1422; box-shadow: 0 0 0 1px var(--line-2), 0 40px 90px -30px rgba(0, 0, 0, .9); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #141d2e; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4558; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 10px; flex: 1; min-width: 0; background: #0d1422; border-radius: 7px; padding: 5px 12px; font: 500 12.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img, .shot-phone img { display: block; width: 100%; height: auto; }
.shot-phone { border-radius: 34px; padding: 9px; background: #05080f; box-shadow: 0 0 0 1.5px #2a3952, 0 40px 80px -30px rgba(0, 0, 0, .9); }
.shot-phone img { border-radius: 26px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.shot-caption { margin-top: 22px; color: var(--muted); font-size: 16px; max-width: 70ch; }
.shot-caption [hidden] { display: none; }

/* ---------- install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 920px) { .install-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.checklist li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(11, 29, 58, .4); }
.checklist li:last-child { border-bottom: 0; }
.checklist .box { width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; font: 700 14px var(--mono); color: var(--ice); margin-top: 2px; }
.checklist h3 { font: 700 21px/1.15 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.checklist p { color: var(--muted); font-size: 16px; margin-top: 4px; }
.checklist pre { margin: 12px 0 0; background: #050a16; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font: 500 13.5px/1.6 var(--mono); color: #dbe9ff; }
.checklist pre .c { color: var(--faint); }
.checklist pre code { white-space: pre; background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.needs { border-radius: 18px; padding: 24px; background: var(--paper); color: var(--paper-ink); }
.needs h3 { font: 700 22px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.needs h3 span { font: 600 11px/1 var(--mono); letter-spacing: .12em; color: var(--paper-muted); }
.needs ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.needs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px dashed #c8d3e2; font-size: 16px; }
.needs li span { color: var(--paper-muted); font-size: 14.5px; display: block; }
.needs li em { font: 600 11px/1.6 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; background: #dfe8f4; color: var(--paper-ink); align-self: start; }
.needs li em.req { background: var(--glow); color: #1a0b02; }
.store-note { margin-top: 16px; font-size: 14.5px; color: var(--paper-muted); }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--glow); border-bottom: 2px solid var(--glow); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--muted); font-size: 16.5px; padding: 0 0 20px; }
.faq details p + p { margin-top: -8px; }

/* ---------- open source ---------- */
.oss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 880px) { .oss { grid-template-columns: 1fr; } }
.oss-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 480px) { .oss-cards { grid-template-columns: 1fr; } }
.oss-card { display: block; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(11, 29, 58, .5); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; min-width: 0; }
.oss-card:hover { border-color: var(--glow); color: var(--ink); transform: translateY(-2px); }
.oss-card svg { width: 26px; height: 26px; color: var(--glow); }
.oss-card b { display: block; font: 700 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; }
.oss-card span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; list-style: none; padding: 0; }
.stack-list li { font: 500 13px/1 var(--mono); padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- final call + footer ---------- */
.final { text-align: center; overflow: hidden; background: radial-gradient(700px 380px at 50% 100%, rgba(255, 138, 61, .22), transparent 70%), linear-gradient(180deg, var(--night), var(--sky)); }
.final .wrap { display: grid; justify-items: center; }
.final-mark { width: min(300px, 64vw); height: auto; margin-bottom: 30px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.final h2 { font: 800 clamp(48px, 7vw, 88px)/.92 var(--display); text-transform: uppercase; }
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; }
.footer { border-top: 1px solid var(--line); background: var(--night); padding-block: 36px 44px; color: var(--faint); font-size: 15px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .brand { font-size: 20px; }
.footer .brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer small { display: block; margin-top: 6px; font-size: 13.5px; }

/* engine glow on inline logos */
.engine { animation: burn 2.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes burn { from { opacity: .82; } to { opacity: 1; filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .engine { animation: none; } }

/* ---------- inner pages (docs, flight log, 404) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 84px) clamp(28px, 4vw, 44px); background: linear-gradient(180deg, var(--night), var(--sky)); border-bottom: 1px solid var(--line); }
.page-head h1 { font: 800 clamp(48px, 7vw, 80px)/.92 var(--display); text-transform: uppercase; margin-top: 12px; }
.page-head .lede { margin-top: 14px; }

/* docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: 40px 96px; align-items: start; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .toc { position: static !important; max-height: none !important; } }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); max-height: calc(100vh - 110px); overflow: auto; display: grid; gap: 2px; padding-right: 6px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 15.5px; padding: 7px 12px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-color: var(--line-2); }
.toc a.on { color: var(--ink); border-color: var(--glow); background: rgba(255, 138, 61, .06); }
.toc .toc-title { font: 600 12px/1 var(--mono); letter-spacing: .14em; color: var(--faint); text-transform: uppercase; padding: 0 12px 10px; }
.docs-search { position: relative; margin-top: 24px; max-width: 520px; }
.docs-search input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(6, 16, 36, .7); color: var(--ink); font: 400 17px var(--body); padding: 0 16px 0 46px; }
.docs-search input::placeholder { color: var(--faint); }
.docs-search svg { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--faint); }
.guide { min-width: 0; max-width: 760px; }
.guide section { scroll-margin-top: 90px; }
.guide section + section { margin-top: 12px; }
.guide section[data-level="2"] { padding-top: 32px; }
.guide section[data-level="2"]:first-child { padding-top: 0; }
.guide h2 { font: 700 38px/1.02 var(--display); text-transform: uppercase; letter-spacing: .01em; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.guide h3 { font: 600 20px/1.3 var(--body); margin: 18px 0 8px; color: var(--ink); }
.guide p, .guide li { color: #c3d0e3; font-size: 17px; }
.guide p { margin: 0 0 14px; }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 24px; display: grid; gap: 6px; }
.guide ul ul { margin: 8px 0 0; }
.guide li::marker { color: var(--glow); }
.guide b { color: var(--ink); font-weight: 600; }
.guide code { white-space: normal; }
.guide .table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
.guide th, .guide td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c3d0e3; }
.guide th { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); background: rgba(156, 200, 255, .04); }
.guide tr:last-child td { border-bottom: 0; }
.guide td code { color: var(--glow-hot); background: rgba(255, 138, 61, .08); border-color: rgba(255, 138, 61, .22); }
.guide blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--ice); background: rgba(156, 200, 255, .06); border-radius: 0 10px 10px 0; color: var(--muted); }
.guide i { color: var(--muted); }
.guide mark { background: rgba(255, 210, 63, .25); color: inherit; border-radius: 3px; padding: 0 2px; }
.guide .empty { color: var(--muted); padding: 24px 0; }
.guide-src { margin-top: 40px; padding-top: 18px; border-top: 1px dashed var(--line-2); color: var(--faint); font-size: 14.5px; }

/* flight log */
.log { padding-block: 40px 96px; }
.log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; background: var(--board); border-radius: 18px; box-shadow: inset 0 0 0 1px #24272d; overflow: hidden; }
.log-row { display: grid; grid-template-columns: auto 120px minmax(0, 1fr) auto; gap: 8px 26px; align-items: start; padding: 20px clamp(16px, 3vw, 28px); border-bottom: 1px solid #1d2025; }
.log-row:last-child { border-bottom: 0; }
.log-row .when { font: 600 13.5px/31px var(--mono); color: #7d8290; font-variant-numeric: tabular-nums; }
.log-row h2 { font: 700 23px/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; color: #f2eee2; margin-top: 3px; }
.log-row p { color: #b9bcc4; font-size: 16px; margin-top: 6px; max-width: 72ch; }
.log-row .st { padding-top: 0; }
.log-row.next { background: rgba(255, 210, 63, .035); }
@media (max-width: 760px) {
  .log-row { grid-template-columns: auto minmax(0, 1fr); }
  .log-row .when { grid-column: 2; grid-row: 1; }
  .log-row .body { grid-column: 1 / -1; }
  .log-row .st { grid-column: 1 / -1; grid-row: 3; }
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--muted); font-size: 15px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* 404 */
.lost { min-height: 70vh; display: grid; align-content: center; justify-items: start; gap: 22px; padding-block: 64px; }
.lost .board { width: 100%; max-width: 760px; }
.lost h1 { font: 800 clamp(44px, 7vw, 76px)/.95 var(--display); text-transform: uppercase; }
