/* Handfast — site styles
   Palette: spruce ink on sage paper; amber is "the line" and a person's decision;
   teal is work an agent did; brick is "Never". */

@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/assets/fonts/instrument.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument"; src: url(/assets/fonts/instrument-italic.woff2) format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap; }
/* metric-matched fallbacks keep layout stable while the fonts load */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Instrument Fallback"; src: local("Arial"); size-adjust: 97%; ascent-override: 96%; descent-override: 25%; }

:root {
  --paper: #edf0ea;
  --paper-2: #e2e8df;
  --paper-3: #d5ddd2;
  --surface: #f8faf6;
  --ink: #13201c;
  --ink-2: #3f4e48;
  --ink-3: #61706a;
  --rule: #c5cfc3;
  --spruce: #1d4a3f;
  --spruce-ink: #f2f5ef;
  --agent: #1f6f78;
  --agent-soft: #d3e7e6;
  --human: #9a5408;
  --human-soft: #f6e2bf;
  --line: #e59b2e;
  --never: #a2372a;
  --never-soft: #f3d9d3;
  --focus: #1f6f78;
  --shadow: 0 1px 0 rgba(19, 32, 28, .05), 0 12px 32px -12px rgba(19, 50, 40, .22);
  --radius-l: 18px;
  --radius-m: 12px;
  --radius-s: 8px;
  --display: "Bricolage", "Bricolage Fallback", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument", "Instrument Fallback", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1815; --paper-2: #14211d; --paper-3: #1c2c27; --surface: #15231f;
    --ink: #e5ece6; --ink-2: #b0bfb8; --ink-3: #8a9a93; --rule: #2a3b35;
    --spruce: #2b6556; --spruce-ink: #eef3ee;
    --agent: #6cc2c6; --agent-soft: #173a3a; --human: #f0b257; --human-soft: #3a2a12;
    --line: #f0a93f; --never: #ee7a65; --never-soft: #3a1c17; --focus: #6cc2c6;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1815; --paper-2: #14211d; --paper-3: #1c2c27; --surface: #15231f;
  --ink: #e5ece6; --ink-2: #b0bfb8; --ink-3: #8a9a93; --rule: #2a3b35;
  --spruce: #2b6556; --spruce-ink: #eef3ee;
  --agent: #6cc2c6; --agent-soft: #173a3a; --human: #f0b257; --human-soft: #3a2a12;
  --line: #f0a93f; --never: #ee7a65; --never-soft: #3a1c17; --focus: #6cc2c6;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.6;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 1.5rem + 5vw, 5.5rem); line-height: .96; letter-spacing: -.035em; font-stretch: 90%; font-variation-settings: "opsz" 96; }
h2 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.5rem); line-height: 1.02; letter-spacing: -.03em; font-stretch: 92%; font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.15; letter-spacing: -.015em; font-stretch: 92%; }
h4 { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.005em; }
.lede { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.small { font-size: .9375rem; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 600 1rem/1.1 var(--text); text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-small { min-height: 40px; padding: .5em 1.05em; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 700 1.3rem/1 var(--display); letter-spacing: -.025em; font-stretch: 88%; }
.brand .mark { width: 28px; height: 28px; color: var(--spruce); }
:root[data-theme="dark"] .brand .mark { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand .mark { color: var(--ink); } }
.primary { margin-left: auto; }
.primary ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.primary a:not(.btn) { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .96875rem; }
.primary a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.primary a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-cta-li { margin-left: 8px; }
.menu-btn { display: none; }
.theme-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn:hover { color: var(--ink); background: var(--paper-2); }

@media (max-width: 960px) {
  .primary { order: 2; margin-left: auto; }
  .theme-btn { order: 3; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 600 .9375rem var(--text); cursor: pointer; }
  .menu-icon, .menu-icon::before { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease; }
  .menu-icon::before { content: ""; position: absolute; top: 5px; }
  .menu-icon { transform: translateY(-2.5px); }
  .menu-btn[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(-5px) rotate(-90deg); }
  .primary ul { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
  .primary ul.open { display: flex; }
  .primary a:not(.btn) { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
  .primary a[aria-current="page"], .primary a:not(.btn):hover { background: transparent; }
  .nav-cta-li { margin: 16px 0 0; }
  .nav-cta-li .btn { width: 100%; min-height: 48px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + p, h2 + .lede { margin-top: 20px; }
.kicker { display: inline-block; font: 600 .9375rem/1.2 var(--text); color: var(--spruce); margin-bottom: 14px; }
:root[data-theme="dark"] .kicker { color: var(--agent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--agent); } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(64px, 8vw, 120px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 26px; }
.hero h1 .line-word { position: relative; white-space: nowrap; }
.hero h1 .line-word::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: .02em; height: .1em; border-radius: .05em;
  background: var(--line); transform-origin: left center; animation: draw 1.1s .5s cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { margin-bottom: 32px; }
.hero-note { margin-top: 22px; font-size: .9375rem; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); font-size: .875rem; font-weight: 500; text-decoration: none; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 4px color-mix(in srgb, var(--line) 25%, transparent); }

/* the stage: the hero's product vignette */
.stage {
  position: relative; contain: layout; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.stage-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.stage-title { font: 650 .9375rem/1 var(--display); letter-spacing: -.01em; }
.stage-tag { margin-left: auto; font-size: .78125rem; color: var(--ink-3); }
.stage-pause { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.stage-pause svg { width: 12px; height: 12px; }
.stage-counts { display: flex; gap: 18px; padding: 14px 18px 0; font-size: .84375rem; color: var(--ink-3); }
.stage-counts b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.zone { padding: 12px 18px; }
.zone-label { font-size: .78125rem; color: var(--ink-3); font-weight: 600; margin: 0 0 8px; }
.zone-propose { min-height: 262px; position: relative; }
.proposal {
  background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--agent); border-radius: var(--radius-m);
  padding: 14px 16px 16px; transition: transform .7s cubic-bezier(.5, 0, .2, 1), opacity .5s ease;
}
.proposal.enter { opacity: 0; transform: translateY(-18px); }
.proposal.cross { transform: translateY(150px) scale(.96); opacity: 0; }
.proposal.stopped { border-left-color: var(--never); }
.proposal.stopped .p-what { text-decoration: line-through; text-decoration-color: var(--never); text-decoration-thickness: 2px; color: var(--ink-3); }
.p-who { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; gap: 8px; font-size: .8125rem; color: var(--ink-3); margin-bottom: 6px; }
.agent-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--agent-soft); display: grid; place-items: center; flex: none; }
.agent-dot::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--agent); }
.p-who strong { color: var(--agent); font-weight: 600; white-space: nowrap; }
.p-what { font: 600 1.0625rem/1.35 var(--display); letter-spacing: -.01em; margin: 0 0 8px; font-stretch: 96%; }
.p-heard { font-size: .875rem; color: var(--ink-2); margin: 0 0 12px; padding-left: 10px; border-left: 2px solid var(--rule); font-style: italic; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.p-actions button { min-height: 38px; padding: 0 14px; border-radius: 999px; font: 600 .875rem var(--text); cursor: pointer; border: 1.5px solid var(--ink); }
.p-approve { background: var(--ink); color: var(--paper); }
.p-approve.pressed { transform: scale(.95); box-shadow: 0 0 0 5px color-mix(in srgb, var(--line) 45%, transparent); }
.p-back { background: transparent; color: var(--ink); }
.p-status { font-size: .84375rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.p-status.auto { color: var(--agent); }
.p-status.never { color: var(--never); }
.mode-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.mode-auto { background: var(--agent-soft); color: var(--agent); }
.mode-review { background: var(--human-soft); color: var(--human); }
.mode-never { background: var(--never-soft); color: var(--never); }

.the-line { position: relative; margin: 6px 0; padding: 0 18px; display: flex; align-items: center; gap: 10px; }
.the-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 2.5px dashed var(--line); }
.the-line span, .the-line em { position: relative; background: var(--surface); padding: 2px 8px; border-radius: 999px; font-size: .8125rem; }
.the-line span { white-space: nowrap; font-weight: 700; color: var(--ink); border: 1.5px solid var(--line); }
.the-line em { font-style: normal; color: var(--ink-2); transition: opacity .3s ease; }
.the-line.flash::before { border-top-color: var(--never); }
.the-line.flash span { border-color: var(--never); color: var(--never); }
.zone-record { height: 268px; overflow: hidden; flex: none; background: linear-gradient(var(--paper-2), var(--paper-2)) padding-box; border-top: 1px solid var(--rule); margin-top: 8px; }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; height: 212px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.ledger li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; font-size: .875rem; color: var(--ink-2); padding: 8px 10px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--rule); }
.ledger li.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { background: var(--human-soft); } 100% { background: var(--surface); } }
.ledger time { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .8125rem; }
.ledger .who-agent { color: var(--agent); font-weight: 600; }
.ledger .who-human { color: var(--human); font-weight: 600; }
.ledger .who-never { color: var(--never); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
}
@media (max-width: 560px) {
  .zone-propose { min-height: 290px; }
  .zone-record { height: 290px; }
  .ledger { height: 236px; }
  .stage-counts { gap: 12px; flex-wrap: wrap; }
}

