/* ============================================================
   Jetstream — "blueprint on midnight glass"
   Design language adapted from AuthKit (authkit DESIGN.md)
   ============================================================ */

:root {
  /* ---- Midnight palette ---- */
  --ink: #05060f;          /* canvas */
  --ink-2: #070813;        /* faint lift */
  --plate: #0e1019;        /* card surface */
  --plate-2: #191c26;      /* inputs, tiles */
  --steel: #3f4959;        /* borders */
  --fog: #81899b;          /* muted / eyebrow */
  --pebble: #9da7ba;       /* body-muted */
  --moonlight: #c7d3ea;    /* body + icons */
  --ice: #d1e4fa;          /* strong secondary */
  --glacier: #d8ecf8;      /* headings */
  --frost-link: #b6d9fc;   /* links */
  --white: #ffffff;

  --iris: #333d50;         /* THE single action color — app Ak.Iris / button-primary */
  --iris-hi: #3c475d;

  /* colour-slot accents — only ever inside the "Colour" chip */
  --ember: #e46d4c;
  --azure: #027dea;
  --mint: #269684;

  /* glows & hairlines (elevation, never drop-shadow) */
  --glow: rgba(186, 207, 247, 0.32);
  --hairline: rgba(186, 215, 247, 0.10);
  --hairline-soft: rgba(186, 215, 247, 0.06);
  --grid-line: rgba(186, 215, 247, 0.035);

  --card-elev:
    inset 0 1px 1px rgba(199, 211, 234, 0.10),
    inset 0 24px 60px rgba(160, 190, 240, 0.03),
    0 24px 44px rgba(3, 4, 10, 0.66);

  /* ---- Type ---- */
  --font-display: 'General Sans', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Layout ---- */
  --max: 1120px;
  --gutter: 24px;
  --r-sharp: 2px;   /* buttons + inputs */
  --r-badge: 6px;
  --r-chip: 8px;
  --r-card: 12px;
  --r-pill: 999px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--moonlight);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: rgba(96, 120, 165, 0.42); color: #fff; }

:focus-visible {
  outline: 1px solid var(--frost-link);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------------- Blueprint scaffolding ---------------- */
/* aeronautical chart drawn in light + top light-wash, fixed behind everything */
.blueprint {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  will-change: transform; /* own compositor layer — no repaint on scroll */
}
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 50% -6%, rgba(150, 180, 240, 0.16), transparent 70%),
    radial-gradient(420px 260px at 50% -2%, rgba(90, 120, 200, 0.10), transparent 72%);
}
.chart {
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(135% 105% at 50% 0%, #000 40%, transparent 88%);
  mask-image: radial-gradient(135% 105% at 50% 0%, #000 40%, transparent 88%);
}
.tw { animation: twinkle 4.5s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.6; }
}

/* ---------------- Layout ---------------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding: 108px 0;
  text-align: center;
}
.section--tight { padding: 72px 0; }

.band { max-width: 720px; margin: 0 auto; }

/* ---------------- Eyebrow ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--fog);
  font-feature-settings: "tnum";
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
}
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--steel)); }
.eyebrow::after  { background: linear-gradient(90deg, var(--steel), transparent); }

/* ---------------- Headings ---------------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--glacier);
}
.h-sub {
  margin: 20px auto 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--pebble);
}
.section-head .eyebrow { margin-bottom: 22px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
/* the single first-class action color */
.btn-iris {
  position: relative;
  overflow: hidden;
  background: var(--iris);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(199, 211, 234, 0.14), 0 10px 26px rgba(3, 4, 10, 0.55);
}
.btn-iris:hover { background: var(--iris-hi); }
/* light sweep across the iris button on hover */
.btn-iris::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.34) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.05s ease;
  pointer-events: none;
}
.btn-iris:hover::after {
  transform: translateX(130%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost {
  background: transparent;
  color: var(--moonlight);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.btn-ghost:hover { color: var(--glacier); box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.2); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--moonlight);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow 0.16s ease, color 0.16s ease;
}
.pill:hover { color: var(--glacier); box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.22); }

.link {
  color: var(--frost-link);
  font-weight: 500;
  transition: color 0.16s ease;
}
.link:hover { color: var(--glacier); }

/* ---------------- Crop-mark frame ---------------- */
.crop { position: relative; }
.crop > .cm {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: rgba(186, 215, 247, 0.28);
  border-style: solid;
  border-width: 0;
  z-index: 2;
}
.cm-tl { top: -5px; left: -5px; border-left-width: 1px; border-top-width: 1px; }
.cm-tr { top: -5px; right: -5px; border-right-width: 1px; border-top-width: 1px; }
.cm-bl { bottom: -5px; left: -5px; border-left-width: 1px; border-bottom-width: 1px; }
.cm-br { bottom: -5px; right: -5px; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(5, 6, 15, 0);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.nav--scrolled {
  background: rgba(5, 6, 15, 0.72);
  border-bottom-color: var(--hairline-soft);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.brand__mark { width: 22px; height: 22px; flex-shrink: 0; }
.brand__icon { width: 30px; height: 30px; flex-shrink: 0; display: block; }
.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pebble);
  border-radius: var(--r-pill);
  transition: color 0.16s ease;
}
.nav__icon:hover { color: var(--glacier); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 92px 0 104px;
  text-align: center;
}
.hero__eyebrow { margin-bottom: 34px; }

