/* myREGION Export Ready: a freight-label workbook.
   Palette: saltbush paper, myREGION deep blue (#010080) and orange (#F94802). One family (Archivo) in two widths. */
/* Archivo (SIL OFL), self-hosted variable font with width and weight axes. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(/fonts/archivo-latin-standard-italic.woff2) format("woff2-variations"); }

:root {
  --paper: #F2F4F0;
  --paper-2: #E7EBE6;
  --card: #FFFFFF;
  --ink: #010080;
  --ink-hover: #1C1C9E;
  --on-ink-muted: #C4C6EE;
  --on-ink-faint: #9FA2DF;
  --on-ink-track: #2B2B9C;
  --ink-2: #3D5163;
  --ink-3: #66788A;
  --saltbush: #5C7A6B;
  --saltbush-2: #DCE5DF;
  --freight: #F94802;
  --freight-2: #FEE3D6;
  --freight-hover: #DD3E00;
  --rag-amber: #EDBE3C;
  --signal: #B4442F;
  --signal-2: #F6DEDA;
  --paddock: #3E8659;
  --paddock-2: #DCEEE2;
  --amber: #C98A12;
  --line: #C9D2CC;
  --line-2: #DDE3DE;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: 72; /* condensed width for labels & titles */

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 3px; --r-md: 6px;
  --rail: 264px;
  --measure: 68ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.55; font-variation-settings: "wdth" 100;
}
img, svg { display: block; }
a { color: var(--ink); text-decoration-color: var(--saltbush); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
p { margin: 0 0 var(--s4); max-width: var(--measure); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-stretch: 72%; font-variation-settings: "wdth" var(--narrow); }
:focus-visible { outline: 3px solid var(--freight); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--freight); color: #FFFFFF; font-weight: 700; padding: var(--s2) var(--s4); z-index: 100; }
.skip:focus { left: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 0 var(--s5); height: 64px; background: #FFFFFF; color: var(--ink); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: var(--s4); color: inherit; text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-product { white-space: nowrap; font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 22px; color: var(--ink); padding-left: var(--s4); border-left: 2px solid var(--line); line-height: 1.2; }
.topbar-right { display: flex; align-items: center; gap: var(--s4); font-size: 14px; }
.save-state { color: var(--ink-3); }
.save-state[data-state="error"] { color: var(--signal); }
.code-chip {
  display: inline-flex; align-items: center; gap: var(--s2); padding: 5px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer;
}
.code-chip strong { font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.code-chip:hover { border-color: var(--ink); }

/* ---------- Shell & route rail ---------- */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: calc(100vh - 64px); }
.shell.is-welcome { grid-template-columns: minmax(0, 1fr); }
.shell.is-welcome .route { display: none; }
.route { border-right: 1px solid var(--line); padding: var(--s6) var(--s5) var(--s6) var(--s5); background: var(--paper-2); }
.route-inner { position: sticky; top: calc(64px + var(--s6)); }
.route ol { list-style: none; margin: 0; padding: 0; position: relative; }
.route ol::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(var(--ink-3) 0 6px, transparent 6px 11px); }
.route li { position: relative; }
.stop {
  display: grid; grid-template-columns: 24px 1fr; gap: var(--s3); align-items: start; width: 100%; padding: var(--s2) 0 var(--s4);
  background: none; border: 0; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer;
}
.stop-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--ink-3); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--ink-3); position: relative; z-index: 1; }
.stop-label { font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 700; font-size: 19px; line-height: 1.15; padding-top: 1px; }
.stop-sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); font-variation-settings: "wdth" 100; font-stretch: 100%; margin-top: 2px; }
.stop:hover .stop-label { color: var(--ink); }
.stop[aria-current="step"] .stop-dot { background: var(--freight); border-color: var(--freight); color: #FFFFFF; }
.stop[aria-current="step"] .stop-label { color: var(--ink); }
.stop.is-done .stop-dot { background: var(--ink); border-color: var(--ink); color: var(--freight); }
.stamp {
  display: table; margin-top: 5px; padding: 1px 7px; border: 1.5px solid var(--paddock); color: var(--paddock); border-radius: var(--r-sm);
  font-size: 12px; font-weight: 700; transform: rotate(-2deg); background: rgba(255,255,255,.5);
}
.route-foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.route-foot button { margin-top: var(--s2); }

main { padding: var(--s7) var(--s7) var(--s8); min-width: 0; outline: none; }
.loading { color: var(--ink-3); }

/* ---------- Step header ---------- */
.step-head { margin-bottom: var(--s6); max-width: 900px; }
.step-count { font-size: 15px; color: var(--saltbush); font-weight: 600; margin-bottom: var(--s2); }
.step-title { font-size: clamp(40px, 6vw, 72px); font-weight: 850; letter-spacing: -.01em; line-height: .95; margin-bottom: var(--s4); text-wrap: balance; }
.step-why { font-size: 18px; color: var(--ink-2); max-width: 62ch; }

/* ---------- Sections ---------- */
.section { max-width: 900px; margin-bottom: var(--s7); }
.section > h2 { font-size: 30px; font-weight: 800; margin-bottom: var(--s2); }
.section > .lede { color: var(--ink-2); margin-bottom: var(--s5); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); }
.panel + .panel { margin-top: var(--s4); }
.hint { font-size: 14px; color: var(--ink-3); }
.muted { color: var(--ink-3); }

