/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.u-figure { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
/* Customer-supplied strings — emails and bare domains — carry no break
   opportunities, so at 320px they push the layout sideways unless told to
   break mid-word. Headings get this from the h1-h4 rule above. */
.u-wrap { overflow-wrap: anywhere; min-width: 0; }
.u-hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ==========================================================================
   BUTTONS  ·  8 states
   ========================================================================== */
.btn {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding-inline: var(--space-lg);
  border: none;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  letter-spacing: -0.015em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    transform var(--dur-micro) var(--ease-out),
    opacity var(--dur-micro) var(--ease-out);
}
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-ink-2);
  box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule);
}
.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--color-accent-deep);
  min-height: 44px;
  padding-inline: var(--space-sm);
  font-size: var(--text-base);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover           { background: var(--color-accent-deep); }
  .btn--ghost:hover    { background: var(--color-paper-2); }
  .btn--quiet:hover    { background: var(--color-accent-wash); }
}
.btn[hidden] { display: none; }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.btn[data-state="loading"] { pointer-events: none; }
.btn[data-state="loading"] .btn__label { opacity: 0.55; }
.btn[data-state="error"]   { --btn-bg: var(--color-ink); }
.btn[data-state="success"] { --btn-bg: var(--color-signal); }
.btn__spin {
  display: none;
  width: 1em; height: 1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn[data-state="loading"] .btn__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   FUNNEL SHELL
   ========================================================================== */
.funnel {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* --- progress rail (N9-style: edge-aligned, no link row) ----------------- */
.rail {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in oklab, var(--color-paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
  padding: var(--space-sm) clamp(var(--space-md), 5vw, var(--space-xl));
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
}
.rail__top {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
}
.rail__back {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-inline-start: calc(var(--space-sm) * -1);
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-pill);
  color: var(--color-ink-2);
  transition: background-color var(--dur-micro) var(--ease-out);
}
@media (hover: hover) { .rail__back:hover { background: var(--color-paper-2); } }
.rail__back[hidden] { visibility: hidden; display: grid; }
/* Wordmark — the word standing on its own ground line. The rule is the whole
   logo; there is no separate icon beside it. Everything scales in em. */
.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-md);
  letter-spacing: -0.045em;
  line-height: 1.15;
  white-space: nowrap;
  padding-bottom: 0.3em;
}
.wordmark::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 0.135em;
  min-height: 2px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}
.rail__step {
  margin-inline-start: auto;
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rail__bar {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-2xs);
  margin-top: var(--space-xs);
}
.rail__seg {
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-rule);
  overflow: hidden;
}
.rail__seg::after {
  content: "";
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width var(--dur-long) var(--ease-out);
}
.rail__seg[data-fill="full"]::after { width: 100%; }
.rail__seg[data-fill="half"]::after { width: 50%; }

/* --- stage ---------------------------------------------------------------- */
.stage-wrap {
  display: grid;
  align-items: start;
  padding: var(--space-xl) clamp(var(--space-md), 5vw, var(--space-xl)) var(--space-2xl);
}
.stage {
  display: none;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}
.stage.is-on {
  display: block;
  animation: advance var(--dur-long) var(--ease-out) both;
}
@keyframes advance {
  from { opacity: 0; transform: translate3d(14px, 0, 0); }
  to   { opacity: 1; transform: none; }
}
.stage__kicker {
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-sm);
}
.stage__q {
  font-size: var(--text-display-s);
  text-wrap: balance;
}
.stage__sub {
  margin-top: var(--space-sm);
  color: var(--color-ink-2);
  font-size: var(--text-md);
  max-width: 34ch;
}
.stage__body { margin-top: var(--space-xl); }

/* --- pinned action bar (C4) ----------------------------------------------
   Solid, hairline-topped, pinned to the viewport bottom at every width.
   A translucent gradient reads as a rendering fault once content scrolls
   underneath it — the bar has to be a real surface.                      */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--color-surface);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding: var(--space-md) clamp(var(--space-md), 5vw, var(--space-xl));
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
}
.actionbar__inner {
  max-width: 32rem;
  margin-inline: auto;
  display: grid;
  gap: var(--space-2xs);
  justify-items: center;
}
.actionbar__note {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-align: center;
}

