/* =============================================================
   CABOO · CANON — system.css
   Base + components. Reads from tokens.css. Link order:
     <link rel="stylesheet" href="assets/css/tokens.css" />
     <link rel="stylesheet" href="assets/css/system.css" />
   Geist + Geist Mono load from Google Fonts in each page <head>.
   Arizona Flare is self-hosted below. url() paths are relative
   to THIS file (assets/css/), so fonts/img resolve via ../ .
   ============================================================= */

/* ---- ABC Arizona Flare (self-hosted, display voice) ---- */
@font-face {
  font-family: "ABC Arizona Flare";
  font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/ABCArizonaFlare-Light.ttf") format("truetype");
}
@font-face {
  font-family: "ABC Arizona Flare";
  font-weight: 300; font-style: italic; font-display: swap;
  src: url("../fonts/ABCArizonaFlare-LightItalic.ttf") format("truetype");
}
@font-face {
  font-family: "ABC Arizona Flare";
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ABCArizonaFlare-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "ABC Arizona Flare";
  font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/ABCArizonaFlare-RegularItalic.ttf") format("truetype");
}

/* ============ reset / base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* legacy Edge */
}
html::-webkit-scrollbar { display: none; }   /* WebKit / Blink */
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* dark is punctuation: flip the local token context, then paint */
[data-surface="dark"] { background: var(--canvas); color: var(--ink); }

/* shared keyboard focus ring (warm coral halo) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

/* ============ layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--prose { max-width: calc(var(--container-prose) + var(--pad) * 2); }

/* ============ generic section ============ */
.section { padding-block: var(--space-section); }
.section--center { text-align: center; }
.section--warm   { background-color: var(--canvas-warm); background-image: var(--wash-warm); background-repeat: no-repeat; }

/* ============ editorial type ============ */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: clamp(22px, 3vh, 32px);
}
.eyebrow__num { color: var(--coral-ink); font-weight: 500; }

/* display — one Light serif, two-tone emphasis (muted setup -> solid payoff) */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
.display .muted { color: var(--ink-2); display: block; }
.display .solid { color: var(--ink);   display: block; }

.lede {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 640px;
  margin: clamp(22px, 3vh, 30px) auto 0;
}

/* title — the card / object payoff (h3). Light serif at weight 400, the one
   place display steps up from 300 (see §4). Sits inside paper or a column. */
.title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-title); line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight); color: var(--text-primary);
  margin: 0;
}

/* long-form reading — the methodology / about voice */
.prose { max-width: var(--container-prose); color: var(--ink-2); font-size: 1.05rem; line-height: var(--leading-relaxed); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child  { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre { margin: 0 0 var(--space-5); }
.prose h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-title); color: var(--ink);
  line-height: var(--leading-snug); letter-spacing: var(--tracking-tight);
  margin: var(--space-8) 0 var(--space-4);
}
.prose h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-subtitle); color: var(--ink);
  line-height: var(--leading-snug);
  margin: var(--space-7) 0 var(--space-3);
}
.prose a { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--coral-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--space-2); }
.prose code {
  font-family: var(--font-mono); font-size: .85em;
  background: var(--canvas-warm); border: 1px solid var(--rule-soft);
  border-radius: var(--radius-xs); padding: .1em .35em;
}
.prose blockquote {
  padding-left: var(--space-5);
  border-left: 2px solid var(--coral-2);
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: var(--text-subtitle); color: var(--ink);
}

