/* ===== attain — fonts (self-hosted, offline) ===== */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ===== Tokens ===== */
:root {
  --paper: #F4EDE1;
  --paper-2: #ECE3D3;
  --card: #FBF7EF;
  --line: #E4DAC7;
  --line-2: #D8CBB2;
  --ink: #221E18;
  --ink-2: #6E6557;
  --ink-3: #736B5F;   /* darkened Sept 2026: the old #9C9384 failed contrast for small text */

  --dark: #1C1916;
  --dark-2: #272219;
  --dark-line: #3C3528;
  --dark-ink: #EDE6D8;
  --dark-ink-2: #ABA08C;

  --pine: #3F6B4F;
  --amber: #C0862F;
  --orange: #BE6326;
  --rust: #AF441E;
  --shift: #BD8A34;
  --rust-wash: #F1E0D3;
  --pine-wash: #E5EDE4;
  --shift-wash: #F4E8CE;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --maxw: 860px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: 13.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.boot { color: var(--ink-3); padding: 48px 19px; font-family: var(--ui); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 19px; }
button { font-family: var(--ui); }
::selection { background: var(--rust-wash); }

/* ===== Reveal motion ===== */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { animation: rise .55s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ===== Opener ===== */
.opener { padding: 45px 0 10px; }
.topbar { display: flex; align-items: baseline; justify-content: space-between; gap: 13px; }
.stamp { font-size: 10px; color: var(--ink-2); letter-spacing: .02em; border: 1px solid var(--line-2); border-radius: 100px; padding: 3px 9px; }
.opener h1 {
  font-family: var(--serif); font-weight: 460; font-optical-sizing: auto;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.02em;
  margin: 20px 0 0; max-width: 24ch;
}
.opener .lede { color: var(--ink-2); font-size: 15px; margin: 12px 0 0; max-width: 58ch; }

/* ===== Section scaffold ===== */
.section { padding: 24px 0; border-top: 1px solid var(--line); margin-top: 24px; }
.kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.kicker .step { color: var(--rust); }

/* ===== Pick: tiles instead of dropdowns ===== */
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile {
  font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: 13px;
  padding: 10px 14px; cursor: pointer; transition: transform .18s var(--ease), border-color .18s, background .18s, color .18s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.tile.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tile.soon { color: var(--ink-3); background: transparent; border-style: dashed; cursor: not-allowed; }
.tile.soon:hover { transform: none; border-color: var(--line-2); }
.tile .soon-tag { font-size: 9.5px; opacity: .8; margin-left: 5px; }
.more-soon { font-size: 11px; color: var(--ink-3); margin: 13px 0 0; }

/* chosen role becomes a confident header */
.chosen { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chosen h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 4.3vw, 32.5px); letter-spacing: -.02em; margin: 0; }
.chosen .fam { color: var(--ink-2); font-size: 13px; }
.chosen .change { margin-left: auto; font-size: 11px; color: var(--ink-2); background: none; border: none; border-bottom: 1px solid var(--line-2); cursor: pointer; padding: 0 0 2px; }

/* ===== The shape-of-your-week spine (self-labelling) ===== */
.spine-wrap { margin: 5px 0 21px; }
.spine-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 7px; }
.spine-title b { font-weight: 500; font-size: 12px; color: var(--ink); }
.spine-title .hint { font-size: 10.5px; color: var(--ink-3); }
.spine { display: flex; height: 30px; border-radius: 9px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.spine-seg { height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; transition: flex-grow .45s var(--ease), flex-basis .45s var(--ease); overflow: hidden; }
.spine-seg span { font-size: 10px; font-weight: 700; white-space: nowrap; color: #fff; letter-spacing: .02em; padding: 0 5px; opacity: .96; }
.seg-exposed { background: var(--rust); }
.seg-shift { background: var(--shift); }
.seg-moat { background: var(--pine); }
.spine-empty { color: var(--ink-3); font-size: 11px; display: flex; align-items: center; justify-content: center; width: 100%; }
.spine-legend { display: flex; gap: 13px; margin: 7px 0 0; font-size: 10px; color: var(--ink-2); }
.spine-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 5px; vertical-align: middle; }

/* ===== Build: dormant -> active task cards ===== */
.pool { display: flex; flex-direction: column; gap: 7px; }
.tcard {
  display: flex; align-items: center; gap: 11px; background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--line-2);
  border-radius: 12px; padding: 10px 13px; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s, background .2s, opacity .2s, box-shadow .2s;
}
.tcard.dormant { opacity: .62; background: transparent; }
.tcard.dormant:hover { opacity: 1; transform: translateX(2px); }
.tcard .glyph { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.tcard .glyph svg { width: 15px; height: 15px; }
.tcard .body { flex: 1; min-width: 0; }
.tcard .name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.tcard .status { font-size: 10px; color: var(--ink-3); margin-top: 1px; }
.tcard .size { flex: 0 0 auto; display: none; }

/* active state, tinted by flag */
.tcard.active { opacity: 1; }
.tcard.active .size { display: inline-flex; }
.tcard.active.exposed { border-left-color: var(--rust); background: var(--rust-wash); }
.tcard.active.exposed .glyph { border-color: var(--rust); color: var(--rust); }
.tcard.active.exposed .status { color: var(--rust); }
.tcard.active.fortress { border-left-color: var(--pine); background: var(--pine-wash); }
.tcard.active.fortress .glyph { border-color: var(--pine); color: var(--pine); }
.tcard.active.fortress .status { color: var(--pine); }
.tcard.active.transitional { border-left-color: var(--shift); background: var(--shift-wash); }
.tcard.active.transitional .glyph { border-color: var(--shift); color: var(--shift); }
.tcard.active.transitional .status { color: var(--shift); }

/* physical weight: size changes the card's presence */
.tcard.active.s-light { padding: 7px 13px; }
.tcard.active.s-light .name { font-size: 12px; }
.tcard.active.s-heavy { padding: 15px 13px; box-shadow: inset 3px 0 0 rgba(0,0,0,.04); }
.tcard.active.s-heavy .name { font-size: 14.5px; font-weight: 500; }

/* size segmented control */
.size { display: inline-flex; align-items: flex-end; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--card); }
.size button { display: flex; align-items: flex-end; justify-content: center; width: 33px; height: 38px; padding-bottom: 7px; border: none; border-right: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .15s; }
.size button:last-child { border-right: none; }
.size .bar { width: 7px; border-radius: 2px 2px 0 0; background: var(--ink-3); transition: background .15s; }
.size button:hover .bar { background: var(--ink-2); }
.size button.on { background: var(--ink); }
.size button.on .bar { background: var(--paper); }

/* first-task shimmer — a quiet "I'm interactive" invitation (v3.1) */
.tcard.hint { position: relative; overflow: hidden; }
.tcard.hint::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 35%, rgba(175, 68, 30, .13) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: cardShimmer 1.8s var(--ease) 3;
}
@keyframes cardShimmer { 0% { transform: translateX(-130%); } 60% { transform: translateX(130%); } 100% { transform: translateX(130%); } }

