/* Freedom Numbers: Student Edition — "Signal Paper" (light)
   Blueprint-on-paper take on the Signal system: white canvas, navy ink,
   mint / sky / gold carrying text accents. The hero terminal panel stays dark
   on purpose (a screen sitting on paper). Dark original: styles-dark.css. */

:root {
  --bg: #f7fafc;
  --panel: #ffffff;
  --panel-2: #f3f7fa;
  --field: #eef4f8;
  --line: rgba(16, 58, 94, .13);
  --line-2: rgba(16, 58, 94, .24);
  --grid: rgba(31, 127, 168, .055);
  --text: #10243a;
  --muted: #48607a;
  --muted-2: #6e829a;
  --mint: #0b8f65;
  --mint-bright: #3dd9a8;
  --mint-soft: rgba(11, 143, 101, .10);
  --mint-line: rgba(11, 143, 101, .38);
  --gold: #a5761c;
  --gold-strong: #8f6516;
  --gold-soft: rgba(165, 118, 28, .12);
  --gold-line: rgba(165, 118, 28, .42);
  --sky: #1f7fa8;
  --sky-soft: rgba(31, 127, 168, .10);
  --sky-line: rgba(31, 127, 168, .38);
  --red-soft: rgba(178, 59, 59, .10);
  --red-text: #b23b3b;
  --glow-mint: none;
  --glow-gold: none;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 12px;
  --r-sm: 8px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 520px at 50% -160px, rgba(61, 217, 168, .09), transparent 60%),
    radial-gradient(800px 560px at 88% 4%, rgba(31, 127, 168, .06), transparent 55%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--mint-bright); color: #04150e; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--mint); color: #ffffff;
  padding: 10px 16px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 600; cursor: pointer;
  text-transform: uppercase; letter-spacing: .08em;
  border: none; border-radius: var(--r-sm); padding: 14px 22px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn .arr { transition: transform .2s ease; font-family: var(--sans); }
.btn-primary {
  background: var(--mint-bright); color: #04150e;
  box-shadow: 0 0 0 1px rgba(11, 143, 101, .45), 0 10px 26px -14px rgba(11, 143, 101, .6);
}
.btn-primary:hover { transform: translateY(-1px); background: #2ecf9e; }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--mint); }
.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(12px);
  background: rgba(247, 250, 252, .85); border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 5px; flex: none;
  background: conic-gradient(from 210deg, var(--mint-bright), #75bed5, #e8c97a, var(--mint-bright));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55), 0 1px 8px rgba(16, 58, 94, .25);
}
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: .2px; }
.brand-name em { font-style: italic; color: var(--gold); font-weight: 500; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a {
  color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; transition: color .2s;
}
.head-nav a:hover { color: var(--text); }
.nav-cta { color: var(--mint) !important; }
.nav-cta::before { content: '[ '; color: var(--mint-line); }
.nav-cta::after { content: ' ]'; color: var(--mint-line); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 52px; align-items: center; padding-bottom: clamp(36px, 5vw, 64px);
}
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .26em; font-family: var(--mono);
  font-size: 11.5px; font-weight: 500; color: var(--mint); margin-bottom: 24px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; background: currentColor; flex: none; }