/* ==========================================================================
   FORM PARTS
   ========================================================================== */
.field { display: grid; gap: var(--space-xs); }
.field__label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-ink-2);
}
.input {
  width: 100%;
  min-height: 56px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-field);
  font-size: var(--text-md);
  transition: border-color var(--dur-micro) var(--ease-out),
              box-shadow var(--dur-micro) var(--ease-out);
}
.input::placeholder { color: var(--color-muted); }
.input:hover, .input.is-hover { border-color: var(--color-ink-2); }
.input:focus-visible, .input.is-focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-wash);
}
.input[disabled] { opacity: 0.5; cursor: not-allowed; }
.input[aria-invalid="true"] { border-color: var(--color-accent-deep); }
.input__prefix {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-field);
  overflow: hidden;
}
.input__prefix:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-wash);
}
.input__prefix span {
  padding-inline: var(--space-sm);
  color: var(--color-muted);
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  border-inline-end: var(--rule-hair) solid var(--color-rule-2);
  align-self: stretch;
  display: grid;
  place-items: center;
}
.input__prefix .input {
  border: none; box-shadow: none; border-radius: 0; background: transparent;
  font-size: var(--text-base);
  padding-inline: var(--space-sm);
  min-width: 0;
}
.input__prefix .input:focus-visible { box-shadow: none; }
.err {
  font-size: var(--text-sm);
  color: var(--color-accent-deep);
  display: flex;
  gap: var(--space-2xs);
  align-items: center;
}
.err[hidden] { display: none; }
.notice {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-field);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
}

