/* ==========================================================================
   Resource Radar — "Toolbar Skin" variant
   Pixel-art / dense toolbar aesthetic. Keen monospace + strong CRT.
   Mirrors the app toolbar: vertical label tabs, segmented LED meters,
   near-zero spacing, 0 corner radius, hairline bevels.
   Fully standalone — own assets/ folder, no reference to the main site.
   ========================================================================== */

:root {
  /* Surfaces — near-black, app-matched */
  --bg: #050705;
  --bg-elev: #0A0C0A;
  --bg-elev-2: #0F120E;
  --bg-tab: #14181300;
  --border: #1E2A22;
  --border-strong: #2C3D31;
  --bevel-hi: #2E4234;
  --bevel-lo: #060A07;

  /* Text */
  --text: #DDE7DE;
  --text-muted: #8C9A8F;
  --text-dim: #5E6B61;

  /* Brand — pulled from the app */
  --green: #00FF64;
  --green-bright: #1EFF78;
  --green-dim: #0C8A45;
  --green-deep: #06311F;
  --yellow: #FFDC00;
  --orange: #FF8C00;
  --red: #FF3C3C;
  --blue: #2B8CFF;          /* CDX tab accent */
  --purple: #9B5CFF;
  --slice-off: #14201A;

  --on-green: #04140A;
  --focus: #00FF64;

  /* Typography — monospace body (toolbar feel), angular display for titles */
  --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, "Liberation Mono", ui-monospace, monospace;
  --font-display: "Oxanium", "Cascadia Mono", Consolas, monospace;

  --fs-hero: clamp(1.7rem, 4.4vw, 3.1rem);
  --fs-h2: clamp(1.15rem, 2.4vw, 1.6rem);
  --fs-h3: 0.95rem;
  --fs-body: 0.95rem;
  --fs-small: 0.8rem;
  --fs-eyebrow: 0.7rem;

  /* Spacing — 4px grid, extra-tight density */
  --s-1: 2px;  --s-2: 3px;  --s-3: 5px;  --s-4: 7px;
  --s-6: 10px; --s-8: 13px; --s-12: 18px; --s-16: 24px; --s-24: 32px;

  --container: 1180px;
  --gutter: var(--s-8);
  --header-h: 62px;

  --ease: steps(1);   /* snappy, pixel-ish */
  --dur: 80ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-radius: 0 !important; }
ul, ol { padding: 0; }   /* drop the UA list indent globally (lists are styled) */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-6));
  /* no overflow here: the document/viewport stays the scroller (window.scrollY works).
     Horizontal overflow is clipped on <body> instead. */
  /* Stop iOS Safari from auto-inflating ("boosting") text in landscape — it's why
     fonts (e.g. the footer) looked larger only on iPhone landscape and normal on
     Android/desktop. 100% keeps our sizes intact while still allowing user zoom. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: none;          /* crisper, more bitmap-ish */
  text-rendering: geometricPrecision;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

/* Links: no underline anywhere — every link (UI or in-prose) gives feedback
   through colour only (muted/green -> bright green on hover). */
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-bright); }
a:focus-visible { text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--green); color: var(--on-green); }

/* ---------- Atmosphere ---------- */
/* Scanlines removed. A soft vignette keeps focus toward the centre. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background: radial-gradient(130% 100% at 50% 30%, rgba(0,0,0,0) 62%, rgba(0,0,0,0.5) 100%);
}

/* faint grid wash behind everything */
.crt-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.18;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 80%);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--on-green);
  padding: var(--s-3) var(--s-6);
  z-index: 10000;
  font-weight: 700;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }
.accent { color: var(--green); text-shadow: 0 0 8px rgba(0,255,100,0.5); }

/* ==========================================================================
   Bevel + LED meter primitives  (the toolbar building blocks)
   ========================================================================== */

/* flat solid frame (no emboss) */
/* vertical rotated label tab — flat solid colour block */
.vtab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-orientation: mixed;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--on-green);
  background: var(--green);
  border-right: 1px solid var(--bevel-lo);
  padding: var(--s-6) var(--s-2);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.vtab[data-accent="green"]  { background: var(--green);  color: var(--on-green); }
