/* ==========================================================================
   Keyydo — site stylesheet
   Built to Brand Guidelines v1.1
   Ink #07031D · Signal var(--mark-accent) · Paper #EDEFEC
   Bricolage Grotesque / Inter / IBM Plex Mono
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* core palette — guideline §05 */
  --ink:    #07031D;
  --signal: #C21033;
  --paper:  #EDEFEC;

  /* ── COLOUR TEST ────────────────────────────────────────────────────────
     Accent inside the mark artwork: wordmark bars and the §07 Ascent icons.
     Held apart from --signal so the lockup can be judged on its own.
       #FD5108   original Signal
       #C21033   in use — matches Keyydo_Full_mono_3_C21033_noline.svg
     Opaque on purpose: an alpha value renders as a different colour on every
     backdrop. Contrast — Paper 5.32:1, Ink 3.29:1, masthead 4.09:1.

     TWO RULES follow from those numbers, and they are the opposite of the
     rules that applied to FD5108:
       ON PAPER  Signal now PASSES AA as body text (5.32:1). Earlier comments
                 in this file claimed 2.85:1 and forbade it. Those were true
                 of FD5108 and have been corrected.
       ON INK    Signal is LARGE TEXT ONLY (3.29:1) — 24px regular or 19px
                 bold and above. Below that it is a graphic accent: rules,
                 dots, bars, ticks, corner marks. Never small text.
     The same 3.29:1 applies inverted, so Ink text on a Signal ground fails
     at body size too. Button hovers use Paper on Signal for that reason.
     Revert: set --signal and --mark-accent back to #FD5108. */
  --mark-accent: #C21033;

  /* supporting greys — ink at 8 / 14 / 40 / 60 / 72% */
  --ink-08: rgba(7, 3, 29, 0.08);
  --ink-14: rgba(7, 3, 29, 0.14);
  --ink-40: rgba(7, 3, 29, 0.40);
  --ink-60: rgba(7, 3, 29, 0.60);
  --ink-72: rgba(7, 3, 29, 0.72);

  /* reversed equivalents */
  --paper-40: rgba(237, 239, 236, 0.40);
  --paper-60: rgba(237, 239, 236, 0.60);
  --paper-72: rgba(237, 239, 236, 0.72);
  --paper-14: rgba(237, 239, 236, 0.14);

  --surface: rgba(7, 3, 29, 0.04);   /* ink 4% — lifted surface, stays in palette */

  /* type — guideline §06 */
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --data:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shell: 1140px;
  --gutter: clamp(20px, 5vw, 56px);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* Declare the page light. Without this, Chrome and iOS webviews apply their
   own auto-dark remap and the Paper surfaces render grey. */
:root { color-scheme: light; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(16px, 1.02vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Type ----------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.95rem, 3.7vw, 3rem); }
h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.24;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow — Plex Mono. */
/* Section eyebrow is defined once, further down, alongside the card system. */

/* Hero eyebrow is a descriptor, not a section label: keeps the mono treatment */
.hero-band .eyebrow {
  font-family: var(--data);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.35vw, 1.18rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
   /* Paper on Ink — 15.7:1. Was Signal, which at 15.2px/600 on Ink sat at
      3.29:1 and failed AA at every breakpoint: the large-text allowance
      needs 19px bold, and 600 does not reliably qualify as bold. */

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.56;
  color: var(--ink-72);
  max-width: 36em;
}
.band--ink .lede { color: var(--paper-72); }

.fine {
  font-family: var(--data);
  font-size: 0.75rem;
  line-height: 1.68;
  color: var(--ink-60);
}
.band--ink .fine { color: var(--paper-60); }

/* --- Shell ---------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(66px, 9vw, 120px); }
.band--rule { border-top: 1px solid var(--ink-14); }
.band--ink { background: var(--ink); color: var(--paper); }

.section-head { max-width: 47rem; margin-bottom: clamp(38px, 4.6vw, 60px); }
.section-head h2 { margin-bottom: 0.75rem; }

/* --- Wordmark (final trademarked artwork, §01/§03) ------------------------ */
/* Lockup is 526 x 121 (ratio 4.3471). §03 minimum is 120px wide, i.e. 27.6px
   tall. Masthead runs 52px / 226px; footer 44px / 191px. Clear space is the cap
   height of the k (0.79 of mark height) on all four sides; the negative margin
   only pulls the glyph optically back to the gutter — the band is preserved. */
