/* ==========================================================================
   Radio Island — Nocturne Amber
   Tokens mirror mockups/DESIGN.md. Change them here, nowhere else.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #0A0B0E;   /* obsidian notch void */
  --surface:       #121318;   /* window backplate / map canvas */
  --surface-2:     #16171d;
  --card:          #1A1C24;   /* interactive card / drawer */
  --glass:         rgba(30, 32, 42, .75);

  /* Lines */
  --line:          rgba(255, 255, 255, .08);
  --line-strong:   rgba(255, 255, 255, .14);
  --line-amber:    rgba(247, 123, 35, .30);

  /* Amber */
  --primary:       #F77B23;   /* vacuum filament */
  --primary-2:     #FFA858;   /* dial halo */
  --primary-3:     #FFD0A0;
  --on-primary:    #2A1002;

  /* Text */
  --text:          #F5F6F8;
  --muted:         #8E929E;
  --muted-2:       #6D707B;
  --accent:        #9DD3AA;   /* tactical moss — "free" tags, ok states */

  /* Type */
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body:    Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Depth */
  --glow-sm: 0 0 12px 2px rgba(247, 123, 35, .45);
  --glow-lg: 0 0 12px 2px rgba(247, 123, 35, .45), 0 0 24px 6px rgba(255, 168, 88, .20);

  --wrap: 1180px;
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--f-body);
  font-feature-settings: "cv02", "cv03", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.18; margin: 0; letter-spacing: -.02em; }
p  { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: rgba(247, 123, 35, .35); }

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

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 820px); }
.center { text-align: center; }

/* ── Shared atoms ──────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-2);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.eyebrow .ico { color: var(--primary); font-size: 13px; }

.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: var(--glow-sm);
  animation: pulse 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease,
              background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--lg { padding: 15px 30px; font-size: 15.5px; }
.btn--sm { padding: 8px 15px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  color: var(--on-primary);
  box-shadow: 0 6px 24px -6px rgba(247, 123, 35, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px -8px rgba(247, 123, 35, .7); }

.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { border-color: var(--line-amber); background: rgba(247, 123, 35, .08); }

.tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: middle;
}
.tag--free { color: var(--accent); border-color: rgba(157, 211, 170, .3); background: rgba(157, 211, 170, .1); }
.tag--pro  { color: var(--primary-2); border-color: var(--line-amber); background: rgba(247, 123, 35, .12); }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 11, 14, .72);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(10, 11, 14, .9); }

.nav__inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.nav__ver {
  font-family: var(--f-mono); font-size: 9px; font-style: normal;
  color: var(--muted-2); letter-spacing: .08em; vertical-align: super;
}

.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 13.5px; color: var(--muted); font-weight: 500;
  transition: color .16s ease;
}
.nav__links a:hover { color: var(--text); }

.nav__burger {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 38px; height: 34px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__burger span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: .2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.2px) rotate(-45deg); }

.nav__mobile { display: none; border-top: 1px solid var(--line); padding: 8px 20px 16px; }
.nav__mobile a { display: block; padding: 11px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav__mobile:not([hidden]) { display: block; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 92px 0 56px; text-align: center; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -30% 0 auto; height: 620px; pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 40%, rgba(247, 123, 35, .20), transparent 68%);
}
.hero__inner { position: relative; }

.hero__logo {
  width: 96px; height: 96px; margin: 0 auto 22px;
  filter: drop-shadow(0 8px 34px rgba(247, 123, 35, .45));
  border-radius: 22px;
}

.hero__title {
  font-size: clamp(42px, 7vw, 76px); font-weight: 700; letter-spacing: -.035em;
  background: linear-gradient(180deg, #fff 30%, #c9b6a6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub {
  max-width: 620px; margin: 18px auto 0;
  font-size: clamp(16px, 2.2vw, 19px); color: #c9ccd4; line-height: 1.6;
}
.hero__sub em { color: var(--primary-2); font-style: normal; font-weight: 600; }

.hero__bullets {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  margin: 26px auto 0; max-width: 780px;
  font-size: 13.5px; color: var(--muted);
}
.hero__bullets li { position: relative; padding-left: 16px; }
.hero__bullets li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 8px rgba(247, 123, 35, .8);
}
.hero__bullets em { color: var(--primary-2); font-style: normal; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.hero__note {
  max-width: 560px; margin: 24px auto 0;
  font-size: 12.5px; color: var(--muted-2); line-height: 1.6;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--demo { padding-top: 24px; }

.sec-head { margin-bottom: 44px; max-width: 720px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(27px, 4vw, 38px); font-weight: 600; }
.sec-head__sub { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.lede { color: #b9bdc7; font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
.lede + .lede { margin-bottom: 0; }

.fineprint { margin-top: 18px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

.callout {
  margin-top: 34px; padding: 22px 24px;
  border: 1px solid var(--line-amber); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(247, 123, 35, .09), rgba(247, 123, 35, .02));
}
.callout h3 { font-size: 15px; display: flex; align-items: center; gap: 9px; color: var(--primary-2); }
.callout .ico { font-size: 13px; }
.callout p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════════════════════════════════
   THE STAGE — notch capsule + live map + glass dock
   ══════════════════════════════════════════════════════════════════════ */
