/* ============================================================
   Dark Skies — Marketing site
   Design system + layout + components
   ============================================================ */

/* Fonts: system stack only — no web-font downloads (matches the app, which
   also uses system fonts). Georgia carries the italic display accents. */

/* ---------- Tokens ---------- */
:root {
  /* night-to-horizon palette (from app brand) */
  --night:      #02101c;
  --night-2:    #04182a;
  --deep:       #062c44;
  --twilight:   #0d3a56;
  --dusk:       #2a4f68;
  --haze:       #6f8a9c;
  --mist:       #9fa7ae;
  --sand:       #c8b4a5;
  --glow:       #d7ac8a;
  --amber:      #d99960;
  --ember:      #e07a3a;
  --ember-hot:  #ef8a45;
  --horizon:    #e07a3a;

  /* surfaces */
  --bg:           #02101c;
  --bg-soft:      #04182a;
  --ink:          #f3f1ec;
  --ink-soft:     #c3cdd6;
  --ink-mut:      #8a99a6;
  --ink-dim:      #5e6f7c;
  --line:         rgba(165, 195, 220, 0.12);
  --line-soft:    rgba(165, 195, 220, 0.07);
  --card:         rgba(255, 255, 255, 0.035);
  --card-2:       rgba(255, 255, 255, 0.05);

  /* type */
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --mono:    ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* spacing */
  --gut: clamp(20px, 5vw, 64px);
  --maxw: 1200px;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  background: var(--ember);
  color: #1a0c03;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 500;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--ember);
  opacity: .6;
}
.eyebrow.centered { justify-content: center; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.display {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.section-title {
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 16ch;
}
.section-title .em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}
.lead {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  max-width: 56ch;
  margin: 22px 0 0;
}

/* ============================================================
   Background atmosphere
   ============================================================ */
.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #0a2236 0%, #051a2b 38%, #02101c 72%);
}
/* horizon glow that warms the bottom of the screen */
.sky::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -40vh;
  width: 160vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(60% 100% at 50% 100%,
    rgba(224,122,58,0.22) 0%,
    rgba(215,172,138,0.10) 32%,
    transparent 70%);
  opacity: .0;
}

.stars {
  position: fixed;
  inset: -10% 0 0 0;
  z-index: -1;
  pointer-events: none;
}
.star-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.star-layer.s1 { background-image:
  radial-gradient(1.4px 1.4px at 12% 14%, #fff, transparent),
  radial-gradient(1.6px 1.6px at 38% 9%, #fff, transparent),
  radial-gradient(1.3px 1.3px at 67% 18%, #e9f1f7, transparent),
  radial-gradient(1.8px 1.8px at 85% 11%, #fff, transparent),
  radial-gradient(1.4px 1.4px at 91% 26%, #fff, transparent),
  radial-gradient(1.5px 1.5px at 55% 28%, #dbe7ef, transparent),
  radial-gradient(1.3px 1.3px at 8% 34%, #fff, transparent);
  background-size: 100% 1400px;
}
.star-layer.s2 { background-image:
  radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,.85), transparent),
  radial-gradient(1px 1px at 48% 22%, rgba(255,255,255,.7), transparent),
  radial-gradient(1px 1px at 73% 6%, rgba(255,255,255,.75), transparent),
  radial-gradient(1px 1px at 16% 24%, rgba(255,255,255,.6), transparent),
  radial-gradient(1px 1px at 62% 33%, rgba(255,255,255,.65), transparent),
  radial-gradient(1px 1px at 88% 19%, rgba(255,255,255,.7), transparent),
  radial-gradient(1px 1px at 34% 38%, rgba(255,255,255,.5), transparent);
  background-size: 100% 1100px;
  opacity: .8;
}
.star-layer.s3 { background-image:
  radial-gradient(.8px .8px at 30% 12%, rgba(255,255,255,.5), transparent),
  radial-gradient(.8px .8px at 58% 17%, rgba(255,255,255,.45), transparent),
  radial-gradient(.8px .8px at 80% 30%, rgba(255,255,255,.5), transparent),
  radial-gradient(.8px .8px at 11% 28%, rgba(255,255,255,.4), transparent),
  radial-gradient(.8px .8px at 44% 34%, rgba(255,255,255,.4), transparent);
  background-size: 100% 900px;
  opacity: .6;
}
/* faint milky-way band diagonal */
.band {
  position: fixed;
  z-index: -1;
  top: -20vh; left: 50%;
  width: 70vw; height: 160vh;
  transform: translateX(-50%) rotate(20deg);
  background: radial-gradient(50% 40% at 50% 50%,
    rgba(160,190,220,0.10) 0%,
    rgba(120,150,190,0.05) 40%,
    transparent 72%);
  filter: blur(8px);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .star-layer { transform: none !important; }
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gut);
  transition: background .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 18, 28, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}
.brand .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(224,122,58,.28), 0 0 0 1px rgba(255,255,255,.06) inset;
  flex: none;
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ember);
  color: #1c0d03 !important;
  padding: 9px 18px !important;
  font-weight: 600;
  border-radius: var(--r-pill);
}
.nav-cta:hover { background: var(--ember-hot) !important; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gut) 20px;
    background: rgba(4, 18, 28, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 13px 14px; }
  .nav-links.open .nav-cta { margin-top: 6px; justify-content: center; }
}

/* ============================================================
   Buttons + badges
   ============================================================ */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), background .25s, border-color .25s;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.store-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,0.1); border-color: rgba(165,195,220,0.22); }