.wordmark {
  --mark-h: 52px;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  padding: calc(var(--mark-h) * 0.79);
  margin: calc(var(--mark-h) * -0.79);
}
.wordmark--foot { --mark-h: 44px; }

/* Width is derived from the locked ratio, never from `auto` — an inline SVG
   with `width: auto` can resolve to zero and the mark disappears. */
.wordmark .mark {
  height: var(--mark-h);
  width: calc(var(--mark-h) * 4.3471);
  display: block;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  padding: 0.88em 1.55em;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
/* Hover label is Paper, not Ink. Paper on Signal is 5.32:1 and passes; Ink on
   Signal is 3.29:1 and fails at the 0.94rem label size. The ≈7:1 noted here
   previously was FD5108, a light orange, and does not survive the change. */
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.band--ink .btn { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.band--ink .btn:hover { background: var(--signal); border-color: var(--signal); color: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 2.3rem; }

/* --- Masthead ------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 239, 236, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-08);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }

.nav a {
  font-family: var(--data);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-72);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 140ms ease, border-color 140ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--signal); }

.nav a.nav__cta {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0.62em 1.05em;
  color: var(--ink);
}
.nav a.nav__cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 760px) { .nav a:not(.nav__cta) { display: none; } }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding-block: clamp(54px, 7vw, 92px) clamp(40px, 5vw, 66px); }
.hero h1 { max-width: 20ch; margin-bottom: 1.7rem; }

/* --- Horizon chart -------------------------------------------------------- */
.horizon { margin: clamp(46px, 6vw, 78px) 0 0; }

.horizon__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink-14);
  border-radius: 3px;
  padding: clamp(16px, 2.6vw, 30px);
}

.horizon__svg { width: 100%; height: auto; }

.horizon__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--ink-08);
}

.key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--data);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-60);
}
.key i { display: block; width: 22px; height: 0; border-top-style: solid; }
.key--base i  { border-top-width: 3px; border-color: var(--ink); }
.key--range i { border-top-width: 2px; border-color: var(--ink-40); }
.key--cash i  { border-top-width: 2px; border-top-style: dashed; border-color: var(--signal); }

.hz-band { fill: var(--ink); opacity: 0.10; }
.hz-line { fill: none; stroke-linecap: round; }
.hz-line--edge { stroke: var(--ink-40); stroke-width: 1.5; }
.hz-line--base { stroke: var(--ink); stroke-width: 3; }
.hz-zero { stroke: var(--ink); stroke-width: 1; opacity: 0.3; }
.hz-drop { stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 3 4; }
.hz-dot  { fill: var(--signal); }
.hz-tick { font-family: var(--data); font-size: 12px; fill: var(--ink-40); letter-spacing: 0.06em; }
.hz-note { font-family: var(--data); font-size: 11.5px; font-weight: 500; fill: var(--signal); letter-spacing: 0.09em; }

@media (prefers-reduced-motion: no-preference) {
  .hz-line { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1700ms cubic-bezier(.22,.68,.3,1) forwards; }
  .hz-line--base { animation-delay: 170ms; }
  .hz-band { opacity: 0; animation: fadeBand 700ms ease 1250ms forwards; }
  .hz-drop, .hz-dot, .hz-note { opacity: 0; animation: fadeIn 700ms ease 1250ms forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeBand { to { opacity: 0.10; } }

/* --- Contents (the deliverable) ------------------------------------------- */
.contents {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 clamp(28px, 4vw, 66px);
  counter-reset: toc;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contents li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--ink-08);
}

.contents li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--data);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-40);
}

.contents b { display: block; font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -0.012em; margin-bottom: 0.18rem; }

/* Highest-value sections carry the Signal numeral; the rest stay neutral. */
.contents__key::before { color: var(--signal); }

/* Action row closing the contents list */
.contents-cta {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 18px);
  flex-wrap: wrap;
  margin-top: clamp(34px, 4vw, 52px);
}
.contents-cta .is-pending {
  border-style: dashed;
  opacity: 0.45;
  pointer-events: none;
}

/* ═══ Deliverable section — cards ═══════════════════════════════════════ */

/* Louder eyebrow: Signal, large, Bricolage 800.
   On Paper Signal is 5.32:1 and passes as text. On the ink header bands the
   eyebrow is 23px+ at weight 800, which clears the large-text allowance. */
