/* Nursing Ready — components.
 * Ports of the app's UI primitives (src/components/ui/*) to plain CSS.
 * The rules that matter most, and why:
 *   - buttons sit on a darker underside edge and physically depress;
 *   - selection is carried by FILL at a constant border width, never by
 *     border weight, so rows never shift by a pixel;
 *   - elevation is a 1px warm ring plus a soft warm-brown drop.
 */

/* ============================ BUTTON =============================== */
/* 3D press: the face sits on a darker underside edge (EDGE = 4px) and
   translates down 3px on press, springing back on release. */

.btn {
  display: inline-block;
  border: 0;
  padding: 0 0 4px;
  background: var(--brand-edge);
  border-radius: var(--r-xl);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-ui);
  -webkit-appearance: none;
  appearance: none;
}

.btn__face {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-xl);
  background: var(--brand);
  color: #fffdf9;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 60ms linear, background var(--d-fast) var(--e-out);
}

.btn:hover .btn__face {
  background: var(--brand-strong);
}
.btn:active .btn__face {
  transform: translateY(3px);
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn--xl .btn__face {
  height: 56px;
  padding: 0 28px;
  font-size: 18px;
}
.btn--md {
  border-radius: var(--r-lg);
}
.btn--md .btn__face {
  height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: var(--r-lg);
}
.btn--sm {
  border-radius: var(--r-md);
  padding-bottom: 3px;
}
.btn--sm .btn__face {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: var(--r-md);
}
.btn--sm:active .btn__face {
  transform: translateY(2px);
}

.btn--secondary {
  background: var(--hairline-strong);
}
.btn--secondary .btn__face {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn--secondary:hover .btn__face {
  background: var(--raised);
}

.btn--soft {
  background: var(--brand-tint-strong);
}
.btn--soft .btn__face {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.btn--soft:hover .btn__face {
  background: var(--brand-tint);
}

.btn--coral {
  background: var(--danger-edge);
}
.btn--coral .btn__face {
  background: var(--accent);
  color: #fffdf9;
}

/* Ghost stays flat — it's an inline affordance, not a physical control. */
.btn--ghost {
  background: transparent;
  padding-bottom: 0;
}
.btn--ghost .btn__face {
  background: transparent;
  color: var(--brand-strong);
  border: 0;
}
.btn--ghost:hover .btn__face {
  background: rgb(var(--rgb-brand) / 0.07);
}
.btn--ghost:active .btn__face {
  transform: translateY(1px);
}

.btn--full,
.btn--full .btn__face {
  width: 100%;
}

.btn[aria-disabled='true'],
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ============================= CARD ================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-card);
  padding: 20px;
}
.card--roomy {
  padding: 28px;
}
.card--tight {
  padding: 14px;
}
.card--flat {
  box-shadow: none;
}
.card--elevated {
  box-shadow: var(--sh-elev);
}
.card--floating {
  box-shadow: var(--sh-float);
}
.card--soft {
  background: var(--sunken);
}
.card--brand {
  background: var(--brand-soft);
  border-color: var(--brand-tint);
}
.card--gold {
  background: var(--gold-soft);
  border-color: rgb(var(--rgb-warning) / 0.25);
}
.card--coral {
  background: var(--accent-soft);
  border-color: rgb(var(--rgb-accent) / 0.22);
}
.card--pine {
  background: var(--grad-hero);
  border-color: transparent;
  color: #fffdf9;
}
.card--pine h2,
.card--pine h3,
.card--pine h4 {
  color: #fffdf9;
}

@media (prefers-reduced-motion: no-preference) {
  a.card:hover,
  .card--hover:hover {
    transform: translateY(-1px);
    box-shadow: var(--sh-elev);
    transition: transform var(--d-fast) ease, box-shadow var(--d-fast) ease;
  }
}

a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ============================= PILL ================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-strong);
  white-space: nowrap;
}
.pill--coral {
  background: var(--accent-soft);
  color: var(--danger-edge);
}
.pill--gold {
  background: var(--gold-soft);
  color: var(--warning);
}
.pill--outline {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.pill--lg {
  padding: 7px 14px;
  font-size: 13px;
}

/* ============================ INPUT ================================ */
/* Border width is CONSTANT across rest / focus / error — the colour
   carries the state. A field that thickens on focus shifts every sibling
   by a pixel, which is the fastest way for a form to read as amateur. */

.field {
  display: block;
}
.field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color var(--d-fast) var(--e-out);
}
.input::placeholder {
  color: var(--ink-ghost);
}
.input:focus {
  outline: none;
  border-color: var(--brand);
}
.input[aria-invalid='true'] {
  border-color: var(--danger);
}
.field__error {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--danger);
}
.field__help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ========================== PROGRESS =============================== */