.vtab[data-accent="yellow"] { background: var(--yellow); color: #1a1500; }
.vtab[data-accent="orange"] { background: var(--orange); color: #1a0e00; }
.vtab[data-accent="red"]    { background: var(--red);    color: #1a0000; }
.vtab[data-accent="blue"]   { background: var(--blue);   color: #00121f; }
.vtab[data-accent="purple"] { background: var(--purple); color: #13001f; }

/* animated nav slice-bar — running light through green/yellow/orange/red.
   Base geometry + zone colours (--hot) live in the Section-head slice-bar block. */
.slice-bar--anim i { animation: slice-wave 1.8s steps(1, end) infinite; }
.slice-bar--anim i:nth-child(1)  { animation-delay: 0s; }
.slice-bar--anim i:nth-child(2)  { animation-delay: .1s; }
.slice-bar--anim i:nth-child(3)  { animation-delay: .2s; }
.slice-bar--anim i:nth-child(4)  { animation-delay: .3s; }
.slice-bar--anim i:nth-child(5)  { animation-delay: .4s; }
.slice-bar--anim i:nth-child(6)  { animation-delay: .5s; }
.slice-bar--anim i:nth-child(7)  { animation-delay: .6s; }
.slice-bar--anim i:nth-child(8)  { animation-delay: .7s; }
.slice-bar--anim i:nth-child(9)  { animation-delay: .8s; }
.slice-bar--anim i:nth-child(10) { animation-delay: .9s; }
@keyframes slice-wave {
  0%, 55%, 100% { background: var(--slice-off); }
  18% { background: var(--hot); }
}
@media (prefers-reduced-motion: reduce) {
  .slice-bar--anim i { animation: none; background: var(--hot); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-8);
  /* nested frame: 1px border + 2px gap + 1px inner outline, even on all sides */
  border: 1px solid var(--border-strong);
  outline: 1px solid var(--border-strong);
  outline-offset: -3px;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--bg-elev-2); color: var(--green); }
.btn:active { outline-offset: -4px; }

.btn-secondary { background: var(--bg-elev-2); }
.btn-ghost { background: transparent; border-color: var(--border); outline-color: var(--border); }
.btn-sm { padding: var(--s-2) var(--s-4); font-size: 0.72rem; }

.btn-download-option {
  min-width: 230px;
  /* 48px clamps BOTH download buttons to the same height: the two-line Store
     label renders ~46px naturally, so 44px let it outgrow the EXE button */
  min-height: 48px;
  justify-content: center;
  background: var(--bg-elev-2);
  color: var(--text);
  border-color: var(--green-dim);
  outline-color: var(--border-strong);
}
.btn-download-option:hover {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green-bright);
  outline-color: var(--green-deep);
  box-shadow: 0 0 8px rgba(0,255,100,0.3);
}

.btn-store { align-items: center; }
.btn-store-label { display: flex; flex-direction: column; line-height: 1.05; text-transform: none; align-items: flex-start; }
.btn-store-label small { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.02em; }
.btn-download-option:hover .btn-store-label small { color: var(--on-green); }

/* passive / "coming soon" buttons */
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; filter: grayscale(0.35); }

/* back-to-top */
.to-top {
  position: fixed; right: var(--s-8); bottom: var(--s-8); z-index: 90;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--on-green);
  border: 1px solid var(--green-bright);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(0,255,100,0.4);
}
.to-top[hidden] { display: none; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { background: var(--green-bright); }

/* ==========================================================================
   Header — main-site placement, pixel styling
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: transparent;                 /* blends with the radar splash at the top */
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, min-height 220ms ease;
}
.site-header.is-scrolled {                 /* small solid black bar once you scroll down */
  background: #000;
  border-bottom-color: var(--border);
  min-height: 52px;
}
.site-header .container {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--text);
}
/* Combined lockup logo (icon + RESOURCE RADAR wordmark + viewfinder brackets) */
.brand-logo { height: 44px; width: auto; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s-8);
  margin-left: auto;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-block: var(--s-2);
}
/* colour-only feedback — no underline/border line */
.nav-links a:hover { color: var(--green); }
.nav-links a.is-active { color: var(--green); }
/* the LED markers and contact block belong to the mobile drop panel only */
.nav-led, .nav-contact { display: none; }

/* the liked top-right animated slice bar sits at far right (after the nav) */
.site-header .slice-bar--nav { align-self: center; margin-bottom: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 40px; height: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
/* hamburger by default, morph to an X while the drop panel is open */
.nav-toggle .nav-ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-ico-close { display: block; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--s-24); border-top: 1px solid var(--border); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
/* dual-colour separator: a muted-green line laid over the dark hairline that
   divides the full-width sections (and sits above the footer) */
.section::before,
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green-dim);
  pointer-events: none;
  z-index: 1;
}
#features,
#download,
#faq {
  background: var(--bg);
}
#screenshots,
#privacy {
  background: var(--bg-elev);
}

.section-head {
  margin-bottom: var(--s-12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title meter"
    "copy label";
  align-items: center;
  column-gap: var(--s-12);
  row-gap: var(--s-3);
}
.section-head-text { display: contents; text-align: left; }
.section-head h2:last-child { margin-bottom: 0; }
.section-head .eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 0;
  min-height: 28px;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: var(--green);
  margin-bottom: var(--s-4);
  padding: 6px calc(var(--s-8) + 0.1em) 5px;
  border: 1px solid var(--green-deep);
  background: rgba(0,255,100,0.05);
}
.section-head .eyebrow { grid-area: label; justify-self: end; margin-bottom: 0; }
.section-head h2 { grid-area: title; font-size: var(--fs-h2); margin-bottom: 0; }
.section-head p { color: var(--text-muted); font-size: var(--fs-small); }
.section-head .section-head-text > p:not(.eyebrow) { grid-area: copy; }

/* segmented slice-bar — 10 segments, zone colours, per-section fill level
   (mirrors the main site: 1-3 green, 4-6 yellow, 7-8 orange, 9-10 red) */
