/* ============================================================================
   duskminecraft.com

   Inherits DESIGN.md wholesale. Every colour, radius and type role below is the
   app's own token, copied by value because the site is a separate document that
   cannot import the app's :root.

   SITE-SCOPED EXPANSIONS, permitted here and nowhere in the app:
     1. A display type tier (the app caps at 25px; a hero needs 60).
     2. A measured ground: one flat plane plus a masked hairline grid. NOT
        accent atmosphere, which is decoration and which the Single Hue Rule
        forbids. See WEBSITE-SPEC.md 3.2.
     3. Full-bleed captured imagery.

   DELIBERATE DIVERGENCES, both site-only:
     - Media queries exist here. The app's Container Decides Rule is an app
       rule; this site needs real breakpoints because at 900px the hero swaps
       a live application for stills, which is a content change, not a reflow.
     - Single-theme dark, by choice. The app ships a Light preset, but this page
       is a photograph of a dark instrument and a light ground would
       misrepresent every contrast relationship a visitor is asked to judge.

   Every place the site shows the MENU it embeds the real hud.html (see .hudview
   and js/site.js), so no menu chrome is reproduced here and none of it can
   drift from the shipped product. The single exception is the detectability
   preview (.d-meter, below): a site widget grading one worked example, because
   the real meter is a 34px strip and cropping it onto a page this wide showed a
   sliver of a thing rather than the thing. Site-only classes are d- prefixed.
   ========================================================================= */

:root {
  --accent: #7222B4;
  --accent-wash: rgba(114, 34, 180, .14);
  --signal: #2E7FE0;

  --bg0: #131313;
  --bg1: #1a1a1b;
  --bg2: #232325;
  --bg3: #2d2d2f;

  --stroke: #2f2f32;
  --stroke2: #3b3b40;

  --text: #ececee;
  --dim: #a4a4ad;
  --faint: #74747e;

  --ok: #57d98a;
  --bad: #ff5566;
  --warn: #e0b24a;

  /* One step below ink page, so the page reads as the surface the application
     is resting on rather than as more application. */
  --ground: #0e0e0f;

  --r-chip: 4px;
  --r-ctrl: 6px;
  --r-group: 8px;
  --r-pill: 999px;

  --font: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: Consolas, "Cascadia Mono", "Courier New", monospace;

  --t-hero: clamp(34px, 5.4vw, 60px);
  --t-sect: clamp(26px, 3.3vw, 40px);
  --t-lead: clamp(15.5px, 1.25vw, 17.5px);

  --pad: 24px;
  --max: 1180px;
  --sect: clamp(64px, 8vh, 104px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-ctrl); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--bg2); color: var(--text); padding: 12px 18px;
  border: 1px solid var(--accent); border-radius: var(--r-ctrl);
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- ground -- */
.ground {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(64% 72% at 72% 44%, #000 0%, rgba(0, 0, 0, .32) 54%, transparent 80%);
  mask-image: radial-gradient(64% 72% at 72% 44%, #000 0%, rgba(0, 0, 0, .32) 54%, transparent 80%);
}
.shade {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent 20%);
}

/* ---------------------------------------------------------------- header -- */
.nav {
  position: sticky; top: 0; z-index: 40;
  height: 62px; display: flex; align-items: center; padding-left: var(--pad);
  background: var(--bg2); border-bottom: 1px solid var(--stroke);
}
/* line-height:1 is load bearing: the inherited 1.5 makes the wordmark's box
   taller than its glyphs, so centring the box floats the mark visibly high. */
.brand { display: inline-flex; align-items: center; gap: 9px; line-height: 1; text-decoration: none; flex: 0 0 auto; }
.moon { width: 20px; height: 20px; color: var(--accent); display: block; flex: 0 0 auto; }
.wordmark { display: block; font-size: 20px; font-weight: 650; letter-spacing: .2px; line-height: 1; }

.navlinks { display: flex; gap: 28px; margin-left: 44px; }
.navlinks a { color: var(--dim); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .13s; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text); }
.navspacer { flex: 1; }