.eyebrow {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-transform: none;
  color: var(--signal);
  margin: 0 0 0.55rem;
}
.eyebrow i { display: none; }
.band--ink .eyebrow { color: var(--signal); }

/* Part I sits on ink: the three sections that carry the sale */

.dlv-part {
  margin: clamp(46px, 5vw, 68px) 0 clamp(20px, 2.4vw, 30px);
  padding-top: 1.15rem;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.dlv-part--lead { margin-top: 0; }
/* Part I opens by default; its summary keeps the same chevron control */
.dlv-fold[open] > .dlv-part--lead { margin-bottom: clamp(20px, 2.4vw, 30px); }
.dlv-part__n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
  color: var(--signal);
}
.dlv-part h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.018em;
  margin: 0;
}
.dlv-part p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-60);
  flex: 1 1 22ch;
}

.dlv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}
.dlv-grid--lead { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* The Frame: 3px radius, hairline, Signal corner tick. No shadow, no pill. */
.dlv-card {
  position: relative;
  border: 1px solid var(--ink-08);
  border-radius: 3px;
  padding: clamp(26px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
}
.dlv-card::after {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--signal);
  border-right: 2px solid var(--signal);
  border-top-right-radius: 3px;
}
.dlv-card--key { border-color: var(--signal); }

.dlv-card__n {
  font-family: var(--data);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 1.75rem;
}

.dlv-card__hero {
  font-family: var(--data);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 0.7rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--ink-08);
}

.dlv-card h4 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.32rem, 2vw, 1.58rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.dlv-card__desc {
  font-size: 1.04rem;
  line-height: 1.52;
  color: var(--ink-60);
  margin: 0 0 1.15rem;
}

.dlv-card__kpi {
  font-family: var(--data);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.72;
  color: rgba(7, 3, 29, 0.78);
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ink-08);
}

/* Action row: one after Part I while intent peaks, one closing the section */
.dlv-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: clamp(26px, 3vw, 38px) 0 0 auto;   /* right-aligned, closes each part */
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--ink-08);
}
.dlv-cta .btn { text-align: center; }
.dlv-cta .is-pending {
  border-style: dashed;
  opacity: 0.45;
  pointer-events: none;
}

/* ── Parts fold: header always visible, cards on demand ─────────────── */
.dlv-fold { margin: 0; }
.dlv-fold > summary {
  cursor: pointer;
  list-style: none;
  justify-content: flex-start;
}
.dlv-fold > summary::-webkit-details-marker { display: none; }
.dlv-fold > summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--signal);
  border-bottom: 2.5px solid var(--signal);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms ease;
  margin-left: auto;
  flex: 0 0 auto;
}
.dlv-fold[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.dlv-fold > summary:hover h3 { color: var(--signal); }
.dlv-fold > .dlv-grid { padding-bottom: clamp(10px, 1.4vw, 18px); }

/* Part I is open and unmarked: it is the part that sells */
.dlv-part--lead { border-top-color: var(--ink); }

/* Fixed three-up so a three-card part never orphans one below two */
.dlv-grid { grid-template-columns: repeat(3, 1fr); }
.dlv-grid--lead { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) {
  .dlv-grid, .dlv-grid--lead { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .dlv-grid, .dlv-grid--lead { grid-template-columns: 1fr; }
}


.contents span { grid-column: 2; font-size: 0.92rem; color: var(--ink-60); line-height: 1.5; }

/* --- Steps ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(24px, 3.4vw, 46px);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li { counter-increment: step; padding-top: 1.45rem; border-top: 1px solid var(--ink-14); }
.steps .ascent { margin: 1.6rem 0 1.5rem; }

.steps .step-label {
  display: block;
  font-family: var(--data);
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.9rem;
}

.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 0.95rem; color: var(--ink-60); }

/* --- Pricing -------------------------------------------------------------- */
.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }

.rate-table caption {
  text-align: left;
  font-family: var(--data);
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 1rem;
}

.rate-table th, .rate-table td {
  text-align: left;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--ink-14);
  vertical-align: baseline;
}

.rate-table thead th {
  font-family: var(--data);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 0.7rem;
}

.rate-table tbody th { font-family: var(--body); font-weight: 400; font-size: 0.98rem; }

