/* Sunday Table Health — site + intake styles
   Palette and type per the approved site spec. Signal blue is reserved for primary
   buttons and the plan card price; green means approved/shipped; amber means action needed. */

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --porcelain: #F3F5F6;
  --harbor: #13293D;
  --signal: #2F4BFF;
  --signal-deep: #1F37D6;
  --green: #1E8E5A;
  --amber: #E8A317;
  --mist: #C9D6DF;
  --white: #FFFFFF;
  --ink-2: #44586A;          /* secondary text on porcelain/white, 6.6:1 */
  --harbor-soft: #E4EAEE;    /* quiet fills */
  --error: #B3261E;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", Verdana, sans-serif;

  --wrap: 75rem;
  --gutter: 1rem;
  --r-card: 1.125rem;
  --r-ctrl: 0.75rem;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.lt { font-size: 118.75%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--harbor);
  font: 400 1.125rem/1.55 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--harbor); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 1rem; max-width: 40em; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0 0 1rem; line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem); letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-weight: 800; font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.lede { font-size: 1.3125rem; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.small { font-size: 0.9375rem; color: var(--ink-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--harbor); color: var(--white); padding: 0.75rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0 1.5rem; border: 0; border-radius: var(--r-ctrl);
  background: var(--signal); color: var(--white);
  font: 600 1.0625rem/1 var(--display); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--signal-deep); }
.btn-wide { width: 100%; }
.btn-quiet {
  background: transparent; color: var(--harbor); box-shadow: inset 0 0 0 1.5px var(--harbor);
}
.btn-quiet:hover { background: var(--harbor-soft); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--harbor); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* ---------- Header ---------- */
.testbar { background: var(--harbor); color: var(--porcelain); font-size: 0.875rem; }
.testbar .wrap { padding-top: 0.5rem; padding-bottom: 0.5rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.testbar a { color: var(--porcelain); }
.site-head { border-bottom: 1px solid var(--mist); background: var(--porcelain); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font: 800 1.25rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand img { width: 2rem; height: 2rem; }
.nav { display: flex; gap: 1.5rem; margin-left: 1rem; }
.nav a { text-decoration: none; font-weight: 700; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.tool { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.75rem; border-radius: 0.6rem; border: 1.5px solid var(--mist); background: var(--white); font: 700 0.9375rem/1 var(--text); color: var(--harbor); text-decoration: none; cursor: pointer; }
.tool[aria-pressed="true"] { border-color: var(--harbor); }
.menu { display: none; }
@media (max-width: 60rem) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 30; flex-direction: column; gap: 0.25rem; min-width: 14rem; padding: 0.75rem; background: var(--white); border: 1px solid var(--mist); border-radius: var(--r-card); }
  .menu-panel a { padding: 0.6rem 0.5rem; text-decoration: none; font-weight: 700; }
  .head-signin { display: none; }
}
@media (max-width: 26rem) { .kind-site .site-head .brand span { display: none; } .site-head .brand { font-size: 1.0625rem; } }

/* ---------- Hero with intake ---------- */
.hero { padding: 3rem 0 4rem; }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) {
  .hero { padding: 4.5rem 0 5.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 24rem; gap: 4rem; align-items: start; }
}
.hero h1 { max-width: 11ch; margin-bottom: 1.25rem; }
.hero .lede { margin-bottom: 2rem; }
.goals { border: 0; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.625rem; grid-template-columns: 1fr; }
@media (min-width: 36rem) { .goals { grid-template-columns: 1fr 1fr; } }
.goal { position: relative; }
.goal input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.goal label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 1.2rem; border-radius: var(--r-ctrl); background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--mist); cursor: pointer;
}
.goal .g-name { font: 600 1.25rem/1.15 var(--display); letter-spacing: -0.01em; }
.goal .g-price { font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; }
.goal input:checked + label { box-shadow: inset 0 0 0 2.5px var(--harbor); }
.goal input:focus-visible + label { outline: 3px solid var(--signal); outline-offset: 2px; }
.elig { display: grid; gap: 1rem 1rem; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.elig .f-state { grid-column: span 6; }
.elig .f-age { grid-column: span 2; }
.elig .f-sex { grid-column: span 4; }
.elig .f-ht { grid-column: span 4; }
.elig .f-wt { grid-column: span 2; }
@media (min-width: 36rem) {
  .elig .f-state { grid-column: span 4; }
  .elig .f-age { grid-column: span 2; }
  .elig .f-sex { grid-column: span 6; }
}
.js .is-hidden { display: none !important; }
.hero-note { margin-top: 1rem; font-size: 0.9375rem; color: var(--ink-2); }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field > label, .field > .lbl, fieldset.field > legend { font-weight: 700; font-size: 0.9375rem; padding: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--mist); border-radius: var(--r-ctrl); background: var(--white);
  font: 400 1.125rem/1.3 var(--text); color: var(--harbor);
}
textarea.input { min-height: 8rem; resize: vertical; }
.input:focus { border-color: var(--harbor); outline: 3px solid rgba(47, 75, 255, 0.35); outline-offset: 0; }
.input[aria-invalid="true"] { border-color: var(--error); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.unit { position: relative; }
.unit .input { padding-right: 2.6rem; }
.unit span { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 0.9375rem; pointer-events: none; }
.seg { display: flex; gap: 0.5rem; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; border-radius: var(--r-ctrl); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--mist); font-weight: 700; cursor: pointer; }
.seg input:checked + span { box-shadow: inset 0 0 0 2.5px var(--harbor); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.err { color: var(--error); font-size: 0.9375rem; font-weight: 700; margin: 0; }
.alert { padding: 1rem 1.1rem; border-radius: var(--r-ctrl); background: var(--white); border-left: 4px solid var(--amber); margin-bottom: 1.5rem; }
.alert-test { border-left-color: var(--harbor); }
.alert p:last-child { margin-bottom: 0; }

/* Choice rows (intake answers) */
.choices { display: grid; gap: 0.625rem; border: 0; padding: 0; margin: 0 0 1.25rem; }
.choice { position: relative; }
.choice input { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--harbor); }
.choice label { display: block; padding: 1rem 1.1rem 1rem 3.1rem; border-radius: var(--r-ctrl); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--mist); cursor: pointer; font-weight: 700; }
.choice input:checked + label { box-shadow: inset 0 0 0 2.5px var(--harbor); }
.check { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1rem; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; flex: none; accent-color: var(--harbor); }

