/* land.html only: loader, scroll story, Rolling Thunder calculator, comparison, 404.
   Loads after summit.css, which holds the tokens and every shared component. */

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-content: center; gap: 28px;
  justify-items: center; background: #071225; color: #F5F2EA;
  -webkit-mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
  mask: radial-gradient(circle at 50% 46%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
html:not(.js) .loader { display: none; }
.loader-stage { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; transform: rotate(-90deg); overflow: visible; }
.loader-track { fill: none; stroke: rgba(216, 210, 194, .12); stroke-width: 1.5; }
.loader-arc {
  fill: none; stroke: #C2A14D; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .35s var(--ease);
  filter: drop-shadow(0 0 6px rgba(217, 182, 92, .6));
}
.loader-mark { width: 64px; height: auto; opacity: 0; transform: scale(.85); animation: mark-in .8s .15s var(--ease) forwards; }
.loader-meta {
  display: flex; gap: 18px; align-items: baseline; font-family: var(--display);
  text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; color: rgba(245, 242, 234, .7);
}
.loader-count { color: #D9B65C; font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.loader.is-done { animation: loader-open 1.05s var(--ease-io) forwards; pointer-events: none; }
.loader.is-done .loader-stage { animation: stage-out .9s var(--ease-io) forwards; }
.loader.is-done .loader-meta { opacity: 0; transition: opacity .25s; }
.loader.is-gone { display: none; }
@keyframes mark-in { to { opacity: 1; transform: none; } }
@keyframes loader-open { to { --hole: 150vmax; } }
@keyframes stage-out { 40% { transform: scale(.92); } 100% { transform: scale(5); opacity: 0; } }

/* ---------------------------------------------------------------- story */
.story { position: relative; height: 560vh; --warm: 0; }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.story-bg {
  position: absolute; inset: 0; z-index: -1; transition: background-color .5s;
  background:
    radial-gradient(70% 60% at 62% 48%, color-mix(in srgb, #9E2B25 calc((1 - var(--warm)) * 22%), transparent), transparent 70%),
    radial-gradient(80% 70% at 62% 52%, color-mix(in srgb, #C2A14D calc(var(--warm) * 26%), transparent), transparent 70%),
    var(--bg);
}
.story-stage { position: absolute; top: 55%; left: 63%; width: min(84vw, 116svh); height: auto; aspect-ratio: 10 / 7; transform: translate(-50%, -48%); overflow: visible; }
.st-horizon { stroke: var(--line-2); stroke-width: 1; }
.st-wave { fill: none; stroke: var(--text-3); stroke-width: 1.6; stroke-linejoin: round; }
.st-grow { stroke: none; }
.st-grow-line { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(217, 182, 92, .5)); }
.st-sun { fill: var(--brass); filter: drop-shadow(0 0 40px rgba(217, 182, 92, .55)); }
.st-ring { fill: none; stroke: var(--brass); stroke-width: 3; }
.st-ring-in { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 7; }
.st-crack { fill: none; stroke: #9E2B25; stroke-width: 2.4; stroke-linejoin: bevel; }
.st-bond { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 4 6; }
.st-bolt { fill: none; stroke: #D9B65C; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(217, 182, 92, .9)); }
.st-core { font-family: var(--display); font-weight: 600; font-size: 72px; fill: var(--text); letter-spacing: .02em; }
.st-card rect { fill: var(--bg-3); stroke: #9E2B25; stroke-width: 1.5; }
.st-card .cl { font-family: var(--display); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; fill: var(--text-3); }
.st-card .cv { font-family: var(--display); font-weight: 600; font-size: 30px; fill: var(--text); }
.st-card .cx { stroke: #D9B65C; stroke-width: 3; }
.st-rays line { stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }

.story-hud {
  position: absolute; top: 96px; left: 0; right: 0; display: flex; justify-content: space-between;
  padding-inline: var(--gutter); max-width: 1240px; margin-inline: auto; pointer-events: none;
}
.hud-block { display: flex; flex-direction: column; gap: 2px; }
.hud-right { text-align: right; }
.hud-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--text-3); }
.hud-value { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; transition: color .4s; }
.hud-value.is-debt { color: var(--text); }
.hud-value.is-free { color: var(--accent); }
.hud-chapter small { font-size: .45em; color: var(--text-3); margin-left: 4px; }

.story-copy { position: absolute; left: 0; right: 0; bottom: 0; top: 0; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); pointer-events: none; }
.chapter { position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 140px); max-width: min(460px, 42vw); opacity: 0; will-change: transform, opacity; }
.chapter-kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .9rem; color: var(--accent); margin-bottom: 14px; }
.chapter-kicker span { color: var(--text-3); margin-right: 10px; }
.chapter-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 4.8vw, 4.6rem); line-height: .92; letter-spacing: .02em; margin-bottom: 18px; text-wrap: balance; }
.chapter-text { color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 40ch; }
.story-rail { position: absolute; right: var(--gutter); top: 50%; width: 1.5px; height: 160px; transform: translateY(-50%); background: var(--line); }
.story-rail span { position: absolute; inset: 0; background: var(--brass); transform-origin: top; transform: scaleY(0); }

/* ---------------------------------------------------------------- calculator */
.calc-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 20px; align-items: start; }
.calc-input { padding: 26px; }
.calc-input-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.debt-cols, .debt-row { display: grid; grid-template-columns: 1.5fr 1.05fr .7fr .9fr 40px; gap: 10px; align-items: center; }
.debt-cols { font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; color: var(--text-3); padding: 0 2px 8px; border-bottom: 1px solid var(--line); }
.debt-list { list-style: none; counter-reset: d; }
.debt-row {
  position: relative; padding: 10px 2px; border-bottom: 1px solid var(--line); animation: row-in .5s var(--ease);
  transition: background-color .2s;
}
.debt-row:hover { background: var(--surface); }
.debt-row.is-leaving { animation: row-out .3s var(--ease) forwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes row-out { to { opacity: 0; transform: translateX(24px); } }
.debt-row .order {
  position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: .8rem; color: var(--accent);
}
.cell { position: relative; display: flex; align-items: center; }
.cell .pre, .cell .suf { position: absolute; color: var(--text-3); font-size: .95rem; pointer-events: none; }
.cell .pre { left: 8px; } .cell .suf { right: 8px; }
.cell input {
  width: 100%; min-height: 44px; padding: 8px 8px; border: 1px solid transparent; border-radius: var(--radius); background: transparent;
  font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.cell .pre + input { padding-left: 20px; }
.cell input:hover { border-color: var(--line-2); }
.cell input:focus { outline: none; border-color: var(--brass); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(194, 161, 77, .18); }
.cell input[aria-invalid="true"] { border-color: #9E2B25; }
.cell-label { display: none; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.del {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); color: var(--text-3);
  transition: color .2s, background .2s, transform .15s;
}
.del svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.del:hover { color: #F5F2EA; background: #9E2B25; }
.del:active { transform: scale(.88); }
#addDebt { margin-top: 14px; }

.extra { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.extra-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.extra-head label { font-weight: 600; }
.money-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); padding-left: 10px; transition: border-color .2s; }
.money-input:hover, .money-input:focus-within { border-color: var(--brass); }
.money-input span { color: var(--text-3); }
.money-input input { width: 96px; min-height: 44px; padding: 6px 10px 6px 4px; background: transparent; border: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.money-input input:focus { outline: none; }
.extra-note { margin-top: 12px; font-size: .92rem; color: var(--text-3); }

.range { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brass) var(--fill), var(--line-2) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brass) var(--fill), var(--line-2) var(--fill)); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--brass);
  border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--brass), 0 4px 14px rgba(0, 0, 0, .35); transition: transform .2s var(--ease), box-shadow .2s;
}
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--brass); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--brass); }
.range:hover::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(194, 161, 77, .2), 0 4px 14px rgba(0, 0, 0, .35); }
.range:active::-webkit-slider-thumb { transform: scale(1.28); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--brass); }