.rate-table td.amount {
  text-align: right;
  font-family: var(--data);
  font-weight: 500;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rate-table td.amount small {
  display: block;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  margin-top: 4px;
}

.worked { padding: clamp(20px, 2.6vw, 32px); }
.worked h3 { margin-bottom: 0.95rem; }
.worked dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1.5rem;
  margin: 0;
  font-family: var(--data);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.worked dt { color: var(--ink-60); }
.worked dd { margin: 0; text-align: right; }
.worked .total { border-top: 1px solid var(--ink-14); padding-top: 0.65rem; font-weight: 500; color: var(--ink); }

/* --- Split ---------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(28px, 4vw, 62px); }
.note h3 { margin-bottom: 0.6rem; }
.note p { font-size: 0.95rem; color: var(--ink-72); }
.band--ink .note p { color: var(--paper-72); }

/* --- Contact -------------------------------------------------------------- */
.mailto {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  letter-spacing: -0.038em;
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: 0.06em;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}
.mailto:hover { color: var(--signal); }

/* --- Closing band --------------------------------------------------------- */
/* Eyebrow, headline, address. No supporting line: the gap it filled is carried
   by the headline's own margin, so the address stays the last thing read. */
.closing__title {
  max-width: 18ch;
  margin-bottom: 0;
}
/* Button carries the action; the address sits under it as the contact point. */
.closing .btn-row { margin-top: 2rem; }
.closing .mailto { margin-top: clamp(34px, 4vw, 52px); }

/* --- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--ink-14); padding-block: 44px 56px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 22px 34px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { text-decoration: none; border-bottom: 1px solid var(--ink-14); }
.footer a:hover { border-bottom-color: var(--signal); }

/* --- Legal documents ------------------------------------------------------ */
.doc { max-width: 44rem; }
.doc h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 1rem; }
.doc h2 {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  margin-top: 2.8rem;
  margin-bottom: 0.75rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--ink-14);
}
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc h3 { font-size: 1rem; margin-top: 1.7rem; margin-bottom: 0.4rem; }
.doc ul { padding-left: 1.15rem; margin: 0 0 1.05em; }
.doc li { margin-bottom: 0.5rem; }
.doc__meta { font-family: var(--data); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-40); margin-bottom: 2.6rem; }
.doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-40); }
.doc a:hover { text-decoration-color: var(--signal); }

.callout { padding: clamp(16px, 2.2vw, 26px); margin-bottom: 2rem; }
.callout p { font-size: 0.94rem; }


/* ==========================================================================
   Hero banner — ink ground, ledger ruling, cash curve set into the surface
   ========================================================================== */
.hero-band {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

/* Ledger ruling: 36 monthly columns, horizontal rows. Pure CSS, stays crisp. */
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 14% 6%,  rgba(237,239,236,0.085), rgba(237,239,236,0) 60%),
    radial-gradient(72% 58% at 50% 96%,  rgba(194,16,51,0.13),    rgba(194,16,51,0) 66%),
    radial-gradient(90% 70% at 96% 82%,  rgba(237,239,236,0.05),  rgba(237,239,236,0) 62%),
    radial-gradient(140% 108% at 50% 42%, rgba(7,3,29,0) 42%,     rgba(7,3,29,0.55) 100%);
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(237,239,236,0.05) 0 1px, transparent 1px 78px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, #000 46%, #000 100%);
}

/* Curve layer sits above the ruling, below the copy. */
.hero-plot {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  width: 100%;
  height: min(64%, 460px);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(237,239,236,0.045) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 22%, #000 100%);
}
.hero-plot svg { width: 100%; height: 100%; }

