
/* ── reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
svg { display: block; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--indigo); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* ── layout ─────────────────────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.band  { padding: var(--band-y) 0; }
.band--subtle { background: var(--bg-subtle); }
.band--tight  { padding: 44px 0; }

/* The one dark public band. Body ink is slate, never pure white. */
.band--dark {
  position: relative; overflow: hidden; color: var(--dark-ink);
  background: linear-gradient(120deg, var(--dark-1) 0%, var(--dark-2) 46%, var(--dark-3) 100%);
}
.band--dark .band-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .10;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 26px 26px;   /* texture, not pattern */
}
.band--dark .band-blob {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: .45; pointer-events: none;
  /* solid is fine HERE only — the band is dark enough to hide the disc edge */
}
.band--dark > .shell { position: relative; z-index: 1; }
.band--dark p    { color: var(--dark-body); }
.band--dark .eyebrow { color: var(--indigo-300); }
.band--dark .meta    { color: var(--dark-meta); }

.eyebrow {
  font-family: var(--mono); font-size: var(--fs-mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo); font-weight: 600; margin-bottom: 14px;
}
.lede { font-size: var(--fs-md); color: var(--ink-muted); max-width: 62ch; }
.meta { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-faint); }

.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }  /* N-12: was 34 */
.band-head p { margin-top: 10px; }

/* Intrinsic grids — the browser counts the columns. */
.grid { display: grid; gap: 18px; }
.grid--cards  { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--tight  { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid--wide   { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid--split  { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 44px; }

/* A fixed-width table inside a 1fr track widens the whole page instead of
   scrolling in its card — cap the track AND the wrapper. Guide rule 5. */
.grid > * { min-width: 0; }

/* ── sysbar + nav ───────────────────────────────────────────────────────── */
.sysbar { border-bottom: 1px solid var(--line); background: var(--bg-subtle); }
.sysbar-in {
  height: 34px; display: flex; align-items: center; gap: 14px; overflow: hidden;
  font-family: var(--mono); font-size: var(--fs-micro);
  letter-spacing: .06em; color: var(--ink-faint);
}
.sysbar-in .sep { color: var(--line-strong); }
.sysbar-in .path { color: var(--ink-muted); }
.sysbar-brand { display: flex; align-items: center; gap: 7px; color: var(--indigo); font-weight: 600; white-space: nowrap; }
.sysbar-brand:hover { text-decoration: none; }
.sysbar-brand i { width: 9px; height: 9px; border-radius: 2px; background: linear-gradient(135deg, var(--indigo), var(--sky)); }
.sysbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.sysbar-live { display: flex; align-items: center; gap: 6px; color: var(--ok); }
.sysbar-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(21,128,61,.16); }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-lg); color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; flex: none;
  background: url('img/aguicorp-symbol.png') center / contain no-repeat;
  border-radius: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a, .nav-dd-trig {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px;
  border: 0; background: none; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-muted); white-space: nowrap;
}
.nav-links > a:hover, .nav-dd-trig:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }
.nav-links > a.active, .nav-dd-trig.active { color: var(--indigo); background: var(--indigo-50); }

.nav-dd { position: relative; }
.nav-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 264px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lift); padding: 8px; display: none;
}
.nav-dd[open] .nav-dd-panel, .nav-dd.open .nav-dd-panel { display: block; }
.nav-dd-item { display: block; padding: 9px 11px; border-radius: var(--r-sm); }
.nav-dd-item:hover { background: var(--bg-subtle); text-decoration: none; }
.nav-dd-item .l { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.nav-dd-item .d { display: block; font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 1px; }
.nav-dd-item.active .l { color: var(--indigo); }

.nav-right { display: flex; align-items: center; gap: 10px; }
/* Cart — the design's labelled pill ("Cart · n"), not an icon-only glyph. */
.nav-cart {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); background: #fff;
}
.nav-cart:hover { background: var(--bg-subtle); color: var(--ink); text-decoration: none; }
.nav-cart .n {
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--indigo); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
}
/* Fixed-height pills must never wrap — a second line paints outside the box.
   Guide rule 6. */
.nav-links > a, .nav-dd-trig, .btn { white-space: nowrap; }

