/* ════════════════════════════════════════════════════════
   FlightDose — flightdose.com
   Palette derived from the app icon: deep violet → black,
   neon lavender line-art, radiation-trefoil gold.
   ════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --void:      #06040a;
  --ink:       #0b0711;
  --surface:   #130c1e;
  --surface-2: #191024;
  --line:      #2a1c3e;
  --line-soft: #1f1530;

  /* brand */
  --purple:     #7a2b93;
  --purple-lit: #a855f7;
  --lav:        #c9b8fb;
  --lav-dim:    #9a8bc4;
  --gold:       #ffd83a;
  --gold-deep:  #c9a015;

  /* app palette */
  --sky:  #9ccbff;
  --teal: #4dd0e1;
  --ok:   #5ec269;
  --warn: #ffa726;
  --crit: #f0554b;

  /* ink */
  --text:   #efeaf8;
  --text-2: #b6acc9;
  --text-3: #7d7194;

  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1220px;

  --f-disp: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Tab-bar glyphs for the device mock, as masks so they inherit tab colour. */
  --m-home:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 3.2 10.6v10.2h6.2V14.5h5.2v6.3h6.2V10.6z'/%3E%3C/svg%3E");
  --m-add:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 3.3h3v7.2h7.2v3h-7.2v7.2h-3v-7.2H3.3v-3h7.2z'/%3E%3C/svg%3E");
  --m-hist:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 5.2h16.8v2.7H3.6zM3.6 10.6h16.8v2.7H3.6zM3.6 16.1h16.8v2.7H3.6z'/%3E%3C/svg%3E");
  --m-health: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.8 4.1 13a4.95 4.95 0 0 1 7.1-6.9l.8.8.8-.8a4.95 4.95 0 0 1 7.1 6.9z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }

::selection { background: rgba(168, 85, 247, .38); color: #fff; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: #1a1200; padding: 10px 18px; font-weight: 600; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ── Cosmic backdrop ─────────────────────────────────── */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(122, 43, 147, .40), transparent 62%),
    radial-gradient(80% 55% at 88% 8%,   rgba(168, 85, 247, .16), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(6, 4, 10, .55) 42%, var(--void) 88%);
}
body > *:not(#sky):not(.veil) { position: relative; z-index: 2; }

/* ════════ NAV ════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s, backdrop-filter .3s;
}
.nav.stuck {
  background: rgba(9, 6, 15, .78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-disp); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; box-shadow: 0 4px 16px rgba(122, 43, 147, .5); }
.brand em { font-style: normal; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links > a:not(.btn) {
  font-size: .92rem; font-weight: 500; color: var(--text-2);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--purple-lit));
  transition: right .28s var(--ease);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, #ffb800 100%);
  color: #22190a; font-weight: 700; font-family: var(--f-disp);
  padding: 12px 22px; border-radius: 999px; font-size: .95rem;
  box-shadow: 0 6px 22px rgba(255, 184, 0, .22);
  transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 184, 0, .34); filter: brightness(1.05); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════ HERO ═══════════════════════════════════════ */
.hero { position: relative; padding: 60px 0 96px; overflow: hidden; }

.aurora {
  position: absolute; left: 50%; top: -220px; width: 1500px; height: 760px;
  transform: translateX(-50%);
  background:
    radial-gradient(46% 52% at 30% 46%, rgba(168, 85, 247, .34), transparent 68%),
    radial-gradient(40% 46% at 68% 38%, rgba(255, 184, 0, .13), transparent 66%),
    radial-gradient(52% 44% at 52% 68%, rgba(77, 208, 225, .10), transparent 70%);
  filter: blur(28px);
  animation: drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-46%) translateY(28px) scale(1.07); }
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 48px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lav);
  background: rgba(168, 85, 247, .10);
  border: 1px solid rgba(168, 85, 247, .26);
  padding: 7px 15px 7px 12px; border-radius: 999px;
  margin-bottom: 26px;
}
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(255, 216, 58, .7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 216, 58, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 216, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 216, 58, 0); }
}

/* Sized so each authored line fits without re-wrapping — the line breaks in the
   markup are the composition, not a suggestion. */
.hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); margin-bottom: 24px; letter-spacing: -.03em; }
.hero h1 .grad {
  background: linear-gradient(105deg, var(--gold) 0%, #ffb800 32%, var(--purple-lit) 78%, var(--lav) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lede { color: var(--text-2); font-size: 1.075rem; max-width: 50ch; margin-bottom: 32px; }
.lede strong { color: var(--gold); font-weight: 600; }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px; padding: 10px 20px 10px 16px;
  transition: transform .22s var(--ease), border-color .22s, background .22s, box-shadow .22s;
}
.store:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .085); border-color: rgba(201, 184, 251, .45); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.store svg { width: 24px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: .66rem; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.store strong { font-family: var(--f-disp); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.stores.big .store { padding: 13px 26px 13px 20px; }
.stores.big .store svg { width: 28px; height: 30px; }
.stores.big .store strong { font-size: 1.15rem; }

.trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 26px; font-size: .82rem; color: var(--text-3);
}
.trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: .6; }

/* ── Device ──────────────────────────────────────────── */
/* The device sits right so the floating readout chip has clear air beside it. */
.hero-art { position: relative; display: flex; justify-content: flex-end; align-items: center; min-height: 660px; padding-right: 8px; }

.glowring {
  position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 43, 147, .55) 0%, rgba(122, 43, 147, .12) 46%, transparent 68%);
  filter: blur(18px);
  animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.94); opacity: .85; } to { transform: scale(1.07); opacity: 1; } }

.phone {
  position: relative; width: 302px; height: 618px; flex: none;
  border-radius: 48px; padding: 11px;
  background: linear-gradient(150deg, #4a3660 0%, #171021 34%, #0d0913 68%, #37264a 100%);
  box-shadow:
    0 44px 90px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(201, 184, 251, .16),
    inset 0 0 0 1px rgba(255, 255, 255, .07);
  transform: perspective(1600px) rotateY(-11deg) rotateX(3deg) translateZ(0);
  transition: transform .7s var(--ease);
}
.hero-art:hover .phone { transform: perspective(1600px) rotateY(-5deg) rotateX(1deg); }

.notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: 999px; background: #05030a; z-index: 3;
}

.screen {
  width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: linear-gradient(178deg, #1c1424 0%, #17111f 40%, #130e1a 100%);
  display: flex; flex-direction: column;
  font-size: 11px; line-height: 1.35;
}

.statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 22px 4px; font-size: 10.5px; font-weight: 600; color: #fff;
}
.sb-icons { display: flex; gap: 4px; align-items: flex-end; }
.sb-icons i { display: block; width: 3px; background: #fff; border-radius: 1px; }
.sb-icons i:nth-child(1) { height: 5px; }
.sb-icons i:nth-child(2) { height: 8px; }
.sb-icons i:nth-child(3) { height: 11px; }

.apphead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px 10px;
  font-family: var(--f-disp); font-size: 17px; font-weight: 700; letter-spacing: -.02em;
}
.apphead svg { width: 17px; height: 17px; color: var(--sky); }

.appscroll { flex: 1; overflow: hidden; padding: 0 12px 8px; display: flex; flex-direction: column; gap: 8px; }

