/* spraybooth.ai landing page — AutoCAD LT dark theme.
 *
 * The page is dressed as a CAD session: a ribbon at the top, model space in
 * the middle, a command line and status bar pinned to the bottom. The chrome
 * is decoration, but it is not arbitrary — every element is one a drafter
 * uses daily, which is the whole point. The audience opens AutoCAD before
 * they open email.
 *
 * Two rules kept the costume from eating the page:
 *
 *   1. Chrome may be authentic. Body copy may not. Model space is dark and
 *      CAD lettering is a stroke font; running 60ch paragraphs in monospace
 *      on #1b1e21 would be faithful and unreadable. Headings, labels and UI
 *      are mono; prose stays Albert Sans at AA contrast.
 *   2. Nothing decorative may take a pointer event or a screen-reader turn.
 *      Every artifact is aria-hidden with pointer-events: none.
 *
 * Colours are ACI-derived: 1 red, 2 yellow, 3 green, 4 cyan, 7 white. Pure
 * ACI values are correct for hairlines and far too hot for fills, so fills
 * use tempered versions and only strokes get the real thing.
 */

/* ── fonts ────────────────────────────────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800; font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/albert-sans.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800; font-display: swap;
}

/* ── tokens ───────────────────────────────────────────────── */
:root {
  /* model space, deepest to lightest */
  --ms:         #1b1e21;
  --ms-2:       #212529;
  --panel:      #282d32;
  --panel-2:    #2f353b;
  --ribbon:     #383f45;
  --ribbon-2:   #414951;

  --line:       #454d54;
  --line-2:     #566069;
  --grid:       #262b30;
  --grid-major: #2f363c;

  /* ACI */
  --aci-red:    #ff4136;
  --aci-yellow: #ffd227;
  --aci-green:  #4ade5f;
  --aci-cyan:   #3fd6e0;
  --aci-white:  #e8ecef;

  --ink:        #e8ecef;
  --muted:      #99a3ab;
  --muted-2:    #7d878f;
  --accent:     #ff7a00;

  /* aliases kept so component rules read the same as before */
  --white:      var(--ink);
  --surface:    var(--ms-2);
  --line-dark:  var(--line);
  --muted-dark: var(--muted);

  --display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:    "Albert Sans", -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 2px;
  --r:    3px;
  --r-md: 4px;
  --r-lg: 5px;
  --pill: 2px;

  --gut: clamp(18px, 4vw, 60px);
  --sec: clamp(64px, 8vw, 124px);
  --max: 1312px;

  --ribbon-h: 96px;
  --cmd-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* clip, not hidden: `overflow-x: hidden` on the root turns it into a scroll
 * container, which kills scroll-behavior and the fixed chrome. Artifacts and
 * MTEXT grips are meant to bleed past the section edge, so something has to
 * contain them and this is the only thing that does it without side effects. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--ms);
  color: var(--ink);
  font-size: 16px; line-height: 1.62;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* model space grid: 10px minor, 60px major, same as a default GRID setting */
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 10px 10px, 10px 10px;
  padding-top: var(--ribbon-h);
  padding-bottom: var(--cmd-h);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aci-cyan); outline-offset: 2px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: var(--aci-cyan); color: #06282b; padding: 10px 16px;
  font-family: var(--mono); font-size: 13px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ══ crosshair cursor ══════════════════════════════════════ */
/* Full-bleed pick lines plus the pickbox, drawn at the pointer. Desktop
 * only: on a touch device there is no pointer to track, and the fixed
 * layers would just sit in the corner. */
.xhair { position: fixed; inset: 0; z-index: 60; pointer-events: none; display: none; }
.xhair i {
  position: absolute; background: var(--aci-cyan); opacity: .34;
}
.xhair .xh { left: 0; right: 0; height: 1px; }
.xhair .xv { top: 0; bottom: 0; width: 1px; }
.xhair .xb {
  width: 13px; height: 13px; background: none;
  border: 1px solid var(--aci-cyan); opacity: .8;
  transform: translate(-50%, -50%);
}
@media (hover: hover) and (pointer: fine) {
  .xhair { display: block; }
  body { cursor: crosshair; }
  a, button, summary, label, input, textarea { cursor: pointer; }
  input[type="text"], input[type="email"], textarea { cursor: text; }
}
@media (prefers-reduced-motion: reduce) { .xhair { display: none; } }