.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(64px, 13vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  padding: 0 10px;
  /* Muted STEEL-BLUE static ramp (clearly not white) so the bright LED dots are the
     hero of the ignition and read against/through the word instead of being washed
     out. No sheen band — the final polishing sweep was removed per request. */
  background:
    linear-gradient(100deg, #4c5a7b 0%, #6f82ab 25%, #92a5cb 46%, #7d90b8 58%, #586888 78%, #4c5a7b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* The word sits as a faint uniform ghost while the LED dots build it, then
     the WHOLE word cross-dissolves to solid at once. No center-out disc — that
     read as a rough moving seam where solid glyphs met the dots. */
  opacity: 0;
  animation: word-in 1.15s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}
@keyframes word-in {
  0% { opacity: 0; }
  12% { opacity: 0.06; }   /* faint ghost present behind the dots — trimmed so the
                              field floor comes from glow, not a flat pedestal */
  58% { opacity: 0.06; }
  100% { opacity: 1; }
}

/* ---- resolve glint REMOVED (final polishing sweep) per request ---- */
.wordmark--glint {
  display: none;
}

/* ---- dot-matrix ignition layer ----
   An LED-board copy of the word: halftone dot grids clipped to the glyphs,
   revealed center-out by an expanding soft mask, blooming, then fading as
   the real word resolves underneath. */
.wordmark--dots {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  /* Phosphor fabric: three incommensurate dot pitches (4/6/9px) interfere to
     give every dot its own brightness — plus drifting hot-spot blobs and a
     wash, so the lit region reads as organic ignition noise, not a stencil. */
  background:
    radial-gradient(circle, rgba(238, 244, 255, 0.9) 0.8px, transparent 1.3px),
    radial-gradient(circle, rgba(190, 210, 252, 0.55) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(150, 175, 240, 0.4) 1.2px, transparent 1.9px),
    radial-gradient(18% 34% at 44% 38%, rgba(222, 233, 255, 0.5), transparent 72%),
    radial-gradient(16% 30% at 58% 62%, rgba(206, 223, 255, 0.42), transparent 72%),
    radial-gradient(62% 96% at 50% 50%, rgba(186, 208, 250, 0.22), transparent 80%);
  background-size: 4px 4px, 6px 6px, 9px 9px, 100% 100%, 100% 100%, 100% 100%;
  background-position: 0 0, 2px 1px, 4px 5px, 0 0, 0 0, 0 0;
  /* the background shorthand above resets clip — re-pin it to the glyphs */
  -webkit-background-clip: text;
  background-clip: text;
  /* bloom: tight halo + wide soft spill past the glyph edges */
  filter:
    drop-shadow(0 0 5px rgba(190, 212, 255, 0.65))
    drop-shadow(0 0 26px rgba(140, 172, 242, 0.42));
  /* the dots live in a soft RING that travels outward — an ignition wavefront,
     not a texture fill. The smooth word's disc trails just behind it. */
  -webkit-mask-image: radial-gradient(circle, transparent 16%, rgba(0, 0, 0, 0.4) 30%, #000 44%, #000 60%, rgba(0, 0, 0, 0.45) 72%, transparent 86%);
  mask-image: radial-gradient(circle, transparent 16%, rgba(0, 0, 0, 0.4) 30%, #000 44%, #000 60%, rgba(0, 0, 0, 0.45) 72%, transparent 86%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 48%;
  mask-position: 50% 48%;
  opacity: 0;
  animation:
    dots-ignite 1.75s cubic-bezier(0.3, 0.5, 0.25, 1) 0.1s both,
    dots-shimmer 1.75s steps(8) 0.1s both;
}
@keyframes dots-ignite {
  0% { opacity: 0; -webkit-mask-size: 9% 13%; mask-size: 9% 13%; }
  7% { opacity: 1; }
  40% { -webkit-mask-size: 85% 95%; mask-size: 85% 95%; }
  82% { opacity: 1; }
  100% { opacity: 0; -webkit-mask-size: 430% 460%; mask-size: 430% 460%; }
}
@keyframes dots-shimmer {
  0% { background-position: 0 0, 2px 1px, 4px 5px, 0 0, 0 0, 0 0; }
  100% { background-position: 1px 1px, 0 2px, 5px 3px, 7px -5px, -6px 6px, 0 0; }
}

/* canvas ignition (JS replaces the CSS dots layer with this when available) */
.wordmark-canvas {
  position: absolute;
  pointer-events: none;
  display: none; /* JS shows it once sized */
}
.wordmark__glow {
  position: absolute;
  left: 50%; top: 54%;
  width: 76%; height: 64%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(130, 160, 232, 0.24), transparent 74%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}
.hero__sub {
  margin: 30px auto 0;
  max-width: 500px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--pebble);
}
.hero__sub b { color: var(--ice); font-weight: 500; }
.hero__cta {
  margin-top: 34px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fog);
}

/* ---------------- Sign-on product card ---------------- */
.authcard {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    var(--plate);
  border-radius: var(--r-card);
  box-shadow: var(--card-elev), inset 0 0 0 1px var(--hairline);
  text-align: center;
}
.authcard__icon {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
}
.authcard__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--glacier);
  letter-spacing: -0.01em;
}
.authcard__form { margin-top: 22px; text-align: left; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--moonlight);
  margin-bottom: 7px;
}
.field {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  background: var(--ink);
  color: var(--glacier);
  font-family: var(--font-ui);
  font-size: 14px;
  border: 1px solid var(--steel);
  border-radius: var(--r-sharp);
  display: flex;
  align-items: center;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field--select { justify-content: space-between; cursor: pointer; }
.field:hover { border-color: #4c5566; }
.field .ph { color: var(--fog); }
.field .val { color: var(--glacier); display: inline-flex; align-items: center; gap: 9px; }
.field .chev { color: var(--fog); }
.field-mark {
  width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.authcard__form .btn { width: 100%; margin-top: 16px; }

.or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0;
  color: var(--fog);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.or::before, .or::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}
.provider {
  width: 100%;
  height: 42px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: transparent;
  color: var(--moonlight);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-sharp);
  box-shadow: inset 0 0 0 1px var(--hairline);
  margin-top: 10px;
  transition: box-shadow 0.16s ease, color 0.16s ease;
}
.provider:hover { color: var(--glacier); box-shadow: inset 0 0 0 1px rgba(186,215,247,0.2); }
.provider svg { width: 16px; height: 16px; }
.authcard__foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--fog);
  text-align: center;
}