.slice-bar { display: inline-flex; gap: 4px; height: 13px; vertical-align: middle; margin-bottom: var(--s-4); }
.slice-bar i { width: 4px; align-self: stretch; background: var(--slice-off); }
.slice-bar i:nth-child(-n+3) { --hot: var(--green); }
.slice-bar i:nth-child(n+4):nth-child(-n+6) { --hot: var(--yellow); }
.slice-bar i:nth-child(n+7):nth-child(-n+8) { --hot: var(--orange); }
.slice-bar i:nth-child(n+9) { --hot: var(--red); }
.slice-bar--l1 i:nth-child(-n+2) { background: var(--hot); }
.slice-bar--l2 i:nth-child(-n+4) { background: var(--hot); }
.slice-bar--l3 i:nth-child(-n+6) { background: var(--hot); }
.slice-bar--l4 i:nth-child(-n+8) { background: var(--hot); }
.slice-bar--l5 i { background: var(--hot); }
.section-head .slice-bar { grid-area: meter; justify-self: end; flex: none; height: 18px; margin: 0; align-self: center; }
/* nav variant: taller, fully lit, far right of the header */
.slice-bar--nav { height: 18px; gap: 4px; margin-left: var(--s-2); }
.slice-bar--nav i { width: 4px; background: var(--hot); }

/* ==========================================================================
   Radar background (ported from the main site, app-green)
   ========================================================================== */
.radar-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* concentric radar rings + faint radial spokes (replaces the square mesh) */
.radar-bg .rings {
  position: absolute; inset: 0;
  background:
    repeating-radial-gradient(circle at var(--cx, 50%) var(--cy, 46%),
      rgba(0,255,100,.10) 0 1.5px, transparent 1.5px 80px),
    repeating-radial-gradient(circle at var(--cx, 50%) var(--cy, 46%),
      rgba(0,255,100,.035) 0 1px, transparent 1px 20px),
    repeating-conic-gradient(from 0deg at var(--cx, 50%) var(--cy, 46%),
      rgba(0,255,100,.05) 0 0.4deg, transparent 0.4deg 30deg);
  mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 46%), #000 0, #000 42%, transparent 82%);
}
.radar-bg .sqr {
  display: none;   /* box-shaped outline removed; the circular rings remain */
  position: absolute; left: var(--cx, 50%); top: var(--cy, 46%);
  transform: translate(-50%, -50%); border: 1.5px solid rgba(0,255,100,.10);
}
.radar-bg .sqr.a { width: 300px; height: 300px; }
.radar-bg .sqr.b { width: 510px; height: 510px; border-color: rgba(0,255,100,.06); }
.radar-bg .sqr.c { width: 730px; height: 730px; border-color: rgba(0,255,100,.04); }
.radar-bg .cross::before, .radar-bg .cross::after { content: ""; position: absolute; background: rgba(0,255,100,.10); }
.radar-bg .cross::before { left: 0; right: 0; top: var(--cy, 46%); height: 1.5px; }
.radar-bg .cross::after  { top: 0; bottom: 0; left: var(--cx, 50%); width: 1.5px; }
.radar-bg .sweep {
  position: absolute; left: var(--cx, 50%); top: var(--cy, 46%);
  width: 220vmax; height: 220vmax; margin-left: -110vmax; margin-top: -110vmax;
  background: conic-gradient(from 0deg, rgba(0,255,100,.11), rgba(0,255,100,.03) 12%, transparent 26%);
  animation: rr-sweep 7s linear infinite;
}
.radar-bg .glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--cx, 50%) var(--cy, 46%), rgba(0,255,100,.07), transparent 42%);
}
.radar-bg .blips { position: absolute; inset: 0; }
.rr-blip { position: absolute; display: block; }
@keyframes rr-sweep { to { transform: rotate(360deg); } }
@keyframes rr-blip {
  0% { opacity: 0; transform: scale(.5); }
  25% { opacity: .5; transform: scale(1); }
  70% { opacity: .4; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .radar-bg .sweep, .rr-blip { animation: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  /* pull up under the (sticky, transparent) header so the radar runs behind
     the logo and menu; pad the top back so content clears the header */
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + var(--s-24) + 14px) calc(var(--s-24) + 18px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .container { text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  padding: var(--s-2) var(--s-6);
  background: var(--bg-elev);
  margin-bottom: var(--s-12);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  flex: none;
  position: relative;
  top: -1px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2.8s ease-in-out infinite;
}
@keyframes blink {
  0%, 38% {
    opacity: 1;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
  }
  46%, 50% {
    opacity: 0.42;
    background: var(--green);
    box-shadow: 0 0 5px var(--green);
  }
  54%, 88% {
    opacity: 1;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
  }
  96%, 100% {
    opacity: 0.42;
    background: var(--red);
    box-shadow: 0 0 5px var(--red);
  }
}

.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: var(--s-8);
  text-shadow: 0 0 18px rgba(0,255,100,0.18);
}
.hero-title-main,
.hero-title-sub {
  display: block;
}
/* keep each sentence whole: both fit on one line on wide screens, but when space
   is tight they wrap sentence-by-sentence instead of breaking mid-phrase */
.hero-title-main .ht-line { white-space: nowrap; }
.hero-title-sub {
  margin-top: var(--s-2);
}
.hero-sub {
  max-width: 900px;
  margin: 0 auto var(--s-16);
  color: var(--text-muted);
  font-size: var(--fs-body);
}
.hero-actions {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}
.hero-platforms {
  display: inline-flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6);
  justify-content: center; align-items: center;
  margin-bottom: var(--s-16);
  font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em;
}
.hero-platforms .hp-soon { color: var(--text-dim); font-weight: 700; }
.hero-platforms .hp-soon::before { content: ""; }
.hero-trust {
  list-style: none;
  display: flex;
  gap: var(--s-8);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-24);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.hero-trust li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-trust svg { width: 15px; height: 15px; color: var(--green); }

/* no frame — just a green glow, radar emanates from behind it */
.toolbar-shot {
  margin: var(--s-12) auto 0;
  width: 690px; max-width: 100%;
  box-shadow: 0 0 48px rgba(0, 255, 100, 0.20), 0 0 16px rgba(0, 255, 100, 0.32);
  animation: rr-toolbar-glow 3.8s ease-in-out infinite;
}
.toolbar-shot img { display: block; width: 100%; height: auto; image-rendering: auto; }
@keyframes rr-toolbar-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 255, 100, 0.15), 0 0 10px rgba(0, 255, 100, 0.24); }
  50%      { box-shadow: 0 0 58px rgba(0, 255, 100, 0.30), 0 0 18px rgba(0, 255, 100, 0.42); }
}
@media (prefers-reduced-motion: reduce) {
  .toolbar-shot { animation: none; }
}