/* ============ nav — header above the hero that detaches into a floating frosted rail on scroll ============ */
.nav {
  position: sticky;
  top: 0;
  margin-inline: auto;
  z-index: var(--z-nav);
  width: min(calc(100% - 2 * var(--frame)), var(--container));
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  height: 72px;
  padding-inline: var(--pad);
  border-radius: var(--radius-lg);
  background: var(--canvas);          /* solid at rest — seamless on the canvas above the hero */
  border: 1px solid transparent;
  box-shadow: none;
  transition: top var(--dur-slow) var(--ease),
              height var(--dur-slow) var(--ease),
              background var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out);
}
/* once scrolled it lifts off: floats in by --frame, condenses, frosts */
.nav.is-scrolled {
  top: var(--frame);
  height: 56px;
  background: var(--glass);
  border-color: var(--rule);
  box-shadow: var(--shadow-nav);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.nav--open { background: var(--canvas); border-color: var(--rule); }

/* brand — the lockup stays whole in every state, just eases a touch smaller when condensed */
.nav__brand { display: inline-flex; align-items: center; flex: none; }
.nav__brand-logo {
  display: block; height: 24px; width: auto;
  transition: height var(--dur-slow) var(--ease);
}
.nav.is-scrolled .nav__brand-logo { height: 22px; }

/* primary links with grow-underline */
.nav__links { display: flex; align-items: center; gap: clamp(18px, 1.8vw, 30px); }
.nav__link {
  position: relative;
  font-size: .9rem;
  color: var(--ink-2);
  padding: 6px 1px;
  transition: color var(--dur-quick) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__right { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px); }
.nav__signin { font-size: .9rem; color: var(--ink-2); transition: color var(--dur-quick) var(--ease-out); }
.nav__signin:hover { color: var(--ink); }

/* hamburger (mobile only) */
.nav__toggle {
  position: relative;
  display: none;
  flex: none;
  width: 42px; height: 42px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle-bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out), opacity var(--dur-quick) var(--ease-out);
}
.nav__toggle-bar:nth-child(1) { top: 16px; }
.nav__toggle-bar:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* full-screen editorial sheet (mobile) */
.nav__sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  background: var(--canvas);
  padding: calc(var(--frame) + 64px + clamp(20px, 5vh, 44px)) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease), visibility var(--dur-slow);
}
.nav__sheet.is-open { opacity: 1; visibility: visible; transform: none; }
.nav__sheet-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav__sheet-links { display: flex; flex-direction: column; margin-top: clamp(16px, 4vh, 36px); }
.nav__sheet-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: clamp(10px, 1.6vh, 18px) 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
.nav__sheet-link .idx {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.nav__sheet-foot { margin-top: auto; display: flex; align-items: center; gap: 18px; padding-top: clamp(24px, 5vh, 44px); }
.nav__sheet-foot .nav__signin { font-size: 1rem; }
.nav__sheet-foot .btn { margin-left: auto; }

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-xs);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out), background var(--dur-quick) var(--ease-out), color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn--solid {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--coral-1), var(--coral-2));
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--solid::before {   /* varnish — gloss on the single action; spends no new coral */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: var(--sheen);
  pointer-events: none;
}
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(210,73,44,.3), 0 14px 30px -12px rgba(210,73,44,.55); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--outline:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover {
  background: linear-gradient(180deg, var(--coral-1), var(--coral-2));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 17px; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ============ forms ============ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-2);
}
.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  border-radius: var(--field-radius);
  padding: var(--field-pad);
  transition: border-color var(--dur-quick) var(--ease-out), box-shadow var(--dur-quick) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--field-border-hover); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral-2); box-shadow: var(--ring); }
.textarea { resize: vertical; min-height: 120px; line-height: var(--leading-normal); }
.select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239c958a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.hint { font-size: var(--text-small); color: var(--ink-3); }
.field--error .input, .field--error .select, .field--error .textarea { border-color: var(--crit); }
.field--error .hint { color: var(--crit); }

/* ============ artifact — the paper-like primitive (scorecard, prescription, snippet) ============ */
.artifact {
  position: relative;
  isolation: isolate;     /* contain the paper-tooth blend to this surface */
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--edge-light), var(--shadow-card);   /* rim light + the warm drop */
  padding: clamp(20px, 2.4vw, 32px);
  text-align: left;
}
.artifact::before {       /* paper tooth — texture bound to the paper primitive only */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background-image: var(--grain);
  background-size: 180px;
  opacity: var(--grain-paper);
  mix-blend-mode: var(--grain-blend);
  pointer-events: none;
}
.artifact--flat { box-shadow: var(--shadow-card); }   /* materials off — e.g. paper nested in paper */
.artifact--flat::before { display: none; }