/* ---------- contrast block (the problem) ---------- */
.contrast { background: var(--spruce); color: var(--spruce-ink); }
.contrast h2, .contrast h3 { color: var(--spruce-ink); }
.contrast .lede { color: color-mix(in srgb, var(--spruce-ink) 82%, transparent); }
.contrast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid color-mix(in srgb, var(--spruce-ink) 25%, transparent); }
.contrast-item { padding: 28px 28px 8px 0; }
.contrast-item + .contrast-item { padding-left: 28px; border-left: 1px solid color-mix(in srgb, var(--spruce-ink) 25%, transparent); }
.contrast-item .was { font-size: .9375rem; color: color-mix(in srgb, var(--spruce-ink) 70%, transparent); text-decoration: line-through; text-decoration-color: var(--line); margin-bottom: 8px; }
.contrast-item p:last-child { color: color-mix(in srgb, var(--spruce-ink) 88%, transparent); }
@media (max-width: 820px) {
  .contrast-grid { grid-template-columns: 1fr; }
  .contrast-item, .contrast-item + .contrast-item { padding: 24px 0 4px; border-left: 0; border-bottom: 1px solid color-mix(in srgb, var(--spruce-ink) 25%, transparent); }
}

/* ---------- the line, interactive policy ---------- */
.policy-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.policy { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.policy li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.policy .rule-name { font-weight: 500; }
.policy .rule-name small { display: block; color: var(--ink-3); font-size: .8125rem; font-weight: 400; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); }
.seg button { border: 0; background: transparent; color: var(--ink-3); font: 600 .8125rem var(--text); padding: 7px 11px; min-height: 34px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"][data-mode="auto"] { background: var(--agent-soft); color: var(--agent); }
.seg button[aria-pressed="true"][data-mode="review"] { background: var(--human-soft); color: var(--human); }
.seg button[aria-pressed="true"][data-mode="never"] { background: var(--never-soft); color: var(--never); }
.seg button:disabled { cursor: not-allowed; }
.seg.locked { opacity: 1; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--never); font-weight: 600; }
.lock svg { width: 14px; height: 14px; }
.policy-summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); }
.policy-summary .bars { display: grid; gap: 14px; margin: 18px 0 20px; }
.bar-row { display: grid; grid-template-columns: 7.5em 1fr 1.6em; gap: 10px; align-items: center; font-size: .875rem; }
.bar { height: 10px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; transition: width .45s cubic-bezier(.3, .7, .2, 1); }
.bar-auto i { background: var(--agent); }
.bar-review i { background: var(--line); }
.bar-never i { background: var(--never); }
.bar-row b { font-family: var(--display); text-align: right; font-variant-numeric: tabular-nums; }
.policy-summary .say { font: 600 1.25rem/1.3 var(--display); letter-spacing: -.015em; margin: 0 0 10px; font-stretch: 92%; }
@media (max-width: 900px) {
  .policy-grid { grid-template-columns: 1fr; }
  .policy-summary { position: static; }
}
@media (max-width: 560px) {
  .policy li { grid-template-columns: 1fr; gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 7px 6px; }
}

