/* ==========================================================================================
   MacroForge website · styles.css
   Studio theme: the website's own token block, values copied from the Forge design kit v0.1.0
   (src/styles/tokens.css + the MacroForge purple accent). The kit is never imported: this file is
   self-contained. House rules kept from the kit: no borders (a surface is one step up the
   background ladder, depth comes from shadows, rings are inset box-shadows), every tint written
   rgb(var(--x-rgb) / a), no green hue (OK = cool teal dot), system fonts only.
   No colour literal outside :root.
   ========================================================================================== */
:root {
  color-scheme: dark;

  /* Accent (MacroForge purple, see src/styles/app.css) */
  --accent-rgb: 192 132 252;
  --accent: #C084FC;
  --on-accent: #1A0B2E;
  --ink: 255 255 255;
  --accent-h: color-mix(in srgb, var(--accent) 76%, rgb(var(--ink)));
  --accent-text: color-mix(in srgb, var(--accent) 66%, rgb(var(--ink)));

  /* Background ladder, darkest -> lightest */
  --stage: #05070D;  --stage-rgb: 5 7 13;
  --bg: #090C15;     --bg-rgb: 9 12 21;
  --chrome: #0D111D; --chrome-rgb: 13 17 29;
  --bg2: #111624;    --bg2-rgb: 17 22 36;
  --bg3: #161C2D;    --bg3-rgb: 22 28 45;
  --bg4: #1D2438;
  --scroll: #283049; --scroll-h: #3A4466;

  /* Text */
  --text: #EDF2FA;
  --text2: #AAB4CC;
  --muted: #7A85A3;
  --muted2: #5B6584;

  /* States (no green) */
  --ok: #3FD0C9;     --ok-rgb: 63 208 201;
  --warn: #F5A524;   --warn-rgb: 245 165 36;
  --danger: #F43F5E; --danger-rgb: 244 63 94;
  --info: #818CF8;   --info-rgb: 129 140 248;
  --info-text: color-mix(in srgb, var(--info) 70%, rgb(var(--ink)));
  --warn-text: color-mix(in srgb, var(--warn) 78%, rgb(var(--ink)));
  --hot: #FB923C;
  --temp-cold: #94A3C4;

  /* Entity identity marks (icons only) */
  --dev-1: #A78BFA; --dev-2: #F59E8B; --dev-3: #E879F9; --dev-4: #A5B4FC;
  --dev-5: #FBBF77; --dev-7: #93C5FD;

  /* Elevation, glass, washes */
  --shadow: rgba(0, 0, 0, .55);
  --scrim: rgba(3, 5, 10, .78);
  --surface-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  --elev-pop: 0 10px 32px var(--shadow);
  --elev-dock: 0 12px 40px var(--shadow);
  --elev-modal: 0 20px 60px var(--shadow);
  --glow-primary: 0 4px 12px rgb(var(--accent-rgb) / .30);
  --ring: inset 0 0 0 1px rgb(var(--ink) / .06);
  --glass: color-mix(in srgb, var(--chrome) 82%, transparent);
  --glass-blur: blur(14px) saturate(1.2);
  --edge-topbar: linear-gradient(90deg, rgb(var(--accent-rgb) / .55), rgb(var(--accent-rgb) / .12) 35%, transparent 70%);
  --wash-stage: radial-gradient(60% 55% at 50% 42%, rgb(var(--accent-rgb) / .06), transparent 72%);
  --wash-hero: radial-gradient(70% 60% at 70% 0%, rgb(var(--accent-rgb) / .10), transparent 70%);
  --focus-ring: 0 0 0 2px var(--accent);

  /* Type (system fonts only, nothing to load) */
  --font-ui: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI Variable Display', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Mono', 'Cascadia Code', Consolas, ui-monospace, monospace;

  /* Radii (kit) */
  --r-xs: 4px; --r-chip: 7px; --r-row: 8px; --r-ctl: 10px; --r-card: 12px; --r-dialog: 18px; --r-pill: 20px;

  /* Layout */
  --wrap: 1240px;
  --gutter: 24px;
  --h-title: 56px;
  --t-ctl: .12s; --t-btn: .15s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--h-title) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text2);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--text); }