.calc-output { display: grid; gap: 20px; }
.result-hero { padding: 28px; overflow: hidden; }
.result-hero::before {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 1.5px solid var(--brass); opacity: .35; box-shadow: 0 0 0 24px rgba(194, 161, 77, .05), 0 0 0 48px rgba(194, 161, 77, .03);
}
.result-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .86rem; color: var(--text-3); }
.result-date { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(3rem, 6vw, 5.4rem); line-height: .95; color: var(--accent); margin: 6px 0 22px; letter-spacing: .02em; }
.result-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.result-row div { display: flex; flex-direction: column; }
.result-row .tick { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-row small { color: var(--text-3); font-size: .86rem; line-height: 1.3; margin-top: 4px; }
.result-error { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--alert-soft); border: 1px solid rgba(158, 43, 37, .5); color: var(--text); }

.chart-card { padding: 22px 22px 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.legend { display: flex; gap: 16px; font-size: .86rem; color: var(--text-3); }
.lg::before { content: ''; display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.lg-thunder::before { background: var(--brass); }
.lg-min::before { background: repeating-linear-gradient(90deg, var(--text-3) 0 5px, transparent 5px 8px); }
.chart-wrap { position: relative; height: 260px; }
.chart { width: 100%; height: calc(100% - 24px); overflow: visible; cursor: crosshair; }
.chart-dots { position: absolute; inset: 0 0 24px 0; pointer-events: none; }
.ch-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-min { fill: none; stroke: var(--text-3); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.ch-thunder { fill: none; stroke: var(--brass); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ch-area { fill: url(#chFill); }
.ch-cross { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); pointer-events: none; font-variant-numeric: tabular-nums; }
.chart-ylab { position: absolute; left: 4px; font-size: .76rem; color: var(--text-3); pointer-events: none; transform: translateY(-120%); font-variant-numeric: tabular-nums; }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--brass); pointer-events: auto; transition: transform .2s var(--ease); }
.chart-dot:hover { transform: scale(1.5); }
.chart-tip {
  position: absolute; top: 0; z-index: 2; min-width: 170px; padding: 10px 12px; border-radius: var(--radius); pointer-events: none;
  background: #071225; color: #F5F2EA; border: 1px solid rgba(216, 210, 194, .2); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); font-size: .86rem;
  transform: translate(-50%, -6px);
}
.chart-tip b { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #D9B65C; display: block; margin-bottom: 4px; }
.chart-tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }

.schedule { margin-top: 20px; padding: 26px; }
.schedule-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.schedule-head .muted { font-size: .92rem; margin-top: 4px; max-width: 64ch; }
.schedule-budget { font-size: .95rem; color: var(--text-3); }
.schedule-budget strong { font-family: var(--display); font-size: 1.8rem; color: var(--accent); margin-left: 6px; font-weight: 600; }
.gantt { list-style: none; display: grid; gap: 10px; }
.g-row { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 16px; align-items: center; }
.g-name { display: flex; flex-direction: column; line-height: 1.2; }
.g-name strong { font-weight: 600; }
.g-name small { color: var(--text-3); font-size: .82rem; }
.g-track { position: relative; height: 38px; border-radius: var(--radius); }
.g-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.g-min { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--text-3); opacity: .6; left: 0; transition: width .7s var(--ease); }
.g-attack {
  position: absolute; top: 4px; bottom: 4px; border-radius: 3px; background: linear-gradient(90deg, #C2A14D, #D9B65C);
  color: #071225; font-weight: 700; font-size: .82rem; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden;
  transition: left .7s var(--ease), width .7s var(--ease), box-shadow .25s, transform .25s var(--ease);
}
.g-row:hover .g-attack { box-shadow: var(--glow); transform: scaleY(1.08); }
.g-end { position: absolute; top: 50%; transform: translate(10px, -50%); font-size: .82rem; color: var(--text-2); white-space: nowrap; background: var(--bg); padding: 1px 6px; border-radius: 3px; transition: left .7s var(--ease); font-variant-numeric: tabular-nums; }
.g-end.flip { transform: translate(calc(-100% - 10px), -50%); }
.g-axis { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 16px; }
.g-axis div { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 8px; font-variant-numeric: tabular-nums; }

.month-table { margin-top: 24px; border-top: 1px solid var(--line); }
.month-table summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px; cursor: pointer;
  font-weight: 600; border-radius: var(--radius); transition: color .2s, background-color .2s;
}
.month-table summary::-webkit-details-marker { display: none; }
.month-table summary:hover { color: var(--accent); background: var(--surface); }
.month-table summary:active { opacity: .7; }
.month-table summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .35s var(--ease); }
.month-table[open] summary svg { transform: rotate(180deg); }
.table-scroll { overflow: auto; max-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); }
.month-table table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.month-table th, .month-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.month-table th:first-child, .month-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg-2); }
.month-table thead th { position: sticky; top: 0; background: var(--bg-2); font-weight: 600; color: var(--text-2); z-index: 1; }
.month-table thead th:first-child { z-index: 2; }
.month-table tbody tr { transition: background-color .15s; }
.month-table tbody tr:hover { background: var(--surface-2); }
.month-table td.hit { color: var(--accent); font-weight: 700; }
.month-table td.done { color: var(--text-3); }
.month-table tr.payoff td:first-child { box-shadow: inset 3px 0 0 var(--brass); }
#moreMonths { margin-top: 14px; }