.navacts { display: flex; align-self: stretch; }
.navbtn {
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
  font-size: 14px; font-weight: 600; color: var(--dim);
  border-left: 1px solid var(--stroke); text-decoration: none;
  transition: color .13s, background .13s;
}
.navbtn:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.navbtn.icon { padding: 0 20px; }
.navbtn.icon svg { width: 19px; height: 19px; }
.navbtn.dl { background: var(--accent); color: #fff; border-left-color: var(--accent); padding: 0 30px; }
.navbtn.dl:hover { filter: brightness(1.1); background: var(--accent); color: #fff; }

.navtoggle {
  display: none; align-self: stretch; width: 54px; align-items: center; justify-content: center;
  background: none; border: 0; border-left: 1px solid var(--stroke); color: var(--dim); cursor: pointer;
}
.navtoggle svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--r-ctrl);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  border: 1px solid var(--stroke2); background: var(--bg0); color: var(--text);
  text-decoration: none; cursor: pointer; transition: border-color .13s, color .13s, filter .13s;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 10px 16px; font-size: 13px; }
.btn.wide { width: 100%; }

/* ------------------------------------------------------------ type roles -- */
.h1 { font-size: var(--t-hero); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin: 0; text-wrap: balance; }
.h2 { font-size: var(--t-sect); font-weight: 700; letter-spacing: -.03em; line-height: 1.07; margin: 0; text-wrap: balance; }
.lead { font-size: var(--t-lead); color: var(--dim); line-height: 1.55; margin: 20px 0 0; }
.lead b { color: var(--text); font-weight: 600; }
.prose { color: var(--dim); line-height: 1.6; max-width: 68ch; }
.prose b { color: var(--text); font-weight: 600; }
.prose a, .inline {
  color: var(--text); text-decoration: underline;
  text-decoration-color: var(--stroke2); text-underline-offset: 3px;
}
.prose a:hover, .inline:hover { text-decoration-color: var(--accent); }

.section { position: relative; padding: var(--sect) 0; }
.section + .section { border-top: 1px solid var(--stroke); }
.sect-head { max-width: 62ch; }
/* A raised band: one ink step up from the ground, so a page is not one
   uninterrupted plane from hero to footer. Use on at most two sections a page. */
.section.band { background: var(--bg0); }

/* The overline kicker above a section head. Same role as the app's overline
   tier: a micro-label, never a sentence. */
.kick {
  margin: 0 0 14px; font-size: 11.5px; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}

kbd {
  font-family: var(--mono); font-size: 11.5px; background: var(--bg0);
  border: 1px solid var(--stroke2); border-radius: var(--r-chip);
  padding: 1px 6px; color: var(--text);
}

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; overflow: hidden; }
.hero-in {
  position: relative; z-index: 2; max-width: 1392px;
  display: flex; gap: 52px; align-items: flex-start;
  padding-top: clamp(40px, 7vh, 84px); padding-bottom: clamp(36px, 5vh, 64px);
}
.hero-copy { flex: 1 1 440px; min-width: 0; max-width: 540px; padding-top: clamp(0px, 5vh, 62px); }
.hero-copy .lead { max-width: 47ch; }
/* The frame column needs a definite basis: in a flex row an auto-width child
   holding an absolutely-positioned iframe has nothing to size against, and
   would collapse. 714px is 760 at the 0.94 the hero shows the window at.
   position: relative anchors the .tryit annotation to the window. */
.hero-in > div:last-child { flex: 0 0 714px; max-width: 714px; min-width: 0; position: relative; }

/* The facts row: an icon each rather than a dot divider, so it scans as four
   specifications instead of one run-on line. */
.facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 26px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 13.5px; }
.facts svg { width: 16px; height: 16px; color: var(--faint); flex: 0 0 auto; }
.facts b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

.trust { margin-top: 26px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.trust .stat { font-size: 13.5px; color: var(--dim); line-height: 1.4; }
.trust .tn {
  font-size: 17px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-right: 5px;
}
.trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--stroke2); flex: 0 0 auto; }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* The live-menu signal. Floats off the window's bottom-left corner, in the
   hero gap, with the arrow curving up into the frame. Bottom-aligning the SVG
   with the text keeps the curve's start on the text's baseline, so the label
   and the arrow read as one gesture. */