.acard {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 13px; padding: 11px 12px;
}
.acard .k { font-size: 11px; font-weight: 600; color: #ded6ee; }
.acard .s { font-size: 9.5px; color: #8d83a4; }
.acard .grow { flex: 1; min-width: 0; }

.acard.solar { display: flex; align-items: center; gap: 10px; }
.acard.solar .sun {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 40% 38%, #ffd66b, var(--warn) 62%, #b45f00);
  box-shadow: 0 0 12px rgba(255, 167, 38, .6);
}
.lv-mod { color: var(--warn); }
.acard.solar .chev { color: #6f6588; font-size: 14px; }

.acard.dose {
  background: linear-gradient(155deg, rgba(156, 203, 255, .10), rgba(122, 43, 147, .12));
  border-color: rgba(156, 203, 255, .20);
}
.acard.dose .big { display: flex; align-items: baseline; gap: 4px; margin: 3px 0 1px; }
.acard.dose .big .tick { font-family: var(--f-mono); font-size: 27px; font-weight: 700; color: var(--sky); letter-spacing: -.02em; }
.acard.dose .big em { font-style: normal; font-size: 11px; color: #8d83a4; }

.meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .10); overflow: hidden; margin: 9px 0 5px; }
.meter span {
  display: block; height: 100%; width: var(--w); border-radius: 3px;
  background: linear-gradient(90deg, var(--ok), #86d68f);
  animation: fillbar 1.5s .5s var(--ease) both;
}
@keyframes fillbar { from { width: 0; } to { width: var(--w); } }
.meter-lbl { display: flex; justify-content: space-between; font-size: 9.5px; }
.meter-lbl b { color: var(--ok); }
.meter-lbl span { color: #8d83a4; }

.acard-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acard.mini .mid { font-family: var(--f-mono); font-size: 15px; font-weight: 700; color: var(--lav); margin: 2px 0 1px; }
.acard.mini .mid em { font-style: normal; font-size: 9px; color: #8d83a4; margin-left: 3px; }

.asection { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #6f6588; margin: 4px 0 -2px 3px; }

.acard.flight { display: flex; align-items: center; gap: 9px; }
/* Flight meta is the first thing to lose when the device mock narrows. */
.acard.flight .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard.flight .fp {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: rgba(201, 184, 251, .12);
  position: relative;
}
.acard.flight .fp::before {
  content: ''; position: absolute; inset: 0;
  background: var(--lav);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.9 0 1.5 1.1 1.5 2.6v3.5l7.4 4.3v2l-7.4-2.3v3.9l2.5 1.8v1.6L12 19.1l-4 .9v-1.6l2.5-1.8v-3.9L3.1 15v-2l7.4-4.3V5.2c0-1.5.6-2.6 1.5-2.6z'/%3E%3C/svg%3E") center/16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.9 0 1.5 1.1 1.5 2.6v3.5l7.4 4.3v2l-7.4-2.3v3.9l2.5 1.8v1.6L12 19.1l-4 .9v-1.6l2.5-1.8v-3.9L3.1 15v-2l7.4-4.3V5.2c0-1.5.6-2.6 1.5-2.6z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.acard.flight .fdose { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--gold); }

.tabbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 8px 6px 16px; background: rgba(0, 0, 0, .25);
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 8.5px; color: #6f6588; }
.tabbar span.on { color: var(--sky); }
.tabbar i { width: 15px; height: 15px; background: currentColor; opacity: .85; }
.tabbar i.i-home   { -webkit-mask: var(--m-home)   center/contain no-repeat; mask: var(--m-home)   center/contain no-repeat; }
.tabbar i.i-add    { -webkit-mask: var(--m-add)    center/contain no-repeat; mask: var(--m-add)    center/contain no-repeat; }
.tabbar i.i-hist   { -webkit-mask: var(--m-hist)   center/contain no-repeat; mask: var(--m-hist)   center/contain no-repeat; }
.tabbar i.i-health { -webkit-mask: var(--m-health) center/contain no-repeat; mask: var(--m-health) center/contain no-repeat; }

/* floating chips */
.float {
  position: absolute;
  background: rgba(21, 14, 30, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 184, 251, .22);
  border-radius: 16px; padding: 13px 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .6);
}
.float.geiger {
  left: 0; top: 74px; text-align: left;
  animation: floaty 6s ease-in-out infinite alternate;
}
.geiger .waves { display: flex; gap: 3px; align-items: flex-end; height: 13px; margin-bottom: 5px; }
.geiger .waves b { width: 3px; background: var(--ok); border-radius: 2px; animation: bounce 1.1s infinite ease-in-out; }
.geiger .waves b:nth-child(1) { height: 6px;  animation-delay: 0s; }
.geiger .waves b:nth-child(2) { height: 13px; animation-delay: .18s; }
.geiger .waves b:nth-child(3) { height: 9px;  animation-delay: .36s; }
@keyframes bounce { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.g-num { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 700; color: var(--ok); letter-spacing: -.02em; }
.g-num em { font-style: normal; font-size: .72rem; color: var(--text-3); margin-left: 5px; }
.g-lbl { font-size: .68rem; color: var(--text-3); }

.float.equiv {
  right: -14px; bottom: 92px;
  display: flex; align-items: center; gap: 11px; max-width: 232px;
  animation: floaty 7.5s 1s ease-in-out infinite alternate-reverse;
}
.equiv .xray { width: 32px; height: 32px; flex: none; border-radius: 10px; background: rgba(255, 216, 58, .12); color: var(--gold); display: grid; place-items: center; }
.equiv .xray svg { width: 19px; height: 19px; }
.equiv p { display: flex; flex-direction: column; line-height: 1.3; }
.equiv b { font-size: .87rem; font-family: var(--f-disp); }
.equiv span { font-size: .7rem; color: var(--text-3); }
@keyframes floaty { from { transform: translateY(-9px); } to { transform: translateY(9px); } }

/* ════════ TICKER ═════════════════════════════════════ */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: rgba(19, 12, 30, .5);
  overflow: hidden; padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: slide 46s linear infinite; }
.ticker span { font-size: .87rem; color: var(--text-3); white-space: nowrap; }
.ticker b { color: var(--lav); font-weight: 600; font-family: var(--f-mono); font-size: .84rem; }
.ticker i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--gold); opacity: .55; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ════════ SECTIONS ═══════════════════════════════════ */
.sec { padding: 108px 0; position: relative; }
.sec-alt::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(122, 43, 147, .07) 30%, rgba(122, 43, 147, .07) 70%, transparent);
}

.sec-head { max-width: 660px; margin: 0 auto 60px; text-align: center; }
.kicker {
  font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); margin-bottom: 16px; }
.sub { color: var(--text-2); font-size: 1.03rem; }

/* ── Feature cards ───────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 20px; }
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px 220px at var(--mx, 50%) var(--my, 0%), rgba(168, 85, 247, .16), transparent 70%);
  opacity: 0; transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(201, 184, 251, .32); box-shadow: 0 22px 48px rgba(0, 0, 0, .48); }
.card:hover::after { opacity: 1; }
.card h3 { font-size: 1.18rem; margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: .945rem; }

.ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico-gold { background: rgba(255, 216, 58, .12); color: var(--gold); }
.ico-warn { background: rgba(255, 167, 38, .12); color: var(--warn); }
.ico-sky  { background: rgba(156, 203, 255, .12); color: var(--sky); }
.ico-teal { background: rgba(77, 208, 225, .12); color: var(--teal); }
.ico-lav  { background: rgba(168, 85, 247, .14); color: var(--lav); }
.ico-ok   { background: rgba(94, 194, 105, .12); color: var(--ok); }

/* ── Steps ───────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; counter-reset: s; }
.step {
  background: rgba(19, 12, 30, .58);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  display: flex; flex-direction: column;
}
.step-n {
  font-family: var(--f-mono); font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  color: var(--gold); background: rgba(255, 216, 58, .10);
  border: 1px solid rgba(255, 216, 58, .24);
  padding: 4px 11px; border-radius: 999px; align-self: flex-start;
}
.step h3 { font-size: 1.24rem; margin: 18px 0 10px; }
.step p { color: var(--text-2); font-size: .945rem; }
.step-vis {
  margin-top: 24px; padding: 16px;
  background: rgba(0, 0, 0, .32);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin-top: auto;
}

/* step 1 — airport search */
.vis-search .sq {
  display: flex; align-items: center; gap: 9px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(201, 184, 251, .28);
  border-radius: 10px; padding: 9px 12px; font-family: var(--f-mono); font-size: .85rem;
}
.vis-search .sq-i {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  border: 2px solid var(--lav-dim); position: relative;
}
.vis-search .sq-i::after { content: ''; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 2px; background: var(--lav-dim); transform: rotate(45deg); border-radius: 2px; }
.vis-search .sq span::after { content: ''; display: inline-block; width: 1.5px; height: 13px; background: var(--gold); margin-left: 3px; vertical-align: -2px; animation: caret 1.1s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }
.vis-search .sq-res { margin-top: 8px; font-size: .78rem; color: var(--text-2); padding: 7px 11px; border-radius: 9px; background: rgba(255, 255, 255, .035); }
.vis-search .sq-res b { font-family: var(--f-mono); color: var(--sky); margin-right: 7px; }
.vis-search .sq-res em { font-style: normal; color: var(--text-3); display: block; font-size: .72rem; }
.vis-search .sq-res.dim { opacity: .42; }

/* step 2 — altitude slider */
.vis-alt .alt-val { font-family: var(--f-mono); font-size: 1.45rem; font-weight: 700; color: var(--lav); }
.vis-alt .alt-val em { font-style: normal; font-size: .78rem; color: var(--text-3); margin-left: 4px; }
.alt-track { position: relative; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .10); margin: 16px 0 10px; }
.alt-fill { position: absolute; inset: 0 33% 0 0; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--purple-lit)); }
.alt-knob {
  position: absolute; left: 67%; top: 50%; width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(168, 85, 247, .28), 0 3px 8px rgba(0, 0, 0, .5);
}
.alt-ends { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-3); font-family: var(--f-mono); }