.store-badge svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.store-badge .sb-txt { line-height: 1.15; text-align: left; }
.store-badge .sb-small { font-size: 10.5px; color: var(--ink-mut); letter-spacing: 0.04em; }
.store-badge .sb-big { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ember);
  font-weight: 600;
  font-size: 15px;
}
.text-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(130px, 18vh, 200px) 0 clamp(60px, 9vh, 110px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.hero h1 .em {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.015em;
  background: linear-gradient(96deg, var(--glow), var(--ember-hot) 60%, var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: clamp(17px, 1.7vw, 21px); max-width: 50ch; }
.hero .btn-row { margin-top: 34px; }
.hero-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mut);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); flex: none; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue .mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--ink-dim);
  border-radius: 12px;
  position: relative;
}
.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 6px;
  background: var(--ember);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%,9px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .mouse::after { animation: none; } }

/* ---------- Device (phone) ---------- */
.device {
  position: relative;
  width: clamp(248px, 26vw, 326px);
  aspect-ratio: 1206 / 2622;
  margin: 0 auto;
  border-radius: 13.5% / 6.2%;
  background: linear-gradient(155deg, #2a2f36, #0d1116 60%);
  padding: 2.6%;
  box-shadow:
    0 2px 2px rgba(0,0,0,.5),
    0 40px 80px -28px rgba(0,0,0,.85),
    0 0 0 1px rgba(255,255,255,.06) inset;
}
.device::before { /* dynamic island */
  content: '';
  position: absolute;
  top: 2.6%; left: 50%;
  transform: translateX(-50%);
  width: 28%; height: 2.6%;
  background: #05080b;
  border-radius: 999px;
  z-index: 3;
}
.device-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 11.4% / 5.4%;
  overflow: hidden;
  background: #04141f;
}
.device-screen img,
.device-screen .ph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-glow {
  position: absolute;
  inset: -16% -10%;
  z-index: -1;
  background: radial-gradient(50% 42% at 50% 40%, rgba(224,122,58,.32), transparent 70%);
  filter: blur(20px);
}

.hero-device { position: relative; }
.hero-device .device { transform: rotate(0deg); }
.hero-float {
  position: absolute;
  z-index: 5;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(8, 24, 36, 0.72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}
.hero-float .hf-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mut); }
.hero-float .hf-big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.hero-float .hf-big small { font-size: 13px; color: var(--ink-mut); font-weight: 500; }
.hero-float.f-score { top: 12%; left: -6%; }
.hero-float.f-score .hf-big { color: var(--ember-hot); }
.hero-float.f-window { bottom: 13%; right: -8%; }
.hero-float .hf-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .btn-row, .hero-note { justify-content: center; }
  .hero-device { margin-top: 40px; order: 2; }
  .hero-float.f-score { left: 0%; }
  .hero-float.f-window { right: 0%; }
  .scroll-cue { display: none; }
}