.tryit {
  position: absolute; left: -172px; bottom: 20px; margin: 0;
  display: flex; align-items: flex-end; gap: 8px;
  color: var(--accent); font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
/* Height matches the 66x34 viewBox 1:1. A shorter box scales the drawing down
   with xMidYMid meet, which pads both sides and shifts the arrow off its gap. */
.tryit svg { width: 66px; height: 34px; flex: 0 0 auto; overflow: visible; margin-bottom: 1px; }
.tryit g { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 55% { transform: translate(5px, -4px); } }

/* ==========================================================================
   THE LIVE PRODUCT FRAMES
   A .hudview is a window onto the real hud.html. site.js sizes it, scales the
   iframe and offsets it so the wrapper shows one region: the whole window, one
   module page, or just the footer meter.
   ======================================================================= */
.hudview {
  position: relative; overflow: hidden; width: 100%;
  border: 1px solid var(--stroke2); border-radius: var(--r-group);
  background: var(--bg1);
}
/* Each crop holds its own box from first paint, so the frame arriving can never
   shift the page. site.js sets an explicit height once it has measured, which
   overrides these. */
.hudview.window { aspect-ratio: 760 / 800; }
.hudview[data-crop="stage"] { aspect-ratio: 570 / 720; }
.hudview.strip { min-height: 46px; }
.hudview iframe { position: absolute; border: 0; display: block; opacity: 0; transition: opacity .4s ease; }
.hudview.up iframe { opacity: 1; }
.hudview .skel {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: var(--faint); font-size: 12.5px; background: var(--bg1);
  transition: opacity .4s ease;
}
.hudview.up .skel { opacity: 0; pointer-events: none; }
.hudview .skel .moon { width: 26px; height: 26px; opacity: .45; }
.hudview.window {
  /* The hero: the whole application, at its true 760x800 proportions. Depth is
     a real offset contact shadow, never a coloured halo. */
  box-shadow: 0 40px 80px -26px rgba(0, 0, 0, .86), 0 8px 20px -8px rgba(0, 0, 0, .55);
  border-radius: 10px;
}
.hudview.strip { border-radius: var(--r-ctrl); }

/* A caption under a frame, naming what is on screen. */
.viewcap { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
.viewcap b { color: var(--dim); font-weight: 600; }

/* The stills that replace the frame below 900px. */
.stills { display: none; }
.stills-inner { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.stills-inner > figure {
  flex: 0 0 76%; scroll-snap-align: center; margin: 0;
  border: 1px solid var(--stroke2); border-radius: var(--r-group); overflow: hidden; background: var(--bg1);
}
.stills-inner > figure > div { aspect-ratio: 19 / 20; position: relative; }
.stills-inner figcaption { padding: 11px 13px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--stroke); }
.stills-note { display: none; margin-top: 16px; font-size: 13px; color: var(--faint); line-height: 1.55; }

/* ------------------------------------------------------------ proof row -- */
.strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke);
  background: var(--bg2); position: relative; z-index: 2;
}
.strip a {
  padding: 24px 26px; border-left: 1px solid var(--stroke);
  text-decoration: none; display: block; transition: background .13s;
}
.strip a:first-child { border-left: 0; }
.strip a:hover { background: rgba(255, 255, 255, .022); }
.strip .ico { width: 20px; height: 20px; color: var(--accent); display: block; margin-bottom: 12px; }
.strip .st { font-size: 15px; font-weight: 650; color: var(--text); display: block; }
.strip .sd { font-size: 13px; color: var(--dim); margin-top: 5px; line-height: 1.45; display: block; }