/* ---------------- Customization (annotation chips) ---------------- */
.customize { max-width: 1000px; margin: 64px auto 0; }
.stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage .authcard { z-index: 2; }

.chip {
  position: absolute;
  z-index: 3;
  padding: 12px 13px;
  background: var(--plate);
  border-radius: var(--r-chip);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 8px 22px rgba(3,4,10,0.5);
  text-align: left;
}
.chip__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--pebble);
  letter-spacing: 0.02em;
}
.swatches { display: flex; gap: 6px; margin-top: 9px; }
.swatch { width: 15px; height: 15px; border-radius: var(--r-sharp); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
.swatch--active { outline: 2px solid rgba(255,255,255,0.85); outline-offset: 1px; }
.seg {
  display: inline-flex; margin-top: 9px;
  background: var(--ink); border-radius: var(--r-badge);
  box-shadow: inset 0 0 0 1px var(--hairline);
  overflow: hidden;
}
.seg span {
  font-size: 11px; padding: 5px 10px; color: var(--fog);
}
.seg span.on { color: var(--glacier); background: var(--plate-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.grid2 .opt {
  width: 40px; height: 34px; border-radius: var(--r-badge);
  background: var(--plate-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--moonlight);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.grid2 .opt.on { box-shadow: inset 0 0 0 1px var(--iris); color: var(--ice); }
.grid2 .opt svg { width: 17px; height: 17px; }

.chip-code {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 9px; font-family: var(--font-mono); font-size: 11px; color: var(--moonlight);
}
.chip-code .dot { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--hairline); }

/* chip placements (desktop) */
.chip--tl { top: 40px; left: 0; }
.chip--ml { top: 210px; left: -10px; }
.chip--bl { bottom: 60px; left: 24px; }
.chip--tr { top: 20px; right: 0; }
.chip--mr { top: 190px; right: -6px; }
.chip--br { bottom: 70px; right: 18px; }

/* ---------------- Airline mastery — tier strip (1:1 with the app crest) ---------------- */
/* Straight, evenly-spaced row — mirrors the app's "Mastery tiers" strip:
   big tier-coloured name above, clean crest, big count below. */
.mastery--tiers {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  margin: 64px auto 0;
}
.mtier {
  width: 192px;
  text-align: center;
}
.mtier__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: -14px; /* tuck the tier name onto the crest's top padding */
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}
/* crest canvas 160x138 uniform-scaled up to the app's presence */
.mtier__crest {
  position: relative;
  width: 200px;
  height: 172px;
  margin: 0 auto;
}
.mbadge__hex { width: 200px; height: 172px; display: block; margin: 0 auto; overflow: visible; }
.mtier__crest .mbadge__hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mtier__legs { margin-top: -18px; font-size: 24px; font-weight: 600; color: #d8ecf8; position: relative; z-index: 2; }
.mtier__cap { margin-top: 2px; font-size: 12px; color: #aab6c8; letter-spacing: 0.01em; }

/* ---- Border beam (adapted from Jakub Antalík's border-beam: a conic sweep
        clipped to the border ring — here masked to the exact hexagon outline) ---- */
@property --bbA {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.bbeam {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.55; /* a gentle travelling highlight riding over the even aura glow */
  background: conic-gradient(from var(--bbA) at 50% 49.3%,
    transparent 0deg 205deg,
    var(--bc) 222deg,
    var(--bh) 236deg,
    #ffffff 242deg,
    var(--bh) 248deg,
    var(--bc) 262deg,
    transparent 279deg 360deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 138'%3E%3Cpath d='M89.39 24.18 L113.45 37.36 Q122.84 42.50 122.84 53.21 L122.84 82.79 Q122.84 93.50 113.45 98.64 L89.39 111.82 Q80.00 116.96 70.61 111.82 L46.55 98.64 Q37.16 93.50 37.16 82.79 L37.16 53.21 Q37.16 42.50 46.55 37.36 L70.61 24.18 Q80.00 19.04 89.39 24.18 Z' fill='none' stroke='white' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 138'%3E%3Cpath d='M89.39 24.18 L113.45 37.36 Q122.84 42.50 122.84 53.21 L122.84 82.79 Q122.84 93.50 113.45 98.64 L89.39 111.82 Q80.00 116.96 70.61 111.82 L46.55 98.64 Q37.16 93.50 37.16 82.79 L37.16 53.21 Q37.16 42.50 46.55 37.36 L70.61 24.18 Q80.00 19.04 89.39 24.18 Z' fill='none' stroke='white' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  filter: drop-shadow(0 0 2px var(--bc)) saturate(1.1);
  animation: bb-spin 4.6s linear infinite;
}
/* eased, undulating sweep (not constant-speed): the comet lingers at the top
   and bottom points and swoops fast through the flanks — the app's BeamTravel curve */
@keyframes bb-spin {
  0% { --bbA: 0deg; }
  6.25% { --bbA: 11.36deg; }
  12.5% { --bbA: 29.24deg; }
  18.75% { --bbA: 56.36deg; }
  25% { --bbA: 90deg; }
  31.25% { --bbA: 123.64deg; }
  37.5% { --bbA: 150.76deg; }
  43.75% { --bbA: 168.64deg; }
  50% { --bbA: 180deg; }
  56.25% { --bbA: 191.36deg; }
  62.5% { --bbA: 209.24deg; }
  68.75% { --bbA: 236.36deg; }
  75% { --bbA: 270deg; }
  81.25% { --bbA: 303.64deg; }
  87.5% { --bbA: 330.76deg; }
  93.75% { --bbA: 348.64deg; }
  100% { --bbA: 360deg; }
}
/* desync each tier's comet so the row reads as five independent crests, not one rig */
.mtier:nth-child(1) .bbeam { animation-delay: 0s; }
.mtier:nth-child(2) .bbeam { animation-delay: -0.92s; }
.mtier:nth-child(3) .bbeam { animation-delay: -1.84s; }
.mtier:nth-child(4) .bbeam { animation-delay: -2.76s; }
/* Master-tier iridescence: hue drifts ±13° on a 5s sine while the beam sweeps */
.mtier--t5 .bbeam { animation: bb-spin 4.6s linear infinite, mb-hue 5s ease-in-out infinite alternate; animation-delay: -3.68s, 0s; }
.mtier--t5 .mb-acc { animation: mb-hue 5s ease-in-out infinite alternate; }
@keyframes mb-hue {
  from { filter: drop-shadow(0 0 2px var(--bc)) hue-rotate(-13deg); }
  to { filter: drop-shadow(0 0 2px var(--bc)) hue-rotate(13deg); }
}

/* ---------------- Preview cards row ---------------- */
.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
  text-align: left;
}
.pcard {
  background: var(--plate);
  border-radius: var(--r-card);
  padding: 22px;
  box-shadow: inset 0 0 0 1px var(--hairline), 0 20px 40px rgba(3,4,10,0.5);
}
.pcard__frame {
  height: 150px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 30%),
    var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
  padding: 16px;
  overflow: hidden;
}
.pcard__label {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--glacier);
}
.pcard__desc { margin-top: 6px; font-size: 13px; color: var(--fog); line-height: 1.5; }

/* mini telemetry */
.mini-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hairline-soft); }
.mini-row:last-child { border-bottom: 0; }
.mini-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fog); text-transform: uppercase; }
.mini-v { font-family: var(--font-mono); font-size: 13px; color: var(--glacier); }
.mini-title { font-family: var(--font-mono); font-size: 10px; color: var(--fog); letter-spacing: 0.08em; text-transform: uppercase; }