/* ============================================================
   Section frame
   ============================================================ */
section { position: relative; }
.band-pad { padding-block: clamp(72px, 12vh, 150px); }

/* "is tonight worth shooting" */
.worth {
  text-align: center;
}
.worth .section-title { margin: 0 auto; max-width: 20ch; }
.worth .lead { margin-inline: auto; }
.worth-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
}
.worth-cell {
  background: rgba(4, 18, 28, 0.5);
  padding: 36px 28px;
  text-align: left;
}
.worth-cell .wc-num { font-family: var(--mono); font-size: 11px; color: var(--ember); letter-spacing: 0.16em; }
.worth-cell h3 { font-size: 19px; margin: 14px 0 8px; font-weight: 600; }
.worth-cell p { color: var(--ink-mut); font-size: 14.5px; margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .worth-strip { grid-template-columns: 1fr; } }

/* ============================================================
   Scroll story (sticky device + chapters)
   ============================================================ */
.story { position: relative; }
.story-head { text-align: center; margin-bottom: clamp(36px, 6vh, 72px); }
.story-head .lead { margin-inline: auto; }

/* No-JS / default layout: chapters flow as stacked rows */
.story-track { display: block; }
.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  padding-block: clamp(40px, 8vh, 90px);
}
.chapter:nth-child(even) .chapter-media { order: -1; }
.chapter-copy .ch-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ember); }
.chapter-copy h3 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  font-weight: 600;
}
.chapter-copy h3 .em { font-family: var(--display); font-style: italic; font-weight: 300; }
.chapter-copy p { color: var(--ink-soft); margin: 0 0 18px; max-width: 46ch; }
.chapter-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.chapter-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.chapter-list svg { width: 18px; height: 18px; color: var(--ember); flex: none; margin-top: 2px; }
.chapter-media { display: flex; justify-content: center; }

/* fallback device screen */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #062338 0%, #0a2c44 55%, #14304a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 8%;
}
.ph .ph-icon { width: 44px; height: 44px; color: var(--amber); opacity: .9; }
.ph .ph-title { font-weight: 600; font-size: 17px; color: var(--ink); }
.ph .ph-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-mut); line-height: 1.5; max-width: 80%; }
.ph .ph-chip {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px dashed rgba(217,153,96,.5);
  border-radius: 999px;
  padding: 4px 10px;
}

/* JS-enhanced: pin a single media column, chapters scroll past */
body.js .story-track {
  display: grid;
  grid-template-columns: 1fr clamp(248px, 26vw, 326px);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
@media (min-width: 861px) {
  body.js .chapter {
    display: block;
    grid-column: 1;
    min-height: 84vh;
    padding-block: 8vh;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: .32;
    transition: opacity .5s var(--ease);
  }
  body.js .chapter.active { opacity: 1; }
  body.js .chapter-media { display: none; } /* hidden; we use the pinned stage */
  body.js .story-stage {
    grid-column: 2;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.js .stage-device { position: relative; }
  body.js .stage-screens {
    position: relative;
    width: clamp(248px, 26vw, 326px);
    aspect-ratio: 1206 / 2622;
  }
  body.js .stage-screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.015);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
  }
  body.js .stage-screen.active { opacity: 1; transform: scale(1); }
}
/* hide the stage entirely when JS off or on mobile */
.story-stage { display: none; }
@media (max-width: 860px) {
  body.js .story-track { display: block; }
  body.js .story-stage { display: none; }
  body.js .chapter-media { display: flex; }
  body.js .chapter { grid-template-columns: 1fr; opacity: 1; }
  body.js .chapter:nth-child(even) .chapter-media { order: initial; }
}