/* ---------- trust ladder (a real sequence) ---------- */
.ladder { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.ladder::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; border-top: 2px solid var(--rule); }
.ladder li { counter-increment: step; position: relative; padding: 0 24px 0 0; }
.ladder li::before {
  content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font: 700 1.1rem/1 var(--display); margin-bottom: 18px; position: relative;
}
.ladder li:last-child::before { background: var(--line); border-color: var(--line); color: #1b1404; }
.ladder h3 { margin-bottom: 8px; }
.ladder p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .ladder { grid-template-columns: 1fr; gap: 28px; }
  .ladder::before { top: 22px; bottom: 22px; left: 22px; right: auto; border-top: 0; border-left: 2px solid var(--rule); }
  .ladder li { padding: 0 0 0 68px; }
  .ladder li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- journey: lead to commission ---------- */
.journey { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; }
.journey li { position: relative; padding: 34px 14px 0 0; }
.journey li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--rule); }
.journey li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--agent); }
.journey li.by-human::after { border-color: var(--line); background: var(--line); }
.journey h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin-bottom: 6px; }
.journey p { font-size: .9375rem; color: var(--ink-2); margin: 0; }
.journey .who { display: inline-block; margin-top: 10px; }
.journey-key { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 36px; font-size: .875rem; color: var(--ink-3); }
.journey-key span { display: inline-flex; align-items: center; gap: 8px; }
.journey-key i { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--agent); display: inline-block; }
.journey-key i.h { border-color: var(--line); background: var(--line); }
@media (max-width: 1020px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey li { padding: 0 0 26px 40px; }
  .journey li::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; }
  .journey li:last-child::before { bottom: auto; height: 12px; }
  .journey li::after { top: 4px; left: 0; }
}