.nav-burger { display: none; width: 38px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); align-items: center; justify-content: center; }
/* Mockup constant: inline = w > 1080 — below that, the burger. */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .nav-in { gap: 14px; }
  .nav-mobile { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px var(--gutter) 20px; }
  .nav-mobile.open { display: block; }
  .nav-mobile a { display: block; padding: 10px 2px; font-size: var(--fs-md); font-weight: 500; color: var(--ink-body); border-bottom: 1px solid var(--line); }
  .nav-mobile .grp { font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin: 16px 0 4px; }
}
@media (min-width: 1081px) { .nav-mobile { display: none; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); background: var(--bg-subtle); padding: 56px 0 30px; margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 960px) { .foot-in { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }
.foot-lead p { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: 12px; max-width: 34ch; }

.foot-col { display: flex; flex-direction: column; align-items: flex-start; }
/* Group labels were --ink-faint (#94A3B8) on --bg-subtle (#F7F8FA): MEASURED
   2.41:1, well under AA 4.5. The labels that give the footer its structure
   were the faintest thing on the page — which is a real part of "bland", not
   just a compliance miss. #5B6878 measures 5.35:1 and is the lightest tone on
   this ground that clears AA, so the heading stays quieter than the links
   (7.13:1) and the hierarchy survives.
   Scoped to the footer deliberately — --ink-faint is used in many places and
   retoning the global token is a blast radius nobody asked for. */
.foot-col h4 { font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .1em; color: #5B6878; font-weight: 600; margin-bottom: 12px; }
.foot-col a, .foot-col button {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-sm); color: var(--ink-muted);
  padding: 4px 0; background: none; border: 0; text-align: left;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.4, 0, .2, 1), color .18s ease;
}
/* The arrow is a pseudo-element so it costs no markup and cannot be selected
   or read out by a screen reader — the link text is the accessible name. */
.foot-col a::after, .foot-col button::after {
  content: '\2192';                      /* → */
  font-size: 12px; line-height: 1;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s cubic-bezier(.4, 0, .2, 1);
}
/* :focus-visible gets the IDENTICAL treatment. A hover-only affordance is an
   accessibility gap — a keyboard user would get no "you are here" signal at
   all, which is the same defect the operator is describing, just for a
   different input device. */
.foot-col a:hover, .foot-col button:hover,
.foot-col a:focus-visible, .foot-col button:focus-visible {
  color: var(--ink); text-decoration: none; transform: translateX(5px);
  outline: none;
}
.foot-col a:hover::after, .foot-col button:hover::after,
.foot-col a:focus-visible::after, .foot-col button:focus-visible::after {
  opacity: 1; transform: translateX(0);
}
/* Reduced motion keeps the SIGNAL and drops only the movement — the arrow
   still appears and the ink still darkens, so the affordance survives. */
@media (prefers-reduced-motion: reduce) {
  .foot-col a, .foot-col button,
  .foot-col a::after, .foot-col button::after { transition: none; }
  .foot-col a:hover, .foot-col button:hover,
  .foot-col a:focus-visible, .foot-col button:focus-visible { transform: none; }
  .foot-col a:hover::after, .foot-col button:hover::after { transform: none; }
}
.foot-base {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-heavy);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--mono); font-size: var(--fs-mono); color: #5B6878;  /* was --ink-faint, 2.41:1 */
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 600; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s,
              box-shadow .15s, transform .12s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 1px 2px rgba(49,46,129,.25); }