.hp-area { fill: url(#hpFill); }
.hp-base {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2.4;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
}
.hp-cross { fill: var(--paper); opacity: 0.85; }
.hp-zero { stroke: var(--paper); stroke-width: 1; opacity: 0.32; stroke-dasharray: 2 5; }
.hp-drop { stroke: var(--signal); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hp-dot  { fill: var(--signal); }
.hp-tick { font-family: var(--data); font-size: 11px; fill: var(--paper); opacity: 0.42; letter-spacing: 0.1em; }
.hp-mark { font-family: var(--data); font-size: 11px; font-weight: 500; fill: var(--paper); opacity: 0.78; letter-spacing: 0.11em; }
/* Peak-cash annotation. Paper at full strength, which sets it above .hp-mark
   (0.78) so it still reads as the loudest label on the curve. Was Signal —
   11px on Ink is 3.29:1 and fails. The Signal accent survives as the drop
   line and the dot below, which are graphics and carry no text. */
.hp-note { font-family: var(--data); font-size: 11px; font-weight: 500; fill: var(--paper); letter-spacing: 0.11em; }

.hero-band .shell { position: relative; z-index: 3; }

.hero-band .hero-inner {
  padding-block: clamp(56px, 7.5vw, 104px) clamp(230px, 30vw, 380px);
  max-width: 44rem;
}
.hero-band h1 { color: var(--paper); max-width: 22ch; margin-bottom: 1.5rem; }
.hero-band .lede { color: var(--paper-72); max-width: 33em; }
.hero-band .eyebrow { color: var(--paper); letter-spacing: 0.15em; }

/* The offer. Second-loudest element in the hero, ahead of the lede: full Paper,
   set above body size so it reads as a statement of what is sold, not support. */
.hero-offer {
  font-size: clamp(1.42rem, 2.35vw, 1.98rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.016em;
  color: var(--paper);
  max-width: 25em;
  margin-bottom: 1.5rem;
}

/* Meta strip across the foot of the banner */
.hero-meta {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  border-top: 1px solid rgba(237,239,236,0.12);
  background: linear-gradient(to top, rgba(7,3,29,0.86), rgba(7,3,29,0));
}
.hero-meta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 4vw, 54px);
  padding-block: 16px 20px;
  font-family: var(--data);
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-40);
}
.hero-meta__inner b { color: var(--paper-72); font-weight: 500; }

@media (max-width: 640px) {
  .hero-plot {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  width: 100%;
  height: min(64%, 460px);
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to bottom, rgba(237,239,236,0.045) 0 1px, transparent 1px 46px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 22%, #000 100%);
  }
}

/* Ghost button on the ink banner */
.btn--on-ink { background: transparent; color: var(--paper); border-color: rgba(237,239,236,0.42); }
.btn--on-ink:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }


/* ==========================================================================
   §07 System morphology — Guidelines v1.0
   ========================================================================== */

/* --- The Frame: containers and tables ------------------------------------- */
/* 3 radius, 1px ink hairline, corner tick in Signal. No pills, no shadows. */
.frame {
  position: relative;
  border: 1px solid var(--ink-14);
  border-radius: 3px;
  background: var(--surface);
}
.frame::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  border-top: 3px solid var(--signal);
  border-right: 3px solid var(--signal);
  border-radius: 0 3px 0 0;
  pointer-events: none;
}
.band--ink .frame { border-color: rgba(237,239,236,0.16); background: rgba(237,239,236,0.03); }

/* --- The Ascent: steps, ranked data, section markers ---------------------- */
/* Scale the group; never redraw a bar. */
.ascent { display: block; height: 26px; width: auto; overflow: visible; }
.steps .ascent { height: clamp(104px, 9vw, 136px); }
.asc-bar { fill: var(--signal); transition: opacity 200ms ease; }
/* Step icons: same grid, same zero line, same radius 5 — only the state changes.
   01 outlined = derived   02 solid = solved   03 ghost + solid = revised */

/* --- The Stop: shortest bar alone, one per view, ending a line ------------ */
.stop-rule {
  display: flex;
  align-items: center;
  gap: 0;
  margin: clamp(48px, 6vw, 76px) 0 0;
}
.stop-rule__line { flex: 1; height: 2px; background: var(--ink); }
.band--ink .stop-rule__line { background: var(--paper); opacity: 0.5; }
.stop-rule__cap {
  height: 18px;
  width: 18px;
  display: block;
  background: var(--signal);
  border-radius: 5px;                /* the mark's own bars are the one exception to the cap of 3 */
  flex: 0 0 auto;
}


/* Buttons on the hero banner — dark surface, so invert like .band--ink */
.hero-band .btn {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.hero-band .btn:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--paper);
}
.hero-band .btn--on-ink {
  background: transparent;
  color: var(--paper);
  border-color: rgba(237, 239, 236, 0.42);
}
.hero-band .btn--on-ink:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* Mark is 526x121 with the TM */


/* Section closer — sits alone, weighted, with space around it */
.closer {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  letter-spacing: -0.014em;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 1.9rem;
}
.band--ink .closer { color: var(--paper); }
.closer strong { font-weight: inherit; }

/* Closer following the step grid: hairline across, matching .steps li rule */
.steps + .closer {
  margin-top: clamp(42px, 5vw, 68px);
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--ink-14);
  font-size: clamp(1.22rem, 2vw, 1.62rem);
  line-height: 1.24;
  max-width: 30ch;
}