/* ---------- Forms ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.field .hint { margin-top: -2px; }
input[type="text"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #FBFCFA; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.tall { min-height: 170px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--freight-2); }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; padding: var(--s2) 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #FBFCFA; font-size: 15px; }
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--freight); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 18px;
  font: inherit; font-weight: 700; font-size: 16px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--paper-2); }
.btn-primary { background: var(--freight); border-color: var(--freight); color: #FFFFFF; font-weight: 800; }
.btn-primary:hover { color: #FFFFFF; }
.btn-primary:hover { background: var(--freight-hover); border-color: var(--freight-hover); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-hover); }
.btn-quiet { border-color: transparent; padding: 0 10px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn-quiet:hover { background: transparent; text-decoration-thickness: 2px; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- Prompt panel (AI) ---------- */
.prompt { border: 1px solid var(--line); border-left: 6px solid var(--ink); background: var(--card); border-radius: var(--r-md); margin: var(--s5) 0; }
.prompt-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5) var(--s2); }
.prompt-id { font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 22px; }
.prompt-id small { font-weight: 600; color: var(--saltbush); font-size: 16px; margin-right: var(--s2); }
.prompt-body { padding: 0 var(--s5) var(--s5); }
.prompt-text { margin: var(--s3) 0; padding: var(--s4); background: var(--paper); border-radius: var(--r-sm); font-size: 15px; line-height: 1.6; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.prompt-text mark { background: var(--freight-2); color: var(--signal); padding: 0 2px; border-radius: 2px; }
details.see-prompt > summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: var(--s1) 0; }
.missing { font-size: 14px; color: var(--signal); margin: var(--s2) 0 var(--s3); }
.answer { margin-top: var(--s4); border-top: 1px dashed var(--line); padding-top: var(--s4); }
.answer-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); font-size: 13px; color: var(--ink-3); margin-bottom: var(--s2); }
.md { max-width: var(--measure); }
.md h3 { font-size: 22px; font-weight: 800; margin: var(--s5) 0 var(--s2); }
.md h3:first-child { margin-top: 0; }
.md p { margin: 0 0 var(--s3); }
.md ul, .md ol { padding-left: 1.3em; margin: 0 0 var(--s3); }
.md li { margin-bottom: 4px; }
.md li:has(> input[type=checkbox]) { list-style: none; margin-left: -1.3em; }
.md input[type=checkbox] { margin-right: 8px; accent-color: var(--ink); }
.md strong { font-weight: 700; }
.streaming::after { content: "▍"; animation: blink 1s steps(2) infinite; color: var(--saltbush); }
@keyframes blink { 50% { opacity: 0; } }
.ai-off { font-size: 14px; color: var(--ink-3); }