code, .mono { font-family: var(--font-mono); font-size: .88em; }
code { background: rgb(var(--ink) / .06); color: var(--text); padding: 1px 6px; border-radius: var(--r-xs); overflow-wrap: anywhere; }
h1, h2, h3, h4 { color: var(--text); margin: 0; font-family: var(--font-display); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-chip); }
::selection { background: rgb(var(--accent-rgb) / .30); color: var(--text); }
html { scrollbar-color: var(--scroll) var(--bg); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: var(--r-ctl); font-weight: 600; }
.skip:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Micro labels, chips, dots (inspector grammar) ---------- */
.micro {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.micro .ico { width: 26px; height: 26px; border-radius: var(--r-chip); display: inline-grid; place-items: center; background: rgb(var(--accent-rgb) / .12); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; }
.dot.warn { background: var(--warn); }
.dot.info { background: var(--info); }
.dot.danger { background: var(--danger); transform: rotate(45deg); border-radius: 1px; }
.dot.ring { background: transparent; box-shadow: inset 0 0 0 1.5px var(--info); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 11px; border-radius: var(--r-chip);
  background: rgb(var(--ink) / .05); color: var(--text2);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.chip.accent { background: rgb(var(--accent-rgb) / .12); color: var(--accent-text); }
.chip.next { background: rgb(var(--info-rgb) / .16); color: var(--info-text); }
.chip.warn { background: rgb(var(--warn-rgb) / .12); color: var(--warn-text); }
.chip.multi { white-space: normal; height: auto; min-height: 28px; padding: 5px 11px; line-height: 1.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-ctl);
  font: 600 14px/1 var(--font-ui); cursor: pointer; border: 0;
  transition: background var(--t-btn), box-shadow var(--t-btn), color var(--t-btn);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--glow-primary); }
.btn-primary:hover { background: var(--accent-h); }
.btn-primary:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-text); }
.btn-soft { background: rgb(var(--ink) / .06); color: var(--text); }
.btn-soft:hover { background: rgb(var(--ink) / .11); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

/* ---------- Title bar (the app's chrome) ---------- */
.titlebar {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.titlebar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--edge-topbar); }
.titlebar .wrap { display: flex; align-items: center; gap: 18px; height: var(--h-title); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.logo { color: var(--accent); display: inline-flex; }
.logo .dotc { stroke: var(--accent-text); }
.brand-name { font: 600 17px/1 var(--font-display); letter-spacing: -.005em; }
.version.pill {
  font: 600 10.5px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted);
  background: rgb(var(--ink) / .06); padding: 5px 7px; border-radius: var(--r-xs);
}
.tabs { display: flex; align-items: stretch; height: 100%; margin-left: 8px; flex: 1; min-width: 0; }
.tabs a {
  display: inline-flex; align-items: center; padding: 0 12px; color: var(--text2);
  font-size: 14px; font-weight: 500; white-space: nowrap; transition: color var(--t-ctl), box-shadow var(--t-ctl);
}
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="true"] { color: var(--accent-text); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs a:focus-visible { border-radius: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: rgb(var(--ink) / .05); border-radius: var(--r-ctl); flex: none; }
.seg button {
  font: 600 12px/1 var(--font-ui); letter-spacing: .04em; color: var(--muted);
  background: transparent; border: 0; height: 28px; padding: 0 10px; border-radius: var(--r-chip); cursor: pointer;
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: rgb(var(--accent-rgb) / .16); color: var(--accent-text); }
.titlebar .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: 104px 0; }
.sec:not(.band) + .sec:not(.band) { padding-top: 24px; }
.sec.band { background: var(--chrome); }
.sec-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; margin: 16px 0 16px; letter-spacing: -.02em; }
.micro .chip { text-transform: none; letter-spacing: 0; font-size: 12px; height: 24px; margin-left: 4px; }
.sec-head { max-width: 780px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; margin: 16px 0 16px; letter-spacing: -.02em; }
.sec-head .lead { font-size: 17.5px; color: var(--text2); }
.sec-head .lead + .lead { margin-top: 12px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; background: var(--wash-hero); }
.hero-top { display: grid; grid-template-columns: 1.12fr 1fr; gap: 56px; align-items: end; }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -.03em;
  margin-top: 18px; text-wrap: balance;
}
.hero h1 .emphasis { color: var(--accent); }
.hero h1 .dots { color: var(--muted2); }
.hero h1 u { text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: rgb(var(--accent-rgb) / .55); }
.hero-sub { font-size: 20px; color: var(--text); margin-top: 20px; line-height: 1.45; }
.hero-sub .soft { color: var(--accent-text); }
.hero-lead { font-size: 16.5px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 22px; }
.shot.hero-shot { margin-top: 52px; }
.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.app-version { font: 600 12px/1 var(--font-mono); color: var(--text); background: rgb(var(--ink) / .06); padding: 5px 8px; border-radius: var(--r-xs); }