/* ==========================================================================
   Feature grid — each card is a "metre module"
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.feature-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.feature-card .vtab { grid-row: 1 / -1; }
.feature-card .feature-body { padding: var(--s-6); }
/* icon + title sit together on a row at the top */
.feature-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.feature-icon {
  width: 34px; height: 34px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);   /* clean single rectangle, even 8px gap */
  background: var(--bg-elev-2);
  color: var(--green);
}
.feature-icon svg { width: 16px; height: 16px; }
.feature-card h3 { font-size: var(--fs-h3); color: var(--text); margin: 0; line-height: 1.1; }
.feature-card p { color: var(--text-muted); font-size: var(--fs-small); }
.feature-card:hover { background: var(--bg-elev-2); }

/* tint each card's icon to its metric tab (the vtab already provides the
   left colour strip, so no extra border accent — keeps corners square) */
.feature-card:has(.vtab[data-accent="orange"]) .feature-icon { color: var(--orange); }
.feature-card:has(.vtab[data-accent="red"])    .feature-icon { color: var(--red); }
.feature-card:has(.vtab[data-accent="blue"])   .feature-icon { color: var(--blue); }
.feature-card:has(.vtab[data-accent="purple"]) .feature-icon { color: var(--purple); }
.feature-card:has(.vtab[data-accent="yellow"]) .feature-icon { color: var(--yellow); }

/* AI band */
.ai-band {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-top: var(--s-16);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow: none;
  padding: 0;
}
.ai-band-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-orientation: mixed;
  align-self: stretch;
  background: var(--red);
  color: #1a0000;
  border-right: 1px solid var(--bevel-lo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: var(--s-6) var(--s-2);
  text-transform: uppercase;
  user-select: none;
  grid-row: 1 / span 2;
}
.ai-band-text { display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr); gap: var(--s-8); align-items: start; padding: var(--s-8); }
.ai-band-text h3,
.ai-band-text .lead { grid-column: 1; }
.ai-band-text .feature-list { grid-column: 2; grid-row: 1 / span 2; }
.ai-band h3 { font-size: var(--fs-h2); margin-block: var(--s-3) var(--s-4); }
.ai-band .lead { position: relative; top: -3px; color: var(--text-muted); font-size: var(--fs-small); line-height: 1.6; margin-bottom: 0; }
.feature-list { list-style: none; display: grid; gap: var(--s-4); }
.feature-list li { display: grid; grid-template-columns: 16px 1fr; gap: var(--s-4); align-items: start; }
.feature-list svg { width: 14px; height: 14px; color: var(--green); margin-top: 3px; }
.feature-list strong { display: block; color: var(--text); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.04em; }
.feature-list span { font-size: var(--fs-small); color: var(--text-muted); }

/* ==========================================================================
   Screenshots
   ========================================================================== */
/* Thumbnail trigger — real thumbnail size, cover-cropped, square, with a
   hairline-on-hover affordance matching the toolbar skin. */
.shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: var(--bevel-lo);
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.shot-btn img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.shot-btn:hover,
.shot-btn:focus-visible { border-color: var(--green); outline: none; }
.gal-cap { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--text-muted); text-align: center; line-height: 1.35; }
.gal-cap strong { color: var(--green); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }

/* Radar reticle grid — corner brackets and a magnifier reveal on hover */
.gal-reticle { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-6); }
.gal-reticle .br { position: absolute; width: 10px; height: 10px; border: 0 solid var(--border-strong); pointer-events: none; transition: border-color var(--dur) var(--ease); }
.gal-reticle .br.tl { top: 2px; left: 2px; border-top-width: 2px; border-left-width: 2px; }
.gal-reticle .br.tr { top: 2px; right: 2px; border-top-width: 2px; border-right-width: 2px; }
.gal-reticle .br.bl { bottom: 2px; left: 2px; border-bottom-width: 2px; border-left-width: 2px; }
.gal-reticle .br.brr { bottom: 2px; right: 2px; border-bottom-width: 2px; border-right-width: 2px; }
/* radar sweep: a bright leading line trailing a translucent green wash over the
   area it has just passed (echoes the hero radar sweep) */