/* Signal accent inside display headings. Display sizes only — on Ink these
   clear the large-text allowance, and on Paper Signal passes outright. */
.sig { color: var(--signal); }


/* ── Section header band: ink marks the start of a section, nothing else ── */
.band { border-top: none; }
.band__head {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(46px, 5.2vw, 74px) 0 clamp(40px, 4.6vw, 62px);
  margin-bottom: clamp(38px, 4.4vw, 58px);
}
.band__head .section-head { margin-bottom: 0; }
.band__head .eyebrow { color: var(--signal); }
.band__head .lede { color: var(--paper-72); }
.band__head h2 { color: var(--paper); }

/* Why we built this: copy now sits under the heading, not beside it */
.prose { max-width: 62ch; }
.prose p { font-size: 1.02rem; line-height: 1.62; }


/* ── Pricing table ──────────────────────────────────────────────────────── */
.rate-table--price { width: 100%; }
.rate-table--price th.amount,
.rate-table--price td.amount { text-align: right; }
.rate-table--price thead th {
  font-family: var(--data);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-60);
}
/* Portfolio layer is not orderable yet: shown, priced, visibly pending */
.rate-table--price tbody tr:last-child td,
.rate-table--price tbody tr:last-child th { border-bottom: none; }

.price-notes { margin-top: clamp(22px, 2.6vw, 32px); max-width: 62ch; }
.price-notes p { margin-bottom: 0.9rem; }
.price-notes b { font-weight: 600; color: var(--ink); }


/* ── Portfolio layer callout ────────────────────────────────────────────── */
.portfolio-note {
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(26px, 2.8vw, 36px);
  max-width: 72ch;
}
.portfolio-note__tag {
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.9rem;
}
.portfolio-note h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.portfolio-note p { font-size: 1.02rem; line-height: 1.55; margin: 0 0 1.25rem; }
.portfolio-note__list {
  list-style: none;
  margin: 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--ink-08);
}
.portfolio-note__list li {
  font-family: var(--data);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-60);
  padding: 0.42rem 0 0.42rem 1.2rem;
  position: relative;
}
.portfolio-note__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 6px;
  height: 2px;
  background: var(--signal);
}


/* Footnote reference marker */
.ref {
  color: var(--signal);
  text-decoration: none;
  font-weight: 600;
}
.rate-table--price .ref { margin-left: 0.15em; }


/* ── What this doesn't do ───────────────────────────────────────────────── */
.limits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.2vw, 32px);
}
@media (max-width: 1080px) { .limits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .limits-grid { grid-template-columns: 1fr; } }

.limits-grid .note { padding-top: 1.2rem; border-top: 2px solid var(--ink); }
.limits-grid .note h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.7rem;
}
.limits-grid .note p { font-size: 0.98rem; line-height: 1.55; color: var(--ink-60); margin: 0; }

/* The basis line. Appears verbatim here, in the report, and in the Terms. */
.basis-line {
  margin: clamp(34px, 4vw, 52px) 0 0;
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--ink-08);
  font-family: var(--data);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  max-width: 78ch;
}


/* Nav now carries five links plus the CTA — tighten and allow wrapping */
.nav { flex-wrap: wrap; gap: clamp(12px, 1.5vw, 22px); }
.nav a { font-size: 0.72rem; white-space: nowrap; }
@media (max-width: 900px) {
  .nav a:not(.nav__cta) { display: none; }
}


/* ── Glossary ───────────────────────────────────────────────────────────── */

/* Data strip closing the header band, same device as the hero meta */
.gl-meta { border-top: 1px solid rgba(237, 239, 236, 0.20); }
.gl-meta__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 4vw, 54px);
  padding-block: 16px 20px;
  font-family: var(--data);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-60);
}
/* The values are the point of this strip, so they stay louder than the labels
   around them (paper-60). Paper at full strength, not Signal: this sits inside
   .band__head on Ink at 12px, where Signal is 3.29:1 and fails. */
.gl-meta__inner b { color: var(--paper); font-weight: 500; }