/* ---------- Status strip (the app's status bar) ---------- */
.statusbar {
  margin-top: 22px; background: var(--chrome); border-radius: var(--r-card); box-shadow: var(--ring);
  display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 12px 18px; list-style: none;
  font-size: 13.5px;
}
.statusbar li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.statusbar .k { color: var(--muted); }
.statusbar .v { color: var(--text); font-weight: 500; }

/* ---------- Screenshots ---------- */
.shot { margin: 0; }
.shot .frame {
  display: block; position: relative; background: var(--stage); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--elev-dock), var(--ring); cursor: zoom-in;
}
.shot .frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--ring); pointer-events: none; }
.shot .frame:focus-visible { box-shadow: var(--elev-dock), 0 0 0 2px var(--accent); }
.shot img { width: 100%; height: auto; }
.shot.card-crop .frame { background: var(--bg2); max-width: 380px; }
.shot.card-crop.wide .frame { max-width: 420px; }
.shot figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); max-width: 72ch; }
.shot figcaption .chip { height: 22px; font-size: 11.5px; padding: 0 8px; margin-right: 2px; vertical-align: 1px; }
.shot.tall .frame { max-height: 660px; }
.shot.tall .frame img { object-fit: cover; object-position: top; }
.shot.tall .frame::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, var(--bg2));
}
.stage-wash { position: relative; }
.stage-wash::before { content: ""; position: absolute; inset: -40px 0; background: var(--wash-stage); pointer-events: none; z-index: -1; }

/* ---------- Two-column rows ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.row.flip > :first-child { order: 2; }
.row.top { align-items: start; }
.row.wm { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 44px; }
.row.wm.flip { grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); }
.row.wm.even { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.row + .row { margin-top: 72px; }
.row-copy h3 { font-size: 22px; line-height: 1.25; margin-bottom: 12px; font-weight: 650; }
.row-copy p + p { margin-top: 12px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.pair + .row, .row + .pair, .pair + .grid, .shot + .grid, .grid + .shot, .grid + .row, .row + .grid, .shot + .row { margin-top: 56px; }

/* Bullet list with accent ticks */
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
/* The kit forbids borders on surfaces; the check mark above is a glyph drawn with strokes, not a surface edge. */