/* --- choice cards --------------------------------------------------------- */
.choices { display: grid; gap: var(--space-sm); }
.choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  min-height: 60px;
  padding: var(--space-md);
  text-align: start;
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .choice:hover { border-color: var(--color-ink-2); }
}
.choice:active { transform: translateY(1px); }
.choice[aria-pressed="true"], .choice.is-picked {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
}
.choice:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
}
.choice__name { font-weight: 600; letter-spacing: -0.01em; }
.choice__meta {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  margin-top: var(--space-3xs);
}
.choice__tick {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-rule);
  display: grid; place-items: center;
  color: transparent;
  transition: border-color var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out);
}
.choice[aria-pressed="true"] .choice__tick,
.choice.is-picked .choice__tick,
.choice:has(input:checked) .choice__tick {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* --- budget cards (grid-break: recommended card is wider on desktop) ------ */
.budgets { display: grid; gap: var(--space-sm); }
.budget {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-md);
  row-gap: var(--space-2xs);
  padding: var(--space-md);
  text-align: start;
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.budget:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .budget:hover { border-color: var(--color-ink-2); }
}
.budget[aria-checked="true"], .budget:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-accent-wash);
}
.budget__leads {
  grid-column: 1;
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.budget__leads small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0;
}
.budget__cost {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: var(--space-2xs);
  color: var(--color-muted);
  font-family: var(--font-figure);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.budget__cost small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0;
  white-space: normal;
}
.budget__line {
  grid-column: 1 / -1;
  display: block;
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.budget__line b { color: var(--color-ink); font-weight: 600; }
.budget__flag {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  background: var(--color-accent);
  padding: 3px var(--space-xs);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.budget--custom .budget__leads { font-size: var(--text-md); font-weight: 600; }

.research-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.research-stat {
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}
.research-stat__k {
  display: block;
  margin-bottom: var(--space-2xs);
  color: var(--color-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.research-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
}
@media (max-width: 560px) {
  .research-summary { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SCAN / RESEARCH BEATS
   ========================================================================== */
.beat { text-align: start; }
.beat__site {
  font-family: var(--font-figure);
  font-size: var(--text-sm);
  color: var(--color-muted);
  word-break: break-all;
}
.meter {
  height: 6px;
  margin-top: var(--space-lg);
  background: var(--color-rule);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: width 600ms linear;
}
.ticks { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.ticks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: center;
  color: var(--color-muted);
  font-size: var(--text-md);
  opacity: 0.45;
  transition: opacity var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.ticks li.is-done { opacity: 1; color: var(--color-ink); }
.ticks .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-rule);
  display: grid; place-items: center;
  color: transparent;
}
.ticks li.is-done .dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

/* ==========================================================================
   INTERSTITIALS
   ========================================================================== */
.inter { padding-block: var(--space-lg); }
.inter__eye {
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}
.inter__say {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.inter__say em { font-style: normal; color: var(--color-accent-deep); }
.inter__then {
  margin-top: var(--space-md);
  color: var(--color-ink-2);
  max-width: 40ch;
}
.inter__art { margin-top: var(--space-xl); }
.inter__art svg { display: block; width: 100%; height: auto; max-width: 24rem; }

/* proof — borrowed credibility from UpHex, the platform underneath */
.proof {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
}
.proof__src {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.proof__src b {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  color: var(--color-ink);
}
.proof__line {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  max-width: 46ch;
  line-height: 1.45;
}
.proof__strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}
.proof__v {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.proof__v[data-empty="true"] { color: var(--color-rule); }
.proof__k {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2xs);
  line-height: 1.35;
}
.proof__todo {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--color-rule);
  font-family: var(--font-figure);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PLAN / PAY
   ========================================================================== */
.receipt {
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-lg) var(--space-md);
}
.receipt__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: baseline;
  padding-block: var(--space-sm);
}
.receipt__row + .receipt__row { border-top: var(--rule-hair) solid var(--color-rule-2); }
/* Matched against the adjacent-sibling rule above, which otherwise wins on
   specificity and leaves the total sitting under the same faint hairline as
   every other line. The total has to read as the total. */
.receipt__row + .receipt__row--total { border-top: 1.5px solid var(--color-ink); }
.receipt__row--total { border-top: 1.5px solid var(--color-ink); margin-top: var(--space-xs); }
.receipt__k { color: var(--color-ink-2); font-size: var(--text-sm); }
.receipt__k b { display: block; color: var(--color-ink); font-size: var(--text-base); font-weight: 600; }
.receipt__v {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.receipt__row--total .receipt__v { font-size: var(--text-lg); font-weight: 700; }

.paygrid { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.paygrid__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.paynote {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: flex; gap: var(--space-xs); align-items: flex-start;
}

/* ==========================================================================
   DONE  ·  post-account holding screen
   Hallmark component-scope · philosophy 5 · hierarchy 5 · execution 4 ·
   specificity 5 · restraint 5 · variety 4

   Three rules hold this screen together, and all three are subtractive.
   Nothing reports build progress, because no build has started. Nothing
   celebrates, because the customer spent money and dignity beats confetti.
   Nothing is clickable, because there is genuinely nothing for them to do
   yet. What is left is a receipt, a promise, and the address the promise
   gets kept at — so the only emphasis in the stack is the two-day line.
   ========================================================================== */
.done__promise {
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-ink);
}
.done__line {
  margin-top: var(--space-2xs);
  color: var(--color-ink-2);
  max-width: 40ch;
}
.done__help {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-muted);
  max-width: 44ch;
}

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dash { display: none; min-height: 100dvh; }
.dash.is-on { display: block; }
.dash__demo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0 clamp(var(--space-md), 5vw, var(--space-xl)) var(--space-lg);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-field);
  background: var(--color-paper-2);
  border: 1px dashed var(--color-rule);
  color: var(--color-ink-2);
  font-family: var(--font-figure);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.dash__demo svg { flex: none; }
/* Two rows on phones: brand chrome up top, client identity beneath it.
   From 60rem the left rail carries the brand, so this collapses to one row. */
.dash__head {
  padding: var(--space-lg) clamp(var(--space-md), 5vw, var(--space-xl)) var(--space-md);
  padding-top: max(var(--space-lg), calc(env(safe-area-inset-top) + var(--space-lg)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-sm);
  row-gap: var(--space-sm);
}
.dash__brand { grid-column: 1; grid-row: 1; justify-self: start; }
.dash__head .avatar { grid-column: 2; grid-row: 1; margin-inline-start: 0; }
.dash__head .jump__btn { grid-column: 3; grid-row: 1; }
.dash__biz { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.dash__biz b { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.dash__biz span { font-size: var(--text-sm); color: var(--color-muted); }
.avatar {
  margin-inline-start: auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-accent-wash);
  color: var(--color-accent-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  flex: none;
}
.dash__main { padding: 0 clamp(var(--space-md), 5vw, var(--space-xl)) 7.5rem; }
.view { display: none; }
.view.is-on { display: block; animation: advance var(--dur-short) var(--ease-out) both; }
.view__h {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}
.view__sub { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-lg); }

/* activation banner */
.activate {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-ink);
  color: var(--color-paper);
  margin-bottom: var(--space-lg);
}
.activate h3 { color: var(--color-paper); font-size: var(--text-md); }
.activate p { color: color-mix(in oklab, var(--color-paper) 76%, transparent); font-size: var(--text-sm); }
.activate .btn { --btn-bg: var(--color-paper); --btn-fg: var(--color-ink); min-height: 46px; }
@media (hover: hover) and (pointer: fine) {
  .activate .btn:hover { background: var(--color-surface); }
}

/* headline metric — grid-break: spans full width, oversized figure */
.headline {
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  box-shadow: var(--shadow-whisper);
}
.headline__k { font-size: var(--text-sm); color: var(--color-muted); }
.headline__v {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: var(--space-xs);
}
.delta {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--color-signal);
  margin-inline-start: var(--space-sm);
  vertical-align: middle;
  white-space: nowrap;
}
.delta--flat { color: var(--color-muted); }

/* uneven stat blocks — never three equal cards */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}
.stats > :nth-child(3) { grid-column: 1 / -1; }
.stat {
  padding: var(--space-md);
  border-radius: var(--radius-card);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-surface);
  min-width: 0;
}
.stat__k { font-size: var(--text-xs); color: var(--color-muted); }
.stat__v {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-top: var(--space-2xs);
}
.stat__note { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-3xs); }