/* ---------------------------------------------------------------- compare */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.versus-mid { display: grid; place-items: center; }
.versus-mid span {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2);
  font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); background: var(--bg);
}
.path { padding: 30px; overflow: hidden; }
.path::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.path-stay::before { background: #9E2B25; }
.path-go::before { background: linear-gradient(90deg, #C2A14D, #D9B65C); }
.path-go { background: linear-gradient(160deg, rgba(194, 161, 77, .1), transparent 55%), var(--surface); }
.path-tag { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--text-3); }
.path-go .path-tag { color: var(--accent); }
.path-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; margin: 10px 0 24px; }
.path-stats { display: grid; gap: 0; }
.path-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.path-stats dt { color: var(--text-3); }
.path-stats dd { font-family: var(--display); font-weight: 600; font-size: 1.6rem; font-variant-numeric: tabular-nums; text-align: right; }
.path-go .path-stats dd { color: var(--accent); }
.path-bar { height: 6px; margin: 22px 0 22px; background: var(--line); border-radius: 6px; overflow: hidden; }
.path-bar span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.1s var(--ease); }
.path-stay .path-bar span { background: repeating-linear-gradient(135deg, #9E2B25 0 8px, #B5413A 8px 16px); }
.path-go .path-bar span { background: linear-gradient(90deg, #C2A14D, #D9B65C); }
.path-list { list-style: none; display: grid; gap: 10px; }
.path-list li { display: flex; gap: 12px; align-items: baseline; color: var(--text-2); }
.path-list li::before { content: ''; flex: none; width: 10px; height: 10px; transform: translateY(1px); }
.path-stay .path-list li::before { border: 1.5px solid #9E2B25; border-radius: 50%; }
.path-go .path-list li::before { background: var(--brass); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

.delta { margin-top: 20px; padding: 34px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 30px; align-items: end; overflow: hidden; }
.delta::after { content: ''; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, rgba(194, 161, 77, .16), transparent); pointer-events: none; }
.delta-label { font-family: var(--display); text-transform: uppercase; letter-spacing: .2em; font-size: .84rem; color: var(--text-3); margin-bottom: 8px; }
.delta-value { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: .01em; }
.delta-value .tick { white-space: nowrap; }
.delta-and { color: var(--text-3); font-size: .5em; vertical-align: middle; margin-inline: .15em; }
.delta-sub { color: var(--text-2); margin-top: 8px; }
.delta-build { border-left: 1px solid var(--line); padding-left: 30px; }
.delta-build-value { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1; font-variant-numeric: tabular-nums; }

.compare-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.wait, .dream { padding: 28px; }
.wait h3, .dream h3 { margin-bottom: 16px; }
.wait-label { display: block; color: var(--text-2); margin-bottom: 6px; }
.wait-label strong { color: var(--text); font-family: var(--display); font-size: 1.4rem; letter-spacing: .02em; margin-left: 4px; }
.wait-out, .dream-out { margin-top: 16px; font-size: 1.08rem; color: var(--text-2); min-height: 3.2em; }
.wait-out strong, .dream-out strong { color: var(--text); }
.wait-out .bad { color: var(--text); background: var(--alert-soft); padding: 0 .3em; border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: .94rem; color: var(--text-2);
  transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.chip:hover { border-color: var(--brass); color: var(--text); }
.chip:active { transform: scale(.95); }
.chip[aria-checked="true"] { background: var(--brass); border-color: var(--brass); color: #071225; }
.fine { margin-top: 28px; font-size: .86rem; color: var(--text-3); max-width: 90ch; }
.fine a { color: var(--accent); }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: 100svh; padding: 120px 0 80px; display: grid; place-items: center; overflow: hidden; }
.lost-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lost-code { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); font-family: var(--display); font-weight: 600; font-size: clamp(9rem, 28vw, 22rem); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--brass); margin-bottom: 30px; user-select: none; }
.lost-code > span { transition: color .4s, transform .6s var(--ease); }
.lost-code:hover > span { color: var(--brass); }
.lost-code:hover > span:first-child { transform: rotate(-6deg) translateY(-4%); }
.lost-code:hover > span:last-child { transform: rotate(6deg) translateY(4%); }
.compass { width: .78em; height: .78em; overflow: visible; }
.cp-ring { fill: var(--surface); stroke: var(--brass); stroke-width: 2.5; }
.cp-ring2 { fill: none; stroke: var(--line-2); stroke-width: 1; }
.cp-ticks line { stroke: var(--text-3); stroke-width: 1.5; }
.cp-ticks line.major { stroke: var(--text); stroke-width: 2.5; }
.cp-n { font-family: var(--display); font-size: 22px; fill: var(--accent); stroke: none; -webkit-text-stroke: 0; }
.cp-north { fill: #9E2B25; }
.cp-south { fill: var(--text-3); }
.cp-pin { fill: var(--brass); }
.lost-title { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .95; letter-spacing: .02em; }
.lost .lede { max-width: 48ch; }
.lost-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.lost-coords { margin-top: 28px; font-family: var(--display); letter-spacing: .24em; text-transform: uppercase; font-size: .82rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .versus { grid-template-columns: 1fr; }
  .versus-mid { margin-block: -34px; z-index: 1; }
  .delta { grid-template-columns: 1fr; }
  .delta-build { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .compare-tools { grid-template-columns: 1fr; }
  .story-stage { left: 50%; top: 42%; width: 100vw; transform: translate(-50%, -50%); }
  .chapter { max-width: none; right: var(--gutter); bottom: clamp(40px, 8vh, 80px); }
  .story-rail { display: none; }
}
@media (max-width: 640px) {
  .story-hud { top: 80px; }
  .debt-cols { display: none; }
  .debt-row { grid-template-columns: 1.2fr .8fr 1fr 40px; gap: 6px 8px; padding: 14px 0; }
  .debt-row .cell-name { grid-column: 1 / 4; }
  .debt-row .del { grid-column: 4; grid-row: 1; align-self: end; }
  .debt-row .cell:not(.cell-name):last-of-type { grid-column: 3 / 5; }
  .debt-row .order { display: none; }
  .cell { flex-direction: column; align-items: stretch; }
  .cell-label { display: block; font-size: .76rem; color: var(--text-3); font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; }
  .cell .pre, .cell .suf { top: auto; bottom: 12px; }
  .cell input { border-color: var(--line); }
  .calc-input, .schedule, .result-hero, .path, .wait, .dream, .delta { padding: 20px; }
  .result-row { grid-template-columns: 1fr 1fr; }
  .result-row div:last-child { grid-column: 1 / -1; }
  .g-row, .g-axis { grid-template-columns: 1fr; gap: 6px; }
  .g-axis > span { display: none; }
}