.gal-reticle .scan {
  position: absolute; left: 0; right: 0; top: -46px; height: 46px;
  background: linear-gradient(to bottom, rgba(0, 255, 100, 0) 0%, rgba(0, 255, 100, 0.16) 80%, rgba(0, 255, 100, 0.28) 100%);
  border-bottom: 2px solid var(--green);
  box-shadow: 0 0 10px rgba(0, 255, 100, 0.45);
  opacity: 0; pointer-events: none;
}
.gal-reticle .shot-btn:hover .scan,
.gal-reticle .shot-btn:focus-visible .scan { opacity: 1; animation: gal-scan 1.4s linear infinite; }
.gal-reticle .shot-btn:hover .br,
.gal-reticle .shot-btn:focus-visible .br { border-color: var(--green); }
@keyframes gal-scan { 0% { top: -46px; } 100% { top: 100%; } }
/* reduced motion: hold a static wash band instead of sweeping */
@media (prefers-reduced-motion: reduce) {
  .gal-reticle .shot-btn:hover .scan,
  .gal-reticle .shot-btn:focus-visible .scan { animation: none; top: 40%; }
}

/* Screenshot lightbox — fills the viewport, image scaled as large as it fits */
html.lb-open { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 3, 0.93);
}
.lightbox[hidden] { display: none; }
.lb-img {
  display: block;
  max-width: 94vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
}
.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lb-btn:hover { color: var(--green); border-color: var(--green); background: var(--bg-elev-2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: var(--s-8); right: var(--s-8); }
.lb-prev { left: var(--s-8); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--s-8); top: 50%; transform: translateY(-50%); }
.lb-caption {
  position: absolute;
  left: 50%;
  bottom: var(--s-8);
  transform: translateX(-50%);
  max-width: 90vw;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  padding: var(--s-2) var(--s-6);
}
@media (max-width: 640px) {
  .lb-btn { width: 40px; height: 40px; }
  .lb-btn svg { width: 20px; height: 20px; }
  .lb-close { top: var(--s-4); right: var(--s-4); }
  .lb-prev { left: var(--s-4); }
  .lb-next { right: var(--s-4); }
  .lb-img { max-width: 96vw; max-height: 86vh; }
  .lb-caption {
    box-sizing: border-box;
    max-width: calc(100vw - var(--s-8));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lightbox.lb-slide-next .lb-img { animation: lb-slide-next 180ms ease-out; }
  .lightbox.lb-slide-prev .lb-img { animation: lb-slide-prev 180ms ease-out; }
  @keyframes lb-slide-next {
    from { opacity: 0.72; transform: translateX(22px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes lb-slide-prev {
    from { opacity: 0.72; transform: translateX(-22px); }
    to { opacity: 1; transform: translateX(0); }
  }
}

@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .lightbox.lb-slide-next .lb-img,
  .lightbox.lb-slide-prev .lb-img { animation: none; }
}

/* ==========================================================================
   Privacy
   ========================================================================== */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.privacy-item {
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  padding: var(--s-8);
  padding-left: calc(var(--s-8) + 8px);     /* room for the bar + even gap */
  box-shadow: none;
}
/* rectangular accent bar (no mitred corner like a thick border-left) */
.privacy-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 8px;
  background: var(--green);
}
.privacy-item:nth-child(2)::before { background: var(--yellow); }
.privacy-item:nth-child(3)::before { background: var(--orange); }
.privacy-item:nth-child(4)::before { background: var(--red); }
.privacy-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.privacy-item:nth-child(2) .feature-icon { color: var(--yellow); }
.privacy-item:nth-child(3) .feature-icon { color: var(--orange); }
.privacy-item:nth-child(4) .feature-icon { color: var(--red); }
.privacy-item h3 {
  font-size: var(--fs-h3);
  margin: 0;
  color: var(--text);
  line-height: 1.1;
}
.privacy-item p { color: var(--text-muted); font-size: var(--fs-small); }
.privacy-cta { text-align: center; margin-top: var(--s-12); }

/* ==========================================================================
   Downloads
   ========================================================================== */
.download-card {
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow: none;
}

/* platform tabs */
.dl-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--border-strong); }
.dl-tab {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: var(--s-6) var(--s-8);
  background: var(--bg-elev-2); color: var(--text-muted);
  border: none; border-right: 1px solid var(--border);
  cursor: pointer;
}
.dl-tab svg { width: 16px; height: 16px; }
.dl-tab:hover { color: var(--text); }
.dl-tab.is-active { background: var(--bg-elev); color: var(--green); box-shadow: inset 0 -2px 0 var(--green); }
.dl-soon { font-size: 0.58rem; padding: 1px 4px; border: 1px solid var(--border-strong); color: var(--text-dim); letter-spacing: 0.08em; }
.dl-tab.is-active .dl-soon { color: var(--text-muted); }

.dl-panel { padding: var(--s-12); }
.dl-panel[hidden] { display: none; }
.dl-panel--soon { padding: var(--s-24) var(--s-12); }
.dl-soon-card { max-width: 620px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-4); }
.dl-soon-card svg { width: 40px; height: 40px; color: var(--text-dim); }
.dl-soon-card h3 { font-size: var(--fs-h3); color: var(--text); margin: 0; }
.dl-soon-card p { font-size: var(--fs-small); line-height: 1.6; color: var(--text-muted); }
.dl-soon-card .btn { margin-top: var(--s-2); }