/* mini rank */
.mini-rank { display: flex; align-items: center; gap: 10px; }
.mini-badge { width: 30px; height: 30px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(120,140,180,0.4); display:flex;align-items:center;justify-content:center; color: var(--ice); background: linear-gradient(180deg, rgba(51,61,80,0.32), transparent); }
.mini-xp { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--plate-2); box-shadow: inset 0 0 0 1px var(--hairline); overflow: hidden; }
.mini-xp > span { display:block; height: 100%; width: 68%; background: var(--iris); border-radius: 999px; }

/* mini map */
.mini-map { position: relative; height: 100%; }

/* ---------------- Product screenshots ---------------- */
.shotwrap {
  position: relative;
  max-width: 1040px;
  margin: 60px auto 0;
}
.shotwrap::before {
  content: "";
  position: absolute;
  left: 50%; top: -46px;
  transform: translateX(-50%);
  width: 74%; height: 140px;
  background: radial-gradient(closest-side, rgba(120, 150, 230, 0.20), transparent 75%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.shot {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--plate);
  box-shadow: inset 0 0 0 1px var(--hairline), 0 50px 90px -50px rgba(3, 4, 10, 0.95);
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(186, 215, 247, 0.05), transparent 20%);
}
.shot img { display: block; width: 100%; height: auto; }