/* ============ data parts — live inside .artifact or a .section.
   These speak the semantic ALIAS layer (the rule for new component CSS),
   so the dark beat reaches them through the alias restatement in tokens.css.
   Compose, do not accumulate: these few parts make scorecards, ledgers,
   readouts, and before/after objects without a component per pattern. ============ */

/* tag — a mono state pill. Promoted from specimen-local CSS into the canon so it
   is shared (closing the §10 "no page-local component CSS" gap). */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--text-secondary);
}
.tag--good  { color: var(--good);  background: var(--good-tint);  border-color: var(--good-line); }
.tag--watch { color: var(--watch); background: var(--watch-tint); border-color: var(--watch-line); }
.tag--crit  { color: var(--crit);  background: var(--crit-tint);  border-color: var(--crit-line); }

/* metric — a large figure with a label (scorecards, pricing tiers).
   The figure is mono: a score is the machine speaking (principle 5). */
.metric { display: flex; flex-direction: column; gap: var(--space-2); }
.metric__figure {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-display); line-height: 1;
  letter-spacing: var(--tracking-tight); color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .14em;
}
.metric__unit  { font-size: .4em; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.metric__label {
  font-family: var(--font-mono); font-size: var(--text-label);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-muted);
}
.metric--good  .metric__figure { color: var(--good); }
.metric--watch .metric__figure { color: var(--watch); }
.metric--crit  .metric__figure { color: var(--crit); }

/* bar — labeled progress drawn on a state color (sub-scores).
   Color is never the only signal: the label and value always travel with it. */
.bar { display: flex; flex-direction: column; gap: var(--space-2); }
.bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.bar__label {
  font-family: var(--font-mono); font-size: var(--text-label);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--text-secondary);
}
.bar__value { font-family: var(--font-mono); font-size: var(--text-label); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.bar__track { height: 8px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.bar__fill {
  height: 100%; width: var(--bar, 0%);
  border-radius: var(--radius-pill); background: var(--text-secondary);
  transition: width var(--dur-reveal) var(--ease);
}
.bar--good  .bar__fill { background: var(--good); }
.bar--watch .bar__fill { background: var(--watch); }
.bar--crit  .bar__fill { background: var(--crit); }

/* readout — the machine speaking, row by row: mono key / status / value. */
.readout { display: flex; flex-direction: column; }
.readout__row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: var(--space-4);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border-soft);
}
.readout__row:first-child { padding-top: 0; }
.readout__row:last-child  { border-bottom: none; padding-bottom: 0; }
.readout__key { font-family: var(--font-mono); font-size: var(--text-small); color: var(--text-secondary); }
.readout__val {
  display: inline-flex; align-items: center; gap: var(--space-2);
  justify-self: end;
  font-family: var(--font-mono); font-size: var(--text-small);
  color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.readout__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--action);
  box-shadow: 0 0 0 0 rgba(242, 94, 64, .5);
  animation: badgePulse 2.4s ease-out infinite;   /* the one live coral, reusing the hero pulse */
}

/* delta — from, arrow, to, carrying a state (before/after). */
.delta {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  font-family: var(--font-mono); font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
}
.delta__from  { color: var(--text-muted); }
.delta__arrow { color: var(--text-muted); font-size: .9em; }
.delta__to    { color: var(--text-primary); font-weight: 500; }
.delta--good  .delta__to, .delta--good  .delta__arrow { color: var(--good); }
.delta--watch .delta__to, .delta--watch .delta__arrow { color: var(--watch); }
.delta--crit  .delta__to, .delta--crit  .delta__arrow { color: var(--crit); }

/* ============ hero ============ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 86vh, 920px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--canvas); /* shows as the L/R frame around the photo */
}
/* Photo band is inset from the screen edges by --frame on left + right.
   The warm gradient stands in until the photo loads. */
