/* The assessment page. The finder's styles first (shared look), then the screens only this page has. */
:root {
  --paper: #f4f3ef;
  --surface: #ffffff;
  --ink: #121212;
  --ink-soft: #5f5e59;
  --rule: #dcdad3;
  --line: #dcdad3;
  /* Functional only: how much work an application takes, and fit status. */
  --easy: #1e5a43;
  --easy-tint: #e3ebe5;
  --moderate: #8a5f15;
  --moderate-tint: #f2e9d6;
  --involved: #7e2a1f;
  --involved-tint: #f1e1dc;
  --neutral-tint: #ebe9e3;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 38rem;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Headings take focus so screen readers announce each new screen; no ring for that. */
[tabindex="-1"]:focus { outline: none; }
.label { font: 500 0.72rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* Header and live tally */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 24px var(--gutter) 22px;
  max-width: 64rem;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule);
}
.brand { font: 600 0.8rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tally { margin: 0; font-size: 0.85rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }
#tally-count { font: 400 1.5rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }

/* Chapter track */
.track { padding: 20px var(--gutter) 0; max-width: 64rem; width: 100%; margin: 0 auto; }
.track ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--chapters, 5), 1fr); gap: 8px; }
.track li { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.track li::before { content: ""; display: block; height: 2px; margin-bottom: 10px; background: var(--rule); transition: background 0.3s ease; }
.track li.done::before { background: #9a9993; }
.track li.current::before { background: var(--ink); }
.track li.current { color: var(--ink); }

/* Question stage */
main { flex: 1; width: 100%; max-width: 64rem; margin: 0 auto; padding: clamp(32px, 8vh, 72px) var(--gutter) 132px; outline: none; }
.question { max-width: var(--measure); }
.question h1 { font: 400 clamp(2.3rem, 7vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.question h1:not(:has(+ .hint)) { margin-bottom: 28px; }
.question .hint { margin: 0 0 28px; color: var(--ink-soft); max-width: 32rem; }

.enter { animation: rise 0.35s ease both; }
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* Answer choices */
.choices { display: grid; gap: 8px; margin: 0; padding: 0; }
.choices.two-up { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.choice {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px;
  text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
/* Hover only where a pointer truly hovers; on touch screens a tap would leave it stuck
   and look like a selection. It darkens the border only, never the fill. */
@media (hover: hover) and (pointer: fine) {
  .choice:not([aria-pressed="true"]):hover { border-color: #8f8e88; }
}
.choice[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice .mark { flex: none; width: 18px; height: 18px; border: 1px solid var(--ink-soft); border-radius: 2px; display: grid; place-items: center; }
.choice.single .mark { border-radius: 50%; }
.choice[aria-pressed="true"] .mark { background: var(--paper); border-color: var(--paper); }
.choice[aria-pressed="true"] .mark::after { content: ""; width: 8px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.choice small { display: block; color: var(--ink-soft); font-size: 0.86rem; }
/* Short answers (the boroughs) sit two to a row on phones, so the first screen fits without scrolling. */
.choices.pairs { grid-template-columns: 1fr 1fr; }
.choices.pairs .choice { padding: 14px; gap: 12px; }
/* The first question is where a link from an ad lands: what this is, before the question. */
.question .kicker { margin: 0 0 14px; color: var(--ink-soft); }
main.first { padding-top: 28px; }
.choice[aria-pressed="true"] small { color: #c9c8c2; }

/* Bottom controls */
.controls {
  position: fixed; inset: auto 0 0 0; display: flex; gap: 10px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 72%, rgba(244, 243, 239, 0));
}
.controls .back { flex: none; width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.controls .back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.controls .back[hidden] { display: none; }
.controls .next {
  flex: 1; max-width: 28rem; height: 52px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper); font: 500 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
.controls .next:disabled { background: var(--neutral-tint); border-color: var(--rule); color: #9a9993; cursor: default; }
.controls[hidden] { display: none; }

/* Results */
.results-head { max-width: 44rem; }
.results-head h1 { font: 400 clamp(2.4rem, 7vw, 3.8rem)/1.04 var(--serif); letter-spacing: -0.01em; margin: 0 0 16px; text-wrap: balance; }
.results-head p { margin: 0 0 10px; color: var(--ink-soft); max-width: 36rem; }
.key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 8px; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-soft); }
.key li { display: flex; align-items: center; gap: 8px; }
.key i { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }

.toggle { display: inline-flex; margin: 22px 0 6px; border: 1px solid var(--ink); border-radius: var(--radius); }
.toggle button { border: 0; background: transparent; padding: 10px 16px; cursor: pointer; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.toggle button + button { border-left: 1px solid var(--ink); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.group { margin-top: 48px; }
.group h2 { font: 400 1.9rem/1.1 var(--serif); margin: 0 0 6px; }
.group > p { margin: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }
.group h2 .count { font: 500 0.8rem/1 var(--sans); color: var(--ink-soft); margin-left: 6px; vertical-align: middle; letter-spacing: 0.08em; }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.row { border-bottom: 1px solid var(--rule); }
.row > button { display: grid; grid-template-columns: 84px 1fr auto; align-items: stretch; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; position: relative; }
@media (hover: hover) and (pointer: fine) { .row > button:hover { background: rgba(255, 255, 255, 0.55); } }
.row > button::after { content: ""; position: absolute; right: 18px; top: 24px; width: 8px; height: 8px; border: solid var(--ink-soft); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 0.2s ease; }
.row > button[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.row > button[aria-expanded="true"] .name { -webkit-line-clamp: unset; }
.level { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 88px; padding: 10px 4px; font: 500 0.64rem/1.2 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; border-left: 3px solid; }
.level svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.level.easy { background: var(--easy-tint); color: var(--easy); border-color: var(--easy); }
.level.moderate { background: var(--moderate-tint); color: var(--moderate); border-color: var(--moderate); }
.level.involved { background: var(--involved-tint); color: var(--involved); border-color: var(--involved); }
.row .what { padding: 16px 14px 16px 18px; min-width: 0; }
.row .name { font-weight: 500; font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row .meta { color: var(--ink-soft); font-size: 0.88rem; margin-top: 4px; font-variant-numeric: tabular-nums; }
.row .meta .free { color: var(--easy); font-weight: 500; white-space: nowrap; }
.row .when { padding: 18px 48px 14px 0; text-align: right; font-size: 0.85rem; color: var(--ink); max-width: 13rem; }
.row .provider, .card .provider, .program .provider, .prog .provider { display: block; font: 500 0.68rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.row .what > .tag { margin-top: 8px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: var(--radius); font: 500 0.66rem/1.5 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; background: transparent; border: 1px solid var(--ink); }
.tag.reimbursement { background: var(--moderate-tint); border-color: var(--moderate); color: var(--moderate); }

.detail { margin: 0 0 16px 84px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule); max-width: 48rem; }
.detail[hidden] { display: none; }
.detail p { margin: 0 0 12px; }
.detail h3 { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 18px 0 6px; }
.detail ul { margin: 0; padding-left: 1.1rem; }
.detail li { margin: 2px 0; }
.detail .fine { font-size: 0.85rem; color: var(--ink-soft); }
.detail .facts-line { font-size: 0.92rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.primary, a.primary {
  display: inline-block; border: 1px solid var(--ink); border-radius: var(--radius); padding: 12px 18px; background: var(--ink); color: var(--paper);
  font: 500 0.72rem/1.2 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.quiet, a.quiet { border: 0; background: transparent; padding: 12px 2px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.detail a.go { display: inline-block; margin-top: 14px; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--paper); text-decoration: none; }

.more { margin-top: 14px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }
.notice { margin-top: 48px; font-size: 0.85rem; color: var(--ink-soft); max-width: 42rem; border-top: 1px solid var(--rule); padding-top: 16px; }
.restart { margin-top: 18px; border: 1px solid var(--ink); background: transparent; border-radius: var(--radius); padding: 11px 18px; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.loading { font: 400 clamp(1.9rem, 6vw, 2.8rem)/1.1 var(--serif); }
.error { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--involved); padding: 16px 18px; max-width: 36rem; }

.chapter-now { display: none; margin: 12px 0 0; font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }

@media (max-width: 520px) {
  .track li { font-size: 0; }
  .track li::before { margin-bottom: 0; }
  .chapter-now { display: block; }
  .row > button { grid-template-columns: 64px 1fr; }
  .row .when { grid-column: 2; text-align: left; padding: 0 14px 16px 18px; max-width: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .level { min-height: 100%; grid-row: span 2; }
  .detail { margin-left: 0; }
  .row .what { padding-right: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Follow-up progress */
.settles { margin: 0 0 14px; font: 500 0.72rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }

/* What could fit */
.found h1, .program h1 { font: 400 clamp(2.3rem, 7vw, 3.6rem)/1.05 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; max-width: 46rem; }
.lede { font-size: 1.08rem; margin: 0 0 28px; max-width: 42rem; color: var(--ink-soft); }
.cards { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); border-top: 1px solid var(--ink); }
.card { background: transparent; border-bottom: 1px solid var(--rule); padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.card p { margin: 0; }
.card h3 { font: 400 1.45rem/1.15 var(--serif); margin: 2px 0 4px; }
.card-meta { margin: 0; color: var(--ink-soft); font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.card .tag { align-self: flex-start; margin-top: 8px; }
.card-when { margin: auto 0 0; padding-top: 12px; font-size: 0.88rem; }
.card-level { align-self: flex-start; font: 500 0.64rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius); margin-bottom: 10px; }
.card-level.easy { background: var(--easy-tint); color: var(--easy); }
.card-level.moderate { background: var(--moderate-tint); color: var(--moderate); }
.card-level.involved { background: var(--involved-tint); color: var(--involved); }
.next-round { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 26px; max-width: 42rem; }
.next-round h2 { font: 400 1.8rem/1.15 var(--serif); margin: 0 0 8px; }
.next-round p { margin: 0 0 18px; color: #c9c8c2; }
.next-round .primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.next-round .quiet { color: var(--paper); margin-left: 12px; }
.next-round.compact { margin-top: 22px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.next-round.compact p { margin: 0; color: var(--paper); }

/* One program in full */
.program { max-width: 48rem; }
.program section { margin-top: 44px; }
.program h2 { font: 400 1.9rem/1.1 var(--serif); margin: 0 0 10px; }
.program h3 { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 20px 0 8px; }
.program blockquote { margin: 12px 0; padding: 4px 0 4px 16px; border-left: 2px solid var(--ink); font: 400 1.15rem/1.45 var(--serif); white-space: pre-line; }
.program details { background: var(--surface); border: 1px solid var(--rule); padding: 12px 16px; margin: 8px 0; }
.program summary { cursor: pointer; font-weight: 500; }
.program .fine, .detail .fine { font-size: 0.85rem; color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 0; margin-bottom: 22px; font: 500 0.72rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 0.66rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-size: 1rem; font-variant-numeric: tabular-nums; }
.fitbar { display: flex; gap: 2px; height: 8px; margin: 16px 0 12px; }
.fitbar .seg { min-width: 8px; }
.seg.meets, .fit-key i.meets, .req.meets .req-mark { background: var(--easy); }
.seg.confirm, .fit-key i.confirm, .req.confirm .req-mark { background: var(--moderate); }
.seg.check, .fit-key i.check, .req.check .req-mark { background: #b9b7b0; }
.seg.does_not_meet, .fit-key i.does_not_meet, .req.does_not_meet .req-mark { background: var(--involved); }
.fit-key { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 14px; padding: 0; font-size: 0.85rem; color: var(--ink-soft); }
.fit-key li { display: flex; align-items: center; gap: 7px; }
.fit-key i { width: 10px; height: 10px; border-radius: 1px; }
.req-group { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.reqs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.reqs.any { border: 1px dashed var(--ink-soft); padding: 0 14px; }
.req { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.reqs.any .req:last-child { border-bottom: 0; }
.req-mark { width: 26px; height: 26px; border-radius: var(--radius); display: grid; place-items: center; }
.req-mark svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.req.check .req-mark svg { stroke: var(--ink); }
.req-text { margin: 0; }
.req-you { margin: 3px 0 0; font-size: 0.88rem; color: var(--ink-soft); }
.req.does_not_meet .req-you { color: var(--involved); }
.program details.req-quote { background: transparent; border: 0; padding: 0; margin: 6px 0 0; }
.req-quote summary { font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.steps { padding-left: 1.3rem; }
.steps li, .program ul li { margin: 4px 0; }
.sources { padding-left: 1.1rem; }
.sources a { color: var(--ink); }
.program section > .primary { margin-top: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aside { font-size: 0.9rem; color: var(--ink-soft); }
.quiet.inline { padding: 0; font-size: inherit; }
.thin { margin: 28px 0 0; padding: 14px 16px; border-left: 2px solid var(--moderate); background: var(--moderate-tint); max-width: 42rem; }

/* Business description on the first screen */
.describe { margin-top: 28px; max-width: 38rem; padding-top: 20px; border-top: 1px solid var(--rule); }
.describe label { display: block; font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.describe-row { display: flex; gap: 8px; }
.describe-row input { flex: 1; min-width: 0; font: inherit; padding: 13px 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.describe-row input:focus { border-color: var(--ink); outline: none; }
.describe-result { min-height: 1.5em; margin: 10px 0 0; color: var(--ink-soft); }

/* The model's second opinion */
.ai-status { font-size: 0.9rem; color: var(--ink-soft); }
.row .ai { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.row .ai strong { font-weight: 500; }
.row .ai.fits strong { color: var(--easy); }
.row .ai.unlikely strong { color: var(--involved); }
.set-aside summary { cursor: pointer; list-style: none; }
.set-aside summary::-webkit-details-marker { display: none; }
.set-aside summary h2::after { content: " +"; color: var(--ink-soft); }
.set-aside details[open] summary h2::after { content: " \2212"; }

/* Advisor tiers */
.worth { display: block; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: 4px 0 2px; color: var(--ink); }
.card .worth { font-size: 1.35rem; }
.condition { display: block; color: var(--moderate); font-size: 0.92rem; margin: 2px 0; }
.assumption, .assumed { color: var(--ink-soft); font-size: 0.92rem; }
.assumed { margin: 10px 0 0; }
.who { color: var(--ink-soft); }
.nfy { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.nfy li { border-top: 1px solid var(--line); padding-top: 10px; }
.nfy .name { font-weight: 500; }
.nfy .why { display: block; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Screens only the assessment has ---------- */

main.wide { max-width: 76rem; }
.top .who { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; min-width: 0; }
.top .who .quiet { padding: 4px 0; }
/* On the home page the assessment comes before signing in. */
.top:has(#top-begin) { padding-top: 18px; padding-bottom: 16px; }
.top .who:has(#top-begin) .quiet { color: var(--ink-soft); font-size: 0.85rem; }
.top .who .primary { padding: 11px 14px; white-space: nowrap; }
.top .who .name { color: var(--ink-soft); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .top .who .name { display: none; } }

/* Home: the landing page's hero, with one way forward */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; min-height: min(72vh, 720px); }
@media (min-width: 900px) { .home { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.home h1 { font: 400 clamp(2.6rem, 6.2vw, 4.6rem)/1.04 var(--serif); letter-spacing: -0.01em; margin: 0 0 26px; max-width: 17ch; text-wrap: balance; }
.home .intro { color: var(--ink-soft); max-width: 30rem; margin: 0 0 32px; font-size: 1.05rem; }
.home .intro strong { color: var(--ink); font-weight: 600; }
.home .start-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 30px; }
.home .primary.big { padding: 17px 26px; font-size: 0.78rem; }
.home .note { color: var(--ink-soft); font-size: 0.9rem; }
.home .label { line-height: 2; }
.figure { width: 100%; max-width: 620px; justify-self: center; aspect-ratio: 1 / 1; }
@media (max-width: 899px) { .figure { max-width: 380px; order: -1; } }
.figure circle { fill: none; stroke: var(--ink); vector-effect: non-scaling-stroke; }

/* Home, below the hero: what Rackup is and how it works */
.home .legal-links .quiet { padding: 0; font-size: inherit; color: var(--ink); }
.explain { border-top: 1px solid var(--rule); padding: 44px 0 4px; margin-top: 40px; }
.explain > .label { color: var(--ink-soft); margin: 0 0 8px; }
.explain h2 { font: 400 clamp(1.9rem, 5vw, 2.9rem)/1.08 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; max-width: 22ch; text-wrap: balance; }
.explain > p { color: var(--ink-soft); max-width: 36rem; margin: 0 0 24px; font-size: 1.02rem; }
.steps3 { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: step; }
.steps3 li { border-top: 2px solid var(--ink); padding-top: 14px; counter-increment: step; }
.steps3 li::before { content: "0" counter(step); display: block; font: 500 0.72rem/1.6 var(--sans); letter-spacing: 0.14em; color: var(--ink-soft); margin-bottom: 6px; }
.steps3 strong { display: block; font: 400 1.45rem/1.2 var(--serif); margin-bottom: 6px; }
.steps3 span { color: var(--ink-soft); }
.sample { max-width: 56rem; border-top: 1px solid var(--ink); padding-top: 18px; }
.sample .provider { margin: 0 0 4px; }
.kinds { display: grid; gap: 0 24px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.kinds > div { border-top: 1px solid var(--rule); padding: 14px 0 16px; }
.kinds dt { font: 400 1.3rem/1.2 var(--serif); }
.kinds dd { margin: 6px 0 0; color: var(--ink-soft); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 56rem; }
.plan { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius); padding: 22px 22px 10px; }
.plan.member { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan h3 { font: 400 1.7rem/1.1 var(--serif); margin: 0; }
.plan .price { margin: 4px 0 14px; color: var(--ink-soft); }
.plan.member .price { color: #c9c8c2; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--rule); }
.plan.member li { border-color: #3a3a37; }
.plan li::before { content: ""; position: absolute; left: 3px; top: 18px; width: 9px; height: 5px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { color: var(--ink-soft); margin: 10px 0 0; }
.explain.closing { padding-bottom: 32px; }
.explain .start-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.explain .primary.big { padding: 17px 26px; font-size: 0.78rem; }
.explain .note { color: var(--ink-soft); font-size: 0.9rem; }
.cluster { transform-box: fill-box; transform-origin: center; animation: breathe 9s ease-in-out infinite; }
.cluster:nth-of-type(2) { animation-delay: -3s; }
.cluster:nth-of-type(3) { animation-delay: -6s; }
.orbit { transform-box: fill-box; transform-origin: center; animation: turn 60s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.04); } }
@keyframes turn { to { transform: rotate(360deg); } }

/* Forms: who it's for, the account, signing in */
.form-screen { max-width: 36rem; }
.form-screen h1 { font: 400 clamp(2.3rem, 7vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.01em; margin: 0 0 12px; text-wrap: balance; }
.form-screen .lede { margin-bottom: 26px; }
.step-label { margin: 0 0 14px; color: var(--ink-soft); }
.panel { background: var(--surface); border: 1px solid var(--rule); padding: clamp(20px, 4vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink-soft); }
.field input {
  width: 100%; min-width: 0; padding: 13px 14px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); font: inherit; color: var(--ink);
}
.field input:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--involved); }
.field .fine { margin: 6px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
@media (min-width: 520px) { .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; }
.password-row button { flex: none; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); padding: 0 14px; cursor: pointer; font-size: 0.85rem; }
.consent { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 0.92rem; margin: 6px 0 22px; }
.consent input { width: 16px; height: 16px; margin-top: 4px; flex: none; accent-color: var(--ink); }
.panel .primary { width: 100%; padding: 15px 20px; }
.panel .primary:disabled { opacity: 0.55; cursor: default; }
.message { margin: 14px 0 0; min-height: 1.5em; color: var(--involved); font-size: 0.92rem; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.google {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 18px;
  background: var(--surface); border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink);
  font: 500 0.95rem/1 var(--sans); text-decoration: none;
}
.google svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 0.85rem; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.switch { margin: 18px 0 0; color: var(--ink-soft); }
.switch .quiet { padding: 0; }
.banner { border-left: 2px solid var(--moderate); background: var(--moderate-tint); padding: 12px 16px; margin: 0 0 24px; max-width: 42rem; }

/* Top fits, then the paywall */
.card p.card-when { margin: auto 0 0; } /* beats ".card p" so dates and buttons line up */
.card .view { align-self: flex-start; margin-top: 14px; padding: 9px 14px; }
.locked { list-style: none; margin: -36px 0 36px; padding: 0; }
.locked li {
  display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule);
  color: var(--ink-soft); font-size: 0.92rem;
}
.locked li span.bar { flex: 1; height: 10px; border-radius: 1px; background: linear-gradient(90deg, var(--neutral-tint), var(--paper)); }
.locked svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.gate { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); max-width: 46rem; }
.gate .label { color: #c9c8c2; margin: 0; }
.gate h2 { font: 400 clamp(1.8rem, 4.5vw, 2.5rem)/1.1 var(--serif); margin: 10px 0 12px; text-wrap: balance; }
.gate p { color: #c9c8c2; margin: 0 0 18px; max-width: 36rem; }
.gate ul { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid #3a3a37; }
.gate li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid #3a3a37; }
.gate li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 5px; border: solid var(--paper); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); }
.gate .price-line { color: var(--paper); font-size: 1.02rem; }
.gate .price-line strong { font: 400 1.6rem/1 var(--serif); margin-right: 4px; }
.gate .primary { background: var(--paper); color: var(--ink); border-color: var(--paper); padding: 15px 22px; }
.gate .quiet { color: var(--paper); margin-left: 16px; }
.edit-answers { margin-top: 26px; }

/* The plan, where payment comes in */
.plan-box { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); max-width: 56rem; }
@media (min-width: 800px) { .plan-box { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.plan-box .price { padding: 24px 0 28px; }
@media (min-width: 800px) { .plan-box .price { padding-right: 40px; border-right: 1px solid var(--rule); } }
.amount { margin: 10px 0 18px; color: var(--ink-soft); }
.amount span { display: block; font: 400 clamp(3.6rem, 9vw, 5.4rem)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.terms { font-size: 0.92rem; margin: 0 0 20px; max-width: 30rem; }
.price .primary { width: 100%; padding: 15px 20px; }
.price .primary:disabled { opacity: 0.55; cursor: default; }
.price .fine { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }
.test-note { margin: 14px 0 0; padding: 10px 12px; font-size: 0.85rem; background: var(--moderate-tint); border-left: 2px solid var(--moderate); }
.includes { list-style: none; margin: 0; padding: 0; }
@media (min-width: 800px) { .includes { padding-left: 40px; } }
.includes li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; }
.includes strong { font-weight: 500; }
.includes span { color: var(--ink-soft); }

/* After payment */
.welcome { max-width: 40rem; }
.welcome h1 { font: 400 clamp(2.4rem, 7vw, 3.8rem)/1.04 var(--serif); letter-spacing: -0.01em; margin: 0 0 14px; text-wrap: balance; }
.key i.k-easy { background: var(--easy); }
.key i.k-moderate { background: var(--moderate); }
.key i.k-involved { background: var(--involved); }

/* Why a program is near the top */
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.card-top .card-level { margin-bottom: 0; }
.reason { display: inline-flex; align-items: center; gap: 6px; font: 500 0.8rem/1.4 var(--sans); color: var(--ink-soft); }
.reason::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.reason.cash { color: var(--easy); }
.reason.soon { color: var(--involved); }
.row .reason { display: flex; margin-bottom: 4px; }

/* The daily check */
.gate .live { display: inline-flex; align-items: center; gap: 10px; }
.gate .live i { width: 8px; height: 8px; border-radius: 50%; background: #7fbf9a; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 191, 154, 0.55); } 50% { box-shadow: 0 0 0 6px rgba(127, 191, 154, 0); } }
.gate ol.daily { list-style: none; margin: 4px 0 22px; padding: 0; border-top: 1px solid #3a3a37; }
.gate ol.daily li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 2px 18px; padding: 14px 0; border-bottom: 1px solid #3a3a37; }
.gate ol.daily li::before { content: none; }
.gate .daily .when { grid-row: span 2; padding-top: 3px; font: 500 0.68rem/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #9a9993; }
.gate .daily strong { font-weight: 500; color: var(--paper); }
.gate .daily span:last-child { color: #c9c8c2; font-size: 0.95rem; }
@media (max-width: 520px) {
  .gate ol.daily li { grid-template-columns: minmax(0, 1fr); }
  .gate .daily .when { grid-row: auto; }
}

/* One program: what it offers, how to apply, how the business qualifies */
.programs { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 0; }
.prog { border-top: 1px solid var(--ink); padding: 22px 0 30px; }
.prog-head .reason { margin-bottom: 8px; }
.prog-name { font: 400 clamp(1.5rem, 3.4vw, 1.9rem)/1.15 var(--serif); margin: 2px 0 4px; text-wrap: balance; max-width: 44rem; }
.prog .worth { margin: 2px 0 6px; }
.prog-summary {
  margin: 6px 0 0; max-width: 46rem; color: var(--ink-soft); font-size: 0.95rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prog .ai { display: block; margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }
.prog .ai strong { font-weight: 500; }
.prog .ai.fits strong { color: var(--easy); }
.prog .ai.unlikely strong { color: var(--involved); }

/* The fact table and "How you qualify": rounded grids whose dividers stay right for any count.
   Each cell draws its right and bottom edge; the inner grid overhangs by a pixel so the outer
   edges are clipped by the rounded box. */
.grid-box { margin: 18px 0 0; max-width: 56rem; background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.grid-box > dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -1px -1px 0; }
.grid-box > dl > div { padding: 16px 20px 18px; min-width: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.grid-box dt { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 400 0.88rem/1.3 var(--sans); color: var(--ink-soft); }
.grid-box dd { margin: 6px 0 0; font: 600 1.06rem/1.3 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.grid-box dd small { display: block; margin-top: 5px; font: 400 0.82rem/1.4 var(--sans); color: var(--ink-soft); }
@media (max-width: 640px) {
  .grid-box > dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-box > dl > div { padding: 14px 14px 16px; }
}

.qualify { max-width: 56rem; margin-top: 22px; }
.qualify h4 { font: 500 0.7rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.qualify .grid-box { margin-top: 10px; }
.criteria dd { font-size: 0.98rem; }
.crit-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.crit-mark svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.crit.meets .crit-mark { background: var(--easy); }
.crit.depends .crit-mark { background: var(--moderate); }
.crit.confirm .crit-mark { background: #d9d7d0; }
.crit.confirm .crit-mark svg { stroke: var(--ink); }
.crit.no .crit-mark { background: var(--involved); }
.crit.meets dd small { color: var(--ink); }
.crit.no dd, .crit.no dd small { color: var(--involved); }
.prog .actions { margin-top: 18px; }

/* Renewal consent on the plan screen; the admin marker in the header */
.consent.renewal { margin: 0 0 16px; color: var(--ink); }
.admin-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid var(--ink-soft); border-radius: var(--radius); font: 500 0.62rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }

/* Emailed links: the reset confirmation, and the reminder to confirm an email */
.sent { margin: 0; font-size: 1rem; }
.confirm-line { max-width: 42rem; margin: 0 0 18px; padding: 10px 14px; background: var(--moderate-tint); border-left: 2px solid var(--moderate); font-size: 0.92rem; }

/* Terms and privacy (/terms, /privacy) and the links to them */
.legal { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 56px; flex: 1; }
.legal h1 { font: 400 clamp(2.4rem, 8vw, 3.4rem)/1.05 var(--serif); margin: 0 0 20px; }
.legal h2 { font: 400 1.6rem/1.2 var(--serif); margin: 40px 0 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.legal p, .legal li { font-size: 0.98rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 16px; }
.legal li { margin: 0 0 6px; }
.legal a { color: var(--ink); }
.legal .table { overflow-x: auto; margin: 0 0 18px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.legal th { font: 500 0.7rem/1.5 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); border-bottom-color: var(--ink); }
.legal-foot, .legal-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); }
.legal-foot { max-width: 64rem; width: 100%; margin: 0 auto; padding: 22px var(--gutter) 32px; border-top: 1px solid var(--rule); }
.legal-foot a, .legal-links a { color: var(--ink-soft); }
.legal-links { margin: 28px 0 0; }

/* Saving programs and the profile */
.save { padding: 12px 2px; }
.save.on { text-decoration: none; font-weight: 600; }
.save.on::before { content: "\2713\00a0"; }
.save-row { margin: 4px 0 18px; }
.profile { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 32px var(--gutter) 56px; }
.profile h1 { font: 400 clamp(2.4rem, 8vw, 3.2rem)/1.05 var(--serif); margin: 0 0 6px; }
.profile h2 { font: 400 1.5rem/1.2 var(--serif); margin: 40px 0 12px; padding-top: 14px; border-top: 1px solid var(--rule); }
.profile .lede { color: var(--ink-soft); margin: 0; overflow-wrap: anywhere; }
.profile .panel { margin: 0 0 18px; }
.muted { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.saved { list-style: none; margin: 0; padding: 0; }
.saved-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.saved-name { margin: 0 0 2px; font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.saved-row .row-actions { flex-shrink: 0; }
.danger summary { cursor: pointer; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.danger form { margin-top: 12px; }
.danger-button { border: 1px solid var(--involved); background: transparent; color: var(--involved); padding: 12px 18px; border-radius: var(--radius); cursor: pointer; }
.danger-button:hover { background: var(--involved-tint); }
.top .who [aria-current="page"] { text-decoration: none; font-weight: 600; }
@media (max-width: 520px) { .saved-row { flex-direction: column; gap: 4px; } }