.eyebrow::after { content: ''; width: 44px; height: 1px; background: var(--mint-line); flex: none; }
.hero-title {
  font-family: var(--serif); font-weight: 600; line-height: 1.04;
  font-size: clamp(40px, 7vw, 74px); letter-spacing: -0.5px;
}
.hero-title .accent { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-sub {
  color: var(--muted); font-size: clamp(16px, 2vw, 18.5px); max-width: 580px;
  margin: 24px 0 32px; line-height: 1.7;
}
.hero-btn { font-size: 14px; padding: 16px 26px; }
.hero-meta {
  margin-top: 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}

/* hero terminal panel — intentionally stays DARK (a screen on paper).
   Scoped variable overrides restore the dark palette inside it. */
.term {
  --text: #eef4fa;
  --muted: #9db0c6;
  --muted-2: #7288a2;
  --line: rgba(148, 180, 212, .14);
  --line-2: rgba(148, 180, 212, .27);
  --mint: #3dd9a8;
  --mint-line: rgba(61, 217, 168, .38);
  --gold: #e8c97a;
  --gold-line: rgba(212, 168, 67, .42);
  --sky: #75bed5;
  --sky-line: rgba(117, 190, 213, .4);
  color: var(--text);
  border: 1px solid rgba(16, 58, 94, .35); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #0c1a2c, #081220);
  box-shadow: 0 32px 70px -42px rgba(10, 26, 46, .55), inset 0 1px 0 rgba(255, 255, 255, .04);
  position: relative; max-width: 440px; margin-left: auto;
}
.term::after {
  content: ''; position: absolute; left: 0; right: 0; top: -90px; height: 70px;
  background: linear-gradient(180deg, transparent, rgba(117, 190, 213, .06), transparent);
  animation: scan 7s linear infinite; pointer-events: none;
}
@keyframes scan { to { transform: translateY(640px); } }
.term-bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.term-dots { display: inline-flex; gap: 5px; }
.term-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.term-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em;
  color: var(--muted-2); flex: 1;
}
.term-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--gold); }
.term-tag::before { content: '[ '; color: var(--gold-line); }
.term-tag::after { content: ' ]'; color: var(--gold-line); }
.term-body { padding: 22px 22px 18px; }
.spec-lbl {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .16em; color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.spec-tag { color: var(--sky); font-size: 10px; }
.spec-tag::before { content: '[ '; color: var(--sky-line); }
.spec-tag::after { content: ' ]'; color: var(--sky-line); }
.spec-num {
  font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(38px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -1px;
  color: var(--mint); text-shadow: 0 0 22px rgba(61, 217, 168, .32); margin-top: 8px;
}
.spec-num .cur { font-size: .62em; color: var(--muted); vertical-align: 6px; margin-right: 2px; text-shadow: none; }
.spec-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted-2); margin-top: 4px; }
.spec-chart { width: 100%; height: auto; display: block; margin: 20px 0 8px; }
.spec-rows { border-top: 1px solid var(--line); }
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k { color: var(--muted-2); letter-spacing: .1em; font-size: 10.5px; }
.spec-row .v { font-weight: 600; }
.spec-row .mintv { color: var(--mint); }
.spec-row .goldv { color: var(--gold); }

/* ticker */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(255, 255, 255, .55); }
.ticker-track {
  display: flex; width: max-content; padding: 9px 0;
  animation: tick 38s linear infinite;
}
.ticker-track span {
  white-space: nowrap; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--muted-2);
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- calculator ---------- */
.calc-section { padding: clamp(40px, 6vw, 72px) 0 40px; }
.calc {
  background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 16px; max-width: 680px; margin: 0 auto;
  padding: clamp(22px, 4vw, 38px); position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -42px rgba(10, 26, 46, .35);
}
.calc::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--mint-bright), #75bed5, #e8c97a); opacity: 1;
}

.calc-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.calc-kicker {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.calc-kicker::before { content: ''; width: 7px; height: 7px; background: var(--mint); flex: none; }
.calc-len {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .14em; color: var(--muted-2); white-space: nowrap;
}
.seg { display: inline-flex; background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; }
.seg-btn {
  border: none; background: transparent; color: var(--muted); font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  padding: 7px 15px; border-radius: 5px; cursor: pointer; transition: all .18s;
}
.seg-btn.on { background: var(--mint); color: #ffffff; }

.progress { display: flex; gap: 6px; margin-bottom: 26px; }
.dot { height: 3px; flex: 1; border-radius: 1px; background: var(--line); transition: background .3s, box-shadow .3s; }
.dot.on { background: var(--mint); box-shadow: 0 0 8px rgba(11, 143, 101, .4); }
.dot.done { background: rgba(11, 143, 101, .4); }

.step { display: none; }
.step.on { display: block; animation: stepIn .32s cubic-bezier(.2, .7, .3, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.q { font-family: var(--serif); font-size: clamp(21px, 3.2vw, 27px); font-weight: 600; line-height: 1.25; letter-spacing: -0.2px; }
.q.sub { font-size: 19px; margin-top: 30px; }
.hint { color: var(--muted); font-size: 14.5px; margin: 9px 0 22px; max-width: 52ch; }
.live {
  color: var(--mint); font-family: var(--mono); font-size: 12.5px;
  font-variant-numeric: tabular-nums; margin-top: 14px; font-weight: 500; min-height: 18px;
}
.live.muted { color: var(--muted-2); }

.money {
  display: inline-flex; align-items: center; gap: 10px; background: var(--field);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.money:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.money span { color: var(--muted-2); font-size: 20px; font-family: var(--mono); }
.money input {
  background: transparent; border: none; color: var(--text); font-family: var(--mono);
  font-variant-numeric: tabular-nums; font-size: 27px; font-weight: 600;
  width: 220px; outline: none; padding: 8px 0;
}
.money input::-webkit-outer-spin-button, .money input::-webkit-inner-spin-button { -webkit-appearance: none; }
.money input[type=number] { -moz-appearance: textfield; }

.slider-row { display: flex; align-items: center; gap: 18px; max-width: 440px; }
.slider-out {
  font-family: var(--mono); font-weight: 600; font-size: 17px;
  font-variant-numeric: tabular-nums; min-width: 84px; color: var(--mint);
}
input[type=range] {
  -webkit-appearance: none; appearance: none; height: 6px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(16, 58, 94, .16) 15px 16px),
    #dbe6ee;
  flex: 1; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 5px; background: var(--mint); cursor: pointer; border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--mint), 0 2px 8px rgba(11, 143, 101, .35); transition: transform .12s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 5px; background: var(--mint);
  cursor: pointer; border: 3px solid #ffffff;
}
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--mint-soft); }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cat label {
  display: block; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted-2); margin-bottom: 6px;
}
.cat .money { display: flex; padding: 4px 12px; }
.cat .money input { font-size: 18px; width: 100%; padding: 7px 0; }
.cat .money span { font-size: 15px; }
.cat-in {
  width: 100%; background: var(--field); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--text); font-family: var(--mono);
  font-variant-numeric: tabular-nums; font-size: 18px; padding: 10px 12px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.cat-in:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }

.swr-row { display: flex; gap: 10px; }
.swr {
  flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer;
  background: var(--field); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 14px 8px; color: var(--muted); font-family: var(--mono); transition: all .18s;
}
.swr strong { font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.swr span { font-size: 12px; font-variant-numeric: tabular-nums; }
.swr.on { border-color: var(--mint); background: var(--mint-soft); color: var(--mint); }
.swr.on strong { color: var(--mint); }
.swr:hover:not(.on) { border-color: var(--line-2); color: var(--text); }

.calc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }

/* ---------- reveal ---------- */
.reveal-head { font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); font-weight: 600; letter-spacing: -0.3px; }
.reveal-sub { color: var(--muted); font-size: 14px; margin: 8px 0 26px; }
.ladder { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ladder::before {
  content: ''; position: absolute; left: 27px; top: 30px; bottom: 30px; width: 0;
  border-left: 1px dashed rgba(16, 58, 94, .3);
}
.rung {
  display: flex; gap: 16px; align-items: flex-start; background: var(--field);
  border: 1px solid var(--line); border-left-width: 2px; border-radius: var(--r-sm);
  padding: 15px 17px; position: relative;
}
.node {
  width: 26px; height: 26px; flex: none; border-radius: 6px; display: flex; align-items: center;
  justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 13px;
  font-variant-numeric: tabular-nums; margin-left: 8px; position: relative; z-index: 1;
  background: var(--panel);
}
.rung.mint { border-left-color: var(--mint); }
.rung.mint .node { background: var(--mint-soft); color: var(--mint); box-shadow: 0 0 0 1px var(--mint-line); }
.rung.gold {
  border-left-color: var(--gold-strong);
  background: linear-gradient(180deg, rgba(165, 118, 28, .07), var(--field));
}
.rung.gold .node { background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 1px var(--gold-line); }
.rung.sky { border-left-color: var(--sky); }
.rung.sky .node { background: var(--sky-soft); color: var(--sky); box-shadow: 0 0 0 1px var(--sky-line); }
.rung-name { font-size: 15.5px; font-weight: 600; }
.rung-name .tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--mint); background: var(--mint-soft);
  padding: 2px 7px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; white-space: nowrap;
}
.rung-name .tag::before { content: '[ '; opacity: .6; }
.rung-name .tag::after { content: ' ]'; opacity: .6; }
.rung-desc { color: var(--muted); font-size: 13px; margin: 2px 0 9px; }
.rung-figs { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.fig .num {
  font-family: var(--mono); font-size: 25px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.5px;
}
.fig .per { color: var(--muted-2); font-family: var(--mono); font-size: 11.5px; }
.rung.mint .fig .num { color: var(--mint); }
.rung.gold .fig .num { color: var(--gold); }
.rung.sky .fig .num { color: var(--sky); }
.or { color: var(--muted); font-size: 13px; }
.or .num { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }

.reframe {
  margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line);
  border-left: 2px solid var(--mint); border-radius: var(--r-sm);
  background: rgba(11, 143, 101, .05); font-size: 15px; line-height: 1.6; color: var(--text);
}
.reframe b { color: var(--mint); font-weight: 600; font-family: var(--mono); font-size: .95em; }
.reframe .g { color: var(--gold); font-weight: 600; font-family: var(--mono); font-size: .95em; }