/* ---------- Tier cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.tier { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s4); border: 1.5px solid var(--line); background: var(--card); border-radius: var(--r-md); cursor: pointer; }
.tier input { position: absolute; opacity: 0; }
.tier h3 { font-size: 22px; font-weight: 800; }
.tier .ex { font-size: 14px; color: var(--ink-3); }
.tier p { font-size: 15px; margin: 0; }
.tier .start { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: var(--s2); margin-top: auto; }
.tier:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tier:has(input:focus-visible) { outline: 3px solid var(--freight); outline-offset: 2px; }
.tier .flag { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--freight); color: #FFFFFF; padding: 2px 8px; border-radius: var(--r-sm); }

/* ---------- Market list ---------- */
.markets { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.market { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s3) var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: start; }
.market-name { font-weight: 800; font-size: 20px; font-stretch: 72%; font-variation-settings: "wdth" 72; }
.market-meta { font-size: 14px; color: var(--ink-3); margin-left: var(--s2); font-weight: 400; }
.market ul { margin: var(--s2) 0 0; padding-left: 1.1em; font-size: 15px; color: var(--ink-2); }
.market .btn-row { justify-content: flex-end; }
.fit { display: inline-flex; gap: 3px; margin-left: var(--s2); vertical-align: middle; }
.fit i { width: 8px; height: 14px; background: var(--line); border-radius: 1px; }
.fit i.on { background: var(--saltbush); }

/* country profile */
.profile { margin-top: var(--s4); }
.profile h3 { font-size: 26px; font-weight: 850; }
.profile dl { display: grid; grid-template-columns: 160px 1fr; gap: var(--s2) var(--s4); margin: var(--s4) 0; font-size: 15px; }
.profile dt { font-weight: 700; }
.profile dd { margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3) var(--s2) 0; border-bottom: 1px solid var(--line-2); }
.table th { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.table tr.is-yours td:first-child { font-weight: 700; }
.table tr.is-yours { background: var(--freight-2); }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s3); }
.pack { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: var(--paper); }
.pack b { display: block; font-size: 16px; margin-bottom: 2px; }
.pack .track { color: var(--ink-3); font-size: 13px; }
.pack.is-yours { border-color: var(--ink); background: var(--freight-2); }
.warn { padding: var(--s3) var(--s4); border-left: 4px solid var(--signal); background: var(--signal-2); border-radius: var(--r-sm); font-size: 15px; margin: var(--s3) 0; }
.note { padding: var(--s3) var(--s4); border-left: 4px solid var(--saltbush); background: var(--saltbush-2); border-radius: var(--r-sm); font-size: 15px; margin: var(--s3) 0; }
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