/* -------------------------------------------------------- captured media -- */
.shot {
  position: relative; overflow: hidden; border-radius: var(--r-group);
  border: 1px solid var(--stroke2); background: var(--bg1); aspect-ratio: 16 / 10;
}
.shot video, .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(114, 34, 180, .14), transparent 58%),
    linear-gradient(180deg, #101014, #08080a);
}
.plate::after {
  content: ""; position: absolute; inset: 0; opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* A capture slot names the shot it is waiting for, so a placeholder can never
   be mistaken for a shipped screenshot. */
.slot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 11.5px; color: var(--faint);
  border: 1px dashed var(--stroke2); border-radius: var(--r-ctrl);
  padding: 7px 12px; background: rgba(0, 0, 0, .4);
}
.slot svg { width: 14px; height: 14px; }

/* ==========================================================================
   OUTSIDE THE PROCESS
   Two boxes and a boundary. No status pills: a real icon carries the state.
   ======================================================================= */
.bnd { margin-top: 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.proc {
  border: 1px solid var(--stroke); border-radius: var(--r-group); background: var(--bg2);
  padding: 22px 24px;
}
.proc .top { display: flex; align-items: center; gap: 11px; }
.proc .top svg { width: 22px; height: 22px; flex: 0 0 auto; }
.proc.ours .top svg { color: var(--accent); }
.proc.theirs .top svg { color: var(--dim); }
.proc h3 { margin: 0; font-family: var(--mono); font-size: 13.5px; font-weight: 650; letter-spacing: .3px; color: var(--text); }
.proc .who { font-size: 12px; color: var(--faint); margin: 3px 0 0; }
.proc ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.proc li { display: flex; gap: 10px; font-size: 13px; color: var(--dim); line-height: 1.45; align-items: flex-start; }
.proc li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--faint); }
.proc li.no svg { color: var(--ok); }

/* The boundary: one dashed rule with the two operations crossing it. */
.boundary { position: relative; width: 168px; display: flex; align-items: center; justify-content: center; }
.boundary::before {
  content: ""; position: absolute; top: 6px; bottom: 6px; left: 50%; width: 1px;
  background: repeating-linear-gradient(180deg, var(--stroke2) 0 5px, transparent 5px 11px);
}
.ops { display: flex; flex-direction: column; gap: 34px; width: 100%; padding: 0 6px; }
.op { position: relative; }
.op .line { height: 2px; background: var(--stroke); border-radius: 2px; position: relative; }
.op .dot { position: absolute; top: -2.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.op.out .dot { animation: flowout 2.6s linear infinite; }
.op.in  .dot { animation: flowin  2.6s linear infinite; }
@keyframes flowout { from { left: calc(100% - 7px); } to { left: 0; } }
@keyframes flowin  { from { left: 0; } to { left: calc(100% - 7px); } }
.op code { display: block; font-family: var(--mono); font-size: 11px; color: var(--text); text-align: center; margin-bottom: 7px; }
.op span.what { display: block; font-size: 10.5px; color: var(--faint); text-align: center; margin-top: 6px; }

/* The .minecraft tree. Every row carries a tick, which is the state; there is
   no pill saying "unchanged" on top of it. */
.tree { margin-top: 28px; border: 1px solid var(--stroke); border-radius: var(--r-group); background: var(--bg2); overflow: hidden; }
.tree-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border-bottom: 1px solid var(--stroke); font-family: var(--mono); font-size: 12.5px; color: var(--text);
}
.tree-head svg { width: 16px; height: 16px; color: var(--faint); }
.tree ul { list-style: none; margin: 0; padding: 6px 0; }
.tree li { display: flex; align-items: center; gap: 12px; padding: 9px 18px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.tree li .verdict { margin-left: auto; font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--ok); display: flex; align-items: center; gap: 7px; }
.tree li .verdict svg { width: 14px; height: 14px; }
/* A plain annotation on a tree row. The green .verdict means "checked and
   untouched"; a description of what a file is must not borrow a status hue. */
.tree li .note { margin-left: auto; font-family: var(--font); font-size: 11.5px; color: var(--faint); }