.shots-2up {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: 60px auto 0;
}
.shots-2up .shot { box-shadow: inset 0 0 0 1px var(--hairline), 0 30px 60px -40px rgba(3, 4, 10, 0.9); }

/* ---------------- Testimonials ---------------- */
.quotes {
  position: relative;
  max-width: 940px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quote { padding: 8px 44px; text-align: left; }
.quote + .quote { border-left: 1px solid var(--hairline-soft); }
.quote__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--glacier);
  margin-bottom: 26px;
}
.quote__text { font-size: 17px; line-height: 1.55; color: var(--ice); }
.quote__by { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.quote__av {
  width: 36px; height: 36px; border-radius: var(--r-pill);
  background: var(--plate-2); box-shadow: inset 0 0 0 1px var(--hairline);
  display:flex;align-items:center;justify-content:center; color: var(--pebble); font-size: 13px; font-weight: 600;
}
.quote__name { font-size: 14px; font-weight: 500; color: var(--glacier); }
.quote__role { font-size: 13px; color: var(--fog); }

/* ---------------- Closer ---------------- */
.closer { position: relative; padding: 120px 0 128px; text-align: center; }
.closer::before {
  content: "";
  position: absolute;
  left: 50%; top: 4%;
  width: 720px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(90, 120, 200, 0.11), rgba(150, 180, 240, 0.05) 55%, transparent 75%);
  filter: blur(18px);
  pointer-events: none;
}
.closer__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--glacier);
  max-width: 760px;
  margin: 0 auto;
}
.closer__sub { margin-top: 22px; font-size: 18px; color: var(--pebble); }
.closer__cta { margin-top: 32px; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 34px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--pebble); font-size: 14px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; color: var(--fog); }
.footer__links a:hover { color: var(--moonlight); }

/* ---------------- Reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* screenshots settle in with a soft focus + scale, in 3D */
.shotwrap, .shots-2up { perspective: 1400px; }
.shotwrap.reveal, .shots-2up.reveal {
  transform: translateY(44px) scale(0.975);
  filter: blur(10px);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease;
}
.shotwrap.reveal.in, .shots-2up.reveal.in { transform: none; filter: none; }
/* inner shot carries the scroll parallax (JS), never fights the wrapper entrance */
.shot { will-change: transform; }

/* crop-marks draw in after their parent settles */
.reveal .cm {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.5s ease 0.55s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}
.reveal.in .cm { opacity: 1; transform: none; }
.wordmark-wrap .cm {
  width: 4px;
  height: 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(205, 222, 255, 0.78);
  box-shadow: 0 0 8px rgba(178, 204, 255, 0.75);
  animation: fade-in 0.8s ease 0.62s both;
}
.wordmark-wrap .cm-tl { top: -11px; left: -13px; }
.wordmark-wrap .cm-tr { top: -11px; right: -13px; }
.wordmark-wrap .cm-bl { bottom: -8px; left: -13px; }
.wordmark-wrap .cm-br { bottom: -8px; right: -13px; }