.chartcard {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  border-radius: var(--radius-card);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-surface);
}
.chartcard__h {
  display: flex; align-items: baseline; gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.chartcard__h b { font-family: var(--font-display); letter-spacing: -0.02em; }
.chartcard__h span { margin-inline-start: auto; font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }
.chart { display: block; width: 100%; height: auto; }
.chart__grid { stroke: var(--color-rule-2); stroke-width: 1; }
.chart__bar { fill: var(--color-rule); }
.chart__bar--hot { fill: var(--color-accent); }
.chart__lbl { fill: var(--color-muted); font-family: var(--font-figure); font-size: 9px; }

/* section heads — single column, stacked, no eyebrow-left */
.sec { margin-top: var(--space-xl); }
.sec__t { font-size: var(--text-md); margin-bottom: var(--space-sm); }

/* rows (F3 tabular spec-sheet register) */
.rows { border-top: var(--rule-hair) solid var(--color-rule); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: var(--space-sm) 0;
  text-align: start;
  background: none;
  border: none;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--color-paper-2); }
}
.row__main { min-width: 0; }
.row__t { display: block; font-weight: 600; letter-spacing: -0.01em; }
.row__m {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-3xs);
  line-height: 1.4;
}
.row__v { text-align: end; white-space: nowrap; }
.row__v b {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.row__v span { display: block; font-size: var(--text-xs); color: var(--color-muted); }

.pill {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 2px var(--space-xs);
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  white-space: nowrap;
}
.pill--live { background: var(--color-accent-wash); color: var(--color-accent-deep); }
.pill--new  { background: var(--color-ink); color: var(--color-paper); }

/* landing page cards — figure, no fake browser chrome */
.pages { display: grid; gap: var(--space-md); }
.page {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
}
.page__thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--color-paper-2);
  border-bottom: var(--rule-hair) solid var(--color-rule);
  display: grid;
  place-items: center;
  padding: var(--space-md);
}
.page__thumb svg { width: 100%; height: 100%; }
.page__body { padding: var(--space-md); }
.page__row { display: flex; gap: var(--space-lg); margin-top: var(--space-sm); }
.page__row div { min-width: 0; }
.page__row b {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page__row span { display: block; font-size: var(--text-xs); color: var(--color-muted); }

/* leads */
.lead__who { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.lead__ini {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  display: grid; place-items: center;
  font-size: var(--text-sm); font-weight: 600;
}

/* messages */
.thread { display: grid; gap: var(--space-md); margin-bottom: var(--space-lg); }
.msg { max-width: 85%; }
.msg__b {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  font-size: var(--text-base);
}
.msg__t { font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-2xs); }
.msg--me { margin-inline-start: auto; }
.msg--me .msg__b { background: var(--color-accent-wash); border-color: var(--color-accent-wash); }
.msg--me .msg__t { text-align: end; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.composer .btn { min-height: 56px; padding-inline: var(--space-md); }

/* ---------- campaign: ad groups, keywords, ads ---------- */
.grp {
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  margin-top: var(--space-sm);
  overflow: hidden;
}
.grp > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--space-sm);
  min-height: 64px;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  list-style: none;
}
.grp > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .grp > summary:hover { background: var(--color-paper-2); } }
.grp__name { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.grp__meta { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-3xs); }
.grp__chev { color: var(--color-muted); transition: transform var(--dur-short) var(--ease-out); }
.grp[open] > summary .grp__chev { transform: rotate(180deg); }
.grp__body { padding: 0 var(--space-md) var(--space-md); }
.grp__why {
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-paper-2);
  border-radius: var(--radius-field);
  line-height: 1.5;
}