/* progress ticks for the story */
.story-progress {
  display: none;
}
@media (min-width: 861px) {
  body.js .story-progress {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    left: calc(var(--gut) * -0.1);
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ============================================================
   How it works
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
}
.step .step-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(224,122,58,.14);
  border: 1px solid rgba(224,122,58,.3);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.step .step-ico svg { width: 21px; height: 21px; color: var(--ember-hot); }
.step .step-n { font-family: var(--mono); font-size: 11px; color: var(--ink-mut); letter-spacing: 0.14em; }
.step h3 { font-size: 18px; margin: 6px 0 9px; font-weight: 600; }
.step p { color: var(--ink-mut); font-size: 14.5px; margin: 0; line-height: 1.55; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Feature grid
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.feature {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(165,195,220,0.2); background: var(--card-2); }
.feature .f-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(165,195,220,.07);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature .f-ico svg { width: 20px; height: 20px; color: var(--glow); }
.feature h3 { font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.feature p { color: var(--ink-mut); font-size: 14px; margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   Privacy
   ============================================================ */
.privacy {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(224,122,58,.1), transparent 55%),
    rgba(4, 18, 28, 0.55);
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
}
.privacy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.privacy h2 { margin-bottom: 18px; }
.privacy .priv-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.priv-points li { display: flex; gap: 16px; align-items: flex-start; }
.priv-points .pp-ico {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: rgba(165,195,220,.07);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.priv-points .pp-ico svg { width: 19px; height: 19px; color: var(--ember-hot); }
.priv-points h3 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.priv-points p { font-size: 14px; color: var(--ink-mut); margin: 0; line-height: 1.5; }
@media (max-width: 800px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Articles
   ============================================================ */
.articles-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--card);
  transition: transform .3s var(--ease), border-color .3s;
}
.article:hover { transform: translateY(-3px); border-color: rgba(165,195,220,0.2); }
.article-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(180deg, #062338, #0a2c44);
  overflow: hidden;
}
.article-thumb .at-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 60% 20%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 80% 50%, #e9f1f7, transparent),
    radial-gradient(1px 1px at 40% 65%, #fff, transparent),
    radial-gradient(1px 1px at 75% 75%, #fff, transparent);
  opacity: .8;
}
.article-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(70% 60% at 50% 120%, rgba(224,122,58,.4), transparent 70%);
}
.article-thumb .at-tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); background: rgba(4,18,28,.6);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; z-index: 2;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.article-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 { font-size: 18px; line-height: 1.25; margin: 0 0 10px; font-weight: 600; letter-spacing: -0.01em; }
.article-body p { font-size: 14px; color: var(--ink-mut); margin: 0 0 18px; line-height: 1.55; }
.article-body .text-link { margin-top: auto; font-size: 14px; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Final CTA
   ============================================================ */
.final {
  position: relative;
  text-align: center;
  padding: clamp(80px, 14vh, 170px) 0;
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  left: 50%; bottom: -30%;
  width: 120vw; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 100%, rgba(224,122,58,.3), rgba(215,172,138,.08) 40%, transparent 72%);
  z-index: -1;
}
.final h2 {
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto;
}
.final h2 .em { font-family: var(--display); font-style: italic; font-weight: 300; color: var(--glow); }
.final .lead { margin: 24px auto 0; }
.final .btn-row { justify-content: center; margin-top: 38px; }
.final .hero-note { justify-content: center; }

.qr-downloads { margin: 32px auto 0; }
.qr-title {
  margin: 0 0 14px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.qr-grid { display: flex; justify-content: center; gap: 14px; }
.qr-card {
  display: grid;
  gap: 10px;
  padding: 12px 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: transform .25s var(--ease), background .25s, border-color .25s;
}
.qr-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(165,195,220,.22); }
.qr-card picture { display: block; line-height: 0; }
.qr-card img { display: block; width: 132px; height: 132px; border-radius: 9px; background: #fff; }
@media (max-width: 700px) { .qr-downloads { display: none; } }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 56px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer .brand { margin-bottom: 16px; }
.footer-blurb { color: var(--ink-mut); font-size: 14px; max-width: 32ch; line-height: 1.55; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mut); margin: 0 0 16px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: 14.5px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-mut);
}
.footer-bottom .fb-links { display: flex; gap: 22px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal animation (JS toggles .in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* if JS never runs, show everything */
body:not(.js) .reveal { opacity: 1; transform: none; }

/* ============================================================
   Timeline (night arc) — small decorative inside "worth" or story head
   ============================================================ */
.nightline {
  margin: 44px auto 0;
  max-width: 760px;
  position: relative;
}
.nightline svg { width: 100%; height: auto; display: block; overflow: visible; }
.nl-track { stroke: var(--line); stroke-width: 1.5; fill: none; }
.nl-arc { stroke: var(--ember); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.nl-labels { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-mut); text-transform: uppercase; }
.nl-dot { fill: var(--ember-hot); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { padding-block: 28px; border-block: 1px solid var(--line-soft); background: rgba(4,18,28,.4); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.trust-line { margin: 0; font-size: 15px; color: var(--ink-soft); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.trust-star { color: var(--ember); font-size: 14px; }
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; }
.trust-points li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-mut); position: relative; padding-left: 15px; }
.trust-points li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--ember); }
@media (max-width: 760px) { .trust-points { display: none; } .trust-line { font-size: 14px; } }

/* ============================================================
   Sub-pages (guides, legal, info) — reuse nav/footer/atmosphere
   ============================================================ */
.page { padding-top: clamp(118px, 16vh, 168px); padding-bottom: 30px; }
.breadcrumb { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ink-mut); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 30px; }
.breadcrumb a { color: var(--ink-mut); }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb [aria-current] { color: var(--ink-soft); }
.breadcrumb .sep { opacity: .45; }