/* section headers stagger their children instead of fading as a block */
.section-head.reveal { opacity: 1; transform: none; }
.section-head .eyebrow,
.section-head .h-display,
.section-head .h-sub {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.section-head .eyebrow,
.section-head .h-display,
.section-head .h-sub {
  transition-timing-function: ease, cubic-bezier(0.16, 1, 0.3, 1);
  transition-duration: 0.8s, 0.9s;
}
.section-head.in .eyebrow { opacity: 1; transform: none; }
.section-head.in .h-display { opacity: 1; transform: none; transition-delay: 0.1s; }
.section-head.in .h-sub { opacity: 1; transform: none; transition-delay: 0.2s; }

/* eyebrow flank-rules draw outward, concurrent with the text, house ease */
.section-head .eyebrow::before,
.section-head .eyebrow::after {
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.04s;
}
.section-head .eyebrow::before { transform-origin: right; }
.section-head .eyebrow::after { transform-origin: left; }
.section-head.in .eyebrow::before,
.section-head.in .eyebrow::after { transform: scaleX(1); }

/* ---------------- Motion: hero load sequence ---------------- */
/* Load order mirrors the reference: the word ignites alone on the dark
   canvas; the eyebrow, nav, beam, subtitle and actions follow it. */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.nav { animation: fade-in 1s ease 0.7s both; }
.hero__eyebrow { animation: fade-up 0.9s ease 0.5s both; }
.hero__sub { animation: fade-up 1s ease 1.15s both; }
.hero__cta { animation: fade-up 1s ease 1.3s both; }
.hero__meta { animation: fade-up 1s ease 1.45s both; }

/* hero light beam — a volumetric cone: nested conic gradients fanning from an
   apex above the viewport (bright narrow core + wide soft spill), dissolved by
   a vertical mask. No clip-path geometry — only light falloff. */
.hero__beam {
  position: absolute;
  top: -60px;
  left: 50%;
  width: 920px;
  height: 820px;
  transform: translateX(-50%);
  transform-origin: 50% 0;
  background:
    conic-gradient(from 0deg at 50% -6%,
      transparent 158deg,
      rgba(196, 213, 251, 0.17) 170deg,
      rgba(220, 232, 254, 0.27) 180deg,
      rgba(196, 213, 251, 0.17) 190deg,
      transparent 202deg),
    conic-gradient(from 0deg at 50% -6%,
      transparent 146deg,
      rgba(164, 190, 243, 0.09) 164deg,
      rgba(164, 190, 243, 0.14) 180deg,
      rgba(164, 190, 243, 0.09) 196deg,
      transparent 214deg);
  -webkit-mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, 0.85) 44%, rgba(0, 0, 0, 0.35) 70%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, 0.85) 44%, rgba(0, 0, 0, 0.35) 70%, transparent 90%);
  filter: blur(14px);
  z-index: 0;
  pointer-events: none;
  /* SPOTLIGHT-LATER beat: the beam switches on AFTER the dots ignite (~1.05s),
     sweeping down and flaring, so it reads as a separate dramatic payoff. */
  animation: beam-in 1.6s cubic-bezier(0.16, 0.72, 0.29, 1) 1.5s both,
             beam-breathe 7s ease-in-out 4.1s infinite;
}
@keyframes beam-in {
  0% { opacity: 0; transform: translateX(-50%) scaleY(0.55); }
  46% { opacity: 1; }            /* flare — the spotlight hits the word */
  100% { opacity: 0.9; transform: translateX(-50%) scaleY(1); }
}
@keyframes beam-breathe {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}
/* the halo grows with the ignition, then breathes in lockstep with the beam */
.wordmark__glow {
  animation:
    glow-in 1.5s ease 0.3s both,
    glow-breathe 7s ease-in-out 2.9s infinite;
}
@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 0.85; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1.15; }
}