/* ------------------------------------------------------------ two-up box -- */
.duo { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--stroke); border-radius: var(--r-group); overflow: hidden; }
.duo > div { padding: 24px 26px; }
.duo > div + div { border-left: 1px solid var(--stroke); background: var(--bg2); }
.duo h3 { margin: 0 0 11px; font-size: 15.5px; font-weight: 650; }
.duo p { margin: 0; font-size: 14px; color: var(--dim); line-height: 1.55; }
.duo p + p { margin-top: 11px; }
.duo b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ module row -- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 48px 0; }
.frow + .frow { border-top: 1px solid var(--stroke); }
.frow.flip .fmedia { order: 2; }
.fmedia { min-width: 0; }
.fcopy .cat { font-size: 12px; font-weight: 650; color: var(--accent); margin: 0 0 10px; }
.fcopy h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.fcopy > p { color: var(--dim); margin: 0; line-height: 1.6; font-size: 14.5px; }
/* A feature list. Each row is a BLOCK with the marker taken out of flow, not a
   flex line: out of flow, the row reads as one sentence with a hanging indent.
   The marker is the app's group-title accent tick, not a boxed check icon: a
   grid of identical checkmarks reads as template, and these rows are
   descriptions, not a compliance checklist. */
.flist { list-style: none; margin: 20px 0 0; padding: 0; }
.flist li {
  position: relative; padding: 11px 0 11px 26px;
  font-size: 14px; color: var(--dim); line-height: 1.55;
}
.flist li + li { border-top: 1px solid var(--stroke); }
.flist li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 12px; height: 3px; border-radius: 2px; background: var(--accent);
}
.flist li b { color: var(--text); font-weight: 600; }
.beta {
  display: inline-block; vertical-align: 2px; margin-left: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 2px 6px;
  border-radius: var(--r-pill); border: 1px solid var(--accent);
  background: var(--accent-wash); color: var(--accent);
}

/* ------------------------------------------------------- module card grid -- */
/* The icon sits in the heading line, small and unboxed: an icon tile floating
   above every card heading is the most templated shape on the modern web. */
.mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 16px; margin-top: 32px; }
.mod {
  border: 1px solid var(--stroke); border-radius: var(--r-group); background: var(--bg2);
  padding: 20px 22px 22px; display: flex; flex-direction: column;
}
.mod h3 { margin: 0 0 9px; font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.mod h3 svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; }
.mod p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.mod .does { margin-top: 12px; font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.mod .does b { color: var(--dim); font-weight: 600; }

/* --------------------------------------------------------------- meter ---- */
/* The detectability preview is the one site widget that shows a reading rather
   than the menu itself: the application's own meter is a 34px strip along the
   bottom of a 760px window, and cropped onto a page this wide it read as a
   sliver of a thing rather than as the thing. Site-only classes are d- prefixed
   per the house rule. It grades ONE worked example, so every movement on screen
   comes from the profile you picked and from nothing else. */
.d-meter {
  margin-top: 36px; border: 1px solid var(--stroke); border-radius: var(--r-group);
  background: var(--bg1); overflow: hidden;
}
.d-meter-head {
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--stroke); background: var(--bg2);
}
.d-meter-head h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.d-meter-head h3 b { color: var(--accent); font-weight: 650; }
.d-meter-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--faint); }

.d-acs { display: flex; flex-wrap: wrap; gap: 6px; }
.d-acs button {
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--dim); background: var(--bg1); border: 1px solid var(--stroke2);
  border-radius: var(--r-pill); padding: 7px 12px; cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.d-acs button:hover { color: var(--text); border-color: var(--faint); }
.d-acs button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }

.d-dials { display: grid; grid-template-columns: 1fr 1fr; }
.d-dial { display: flex; gap: 18px; align-items: center; padding: 22px 20px; min-width: 0; }
.d-dial + .d-dial { border-left: 1px solid var(--stroke); }
.d-dial h4 { margin: 0 0 5px; font-size: 14px; font-weight: 650; }
.d-dial p { margin: 0; font-size: 12.5px; color: var(--faint); line-height: 1.5; }