.hero__media {
  position: absolute;
  inset: var(--frame);
  z-index: -3;
  border-radius: var(--hero-radius);
  background-image:
    url("../img/hero-storefront.jpg"),
    linear-gradient(118deg, #2b211b 0%, #5c3f2c 46%, #8a5b3c 78%, #b07a4e 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.hero__scrim {
  position: absolute; inset: var(--frame); z-index: -2;
  border-radius: var(--hero-radius);
  background:
    linear-gradient(90deg, rgba(18,11,7,.66) 0%, rgba(18,11,7,.30) 44%, rgba(18,11,7,0) 72%),
    linear-gradient(0deg, rgba(18,11,7,.58) 0%, rgba(18,11,7,0) 42%);
}
.hero__grain {
  position: absolute; inset: var(--frame); z-index: -1;
  border-radius: var(--hero-radius);
  background-image: url("../img/grain.svg");
  background-size: 220px;
  opacity: .10;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero__inner { width: 100%; padding-block: clamp(56px, 9vh, 112px); }
.hero__content { max-width: 660px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(22px, 4vh, 40px);
  padding: 7px 15px 7px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  white-space: nowrap;
}
.hero__badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral-1);
  box-shadow: 0 0 0 0 rgba(248, 131, 107, .55);
  animation: badgePulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes badgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(248, 131, 107, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(248, 131, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 131, 107, 0); }
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  color: rgba(255, 255, 255, .98);
  margin: 0 0 clamp(18px, 2.6vh, 28px);
  text-wrap: balance;
}
.hero__title .accent { color: #fff; font-weight: 400; }
.hero__title .t-soft { color: rgba(255, 255, 255, .72); }  /* muted setup line — two-tone, like .display .muted */
.hero__sub {
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255,255,255,.84);
  max-width: 482px;
  margin: 0 0 clamp(26px, 4vh, 40px);
}
.hero__trust { margin-bottom: clamp(26px, 4vh, 38px); }
.hero__trust-label {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.hero__engines { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.engine { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.92); font-size: .9rem; }
.engine__mark {
  width: 17px; height: 17px;
  background-color: #fff;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.engine--openai     { --m: url("../img/platforms/openai.svg"); }
.engine--anthropic  { --m: url("../img/platforms/anthropic.svg"); }
.engine--gemini     { --m: url("../img/platforms/google-gemini.svg"); }
.engine--perplexity { --m: url("../img/platforms/perplexity.svg"); }
.engine__mark { -webkit-mask-image: var(--m); mask-image: var(--m); }

/* ============ part: feature list ============
   A clean checklist, a small composable part. Lives inside paper (a pricing tier) or a section.
   The check is olive (--good, the "included" state), held off the coral
   budget so a long list never spends it; --off is a muted dash (not included). */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.list__item {
  position: relative; padding-left: 26px;
  font-size: var(--text-small); line-height: var(--leading-normal); color: var(--text-secondary);
}
.list__item::before {
  content: ""; position: absolute; left: 3px; top: .34em;
  width: 9px; height: 5px;
  border-left: 1.6px solid var(--good); border-bottom: 1.6px solid var(--good);
  transform: rotate(-45deg);
}
.list__item--off { color: var(--text-muted); }
.list__item--off::before {
  width: 11px; height: 0; top: .72em; transform: none;
  border-left: none; border-bottom: 1.6px solid var(--text-muted);
}

/* ============ page furniture: FAQ accordion ============
   Native <details>/<summary>. The question is the summary (.faq__q); the
   sign is a muted plus that flips to a minus when open, neutral rather than
   coral so a long list of questions never spends the budget. Felt, not seen. */
.faq { border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-subtitle); line-height: var(--leading-snug);
  color: var(--text-primary);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__sign {
  flex: none; position: relative; width: 15px; height: 15px; margin-top: .32em;
  transition: transform var(--dur-base) var(--ease);
}
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: var(--text-muted); border-radius: 2px; }
.faq__sign::before { left: 0; right: 0; top: 6.5px; height: 2px; }
.faq__sign::after  { top: 0; bottom: 0; left: 6.5px; width: 2px; transition: opacity var(--dur-base) var(--ease); }
.faq__item[open] .faq__sign { transform: rotate(180deg); }
.faq__item[open] .faq__sign::after { opacity: 0; }
.faq__a { padding: 0 0 var(--space-5); margin: 0; max-width: 64ch; color: var(--text-secondary); line-height: var(--leading-relaxed); }
.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child  { margin-bottom: 0; }

/* ============ footer ============ */
.foot {
  border-top: 1px solid var(--rule-soft);
  padding-block: 40px;
  color: var(--ink-3);
  font-size: .85rem;
}
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ============ landing-page CSP-safe utilities ============
   Static public pages run under a hash-based CSP. Keep layout classes here
   instead of inline style attributes so the page stays cacheable and strict. */
.home-scan-shell { margin-top: var(--space-7); }
.home-scan-form { max-width: 640px; margin-inline: auto; text-align: left; }
.home-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}
.home-form-actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}
.home-scan-success {
  max-width: 640px;
  margin: var(--space-5) auto 0;
  text-align: left;
}
.home-scorecard {
  max-width: 620px;
  margin: var(--space-7) auto 0;
  text-align: left;
}
.home-narrow-card {
  max-width: 560px;
  margin: var(--space-7) auto 0;
  text-align: left;
}
.home-grid {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-5);
  text-align: left;
}
.home-grid--three { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.home-grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.home-grid--metrics { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-6); }
.home-grid--pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.home-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.home-card-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.home-agency-card {
  margin-top: var(--space-5);
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.home-agency-copy { max-width: 46ch; }
.home-snippet-card { overflow: hidden; }
.home-snippet-pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--ink-2);
}
.home-footer-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.home-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-size: .9rem;
  color: var(--ink-2);
}
.home-footer-logo { display: inline-flex; }
.home-final-action { margin-top: var(--space-6); }
.home-payment-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
}
.home-payment-link {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.u-mt-7 { margin-top: var(--space-7); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-5 { margin-top: var(--space-5); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mb-5 { margin-bottom: var(--space-5); }
.u-mb-4 { margin-bottom: var(--space-4); }
.u-mb-3 { margin-bottom: var(--space-3); }
.u-mb-2 { margin-bottom: var(--space-2); }
.u-my-success-title { margin: 14px 0 8px; }
.u-zero { margin: 0; }
.u-copy { color: var(--ink-2); line-height: 1.6; margin: 0; }
.u-copy-muted { color: var(--ink-3); font-size: var(--text-small); margin: var(--space-1) 0 0; }
.u-copy-note {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  font-size: var(--text-small);
  color: var(--ink-3);
  line-height: 1.6;
}
.u-mono-note {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink-2);
  margin: 0 0 var(--space-5);
  line-height: 1.55;
}
.u-mono-micro {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: .04em;
  color: var(--ink-3);
  margin: var(--space-5) 0 0;
}
.u-ink { color: var(--ink); }
.u-muted-inline { color: var(--ink-3); font-weight: 400; }
.u-text-center { text-align: center; }
.u-metric-center { align-items: center; }
.u-link-push { margin-top: auto; }
.u-foot-top { align-items: flex-start; }
.u-footer-platforms {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink-2);
  margin: 0;
}
.u-footer-note { margin: 0; color: var(--ink-3); }
.u-final-note {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--ink-3);
}