/* ---------- The plan card (signature) ---------- */
.plan {
  background: var(--white); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--mist), 0 18px 40px -28px rgba(19, 41, 61, 0.45);
  overflow: hidden;
}
@media (min-width: 60rem) { .plan { position: sticky; top: 1.5rem; } }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--harbor); color: var(--porcelain); }
.plan-head h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.plan-where { font-size: 0.9375rem; }
.plan-toggle { display: none; }
.plan-rows { margin: 0; padding: 0.5rem 1.4rem 0; }
.plan-row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--mist); }
.plan-row dt { font-size: 0.9375rem; color: var(--ink-2); }
.plan-row dd { margin: 0; font-weight: 700; line-height: 1.35; }
.plan-row .ph { display: block; height: 0.75rem; margin-top: 0.35rem; border-radius: 99px; background: var(--harbor-soft); width: 70%; }
.plan-row.is-set .ph { display: none; }
.plan-total { padding: 1.1rem 1.4rem 0.5rem; }
.plan-total .lbl { font-size: 0.9375rem; color: var(--ink-2); }
.plan-price { font: 800 2.75rem/1 var(--display); letter-spacing: -0.03em; color: var(--signal); }
.plan-price small { font: 600 1rem/1 var(--display); letter-spacing: 0; color: var(--harbor); margin-left: 0.25rem; }
.plan-plus { font-size: 0.9375rem; margin-top: 0.35rem; }
.plan-foot { padding: 0.9rem 1.4rem 1.3rem; font-size: 0.9375rem; color: var(--ink-2); }
.plan-foot strong { color: var(--harbor); }
.plan-closed { margin: 0.75rem 1.4rem 1.2rem; padding: 0.9rem 1rem; border-radius: var(--r-ctrl); background: var(--harbor-soft); font-size: 0.9375rem; }
/* The one motion: rows settle in as answers arrive. */
.js .plan-row dd > span:not(.ph) { display: inline-block; }
.js .plan-row.is-new dd > span:not(.ph) { animation: settle 360ms cubic-bezier(.2, .7, .2, 1); }
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .plan-row.is-new dd > span { animation: none; } }