/* ---------- Cards (inspector cards on --bg3) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--bg2); border-radius: var(--r-card); padding: 20px 20px 22px; box-shadow: var(--surface-shadow), var(--ring);
}
.band .card { background: var(--bg3); }
.card h3 { font-size: 16px; font-weight: 600; margin: 14px 0 8px; line-height: 1.3; }
.card p { font-size: 14.5px; line-height: 1.55; }
.card .ico { width: 34px; height: 34px; border-radius: var(--r-ctl); display: grid; place-items: center; background: rgb(var(--ink) / .06); color: var(--text); }
.card .ico.c1 { color: var(--dev-1); } .card .ico.c2 { color: var(--dev-2); } .card .ico.c3 { color: var(--dev-3); }
.card .ico.c4 { color: var(--dev-4); } .card .ico.c5 { color: var(--dev-5); } .card .ico.c7 { color: var(--dev-7); }
.card .ico.ac { color: var(--accent); background: rgb(var(--accent-rgb) / .12); }
.card .ico.inf { color: var(--info); background: rgb(var(--info-rgb) / .14); }
.card .ico.wr { color: var(--warn); background: rgb(var(--warn-rgb) / .12); }

/* Inspector-style key/value list */
.kv { list-style: none; display: grid; gap: 2px; margin-top: 20px; background: var(--bg2); border-radius: var(--r-card); padding: 8px; box-shadow: var(--ring); }
.band .kv { background: var(--bg3); }
.kv li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 12px; border-radius: var(--r-row); font-size: 14.5px; line-height: 1.5; }
.kv li:hover { background: rgb(var(--ink) / .03); }
.kv .k { color: var(--text); font-weight: 600; }

/* ---------- BREEZE chart card ---------- */
.breeze-viz { background: var(--bg2); border-radius: var(--r-card); padding: 18px 18px 14px; box-shadow: var(--elev-dock), var(--ring); }
.breeze-viz .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.breeze-viz .head b { color: var(--text); font-weight: 600; font-size: 14px; }
.breeze-viz svg { width: 100%; height: auto; display: block; background: var(--stage); border-radius: var(--r-row); }
.breeze-viz .grid-l { stroke: rgb(var(--ink) / .07); stroke-width: 1; }
.breeze-viz .axis { stroke: rgb(var(--ink) / .18); stroke-width: 1; }
.breeze-viz .temp { fill: none; stroke: var(--hot); stroke-width: 2; stroke-dasharray: 5 5; }
.breeze-viz .fan { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.breeze-viz .area { fill: rgb(var(--accent-rgb) / .08); }
.breeze-viz .lbl { fill: var(--muted2); font: 500 10px var(--font-mono); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 18px; height: 0; border-top: 2px dashed var(--hot); }
.legend .sw.fan { border-top: 2.6px solid var(--accent); }
.foot-note { margin-top: 14px; font: 500 12.5px/1.5 var(--font-mono); color: var(--muted); }
.breeze-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.row .breeze-stack .shot.card-crop { max-width: none; justify-self: stretch; }
.breeze-stack .shot.card-crop .frame { max-width: 346px; }
.breeze-stack .shot.card-crop figcaption { max-width: 346px; }
#breeze.sec { padding-top: 72px; }
#breeze .row { align-items: start; }
@media (min-width: 1021px) { #breeze .row-copy { position: sticky; top: calc(var(--h-title) + 32px); } }

/* ---------- Sentinel ---------- */
.sentinel { background: var(--chrome); overflow: hidden; }
.sentinel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 85% 10%, rgb(var(--info-rgb) / .10), transparent 70%); pointer-events: none; }
.sentinel .wrap { position: relative; }
.next-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgb(var(--info-rgb) / .12); color: var(--info-text); border-radius: var(--r-card);
  padding: 12px 16px; font-size: 14.5px; margin-bottom: 28px; box-shadow: inset 3px 0 0 var(--info);
}
.next-banner strong { color: var(--text); }
.sn-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: start; }
.sn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.sn-cards .card { background: var(--bg3); padding: 18px; }
.sn-cards .card h3 { margin-top: 12px; font-size: 15.5px; }
.sn-cards .card p { font-size: 14px; }
.sn-side .shot.card-crop .frame { max-width: none; }

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgb(var(--warn-rgb) / .10); border-radius: var(--r-card); padding: 14px 16px;
  font-size: 14.5px; color: var(--text2); margin-top: 22px; box-shadow: inset 3px 0 0 var(--warn);
}
.callout svg { color: var(--warn); flex: none; margin-top: 2px; }
.callout strong { color: var(--warn-text); }