.progress {
  height: 8px;
  width: 100%;
  border-radius: var(--r-pill);
  background: var(--hairline);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--brand);
  transition: width var(--d-deliberate) var(--e-out);
}
.progress--thin {
  height: 6px;
}

/* ============================= NAV ================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--rgb-canvas) / 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.site-nav__links {
  display: none;
  align-items: center;
  gap: 26px;
}
.site-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current='page'] {
  color: var(--brand-strong);
}
.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.site-nav__menu {
  display: none;
  padding: 8px 0 18px;
  border-top: 1px solid var(--hairline);
}
.site-nav__menu.open {
  display: block;
}
.site-nav__menu a {
  display: block;
  padding: 11px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 960px) {
  .site-nav__links {
    display: flex;
  }
  .site-nav__burger {
    display: none;
  }
  .site-nav__menu {
    display: none !important;
  }
}

/* ============================ FOOTER =============================== */

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
  background: var(--sunken);
  padding-block: 56px 32px;
}
.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
.site-footer h4 {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
  font-weight: 600;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li + li {
  margin-top: 9px;
}
.site-footer a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}
.site-footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-faint);
}

@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* ============================= HERO ================================ */

.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
  }
}
.hero__lead {
  margin: 18px 0 0;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 33em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  align-items: center;
}
.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Proof strip — verifiable numbers, mono tabular. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.proof__cell {
  background: var(--surface);
  padding: 18px 16px;
  text-align: center;
}
.proof__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.proof__label {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
@media (min-width: 760px) {
  .proof {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ============================ CHOICE =============================== */
/* Every state keeps a single 1px border — selection and reveal are
   carried by fill, never by border weight, so rows never shift. */

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
  transition: background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out),
    box-shadow var(--d-fast) var(--e-out), transform var(--d-instant) var(--e-out);
}
@media (prefers-reduced-motion: no-preference) {
  .choice:hover:not([disabled]) {
    box-shadow: var(--sh-glow);
  }
  .choice:active:not([disabled]) {
    transform: scale(0.985);
  }
}
.choice[aria-checked='true'] {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.choice--correct {
  background: rgb(var(--rgb-success) / 0.1);
  border-color: rgb(var(--rgb-success) / 0.45);
}
.choice--wrong {
  background: rgb(var(--rgb-danger) / 0.08);
  border-color: rgb(var(--rgb-danger) / 0.4);
}
.choice[disabled] {
  cursor: default;
}

.choice__mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  border: 2px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  background: transparent;
  transition: background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-pop);
}
.choice[aria-checked='true'] .choice__mark {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.choice.choice--correct .choice__mark {
  background: var(--success);
  border-color: var(--success);
}
.choice.choice--wrong .choice__mark {
  background: var(--danger);
  border-color: var(--danger);
}
.choice__mark svg {
  width: 16px;
  height: 16px;
}
.choice__mark path {
  stroke: #fffdf9;
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
}
.choice[aria-checked='true'] .choice__mark path,
.choice--correct .choice__mark path,
.choice--wrong .choice__mark path {
  animation: check-draw var(--d-slow) var(--e-out) forwards;
}
@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.choice__letter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 2px;
}

.matrix__cell[aria-checked='true'] .choice__mark path,
.matrix__cell--correct .choice__mark path,
.matrix__cell--wrong .choice__mark path {
  animation: check-draw var(--d-slow) var(--e-out) forwards;
}