.btn--primary:hover { background: #3730A3; box-shadow: 0 4px 12px rgba(49,46,129,.30); }
.btn--primary:active { background: #312E81; box-shadow: 0 1px 2px rgba(49,46,129,.25); }
.btn--ghost {
  background: var(--indigo-50); color: var(--indigo);
  border-color: var(--indigo-200); box-shadow: var(--sh-card);
}
.btn--ghost:hover {
  background: var(--indigo-100); border-color: #A5B4FC;
  box-shadow: 0 4px 12px rgba(67,56,202,.16);
}
.btn--ghost:active { background: var(--indigo-200); box-shadow: var(--sh-card); }
.btn--quiet { background: var(--bg-track); color: var(--ink-body); border-color: var(--line-strong); }
.btn--quiet:hover { background: #E4E8EF; border-color: var(--line-heavy); box-shadow: 0 3px 10px rgba(15,23,42,.10); }
.btn--quiet:active { background: #DCE1EA; box-shadow: none; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #B91C1C; box-shadow: 0 4px 12px rgba(185,28,28,.25); }
.btn--danger:active { background: #991B1B; }
.btn--onDark { background: #fff; color: var(--indigo); box-shadow: 0 2px 8px rgba(2,6,23,.35); }
.btn--onDark:hover { background: var(--indigo-50); box-shadow: 0 5px 16px rgba(2,6,23,.45); }
.btn--onDark:active { background: var(--indigo-100); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}
.btn--sm { height: 32px; padding: 0 14px; font-size: var(--fs-xs); }
.btn--lg { height: 46px; padding: 0 26px; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn--google > svg { flex: 0 0 18px; width: 18px; height: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── chips — one shape, three tint pairs ────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-chip); font-weight: 600; padding: 5px 12px;
  border-radius: var(--r-pill); white-space: nowrap; line-height: 1.3;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip--indigo { background: var(--indigo-50);  color: var(--indigo); }
.chip--sky    { background: var(--sky-100);    color: var(--sky-700); }
.chip--amber  { background: var(--amber-100);  color: var(--ink-amber); }  /* ink, not --amber */
.chip--ok     { background: var(--ok-bg);      color: var(--ok); }
.chip--danger { background: var(--danger-bg);  color: var(--danger); }
.chip--neutral{ background: var(--bg-track);   color: var(--ink-muted); }
.chip--outline{ background: #fff; color: var(--ink-muted); border: 1px solid var(--line-strong); }
.chip--onDark { background: var(--dark-chip-bg); color: var(--dark-chip-ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── stat bar ───────────────────────────────────────────────────────────── */
.track { height: 8px; border-radius: var(--r-pill); background: var(--bg-track); overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--indigo), var(--sky)); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 20px; }
.stat b { display: block; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -.03em; color: var(--indigo); }
.stat span { display: block; font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 2px; }

/* ── cards ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--sh-card);
}
.card--flat { box-shadow: none; }
.card--pad  { padding: 28px; }
.card--link { transition: border-color .15s, box-shadow .15s, transform .15s; display: block; color: inherit; }
.card--link:hover { border-color: var(--indigo-200); box-shadow: var(--sh-lift); text-decoration: none; }
.card h3 { margin-bottom: 8px; }
.card p  { font-size: var(--fs-sm); color: var(--ink-muted); }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.price { font-size: 23px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.price small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--ink-faint); letter-spacing: 0; margin-top: 2px; }

/* striped placeholder — always name the missing asset */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-subtle), var(--bg-subtle) 10px, var(--bg-track) 10px, var(--bg-track) 20px);
  border-radius: var(--r-lg); color: var(--ink-faint);
  font-family: var(--mono); font-size: var(--fs-mono); text-align: center; padding: 18px;
}

/* browser frame = three dots + a URL pill. That is the entire chrome. */
.frame { border: 1px solid var(--line-heavy); border-radius: var(--r-lg); overflow: hidden;
  background: #fff; box-shadow: var(--sh-lift); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 10px 13px;
  background: var(--surface-sunken); border-bottom: 1px solid var(--line-heavy); }
.frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
/* real traffic lights — the operator asked for colour, and it also tells you
   at a glance that this is a browser mock rather than a UI panel */
.frame-bar .dot:nth-of-type(1) { background: #EF4444; }
.frame-bar .dot:nth-of-type(2) { background: #F59E0B; }
.frame-bar .dot:nth-of-type(3) { background: #22C55E; }
.frame-bar .url { margin-left: 6px; font-family: var(--mono); font-size: var(--fs-mono);
  color: var(--ink-body); background: #fff; border: 1px solid var(--line-heavy);
  border-radius: var(--r-xs); padding: 4px 11px; }
.frame-body { padding: 18px; }
/* Skeleton bars inside a preview were --line / --line-strong, i.e. 2-4% off
   white and effectively invisible. They stand in for CONTENT, so they carry
   real ink and a size ramp instead of three identical ghosts. */
.frame-skel { height: 10px; border-radius: var(--r-pill); background: var(--line-heavy); }
.frame-skel + .frame-skel { margin-top: 9px; }
.frame-skel--2 { background: #B8C4D4; }
.frame-skel--3 { background: #C6D0DE; }

/* ── forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field > label, .label {
  display: block; font-size: var(--fs-xs); font-weight: 600;
  color: var(--ink-body); margin-bottom: 6px;
}
.field .hint { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: 6px; }   /* N-5: darkened from --ink-faint */
.field .hint b, .field .hint strong { color: var(--indigo); font-weight: 600; }
::placeholder { color: var(--ink-soft); opacity: .75; }                                 /* N-5 */
.input, .field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="number"], .field input[type="url"], .field input[type="date"],
.field input[type="search"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--surface-field); border: 1px solid var(--field-line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--ink);
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.field textarea, textarea.input { height: auto; min-height: 120px; padding: 11px 13px; line-height: 1.6; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-heavy); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface-field-on);
  border-color: var(--field-line-on); box-shadow: var(--focus);
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
/* the message/composition surface — a feature area, not a field (N-7) */
.field--compose { background: var(--surface-field); border: 1px solid var(--field-line);
  border-radius: var(--r-lg); overflow: hidden; }
.field--compose > label, .compose-h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin: 0; padding: 10px 14px; background: var(--surface-sunken);
  border-bottom: 1px solid var(--field-line); font-size: var(--fs-xs); font-weight: 700;
}
.field--compose textarea { background: var(--surface-field-on); border: 0; border-radius: 0; min-height: 150px; }
.field--compose textarea:focus { box-shadow: none; }
.field--compose:focus-within { border-color: var(--field-line-on); box-shadow: var(--focus); }
.compose-foot { display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 14px; background: var(--surface-sunken); border-top: 1px solid var(--field-line);
  font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-soft); }
.input[aria-invalid="true"], .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }

.check { display: flex; align-items: flex-start; gap: 9px; font-size: var(--fs-sm); color: var(--ink-body); }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--indigo); flex: none; }

.form-errors { background: var(--danger-bg); border: 1px solid #FCA5A5; border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 20px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.form-errors li { font-size: var(--fs-sm); color: #991B1B; }

/* the honeypot pair — visually gone, never display:none (some bots skip those) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── tables ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-heavy); border-radius: var(--r-xl); background: var(--surface-panel); max-width: 100%; box-shadow: var(--sh-card); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th {
  text-align: left; padding: 12px 16px; background: var(--surface-head);
  border-bottom: 1px solid var(--surface-head); white-space: nowrap;
  font-family: var(--mono); font-size: var(--fs-mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; color: var(--surface-head-ink);
}
.table th a { color: var(--surface-head-ink); }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink-body); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.empty {
  text-align: center; padding: 52px 24px; border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl); background: var(--bg-subtle);
}
.empty h3 { color: var(--ink-body); margin-bottom: 6px; }
.empty p { font-size: var(--fs-sm); color: var(--ink-faint); margin-bottom: 18px; }

/* ── flash ──────────────────────────────────────────────────────────────── */
.flash-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 120; width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px;
  background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--r-md); box-shadow: var(--sh-lift); font-size: var(--fs-sm); color: var(--ink-body);
}
.flash--success        { background: #DCFCE7; border-color: #16A34A; color: #14532D; }
.flash--error,
.flash--danger         { background: #FEE2E2; border-color: #DC2626; color: #7F1D1D; }
.flash--warning        { background: #FEF3C7; border-color: #D97706; color: #78350F; }
.flash--info           { background: #E0F2FE; border-color: #0284C7; color: #075985; }
.flash--success button, .flash--error button, .flash--danger button,
.flash--warning button, .flash--info button { color: inherit; opacity: .7; }
.flash button { margin-left: auto; background: none; border: 0; color: var(--ink-faint); font-size: 17px; line-height: 1; padding: 0 2px; }
.flash.hiding { opacity: 0; transition: opacity .26s; }

/* ── breadcrumb / pagination ────────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-faint); margin-bottom: 18px; }
.crumbs a { color: var(--ink-muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); border: 1px solid var(--line); color: var(--ink-muted); background: #fff; }
.pager .on { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ── prose (blog body, legal body) ──────────────────────────────────────── */
.prose { max-width: 72ch; font-size: var(--fs-md); color: var(--ink-body); line-height: 1.75; }
.prose > * + * { margin-top: 17px; }
.prose h2 { margin-top: 40px; font-size: 23px; color: var(--ink); }
.prose h3 { margin-top: 30px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 7px; }
.prose img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.prose pre { background: var(--term-bg); color: var(--term-command); border-radius: var(--r-lg); padding: 16px 18px; overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; }
.prose blockquote { background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 20px; margin: 18px 0; color: var(--ink-body); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ── utilities ──────────────────────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 34px; } .mt-5 { margin-top: 48px; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.push { margin-left: auto; }
.hr { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

@media (max-width: 640px) {
  :root { --gutter: 18px; --band-y: 40px; }  /* N-12: follows the tightened rhythm */
  .band-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav-right > .btn { display: none; }
  .nav-in { gap: 10px; }
}

@media (max-width: 640px) {
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}
@media (max-width: 420px) {
  .nav-cart { padding: 0 10px; gap: 5px; }
  .nav-cart > span:not(.n) { display: none; }   /* icon + count only */
}

/* ── consent banner (consent.js builds the markup) ──────────────────────── */
.consent {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 140;
  width: min(760px, calc(100vw - 28px));
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-2xl);
  box-shadow: var(--sh-lift); padding: 18px 20px;
}
.consent[hidden] { display: none; }
.consent-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.consent-txt { flex: 1 1 340px; font-size: var(--fs-sm); color: var(--ink-muted); }
.consent-txt b { color: var(--ink); }
.consent-btns { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 520px) { .consent-btns { width: 100%; } .consent-btns .btn { flex: 1; } }

/* ── legal TOC ──────────────────────────────────────────────────────────── */
.toc { position: sticky; top: 84px; align-self: start; }
.toc h4 { font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 10px; border-radius: var(--r-sm);
         font-size: var(--fs-sm); color: var(--ink-muted); }
.toc a:hover { color: var(--indigo); text-decoration: none; }
.toc a.on { background: var(--surface-head); color: #fff; font-weight: 700; }

/* ── FAQ accordion ──────────────────────────────────────────────────────── */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: 10px; }
.faq > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after { content: "+"; margin-left: auto; font-size: 18px; font-weight: 400; color: var(--ink-faint); line-height: 1; }
.faq[open] > summary::after { content: "\2212"; }
.faq[open] > summary { border-bottom: 1px solid var(--line); }
.faq-a { padding: 16px 18px; font-size: var(--fs-sm); color: var(--ink-muted); }
.faq-a > * + * { margin-top: 12px; }

/* ── tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--r-pill); }
.tabs a { padding: 7px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { background: #fff; color: var(--indigo); box-shadow: var(--sh-card); }

/* ── screenshot lightbox (software sales page) ──────────────────────────── */
.cept-lightbox {
  position: fixed; inset: 0; z-index: 160; display: flex;
  align-items: center; justify-content: center; padding: 40px 24px;
  background: rgba(11,18,32,.86); backdrop-filter: blur(4px);
}
.cept-lightbox[hidden] { display: none; }
.cept-lightbox figure { max-width: 1100px; width: 100%; }
.cept-lightbox img {
  width: 100%; height: auto; max-height: 78vh; object-fit: contain;
  border-radius: var(--r-lg); background: #fff; display: block;
}
.cept-lightbox figcaption { color: var(--dark-meta); margin-top: 12px; text-align: center; }
.cept-lightbox-x {
  position: absolute; top: 18px; right: 22px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.14);
  color: #fff; font-size: 24px; line-height: 1;
}
.cept-lightbox-x:hover { background: rgba(255,255,255,.24); }
.cept-shot:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

/* ── dark-band ink containment ──────────────────────────────────────────────
   .band--dark sets light ink for text sitting DIRECTLY on the dark gradient.
   But a .card inside that band is still a WHITE surface, so it must not
   inherit that ink — headings were rendering white-on-white and vanishing.
   (Found visually; every render test passed because the text was in the DOM.)
   Same for the striped placeholder and any table dropped into a dark band. */
.band--dark .card,
.band--dark .ph,
.band--dark .table-wrap { color: var(--ink); }
.band--dark .card h1, .band--dark .card h2,
.band--dark .card h3, .band--dark .card h4 { color: var(--ink); }
.band--dark .card p  { color: var(--ink-muted); }
.band--dark .card .faint { color: var(--ink-faint); }
.band--dark .card .meta  { color: var(--ink-faint); }
.band--dark .card .price { color: var(--ink); }
.band--dark .card .eyebrow { color: var(--indigo); }


/* both tones are real: no row inside a data table is pure white (N-11) */
.table--data tbody tr td { background: var(--surface-row); }
.table--data tbody tr:nth-child(even) td { background: var(--surface-row-alt); }
.table--data tbody tr { position: relative; }
.table--data tbody tr:hover td { background: var(--surface-hover); }
.table--sticky thead th { position: sticky; top: 0; z-index: 3; box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(15,23,42,.04); }
.table .cell-num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.table .cell-id  { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-soft); }
.table .cell-2nd { color: var(--ink-faint); }
/* count + filter bar above long tables */
.tablebar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tablebar .count { font-family: var(--mono); font-size: var(--fs-mono); color: var(--ink-soft);
                   background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; }
.tablebar input[type="search"] { height: 34px; padding: 0 12px; border: 1px solid var(--line-strong);
                   border-radius: var(--r-sm); font-size: var(--fs-sm); min-width: 220px; }
.tablebar input[type="search"]:focus { outline: none; border-color: var(--indigo-300); box-shadow: var(--focus); }
/* inline table actions — stacked buttons were tripling row heights (N-21) */
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.row-actions .btn { height: 28px; padding: 0 11px; font-size: var(--fs-xs); }
.chip--yes { background: var(--ok-bg); color: var(--ok); }
.chip--no  { background: var(--bg-track); color: var(--ink-soft); }

.formsec { margin-bottom: 26px; }
.formsec > .formsec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.formsec > .formsec-h h3 { font-size: var(--fs-md); font-weight: 700; }
.formsec-n { font-family: var(--mono); font-size: var(--fs-xs); color: var(--indigo); font-weight: 600; margin-right: 8px; }
.formsec-meta { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-faint); white-space: nowrap; }
/* intent tiles (N-11): bordered mini-cards, hover lift, colored selected state */
.tile-choice { position: relative; display: block; cursor: pointer; border: 1px solid var(--line-strong);
               background: #fff; border-radius: var(--r-xl); padding: 14px; min-height: 72px;
               transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease; }
.tile-choice:hover { border-color: var(--indigo-300); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.tile-choice input { position: absolute; opacity: 0; pointer-events: none; }
.tile-choice b { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink); }
.tile-choice span { display: block; font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 3px; }
.tile-choice:has(input:checked) { border-color: var(--indigo); background: var(--indigo-50); box-shadow: 0 0 0 1px var(--indigo); }
.tile-choice:has(input:focus-visible) { box-shadow: var(--focus); }
/* choice pills (N-11 timeline) */
.pill-choice { display: inline-flex; align-items: center; cursor: pointer; border: 1px solid var(--line-strong);
               background: #fff; color: var(--ink-body); border-radius: var(--r-pill); padding: 9px 18px;
               font-weight: 600; font-size: var(--fs-sm); min-height: 40px; white-space: nowrap;
               transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.pill-choice:hover { border-color: var(--indigo-300); transform: translateY(-1px); }
.pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pill-choice:has(input:checked) { border-color: var(--indigo); background: var(--indigo-50); color: var(--indigo); }
/* budget slider (N-1, spec values) */
.range-wrap { margin-top: 4px; }
.range-out { font-family: var(--mono); font-size: 19px; font-weight: 600; color: var(--indigo); }
input[type="range"].range { width: 100%; margin-top: 14px; height: 8px; accent-color: var(--indigo); cursor: pointer; }
.range-ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-faint); margin-top: 6px; }
/* live char counter */
.charcount { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-faint); text-align: right; margin-top: 4px; }
/* human check (N-11) */
.hcheck { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-subtle); padding: 14px 16px; }
.hcheck-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px;
            font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.hcheck b { font-size: var(--fs-md); font-weight: 600; color: var(--ink); }
/* structured standards card (N-3, mockup treatment) */
.stdcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-card); }
.stdcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
             padding: 14px 18px; border-bottom: 1px solid var(--line-strong); background: var(--bg-subtle); }