/* Sticky alphabet. Present letters in ink, absent ones ghosted. */
.gl-index {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px;
  padding: 1.1rem clamp(14px, 1.6vw, 20px);
  margin-bottom: clamp(8px, 1vw, 14px);
  background: var(--paper);
  border: 1px solid var(--ink-14);
  border-radius: 3px;
  font-family: var(--data);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.gl-index a { color: var(--ink); text-decoration: none; padding: 0 0.15em; }
.gl-index a:hover { color: var(--signal); }
.gl-index span { color: rgba(7, 3, 29, 0.16); padding: 0 0.15em; }

/* Each letter is a block: the capital pins while its entries scroll past */
.gl-block {
  display: grid;
  grid-template-columns: clamp(84px, 11vw, 156px) 1fr;
  gap: 0 clamp(20px, 3vw, 48px);
  border-top: 2px solid var(--ink);
  padding-top: clamp(20px, 2.4vw, 30px);
  margin-top: clamp(30px, 3.6vw, 46px);
}
.gl-block__letter {
  position: sticky;
  top: clamp(72px, 8vw, 96px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.gl-block__letter span {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--signal);
}
.gl-block__letter i {
  font-family: var(--data);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-40);
}

.gl-entry {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 clamp(10px, 1.2vw, 16px);
  padding: clamp(20px, 2.2vw, 28px) 0 clamp(20px, 2.2vw, 28px) clamp(10px, 1.2vw, 16px);
  border-bottom: 1px solid var(--ink-08);
  border-left: 2px solid transparent;
  transition: border-left-color 140ms ease, background 140ms ease;
}
.gl-entry:first-child { padding-top: 0.2rem; }
.gl-entry:hover { border-left-color: var(--signal); background: rgba(7, 3, 29, 0.02); }

.gl-entry__n {
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  padding-top: 0.35rem;
}
.gl-entry__body { min-width: 0; }
.gl-entry h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.18rem, 1.9vw, 1.42rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 0.25rem;
}
.gl-ref {
  font-family: var(--data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.8rem;
}
.gl-def {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-60);
  margin: 0;
  max-width: 62ch;
}
/* Formula alone, in data type, the way it sits in the report */
.gl-formula {
  display: inline-block;
  font-family: var(--data);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0.95rem 0 0;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--ink-14);
  border-left: 2px solid var(--signal);
  border-radius: 3px;
  background: rgba(7, 3, 29, 0.03);
}

@media (max-width: 760px) {
  .gl-block { grid-template-columns: 1fr; gap: 0; }
  .gl-block__letter { position: static; flex-direction: row; align-items: baseline;
                      gap: 0.7rem; margin-bottom: 0.6rem; }
  .gl-block__letter span { font-size: 2.6rem; }
  .gl-entry { grid-template-columns: 2.2rem 1fr; }
  .gl-index { font-size: 0.8rem; justify-content: flex-start; gap: 2px 6px; }
}


/* ── Partner pricing callout ────────────────────────────────────────────── */
.partner-note {
  margin-top: clamp(20px, 2.4vw, 30px);
  padding: clamp(26px, 2.8vw, 36px);
  max-width: 72ch;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: end;
}
@media (max-width: 720px) {
  .partner-note { grid-template-columns: 1fr; align-items: start; }
}
.partner-note__body { min-width: 0; }
.partner-note__tag {
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.9rem;
}
.partner-note h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.partner-note p { font-size: 1.02rem; line-height: 1.55; margin: 0; color: var(--ink-60); }
.partner-note__cta .btn { white-space: nowrap; }


/* ── Glossary toolbar: search + alphabet, pinned together ───────────────── */
.gl-tools {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  padding-block: 0.9rem;
  margin-bottom: clamp(6px, 0.8vw, 12px);
}
.gl-tools .gl-index { position: static; margin-bottom: 0; border-top: none;
                      border-top-left-radius: 0; border-top-right-radius: 0; }

/* Field is a Frame, not a pill: 3px radius, hairline, Signal on focus */
.gl-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink-14);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  padding: 0 clamp(14px, 1.6vw, 20px);
  transition: border-color 140ms ease;
}
.gl-search:focus-within { border-color: var(--signal); }
.gl-search__icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--ink-40); }
.gl-search:focus-within .gl-search__icon { color: var(--signal); }

.gl-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.95rem 0;
  font-family: var(--data);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.gl-search input::placeholder { color: var(--ink-40); font-weight: 400; }
.gl-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.gl-search__count {
  flex: 0 0 auto;
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* Letters with no match in the current filter */
.gl-index a.is-off { color: rgba(7, 3, 29, 0.16); pointer-events: none; }

.gl-empty {
  font-family: var(--data);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-60);
  padding: clamp(34px, 4vw, 54px) 0;
  margin: 0;
  border-top: 2px solid var(--ink);
}