.kwhead {
  display: flex; align-items: baseline; gap: var(--space-xs);
  margin: var(--space-md) 0 var(--space-xs);
}
.kwhead b { font-size: var(--text-sm); font-family: var(--font-display); letter-spacing: -0.01em; }
.kwhead span { font-size: var(--text-xs); color: var(--color-muted); }
.kws { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.kw {
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  padding: 4px var(--space-xs);
  border-radius: var(--radius-field);
  background: var(--color-paper-2);
  color: var(--color-ink-2);
  white-space: nowrap;
}
.kw--exact  { background: var(--color-accent-wash); color: var(--color-accent-deep); }
.kw--broad  { background: transparent; box-shadow: inset 0 0 0 1px var(--color-rule); }
.kw--cut    { background: transparent; box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-muted); text-decoration: line-through; }

.cut { margin-top: var(--space-sm); display: grid; gap: var(--space-xs); }
.cut li { display: grid; gap: 2px; font-size: var(--text-sm); }
.cut b { font-family: var(--font-figure); font-size: var(--text-xs); color: var(--color-muted); text-decoration: line-through; }
.cut span { color: var(--color-ink-2); }

/* Ad preview — a plain framed block, not a fake Google SERP */
.adprev {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-field);
  background: var(--color-paper);
}
.adprev__tag {
  font-family: var(--font-figure);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.adprev__url { font-size: var(--text-sm); color: var(--color-ink-2); margin-top: var(--space-xs); word-break: break-all; }
.adprev__h { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-xs); }
.adprev__h span {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent-deep);
  background: var(--color-accent-wash);
  padding: 3px var(--space-xs);
  border-radius: var(--radius-field);
}
.adprev__d { margin-top: var(--space-sm); display: grid; gap: var(--space-2xs); }
.adprev__d p { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- bottom sheet (approve + pay) ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: end center;
  background: var(--color-scrim);
}
.sheet[hidden] { display: none; }
.sheet__panel {
  width: min(30rem, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: max(var(--space-lg), env(safe-area-inset-bottom));
  animation: sheetup var(--dur-long) var(--ease-out) both;
}
@keyframes sheetup { from { transform: translate3d(0, 18px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__h { display: flex; align-items: flex-start; gap: var(--space-sm); margin-bottom: var(--space-md); }
.sheet__h h3 { font-size: var(--text-lg); }
.sheet__h p { font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-2xs); }
.sheet__x {
  margin-inline-start: auto;
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
}
@media (hover: hover) { .sheet__x:hover { background: var(--color-paper-2); } }
@media (min-width: 48rem) {
  .sheet { place-items: center; padding: var(--space-lg); }
  .sheet__panel { border-radius: var(--radius-card); }
  @keyframes sheetup { from { transform: translate3d(0, 10px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- tasks ---------- */
.tasks { border-top: var(--rule-hair) solid var(--color-rule); margin-top: var(--space-sm); }
.task {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: start;
  width: 100%;
  min-height: 64px;
  padding: var(--space-sm) 0;
  text-align: start;
  background: none; border: none;
  border-bottom: var(--rule-hair) solid var(--color-rule);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .task:hover { background: var(--color-paper-2); } }
.task__box {
  width: 24px; height: 24px; margin-top: 2px;
  border-radius: 7px;
  border: 2px solid var(--color-rule);
  display: grid; place-items: center;
  color: transparent;
  transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out);
}
.task[aria-pressed="true"] .task__box {
  background: var(--color-signal); border-color: var(--color-signal); color: var(--color-paper);
}
.task__t { display: block; font-weight: 600; letter-spacing: -0.01em; }
.task[aria-pressed="true"] .task__t { color: var(--color-muted); text-decoration: line-through; }
.task__m { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-3xs); line-height: 1.4; }

/* ---------- build progress ---------- */
.build { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.build__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.build__dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-rule);
  display: grid; place-items: center;
  color: transparent;
}
.build__row[data-s="done"] .build__dot { background: var(--color-signal); border-color: var(--color-signal); color: var(--color-paper); }
.build__row[data-s="now"] .build__dot { border-color: var(--color-accent); border-style: dashed; }
.build__t { font-weight: 500; }
.build__row[data-s="wait"] .build__t { color: var(--color-muted); }
.build__w { font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }

/* ---------- tracking ---------- */
.status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
}
.status__dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--color-paper-2);
  color: var(--color-signal);
  flex: none;
}
.status__t { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.status__m { display: block; font-size: var(--text-sm); color: var(--color-muted); margin-top: var(--space-3xs); }

.card {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
}
.card__h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  margin-bottom: var(--space-xs);
}
.card__h b { font-family: var(--font-display); letter-spacing: -0.02em; }
.card__h .btn { margin-inline-start: auto; }
.card__p { font-size: var(--text-sm); color: var(--color-muted); max-width: 56ch; }

/* Real code, plain container. No fake editor chrome. */
.snippet {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-ink);
  border-radius: var(--radius-field);
  overflow-x: auto;
}
.snippet pre {
  margin: 0;
  font-family: var(--font-figure);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: var(--color-paper);
  white-space: pre;
}
/* Hierarchy by weight, not a second hue — the values are what matters. */
.snippet .tok { opacity: 0.58; }
.btn--sm { min-height: 44px; font-size: var(--text-sm); padding-inline: var(--space-md); }