/* Rationale reveal */
.rationale {
  margin-top: 14px;
  padding: 16px 18px;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  animation: fade-up var(--d-normal) var(--e-out);
}
.rationale strong {
  color: var(--ink);
}
.rationale__verdict {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
}
/* The TL;DR rides on the same line as the verdict, in body ink — the
   verdict colour is a flag, not a highlighter for the whole sentence. */
.rationale__tldr {
  font-weight: 500;
  color: var(--ink);
}

/* ======================= READINESS RING ============================ */

.ring {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.ring svg {
  transform: rotate(-90deg);
  overflow: visible;
}
.ring__track {
  fill: none;
  stroke: rgb(var(--rgb-ink) / 0.08);
}
.ring__arc {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 900ms var(--e-out);
}
.ring__center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}
.ring__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.ring__label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ========================== TODAY PATH ============================= */

.path {
  position: relative;
  margin: 0 auto;
  max-width: 420px;
}
.path__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.path__node {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
}
.node-ring {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 4px solid var(--hairline-strong);
  color: var(--ink-ghost);
}
.node-ring--done {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--warning);
}
.node-ring--current {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}
.node-ring--upcoming {
  background: var(--sunken);
}
.node-ring--current::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-pill);
  border: 2px solid rgb(var(--rgb-brand) / 0.35);
  animation: breathe 1100ms var(--e-out) infinite;
}
@keyframes breathe {
  from {
    opacity: 0.35;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}
.path__label {
  position: absolute;
  transform: translate(-50%, 0);
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
  text-align: center;
}

/* ============================== SKU ================================ */

.sku {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0 0 3px;
  background: var(--hairline-strong);
  border: 0;
  border-radius: var(--r-2xl);
  cursor: pointer;
  font-family: var(--font-ui);
}
.sku__face {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 2px solid var(--hairline);
  border-radius: var(--r-2xl);
  transition: transform 60ms linear, background var(--d-fast) var(--e-out),
    border-color var(--d-fast) var(--e-out);
  overflow: hidden;
}
.sku:active .sku__face {
  transform: translateY(2px);
}
.sku[aria-checked='true'] {
  background: var(--brand-edge);
}
.sku[aria-checked='true'] .sku__face {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.sku__price {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.sku__period {
  font-size: 14px;
  color: var(--ink-soft);
}
.sku__flag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fffdf9;
  background: var(--brand);
  border-bottom-left-radius: 12px;
  border-top-right-radius: 18px;
}
.sku__flag--coral {
  background: var(--accent);
}
.sku__flag--gold {
  background: var(--gold);
  color: #26201a;
}

/* ============================= TABLE =============================== */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--sh-card);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.table th,
.table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.table thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  background: var(--sunken);
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.table__own {
  background: rgb(var(--rgb-brand) / 0.05);
}
.footnote {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-faint);
}

/* ============================== FAQ ================================ */

.faq {
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--d-normal) var(--e-out);
}
.faq details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}
.faq details[open] summary {
  color: var(--brand-strong);
}
.faq__body {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 62ch;
}
.faq__body p {
  margin: 0 0 12px;
}
.faq__body p:last-child {
  margin-bottom: 0;
}

/* =========================== LEAD FORM ============================= */

.lead-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.lead-form .input {
  flex: 1 1 240px;
  height: 52px;
}
.lead-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.lead-form__status {
  flex-basis: 100%;
  font-size: 13px;
  margin: 0;
  min-height: 18px;
}
.lead-form__status[data-state='error'] {
  color: var(--danger);
}
.lead-form__status[data-state='ok'] {
  color: var(--success);
  font-weight: 600;
}

.cta-band {
  background: var(--grad-hero);
  color: #fffdf9;
  border-radius: var(--r-3xl);
  padding: clamp(28px, 4vw, 48px);
}
.cta-band h2,
.cta-band h3 {
  color: #fffdf9;
}
.cta-band p {
  color: rgb(255 253 249 / 0.82);
}
.cta-band .input {
  background: rgb(255 255 255 / 0.94);
  border-color: transparent;
  color: #26201a;
}
.cta-band .btn {
  background: #071f1c;
}
.cta-band .btn__face {
  background: var(--accent);
  color: #26201a;
}
.cta-band .btn:hover .btn__face {
  background: #f58a7b;
}