@media (max-width: 620px) {
  .gl-search__count { display: none; }
  .gl-search input { font-size: 0.86rem; }
}

/* ── Sub-head: opens the second half of a merged section, on Paper ─────────
   Ink at full strength, with the rule carrying the section break. Signal is
   available here under C21033 (5.32:1 on Paper) but is held back so the
   section eyebrow above stays the louder of the two. */
.sub-head {
  max-width: 47rem;
  margin-top: clamp(58px, 7vw, 98px);
  padding-top: clamp(30px, 3.4vw, 44px);
  border-top: 2px solid var(--ink);
  margin-bottom: clamp(32px, 3.8vw, 48px);
}
.sub-head .eyebrow { color: var(--ink); }
.sub-head h2 { margin-bottom: 0.75rem; }
.sub-head .lede { margin-bottom: 0; }

/* ── Who builds it: framed, closing "Why we built this" ─────────────────── */
.who-block {
  max-width: 62ch;
  margin-top: clamp(38px, 4.4vw, 58px);
  padding: clamp(22px, 2.8vw, 34px);
}
.who-block h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.1rem, 1.7vw, 1.32rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.85rem;
}
.who-block p { font-size: 0.98rem; line-height: 1.58; color: var(--ink-72); }
.who-block p:last-child { margin-bottom: 0; }

/* ── Paint Paper explicitly ───────────────────────────────────────────────
   Some in-app webviews ignore the background set on <body> and substitute
   their own dark backplate. Every Paper surface therefore paints itself
   rather than inheriting; the Ink surfaces are re-asserted after, so the
   header bands and hero keep their dark ground. */
main,
.band,
.footer,
.pv-page { background: var(--paper); }

.hero-band,
.band__head,
.band--ink { background: var(--ink); }

/* ── Mobile menu ──────────────────────────────────────────────────────────
   Below 900px the inline links give way to a three-bar toggle and a panel
   that drops from the masthead. The Frame rules hold: 3px radius, ink
   hairline, no pill, no shadow. */
.nav-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 0;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease;
}
.nav-toggle:hover { background: var(--ink-08); }

.nav-toggle__bars { display: block; width: 22px; height: 14px; position: relative; }
.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 120ms ease;
}
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6px; }
.nav-toggle__bars i:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-panel {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-14);
}
.nav-panel[hidden] { display: none; }
.nav-panel__inner { display: flex; flex-direction: column; padding-block: 8px 26px; }
.nav-panel a {
  font-family: var(--data);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink-72);
  padding-block: 15px;
  border-top: 1px solid var(--ink-08);
}
.nav-panel a:first-child { border-top: none; }
.nav-panel a:hover { color: var(--ink); }
.nav-panel a.nav-panel__cta {
  margin-top: 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  text-align: center;
  padding: 0.92em 1.05em;
}

@media (max-width: 900px) {
  .nav a.nav__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead__inner { min-height: 78px; gap: 16px; }
  .wordmark { --mark-h: 36px; }
}
@media (max-width: 520px) {
  .wordmark { --mark-h: 30px; }
  .masthead__inner { min-height: 68px; }
}

/* ── Footer legal line ──────────────────────────────────────────────────── */
.footer__legal { margin: 0; max-width: 46ch; }

/* ── Pricing: middle column is prose, not a figure ───────────────────────── */
.rate-table--price tbody td:not(.amount) { font-size: 0.96rem; color: var(--ink-72); padding-right: 1.5rem; }

/* ── Categories at launch: a Frame, same build as the former portfolio note ─ */
.cat-note {
  margin-top: clamp(26px, 3vw, 38px);
  padding: clamp(26px, 2.8vw, 36px);
  max-width: 72ch;
}
.cat-note__tag {
  font-family: var(--data);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.9rem;
}
.cat-note h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.cat-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--ink-08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 2rem;
}
@media (max-width: 560px) { .cat-list { grid-template-columns: 1fr; } }
.cat-list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.2rem;
  font-family: var(--data);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.cat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 6px; height: 2px;
  background: var(--signal);
}
.lede a { color: inherit; text-underline-offset: 3px; }
.rate-table--price tbody th { padding-right: 1.2rem; white-space: nowrap; }