/* ---------- analytics ---------- */
.sources { display: grid; gap: var(--space-sm); margin-top: var(--space-sm); }
.source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-sm);
  align-items: baseline;
}
.source__k { font-size: var(--text-sm); }
.source__v {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.source__bar {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-rule);
  overflow: hidden;
}
.source__bar i { display: block; height: 100%; background: var(--color-ink-2); border-radius: var(--radius-pill); }
.source--paid .source__bar i { background: var(--color-accent); }

/* app nav — bottom tab bar on phones, left rail from 768px */
.tabs {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: color-mix(in oklab, var(--color-paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  min-width: 0;
  padding: var(--space-xs) 2px;
  border: none; background: none; cursor: pointer;
  color: var(--color-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease-out);
}
.tab[aria-selected="true"] { color: var(--color-accent-deep); }
.tab__ico { display: block; }
/* Six items don't fit at 320px with full labels — the phone bar uses short
   ones, the desktop rail uses the real names. */
.tab__full { display: none; }
.tab__short { display: block; }
/* Brand sits at the head of the rail on desktop only — on phones the tab bar
   is a 4-up grid and a fifth cell would break it. */
.tabs__brand { display: none; }
.dash__foot {
  border-top: var(--rule-hair) solid var(--color-rule);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xs);
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-muted);
}
.dash__foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  white-space: nowrap;
  text-underline-offset: 3px;
}
@media (hover: hover) { .dash__foot a:hover { color: var(--color-accent-deep); } }

/* ==========================================================================
   MOCKUP-ONLY SCREEN JUMPER
   ========================================================================== */