/* ========================== MICRO QUIZ ============================= */

.micro-quiz {
  margin: 32px 0;
  border: 1px solid var(--brand-tint);
  background: var(--brand-soft);
  border-radius: var(--r-2xl);
  padding: 22px;
}
.micro-quiz__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 10px;
}
.micro-quiz__stem {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
}
.micro-quiz .choice {
  font-size: 14px;
  padding: 11px 13px;
}
.micro-quiz__after {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ============================ CALC ================================= */

.calc,
.calc-form {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-card);
  padding: 24px;
}
.calc-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
@media (min-width: 620px) {
  .calc-row {
    grid-template-columns: 1fr 1fr;
  }
}
.calc-form {
  margin-top: 4px;
}
.calc label,
.calc-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.calc input,
.calc select,
.calc-form input,
.calc-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: var(--r-md);
}
.calc input:focus,
.calc select:focus,
.calc-form input:focus,
.calc-form select:focus {
  outline: none;
  border-color: var(--brand);
}
.calc-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
}
.calc-result.muted {
  background: var(--sunken);
  border-color: var(--hairline);
}
.calc-result.warn {
  background: var(--gold-soft);
  border-color: rgb(var(--rgb-warning) / 0.3);
}
.calc-result-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.calc-result-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.calc-result-detail {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.field-help {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ============================ PROSE ================================ */

.prose {
  max-width: var(--w-prose);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
}
/* :where() keeps this at .prose specificity so an explicit margin utility
   on migrated markup can still win (compat.css loads last). */
.prose > :where(* + *) {
  margin-top: 1.1em;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  padding-top: 1em;
  border-top: 1px solid var(--hairline);
}
.prose > h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.prose h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.prose p {
  margin: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin-top: 0.9em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--brand);
}
.prose a {
  font-weight: 500;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand-tint-strong);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}
.prose code {
  font-family: var(--font-code, monospace);
  font-size: 0.88em;
  background: var(--sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}
.prose pre {
  background: #14100d;
  color: #d5eae1;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.prose th,
.prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}
.prose thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--sunken);
}
.prose img {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
}

/* Article furniture */
.article-head {
  padding-block: clamp(28px, 4vw, 52px) 28px;
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--brand-strong);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.018em;
}
.article-head .dek {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40em;
}

.author-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}
.author-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.author-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.author-credentials {
  font-size: 12px;
  color: var(--ink-soft);
}
.author-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* Related cards (the old CSS styled elements the markup never emitted) */
.related-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
@media (min-width: 700px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.related-card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  border-color: var(--brand-tint-strong);
}
.related-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-strong);
  margin-bottom: 8px;
}
.related-card h4 {
  font-size: 15px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--ink);
}
.related-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* Hub grids (guides / calculators / blog index) */
.hub-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-card);
  text-decoration: none;
  color: inherit;
}
.hub-card:hover {
  border-color: var(--brand-tint-strong);
}
.hub-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.hub-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
}
.hub-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hub-arrow {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-strong);
}

/* In-article app CTA */
.app-cta-card {
  margin: 40px 0;
  padding: 26px;
  border-radius: var(--r-2xl);
  background: var(--grad-hero);
  color: #fffdf9;
}
.app-cta-card h3 {
  color: #fffdf9;
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
}
.app-cta-card p {
  margin: 0 0 18px;
  color: rgb(255 253 249 / 0.84);
  font-size: 15px;
  line-height: 1.6;
}

/* Callouts */
.callout {
  padding: 18px 20px;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: var(--sunken);
  font-size: 15px;
  line-height: 1.65;
}
.callout--gold,
.lab-callout {
  background: var(--gold-soft);
  border-color: rgb(var(--rgb-warning) / 0.28);
}
.callout--brand {
  background: var(--brand-soft);
  border-color: var(--brand-tint);
}
.fine-print {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-faint);
}

/* =========================== QUESTION ============================== */

.q__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.q__type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.q__stem {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink);
}
.q__actions {
  margin-top: 16px;
}
.choice__text {
  flex: 1;
}