/* ---------------- Live map (1:1 with the app's FlightMapView + leaflet.html) ---------------- */
.livemap { margin: 0; background: #05060F; padding: 14px 14px 12px; }
.lm-mapcard {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(186, 215, 247, 0.10);
  overflow: hidden;
  background: #05060F;
}
.lm-map { display: block; width: 100%; height: auto; }
/* default Leaflet zoom chips + locate control (the app keeps them) */
.lm-zoom {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
.lm-zoom span {
  width: 30px; height: 30px; background: #fff; color: #333;
  font: 700 18px/30px var(--font-ui); text-align: center;
}
.lm-zoom span:first-child { border-bottom: 1px solid #ccc; }
.lm-locate {
  position: absolute; top: 86px; left: 12px;
  width: 30px; height: 30px; background: #fff; border-radius: 4px;
  display: grid; place-items: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.65);
}
/* airport tooltip cards (.route-tip look — shown because the route is click-locked) */
.lm-tip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  display: flex; align-items: center; gap: 6px;
  background: rgba(13, 16, 24, 0.96);
  border: 1px solid rgba(186, 215, 247, 0.14);
  border-radius: 8px; padding: 8px 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  white-space: nowrap; font-family: var(--font-ui);
}
.lm-tip img { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.lm-tip b { font-size: 13px; font-weight: 700; color: #fff; }
.lm-tip span { font-size: 13px; color: #81899b; }
.lm-tip em { font-style: normal; font-size: 11px; font-weight: 600; color: #81899b; }
/* bottom flight-data overlay — gradient + "Your flight" + tabular telemetry */
.lm-overlay {
  position: absolute; inset: auto 0 0 0;
  text-align: left;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 56px 22px 20px;
  background: linear-gradient(180deg, rgba(5,6,15,0) 0%, rgba(5,6,15,0) 18%, rgba(5,6,15,0.72) 58%, rgba(5,6,15,0.95) 100%);
  pointer-events: none;
}
.lm-title { font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.lm-stats { display: flex; gap: 34px; }
.lm-col b { display: block; font-size: 12px; font-weight: 700; color: #fff; }
.lm-col i {
  display: block; font-style: normal; margin-top: 2px;
  font-size: 21px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* second-row stats rotate in every 10s (650ms rise, the app's exact easing) */
.lm-swap { position: relative; min-width: 96px; }
.lm-swap .lm-a, .lm-swap .lm-b { animation: lm-swap-a 20s infinite; }
.lm-swap .lm-b { position: absolute; inset: 0; opacity: 0; animation-name: lm-swap-b; } /* static default hidden — reduced-motion shows only .lm-a */
@keyframes lm-swap-a {
  0%, 46.75% { opacity: 1; transform: none; }
  50%, 96.75% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: none; }
}
@keyframes lm-swap-b {
  0%, 46.75% { opacity: 0; transform: translateY(26px); }
  50%, 96.75% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(26px); }
}
.lm-swap .lm-a, .lm-swap .lm-b { transition: none; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
@media (max-width: 900px) {
  .lm-title { font-size: 22px; }
  .lm-stats { gap: 18px; }
  .lm-col i { font-size: 15px; }
  .lm-col b { font-size: 10px; }
  .lm-tip { zoom: 0.8; }
}
@media (max-width: 620px) {
  .lm-overlay { padding: 36px 12px 10px; }
  .lm-title { display: none; }
  .lm-zoom, .lm-locate { display: none; }
  .lm-swap { display: none; } /* phones: just Flight + Time to destination */
  .lm-stats { gap: 22px; width: 100%; justify-content: center; }
  .lm-col b { font-size: 10px; white-space: nowrap; }
  .lm-col i { font-size: 15px; }
  .lm-tip { zoom: 0.62; }
}

/* ---------------- Motion: mastery badges ---------------- */
.mastery .mtier {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.mastery.in .mtier { opacity: 1; transform: none; }
.mastery.in .mtier:nth-child(1) { transition-delay: 0.04s; }
.mastery.in .mtier:nth-child(2) { transition-delay: 0.13s; }
.mastery.in .mtier:nth-child(3) { transition-delay: 0.22s; }
.mastery.in .mtier:nth-child(4) { transition-delay: 0.31s; }
.mastery.in .mtier:nth-child(5) { transition-delay: 0.40s; }
}

/* ---------------- Motion: buttons ---------------- */
.btn-iris { transition: background-color 0.16s ease, transform 0.16s ease, box-shadow 0.24s ease; }
.btn-iris:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(199, 211, 234, 0.18), 0 14px 32px rgba(3, 4, 10, 0.62); }
.btn-iris:active { transform: translateY(0); }
.pill, .btn-ghost, .provider, .nav__icon, .link { transition: color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.pill:hover, .btn-ghost:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .reveal.in,
  .section-head .eyebrow, .section-head .h-display, .section-head .h-sub,
  .shotwrap, .shots-2up, .shot, .hero__eyebrow, .hero__sub, .hero__cta, .hero__meta,
  .wordmark, .nav, .mastery .mtier, .hero__beam, .reveal .cm, .wordmark-wrap .cm {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .eyebrow::before, .eyebrow::after { transform: none !important; }
  .planes, .tw, .wordmark--dots, .wordmark-canvas, .wordmark--glint { display: none !important; }
  /* crest beam/bloom/sweep layers run on SMIL — hide them, leaving the static crest */
  .mbadge__hex .mb-acc { display: none !important; }
  .bbeam { display: none !important; }
  /* the word's reveal rides on an animated mask — show it whole instead */
  .wordmark {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------------- Airline picker (1:1 with the app's All-airlines modal, old + new) ---------------- */
.airlines-figure { margin: 56px auto 0; max-width: 1000px; }
.airlines {
  margin: 0;
  text-align: left;
  background: #12151d;
  border: 1px solid rgba(186, 215, 247, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-elev);
}
.al-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; }
.al-title { font-size: 20px; font-weight: 600; color: #d8ecf8; letter-spacing: -0.01em; }
.al-x {
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid rgba(186, 215, 247, 0.14);
  display: flex; align-items: center; justify-content: center;
  color: #c7d3ea; font-size: 12px;
}
.al-filters {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 0 24px 18px; border-bottom: 1px solid rgba(186, 215, 247, 0.10);
}
.al-field { display: flex; flex-direction: column; gap: 7px; }
.al-field b { font-size: 13px; font-weight: 400; color: #81899b; }
.al-select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  min-width: 148px; padding: 9px 13px;
  border: 1px solid rgba(186, 215, 247, 0.14); border-radius: 8px;
  background: rgba(186, 215, 247, 0.03); color: #c7d3ea; font-size: 14px;
}
.al-select i { color: #81899b; font-style: normal; }
.al-note { margin-left: auto; align-self: center; font-size: 13px; font-weight: 600; color: #b6d9fc; }
.al-colhead, .al-row {
  display: grid;
  grid-template-columns: 116px minmax(140px, 1fr) 128px 172px 130px 108px;
  align-items: center;
}
.al-colhead { padding: 15px 24px 11px; }
.al-colhead span { font-size: 13px; color: #81899b; }
.al-row { padding: 13px 24px; border-top: 1px solid rgba(186, 215, 247, 0.07); font-size: 15px; }
.al-chip {
  width: 104px; height: 40px; background: #ffffff; border-radius: 7px;
  display: flex; align-items: center; justify-content: center; padding: 6px 11px;
}
.al-chip img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.al-name { font-weight: 600; color: #e6eefb; }
.al-call { color: #81899b; }
.al-call i { font-style: normal; color: #4a5468; margin: 0 4px; }
.al-country { color: #9da7ba; }
.al-stars { display: inline-flex; gap: 2px; }
.al-star { color: #b6d9fc; font-size: 14px; }
.al-star--off { color: rgba(186, 215, 247, 0.16); }
.al-hist {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: #e0b054;
  border: 1px solid rgba(224, 176, 84, 0.34); background: rgba(224, 176, 84, 0.08);
}
.al-apply { color: #b6d9fc; font-weight: 500; text-align: right; }
@media (max-width: 720px) {
  .al-filters { flex-wrap: wrap; }
  .al-note { margin-left: 0; width: 100%; text-align: left; }
  .al-colhead, .al-row { grid-template-columns: 76px 1fr auto; }
  .al-call, .al-country { display: none; }
  .al-chip { width: 66px; height: 34px; padding: 5px 8px; }
  .al-apply { display: none; }
}

/* ---------------- Cabin announcements ---------------- */
.cabin-figure {
  margin: 56px auto 0;
  max-width: 1040px;
  padding: 26px 28px 22px;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(186,215,247,0.035), rgba(186,215,247,0.008)),
    #070a12;
  box-shadow: var(--card-elev);
}
.cabin { margin: 0; }
.cabin-profile { display: block; width: 100%; height: auto; overflow: visible; }
.cabin-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 26px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  text-align: left;
}
.pa-item { display: flex; align-items: flex-start; gap: 12px; }
.pa-badge {
  flex-shrink: 0;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--frost-link);
  background: rgba(182, 217, 252, 0.08);
  box-shadow: inset 0 0 0 1px rgba(182, 217, 252, 0.14);
}
.pa-text { display: flex; flex-direction: column; gap: 1px; }
.pa-name { font-size: 15px; font-weight: 600; color: var(--glacier); letter-spacing: -0.01em; }
.pa-trig { font-size: 13px; line-height: 1.4; color: var(--fog); }
@media (max-width: 900px) {
  .cabin-legend { grid-template-columns: repeat(2, 1fr); gap: 12px 22px; }
}
@media (max-width: 560px) {
  .cabin-figure { padding: 18px 16px 16px; }
  .cabin-legend { grid-template-columns: 1fr; }
}

/* ---------------- Legal / prose pages ---------------- */
.legal-hero { text-align: center; padding: 128px 0 32px; }
.legal-hero .eyebrow { margin-bottom: 22px; }
.legal-hero .h-display { margin-bottom: 14px; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fog);
}
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 112px;
  text-align: left;
}
.legal__intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--pebble);
}
.legal section {
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid var(--hairline);
}
.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--glacier);
  margin-bottom: 16px;
}
.legal h2::before {
  content: attr(data-n);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--frost-link);
  letter-spacing: 0.06em;
}
.legal p { font-size: 16px; line-height: 1.72; color: var(--moonlight); margin-bottom: 14px; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { list-style: none; margin: 2px 0 0; padding: 0; }
.legal li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--moonlight);
  margin-bottom: 12px;
}
.legal li:last-child { margin-bottom: 0; }
/* small diamond "fix" marker, echoing the chart's waypoints */
.legal li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--frost-link);
  transform: rotate(45deg);
  opacity: 0.65;
}
.legal a { color: var(--frost-link); transition: color 0.16s ease; }
.legal a:hover { color: var(--glacier); }
.legal strong { color: var(--ice); font-weight: 600; }
.legal__contact {
  margin-top: 48px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: rgba(140, 40, 45, 0);
  background: linear-gradient(180deg, rgba(186,215,247,0.04), rgba(186,215,247,0.01));
}
.legal__contact p { margin: 0; color: var(--pebble); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .previews { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  /* collapse annotation chips into a simple stack under the card */
  .customize { max-width: 420px; }
  .stage { display: block; min-height: 0; }
  .stage .authcard { margin-bottom: 20px; }
  .chip { position: static; display: inline-block; margin: 6px; }
  .chip-wrap { display: flex; flex-wrap: wrap; justify-content: center; }
}

/* wrap the tier strip to 3+2 before it would crowd the single row */
@media (max-width: 1080px) {
  .mastery--tiers { flex-wrap: wrap; gap: 30px 22px; max-width: 640px; }
  .mtier { width: 190px; }
}

@media (max-width: 620px) {
  :root { --gutter: 16px; }
  /* keep the strip HORIZONTAL on phones — one scaled-down row, not a tall column */
  .mastery--tiers {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    max-width: none;
  }
  .mtier { width: 62px; margin: 0; }
  .mtier__name { font-size: 10px; margin-bottom: -5px; letter-spacing: -0.02em; }
  .mtier__crest { width: 60px; height: 52px; }
  .mtier__legs { font-size: 12px; margin-top: -6px; }
  .mtier__cap { font-size: 7.5px; white-space: nowrap; margin-top: 1px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .shots-2up { grid-template-columns: 1fr; max-width: 460px; }
  .legal-hero { padding: 104px 0 24px; }
  .legal h2 { font-size: 20px; gap: 10px; }
}

/* very narrow phones — shave a touch more so 5 still fit in one row */
@media (max-width: 360px) {
  .mtier { width: 58px; }
  .mtier__crest { width: 56px; height: 48px; }
  .mtier__cap { font-size: 7px; }
}