.stdcard-h h3 { font-size: var(--fs-md); font-weight: 700; }
.stdcard-h .sub { font-size: var(--fs-xs); color: var(--ink-muted); }
.stdcard-h .tag { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.stdcard-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline;
               padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.stdcard-row:last-child { border-bottom: 0; }
.stdcard-row b { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); display: block; }
.stdcard-row p { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: 2px; }
.stdcard-row .ok { color: var(--ok); font-family: var(--mono); font-size: var(--fs-mono); white-space: nowrap; }


.dz-queue { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.dz-qrow { display: flex; align-items: center; gap: 10px; background: var(--bg-subtle);
           border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; }
.dz-qrow img { width: 34px; height: 34px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line-strong); flex: none; }
.dz-qmeta { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--ink-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-qsize { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-soft); flex: none; }
.dz-qx { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--bg-track);
         color: var(--ink-soft); font-size: 15px; line-height: 1; cursor: pointer; }
.dz-qx:hover { background: var(--danger-bg); color: var(--danger); }
/* the public dz reuses the admin dz visual language */
.dz { display: block; cursor: pointer; text-align: center; border: 1.5px dashed var(--line-heavy);
      border-radius: var(--r-lg); background: var(--bg-subtle); padding: 22px 16px;
      transition: border-color .15s, background .15s; }