/* shortlist & checklist */
.shortlist { display: grid; gap: var(--s4); }
.sl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-bottom: var(--s3); }
.sl-head h3 { font-size: 26px; font-weight: 850; }
.role-tag { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); background: var(--ink); color: var(--freight); margin-left: var(--s2); vertical-align: middle; }
.role-tag.backup { background: var(--saltbush-2); color: var(--ink); }
.cl { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.cl li { display: grid; grid-template-columns: 1fr auto; gap: var(--s3); align-items: center; padding: var(--s2) 0; border-bottom: 1px solid var(--line-2); font-size: 15px; counter-increment: q; }
.cl li > span::before { content: counter(q) ". "; font-weight: 700; }
.ynu { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.ynu label { position: relative; }
.ynu input { position: absolute; opacity: 0; }
.ynu span { display: block; padding: 5px 10px; font-size: 13px; font-weight: 600; cursor: pointer; border-left: 1px solid var(--line); }
.ynu label:first-child span { border-left: 0; }
.ynu input:checked + span { background: var(--ink); color: var(--paper); }
.ynu input[value="yes"]:checked + span { background: var(--paddock); }
.ynu input[value="no"]:checked + span { background: var(--signal); }
.ynu input:focus-visible + span { outline: 3px solid var(--freight); outline-offset: -3px; }
.cl-hint { display: block; font-size: 13px; color: var(--paddock); font-weight: 600; }
.tally { font-weight: 700; }
.tally.pass { color: var(--paddock); }
.tally.fail { color: var(--signal); }

/* ---------- Readiness gauge ---------- */
.dims { display: grid; gap: var(--s4); }
.dim { padding: var(--s4) var(--s5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.dim h3 { font-size: 22px; font-weight: 800; margin-bottom: var(--s3); }
.scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s4); align-items: center; }
.scale .end { font-size: 14px; color: var(--ink-2); }
.scale .end.right { text-align: right; }
.scale .end b { display: block; font-size: 13px; color: var(--ink-3); font-weight: 700; }
.seg { display: inline-flex; gap: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font-weight: 800; cursor: pointer; background: #FBFCFA; }
.seg input:checked + span { background: var(--ink); color: var(--freight); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid var(--freight); outline-offset: 2px; }

.gauge { display: grid; grid-template-columns: auto 1fr; gap: var(--s6); align-items: center; background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: var(--s5) var(--s6); }
.gauge-total { font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900; font-size: 96px; line-height: .85; color: var(--freight); }
.gauge-total small { font-size: 32px; color: var(--on-ink-faint); font-weight: 700; }
.gauge-band { font-size: 26px; font-weight: 800; font-stretch: 72%; font-variation-settings: "wdth" 72; margin-bottom: var(--s2); }
.gauge p { color: var(--on-ink-muted); font-size: 15px; margin-bottom: var(--s3); }
.bars { display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: 170px 1fr 28px; gap: var(--s3); align-items: center; font-size: 14px; }
.bar-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.bar-track i { height: 12px; background: var(--on-ink-track); border-radius: 1px; }
.bar-track i.on[data-tone="red"] { background: #E0705B; }
.bar-track i.on[data-tone="amber"] { background: var(--rag-amber); }
.bar-track i.on[data-tone="green"] { background: #6BC08A; }

/* ---------- Directory, programs, channels ---------- */
.dir { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dir li { display: grid; grid-template-columns: 240px 1fr; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.dir h3 { font-size: 20px; font-weight: 800; }
.dir p { font-size: 15px; margin-bottom: var(--s2); }
.dir .how { font-size: 14px; color: var(--ink-2); }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-sm); background: var(--saltbush-2); }
.status.closed { background: var(--signal-2); color: var(--signal); }
.status.open { background: var(--paddock-2); color: var(--paddock); }
.channels { display: grid; gap: var(--s3); }
.channel { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s4); border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); cursor: pointer; position: relative; }
.channel input { position: absolute; opacity: 0; }
.channel:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.channel:has(input:focus-visible) { outline: 3px solid var(--freight); outline-offset: 2px; }
.channel h3 { font-size: 22px; font-weight: 800; }
.channel p { font-size: 15px; margin: var(--s1) 0 0; }
.channel .rank { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--paper-2); color: var(--ink-3); }
.channel.is-top .rank { background: var(--freight); color: #FFFFFF; }
.channel details { margin-top: var(--s2); font-size: 14px; color: var(--ink-2); }

/* weeks */
.weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.week { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4); }
.week h3 { font-size: 22px; font-weight: 850; }
.week .focus { font-weight: 600; margin-bottom: var(--s2); }
.week .outcome { font-size: 13px; color: var(--ink-3); margin-top: var(--s2); border-top: 1px solid var(--line-2); padding-top: var(--s2); }
.week .check { font-size: 14px; padding: 4px 0; }

/* ---------- Step footer ---------- */
.step-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); max-width: 900px; padding-top: var(--s5); border-top: 2px solid var(--ink); }