/* ---------- canada band ---------- */
.band { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.facts li { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 2.2em 1fr; gap: 10px; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts svg { width: 22px; height: 22px; color: var(--spruce); margin-top: 3px; }
:root[data-theme="dark"] .facts svg { color: var(--agent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .facts svg { color: var(--agent); } }
.facts h3 { font-size: 1.0625rem; letter-spacing: -.005em; margin-bottom: 4px; font-family: var(--text); font-weight: 650; font-stretch: 100%; }
.facts p { margin: 0; color: var(--ink-2); font-size: .96875rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- tiles: two paths (migrate, partners) ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.path { border-radius: var(--radius-l); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; min-height: 340px; }
.path p { color: var(--ink-2); }
.path .btn-row { margin-top: auto; }
.path-migrate { background: var(--surface); border: 1px solid var(--rule); }
.path-partner { background: var(--ink); color: var(--paper); }
.path-partner h3, .path-partner h2 { color: var(--paper); }
.path-partner p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.path-partner .btn { background: var(--line); border-color: var(--line); color: #1b1404; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 8px; }
.sources li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: .875rem; font-weight: 500; background: var(--paper); }
.sources-dark li { background: transparent; border-color: color-mix(in srgb, var(--paper) 30%, transparent); color: var(--paper); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* ---------- closing CTA ---------- */
.closing { text-align: left; }
.closing-inner { border-top: 2.5px dashed var(--line); padding-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.closing h2 { font-size: clamp(2.2rem, 1.3rem + 3.8vw, 4.5rem); }
@media (max-width: 820px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(36px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.75rem); margin: 10px 0 24px; max-width: 14em; }
.feature-rows { display: grid; gap: 0; }
.feature-row { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); padding: clamp(36px, 5vw, 56px) 0; border-top: 1px solid var(--rule); }
.feature-row h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.feature-row .intro { color: var(--ink-2); margin-top: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 3px; border-radius: 2px; background: var(--line); }
.checklist strong { display: block; font-weight: 650; margin-bottom: 2px; }
.checklist span { color: var(--ink-2); font-size: .96875rem; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }

.callout { border-left: 4px solid var(--line); background: var(--surface); padding: 20px 24px; border-radius: 0 var(--radius-m) var(--radius-m) 0; margin: 28px 0; }
.callout p:last-child { margin: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .96875rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font: 650 .875rem/1.3 var(--text); color: var(--ink-3); background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; white-space: nowrap; }
td .mode-chip { margin-top: 2px; }
@media (max-width: 700px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap tr { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); margin-bottom: 14px; padding: 6px 0; }
  .table-wrap td { border: 0; padding: 8px 16px; white-space: normal; }
  .table-wrap td:first-child { font: 700 1.25rem/1.2 var(--display); padding-top: 12px; }
  .table-wrap td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .8125rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
  .table-wrap td.empty { display: none; }
}

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li::before { content: counter(s); font: 700 1.75rem/1 var(--display); color: var(--line); }
.steps h3 { font-size: 1.15rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 10px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.draft-note { display: inline-block; background: var(--human-soft); color: var(--human); border-radius: var(--radius-s); padding: 8px 12px; font-weight: 600; font-size: .9375rem; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font-weight: 600; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--radius-s); border: 1.5px solid var(--rule);
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--never); }
.err { color: var(--never); font-size: .875rem; min-height: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--paper); font-weight: 500; }
.choice input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-weight: 400; font-size: .9375rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--spruce); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-m); font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--agent-soft); color: var(--ink); border-left: 4px solid var(--agent); }
.form-status.bad { display: block; background: var(--never-soft); color: var(--ink); border-left: 4px solid var(--never); }
.form-done h2 { font-size: 2rem; margin-bottom: 10px; }
button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; }
.nf .the-line { padding: 0; margin: 28px 0; max-width: 520px; }
.nf .the-line span, .nf .the-line em { background: var(--paper); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 28px; margin-top: 40px; font-size: .9375rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
.footer-brand p { max-width: 24em; margin-top: 14px; }
.footer-status { color: var(--ink-3); }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-nav h2 { font: 650 .875rem/1.2 var(--text); color: var(--ink-3); letter-spacing: 0; margin-bottom: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; color: var(--ink); }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; background: linear-gradient(var(--rule), var(--rule)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px; color: var(--ink-3); font-size: .875rem; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .footer-nav { grid-template-columns: 1fr 1fr; } }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