/* ============ legal/support pages ============ */
.legal-page {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}
.legal-main {
  padding: clamp(44px, 8vw, 96px) var(--pad) clamp(64px, 10vw, 120px);
}
.legal-wrap {
  width: min(880px, 100%);
  margin: 0 auto;
}
.legal-kicker {
  display: block;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--coral-ink);
}
.legal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: .95;
  letter-spacing: 0;
}
.legal-lede {
  max-width: 720px;
  margin: var(--space-5) 0 0;
  color: var(--ink-2);
  font-size: var(--text-lede);
  line-height: 1.65;
}
.legal-grid {
  display: grid;
  gap: var(--space-7);
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
}
.legal-section {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
}
.legal-section h2 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal-section p,
.legal-section li {
  color: var(--ink-2);
  font-size: var(--text-small);
  line-height: 1.72;
}
.legal-section p { margin: 0 0 var(--space-4); }
.legal-section ul { margin: 0; padding-left: 20px; }
.legal-section a {
  color: var(--coral-ink);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
@media (max-width: 760px) {
  .legal-section {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* =============================================================
   HOME · the diagnostic document
   The body reads as one finding, not a feature list. Asymmetric,
   evidence-led movements. These are LAYOUT utilities only; every
   piece of content is a shared canon part (artifact / metric /
   readout / bar / delta / tag / list). No per-section eyebrow, no
   01-07 scaffold, no repeated card grid — that pattern was the slop.
   ============================================================= */

/* emphasis inside a headline: italic serif (Arizona Flare 400 italic), so one
   committed line can carry stress without the muted/solid two-tone cadence. */
.display em, .display .em { font-style: italic; }

/* movement — a body section's inner rhythm: generous, varied vertical space. */
.home-move { display: grid; gap: clamp(32px, 4.4vw, 60px); }

/* split — voice column (headline/lede) beside an evidence column. The single
   biggest move off "everything centered": statement left, proof right. */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5.4vw, 84px);
  align-items: start;
}
.home-split--hold { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.home-split__voice { max-width: 34ch; }
.home-split__voice .lede { margin: var(--space-5) 0 0; max-width: 42ch; }
.home-sticky { position: sticky; top: clamp(96px, 13vh, 132px); }
@media (max-width: 880px) {
  .home-split, .home-split--hold { grid-template-columns: 1fr; gap: var(--space-7); }
  .home-sticky { position: static; }
  .home-split__voice { max-width: 40ch; }
}

/* the scan procedure — three honest checks stated up front (Find / Describe /
   Act), each with its real status. A top rule, not a card. */
.home-procedure {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-5) var(--space-6); margin-top: var(--space-7);
}
.home-check { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 2px solid var(--border); }
.home-check__name {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-subtitle);
  line-height: var(--leading-snug); color: var(--text-primary);
}
.home-check__say { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* the verdict — a real sample score sized as the page's visual anchor. The
   number is the brand; the readout + bars carry the actual finding, which is
   what keeps it off the decorative hero-metric template. */
.home-verdict { display: grid; gap: var(--space-6); }
.home-verdict__top { display: flex; flex-wrap: wrap; align-items: flex-end; gap: clamp(20px, 4vw, 52px); }
.home-score {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(4.5rem, 13vw, 8rem); line-height: .8;
  letter-spacing: -.045em; color: var(--crit); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .04em;
}
.home-score__unit { font-size: .19em; font-weight: 500; letter-spacing: 0; color: var(--text-muted); }
.home-verdict__say { max-width: 32ch; }
.home-line { font-family: var(--font-display); font-weight: 400; font-size: var(--text-subtitle); line-height: var(--leading-snug); color: var(--text-primary); margin: 0; }
.home-sub { font-family: var(--font-mono); font-size: var(--text-small); color: var(--text-secondary); line-height: 1.55; margin: var(--space-3) 0 0; }
.home-bars { display: grid; gap: var(--space-5); }

/* the path — Find / Act / Care as a left-to-right progression, big serif
   pillars separated by hairline rules. Not three identical cards. */
.home-path { display: grid; grid-template-columns: repeat(3, 1fr); }
.home-step { display: flex; flex-direction: column; gap: var(--space-4); padding: 0 clamp(18px, 2.6vw, 40px); border-left: 1px solid var(--border-soft); }
.home-step:first-child { padding-left: 0; border-left: none; }
.home-step:last-child { padding-right: 0; }
.home-step__name { font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1; letter-spacing: var(--tracking-tight); color: var(--text-primary); }
.home-step__say { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.6; margin: 0; }
@media (max-width: 760px) {
  .home-path { grid-template-columns: 1fr; }
  .home-step { padding: var(--space-5) 0 0; border-left: none; border-top: 1px solid var(--border-soft); }
  .home-step:first-child { padding-top: 0; border-top: none; }
}

/* the ladder — six rungs of what an agent can do with you, drawn as an ascent
   with the live/pilot threshold marked. Honest by construction. */
.home-ladder { display: flex; flex-direction: column; }
.home-rung {
  display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline;
  gap: var(--space-4); padding: var(--space-4) 0; border-top: 1px solid var(--border-soft);
}
.home-rung:first-child { border-top: none; }
.home-rung__n { font-family: var(--font-mono); font-size: var(--text-small); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.home-rung__name { font-family: var(--font-display); font-weight: 400; font-size: var(--text-subtitle); line-height: var(--leading-snug); color: var(--text-primary); }
.home-rung--pilot .home-rung__name { color: var(--text-secondary); }
.home-threshold {
  display: flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0;
  font-family: var(--font-mono); font-size: var(--text-micro);
  letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-muted);
}
.home-threshold::before, .home-threshold::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* the stakes — why now. One statement, three real figures as a mono row. Not
   three centered stat cards (the banned hero-metric template). */
.home-figures { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 68px); margin-top: var(--space-6); }
.home-figure { display: flex; flex-direction: column; gap: var(--space-2); max-width: 22ch; }
.home-figure__n {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 3.9rem); line-height: .92; letter-spacing: -.035em;
  color: var(--text-primary); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .03em;
}
.home-figure__n .metric__unit { font-size: .32em; }
.home-figure__label { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.5; }