.dz:hover, .dz.dz-over { border-color: var(--indigo-300); background: var(--indigo-50); }
.dz-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dz-inner > * { pointer-events: none; }
.dz-inner [data-dz-browse] { pointer-events: auto; }
.dz-icon { color: var(--ink-faint); }
.dz-primary { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-body); }
.dz-secondary { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-soft); }
.dz-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-error { font-size: var(--fs-xs); color: var(--danger); margin-top: 8px; }


.faq-shell { display: grid; grid-template-columns: minmax(0,300px) minmax(0,1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .faq-shell { grid-template-columns: 1fr; } }
.faq-rail { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto;
            border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; padding: 10px; display: none; }
.faq-rail-grp { font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .1em;
                color: var(--ink-faint); margin: 12px 8px 6px; }
.faq-rail-grp:first-child { margin-top: 4px; }
.faq-rail-q { display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
              padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--ink-body); }
.faq-rail-q:hover { background: var(--bg-subtle); color: var(--ink); }
.faq-rail-q.on { background: var(--surface-head); color: #fff; font-weight: 700; }
.faq-term { display: none; }
[data-faq].js-on .faq-rail { display: block; }
[data-faq].js-on .faq-term { display: block; }
[data-faq].js-on .faq-plain { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.faq-plain { grid-column: 1 / -1; max-width: 860px; }


/* ── card wash utilities — reusable tinted surfaces (N-11/N-16, matches the
      /billingsky inline-gradient family; use these instead of new inline
      styles so tints stay consistent site-wide) ──────────────────────────── */
.card--wash-indigo { background: linear-gradient(160deg,#EEF2FF,#F8FAFF); border-color: var(--indigo-200); }
.card--wash-sky    { background: linear-gradient(160deg,#F0F9FF,#F8FDFF); border-color: #BAE6FD; }
.card--wash-green  { background: linear-gradient(160deg,#F0FDF4,#F7FEF9); border-color: #BBF7D0; }
.card--wash-amber  { background: linear-gradient(160deg,#FFFBEB,#FFFDF6); border-color: #FDE68A; }
.card--wash-violet { background: linear-gradient(160deg,#F5F3FF,#FBFAFF); border-color: #DDD6FE; }
.card--wash-slate  { background: linear-gradient(160deg,#F1F5F9,#F8FAFC); border-color: var(--line-heavy); }
.card--raised { box-shadow: 0 4px 16px rgba(15,23,42,.08); }

.formsec {
  background: var(--surface-alt); border: 1px solid var(--line-heavy);
  border-radius: var(--r-lg); padding: 18px 20px 20px; margin-bottom: 16px;
  position: relative; box-shadow: var(--sh-card);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
fieldset.formsec { padding-top: 16px; }
.formsec > .formsec-h, .formsec > legend.label { margin-bottom: 12px; }
.formsec .formsec-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 24px; padding: 0 7px; margin-right: 10px;
  background: var(--surface-head); border: 0; border-radius: 7px;
  color: var(--surface-head-ink); font-weight: 700;
}
.formsec:focus-within {
  background: var(--surface-panel); border-color: var(--field-line-on);
  box-shadow: 0 4px 18px rgba(67,56,202,.12);
}
.formsec:focus-within .formsec-n { background: var(--indigo); }

/* ── N-7: dropzone reads as an unmistakable ZONE ─────────────────────────── */
.dz {
  border-width: 2px; border-color: var(--indigo-300, #A5B4FC);
  background: linear-gradient(160deg, var(--indigo-50), #FDFDFF);
  padding: 26px 18px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.dz .dz-icon { color: var(--indigo); }
.dz:hover, .dz.dz-over {
  border-color: var(--indigo); background: var(--indigo-100);
  box-shadow: 0 4px 16px rgba(67,56,202,.14);
}

/* ── N-7: structured steps card (What happens next + rail modules) ───────── */
.stepcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-card); }
.stepcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 14px 18px; background: var(--bg-subtle); border-bottom: 1px solid var(--line); }
.stepcard-h h3 { font-size: var(--fs-md); }
.stepcard-h .tag { font-family: var(--mono); font-size: var(--fs-micro); color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .08em; }
.stepcard-row { display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.stepcard-row:last-child { border-bottom: 0; }
.stepcard-row .n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  background: var(--indigo-50); border: 1px solid var(--indigo-200);
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 700; color: var(--indigo);
}
.stepcard-row p { color: var(--ink-muted); }
.stepcard-row b { color: var(--ink); }

/* ── N-11: link-rows card (contact "Faster routes") ──────────────────────── */
.linkrows { display: flex; flex-direction: column; margin: 0 -8px; }
.linkrows a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--r-md); font-weight: 600; font-size: var(--fs-sm);
  transition: background .12s, padding-left .12s;
}
.linkrows a:hover { background: rgba(255,255,255,.75); padding-left: 18px; text-decoration: none; }
.linkrows a::after { content: "\2192"; color: var(--indigo); font-weight: 400; }

/* ── N-14: marketplace filter panel — contained, tinted, alive ───────────── */
.filterpanel {
  background: linear-gradient(175deg, var(--indigo-50), #FBFCFF 40%);
  border: 1px solid var(--indigo-200); border-radius: var(--r-xl);
  padding: 20px; box-shadow: var(--sh-card);
}
.filterpanel .label, .filterpanel legend.label {
  display: block; padding: 5px 10px; margin: 0 0 8px;
  background: rgba(255,255,255,.8); border: 1px solid var(--line);
  border-radius: var(--r-sm); font-family: var(--mono);
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: .08em;
  color: var(--indigo);
}
.filterpanel .check { border-radius: var(--r-sm); padding: 4px 8px; margin: 0 -8px;
  transition: background .12s; }
.filterpanel .check:hover { background: rgba(255,255,255,.85); }
.filterpanel .check input:checked + span { color: var(--indigo); font-weight: 700; }
.filterpanel [data-f-busy] { display: none; }
.filterpanel.is-busy [data-f-busy] { display: inline-block; }

/* ── N-15: inline field validation states ────────────────────────────────── */
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.10);
}
.field.is-valid input, .field.is-valid textarea {
  border-color: #86EFAC;
}
.field-live-err {
  display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--danger); font-weight: 600;
}
.field.is-invalid .field-live-err { display: block; }

/* grid dimmed while an auto-applied filter round-trips (N-14) */
.is-refreshing { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* v5 N-18 — the advertiser door. Was an inline-styled grey word lost between
   BUILD and SYSTEM NOMINAL; it is a revenue entry point, so it reads as a
   control. Sized to sit inside the 34px sysbar. */
.sysbar-cta {
  display: inline-flex; align-items: center; height: 22px; padding: 0 11px;
  border-radius: var(--r-pill); background: var(--indigo); color: #fff;
  font-family: var(--mono); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .06em; border: 1px solid var(--indigo);
  transition: background .15s, box-shadow .15s, transform .12s;
}
.sysbar-cta:hover { background: #3730A3; color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(49,46,129,.35); }
.sysbar-cta:active { transform: translateY(0); background: #312E81; }
@media (prefers-reduced-motion: reduce) { .sysbar-cta, .sysbar-cta:hover { transform: none; } }

.acct-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.acct-fork .tile-choice { text-decoration: none; }
.acct-fork .tile-choice.is-on {
  border-color: var(--indigo); background: var(--indigo-50);
  box-shadow: 0 0 0 1px var(--indigo);
}
.acct-fork .tile-choice.is-on b::after {
  content: " ✓"; color: var(--indigo);
}
@media (max-width: 560px) { .acct-fork { grid-template-columns: 1fr; } }

.acct-head {
  position: relative; overflow: hidden; margin-bottom: 22px;
  padding: 24px 26px; border-radius: var(--r-2xl);
  background: linear-gradient(120deg, var(--surface-head) 0%, var(--surface-head-2) 100%);
  border: 1px solid var(--surface-head-2); box-shadow: var(--sh-pop);
}
.acct-head-row { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.acct-head .eyebrow { color: var(--indigo-400); }
.acct-head h1 { margin: 4px 0 0; color: var(--surface-head-ink);
  font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; }
.acct-head p { margin: 6px 0 0; color: var(--surface-head-dim); font-size: var(--fs-sm); max-width: 62ch; }
.acct-head .btn--quiet { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.acct-head .btn--quiet:hover { background: rgba(255,255,255,.18); }

.acct-kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.acct-kpi {
  padding: 16px 18px; border-radius: var(--r-xl);
  background: var(--surface-panel); border: 1px solid var(--line);
  box-shadow: var(--sh-card); transition: transform .18s ease, box-shadow .18s ease;
}
.acct-kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.acct-kpi .l { font-family: var(--mono); font-size: var(--fs-micro);
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.acct-kpi .v { margin-top: 6px; font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.acct-kpi .d { margin-top: 4px; font-size: var(--fs-xs); color: var(--ink-muted); }
.acct-kpi.is-live { border-color: var(--amber); background: var(--surface-alt); }
.acct-kpi.is-live .d { color: #92400E; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .acct-kpi:hover { transform: none; } }

[data-motion="on"] .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.22,.9,.3,1) var(--reveal-delay, 0ms),
              transform .55s cubic-bezier(.22,.9,.3,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-motion="on"] .reveal.is-in { opacity: 1; transform: none; }
/* Belt and braces: even if the attribute were set by mistake, a
   reduced-motion visitor never sees a transform. */
@media (prefers-reduced-motion: reduce) {
  [data-motion="on"] .reveal { opacity: 1; transform: none; transition: none; }
}

/* v6 N-9 — current page in the account head. Inverted fill, never a bar. */
.acct-nav-on {
  background: #FFFFFF; color: var(--surface-head);
  border: 1px solid #FFFFFF; font-weight: 700; cursor: default;
}
.acct-nav-on:hover { transform: none; box-shadow: none; }

.field label .req, label .req { color: var(--ink-muted); font-weight: 700; }

.turnstile-slot { min-height: 68px; margin-bottom: 16px; }
.turnstile-slot .cf-turnstile { display: flex; justify-content: center; }

/* The auth card is 460px capped with 24px shell padding and 23px card padding,
   so the usable row is viewport - 94px. MEASURED on the rig:
     320px -> 226px    360px -> 266px    390px -> 296px    414px -> 320px
   The widget's floor is 300px, so it does not fit on the majority of phones --
   an iPhone 12/13/14 (390px) is 4px short. Scaling it down is the fix; letting
   it scroll sideways is not, because a challenge you have to swipe to see is a
   challenge some people will not finish, and this is the last control before
   the submit button.
   transform-origin is `center top` so the shrink stays centred under the
   button, and a transform does not change the layout box -- it changes the
   scrollable overflow area, which is exactly the thing the overflow gate
   measures. Each step is (viewport - 94) / 300, rounded DOWN. */
@media (max-width: 400px) {
  .turnstile-slot .cf-turnstile { transform-origin: center top; transform: scale(0.98); }
}
@media (max-width: 380px) {
  .turnstile-slot .cf-turnstile { transform: scale(0.94); }
}
@media (max-width: 360px) {
  .turnstile-slot .cf-turnstile { transform: scale(0.88); }
}
@media (max-width: 340px) {
  .turnstile-slot .cf-turnstile { transform: scale(0.81); }
}
@media (max-width: 320px) {
  .turnstile-slot .cf-turnstile { transform: scale(0.74); }
}

@media (max-width: 640px) {
  /* .diagram-foot holds sentences ("One operator, seven repeatable stages");
     nowrap made one 331px wide inside a 230px container. */
  .diagram-foot .chip { white-space: normal; text-align: left; }
  /* "optional · up to 5 · 20MB each" is a hint under a form heading. */
  .formsec-meta { white-space: normal; }
}