/* step 3 — lock in */
.vis-lock { text-align: center; }
.lock-tref {
  display: block; width: 40px; height: 40px; margin: 0 auto 10px;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='translate(12 12) rotate(30)'%3E%3Ccircle cx='0' cy='0' r='2.1'/%3E%3Cpath d='M0 -8.8A8.8 8.8 0 0 1 7.62 -4.4L2.6 -1.5A3 3 0 0 0 0 -3Z'/%3E%3Cpath d='M-7.62 4.4A8.8 8.8 0 0 1 -7.62 -4.4L-2.6 -1.5A3 3 0 0 0 -2.6 1.5Z'/%3E%3Cpath d='M7.62 4.4A8.8 8.8 0 0 1 0 8.8V3A3 3 0 0 0 2.6 1.5Z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='translate(12 12) rotate(30)'%3E%3Ccircle cx='0' cy='0' r='2.1'/%3E%3Cpath d='M0 -8.8A8.8 8.8 0 0 1 7.62 -4.4L2.6 -1.5A3 3 0 0 0 0 -3Z'/%3E%3Cpath d='M-7.62 4.4A8.8 8.8 0 0 1 -7.62 -4.4L-2.6 -1.5A3 3 0 0 0 -2.6 1.5Z'/%3E%3Cpath d='M7.62 4.4A8.8 8.8 0 0 1 0 8.8V3A3 3 0 0 0 2.6 1.5Z'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.lock-num { font-family: var(--f-mono); font-size: 1.85rem; font-weight: 700; color: var(--gold); letter-spacing: -.02em; }
.lock-num em { font-style: normal; font-size: .8rem; color: var(--text-3); margin-left: 5px; }
.lock-lbl { font-size: .74rem; color: var(--text-3); font-family: var(--f-mono); margin-top: 4px; }

/* ── Science split ───────────────────────────────────── */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.panel {
  background: rgba(19, 12, 30, .6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.panel figcaption { margin-bottom: 22px; }
.panel h3 { font-size: 1.35rem; margin-bottom: 10px; }
.panel figcaption p { color: var(--text-2); font-size: .945rem; }

.latmap { width: 100%; height: auto; border-radius: 16px; overflow: hidden; }
.latmap .latlab text { fill: rgba(255, 255, 255, .78); font-family: var(--f-mono); font-weight: 600; }
.latmap .latlab .hi { fill: #fff; font-size: 11px; }
.latmap .arc { animation: dash 3.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.arcplane {
  offset-path: path('M96 73 C 158 46, 270 40, 330 60');
  offset-rotate: auto;
  animation: fly 7s linear infinite;
}
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .76rem; color: var(--text-3); }
.legend i { width: 26px; height: 9px; border-radius: 3px; display: inline-block; }
.sw-lo  { background: #2f6bd6; }
.sw-mid { background: #f0a72f; }
.sw-hi  { background: #f0552f; }

.altchart { display: flex; flex-direction: column; gap: 18px; margin-block: auto; }
.ac-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 12px; }
.ac-lab { font-family: var(--f-mono); font-size: .76rem; color: var(--text-2); }
.ac-bar {
  height: 17px; border-radius: 0 5px 5px 0; width: var(--h); min-width: 8px;
  background: linear-gradient(90deg, rgba(168, 85, 247, .55), var(--gold));
  box-shadow: 0 0 18px rgba(255, 216, 58, .16);
  transform-origin: left; animation: grow 1.1s var(--ease) both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ac-note { font-size: .72rem; color: var(--text-3); white-space: nowrap; }
.ac-axis { font-size: .7rem; color: var(--text-3); text-align: right; margin-top: 2px; letter-spacing: .04em; }

/* ── Space weather strip ─────────────────────────────── */
.weather {
  margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 34px; align-items: center;
  background: linear-gradient(135deg, rgba(255, 167, 38, .07), rgba(122, 43, 147, .10));
  border: 1px solid rgba(255, 167, 38, .18);
  border-radius: var(--radius-lg); padding: 34px 32px;
}
.weather h3 { font-size: 1.55rem; margin-bottom: 12px; }
.weather p { color: var(--text-2); font-size: .96rem; }
.w-scales { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scale {
  background: rgba(0, 0, 0, .32); border: 1px solid var(--line-soft);
  border-radius: 13px; padding: 15px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.s-tag {
  align-self: flex-start; font-family: var(--f-mono); font-weight: 700; font-size: .8rem;
  padding: 3px 9px; border-radius: 7px; margin-bottom: 6px;
}
.s-r  { background: rgba(240, 85, 75, .16);   color: var(--crit); }
.s-s  { background: rgba(255, 167, 38, .16);  color: var(--warn); }
.s-g  { background: rgba(168, 85, 247, .18);  color: var(--lav); }
.s-kp { background: rgba(156, 203, 255, .16); color: var(--sky); }
.scale b { font-size: .9rem; font-family: var(--f-disp); }
.scale em { font-style: normal; font-size: .76rem; color: var(--text-3); }
.scale.kp b { font-family: var(--f-mono); font-size: 1.3rem; color: var(--sky); }

/* ── Perspective bars ────────────────────────────────── */
.bars {
  background: rgba(19, 12, 30, .58);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 34px 32px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.bar { display: grid; grid-template-columns: minmax(120px, 232px) minmax(0, 1fr) 64px; align-items: center; gap: 16px; }
.b-lab { font-size: .885rem; color: var(--text-2); }
.b-track { height: 15px; border-radius: 4px; background: rgba(255, 255, 255, .05); position: relative; overflow: hidden; }
.b-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--p);
  min-width: 8px;                 /* the smallest doses still need a visible mark */
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, #6f4bd8, var(--lav));
  transform-origin: left; animation: grow 1.2s var(--ease) both;
}
.bar.hi .b-fill  { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); box-shadow: 0 0 20px rgba(255, 216, 58, .3); }
.bar.hi2 .b-fill { background: linear-gradient(90deg, #2f6bd6, var(--sky)); }
.bar.hi .b-lab, .bar.hi .b-val { color: var(--gold); font-weight: 600; }
.bar.hi2 .b-lab, .bar.hi2 .b-val { color: var(--sky); font-weight: 600; }
.b-val { font-family: var(--f-mono); font-size: .84rem; color: var(--text-2); text-align: right; }
.bars-foot { font-size: .74rem; color: var(--text-3); margin-top: 8px; text-align: right; }

.who { margin-top: 34px; }
.who h3 { font-size: 1.4rem; margin-bottom: 22px; text-align: center; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.who-grid > div {
  border-left: 2px solid rgba(168, 85, 247, .45);
  padding: 4px 0 4px 18px;
}
.who-grid b { display: block; font-family: var(--f-disp); font-size: 1rem; margin-bottom: 5px; }
.who-grid span { color: var(--text-2); font-size: .9rem; }

/* ════════ CTA ════════════════════════════════════════ */
.cta { position: relative; padding: 116px 0; text-align: center; overflow: hidden; }
.cta-glow {
  position: absolute; left: 50%; top: 50%; width: 1100px; height: 640px; transform: translate(-50%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(122, 43, 147, .40), transparent 68%),
              radial-gradient(38% 40% at 62% 46%, rgba(255, 184, 0, .13), transparent 70%);
  filter: blur(20px);
}
.cta-icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: 0 24px 60px rgba(122, 43, 147, .6); }
.cta h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 18px; }
.cta p { color: var(--text-2); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 34px; }
.cta .stores { justify-content: center; }

/* ════════ DISCLAIMER ═════════════════════════════════ */
.disclaimer { border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, .3); padding: 30px 0; }
.disclaimer .wrap { display: flex; gap: 16px; align-items: flex-start; }
.d-mark { color: var(--warn); flex: none; }
.d-mark svg { width: 22px; height: 22px; }
.disclaimer p { font-size: .86rem; color: var(--text-3); max-width: 92ch; }
.disclaimer b { color: var(--text-2); font-weight: 600; }

/* ════════ FOOTER ═════════════════════════════════════ */
.foot { border-top: 1px solid var(--line-soft); background: rgba(6, 4, 10, .8); padding: 56px 0 0; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.foot-brand p { color: var(--text-3); font-size: .86rem; margin-top: 12px; max-width: 26ch; }

.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.foot-links h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.foot-links a { display: block; font-size: .88rem; color: var(--text-2); padding: 4px 0; transition: color .2s; }
.foot-links a:hover { color: var(--gold); }
/* Every footer link that leaves the site says so — otherwise the store links
   read as plain grey text with no hint they go anywhere. */
.foot-links a[target="_blank"]::after {
  content: '↗';
  font-size: .78em; margin-left: 5px; color: var(--text-3);
  transition: color .2s, transform .2s var(--ease);
  display: inline-block;
}
.foot-links a[target="_blank"]:hover::after { color: var(--gold); transform: translate(2px, -2px); }

/* Apex Technology Group lock-up — the period is their mark. */
.apex {
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 22px; background: rgba(255, 255, 255, .025);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}
.apex:hover { border-color: rgba(168, 85, 247, .45); background: rgba(168, 85, 247, .07); transform: translateY(-2px); }
.apex-mark { font-family: var(--f-disp); font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.apex-mark i { font-style: normal; color: var(--purple-lit); transition: text-shadow .3s; }
.apex:hover .apex-mark i { text-shadow: 0 0 14px var(--purple-lit); }
.apex-sub { font-size: .78rem; color: var(--text-3); }
.apex-sub b { color: var(--text-2); font-weight: 600; }

.foot-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--text-3);
}

/* ════════ REVEAL ═════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ════════ RESPONSIVE ═════════════════════════════════ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { justify-content: center; padding-right: 0; }
  .w-scales { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hero-copy { text-align: center; }
  .hero h1 br { display: none; }
  .lede { margin-inline: auto; }
  .stores, .trust { justify-content: center; }
  .hero-art { min-height: 0; }
  .weather { grid-template-columns: 1fr; gap: 26px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .apex { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 6, 15, .97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav-cta { margin-top: 16px; justify-content: center; }
  .burger { display: block; }
  .nav.stuck, .nav-links.open ~ * { }
  .nav { background: rgba(9, 6, 15, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}

@media (max-width: 640px) {
  .sec { padding: 76px 0; }
  .hero { padding: 34px 0 68px; }
  /* Room above the device so the readout chip clears the app header instead
     of sitting on top of it. */
  .hero-art { padding-top: 54px; align-items: flex-start; }
  .float.geiger { left: 0; top: 0; transform: scale(.9); transform-origin: top left; }
  .float.equiv { right: -6px; bottom: 44px; transform: scale(.9); transform-origin: bottom right; max-width: 208px; }
  .phone { width: 268px; height: 550px; transform: none; }
  .glowring { width: 380px; height: 380px; }
  .hero-art:hover .phone { transform: none; }
  .bar { grid-template-columns: 1fr auto; grid-template-areas: "lab val" "track track"; row-gap: 6px; }
  .b-lab { grid-area: lab; }
  .b-val { grid-area: val; }
  .b-track { grid-area: track; }
  .bars { padding: 26px 20px 20px; }
  .weather { padding: 26px 22px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-bar { justify-content: flex-start; }
  .disclaimer .wrap { flex-direction: column; gap: 12px; }
}

/* ════════ MOTION PREFERENCES ═════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .meter span { width: var(--w); }
}

/* Print — nobody will, but it shouldn't be a black rectangle. */
@media print {
  #sky, .veil, .aurora, .cta-glow, .glowring, .ticker, .float { display: none !important; }
  body { background: #fff; color: #111; }
  .card, .step, .panel, .bars { border-color: #ccc; background: #fff; }
}