/* NGN matrix grid */
.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}
.matrix th,
.matrix td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 12px;
  text-align: center;
  vertical-align: middle;
}
.matrix thead th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--sunken);
  font-weight: 600;
  white-space: nowrap;
}
.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}
.matrix__row {
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  min-width: 190px;
}
.matrix__cell {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  border-radius: var(--r-md);
  cursor: pointer;
}
.matrix__cell:hover:not([disabled]) {
  background: var(--brand-soft);
}
.matrix__cell .choice__mark {
  width: 24px;
  height: 24px;
}
.matrix__cell[aria-checked='true'] .choice__mark {
  background: var(--accent);
  border-color: var(--accent);
}
.matrix__cell.matrix__cell--correct .choice__mark {
  background: var(--success);
  border-color: var(--success);
}
.matrix__cell.matrix__cell--wrong .choice__mark {
  background: var(--danger);
  border-color: var(--danger);
}
.matrix__cell[disabled] {
  cursor: default;
}

/* Hero question card */
.hero-q {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-3xl);
  box-shadow: var(--sh-float);
  padding: clamp(20px, 3vw, 28px);
}
.hero-q__head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.hero-q .q__stem {
  font-size: 16px;
}

/* =========================== DIAGNOSTIC ============================ */

.diag {
  max-width: 720px;
  margin-inline: auto;
}
.diag__progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.diag__count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  white-space: nowrap;
}
.diag__progress .progress {
  flex: 1;
}
.diag__stage .q {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-card);
  padding: clamp(20px, 3vw, 28px);
}
.diag__gate {
  border-color: var(--brand-tint);
}
.diag__score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.diag__score-copy {
  flex: 1 1 260px;
}
.bars {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bar__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 6px;
}
.plan-list {
  margin: 16px 0 0;
  padding-left: 1.2em;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.plan-list li + li {
  margin-top: 10px;
}
.plan-list strong {
  color: var(--ink);
}
.plan-list li::marker {
  color: var(--brand);
  font-family: var(--font-mono);
}

/* ========================= PAGE SECTIONS =========================== */

.section-head {
  max-width: 62ch;
  margin: 0 auto clamp(28px, 4vw, 44px);
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
.section-lead {
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

[data-pending] > * {
  opacity: 0;
}

/* Before / after */
.ba-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 860px) {
  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.tick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
/* The "before" column gets a cross, not a tick. */
.tick-list--muted li::before,
.tick-list--muted li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 5px;
  width: 2px;
  height: 13px;
  border: 0;
  background: var(--ink-ghost);
  border-radius: 1px;
}
.tick-list--muted li::before {
  transform: rotate(45deg);
}
.tick-list--muted li::after {
  transform: rotate(-45deg);
}
.tick-list--inverse li {
  color: rgb(255 253 249 / 0.9);
}
.tick-list--inverse li::before {
  border-color: #f0685a;
}

/* How it works */
.how-grid {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.how-step p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.how-step {
  display: flex;
  flex-direction: column;
}
.how-step__art {
  display: grid;
  place-items: center;
  min-height: 330px;
  margin-bottom: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-card);
}
.how-step h3 {
  font-family: var(--font-ui);
}

/* NGN split */
.ngn-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .ngn-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pricing preview */
.price-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 660px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1020px) {
  .price-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.price {
  margin: 10px 0 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.price__per {
  font-size: 14px;
  color: var(--ink-faint);
}
.price-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Quotes */
.quote-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .quote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.quote-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-grid blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.quote-grid blockquote::before {
  content: '“';
  color: var(--brand-tint-strong);
  font-size: 34px;
  line-height: 0;
  vertical-align: -8px;
  margin-right: 2px;
}
.quote-grid figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--ink-soft);
}

/* CTA band layout */
.cta-band__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .cta-band__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ============================= PLANS =============================== */

.plan-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .plan-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan .tick-list {
  flex: 1;
  font-size: 14px;
}
.plan .btn {
  margin-top: 6px;
}
.plan--featured {
  box-shadow: var(--sh-elev);
}

/* Two hero plans (monthly + 3-month) centred, with a quieter "Also
   available" pair underneath. Shared by the pricing page and the homepage
   pricing band. */
.plan-grid--pair,
.price-grid--pair {
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .plan-grid--pair,
  .price-grid--pair {
    grid-template-columns: repeat(2, 1fr);
  }
}
.plan-grid--quiet .card,
.price-grid--quiet .card {
  background: transparent;
  box-shadow: none;
}
.plan-grid--quiet .price__num,
.price-grid--quiet .price__num {
  font-size: 24px;
}
.plans-code {
  margin: 18px auto 0;
  max-width: 60ch;
  font-size: 14px;
  color: var(--ink-soft);
}
.plans-also {
  margin: 36px 0 14px;
}

/* Three plans (monthly, 3-month featured, 6-month) on the pricing page and
   the homepage band. Cram Week is one quiet line underneath (owner decision
   2026-10-02). One column until there is room for three, never a 2 + 1
   orphan. */
.plan-grid--trio,
.price-grid--trio {
  max-width: 560px;
  margin-inline: auto;
}
@media (min-width: 660px) {
  .price-grid--trio {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 720px) {
  .plan-grid--trio {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .plan-grid--trio,
  .price-grid--trio {
    max-width: 1040px;
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Same eyebrow height with or without a pill, so the prices line up. */
.plan-grid--trio .card > .eyebrow:first-child,
.price-grid--trio .card > .eyebrow:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 26px;
}
.plans-cram {
  margin: 8px auto 0;
  max-width: 60ch;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ====================== MINI PRODUCT SHOTS ========================= */
/* The "how it works" art. Deliberately literal: a subject list, a to-do
   list, a calendar. Abstract diagrams made people work to get the point. */

.mini {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-elev);
  padding: 16px 18px 14px;
  text-align: left;
}
.mini__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.mini__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  text-transform: none;
}
.mini__flag {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.mini__flag .pill {
  font-size: 10px;
  padding: 3px 8px;
}

/* 1. Subject bars */
.mini__row {
  display: grid;
  grid-template-columns: 84px 1fr 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.mini__label {
  font-size: 12px;
  color: var(--ink-soft);
}
.mini__track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--sunken);
  overflow: hidden;
}
.mini__track i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
}
.mini__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
}

/* 2. Today's list */
.mini__task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
  background: var(--surface);
}
.mini__task--done {
  color: var(--ink-faint);
  text-decoration: line-through;
  background: var(--sunken);
}
.mini__task--now {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  font-weight: 600;
}
.mini__check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--hairline-strong);
  display: grid;
  place-items: center;
}
.mini__task--done .mini__check {
  background: var(--success);
  border-color: var(--success);
}
.mini__task--now .mini__check {
  border-color: var(--brand);
}
.mini__check svg {
  width: 11px;
  height: 11px;
}
.mini__check path {
  fill: none;
  stroke: #fffdf9;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Fourteen-day strip */
.mini__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.mini__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--sunken);
  color: var(--ink-ghost);
  font-family: var(--font-mono);
  font-size: 11px;
}
.mini__day--hit {
  background: var(--brand);
  color: #fffdf9;
  font-weight: 500;
  box-shadow: 0 0 0 3px rgb(var(--rgb-brand) / 0.14);
}

/* ======================= READINESS SCALE ========================== */
/* Where you are against the bar we set for "ready", on one line. */

.scale {
  /* The marker's value chip sits above the bar, so leave it room. */
  margin: 46px 0 4px;
}
.scale__bar {
  position: relative;
  height: 14px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    90deg,
    rgb(var(--rgb-danger) / 0.35) 0%,
    rgb(var(--rgb-warning) / 0.35) 45%,
    rgb(var(--rgb-success) / 0.35) 100%
  );
}
.scale__zone {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--success);
  opacity: 0.9;
}
.scale__marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: var(--r-pill);
  background: var(--ink);
  border: 3px solid var(--surface);
  transform: translateY(-50%);
  box-shadow: var(--sh-card);
}
.scale__marker span {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}
.scale__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scale__labels strong {
  color: var(--success);
}
.gap-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--sunken);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.gap-note strong {
  color: var(--ink);
}