/* ---------- Welcome ---------- */
.welcome { max-width: 1120px; margin: 0 auto; }
.hero { padding: var(--s6) 0 var(--s7); }
.hero h1 { font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900; font-size: clamp(52px, 9vw, 116px); line-height: .9; letter-spacing: -.01em; max-width: 12ch; margin-bottom: var(--s5); }
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 56ch; margin-bottom: var(--s6); }
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s3); margin: var(--s6) 0 var(--s7); padding-top: 34px; list-style: none; padding-left: 0; }
.journey::before { content: ""; position: absolute; top: 11px; left: 12px; right: 12px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); }
.journey li { position: relative; font-size: 15px; color: var(--ink-2); }
.journey li::before { content: ""; position: absolute; top: -34px; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.journey li:last-child::before { background: var(--freight); }
.journey b { display: block; font-stretch: 72%; font-variation-settings: "wdth" 72; font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1.1; margin-bottom: 4px; }
.journey .n { font-size: 13px; color: var(--saltbush); font-weight: 700; }
.welcome-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); align-items: start; }
.outcomes { list-style: none; padding: 0; margin: 0; }
.outcomes li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.outcomes li::before { content: "✓"; font-weight: 900; color: var(--paddock); }
.resume { background: var(--ink); color: var(--paper); border-radius: var(--r-md); padding: var(--s5); }
.resume h2 { font-size: 26px; font-weight: 800; margin-bottom: var(--s2); }
.resume p { color: var(--on-ink-muted); font-size: 15px; }
.resume input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: var(--paper); letter-spacing: .08em; text-transform: uppercase; }
.resume .btn { border-color: var(--paper); color: var(--paper); }
.resume .btn:hover { background: var(--ink-hover); }
.resume .err { color: #FFC2B0; font-size: 14px; margin-top: var(--s2); }
.source-note { font-size: 14px; color: var(--ink-3); margin-top: var(--s6); max-width: 80ch; }

/* ---------- Plan document ---------- */
.doc { max-width: 860px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s7); }
.doc-head { border-bottom: 3px solid var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s5); }
.doc-head h1 { font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 56px; font-weight: 900; }
.doc-head p { color: var(--ink-3); margin: var(--s2) 0 0; }
.doc section { margin-bottom: var(--s6); break-inside: avoid-page; }
.doc h2 { font-size: 28px; font-weight: 850; margin-bottom: var(--s3); padding-bottom: var(--s1); border-bottom: 1px solid var(--line); }
.doc .empty { color: var(--ink-3); font-style: italic; }
.doc-actions { margin-bottom: var(--s5); }

/* ---------- Toast & misc ---------- */
.toast { position: fixed; bottom: var(--s5); left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: var(--s3) var(--s5); border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; font-size: 15px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.noscript { padding: var(--s6); }
.stack > * + * { margin-top: var(--s4); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tiers, .packs { grid-template-columns: 1fr; }
  .weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  main { padding: var(--s6) var(--s5) var(--s8); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .route { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--s3) var(--s4); overflow-x: auto; }
  .route-inner { position: static; }
  .route ol { display: flex; gap: var(--s4); }
  .route ol::before { left: 12px; right: 12px; top: 11px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); }
  .stop { grid-template-columns: 24px auto; padding: 0; white-space: nowrap; }
  .stop-sub, .stamp, .route-foot { display: none; }
  .stop-label { font-size: 16px; }
  .fields, .two, .welcome-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; padding-top: 0; padding-left: 40px; gap: var(--s4); }
  .journey::before { top: 0; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 14px); }
  .journey li::before { top: 0; left: -40px; }
  .dir li, .market { grid-template-columns: 1fr; }
  .market .btn-row { justify-content: flex-start; }
  .scale { grid-template-columns: 1fr; }
  .scale .end.right { text-align: left; }
  .gauge { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s5); }
  .bar { grid-template-columns: 120px 1fr 24px; }
  .weeks { grid-template-columns: 1fr; }
  .profile dl { grid-template-columns: 1fr; }
  .doc { padding: var(--s5); }
  .topbar { padding: 0 var(--s4); }
  .save-state, .code-label { display: none; }
  .brand { gap: var(--s3); }
  .brand-logo { height: 30px; }
  .brand-product { font-size: 17px; padding-left: var(--s3); }
  .code-chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: plan document only ---------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .topbar, .route, .doc-actions, .skip, .toast, .step-foot { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
  .doc { border: 0; padding: 0; max-width: none; }
  a { text-decoration: none; }
  .md input[type=checkbox] { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