/* add your own */
.addown { margin-top: 11px; }
.addown input { width: 100%; font-family: var(--ui); font-size: 13px; color: var(--ink); background: transparent; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 13px; }
.addown input::placeholder { color: var(--ink-3); }
.addown input:focus { outline: none; border-color: var(--ink-3); border-style: solid; }
.addown input:disabled { opacity: .55; cursor: not-allowed; }
.addown-note { margin: 5px 3px 0; font-size: 10.5px; color: var(--ink-3); }

/* ===== Experience inline ===== */
.exp-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--card); }
.exp-seg button { font: inherit; font-size: 12px; font-weight: 500; padding: 10px 16px; border: none; border-right: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .18s, color .18s; }
.exp-seg button:last-child { border-right: none; }
.exp-seg button .yrs { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 1px; }
.exp-seg button.on { background: var(--ink); color: var(--paper); }
.exp-seg button.on .yrs { color: var(--paper); opacity: .7; }

/* ===== Reveal CTA ===== */
.cta { margin: 29px 0 6px; }
.cta-btn {
  font-family: var(--ui); font-size: 13.5px; font-weight: 500; color: var(--paper);
  background: var(--ink); border: none; border-radius: 100px; padding: 13px 24px; cursor: pointer;
  transition: transform .18s var(--ease), opacity .2s; letter-spacing: .01em;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.cta-hint { font-size: 11px; color: var(--ink-3); margin: 10px 0 0; }

/* ===== Staging reveal ===== */
.staging { min-height: 56vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.staging .spinner { width: 40px; height: 40px; }
.staging .spinner svg { width: 100%; height: 100%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.stage { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-3); transition: color .35s var(--ease); }
.stage .dot { width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: 0 0 auto; position: relative; transition: all .35s var(--ease); }
.stage.active { color: var(--ink); }
.stage.active .dot { border-color: var(--rust); box-shadow: 0 0 0 4px var(--rust-wash); }
.stage.done { color: var(--ink); }
.stage.done .dot { background: var(--rust); border-color: var(--rust); }
.stage.done .dot::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ===== Result movements ===== */
.movement { padding: 42px 0; }
.movement.full { width: 100%; }
.score-urgency { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 100px; padding: 4px 11px; }
/* Verdict — editorial pull quote */
.verdict-h { font-family: var(--serif); font-style: italic; font-weight: 460; font-size: clamp(24px, 4.3vw, 37.5px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.verdict-body { font-size: 15.5px; line-height: 1.7; color: var(--ink); max-width: 54ch; }
.verdict-loading { color: var(--ink-3); font-style: italic; font-family: var(--serif); font-size: 17px; }
.verdict-error { color: var(--ink-2); font-size: 13px; }
.tone-toggle { display: inline-flex; gap: 3px; margin-top: 21px; border: 1px solid var(--line-2); border-radius: 100px; padding: 2px; }
.tone { font: inherit; font-size: 11px; font-weight: 500; color: var(--ink-2); background: none; border: none; border-radius: 100px; padding: 6px 12px; cursor: pointer; }
.tone.on { background: var(--ink); color: var(--paper); }

/* Simulator — dark control room */
.m-sim { background: var(--dark); color: var(--dark-ink); }
.m-sim .kicker { color: var(--dark-ink-2); }
.m-sim .kicker .step { color: var(--orange); }
.sim-h { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3.8000000000000003vw, 32.5px); letter-spacing: -.02em; margin: 0 0 5px; }
.sim-lede { color: var(--dark-ink-2); font-size: 13px; margin: 0 0 22px; max-width: 50ch; }
.sim-figure { display: flex; align-items: baseline; gap: 13px; margin-bottom: 21px; }
.sim-score { font-family: var(--serif); font-weight: 600; font-size: 64.5px; line-height: .9; letter-spacing: -.03em; transition: color .4s var(--ease); }
.sim-meta { display: flex; flex-direction: column; gap: 3px; }
.sim-band { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.sim-delta { font-size: 12px; color: var(--dark-ink-2); }
.sim-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sim-chip { font: inherit; font-size: 12px; font-weight: 500; color: var(--dark-ink); background: transparent; border: 1px solid var(--dark-line); border-radius: 100px; padding: 7px 12px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.sim-chip:hover { border-color: var(--dark-ink-2); transform: translateY(-1px); }
.sim-chip[aria-pressed="true"] { background: var(--dark-ink); border-color: var(--dark-ink); color: var(--dark); }
.sim-chip.is-dormant { color: var(--dark-ink-2); border-style: dashed; opacity: .6; cursor: default; }
.sim-chip.is-dormant:hover { border-color: var(--dark-line); transform: none; }
.sim-note { color: var(--dark-ink-2); font-size: 11px; line-height: 1.5; margin: 13px 0 0; max-width: 54ch; }

/* Shape of your week (result hero) */

/* Concepts — the finale (dark) */
.m-concepts { background: var(--dark); color: var(--dark-ink); }
.m-concepts .kicker { color: var(--dark-ink-2); }
.m-concepts .kicker .step { color: var(--pine); }
.concepts-h { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 4.3vw, 35.5px); letter-spacing: -.02em; margin: 0 0 6px; }
.concepts-lede { color: var(--dark-ink-2); font-size: 13px; margin: 0 0 24px; max-width: 50ch; }
.concept { border-top: 1px solid var(--dark-line); padding: 19px 0; display: grid; grid-template-columns: 38px 1fr; gap: 13px; }
.concept:last-child { border-bottom: 1px solid var(--dark-line); }
.concept .n { font-family: var(--serif); font-size: 22px; color: var(--dark-ink-2); line-height: 1; }
.concept-label { font-family: var(--serif); font-weight: 500; font-size: 18.5px; letter-spacing: -.01em; margin: 0 0 5px; line-height: 1.15; }
.concept-why { color: var(--dark-ink-2); font-size: 13px; margin: 0 0 11px; line-height: 1.55; max-width: 52ch; }
.concept-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--dark-ink); text-decoration: none; border-bottom: 1px solid var(--dark-line); padding-bottom: 2px; transition: border-color .15s; }
.concept-link:hover { border-color: var(--dark-ink); }
.concept-link svg { width: 13px; height: 13px; }

/* 3-day learning plan (v7) — lives on the same dark finale panel */
.days { display: grid; gap: 14px; margin: 0 0 21px; }
.day { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 16px; padding: 16px 16px 14px; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 5px; }
.day-n { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dark-ink-2); }
.day-min { font-size: 10.5px; color: var(--dark-ink-2); border: 1px solid var(--dark-line); border-radius: 100px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.day-title { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 5px; }
.day-why { color: var(--dark-ink-2); font-size: 12.5px; line-height: 1.55; margin: 0 0 13px; max-width: 56ch; }
.day-title + .pv-list { margin-top: 10px; }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv { display: grid; grid-template-columns: 128px 1fr; gap: 11px; align-items: center; }
.pv-thumb { position: relative; display: block; width: 128px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: var(--dark); }
.pv-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-thumb:focus-visible, .pv-title:focus-visible, .deeper:focus-visible { outline: 2px solid var(--dark-ink); outline-offset: 3px; }
.pv-play { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; border-radius: 50%; background: rgba(28, 25, 22, .72); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .15s var(--ease), background .15s; }
.pv-play svg { width: 13px; height: 13px; margin-left: 2px; }
.pv-thumb:hover .pv-play { transform: scale(1.08); background: var(--rust); }
.pv-text { min-width: 0; }
.pv-title { font: inherit; font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--dark-ink); background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.pv-meta { display: block; font-size: 10.5px; color: var(--dark-ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.deeper { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 10px 11px; border: 1px dashed var(--dark-line); border-radius: 12px; color: var(--dark-ink); text-decoration: none; transition: border-color .15s; }
.deeper:hover { border-color: var(--dark-ink-2); }
.deeper-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.deeper-icon img { width: 30px; height: 30px; }
.deeper-icon svg { width: 20px; height: 20px; }
.deeper-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.deeper-k { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-ink-2); }
.deeper-title { font-size: 12px; font-weight: 500; line-height: 1.3; }
.deeper-meta { font-size: 10px; color: var(--dark-ink-2); }
.plan-actions { margin: 3px 0 14px; }
.btn.light { background: var(--dark-ink); color: var(--dark); border: none; }
.btn.light:disabled { opacity: .6; cursor: progress; transform: none; }
.plan-refreshed { font-size: 10px; color: var(--dark-ink-2); margin: 0 0 5px; font-variant-numeric: tabular-nums; }
.plan-credit { font-size: 10px; line-height: 1.55; color: var(--dark-ink-2); max-width: 62ch; margin: 0; }
.plan-credit a { color: var(--dark-ink); }

/* On-page video player */
.player-overlay { z-index: 60; }
.player { width: min(880px, 100%); background: var(--dark); border-radius: 16px; padding: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 2px 3px 8px; }
.player-title { flex: 1; min-width: 0; margin: 0; font-size: 12px; font-weight: 500; color: var(--dark-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-close { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--dark-line); background: transparent; color: var(--dark-ink); font-size: 17px; line-height: 1; cursor: pointer; }
.player-close:hover, .player-close:focus-visible { background: var(--dark-ink); color: var(--dark); outline: none; }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-yt { display: inline-block; margin: 8px 3px 2px; font-size: 11px; color: var(--dark-ink-2); text-decoration: none; border-bottom: 1px solid var(--dark-line); }
.player-yt:hover { color: var(--dark-ink); }
@media (max-width: 560px) {
  .day { padding: 13px 11px 11px; }
  .pv { grid-template-columns: 104px 1fr; gap: 10px; }
  .pv-thumb { width: 104px; }
}

/* Methodology + actions */
.m-method { background: var(--paper); padding-top: 8px; }
.method { border-top: 1px solid var(--line); padding-top: 12px; }
.method-h { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.method-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.method-list li { font-size: 11px; line-height: 1.35; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method-list b { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) {
  .method-list { grid-template-columns: 1fr; gap: 6px; }
  .method-list li { white-space: normal; }
}
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0 48px; }
.btn { font-family: var(--ui); font-size: 13px; font-weight: 500; border-radius: 100px; padding: 10px 18px; cursor: pointer; transition: transform .18s var(--ease), background .18s; }
.btn.solid { background: var(--ink); color: var(--paper); border: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn:hover { transform: translateY(-2px); }

/* ===== The disclaimer: a quiet link (rail on laptops, page foot on phones)
   opening a panel over the page ===== */
.disc-link { font-family: var(--ui); font-size: 10px; color: var(--ink-3); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.disc-link:hover { color: var(--ink-2); text-decoration-color: var(--ink-3); }
.disc-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.rail-disc { display: block; margin: 9px 5px 0; align-self: flex-start; text-align: left; }
.rail-about { display: block; margin: 0 5px 2px; align-self: flex-start; text-align: left; }
.brandhome { background: none; border: 0; padding: 0; margin: 0; display: inline-flex; cursor: pointer; font: inherit; color: inherit; }
.brandhome:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }

/* Phones: no rail, so the link sits right at the bottom of the page. */
.pagefoot { padding: 4px 0 26px; }
.pagefoot .disc-link { font-size: 10.5px; }

/* The panel itself */
.disc-overlay { align-items: flex-start; padding: 6vh 18px 18px; overflow-y: auto; }
.disc-modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(34, 30, 24, .22); }
.disc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.disc-h { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; }
.disc-close { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font-size: 19px; line-height: 1; cursor: pointer; }
.disc-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.disc-close:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.disc-body { overflow-y: auto; padding: 16px 20px 20px; }
.disc-items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.disc-item h3 { margin: 0 0 3px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.disc-item p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--ink-2); }
.disc-item a { color: var(--rust); }
.disc-updated { margin: 16px 0 0; font-size: 10.5px; color: var(--ink-3); }
body.disc-open { overflow: hidden; }

@media (min-width: 900px) { .pagefoot { display: none; } }   /* the rail carries it instead */
@media (max-width: 899px) { .rail-disc { display: none; } }
@media (max-width: 720px) {
  .disc-overlay { padding: 0; }
  .disc-modal { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .disc-items { grid-template-columns: 1fr; gap: 13px; }
}

/* ===== What attain is: real words near the bottom, and the same content in
   the raw HTML before the app takes over ===== */
/* Present in the page from the start; shown once the reader reaches the end,
   or asks for it from the rail. Hidden with display, so it leaves no gap. */
.about { display: none; border-top: 1px solid var(--line); padding: 26px 0 4px; }
.about:focus { outline: none; }
body.about-shown .about { display: block; }
.about-part { max-width: 68ch; margin: 0 0 16px; }
.about-part h2 { font-family: var(--serif); font-weight: 500; font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.about-part p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }

/* The plain HTML the page ships with. Anything that runs the page's code is
   about to replace it, so it is hidden the moment we know code is running
   (html.js, set in boot-title.js before the first paint). Without the page's
   code — most AI crawlers, and anyone with JavaScript off — it simply shows. */
html.js .seo-shell { display: none; }
.seo-shell { padding-top: 24px; }
.seo-shell h2 { font-family: var(--serif); font-weight: 500; font-size: 18px; margin: 22px 0 6px; }
.seo-shell h3 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 5px; }
.seo-shell p { font-size: 13px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.seo-shell ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); }
.seo-field { margin: 0 0 10px; }

/* dashed = contested confidence (kept, restyled) */
.contested { border-style: dashed !important; }

.modal-overlay { position: fixed; inset: 0; background: rgba(28, 25, 22, .6); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 50; }

/* floating scroll-to-top / bottom */
.scrollnav { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 40; }
.scrollnav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(34, 30, 24, .14); transition: transform .15s var(--ease), background .15s, color .15s; }
.scrollnav button:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }
.scrollnav svg { width: 20px; height: 20px; }

/* News category colours (used by the news dock) */
.cat-layoffs { color: var(--rust); border-color: var(--rust); }
.cat-hiring { color: var(--pine); border-color: var(--pine); }
.cat-tools { color: var(--orange); border-color: var(--orange); }
.cat-policy, .cat-company, .cat-research { color: var(--ink-2); }
.cat-default { color: var(--ink-3); }

/* ===== App bar — a slim header pinned to the top, carrying the attain logo ===== */
/* Laptops: its own bar (the side panels sit below it). Phones: the logo moves into
   the pinned progress bar instead, so there is only ever one bar at the top. */
:root { --appbar-h: 52px; }
.appbar { display: none; }
.railbar .attain-logo { --al-size: 19px; }

@media (min-width: 900px) {
  body { --shell-top: 76px; }
  .appbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; position: fixed; top: 0; left: 0; right: 0; height: var(--appbar-h); padding: 0 19px; background: rgba(244, 237, 225, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 40; }
  .appbar .attain-logo { --al-size: 22px; }
  .flow { padding-top: var(--appbar-h); }
  .opener { padding-top: 13px; }
}

/* ===== Progress rail (v5) — left stepper on desktop, top strip on mobile ===== */
.rail { display: none; }
.railbar { position: sticky; top: 0; z-index: 25; background: rgba(244, 237, 225, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 7px 16px 7px; }
.railbar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10.5px; }
.railbar-prog { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.railbar-cur { overflow: hidden; text-overflow: ellipsis; }
.railbar-cur { font-weight: 600; color: var(--ink); }
.railbar-cnt { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.railbar-track { height: 3px; border-radius: 2px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.railbar-fill { display: block; height: 100%; background: var(--rust); width: 16.6%; transition: width .4s var(--ease); }

@media (min-width: 900px) {
  .railbar { display: none; }
  .flow { padding-left: 236px; }
  .rail { display: flex; flex-direction: column; position: fixed; left: 24px; top: var(--shell-top, 24px); width: 196px; height: calc(100vh - var(--shell-top, 24px) - 24px - var(--dock-space, 0px)); overflow: hidden; z-index: 20; }
  .rail-list { overflow: auto; }
  .rail-about { margin-top: auto; align-self: flex-start; padding-top: 14px; }
  .rail-head { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 13px; }
  .rail-list { list-style: none; margin: 0; padding: 0; position: relative; }
  .rail-list::before { content: ''; position: absolute; left: 13px; top: 16px; bottom: 16px; width: 1.5px; background: var(--line-2); }
  .rail-list::after { content: ''; position: absolute; left: 13px; top: 16px; width: 1.5px; height: calc((100% - 32px) * var(--railp, 0)); background: var(--rust); transition: height .45s var(--ease); }
  .rail-step { position: relative; z-index: 1; }
  .rail-step button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; cursor: pointer; font: inherit; padding: 6px 5px 6px 0; border-radius: 9px; transition: background .18s; }
  .rail-step button:hover { background: var(--card); }
  .rail-step.locked button { cursor: not-allowed; }
  .rail-step.locked button:hover { background: none; }
  .rail-step button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
  .rail-dot { flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: border-color .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s; }
  .rail-dot svg { width: 13px; height: 13px; display: none; }
  .rail-txt { min-width: 0; }
  .rail-label { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-3); line-height: 1.2; transition: color .3s; }
  .rail-sub { display: block; font-size: 9.5px; font-weight: 500; color: var(--ink-3); max-height: 0; opacity: 0; overflow: hidden; transition: opacity .3s, max-height .3s; }
  .rail-step.done .rail-dot { background: var(--rust); border-color: var(--rust); color: transparent; }
  .rail-step.done .rail-dot svg { display: block; color: #fff; }
  .rail-step.done .rail-label { color: var(--ink); }
  .rail-step.current .rail-dot { border-color: var(--rust); color: var(--rust); box-shadow: 0 0 0 4px var(--rust-wash); }
  .rail-step.current .rail-label { color: var(--ink); font-weight: 600; }
  .rail-step.current .rail-sub { opacity: 1; max-height: 22px; color: var(--rust); }
  .rail-hint { font-size: 10px; color: var(--ink-3); line-height: 1.5; margin: 13px 5px 0; padding-top: 11px; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .sim-score { font-size: 51px; }
}

/* ===== v8: body text a touch larger than the straight 15% cut (readability) ===== */
body { font-size: 14px; padding-bottom: var(--dock-space, 0px); }

/* ===== v8: the snapshot — score, band, urgency, percentile and verdict in one card ===== */
.m-snapshot { padding-bottom: 28px; }
.snap { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: minmax(230px, 280px) 1fr; gap: 22px; align-items: start; }
.snap-score { display: flex; align-items: center; gap: 14px; }
.snap-ring { position: relative; width: 84px; height: 84px; flex: 0 0 auto; }
.snap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.snap-ring .ring-track { fill: none; stroke: var(--line-2); stroke-width: 6; }
.snap-ring .ring-arc { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); }
.snap-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.02em; }
.snap-facts { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.snap-band { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.snap-facts .score-urgency { font-size: 10.5px; padding: 3px 10px; white-space: nowrap; }
.snap-pct { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.snap-pct b { font-family: var(--serif); font-weight: 600; color: var(--ink); }
.snap-verdict { border-left: 1px solid var(--line); padding-left: 20px; min-width: 0; }
.snap-verdict .verdict-h { font-size: 19px; line-height: 1.2; margin: 0 0 6px; }
.snap-verdict .verdict-body { font-size: 14px; line-height: 1.6; margin: 0; max-width: 62ch; }
.snap-verdict .verdict-loading { font-size: 15px; margin: 0; }
.snap-verdict .verdict-error { margin: 0; }
.snap-verdict .tone-toggle { margin-top: 12px; }
.snap-verdict .tone { font-size: 11.5px; padding: 5px 11px; }
.snap-tasks { grid-column: 1 / -1; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }
.snap-tasks li { font-size: 12px; line-height: 1.45; color: var(--ink); }
.snap-tasks b { font-weight: 600; color: var(--ink-2); margin-right: 2px; }
.st-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.st-exposed { background: var(--rust); } .st-shift { background: var(--shift); } .st-moat { background: var(--pine); }
.snap-note { font-size: 11.5px; color: var(--ink-3); margin: 10px 0 0; }
@media (max-width: 760px) {
  .snap { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .snap-verdict { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}

/* ===== v8: the plan is the hero ===== */
.m-plan { padding-top: 34px; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.plan-top-txt { min-width: 0; flex: 1 1 320px; }
.plan-top .concepts-h { margin: 0 0 4px; }
.plan-top .concepts-lede { margin: 0; }
.plan-pdf { flex: 0 0 auto; font-size: 13px; padding: 10px 16px; }
.day-head { justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.day-builds { font-size: 11px; font-weight: 600; color: var(--dark-ink); border: 1px solid var(--dark-line); background: rgba(237, 230, 216, .06); border-radius: 100px; padding: 2px 10px; }
.day-min { margin-left: auto; }
@media (min-width: 1200px) {
  .pv-list { grid-template-columns: 1fr 1fr; column-gap: 18px; }
}

/* ===== v8: "In your plan" on simulator skills ===== */
.in-plan-tag { display: inline-block; margin-left: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark); background: var(--amber); border-radius: 100px; padding: 2px 7px; vertical-align: 1px; }
.sim-chip.in-plan { border-color: var(--amber); }
.sim-chip[aria-pressed="true"] .in-plan-tag { background: var(--dark); color: var(--dark-ink); }

/* ===== v8: news dock, fixed to the bottom of the screen ===== */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(251, 247, 239, .97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line-2); box-shadow: 0 -6px 20px rgba(34, 30, 24, .07); }
.dock-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 16px; }
.dock-open { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.dock-title { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.dock-rolename { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.dock-ticker { flex: 1; min-width: 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; }
.dock-ticker.in { animation: tickIn .6s var(--ease) forwards; }
@keyframes tickIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dock-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.dock-more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
body.news-open .dock-more svg { transform: rotate(180deg); }
.dock-pause, .dock-arrow, .dock-close { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dock-pause-ico svg, .dock-arrow svg { width: 13px; height: 13px; }
.dock-pause { position: relative; }
.dock-pause-ico { display: inline-flex; }
/* The progress ring: sits on the button's outline, fills clockwise from the top. */
.dock-ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.dock-ring circle { fill: none; stroke: var(--rust); stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: 100; }
.dock .dock-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dock-close { font-size: 18px; line-height: 1; }
.dock-pause:hover, .dock-arrow:hover, .dock-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dock button:focus-visible, .dock a:focus-visible, .dock-row:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
.dock-panel { border-top: 1px solid var(--line); padding: 12px 16px 10px; }
.dock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.dock-h { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 16px; }
.dock-role { margin: 1px 0 0; font-size: 11.5px; color: var(--ink-3); }
.dock-role:empty { display: none; }
.dock-ctrls { display: flex; gap: 6px; }
.dock-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; scrollbar-width: thin; }
.nd-card { flex: 0 0 260px; min-width: 0; max-width: 260px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s var(--ease); }
.nd-card:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.nd-src { display: flex; align-items: center; gap: 7px; min-width: 0; }
.nd-mark { flex: 0 0 18px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; overflow: hidden; }
.nd-mark img { width: 18px; height: 18px; object-fit: contain; }
.nd-mark svg { width: 14px; height: 14px; }
.nd-pub { font-size: 11px; font-weight: 700; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-h { font-family: var(--serif); font-weight: 500; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nd-snip { font-size: 11.5px; color: var(--ink-2); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-date { font-size: 10.5px; color: var(--ink-3); margin-top: auto; }
.dock-foot { margin: 4px 0 0; font-size: 10.5px; color: var(--ink-3); }
/* the floating scroll buttons and the left rail stay clear of the dock */
.scrollnav { bottom: calc(var(--dock-space, 0px) + 14px); }
@media (min-width: 900px) {
  .rail { height: calc(100vh - var(--shell-top, 24px) - 24px - var(--dock-space, 0px)); }
}
/* phones: a slim bar only; opening it shows a full-screen list */
@media (max-width: 699px) {
  .dock-title, .dock-more span, .dock-arrow { display: none; }
  .dock-bar { padding: 0 10px 0 14px; }
  body.dock-sheet { overflow: hidden; }
  body.dock-sheet .dock { top: 0; display: flex; flex-direction: column; background: var(--paper); }
  body.dock-sheet .dock-bar { display: none; }
  body.dock-sheet .dock-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; border-top: 0; padding: 16px; }
  body.dock-sheet .dock-row { flex: 1; flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; }
  body.dock-sheet .nd-card { flex: 0 0 auto; }
  body.dock-sheet .nd-snip { white-space: normal; }
}

/* phones: less empty space above the headline */
@media (max-width: 899px) { .opener { padding-top: 18px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