/* Phone: the card becomes a bottom sheet once a goal is picked. */
@media (max-width: 59.99rem) {
  .js .plan.is-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; border-radius: var(--r-card) var(--r-card) 0 0;
    max-height: 78vh; overflow: auto; box-shadow: 0 -12px 40px -18px rgba(19, 41, 61, 0.55);
  }
  .js .plan.is-sheet .plan-toggle { display: inline-flex; }
  .js .plan.is-sheet:not(.is-open) .plan-rows,
  .js .plan.is-sheet:not(.is-open) .plan-foot { display: none; }
  .js .plan.is-sheet:not(.is-open) .plan-total { padding-bottom: 1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .js .plan.is-sheet:not(.is-open) .plan-price { font-size: 2rem; }
  .js .plan.is-sheet:not(.is-open) .plan-plus { margin: 0; text-align: right; }
  .js body.has-sheet { padding-bottom: 7.5rem; }
  .js .plan.is-placeholder { display: none; }
}
.plan-toggle { align-items: center; min-height: 2.25rem; padding: 0 0.8rem; border-radius: 0.6rem; border: 1.5px solid var(--porcelain); background: transparent; color: var(--porcelain); font: 700 0.875rem/1 var(--text); cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--mist); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-dark { background: var(--harbor); color: var(--porcelain); }
.section-dark a { color: var(--porcelain); }
.section-dark .lede { color: #C9D6DF; }
.section-dark + .section { border-top: 0; }

/* How it works — a real sequence, so it's numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: step; position: relative; padding-top: 3.5rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--harbor); color: var(--porcelain); font: 800 1.125rem/1 var(--display);
}
@media (min-width: 52rem) {
  .steps li::after { content: ""; position: absolute; top: 1.25rem; left: 3.25rem; right: -0.75rem; height: 1.5px; background: var(--mist); }
  .steps li:last-child::after { display: none; }
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 1rem; color: var(--ink-2); }

/* Program list */
.programs { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--harbor); }
.program-row { display: grid; gap: 0.5rem 2rem; padding: 1.75rem 0; border-bottom: 1px solid var(--mist); }
@media (min-width: 52rem) { .program-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 13rem; align-items: baseline; } }
.program-row h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.program-row h3 a { text-decoration: none; }
.program-row h3 a:hover { text-decoration: underline; }
.program-row p { margin: 0; color: var(--ink-2); }
.program-fee { font-weight: 700; }
.program-fee span { display: block; font-weight: 400; font-size: 0.9375rem; color: var(--ink-2); }

/* Household */
.household { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .household { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.account { background: var(--white); color: var(--harbor); border-radius: var(--r-card); padding: 1.25rem; }
.account-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0.25rem 0.25rem 1rem; border-bottom: 1px solid var(--mist); }
.account-top strong { font: 600 1.125rem/1.2 var(--display); }
.member { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; padding: 1rem 0.25rem; border-bottom: 1px solid var(--mist); }
.member:last-child { border-bottom: 0; }
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--harbor-soft); display: grid; place-items: center; font: 800 1rem/1 var(--display); }
.member-name { font-weight: 700; }
.member-plan { font-size: 0.9375rem; color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9375rem; font-weight: 700; margin-top: 0.3rem; }
.status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--mist); }
.status-ok::before { background: var(--green); }
.status-act::before { background: var(--amber); }
.status-wait::before { background: transparent; box-shadow: inset 0 0 0 2px var(--harbor); }