.jump__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid var(--color-rule);
  background: var(--color-surface);
  color: var(--color-muted);
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease-out),
              background-color var(--dur-micro) var(--ease-out);
}
@media (hover: hover) { .jump__btn:hover { color: var(--color-ink); background: var(--color-paper-2); } }
.jump__btn[aria-expanded="true"] { color: var(--color-ink); background: var(--color-paper-2); }

.jump {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--space-lg);
  background: var(--color-scrim);
}
.jump[hidden] { display: none; }
.jump__menu {
  width: min(20rem, 100%);
  max-height: 80dvh;
  overflow-y: auto;
  background: var(--color-surface);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: var(--space-2xs) var(--space-2xs) var(--space-sm);
}
.jump__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
}
.jump__head b { font-family: var(--font-display); letter-spacing: -0.02em; }
.jump__head span { font-size: var(--text-xs); color: var(--color-muted); }
.jump__x {
  margin-inline-start: auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
}
@media (hover: hover) { .jump__x:hover { background: var(--color-paper-2); } }
.jump__i {
  display: block; width: 100%;
  min-height: 38px;
  padding: var(--space-xs) var(--space-sm);
  text-align: start;
  border: none; background: none; cursor: pointer;
  border-radius: var(--radius-field);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  white-space: nowrap;
}
@media (hover: hover) { .jump__i:hover { background: var(--color-paper-2); } }
.jump__sep {
  font-family: var(--font-figure);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-sm) var(--space-2xs);
}

/* ==========================================================================
   ≥ 48rem  ·  tablet
   ========================================================================== */
@media (min-width: 48rem) {
  .stage-wrap { padding-block: var(--space-3xl) var(--space-2xl); }
  .stage__q { font-size: var(--text-display); }
  .actionbar { padding-block: var(--space-lg); }
  .actionbar__inner { justify-items: start; gap: var(--space-xs); }
  .actionbar__note { text-align: start; }
  .btn--block { width: auto; min-width: 15rem; }
  .budgets { gap: var(--space-md); }
  .paygrid__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ==========================================================================
   ≥ 60rem  ·  desktop — dashboard gains a left rail
   ========================================================================== */
@media (min-width: 60rem) {
  .dash.is-on {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
  }
  .tabs {
    position: sticky;
    top: 0;
    inset-inline: auto;
    bottom: auto;
    height: 100dvh;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    align-content: start;
    gap: var(--space-2xs);
    border-top: none;
    border-inline-end: var(--rule-hair) solid var(--color-rule);
    padding: var(--space-xl) var(--space-sm);
    background: var(--color-paper);
    backdrop-filter: none;
  }
  .tabs__brand {
    display: block;
    padding: 0 var(--space-sm) var(--space-xl);
  }
  .tabs__brand .wordmark { font-size: var(--text-lg); }
  .dash__brand { display: none; }
  .dash__head { row-gap: 0; }
  .dash__biz { grid-column: 1; grid-row: 1; }
  .dash__head .avatar,
  .dash__head .jump__btn { grid-row: 1; }
  .tab {
    grid-auto-flow: column;
    grid-template-columns: 22px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: var(--space-sm);
    min-height: 46px;
    padding-inline: var(--space-sm);
    border-radius: var(--radius-field);
    font-size: var(--text-base);
  }
  .tab[aria-selected="true"] { background: var(--color-accent-wash); }
  .tab__full { display: block; }
  .tab__short { display: none; }
  /* Tracking is configuration, not a daily surface — hold it apart. */
  .tab--setup {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: var(--rule-hair) solid var(--color-rule);
    border-radius: 0 0 var(--radius-field) var(--radius-field);
  }
  .dash__pane { min-width: 0; }
  .dash__main { padding-bottom: var(--space-2xl); max-width: 58rem; }
  .stats { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
  .stats > :nth-child(3) { grid-column: auto; }
  .pages { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .activate {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: var(--space-lg);
  }
  .chart { max-width: 34rem; }
  .headline { padding: var(--space-xl) var(--space-lg); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .stage.is-on, .view.is-on { animation: fadeonly 150ms linear both; }
  @keyframes fadeonly { from { opacity: 0; } to { opacity: 1; } }
  .btn__spin { animation-duration: 1400ms !important; animation-iteration-count: infinite !important; }
}