.download-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-12); align-items: stretch; }
.download-top h3 { font-size: var(--fs-h3); margin-bottom: var(--s-6); color: var(--green); }
/* Portable EXE details fill the column height to match the left side. */
.download-spec { display: flex; flex-direction: column; }
.download-spec .spec-list { flex: 1; display: grid; grid-template-columns: 100%; grid-auto-rows: 1fr; }
.download-spec .spec-list li { align-items: center; min-width: 0; }
.download-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
/* open the gap above the heading a bit, and slightly open the row gaps below,
   so the left column grows tall enough that the SmartScreen note's bottom lines
   up with the bottom of the Technical Details list on the right */
.portable-details { margin-top: var(--s-12); padding-top: 0; }
.download-note { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--s-8); margin-bottom: var(--s-8); }

/* SHA-256 / VirusTotal block — a single grid rearranged per breakpoint via grid
   areas, so the SHA value never has to share column width with the badge or the
   View Report button. Label + badge share a full-width "head" row at opposite
   ends, so the badge doesn't stretch the report column — View Report stays
   sized to its own content.
     Desktop: "head head head" over "sha copy report"
     Mobile : "head" / "sha copy" / "meta" (badge + report centred) */
.hash-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px auto;
  grid-template-areas:
    "head head head"
    "sha  copy report";
  border: 1px solid var(--border);
  background: var(--bevel-lo);
  margin-bottom: var(--s-4);
}
/* VirusTotal badge + View Report are hidden for now (kept in the markup so they
   can be switched back on). The SHA value and copy button remain. */
.hash-meta { display: none; }

.hash-label {
  grid-area: head;
  justify-self: start;
  align-self: center;
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

#sha256 {
  grid-area: sha;
  display: block;
  min-width: 0;
  padding: var(--s-4);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  word-break: break-all;
  color: var(--green);
}

.copy-btn {
  grid-area: copy;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  background: var(--bg-elev);
  color: var(--green);
  border: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
}
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn:hover { background: var(--green); color: var(--on-green); }
.copy-btn .check-icon { display: none; }
.copy-btn.is-copied .copy-icon { display: none; }
.copy-btn.is-copied .check-icon { display: block; }

.vt-badge {
  grid-area: head;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}
.vt-badge svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--green);
}

.hash-report-link {
  grid-area: report;
  justify-content: center;
  color: var(--green);
  padding: 0 var(--s-4);
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--border);
  /* drop the .btn nested inner frame so it reads like the copy button — kept
     transparent (not removed) so the keyboard focus ring still shows */
  outline-color: transparent;
}
.hash-report-link:hover {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
  outline-color: var(--green-deep);
}

.smartscreen-note { position: relative; border: 1px solid var(--orange); background: rgba(255,140,0,0.05); padding: var(--s-6); padding-left: calc(var(--s-6) + 8px); font-size: 0.72rem; color: var(--text-muted); margin-top: calc(var(--s-8) + 4px); }
.smartscreen-note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--orange); }
.smartscreen-note strong { color: var(--orange); }

.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--border); }
.spec-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border); font-size: var(--fs-small); }
.spec-list li.spec-sha-row { display: none; }
.spec-list li:last-child { border-bottom: none; }
.spec-list .k { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.72rem; }
.spec-list .v { color: var(--text); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); align-items: start; }
.faq-item {
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  box-shadow: none;
}
.faq-item summary {
  cursor: pointer;
  padding: var(--s-6);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--fs-small);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* switch box — mirrors the app settings toggle (square track, sliding knob) */
.faq-item summary::after {
  content: "";
  flex: none;
  width: 38px; height: 20px;
  border: 1px solid var(--border-strong);
  /* OFF: solid grey knob parked left (flat, no bevel) */
  background:
    linear-gradient(var(--text-dim), var(--text-dim)) 3px 50% / 13px 13px no-repeat,
    #0a0c0a;
}
.faq-item[open] summary::after {
  /* ON: solid green knob slid right (flat, no bevel/glow) */
  background:
    linear-gradient(var(--green), var(--green)) calc(100% - 3px) 50% / 13px 13px no-repeat,
    #06160d;
  border-color: var(--green-dim);
}
.faq-item[open] summary { color: var(--green); border-bottom: 1px solid var(--border); }
.faq-body { padding: var(--s-6); color: var(--text-muted); font-size: var(--fs-small); }

/* ==========================================================================
   Legal pages (privacy)
   ========================================================================== */
.header-back { margin-left: auto; padding: var(--s-4) var(--s-6); font-size: 0.82rem; }

.legal-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));   /* radar runs behind the header */
  padding-block: calc(var(--header-h) + var(--s-16)) var(--s-16);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero .slice-bar { display: inline-flex; margin: 0 0 var(--s-4); }
.legal-hero h1 { font-size: var(--fs-hero); margin: var(--s-3) 0 var(--s-4); text-shadow: 0 0 18px rgba(0,255,100,0.18); }
.legal-meta { color: var(--text-muted); font-size: var(--fs-small); }