/* Safety: two lists side by side */
.ledger { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .ledger { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.ledger h3 { padding-bottom: 0.75rem; border-bottom: 1.5px solid var(--harbor); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 0.85rem 0; border-bottom: 1px solid var(--mist); }
.ledger li strong { display: block; }
.ledger li span { color: var(--ink-2); font-size: 1rem; }

/* Bilingual band */
.bilingual { padding: 4rem 0; }
.bilingual p.big { font: 800 clamp(2rem, 1.3rem + 3vw, 3.75rem)/1.02 var(--display); letter-spacing: -0.03em; max-width: 16ch; margin-bottom: 1.25rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 18ch; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--mist); }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.25rem, 1.5rem + 3.4vw, 4rem); }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.75rem; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1.5px solid var(--harbor); }
.facts > div { display: grid; gap: 0.25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--mist); }
@media (min-width: 44rem) { .facts > div { grid-template-columns: 14rem 1fr; } }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); }
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.faq details { border-bottom: 1px solid var(--mist); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1.5px solid var(--harbor); }
.faq summary { cursor: pointer; font: 600 1.25rem/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-2); }
.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.tab { min-height: 2.75rem; padding: 0 1.1rem; border-radius: 99px; border: 1.5px solid var(--harbor); background: transparent; font: 700 1rem/1 var(--text); color: var(--harbor); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--harbor); color: var(--porcelain); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--mist); }
.price-table thead th { font-size: 0.9375rem; color: var(--ink-2); border-bottom: 1.5px solid var(--harbor); }
.price-table tbody th { font: 800 1.375rem/1.15 var(--display); letter-spacing: -0.015em; }
.price-table .fee { font: 800 1.375rem/1 var(--display); white-space: nowrap; }
@media (max-width: 44rem) {
  .price-table thead { display: none; }
  .price-table tr { display: block; padding: 1rem 0; border-bottom: 1px solid var(--mist); }
  .price-table th, .price-table td { display: block; border: 0; padding: 0.2rem 0; }
  .price-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--harbor); }
}
.empty { padding: 2rem; border-radius: var(--r-card); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--mist); max-width: 40rem; }
.legal-body { max-width: 44rem; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.placeholder-note { padding: 1rem 1.1rem; border-left: 4px solid var(--amber); background: var(--white); margin-bottom: 2rem; }

/* ---------- Intake flow ---------- */
.kind-app .site-head .wrap, .kind-ops .site-head .wrap { min-height: 4rem; }
.flow { max-width: 40rem; margin: 0 auto; padding: 2rem var(--gutter) 5rem; }
.progress { margin-bottom: 2rem; }
.progress-bar { height: 0.375rem; border-radius: 99px; background: var(--harbor-soft); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--harbor); border-radius: 99px; }
.progress p { margin: 0.6rem 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.flow h1 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; }
.q-title { font: 800 clamp(1.5rem, 1.2rem + 1.4vw, 2rem)/1.18 var(--display); letter-spacing: -0.02em; margin: 0 0 1.25rem; }
.why { margin: 0 0 1.5rem; }
.why summary { cursor: pointer; font-weight: 700; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.18em; width: fit-content; }
.why p { margin: 0.5rem 0 0; font-size: 1rem; color: var(--ink-2); }
.form-stack { display: grid; gap: 1.25rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 34rem) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.back { font-weight: 700; }
.summary { margin: 0 0 2rem; border-top: 1.5px solid var(--harbor); }
.summary > div { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 0.9rem 0; border-bottom: 1px solid var(--mist); }
@media (min-width: 34rem) { .summary > div { grid-template-columns: 11rem 1fr auto; gap: 1rem; align-items: baseline; } }
.summary dt { font-weight: 700; font-size: 0.9375rem; }
.summary dd { margin: 0; }
.summary .edit { font-size: 0.9375rem; }
.code-input { font: 800 1.75rem/1 var(--display); letter-spacing: 0.35em; text-align: center; max-width: 14rem; }
.hold { padding: 1.25rem; background: var(--white); border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--mist); margin-bottom: 1.5rem; }
.hold-amount { font: 800 2.5rem/1 var(--display); color: var(--signal); letter-spacing: -0.03em; }
.card-fields { min-height: 3.25rem; padding: 0.75rem; border: 1.5px dashed var(--mist); border-radius: var(--r-ctrl); color: var(--ink-2); }

.timeline { list-style: none; margin: 0 0 2rem; padding: 0; }
.timeline li { position: relative; padding: 0 0 1.5rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; left: 0.3rem; top: 0.3rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--mist); background: var(--white); }
.timeline li::after { content: ""; position: absolute; left: 0.7rem; top: 1.4rem; bottom: 0.1rem; width: 1.5px; background: var(--mist); }
.timeline li:last-child::after { display: none; }
.timeline li.done::before { background: var(--green); box-shadow: none; }
.timeline li.now::before { box-shadow: inset 0 0 0 3px var(--harbor); }
.timeline li.stop::before { background: var(--harbor); box-shadow: none; }
.timeline strong { display: block; }
.timeline span { color: var(--ink-2); font-size: 1rem; }
.ref { font: 600 1rem/1 var(--display); letter-spacing: 0.04em; }