/* ══ ribbon ════════════════════════════════════════════════ */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: var(--ribbon);
  border-bottom: 1px solid #14171a;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
.hdr__tabs {
  display: flex; align-items: stretch; gap: 0;
  height: 30px; padding: 0 10px;
  background: #2c3237;
  border-bottom: 1px solid #14171a;
}
.hdr__tab {
  display: inline-flex; align-items: center; padding: 0 15px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .4px;
  color: var(--muted);
  border: 1px solid transparent; border-bottom: 0;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.hdr__tab:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.hdr__tab.is-on {
  color: var(--ink); background: var(--ribbon);
  border-color: #14171a;
}
.hdr__brand {
  margin-left: auto; display: inline-flex; align-items: center;
  padding-right: 4px;
}

.hdr__panels {
  display: flex; align-items: stretch; gap: 0;
  height: 65px; padding: 0 6px; overflow-x: auto;
  scrollbar-width: none;
}
.hdr__panels::-webkit-scrollbar { display: none; }
.pnl {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 5px 10px 3px; flex: none;
  border-right: 1px solid rgba(255,255,255,.07);
}
.pnl__row { display: flex; align-items: center; gap: 2px; }
.pnl__lbl {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .7px;
  text-transform: uppercase; color: var(--muted-2); text-align: center;
  padding-top: 2px;
}
.tool {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 52px; padding: 4px 2px; border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .2px;
  color: var(--muted); text-align: center; line-height: 1.15;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.tool svg { width: 21px; height: 21px; fill: none; stroke: var(--aci-cyan); stroke-width: 1.5; }
.tool:hover {
  background: var(--ribbon-2); border-color: var(--line-2); color: var(--ink);
}
.tool--go svg { stroke: var(--accent); }
.tool--go { color: #ffcb96; }

.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo__m { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.logo__m path { stroke-linecap: round; }
.logo__dot { fill: var(--accent); stroke: none; }
.logo__t { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.logo__ai { color: var(--accent); }

/* The wordmark lives in the tab strip on desktop. The panel copy is the
 * fallback for narrow screens, where the tab strip is gone. */
.pnl--brand { display: none; }
@media (max-width: 900px) {
  :root { --ribbon-h: 62px; }
  .hdr__tabs { display: none; }
  .hdr__panels { height: 61px; align-items: center; }
  .pnl:not(.pnl--keep) { display: none; }
  .pnl--brand { display: flex; margin-right: auto; border-right: 0; justify-content: center; }
}

/* ══ command line + status bar ═════════════════════════════ */
.cmd {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  background: #14171a; border-top: 1px solid var(--line);
  font-family: var(--mono);
}
.cmd__hist {
  padding: 6px 12px 0; font-size: 11.5px; line-height: 1.5;
  color: var(--muted-2); height: 36px; overflow: hidden;
}
.cmd__hist div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd__line {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 12px 7px; font-size: 12.5px; color: var(--ink);
}
.cmd__p { color: var(--aci-cyan); flex: none; }
.cmd__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd__cur {
  width: 7px; height: 14px; background: var(--aci-cyan); flex: none;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .cmd__cur { animation: none; } }

.sbar {
  display: flex; align-items: center; gap: 2px;
  padding: 0 8px; height: 25px;
  background: #23272b; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px;
  overflow-x: auto; scrollbar-width: none;
}
.sbar::-webkit-scrollbar { display: none; }
.sbar b {
  font-weight: 400; padding: 3px 7px; color: var(--muted-2); flex: none;
}
.sbar b.on { color: var(--aci-cyan); background: rgba(63,214,224,.11); }
/* ORTHO is the one toggle that does something; main.js marks it live. */
.sbar b.hit { cursor: pointer; }
.sbar b.hit:hover { color: var(--ink); }
.sbar__xy { margin-left: auto; color: var(--muted); flex: none; padding-left: 14px; }

@media (max-width: 640px) {
  :root { --cmd-h: 62px; }
  .cmd__hist { display: none; }
}

/* ══ UCS icon ══════════════════════════════════════════════ */
.ucs {
  position: fixed; left: 16px; bottom: calc(var(--cmd-h) + 14px); z-index: 55;
  width: 74px; height: 74px; pointer-events: none; opacity: .5;
}
.ucs svg { width: 100%; height: 100%; fill: none; stroke: var(--aci-green); stroke-width: 1.4; }
.ucs text { fill: var(--aci-green); font-family: var(--mono); font-size: 9px; stroke: none; }
@media (max-width: 1100px) { .ucs { display: none; } }

/* ══ drawn entities — LINE / CIRCLE / DIM ══════════════════ */
/* One overlay for everything the command line draws. main.js sizes it to the
 * document and pins it to the document origin, so a point picked in § 03 is
 * still in § 03 after a scroll. Unlike `.art` this sits *above* content
 * (z-index 50, under the ribbon and command line) — geometry the visitor drew
 * is not decoration and should not be hidden behind a paragraph. It only
 * takes pointer events while a command is running: at rest text stays
 * selectable and every link stays clickable. */
.draw {
  position: absolute; top: 0; left: 0; z-index: 50;
  pointer-events: none; overflow: visible;
}
.draw.is-live { pointer-events: auto; }
.draw .ent  { fill: none; stroke: var(--aci-white); stroke-width: 1.2; }
.draw .ghost { stroke: var(--aci-cyan); stroke-dasharray: 7 4; opacity: .8; }
.draw .dim  { fill: none; stroke: var(--aci-cyan); stroke-width: 1; }
.draw .ext  { stroke-width: .8; opacity: .75; }
.draw .arw  { fill: var(--aci-cyan); stroke: none; }
.draw text {
  font-family: var(--mono); font-size: 11px; text-anchor: middle;
  fill: var(--aci-cyan);
  /* knocks the dimension line out from behind the text the way DIMTMOVE
   * does, without having to split the line into two segments */
  stroke: var(--ms); stroke-width: 4px; paint-order: stroke;
}
@media (max-width: 1100px) { .draw { display: none; } }

/* ══ scattered CAD artifacts ═══════════════════════════════ */
/* Decoration only — aria-hidden and pointer-events: none at the source.
 * They sit behind content on z-index 0 and never above 8% opacity on a
 * fill, so a paragraph is always the brightest thing in its own column. */
.art { position: absolute; pointer-events: none; z-index: 0; }
.art svg { overflow: visible; }
.art .s  { fill: none; stroke: var(--line-2); stroke-width: 1; }
.art .sc { fill: none; stroke: var(--aci-cyan); stroke-width: 1; opacity: .5; }
.art .sy { fill: none; stroke: var(--aci-yellow); stroke-width: 1; opacity: .42; }
.art .sg { fill: none; stroke: var(--aci-green); stroke-width: 1; opacity: .42; }
.art .sr { fill: none; stroke: var(--aci-red); stroke-width: 1; opacity: .38; }
.art .sa { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5; }
.art .dash { stroke-dasharray: 6 4; }
.art .cl   { stroke-dasharray: 14 3 3 3; }
.art .fillc { fill: var(--aci-cyan); stroke: none; opacity: .5; }
.art .filla { fill: var(--accent); stroke: none; opacity: .5; }
.art t, .art text {
  font-family: var(--mono); font-size: 9px; letter-spacing: .5px;
  fill: var(--muted-2); stroke: none;
}
.art text.c { fill: var(--aci-cyan); opacity: .7; }
.art text.a { fill: var(--accent); opacity: .75; }

.art--tr { top: 4%;  right: -20px; }
.art--tl { top: 8%;  left: -26px; }
.art--br { bottom: 6%; right: 2%; }
.art--bl { bottom: 9%; left: -18px; }
.art--mr { top: 42%; right: 3%; }
.art--ml { top: 38%; left: -30px; }
@media (max-width: 1100px) { .art { display: none; } }

/* grips: the little cyan squares on a selected object */
.grip { fill: #1b6f78; stroke: var(--aci-cyan); stroke-width: 1; }

/* ══ sections ══════════════════════════════════════════════ */
.sec { padding: var(--sec) 0; position: relative; overflow: clip; }
.sec--surface { background: rgba(40,45,50,.55); border-block: 1px solid var(--line); }
.sec--dark    { background: rgba(12,14,16,.55); border-block: 1px solid var(--line); }
.sec > .wrap { position: relative; z-index: 1; }

.eyebrow {
  /* Block-level, not inline-flex. `.h2` is an inline-block, so an inline-level
   * eyebrow shares its line and baseline-aligns to the heading's *last* line —
   * "01 — WHERE THE MONEY GOES" ends up beside "The paperwork took six." It
   * only looked right in the narrow columns, where the two boxes overflowed
   * and wrapped by luck. `fit-content` keeps the box hugging its text so the
   * rule and the gap below stay as authored. */
  display: flex; width: fit-content; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 2.1px;
  /* clears the MTEXT bounding box, which extends 14–18px above the heading
   * and otherwise swallows the eyebrow sitting directly over it */
  text-transform: uppercase; color: var(--aci-cyan); margin-bottom: 30px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--light { color: var(--aci-cyan); }

/* MTEXT: headings are drawn as a text object with its bounding box and four
 * corner grips, the way one looks when it is selected. The box is generated
 * rather than authored so it tracks the real rendered size. */
.h2 {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.16;
  letter-spacing: -1.4px;
}
/* Authored breaks wide, natural wrapping narrow. Every <br> in a heading must
 * have a space in front of it in the markup: dropping the break here leaves
 * nothing between the two runs, and they render as "questionsevery". The
 * space costs nothing above the breakpoint, because a trailing space at the
 * end of a rendered line is thrown away during white-space processing. */
.h2 br { display: none; }
@media (min-width: 900px) { .h2 br { display: inline; } }
/* The box sits tight on narrow screens: the gutter is only 18px there, and a
 * wider inset pushes the grips past the viewport edge. */
.h2::before {
  content: ""; position: absolute; inset: -10px -10px;
  border: 1px dashed var(--line-2); opacity: 0;
  transition: opacity .5s var(--ease);
}
.h2.mt-on::before { opacity: .85; }
.h2 .g {
  position: absolute; width: 7px; height: 7px;
  background: #1b6f78; border: 1px solid var(--aci-cyan);
  opacity: 0; transition: opacity .5s var(--ease);
}
.h2.mt-on .g { opacity: 1; }
.h2 .g1 { top: -14px; left: -14px; }
.h2 .g2 { top: -14px; right: -14px; }
.h2 .g3 { bottom: -14px; left: -14px; }
.h2 .g4 { bottom: -14px; right: -14px; }
@media (min-width: 900px) {
  .h2::before { inset: -14px -18px; }
  .h2 .g1 { top: -18px; left: -22px; }
  .h2 .g2 { top: -18px; right: -22px; }
  .h2 .g3 { bottom: -18px; left: -22px; }
  .h2 .g4 { bottom: -18px; right: -22px; }
}

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r);
  background: var(--panel-2); border: 1px solid var(--line-2);
  color: var(--ink);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .6px;
  text-transform: uppercase;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn::before { content: "_"; color: var(--aci-cyan); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #1b1005; }
.btn:hover::before { color: #1b1005; }
.btn--sm { padding: 9px 15px; font-size: 11px; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--aci-cyan); color: var(--ink); }
.btn--ghost:hover::before { color: var(--aci-cyan); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #1b1005; }
.btn--accent::before { color: #1b1005; }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--ms); }
.btn--dark { background: var(--panel); }
.btn--full { width: 100%; }

/* ── reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* ══ hero ══════════════════════════════════════════════════ */
.hero { padding: clamp(34px, 5vw, 70px) 0 clamp(48px, 6vw, 90px); position: relative; }
.hero__in { display: grid; gap: clamp(34px, 5vw, 58px); }
@media (min-width: 980px) {
  .hero__in { grid-template-columns: 1.02fr .98fr; align-items: center; }
}
.hero__h {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(31px, 5.1vw, 68px); line-height: 1.08;
  letter-spacing: -2.4px; margin-bottom: 22px;
}
.hero__h em { font-style: normal; color: var(--accent); }
.ln { display: block; overflow: hidden; }
.ln > span { display: block; transform: translateY(100%); animation: rise .85s var(--ease) forwards; }
.ln:nth-child(2) > span { animation-delay: .09s; }
.ln:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ln > span { transform: none; animation: none; } }

.hero__p { color: var(--muted); font-size: 16.5px; max-width: 52ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__trust li { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: .5px; }
.hero__trust strong { display: block; font-size: 21px; color: var(--aci-cyan); font-weight: 500; }

/* the drawing, framed as a floating viewport */
.sheet {
  position: relative; background: #101315;
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.sheet::before {
  content: "VIEWPORT 1 : 48"; position: absolute; top: -9px; left: 12px;
  background: var(--ms); padding: 0 8px;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.3px;
  color: var(--muted-2);
}
.sheet__svg { width: 100%; height: auto; border-radius: 2px; }
.s-ln    { fill: none; stroke: var(--aci-white); stroke-width: 1.5; }
.s-thin  { stroke-width: .9; }
.s-hatch { stroke: var(--muted-2); stroke-width: .7; }
.s-air   { fill: none; stroke: var(--aci-cyan); stroke-width: 1; }
.s-fill  { fill: var(--aci-cyan); stroke: none; }
.s-dash  { stroke-dasharray: 5 3; }
.s-dim   { stroke: var(--aci-green); stroke-width: .8; fill: none; }
.s-dim text { fill: var(--aci-green); font-family: var(--mono); font-size: 10px; stroke: none; }
.s-tb    { fill: none; stroke: var(--muted-2); stroke-width: .8; }
.s-tbt text { fill: var(--muted-2); font-family: var(--mono); font-size: 7px; letter-spacing: .6px; }
.s-tbt .s-val { fill: var(--aci-yellow); font-size: 8.5px; }
.sheet__tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); letter-spacing: .5px;
}
.sheet__tag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--aci-green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .sheet__tag .dot { animation: none; } }

/* ══ marquee ═══════════════════════════════════════════════ */
.mq {
  overflow: hidden; border-block: 1px solid var(--line);
  background: #101315; padding: 11px 0;
}
.mq__t {
  display: flex; gap: 26px; white-space: nowrap; width: max-content;
  animation: slide 42s linear infinite;
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--muted-2);
}
.mq__t i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq__t { animation: none; } }

/* ══ problem / steps ═══════════════════════════════════════ */
.probs, .steps { display: grid; gap: 16px; margin-top: clamp(34px, 5vw, 56px); }
@media (min-width: 860px) {
  .probs, .steps { grid-template-columns: repeat(3, 1fr); }
}
.prob, .step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px 24px 28px;
  position: relative;
}
.prob::after, .step::after {
  content: ""; position: absolute; left: -1px; top: -1px;
  width: 7px; height: 7px; background: #1b6f78; border: 1px solid var(--aci-cyan);
}
.prob__n, .step__n {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  width: 28px; height: 24px; margin-bottom: 16px;
}
.prob h3, .step h3 {
  font-family: var(--display); font-weight: 500; font-size: 18px;
  letter-spacing: -.4px; margin-bottom: 10px;
}
.prob p, .step p { color: var(--muted); font-size: 15px; }

/* ══ deliverables ══════════════════════════════════════════ */
.deliv {
  margin-top: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: clamp(22px, 3.2vw, 40px);
  display: grid; gap: 26px;
}
@media (min-width: 900px) {
  .deliv { grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
}
.deliv__h h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.7px; margin-bottom: 12px;
}
.deliv__h p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.deliv__l li {
  display: grid; grid-template-columns: 62px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.deliv__l li:first-child { border-top: 0; padding-top: 0; }
.deliv__l span { font-family: var(--mono); font-size: 11.5px; color: var(--aci-yellow); padding-top: 3px; }

/* ══ readiness inventory ═══════════════════════════════════ */
/* Deliberately not a traffic light: a red/amber/green score reads as a
 * prediction of approval, which nothing here can honestly make. These are
 * three states of knowledge, so each is labelled in text, not colour alone. */
.ready { margin-top: clamp(36px, 5vw, 60px); display: grid; gap: 28px; position: relative; }
@media (min-width: 900px) {
  .ready { grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
}
.ready__h h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.7px; margin: 14px 0 12px;
}
/* Same space-before-the-break rule as `.h2 br` above. */
.ready__h h3 br { display: none; }
@media (min-width: 900px) { .ready__h h3 br { display: inline; } }
.ready__p { color: var(--muted); font-size: 15px; max-width: 36ch; }
.ready__l { display: grid; gap: 12px; }
.ready__l li {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 18px 20px;
  display: grid; gap: 10px;
}
.ready__l p { font-size: 15px; color: var(--muted); }
.ready__l em { color: var(--ink); font-style: normal; font-weight: 600; }
.ready__tag {
  justify-self: start;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-sm);
  border: 1px solid currentColor;
}
.ready__l .is-ok      { border-left: 3px solid var(--aci-green); }
.ready__l .is-ok      .ready__tag { color: var(--aci-green); }
.ready__l .is-unknown { border-left: 3px solid var(--accent); background: #2b2016; }
.ready__l .is-unknown .ready__tag { color: var(--accent); }
.ready__l .is-yours   { border-left: 3px solid var(--muted-2); }
.ready__l .is-yours   .ready__tag { color: var(--muted); }

/* ══ coverage map ══════════════════════════════════════════ */
/* Three tiers of research depth, not three grades of approval. Green is
 * conspicuously absent: it belongs to `.ready__l .is-ok`, which means a named
 * reviewer signed for the rule, and no jurisdiction has reached that yet.
 * Colouring a state green here would say the opposite. */
.cov__lede {
  color: var(--muted); font-size: 16px; max-width: 62ch;
  /* Clears the MTEXT box, which is drawn 10px outside the heading. */
  margin-top: 30px; line-height: 1.62;
}
.cov { margin-top: clamp(32px, 4.5vw, 52px); display: grid; gap: 30px; }
@media (min-width: 1000px) {
  .cov { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 42px; align-items: start; }
}
.cov__fig {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 18px 18px 0;
}
.cov__svg { display: block; width: 100%; height: auto; overflow: visible; }
.cov__cap {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--muted-2);
  border-top: 1px solid var(--line); margin-top: 14px; padding: 11px 0 13px;
}

/* The state polygons. Fills carry the tier; the thin dark stroke is the
 * parcel line that keeps two same-tier neighbours legible as two states. */
.cov__s {
  stroke: var(--ms); stroke-width: 1; stroke-linejoin: round;
  cursor: pointer; transition: fill .12s var(--ease), stroke .12s var(--ease);
}
.cov__s.is-t1 { fill: #333a41; }
.cov__s.is-t2 { fill: rgb(255 210 39 / .34); }
.cov__s.is-t3 { fill: rgb(63 214 224 / .38); }
.cov__s:hover, .cov__s.is-on { stroke: var(--accent); stroke-width: 1.6; }
.cov__s.is-t1:hover, .cov__s.is-t1.is-on { fill: #4a545d; }
.cov__s.is-t2:hover, .cov__s.is-t2.is-on { fill: rgb(255 210 39 / .62); }
.cov__s.is-t3:hover, .cov__s.is-t3.is-on { fill: rgb(63 214 224 / .66); }
.cov__s:focus { outline: none; }
.cov__s:focus-visible { stroke: var(--aci-white); stroke-width: 2; }

/* Abbreviations sit on the shapes, so they must never eat a pointer event
 * meant for the path underneath. */
.cov__ab { pointer-events: none; }
.cov__ab text {
  font-family: var(--mono); font-size: 12px; fill: var(--ink);
  opacity: .58; text-anchor: middle; dominant-baseline: central;
}

/* Callout column for the states with no interior to label. */
.cov__c { cursor: pointer; }
.cov__ldr { fill: none; stroke: var(--line-2); stroke-width: .8; }
.cov__dot { fill: var(--line-2); stroke: none; }
.cov__c rect { stroke: var(--ms); stroke-width: 1; }
.cov__c.is-t1 rect { fill: #333a41; }
.cov__c.is-t2 rect { fill: rgb(255 210 39 / .34); }
.cov__c.is-t3 rect { fill: rgb(63 214 224 / .38); }
.cov__c text {
  font-family: var(--mono); font-size: 12.5px; fill: var(--ink); opacity: .72;
  text-anchor: middle; dominant-baseline: central; pointer-events: none;
}
.cov__c:hover rect, .cov__c.is-on rect { stroke: var(--accent); stroke-width: 1.6; }
.cov__c:hover .cov__ldr, .cov__c.is-on .cov__ldr { stroke: var(--accent); }
.cov__c:hover .cov__dot, .cov__c.is-on .cov__dot { fill: var(--accent); }
.cov__c:hover text, .cov__c.is-on text { opacity: 1; }

/* Readout. Fixed row set so the panel does not resize as states change under
 * the cursor and shove the legend down the page. */
.cov__read {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 20px;
}
.cov__read__k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted-2);
}
.cov__read__n {
  font-family: var(--display); font-weight: 500; font-size: 21px;
  letter-spacing: -.5px; color: var(--ink); margin: 6px 0 16px;
}
.cov__read__d div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.cov__read__d dt { font-size: 13.5px; color: var(--muted); }
.cov__read__d dd { font-family: var(--mono); font-size: 14.5px; color: var(--ink); }
.cov__read__d .is-zero dt { color: var(--muted-2); }
.cov__read__d .is-zero dd { color: var(--accent); }

.cov__key { display: grid; gap: 10px; margin-top: 16px; }
.cov__key li {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r);
  background: var(--panel); padding: 13px 15px;
}
.cov__key b {
  font-family: var(--mono); font-size: 17px; grid-row: span 2; align-self: center;
}
.cov__key span { font-size: 14px; color: var(--ink); }
.cov__key i { font-style: normal; font-size: 13px; color: var(--muted); }
.cov__key .is-t3 { border-left-color: var(--aci-cyan); }
.cov__key .is-t3 b { color: var(--aci-cyan); }
.cov__key .is-t2 { border-left-color: var(--aci-yellow); }
.cov__key .is-t2 b { color: var(--aci-yellow); }
.cov__key .is-t1 { border-left-color: var(--muted-2); }
.cov__key .is-t1 b { color: var(--muted); }

.cov__note {
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
  border-left: 3px solid var(--accent); background: #2b2016;
  border-radius: var(--r); padding: 14px 16px; margin-top: 16px;
}
.cov__note b { color: var(--ink); font-weight: 600; }
.cov__note em { color: var(--accent); font-style: normal; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .cov__s { transition: none; }
}

/* ══ math ══════════════════════════════════════════════════ */
.math { display: grid; gap: 16px; margin-top: clamp(34px, 5vw, 56px); }
@media (min-width: 860px) { .math { grid-template-columns: 1fr 1fr; gap: 20px; } }
.math__col {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); padding: 26px 24px;
}
.math__col--us { border-color: var(--accent); background: #241a11; }
.math__lbl {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px;
}
.math__col--us .math__lbl { color: var(--accent); }
.math__rows li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--muted);
}
.math__rows li:first-child { border-top: 0; }
.math__rows b { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.math__rows .is-sum { border-top: 1px solid var(--line-2); margin-top: 4px; color: var(--ink); }
.math__rows .is-sum b { font-size: 21px; color: var(--aci-yellow); }
.math__col--us .is-sum b { color: var(--accent); }

.stats { display: grid; gap: 26px; margin-top: clamp(38px, 5vw, 62px); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 34px; } }
.stat b {
  display: block; font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -2px; color: var(--aci-cyan);
}
.stat p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.math__fine { margin-top: 30px; max-width: 62ch; font-size: 13.5px; color: var(--muted-2); }

/* ══ pricing ═══════════════════════════════════════════════ */
.tiers { display: grid; gap: 16px; margin-top: clamp(34px, 5vw, 56px); align-items: start; }
/* 2x2 from tablet, one row only once four columns are still readable */
@media (min-width: 700px)  { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 22px 26px;
}
.tier--hi { background: #241a11; border-color: var(--accent); }
.tier--hi .tier__price b { color: var(--accent); }
.tier__badge {
  position: absolute; top: -10px; left: 22px;
  background: var(--accent); color: #1b1005;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-sm);
}
.tier__n {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--aci-cyan);
}
.tier__price { display: flex; align-items: baseline; gap: 7px; margin: 12px 0; }
.tier__price b {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(31px, 3.4vw, 42px); letter-spacing: -1.8px; color: var(--ink);
}
.tier__price span { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.tier__who { color: var(--muted); font-size: 14.5px; min-height: 3.4em; margin-bottom: 20px; }
.tier__f { margin-top: 24px; }
.tier__f li {
  position: relative; padding: 11px 0 11px 20px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}
.tier__f li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 6px; height: 6px; border: 1px solid var(--aci-cyan);
}
.tier__f .is-head {
  border-top: 0; padding-left: 0; padding-top: 0; color: var(--ink);
  font-family: var(--mono); font-size: 11px; letter-spacing: 1.1px;
  text-transform: uppercase;
}
.tier__f .is-head::before { content: none; }
.tiers__note { margin-top: 26px; max-width: 62ch; font-size: 13.5px; color: var(--muted-2); }

/* ── crossing state lines ─────────────────────────────────── */
/* The Firm upsell story, told once, under the tiers it explains. Same
 * panel language as .deliv; the accent left edge marks it as the one
 * editorial aside in the pricing section. */
.reach {
  margin-top: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r);
  background: var(--panel); padding: clamp(22px, 3.2vw, 40px);
  display: grid; gap: 22px;
}
@media (min-width: 900px) {
  .reach { grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
}
.reach__h h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(20px, 2.2vw, 27px); letter-spacing: -.7px;
  margin-top: 14px;
}
.reach__h h3 br { display: none; }
@media (min-width: 900px) { .reach__h h3 br { display: inline; } }
.reach__b p { color: var(--muted); font-size: 15px; max-width: 58ch; }
.reach__b p + p { margin-top: 14px; }

/* ══ FAQ ═══════════════════════════════════════════════════ */
.faq { display: grid; gap: 38px; }
@media (min-width: 980px) { .faq { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
.faq__p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__i summary {
  display: flex; align-items: center; gap: 14px; padding: 20px 0;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  letter-spacing: -.3px; list-style: none;
}
.acc__i summary::-webkit-details-marker { display: none; }
.acc__i summary::before {
  content: "+"; font-family: var(--mono); color: var(--aci-cyan);
  font-size: 15px; flex: none; width: 14px;
}
.acc__i[open] summary::before { content: "\2212"; color: var(--accent); }
.acc__b { padding: 0 0 22px 28px; }
.acc__b p { color: var(--muted); font-size: 15px; max-width: 62ch; }
.acc__b p + p { margin-top: 13px; }
.acc__b em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ══ CTA + form ════════════════════════════════════════════ */
.cta__in { display: grid; gap: 40px; }
@media (min-width: 980px) { .cta__in { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 56px; } }
.cta__p { color: var(--muted); font-size: 16px; margin: 20px 0 24px; max-width: 46ch; }
.cta__l3 li {
  position: relative; padding-left: 20px; padding-block: 7px;
  color: var(--muted); font-size: 14.5px;
}
.cta__l3 li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border: 1px solid var(--aci-green);
}
.form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(20px, 3vw, 32px);
  display: grid; gap: 15px;
}
.row { display: grid; gap: 15px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field > span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted-2);
}
.field input, .field textarea {
  width: 100%; background: #14171a; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px; font-size: 15px;
  font-family: var(--body); color: var(--ink);
  transition: border-color .18s var(--ease);
}
.field textarea { resize: vertical; font-size: 14.5px; }
.field input::placeholder, .field textarea::placeholder { color: #5d666d; }
.field input:focus, .field textarea:focus { border-color: var(--aci-cyan); outline: none; }
.field.err input, .field.err textarea { border-color: var(--aci-red); }

.chips { border: 0; display: grid; gap: 9px; }
.chips legend {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px;
}
.chips label { display: inline-flex; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips span {
  display: inline-block; width: 100%; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #14171a; color: var(--muted);
  font-family: var(--mono); font-size: 12px;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
@media (min-width: 560px) { .chips { grid-template-columns: 1fr 1fr; } }
.chips input:checked + span { border-color: var(--accent); color: var(--accent); background: #241a11; }
.chips input:focus-visible + span { outline: 2px solid var(--aci-cyan); outline-offset: 2px; }

.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent.err span { color: var(--aci-red); }
.form__fine { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); text-align: center; }

/* ══ footer ════════════════════════════════════════════════ */
.ft { border-top: 1px solid var(--line); padding: 34px 0; background: #14171a; }
.ft__in { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 34px; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.ft__nav a:hover { color: var(--aci-cyan); }

/* language switcher — lives in the footer, styled like a status toggle:
 * the active language lit the way an enabled mode is, the other clickable */
.lang {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px;
}
.lang b, .lang a { padding: 4px 8px; border-radius: var(--r-sm); }
.lang b { font-weight: 400; color: var(--aci-cyan); background: var(--fill-cyan-dim, rgba(63,214,224,.11)); }
.lang a { color: var(--muted-2); }
.lang a:hover { color: var(--ink); background: rgba(255,255,255,.06); }

.ft__c { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