.doc { max-width: 760px; }
.doc-head { margin-bottom: 40px; }
.doc h1 { font-size: clamp(31px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 600; max-width: 20ch; }
.doc h1 .em { font-family: var(--display); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.doc .dek { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 60ch; }
.doc-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin: 18px 0 0; }

.prose h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 46px 0 14px; font-weight: 600; }
.prose h2 .em { font-family: var(--display); font-style: italic; font-weight: 400; }
.prose h3 { font-size: 18px; margin: 30px 0 10px; font-weight: 600; }
.prose p { color: var(--ink-soft); font-size: 17px; line-height: 1.72; margin: 0 0 18px; max-width: 68ch; }
.prose ul, .prose ol { color: var(--ink-soft); font-size: 17px; line-height: 1.7; padding-left: 22px; margin: 0 0 18px; max-width: 66ch; }
.prose li + li { margin-top: 9px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(224,122,58,.4); }
.prose a:hover { color: var(--ember-hot); text-decoration-color: var(--ember-hot); }
.callout { border: 1px solid var(--line); border-left: 2px solid var(--ember); border-radius: var(--r-md); background: rgba(4,18,28,.5); padding: 20px 22px; margin: 26px 0; }
.callout p { margin: 0; font-size: 16px; }

.soft-cta { margin-top: 60px; border: 1px solid var(--line); border-radius: var(--r-lg); background: radial-gradient(120% 120% at 100% 0%, rgba(224,122,58,.1), transparent 55%), rgba(4,18,28,.55); padding: clamp(28px, 4vw, 44px); }
.soft-cta h2 { font-size: clamp(21px, 2.4vw, 28px); margin: 0 0 10px; font-weight: 600; letter-spacing: -.02em; }
.soft-cta h2 .em { font-family: var(--display); font-style: italic; font-weight: 400; }
.soft-cta p { color: var(--ink-soft); margin: 0 0 22px; max-width: 54ch; }
.soft-cta .btn-row { margin: 0; }

.related { margin-top: 66px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.related h2 { font-size: 20px; margin: 0 0 24px; font-weight: 600; letter-spacing: -.01em; }

/* Guides index intro */
.guides-intro { max-width: 720px; margin-bottom: 12px; }
.guides-intro h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.03; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 600; }
.guides-intro h1 .em { font-family: var(--display); font-style: italic; font-weight: 400; }
.guides-intro .lead { margin-top: 0; }

/* article cards: keep equal-height thumbs on text-only guide grids */
.article-grid.compact { margin-top: 40px; }