/* done-for-you tiers — Find / Act / Care as an escalating engagement, the pilot
   the emphasized middle. A differentiated row, not identical cards. */
.home-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-5); align-items: stretch; }
.home-tier { display: flex; flex-direction: column; gap: var(--space-5); }
.home-tier__head { display: flex; flex-direction: column; gap: var(--space-2); }
.home-tier__step { font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--action-text); }
.home-tier--feature { box-shadow: var(--edge-light), var(--shadow-pop); }

/* self-serve ledger — one object, three columns. A price ledger (mono, plain),
   deliberately a different shape from the done-for-you tiers above it. */
.home-ledger { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; overflow: hidden; }
.home-ledger__col { display: flex; flex-direction: column; gap: var(--space-4); padding: clamp(20px, 2.2vw, 30px); border-right: 1px solid var(--border-soft); }
.home-ledger__col:last-child { border-right: none; }
.home-ledger__col--feature { background: var(--canvas-warm); }
.home-ledger__plan { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.home-price {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--text-title);
  letter-spacing: var(--tracking-tight); color: var(--text-primary);
  font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: .08em;
}
.home-price .metric__unit { font-size: .42em; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
@media (max-width: 760px) {
  .home-ledger { grid-template-columns: 1fr; }
  .home-ledger__col { border-right: none; border-top: 1px solid var(--border-soft); }
  .home-ledger__col:first-child { border-top: none; }
}

/* labeled progress widths (CSP-safe; no inline style on static pages) */
.u-bar-30 { --bar: 30%; }
.u-bar-45 { --bar: 45%; }
.u-bar-50 { --bar: 50%; }
.u-bar-65 { --bar: 65%; }

/* left-aligned fine note (the API-method caption under the stakes) */
.u-note { max-width: 62ch; margin: var(--space-4) 0 0; font-size: var(--text-small); color: var(--ink-3); line-height: 1.6; }

/* ============ reveal + entrance ============ */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.hero__content > * { animation: rise var(--dur-rise) var(--ease) both; }
.hero__badge  { animation-delay: .02s; }
.hero__title  { animation-delay: .08s; }
.hero__sub    { animation-delay: .18s; }
.hero__trust  { animation-delay: .26s; }
.hero__cta    { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__content > *, .hero__badge-dot, .readout__dot { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .nav, .nav__brand, .nav__sheet, .nav__toggle-bar, .nav__link::after, .faq__sign, .faq__sign::after { transition: none !important; }
}

/* ============ responsive ============ */
@media (min-width: 769px) {
  .nav__sheet { display: none; }
}
@media (max-width: 768px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav__right { display: none; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .hero__engines { gap: 16px; }
  .engine span { display: none; }
}