.legal { padding-block: var(--s-24); }
.legal .container { max-width: 860px; }
.legal-lead { color: var(--text); font-size: var(--fs-body); line-height: 1.7; margin-bottom: var(--s-12); text-align: justify; text-justify: inter-word; }
.legal h2 { font-size: var(--fs-h3); color: var(--green); margin: var(--s-12) 0 var(--s-4); }
.legal p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.75; margin-bottom: var(--s-4); text-align: justify; text-justify: inter-word; }
.legal ul { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-8); }
.legal li { position: relative; padding-left: var(--s-8); color: var(--text-muted); font-size: var(--fs-small); line-height: 1.7; text-align: justify; text-justify: inter-word; }
.legal li::before { content: "\25b8"; position: absolute; left: 0; top: 0; color: var(--green); }
.legal strong { color: var(--text); }

.prose-link { color: var(--green); font-weight: 700; }
.prose-link:hover { color: var(--green-bright); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--border); background: var(--bg-elev); padding-block: var(--s-16); }
/* footer logo sits muted (grayscale) and lights up on hover/focus */
.site-footer .brand-logo { filter: grayscale(1) brightness(0.8); opacity: 0.5; transition: filter 180ms ease, opacity 180ms ease; }
.site-footer .brand:hover .brand-logo,
.site-footer .brand:focus-visible .brand-logo { filter: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .site-footer .brand-logo { transition: none; }
}
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: var(--s-12); align-items: stretch; padding-bottom: var(--s-8); border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 68ch; }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--s-4); }
.footer-nav { display: flex; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: var(--s-4) var(--s-12); align-content: start; width: 100%; }
.footer-break { display: none; }
.footer-nav a { color: var(--text-muted); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.04em; }
.footer-nav a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-6); font-size: var(--fs-small); color: var(--text-dim); }
.footer-contact a { color: var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* mirrors the main site: 960px (2-col / stack), 800px/mobile landscape nav, 640px (1-col) */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-band { gap: 0; }
  .ai-band-text { grid-template-columns: 1fr; }
  .ai-band-text h3,
  .ai-band-text .lead,
  .ai-band-text .feature-list { grid-column: auto; grid-row: auto; }
  /* stacked: the lead sits above the feature-list again, so restore its gap and
     drop the desktop-only nudge */
  .ai-band-text .lead { margin-bottom: var(--s-8); top: 0; }
  .download-top { grid-template-columns: 1fr; gap: var(--s-8); }
  /* stacked layout: Portable EXE details, then Technical details, then the
     warning box last. Flatten the left wrapper so the warning can be ordered to
     the end; the desktop 2-column layout is untouched. */
  .download-top > div:first-child { display: contents; }
  .portable-details { margin-top: 0; }
  .smartscreen-note { order: 1; margin-top: 0; }
  /* stacked: rows size to content, so labels and values aren't pushed apart by
     the 1fr row-stretch that fills the column on desktop */
  .download-spec .spec-list { grid-auto-rows: auto; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .faq-list { grid-template-columns: 1fr; }
}

@media (min-width: 641px) {
  .privacy-item p,
  .faq-body,
  .ai-band .lead,
  .smartscreen-note {
    text-align: justify;
    text-justify: inter-word;
  }
}

@media (max-width: 800px), (max-width: 900px) and (max-height: 520px) {
  .site-header .container:has(.nav-toggle) .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .nav-toggle { display: flex; }
  .site-header .container:has(.nav-toggle) .nav-toggle {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    margin-left: 0;
    transform: translateY(-50%);
  }
  .slice-bar--nav { display: none; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border-strong);
    padding: 0;
    margin-left: 0;
    transform: translateY(-150%); transition: transform var(--dur) ease;
    display: flex;
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { width: 100%; border-top: 1px solid var(--border); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a {
    display: flex; align-items: center; justify-content: flex-end; gap: var(--s-4);
    width: 100%; padding: var(--s-4) var(--gutter);
  }
  /* LED marker sits at the far right; lights green on hover or for the active section */
  .nav-led { display: block; order: 2; flex: none; width: 6px; height: 6px; background: var(--slice-off); pointer-events: none; }
  .nav-links a:hover .nav-led { background: var(--green); }
  .nav-links a.is-active .nav-led { background: var(--green); box-shadow: 0 0 7px var(--green); }
  /* contact block pinned under the links — label and email inline, right-aligned */
  .nav-links .nav-contact {
    display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-3);
    padding: var(--s-6) var(--gutter);
    background: #07110D; border-top: 1px solid var(--border-strong);
  }
  .nav-contact-label {
    font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
  }
  .nav-links .nav-contact a {
    display: inline; width: auto; padding: 0;
    color: var(--green); text-transform: none; letter-spacing: 0.02em; font-size: 0.84rem;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  :root {
    --header-h: 56px;
    --fs-h2: 1.15rem;
  }

  .brand-logo { height: 38px; }
  .nav-toggle { width: 40px; height: 40px; }
  .hero { padding-block: calc(var(--header-h) + var(--s-8)) var(--s-12); }
  .hero-eyebrow {
    font-size: 0.72rem;
    margin-bottom: var(--s-6);
  }
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: var(--s-6);
  }
  .hero-sub {
    max-width: 74ch;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: var(--s-8);
  }
  .hero-actions {
    gap: var(--s-4);
    margin-bottom: var(--s-4);
  }
  .hero-platforms {
    margin-bottom: var(--s-8);
  }
  .hero-trust {
    gap: var(--s-3) var(--s-6);
    margin-bottom: var(--s-12);
    font-size: 0.76rem;
  }
}

@media (max-width: 640px) {
  :root { --gutter: var(--s-4); }

  .feature-grid, .privacy-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .download-actions .btn { flex: 1 1 auto; }
  /* SHA-256 block restacks into three independent rows, so the value row and the
     badge/report row never compete for column width (the bug at in-between
     widths). [label] / [sha | copy] / [badge + report centred] */
  .hash-block {
    grid-template-columns: minmax(0, 1fr) 34px;
    grid-template-areas:
      "head head"
      "sha  copy"
      "meta meta";
  }
  .hash-label { justify-self: stretch; text-align: center; }
  /* .hash-meta stays hidden on mobile too (see base rule) */

  /* keep header clearance while the mobile hero stays compact */
  .hero { padding-block: calc(var(--header-h) + var(--s-8)) var(--s-16); }
  .radar-bg .rings {
    mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 46%), #000 0, #000 26%, transparent 60%);
  }

  .section-head { display: flex; flex-direction: column-reverse; align-items: center; gap: var(--s-4); text-align: center; }
  .section-head-text { display: block; width: 100%; text-align: center; }
  .section-head .eyebrow { justify-content: center; margin-bottom: var(--s-8); }
  .section-head .section-head-text > h2 + p { margin-top: var(--s-3); }

  /* stacked feature cards stay left-aligned */
  .feature-card { text-align: left; }
  .feature-head { justify-content: flex-start; }
  .feature-card p,
  .privacy-item p,
  .ai-band .lead,
  .legal-lead,
  .legal p,
  .legal li,
  .smartscreen-note {
    text-align: justify;
    text-justify: inter-word;
  }

  .dl-tabs { flex-wrap: nowrap; }
  .dl-tab {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-inline: var(--s-3);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }
  .dl-tab svg { width: 14px; height: 14px; }
  .dl-soon { display: none; }
  .hero h1 { font-size: 1.8rem; }
  .hero-actions .btn-download-option,
  .download-actions .btn-download-option {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .download-actions { justify-content: center; }
  .portable-details { text-align: center; }
  .portable-details .hash-block { display: none; }
  #sha256 {
    padding-inline: var(--s-2);
    font-size: clamp(0.4rem, 2.1vw, 0.72rem);
    letter-spacing: 0;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
    word-break: normal;
  }
  .download-spec h3 { display: none; }
  .spec-list li.spec-sha-row { display: flex; }
  /* The SHA row matches the other stacked rows: no boxed sub-frame, the full
     hash wraps like the file name, and the copy button sits inline beside it */
  .spec-sha-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    min-width: 0;
    max-width: 100%;
  }
  #sha256-spec {
    display: block;
    min-width: 0;
    color: var(--text);
    font-size: var(--fs-small); /* matches the other spec row values */
    line-height: 1.4;
    word-break: break-all;
    text-align: center;
  }
  /* No copy affordance on phones; the row reads as plain data like its siblings */
  .spec-sha-copy { display: none; }
  .smartscreen-note strong {
    display: block;
    margin-bottom: var(--s-2);
    text-align: left;
  }

  /* centre the footer once it collapses */
  .footer-top { text-align: center; }
  .footer-brand { max-width: none; }
  .footer-brand p { color: var(--text-dim); font-size: 0.72rem; margin-top: var(--s-6); }
  .footer-brand .brand { justify-content: center; }
  /* footer links flow side by side and wrap to fit narrow screens */
  .footer-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-6); }
  .footer-nav .footer-break {
    display: block;
    flex: 0 0 100%;
    height: 0;
    padding: 0;
  }
  .footer-bottom { justify-content: center; text-align: center; }

  /* long unbreakable values stack under their label, centered to match the
     rest of the centered download column on mobile */
  .spec-list li { flex-direction: column; align-items: center; text-align: center; gap: var(--s-1); }
}

@media (max-width: 360px) {
  #sha256 {
    font-size: 0.62rem;
    white-space: normal;
    word-break: break-all;
  }
}

/* ----- Phones only: the radar splash (hero) fills the opened browser viewport
   height exactly. svh = the height with the browser chrome visible, so the
   splash always sits fully inside the screen it opens in. Tablet and desktop
   splash heights are intentionally left as-is. ----- */
@media (max-width: 640px) {
  .hero {
    min-height: 100vh;    /* fallback for older mobile browsers */
    min-height: 100svh;
    display: flex;
    align-items: flex-start;   /* content sits just under the header instead of
                                  floating mid-screen with a big gap above it;
                                  the radar fills the space below */
    padding-block: calc(var(--header-h) + var(--s-12)) var(--s-16);
  }
  .hero > .container { width: 100%; }
}
/* phones in landscape (incl. large iPhones up to 932px wide); tablets are
   excluded by the short max-height, desktops by pointer: coarse */
@media (orientation: landscape) and (max-width: 932px) and (max-height: 520px) and (pointer: coarse) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
  }
  .hero > .container { width: 100%; }
}