.capture { margin-top: 20px; }
.capture-q {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); margin-bottom: 10px;
}
.intent { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.intent button {
  background: var(--field); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 6px; padding: 8px 14px; font-family: var(--mono); font-size: 12px;
  cursor: pointer; transition: all .16s;
}
.intent button.on { border-color: var(--mint); background: var(--mint-soft); color: var(--mint); }
.capture-row { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-row input {
  flex: 1; min-width: 170px; background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 13px 15px; color: var(--text); font-family: var(--mono);
  font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.capture-row input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.confirm { color: var(--mint); font-family: var(--mono); font-size: 13.5px; font-weight: 500; padding: 14px 0; }
.adjust { margin-top: 16px; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.adjust button {
  background: none; border: none; color: var(--muted); font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em; cursor: pointer; padding: 0;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px;
}
.adjust button:hover { color: var(--text); }

/* ---------- kickers + section frames ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .24em; font-family: var(--mono);
  font-size: 11px; font-weight: 500; color: var(--mint); margin-bottom: 14px;
}
.kicker::before { content: ''; width: 7px; height: 7px; background: currentColor; flex: none; }
.kicker::after { content: ''; width: 44px; height: 1px; background: var(--mint-line); flex: none; }
.sec-title { font-family: var(--serif); font-size: clamp(28px, 4.6vw, 44px); font-weight: 600; letter-spacing: -0.4px; }
.sec-title::after {
  content: ''; display: block; margin-top: 22px; height: 5px; max-width: 320px;
  background:
    linear-gradient(var(--mint), var(--mint)) 0 50% / 5px 5px no-repeat,
    linear-gradient(var(--mint), var(--mint)) 100% 50% / 5px 5px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat;
}
.sec-lead { color: var(--muted); font-size: 17px; max-width: 580px; margin: 18px 0 44px; }

/* ---------- idea / levels ---------- */
.idea { padding: clamp(56px, 9vw, 104px) 0; border-top: 1px solid var(--line); }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level {
  background: var(--panel);
  border: 1px solid var(--line); border-top: 2px solid var(--mint-line);
  border-radius: var(--r-sm); padding: 26px 24px; transition: transform .2s, border-color .2s;
  box-shadow: 0 14px 30px -24px rgba(10, 26, 46, .25);
}
.level:hover { transform: translateY(-3px); border-color: var(--line-2); border-top-color: var(--mint); }
.level.gold { border-top-color: var(--gold-line); background: linear-gradient(180deg, rgba(165, 118, 28, .05), var(--panel)); }
.level.gold:hover { border-top-color: var(--gold); }
.level-num {
  font-family: var(--mono); font-size: 12px; color: var(--mint); font-weight: 600;
  letter-spacing: .14em; margin-bottom: 14px;
}
.level-num::before { content: '[ '; opacity: .55; }
.level-num::after { content: ' ]'; opacity: .55; }
.level.gold .level-num { color: var(--gold); }
.level h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.level h3 .tag {
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--mint); background: var(--mint-soft);
  padding: 2px 7px; border-radius: 4px; margin-left: 6px; vertical-align: 3px; white-space: nowrap;
}
.level p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- note ---------- */
.note { padding: clamp(40px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.note-inner { max-width: 780px; }
.note-quote {
  font-family: var(--serif); font-size: clamp(22px, 3.4vw, 31px); font-weight: 500; font-style: italic;
  line-height: 1.4; color: var(--text);
}
.note-by {
  color: var(--gold); font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: .16em; margin-top: 22px;
}
.note-by::before { content: '// '; color: var(--gold-line); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; background: #eef3f7; }
.foot-inner { display: flex; flex-direction: column; gap: 18px; }
.foot-brand { display: inline-flex; align-items: center; gap: 11px; }
.disclaimer { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 720px; }
.foot-copy { color: var(--muted-2); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }

/* ---------- paths (life-path cards) ---------- */
.paths { padding: clamp(48px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.paths-bar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin: 28px 0 24px; }
.target { display: inline-flex; align-items: center; gap: 10px; }
.target-lbl { color: var(--muted); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; }
.money.sm { padding: 2px 12px; }
.money.sm input { font-size: 20px; width: 120px; padding: 6px 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 6px; padding: 8px 14px; font-family: var(--mono); font-size: 12px;
  cursor: pointer; transition: all .16s;
}
.chips button:hover { color: var(--text); border-color: var(--mint); }
.chips button.on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.sort { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sort select {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 6px; padding: 8px 10px; font-family: var(--mono); font-size: 12.5px; cursor: pointer;
}

.persona {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 0 0 24px;
}
.pq { display: flex; flex-direction: column; gap: 9px; }
.pq.wide { grid-column: 1 / -1; }
.pq-lbl {
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted-2);
}
.pq-lbl::before { content: '> '; color: var(--mint); }
.chips.one button.on { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }
.cap-hint { margin-top: 7px; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.learn-toggle {
  margin-top: 12px; background: transparent; border: 1px dashed var(--line-2); color: var(--muted);
  border-radius: 6px; padding: 9px 15px; font-family: var(--mono); font-size: 12px;
  cursor: pointer; transition: all .16s;
}
.learn-toggle:hover { color: var(--text); border-color: var(--mint); }
.learn-toggle.on { background: var(--mint-soft); border-style: solid; border-color: var(--mint); color: var(--mint); }

.veh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.veh {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  display: flex; flex-direction: column; gap: 13px; transition: border-color .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 14px 30px -26px rgba(10, 26, 46, .3);
}
.veh:hover { border-color: var(--mint-line); transform: translateY(-2px); box-shadow: 0 20px 40px -28px rgba(11, 143, 101, .35); }
.veh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.veh-name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.veh-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge {
  font-family: var(--mono); font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; white-space: nowrap;
}
.badge::before { content: '[ '; opacity: .55; }
.badge::after { content: ' ]'; opacity: .55; }
.badge.low { background: var(--mint-soft); color: var(--mint); }
.badge.medium { background: var(--gold-soft); color: var(--gold); }
.badge.high { background: var(--red-soft); color: var(--red-text); }
.badge.effort { background: rgba(16, 58, 94, .07); color: var(--muted); }
.badge.fit { background: var(--mint-soft); color: var(--mint); }
.badge.look { background: rgba(16, 58, 94, .07); color: var(--muted); }
.badge.stretch { background: var(--gold-soft); color: var(--gold); }
.badge.beyond { background: var(--red-soft); color: var(--red-text); }
.veh-size {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: -.4px; color: var(--text); line-height: 1.25;
}
.veh-size .accent { color: var(--mint); }
.veh.gold-accent .veh-size .accent { color: var(--gold); }
.veh-stats { display: flex; gap: 20px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 13px; margin-top: auto; }
.veh-stat { display: flex; flex-direction: column; gap: 2px; }
.veh-stat .k { font-family: var(--mono); font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.veh-stat .v { font-family: var(--mono); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.veh-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.veh-first {
  font-size: 12.5px; color: var(--text); background: rgba(11, 143, 101, .06);
  border: 1px dashed var(--mint-line); border-radius: 6px; padding: 8px 11px; line-height: 1.5;
}
.veh-first span {
  color: var(--mint); font-family: var(--mono); font-weight: 600; text-transform: uppercase;
  font-size: 9.5px; letter-spacing: .1em; margin-right: 6px;
}
.veh-why { font-family: var(--mono); font-size: 11px; color: var(--mint); margin-top: -6px; }
.veh-why.muted { color: var(--muted-2); }
.veh-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.veh-assume { display: flex; gap: 10px; flex-wrap: wrap; }
.veh-assume label {
  font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); display: flex;
  flex-direction: column; gap: 3px; text-transform: uppercase; letter-spacing: .06em;
}
.veh-assume input {
  width: 88px; background: var(--field); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 12.5px; padding: 6px 8px; outline: none;
}
.veh-assume input:focus { border-color: var(--mint); }
.veh-src { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); align-self: flex-end; }
.veh-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.paths-foot { color: var(--muted-2); font-size: 12px; line-height: 1.6; margin-top: 22px; max-width: 760px; }
.btn-paths { margin-top: 16px; }
.paths-cta { margin-top: 28px; display: flex; justify-content: center; }
.edge-row { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 24px; }
.edge-lbl { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.edu {
  margin-top: 26px; background: linear-gradient(180deg, rgba(11, 143, 101, .05), var(--panel));
  border: 1px solid rgba(11, 143, 101, .25); border-radius: var(--r); padding: 24px;
}
.edu-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.edu-lead { color: var(--muted); font-size: 14.5px; max-width: 70ch; margin-bottom: 18px; }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edu-card {
  display: flex; flex-direction: column; gap: 5px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px;
}
.edu-k { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); }
.edu-v { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- timeline (projection table) ---------- */
.tl { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--field); }
.tl-head { font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.tl-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.money.xs { padding: 0 10px; }
.money.xs input { font-size: 16px; width: 90px; padding: 5px 0; }
.tl-pct {
  width: 64px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px;
  color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 14px; padding: 6px 8px; text-align: center; outline: none;
}
.tl-pct:focus { border-color: var(--mint); }
.tl-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--line); }
.tl-row .n { font-size: 13.5px; color: var(--muted); }
.tl-row .y { font-family: var(--mono); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--mint); }
.tl-row.gold .y { color: var(--gold); }
.tl-row.sky .y { color: var(--sky); }
.tl-zero { margin-top: 10px; font-size: 13.5px; color: var(--gold); }
.tl-note { margin-top: 12px; font-size: 12px; color: var(--muted-2); line-height: 1.6; }

/* ---------- ikigai / commit ---------- */
.ikigai { padding: clamp(48px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.iki-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; margin-bottom: 40px; }
.iki-intro .sec-lead { margin-bottom: 0; max-width: 60ch; }
.iki-intro strong { color: var(--mint); font-weight: 600; }
.iki-note { margin-top: 16px; font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted-2); letter-spacing: .02em; max-width: 58ch; }
.iki-art svg { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.iki-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.iki-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; }
.iki-k { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 12px; }
.iki-k::before { content: '[ '; opacity: .55; }
.iki-k::after { content: ' ]'; opacity: .55; }
.iki-card.mint { border-top: 2px solid var(--mint-line); }
.iki-card.mint .iki-k { color: var(--mint); }
.iki-card.sky { border-top: 2px solid var(--sky-line); }
.iki-card.sky .iki-k { color: var(--sky); }
.iki-card.gold { border-top: 2px solid var(--gold-line); }
.iki-card.gold .iki-k { color: var(--gold); }
.iki-card.pay { border-top: 2px solid rgba(16, 36, 58, .3); }
.iki-card.pay .iki-k { color: var(--text); }
.iki-qs { list-style: none; }
.iki-qs li { position: relative; padding: 7px 0 7px 18px; color: var(--muted); font-size: 14px; line-height: 1.55; border-top: 1px dashed var(--line); }
.iki-qs li:first-child { border-top: none; }
.iki-qs li::before { content: '\25B8'; position: absolute; left: 0; top: 8px; font-size: 10px; color: var(--muted-2); }
.iki-card.mint .iki-qs li::before { color: var(--mint); }
.iki-card.sky .iki-qs li::before { color: var(--sky); }
.iki-card.gold .iki-qs li::before { color: var(--gold); }
.tiebreak { margin-top: 26px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px; }
.tiebreak-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.tiebreak-rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiebreak-k { font-family: var(--mono); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); display: block; margin-bottom: 8px; }
.tiebreak-k::before { content: '\25B8 '; color: var(--muted-2); }
.tiebreak-row p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.tiebreak-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; color: var(--text); max-width: 72ch; }
.fpower { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--mint-line); border-radius: var(--r); padding: 24px; box-shadow: 0 14px 30px -26px rgba(10, 26, 46, .25); }
.fpower-title { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.fpower-lead { color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 78ch; margin-bottom: 20px; }
.fpower-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fpower-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; }
.fpower-card .iki-k { color: var(--mint); margin-bottom: 10px; }
.fpower-card:nth-child(2) .iki-k { color: var(--sky); }
.fpower-card:nth-child(3) .iki-k { color: var(--gold); }
.fpower-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.fpower-quote { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text); }
.fpower-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--mint); border-bottom: 1px dashed var(--mint-line); padding-bottom: 2px; transition: color .18s, border-color .18s; }
.fpower-link:hover { color: #0aa876; border-bottom-style: solid; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .term { margin-left: 0; max-width: 480px; }
  .iki-top { grid-template-columns: 1fr; gap: 30px; }
  .tiebreak-rows { grid-template-columns: 1fr; }
  .fpower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .head-nav { gap: 16px; }
  .head-nav a:not(.nav-cta) { display: none; }
  .level-grid { grid-template-columns: 1fr; }
  .money input { width: 160px; }
  .veh-grid { grid-template-columns: minmax(0, 1fr); }
  .veh { min-width: 0; }
  .sort { margin-left: 0; }
  .iki-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .persona { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .swr-row { flex-direction: column; }
  .cat-grid { grid-template-columns: 1fr; }
  .spec-num { font-size: 36px; }
  .brand-name { font-size: 16px; white-space: nowrap; }
  .head-nav { gap: 10px; }
  .head-nav a { font-size: 11px; white-space: nowrap; }
  .calc-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .calc-len { white-space: normal; }
}

/* ================= Student Edition additions ================= */

/* quiz chips (stage + ikigai + practical) */
.qchips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 4px; }
.qchips button {
  background: var(--panel); border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 7px; padding: 11px 16px; font-family: var(--mono); font-size: 12.5px;
  line-height: 1.4; cursor: pointer; transition: all .16s; text-align: left;
}
.qchips button:hover { color: var(--text); border-color: var(--mint); }
.qchips button.on {
  background: var(--mint-soft); border-color: var(--mint); color: var(--mint);
}
.parent-sub { display: none; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.parent-sub .pq-lbl { display: block; margin-bottom: 9px; }
.pick-hint { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }

/* reveal: door cards */
.rpaths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.rpath {
  background: var(--field); border: 1px solid var(--line); border-top: 2px solid var(--line-2);
  border-radius: var(--r-sm); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px;
}
.rpath.lead {
  border-top-color: var(--mint);
  background: linear-gradient(180deg, rgba(11, 143, 101, .07), var(--field));
}
.rp-rank { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--muted-2); }
.rpath.lead .rp-rank { color: var(--mint); }
.rp-rank::before { content: '[ '; opacity: .55; }
.rp-rank::after { content: ' ]'; opacity: .55; }
.rp-name { font-family: var(--serif); font-size: 18.5px; font-weight: 600; line-height: 1.2; }
.rp-tag { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.rp-why { list-style: none; margin: 2px 0; }
.rp-why li { position: relative; padding: 4px 0 4px 15px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.rp-why li::before { content: '\25B8'; position: absolute; left: 0; top: 5px; font-size: 9px; color: var(--mint); }
.rp-why-fallback { color: var(--muted-2); font-size: 12.5px; line-height: 1.5; }
.rp-figs { display: grid; grid-template-columns: 1fr; gap: 5px; border-top: 1px dashed var(--line); padding-top: 9px; margin-top: auto; }
.fig-cell { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fig-cell .k { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.fig-cell .v { font-family: var(--mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rp-first {
  font-size: 12px; color: var(--text); background: rgba(11, 143, 101, .06);
  border: 1px dashed var(--mint-line); border-radius: 6px; padding: 7px 10px; line-height: 1.5;
}
.rp-first span {
  color: var(--mint); font-family: var(--mono); font-weight: 600; text-transform: uppercase;
  font-size: 9px; letter-spacing: .1em; margin-right: 6px;
}
.rp-link { font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.rp-link:hover { color: var(--mint); }
.btn-paths { display: flex; gap: 10px; flex-wrap: wrap; }

/* path catalog extras */
.badge.mint { background: var(--mint-soft); color: var(--mint); }
.badge.zero { background: var(--sky-soft); color: var(--sky); }
.badge.debtb { background: var(--gold-soft); color: var(--gold); }
.veh.lead-fit { border-color: var(--mint-line); box-shadow: 0 18px 36px -26px rgba(11, 143, 101, .35); }
.veh-snap { font-size: 13px; color: var(--muted); line-height: 1.55; border-top: 1px dashed var(--line); padding-top: 11px; }
.veh-snap b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.veh-snap b.pos { color: var(--mint); }
.veh-snap b.neg { color: var(--red-text); }
.snap-note { display: block; font-size: 11px; color: var(--muted-2); margin-top: 3px; }

/* info card sections (scholarships, loans, grad school) */
.info { padding: clamp(48px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info-card {
  background: var(--panel);
  border: 1px solid var(--line); border-top: 2px solid var(--mint-line);
  border-radius: var(--r); padding: 20px 22px; transition: transform .2s, border-color .2s;
  box-shadow: 0 14px 30px -26px rgba(10, 26, 46, .25);
}
.info-card:hover { transform: translateY(-2px); border-top-color: var(--mint); }
.info-card.gold { border-top-color: var(--gold-line); }
.info-card.gold:hover { border-top-color: var(--gold); }
.info-card.sky { border-top-color: var(--sky-line); }
.info-card.sky:hover { border-top-color: var(--sky); }
.info-k {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--mint); display: block; margin-bottom: 10px;
}
.info-k::before { content: '[ '; opacity: .55; }
.info-k::after { content: ' ]'; opacity: .55; }
.info-card.gold .info-k { color: var(--gold); }
.info-card.sky .info-k { color: var(--sky); }
.info-card h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.info-card p + p { margin-top: 10px; }
.info-card .num-hit { font-family: var(--mono); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.info-src { display: block; margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }
.info-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.info-foot { color: var(--muted-2); font-size: 12px; line-height: 1.6; margin-top: 22px; max-width: 760px; }

/* the deadline rhythm strip */
.rhythm { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.rhythm-head { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.rhythm-rows { display: grid; grid-template-columns: repeat(4, 1fr); }
.rhythm-cell { padding: 14px 18px; border-left: 1px dashed var(--line); }
.rhythm-cell:first-child { border-left: none; }
.rhythm-when { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 6px; }
.rhythm-cell p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* two-sided compounding calculator */
.compound { padding: clamp(48px, 8vw, 92px) 0; border-top: 1px solid var(--line); }
.cp-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.cp-panel {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); padding: 22px;
  box-shadow: 0 14px 30px -26px rgba(10, 26, 46, .25);
}
.cp-panel.invest { border-top: 2px solid var(--mint); }
.cp-panel.loan { border-top: 2px solid var(--gold-strong); }
.cp-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.cp-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.cp-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; margin-bottom: 10px; }
.cp-panel.invest .tl-row .y { color: var(--mint); }
.cp-panel.loan .tl-row .y { color: var(--gold); }
.cp-cross {
  margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line);
  border-left: 2px solid var(--gold-strong); border-radius: var(--r-sm);
  background: rgba(165, 118, 28, .06); font-size: 15px; line-height: 1.65; color: var(--text);
}
.cp-cross b { color: var(--gold); font-weight: 600; font-family: var(--mono); font-size: .95em; }
.cp-note { margin-top: 14px; font-size: 12px; color: var(--muted-2); line-height: 1.6; max-width: 760px; }

/* responsive for additions */
@media (max-width: 860px) {
  .rpaths { grid-template-columns: 1fr; }
  .cp-panels { grid-template-columns: 1fr; }
  .rhythm-rows { grid-template-columns: repeat(2, 1fr); }
  .rhythm-cell:nth-child(3) { border-left: none; }
  .rhythm-cell { border-top: 1px dashed var(--line); }
  .rhythm-cell:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 620px) {
  .info-grid { grid-template-columns: 1fr; }
  .rhythm-rows { grid-template-columns: 1fr; }
  .rhythm-cell { border-left: none; }
  .rhythm-cell:nth-child(n+2) { border-top: 1px dashed var(--line); }
}

/* targeted tip in the reveal, keyed to the pain answer */
.ptip {
  margin-top: 12px; padding: 16px 20px; border: 1px solid var(--line);
  border-left: 2px solid var(--sky); border-radius: var(--r-sm);
  background: rgba(31, 127, 168, .05); font-size: 14px; line-height: 1.6; color: var(--text);
}
.ptip-k {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; color: var(--sky); margin-bottom: 6px;
}
.ptip a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }

/* ---- rotated calculator palette ----
   Inside the quiz card only, the accent roles rotate one step:
   mint -> sky, sky -> gold, gold -> mint. Scoped variable overrides
   (same trick as .term) so the rest of the page keeps its palette. */
.calc {
  --mint: #1f7fa8;
  --mint-bright: #5ec9ea;
  --mint-soft: rgba(31, 127, 168, .10);
  --mint-line: rgba(31, 127, 168, .38);
  --sky: #a5761c;
  --sky-soft: rgba(165, 118, 28, .12);
  --sky-line: rgba(165, 118, 28, .42);
  --gold: #0b8f65;
  --gold-strong: #0b8f65;
  --gold-soft: rgba(11, 143, 101, .10);
  --gold-line: rgba(11, 143, 101, .38);
}
.calc::before { background: linear-gradient(90deg, #5ec9ea, #e8c97a, #3dd9a8); }
.calc .btn-primary {
  background: var(--mint-bright);
  box-shadow: 0 0 0 1px rgba(31, 127, 168, .45), 0 10px 26px -14px rgba(31, 127, 168, .6);
}
.calc .btn-primary:hover { background: #4cbfe4; }
.calc .dot.on { box-shadow: 0 0 8px rgba(31, 127, 168, .4); }
.calc .dot.done { background: rgba(31, 127, 168, .4); }
.calc .rpath.lead { background: linear-gradient(180deg, rgba(31, 127, 168, .07), var(--field)); }
.calc .rp-first { background: rgba(31, 127, 168, .06); }
.calc .reframe { background: rgba(31, 127, 168, .05); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .term::after { display: none; }
}