.d-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
.d-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.d-ring .track { stroke: var(--bg3); }
.d-ring .val {
  stroke: var(--accent); stroke-linecap: round;
  transition: stroke-dashoffset .55s cubic-bezier(.4, 0, .2, 1), stroke .3s ease;
}
/* Three columns so the SCORE is centred in the ring rather than the score and
   its "/10" being centred as a pair, which pushed the number left. The middle
   column is auto and the two rails are equal, so column 2 sits dead centre
   whatever the number's width; the suffix hangs off it in column 3 and pulls
   nothing. align-content does the vertical centring. */
.d-ring .num {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-content: center;
  font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.d-ring .num [data-score] { grid-column: 2; }
.d-ring .num small {
  grid-column: 3; justify-self: start; align-self: end;
  font-size: 11.5px; font-weight: 600; color: var(--faint); margin-left: 1px;
}

.d-verdict {
  display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 750; letter-spacing: .4px;
  text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill);
  border: 1px solid currentColor; transition: color .3s ease;
}

.d-rows {
  padding: 16px 20px 18px; border-top: 1px solid var(--stroke);
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px;
}
.d-rows .hd {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 750; letter-spacing: .4px;
  text-transform: uppercase; color: var(--faint);
}
.d-rows ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.d-rows li { display: grid; grid-template-columns: 1fr 80px 34px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); }
.d-rows .bar { height: 5px; border-radius: var(--r-pill); background: var(--bg3); overflow: hidden; }
.d-rows .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .55s cubic-bezier(.4, 0, .2, 1); }
.d-rows .n { color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .d-ring .val, .d-rows .bar i { transition: none; }
}