@media print {
  .site-head, .site-foot, .testbar, .actions, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--harbor); color: var(--porcelain); padding: 3.5rem 0 2.5rem; font-size: 1rem; }
.site-foot a { color: var(--porcelain); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 52rem) { .foot-brand { grid-column: auto; } }
.foot-brand .brand { color: var(--porcelain); }
.foot-brand .brand img { filter: invert(1) brightness(2); }
.foot-brand p { color: #C9D6DF; margin-top: 1rem; max-width: 26rem; }
.site-foot h2 { font: 700 0.9375rem/1.2 var(--text); letter-spacing: 0; color: #C9D6DF; margin-bottom: 0.9rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.foot-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(201, 214, 223, 0.25); display: grid; gap: 0.5rem; color: #C9D6DF; font-size: 0.9375rem; }
.foot-base p { max-width: none; margin: 0; }

/* ---------- Ops console ---------- */
.ops { max-width: 80rem; margin: 0 auto; padding: 2rem var(--gutter) 4rem; }
.ops h1 { font-size: 2.25rem; }
.ops h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.ops-grid { display: grid; gap: 1.5rem; }
@media (min-width: 60rem) { .ops-grid { grid-template-columns: 1.4fr 1fr; } }
.panel > h2:first-child { margin-top: 0; }
.panel { background: var(--white); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--mist); padding: 1.25rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--mist); font-size: 1rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; width: 0.8rem; height: 0.8rem; margin-top: 0.35rem; border-radius: 50%; background: var(--amber); }
.checklist li.ok::before { background: var(--green); }
.checklist .fix { display: block; color: var(--ink-2); font-size: 0.9375rem; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9875rem; }
.table th, .table td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--mist); vertical-align: top; }
.table th { color: var(--ink-2); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--harbor-soft); font-size: 0.875rem; font-weight: 700; }
.pill-ok { background: #DDF1E7; color: #145E3C; }
.pill-act { background: #FBEFD3; color: #7A5408; }
.decision { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; }
.decision .input { min-height: 2.75rem; }
.decision .btn { min-height: 2.75rem; }
.stat { font: 800 2rem/1 var(--display); }

/* Progress widths (no inline styles under the CSP) */
.progress-bar .w-0 { width: 0%; }
.progress-bar .w-5 { width: 5%; }
.progress-bar .w-10 { width: 10%; }
.progress-bar .w-15 { width: 15%; }
.progress-bar .w-20 { width: 20%; }
.progress-bar .w-25 { width: 25%; }
.progress-bar .w-30 { width: 30%; }
.progress-bar .w-35 { width: 35%; }
.progress-bar .w-40 { width: 40%; }
.progress-bar .w-45 { width: 45%; }
.progress-bar .w-50 { width: 50%; }
.progress-bar .w-55 { width: 55%; }
.progress-bar .w-60 { width: 60%; }
.progress-bar .w-65 { width: 65%; }
.progress-bar .w-70 { width: 70%; }
.progress-bar .w-75 { width: 75%; }
.progress-bar .w-80 { width: 80%; }
.progress-bar .w-85 { width: 85%; }
.progress-bar .w-90 { width: 90%; }
.progress-bar .w-95 { width: 95%; }
.progress-bar .w-100 { width: 100%; }
.h3 { font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.01em; margin: 2rem 0 1rem; }
.js [data-reveal-target].is-hidden { display: none; }
.plan-closed:empty { display: none; }
/* Keep focused fields clear of the phone bottom sheet */
@media (max-width: 59.99rem) { html.has-sheet { scroll-padding-bottom: 9rem; } }
.site-foot li { overflow-wrap: anywhere; }
@media (max-width: 59.99rem) { .js .plan.is-sheet:not(.is-open) .plan-total .lbl { display: none; } }

/* Case packet preview in the console */
.packet { background: var(--white); border-radius: var(--r-ctrl); box-shadow: inset 0 0 0 1px var(--mist); padding: 1rem; overflow: auto; max-height: 28rem; font: 400 0.8125rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
code { font: 400 0.9em/1 ui-monospace, Menlo, Consolas, monospace; }
[hidden] { display: none !important; }
.ops > .panel { margin-bottom: 1.5rem; }