.stage { position: relative; margin-top: 8px; }

.stage__lid {
  position: relative;
  background: #050507;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 34px 12px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 40px 90px -30px rgba(0, 0, 0, .9),
    0 0 90px -30px rgba(247, 123, 35, .35);
}

/* Notch capsule */
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center; gap: 14px;
  min-width: 260px; max-width: 440px; height: 30px;
  padding: 0 14px;
  background: #000;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, .07); border-top: 0;
  transition: box-shadow .3s ease, min-width .35s cubic-bezier(.2,.9,.3,1.1);
}
.notch[data-state="playing"] { box-shadow: 0 0 22px -4px rgba(247, 123, 35, .55); min-width: 330px; }

.notch__wing { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notch__wing--l { flex: 1; }
.notch__wing--r { flex: none; }
.notch__wing img { opacity: .9; border-radius: 4px; }

.notch__name {
  font-family: var(--f-display); font-size: 11.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notch__freq {
  font-family: var(--f-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted-2); white-space: nowrap;
}
.notch[data-state="playing"] .notch__freq { color: var(--primary-2); }

/* Signal bars */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i {
  width: 2px; height: 3px; border-radius: 1px;
  background: var(--muted-2); transition: background .3s ease;
}
.notch[data-state="playing"] .bars i,
.dock.is-playing .bars i { background: var(--primary); animation: bar .9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .15s }
.bars i:nth-child(3) { animation-delay: .3s }
.bars i:nth-child(4) { animation-delay: .45s }
.bars i:nth-child(5) { animation-delay: .6s }
@keyframes bar { 0%, 100% { height: 3px } 50% { height: 12px } }

/* Screen + map */
.stage__screen {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background: #0b0d12;
  border: 1px solid rgba(255, 255, 255, .06);
  /* width must stay the definite dimension — with only min-height set, the
     browser resolves width *from* the ratio and overflows narrow screens. */
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 340px;
}
#map { position: absolute; inset: 0; }

/* Leaflet overrides — deep-sea obsidian plate, no tile provider */
.leaflet-container {
  font-family: var(--f-body); outline: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, #10131a 0%, #0a0c11 60%, #070809 100%);
}
.leaflet-interactive { transition: none; }
.leaflet-control-zoom a {
  background: rgba(20, 22, 28, .9) !important; color: var(--text) !important;
  border-color: rgba(255, 255, 255, .1) !important; backdrop-filter: blur(10px);
}
.leaflet-control-zoom a:hover { background: rgba(247, 123, 35, .25) !important; }
.leaflet-control-attribution {
  background: rgba(10, 11, 14, .72) !important;
  color: var(--muted-2) !important; font-size: 9px !important;
  padding: 2px 7px !important;
}
.leaflet-control-attribution a { color: var(--muted) !important; }

/* Station pins */
.pin { display: block; position: relative; width: 14px; height: 14px; }
.pin__dot {
  position: absolute; inset: 3px;
  border-radius: 50%; background: var(--primary-2);
  box-shadow: 0 0 9px 1px rgba(247, 123, 35, .8);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.4), background .2s ease;
}
.pin:hover .pin__dot { transform: scale(1.7); background: #fff; }
.leaflet-marker-icon:focus .pin__dot { transform: scale(1.7); background: #fff; }

.pin.is-active .pin__dot { background: #fff; transform: scale(1.6); box-shadow: var(--glow-lg); }
.pin.is-active::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 1.5px solid var(--primary-2);
  animation: ping 1.9s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .9 } 100% { transform: scale(3.4); opacity: 0 } }

.leaflet-tooltip.pin-tip {
  background: rgba(26, 28, 36, .94); border: 1px solid var(--line-strong);
  border-radius: 8px; color: var(--text); font-size: 11.5px;
  padding: 6px 10px; box-shadow: 0 8px 24px -8px #000;
  backdrop-filter: blur(14px);
}
.leaflet-tooltip.pin-tip::before { display: none; }
.pin-tip b { font-family: var(--f-display); font-weight: 600; display: block; }
.pin-tip span { color: var(--muted); font-size: 10.5px; }

/* Continent chips — must clear Leaflet's own panes (z-index up to 700) */
.chips {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1000;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  background: rgba(18, 19, 24, .8); border: 1px solid var(--line);
  color: var(--muted); backdrop-filter: blur(14px) saturate(180%);
  transition: .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.is-on { background: rgba(247, 123, 35, .18); border-color: var(--line-amber); color: var(--primary-2); }

/* Veil */
.veil {
  position: absolute; inset: 0; z-index: 1100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(11, 13, 18, .92); backdrop-filter: blur(6px);
  color: var(--muted); font-size: 13px; text-align: center; padding: 20px;
  transition: opacity .4s ease, visibility .4s ease;
}
.veil[hidden] { display: flex; opacity: 0; visibility: hidden; pointer-events: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(247, 123, 35, .25); border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

/* Glass dock */
.dock {
  display: flex; align-items: center; gap: 16px;
  margin-top: 10px; padding: 12px 14px;
  min-height: 64px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--r-md);
  backdrop-filter: blur(28px) saturate(180%);
}

.dock__play {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  color: var(--on-primary);
  box-shadow: 0 4px 16px -4px rgba(247, 123, 35, .7);
  transition: transform .16s cubic-bezier(.2,.9,.3,1.4), opacity .2s ease;
}
.dock__play:hover:not(:disabled) { transform: scale(1.07); }
.dock__play:disabled { opacity: .35; cursor: not-allowed; background: #3a3c45; color: var(--muted); box-shadow: none; }
.dock__play svg { grid-area: 1 / 1; }
.dock__play .i-pause, .dock__play .i-load { display: none; }
.dock.is-playing .dock__play .i-play  { display: none; }
.dock.is-playing .dock__play .i-pause { display: block; }
.dock.is-loading .dock__play .i-play,
.dock.is-loading .dock__play .i-pause { display: none; }
.dock.is-loading .dock__play .i-load  { display: block; animation: spin 1s linear infinite; }

.dock__meta { flex: 1; min-width: 0; }
.dock__title {
  font-family: var(--f-display); font-size: 14.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock__sub { font-size: 11.5px; color: var(--muted); display: flex; gap: 7px; align-items: center; margin-top: 2px; }
.dock__sub .sep { color: var(--muted-2); }
.dock.is-error .dock__title { color: #ffb4ab; }

.dock__badges { display: flex; gap: 6px; flex: none; }
.badge {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(247, 123, 35, .12); border: 1px solid var(--line-amber); color: var(--primary-2);
  white-space: nowrap;
}
.badge--live { color: #fff; background: rgba(247, 123, 35, .3); }

.dock__ctrls { display: flex; align-items: center; gap: 10px; flex: none; }

.icon-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 13px; border-radius: 9px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  transition: .18s ease;
}
.icon-btn:hover { border-color: var(--line-amber); background: rgba(247, 123, 35, .14); color: var(--primary-2); }
.icon-btn:active { transform: scale(.96); }

.vol { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.vol input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 76px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); cursor: pointer;
}
.vol input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: var(--primary-2); box-shadow: 0 0 8px rgba(247, 123, 35, .8); border: 0;
}
.vol input[type="range"]::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%; border: 0;
  background: var(--primary-2); box-shadow: 0 0 8px rgba(247, 123, 35, .8);
}

.stage__foot { display: flex; justify-content: center; }
.stage__hinge {
  width: 18%; height: 7px;
  background: linear-gradient(180deg, #17181d, #0c0d10);
  border: 1px solid rgba(255, 255, 255, .07); border-top: 0;
  border-radius: 0 0 8px 8px;
}

.stage__caption {
  max-width: 660px; margin: 22px auto 0; text-align: center;
  font-size: 12.5px; color: var(--muted-2); line-height: 1.7;
}
.stage__caption strong { color: var(--primary-2); font-weight: 600; }

/* Stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 40px;
}
.stat-row li {
  text-align: center; padding: 18px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.stat__n { display: block; font-size: 24px; font-weight: 700; color: var(--primary-2); }
.stat__l { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 860px) {
  .stage__lid { padding: 30px 8px 8px; }
  .stage__screen { aspect-ratio: 4 / 3; }
  .dock { flex-wrap: wrap; row-gap: 12px; }
  .dock__meta { order: 1; flex-basis: calc(100% - 56px); }
  .dock__badges { order: 3; }
  .dock__ctrls { order: 4; margin-left: auto; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .notch { min-width: 200px; }
  .notch[data-state="playing"] { min-width: 230px; }
}
@media (max-width: 620px) {
  /* One scrollable row instead of three stacked rows covering the map */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
@media (max-width: 520px) {
  .dock__badges { display: none; }
  .vol { display: none; }
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  padding: 24px 22px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .22s ease, transform .22s ease;
}
.step:hover { border-color: var(--line-amber); transform: translateY(-3px); }
.step__n { display: block; font-size: 26px; font-weight: 700; color: var(--primary); opacity: .55; }
.step h3 { margin: 14px 0 9px; font-size: 16px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ── Features ──────────────────────────────────────────────────────────── */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feat {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}
.feat:hover { border-color: var(--line-amber); transform: translateY(-3px); }
.feat--wide { grid-column: span 2; }
.feat--flat { grid-column: span 1; justify-content: center; }

.feat__body { padding: 22px 24px 26px; }
.kicker {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-bottom: 11px;
}
.feat h3 { font-size: 17px; margin-bottom: 10px; }
.feat p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.feat p em { color: var(--primary-2); font-style: normal; }

/* Screenshot slots — drop a PNG in and the placeholder disappears */
.shot {
  margin: 0; position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #15161c, #0d0e12);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.feat--wide .shot { aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.shot--empty::after {
  content: "Screenshot slot · " attr(data-file) " · " attr(data-size);
  position: absolute; inset: 14px;
  display: grid; place-content: center; text-align: center;
  border: 1px dashed var(--line-amber); border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em;
  color: rgba(255, 168, 88, .55);
  background:
    repeating-linear-gradient(45deg, rgba(247,123,35,.035) 0 10px, transparent 10px 20px);
  padding: 20px;
}

@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat--wide { grid-column: span 2; }
}
@media (max-width: 660px) {
  .feat-grid { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
}

/* ── Cards (native) ────────────────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .22s ease;
}
.card:hover { border-color: var(--line-amber); }
.card h3 { font-size: 16px; margin-bottom: 11px; color: var(--primary-2); }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

/* ── Privacy ───────────────────────────────────────────────────────────── */
.privacy {
  padding: 36px 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.privacy h2 { font-size: 26px; margin-bottom: 16px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.kv > div {
  padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line);
}
.kv dt {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}
.kv dd { margin: 0; font-size: 13px; color: var(--primary-2); font-weight: 500; word-break: break-word; }
.kv dd.mono { font-size: 11px; }
@media (max-width: 760px) { .kv { grid-template-columns: repeat(2, 1fr); } .privacy { padding: 26px 22px; } }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.plan {
  position: relative;
  padding: 30px 28px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; height: 100%;
}
.plan--pro {
  background: linear-gradient(170deg, rgba(247, 123, 35, .10), rgba(26, 28, 36, .5) 60%);
  border-color: var(--line-amber);
  box-shadow: 0 30px 70px -40px rgba(247, 123, 35, .6);
}
.plan__flag {
  position: absolute; top: -1px; right: 22px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 0 0 8px 8px;
  background: var(--primary); color: var(--on-primary);
}
.plan__head { display: flex; align-items: center; gap: 10px; }
.plan__head h3 { font-size: 20px; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.plan__price .amount { font-family: var(--f-display); font-size: 42px; font-weight: 700; letter-spacing: -.03em; }
.plan--pro .amount { color: var(--primary-2); }
.plan__price .per { font-family: var(--f-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.plan__note { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.ticks { margin: 24px 0 26px; display: grid; gap: 11px; }
.ticks li {
  position: relative; padding-left: 26px;
  font-size: 13.5px; color: #bcc0c9; line-height: 1.6;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  font-size: 12px; font-weight: 700; color: var(--accent);
}
.ticks--pro li::before { color: var(--primary-2); }
.ticks li strong { color: var(--text); font-weight: 600; }

.plan .btn, .plan__cta { margin-top: auto; }
.plan__cta--muted {
  text-align: center; padding: 13px;
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted-2);
}
.plans__foot {
  margin-top: 26px; text-align: center;
  font-size: 12.5px; color: var(--muted-2); line-height: 1.7;
  max-width: 640px; margin-inline: auto;
}
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } }

/* ── Limits ────────────────────────────────────────────────────────────── */
.limits { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.limits li { padding: 22px 24px; background: var(--card); }
.limits li + li { border-top: 1px solid var(--line); }
.limits h3 { font-size: 15px; margin-bottom: 8px; color: var(--primary-2); }
.limits p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ── Final CTA ─────────────────────────────────────────────────────────── */
.section--cta {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 50% 90% at 50% 100%, rgba(247, 123, 35, .16), transparent 70%);
}
.cta__logo { margin: 0 auto 22px; border-radius: 18px; filter: drop-shadow(0 8px 30px rgba(247, 123, 35, .4)); }
.section--cta h2 { font-size: clamp(26px, 4vw, 34px); }
.section--cta .sec-head__sub { margin: 14px auto 28px; }
.section--cta .fineprint { margin-top: 20px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 52px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.footer__brand p { margin-top: 14px; font-size: 13px; color: var(--muted-2); line-height: 1.7; max-width: 300px; }
.footer__col h4 {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 14px;
}
.footer__col a, .footer__col p { display: block; font-size: 13px; color: var(--muted-2); margin-bottom: 9px; }
.footer__col a:hover { color: var(--text); }
.footer__lic { font-size: 10px !important; margin-top: 14px !important; }

.footer__bar {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 18px 0 26px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--muted-2);
}
.footer__bar a:hover { color: var(--primary-2); }
@media (max-width: 820px) { .footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer__inner { grid-template-columns: 1fr; } }

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Never let an animation hide content in print or a page capture. */
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

@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; }
}