.pick { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pick li { display: flex; gap: 12px; font-size: 14px; color: var(--dim); line-height: 1.5; align-items: flex-start; }
.pick li svg { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.pick li b { color: var(--text); font-weight: 600; }

/* -------------------------------------------------------------- selling -- */
/* Three cards, one structure: icon, heading, copy. The first card used to carry
   an extra "$0" line, which pushed its heading a line below the other two and
   made a row of identical cards read as a mistake. The $0 is in the copy now. */
/* No cards here: three claims separated by hairlines, which is quieter and
   reads less like a template than three identical icon tiles in boxes. */
.sell { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--stroke); }
.sell > div { padding: 26px 28px 4px 0; }
.sell > div + div { border-left: 1px solid var(--stroke); padding-left: 28px; }
.sell h3 { margin: 0 0 9px; font-size: 17px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.sell h3 svg { width: 17px; height: 17px; color: var(--accent); flex: 0 0 auto; }
.sell p { margin: 0; font-size: 13.5px; color: var(--dim); line-height: 1.55; }

/* -------------------------------------------------------------- download -- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.card { border: 1px solid var(--stroke); border-radius: var(--r-group); background: var(--bg2); padding: 26px 28px; }
.card.accent { border-color: var(--accent); box-shadow: inset 0 0 0 1px rgba(114, 34, 180, .45); }
.card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 650; }
.card .sub { font-size: 13px; color: var(--faint); margin: 0 0 20px; }
.card p { color: var(--dim); font-size: 14px; line-height: 1.6; margin: 0; }

.specs { list-style: none; margin: 20px 0 0; padding: 0; }
.specs li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--stroke); font-size: 13.5px; }
.specs li:first-child { border-top: 0; }
.specs .k { color: var(--faint); flex: 0 0 108px; }
.specs .v { color: var(--text); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.specs .v.mono { font-family: var(--mono); font-weight: 650; font-size: 11.5px; }

.copybtn {
  margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 11px; font-weight: 650; color: var(--dim);
  background: var(--bg0); border: 1px solid var(--stroke2); border-radius: var(--r-ctrl);
  padding: 6px 10px; cursor: pointer; transition: border-color .13s, color .13s;
}
.copybtn:hover { border-color: var(--accent); color: var(--text); }
.copybtn svg { width: 13px; height: 13px; }
.copybtn.ok { color: var(--ok); border-color: rgba(87, 217, 138, .5); }
.copybtn.err { color: var(--bad); border-color: rgba(255, 85, 102, .5); }

.steps { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 15px 32px; font-size: 14px; color: var(--dim); line-height: 1.55; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%;
  background: var(--bg0); border: 1px solid var(--stroke2); color: var(--dim);
  font-size: 11px; font-weight: 650; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.steps li b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ walkthrough -- */
/* The guided path on How it works: an editorial numbered column, connected by
   a hairline so it reads as one journey rather than six cards. */
.walk { counter-reset: w; list-style: none; margin: 44px 0 0; padding: 0; max-width: 720px; }
.walk > li { counter-increment: w; position: relative; padding: 0 0 40px 66px; }
.walk > li:last-child { padding-bottom: 0; }
.walk > li::before {
  content: counter(w, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-size: 13px; font-weight: 650; letter-spacing: .06em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.walk > li::after {
  content: ""; position: absolute; left: 10px; top: 30px; bottom: 12px; width: 1px;
  background: var(--stroke);
}
.walk > li:last-child::after { display: none; }
.walk h3 { margin: 0 0 9px; font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.walk p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; max-width: 60ch; }
.walk p + p { margin-top: 10px; }
.walk b { color: var(--text); font-weight: 600; }
.walk .aside { margin-top: 12px; font-size: 12.5px; color: var(--faint); max-width: 56ch; }
.walk .mono-line {
  display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px;
  background: var(--bg0); border: 1px solid var(--stroke2); border-radius: var(--r-ctrl);
  padding: 10px 13px; color: var(--text);
}

.notice {
  display: flex; gap: 13px; padding: 15px 17px; margin-top: 20px;
  border: 1px solid var(--stroke2); border-radius: var(--r-ctrl); background: var(--bg0);
  font-size: 13px; color: var(--dim); line-height: 1.55;
}
.notice svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 2px; color: var(--warn); }
.notice b { color: var(--text); font-weight: 600; }

.pre {
  font-family: var(--mono); font-size: 12px; margin-top: 12px;
  background: var(--bg0); border: 1px solid var(--stroke2); border-radius: var(--r-ctrl);
  padding: 12px 14px; overflow-x: auto; color: var(--text);
}

/* ------------------------------------------------------------- read mode -- */
.claim { border: 1px solid var(--stroke); border-radius: var(--r-group); background: var(--bg2); overflow: hidden; margin-top: 26px; }
.claim > div { padding: 24px 28px; border-top: 1px solid var(--stroke); }
.claim > div:first-child { border-top: 0; }
.claim h3 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
.claim p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.6; }
.claim .how { margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--stroke2); font-size: 13px; color: var(--faint); }
.claim .how b { color: var(--dim); font-weight: 600; }
.claim code { font-family: var(--mono); font-size: 12.5px; color: var(--text); }

/* ---------------------------------------------------------------- footer -- */
.foot { border-top: 1px solid var(--stroke); background: var(--bg2); padding: 48px 0 36px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot h4 { margin: 0 0 15px; font-size: 13px; font-weight: 650; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { color: var(--dim); text-decoration: none; font-size: 14px; }
.foot a:hover { color: var(--text); }
.foot .about { font-size: 13.5px; color: var(--faint); line-height: 1.6; max-width: 46ch; margin: 15px 0 0; }
.foot .verchip {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 11px; font-weight: 650; color: var(--dim);
  border: 1px solid var(--stroke2); border-radius: var(--r-pill); padding: 4px 11px;
  font-variant-numeric: tabular-nums;
}
.foot .verchip b { color: var(--accent); }
.foot-base { border-top: 1px solid var(--stroke); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: var(--faint); }
.foot-base p { margin: 0; max-width: 78ch; line-height: 1.55; }
.foot-base b { color: var(--dim); font-weight: 600; }

/* ---------------------------------------------------------------- notice -- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(410px, calc(100vw - 40px));
  background: var(--bg2); border: 1px solid var(--stroke2); border-radius: var(--r-group);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  padding: 19px 21px; font-size: 13px; color: var(--dim); line-height: 1.55;
  transform: translateY(calc(100% + 28px)); transition: transform .3s ease;
}
.cookie.up { transform: translateY(0); }
.cookie[hidden] { display: none; }
.cookie h3 { margin: 0 0 9px; font-size: 14px; font-weight: 650; color: var(--text); }
.cookie p { margin: 0 0 8px; }
.cookie b { color: var(--text); font-weight: 600; }
.cookie .row { display: flex; gap: 10px; margin-top: 15px; }

/* --------------------------------------------------------------- reveals -- */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .op .dot { animation: none; left: calc(50% - 3.5px); }
  .tryit g { animation: none; }
  .hudview iframe, .hudview .skel { transition: none; }
}

/* ==========================================================================
   RESPONSIVE

   Three tiers, and the middle one is the tablet fix:
     > 1200   hero side by side
     900-1200 hero stacked, live frame still shown, two-up grids collapse
     < 900    live frame replaced by stills (a content switch, spec 9.5)
   ======================================================================= */

/* Laptop: the frame shrinks before the copy column has to. */
@media (max-width: 1340px) {
  .hero-in { gap: 40px; }
  .hero-in > div:last-child { flex-basis: 620px; max-width: 620px; }
  .boundary { width: 132px; }
}

/* --- TABLET / iPad landscape. The hero stacks here rather than squeezing a
   540px headline column beside a 700px window, and every two-up and three-up
   grid drops to one column so nothing is read at 280px. --- */
@media (max-width: 1200px) {
  :root { --sect: clamp(56px, 7vh, 84px); }
  .hero-in { flex-direction: column; gap: 40px; align-items: stretch; }
  .hero-copy { flex: 1 1 auto; max-width: 640px; padding-top: 4px; }
  /* Stacked: the frame gets the full measure, capped at its true width. */
  .hero-in > div:last-child { flex: 1 1 auto; max-width: 760px; }
  .tryit { display: none; }          /* the arrow points sideways at nothing once stacked */

  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip a:nth-child(3) { border-left: 0; }
  .strip a:nth-child(n+3) { border-top: 1px solid var(--stroke); }

  .bnd { grid-template-columns: 1fr; }
  .boundary { width: auto; min-height: 150px; padding: 26px 0; }
  .boundary::before { left: 50%; top: 0; bottom: 0; }
  .ops { max-width: 420px; margin: 0 auto; }

  .duo, .dl-grid { grid-template-columns: 1fr; gap: 0; }
  .duo > div + div { border-left: 0; border-top: 1px solid var(--stroke); }

  .pick { grid-template-columns: 1fr; gap: 14px; }

  .frow { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }
  .frow.flip .fmedia { order: 0; }

  .sell { grid-template-columns: 1fr; }
  .sell > div { padding: 22px 0 22px; }
  .sell > div + div { border-left: 0; border-top: 1px solid var(--stroke); padding-left: 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}

/* --- PHONE. No live frame at all: site.js never creates it, so none of the
   menu's bytes are paid for. --- */
@media (max-width: 900px) {
  :root { --pad: 18px; }
  .navlinks { display: none; }
  .navlinks.open {
    display: flex; position: absolute; top: 62px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--bg2); border-bottom: 1px solid var(--stroke);
  }
  .navlinks.open a { padding: 15px var(--pad); border-top: 1px solid var(--stroke); font-size: 15px; }
  .navtoggle { display: flex; }
  .navbtn:not(.dl):not(.icon) { display: none; }

  .hudview.window { display: none; }
  .stills { display: block; }
  .stills-note { display: block; }
  .stills-inner { margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); }

  .strip { grid-template-columns: 1fr; }
  .strip a { border-left: 0; border-top: 1px solid var(--stroke); }
  .strip a:first-child { border-top: 0; }
  .strip a:nth-child(3) { border-left: 0; }

  .mods { grid-template-columns: 1fr; }

  .d-dials, .d-rows { grid-template-columns: 1fr; }
  .d-dial + .d-dial { border-left: 0; border-top: 1px solid var(--stroke); }
  .d-meter-head { align-items: flex-start; flex-direction: column; }

  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ctas .btn { width: 100%; }
}

@media print { .nav, .cookie, .tryit { display: none; } body { background: #fff; color: #000; } }