/* ---------- Roadmap ---------- */
.road { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.road .col { background: var(--bg2); border-radius: var(--r-card); padding: 24px; box-shadow: var(--surface-shadow), var(--ring); }
.road .col-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.road .col-head h3 { font-size: 19px; }
.road ul:not(.chips) { list-style: none; display: grid; gap: 2px; }
.road ul:not(.chips) li { padding: 11px 12px; border-radius: var(--r-row); font-size: 14.5px; line-height: 1.5; }
.road ul:not(.chips) li:hover { background: rgb(var(--ink) / .03); }
.road li strong { display: block; margin-bottom: 2px; }
.road .smart-p { font-size: 15px; margin-bottom: 18px; }
.road .chips { margin-top: 4px; }

/* ---------- Architecture ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; position: relative; }
.tier { background: var(--bg2); border-radius: var(--r-card); padding: 18px; position: relative; box-shadow: var(--surface-shadow), var(--ring); }
.band .tier { background: var(--bg3); }
.tier .micro { font-size: 10.5px; }
.tier h3 { font-size: 16px; margin: 10px 0 6px; }
.tier p { font-size: 14px; line-height: 1.5; }
.tier .tech { margin-top: 12px; font: 500 12px/1.5 var(--font-mono); color: var(--muted); }
.tier.engine { box-shadow: var(--surface-shadow), inset 0 0 0 1px rgb(var(--accent-rgb) / .35); }
.tier:not(:last-child)::after {
  content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 2px; background: rgb(var(--accent-rgb) / .45);
}
.pipe-label { margin-top: 14px; font: 500 12.5px/1.5 var(--font-mono); color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; counter-reset: st; }
.steps .card { padding-top: 18px; }
.steps .num { font: 600 12px/1 var(--font-mono); color: var(--accent-text); background: rgb(var(--accent-rgb) / .12); border-radius: var(--r-xs); padding: 5px 7px; display: inline-block; }

/* ---------- Download ---------- */
.download-card {
  background: var(--bg2); border-radius: var(--r-dialog); padding: 40px; box-shadow: var(--elev-modal), var(--ring);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background-image: radial-gradient(80% 90% at 100% 0%, rgb(var(--accent-rgb) / .08), transparent 70%);
}
.download-card h2 { font-size: clamp(28px, 3.2vw, 38px); margin: 14px 0 12px; letter-spacing: -.02em; }
.dl-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  background: var(--bg3); border-radius: var(--r-card); padding: 18px 18px; color: var(--text2);
  box-shadow: var(--surface-shadow), inset 0 0 0 1px rgb(var(--accent-rgb) / .30);
  transition: box-shadow var(--t-btn), background var(--t-btn);
}
.dl-tile:hover { text-decoration: none; background: color-mix(in srgb, var(--bg3) 92%, var(--accent)); }
.dl-tile .dl-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgb(var(--accent-rgb) / .12); color: var(--accent); }
.dl-tile .dl-title { color: var(--text); font-weight: 600; font-size: 16px; }
.dl-tile .dl-sub { font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.dl-tile .btn { pointer-events: none; }
.dl-notes { list-style: none; display: grid; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.dl-notes li { display: flex; gap: 10px; align-items: baseline; }
.dl-notes .dot { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.footer { background: var(--chrome); padding: 56px 0 28px; margin-top: 48px; position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--edge-topbar); }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.5fr; gap: 40px; }
.footer h3 { font: 600 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer p, .footer li { font-size: 14px; line-height: 1.6; }
.footer ul { list-style: none; display: grid; gap: 2px; }
.footer ul a { display: inline-block; padding-block: 3px; }
.footer a { color: var(--text2); }
.footer a:hover { color: var(--text); }
.footer .tag { margin-top: 12px; }
.foot-bottom { margin-top: 40px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); box-shadow: inset 0 1px 0 rgb(var(--ink) / .06); }

/* ---------- Lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; color: var(--text2);
}
dialog.lightbox::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox .lb-inner { background: var(--bg2); border-radius: var(--r-dialog); padding: 12px; box-shadow: var(--elev-modal), var(--ring); }
.lightbox img { max-width: calc(96vw - 24px); max-height: calc(94vh - 92px); width: auto; height: auto; border-radius: var(--r-card); background: var(--stage); }
.lightbox .lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 4px 2px; }
.lightbox .lb-cap { font-size: 14px; color: var(--text2); }
.lightbox .lb-cap .chip { height: 22px; font-size: 11.5px; padding: 0 8px; margin-right: 2px; vertical-align: 1px; }
.lightbox .lb-close { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .titlebar .wrap { gap: 10px; }
  .titlebar .version.pill { display: none; }
  .tabs { margin-left: 0; }
  .tabs a { padding: 0 7px; font-size: 13.5px; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  :root { --gutter: 20px; }
  .titlebar .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; gap: 10px 14px; }
  .titlebar .spacer { flex: 1; }
  .tabs { order: 5; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 12px); height: 42px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 0 12px; font-size: 14px; }
  .titlebar .version.pill { display: inline-block; }
  html { scroll-padding-top: 124px; }
  .hero-top, .row, .row.wm, .row.wm.flip, .row.wm.even, .sn-grid, .road, .download-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row.flip > :first-child { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier:not(:last-child)::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :last-child { grid-column: 1 / -1; }
  .sn-side { max-width: 460px; }
  .shot.tall .frame { max-height: 560px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15.5px; }
  .titlebar .btn .lbl-long { display: none; }
  .titlebar .version.pill { display: none; }
  .sec { padding: 72px 0; }
  .sec:not(.band) + .sec:not(.band) { padding-top: 16px; }
  .hero { padding-top: 44px; }
  .hero-sub { font-size: 18px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .grid, .grid.g2, .grid.g4, .pair, .sn-cards, .tiers, .steps, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .breeze-stack .shot.card-crop .frame, .breeze-stack .shot.card-crop figcaption { max-width: none; }
  .kv li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .download-card { padding: 24px 18px; }
  .dl-tile { grid-template-columns: auto minmax(0, 1fr); }
  .dl-tile .btn { grid-column: 1 / -1; width: 100%; }
  .statusbar { gap: 8px 18px; padding: 12px 14px; }
  .statusbar li { white-space: normal; }
  .chip { white-space: normal; height: auto; min-height: 28px; padding: 5px 11px; line-height: 1.35; }
  .shot.card-crop .frame, .shot.card-crop.wide .frame { max-width: none; }
  .row + .row { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Media cards (a card crop on top, text below) ---------- */
.media-card { background: var(--bg2); border-radius: var(--r-card); box-shadow: var(--surface-shadow), var(--ring); padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.media-card .shot .frame { box-shadow: var(--ring); margin: 0 auto; max-width: 346px; }
.media-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.media-card p { font-size: 15px; }
.row .shot.card-crop { justify-self: center; width: 100%; max-width: 380px; }

/* ==========================================================================================
   MacroForge additions (same tokens, same rules).
   ========================================================================================== */
.card .ico.c6 { color: var(--warn); background: rgb(var(--warn-rgb) / .12); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split .sec-head { margin-bottom: 18px; }
.card svg.tl { display: block; width: 100%; height: auto; margin-top: 14px; color: var(--text2); }
.card svg.tl .acc { color: var(--accent); }
@media (max-width: 1020px) {
  .split, .split.rev { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .split.rev > figure { order: 2; }
}
