/* ===============================================
   Contin-U — Shared components (dark ground)
   Used across index / testosterone-therapy / labs / etc.
   =============================================== */

/* ---------- Page frame + glow ---------- */
body {
  background: var(--bg);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(10, 180, 239, 0.08), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(56, 197, 246, 0.05), transparent 55%);
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ---------- Site nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in oklab, var(--ground-900) 78%, transparent);
  border-bottom: 1px solid var(--hairline-color);
  padding-block: var(--space-4);
}
.site-nav .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}
.site-nav .wordmark { height: 26px; display: block; }
.site-nav .wordmark img { height: 100%; width: auto; display: block; }
@media (min-width: 880px) {
  .site-nav .wordmark { height: 30px; }
}

.nav-links {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  /* Pushes the primary links into the right-hand cluster alongside Log in and
     the CTA. DOM order stays wordmark -> links -> login -> CTA so tab order is
     unchanged; only the visual position moves. */
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: var(--track-tight);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* Log in is a quiet secondary action -- it sits next to the CTA but must not
   compete with it. Portal does not exist yet; /login currently redirects home. */
.nav-login {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: var(--track-tight);
  transition: color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-login:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--ground-950);
  background: var(--brand-500);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--brand-400);
  box-shadow: 0 0 20px rgba(10, 180, 239, 0.35);
}

.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
}
.hamburger svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-login { display: none; }
  .hamburger { display: inline-flex; }
}

/* ---------- Utility: eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-brand);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brand-500);
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }

/* Chevron gradient text */
.accent {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-tight);
  transition: all var(--dur-fast) var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-500);
  color: var(--ground-950);
}
.btn--primary:hover {
  background: var(--brand-400);
  box-shadow: 0 0 24px rgba(10, 180, 239, 0.35);
}
.btn--gradient {
  background: var(--brand-gradient-h);
  color: var(--ground-950);
  font-weight: var(--fw-semibold);
}
.btn--gradient:hover {
  box-shadow: 0 0 32px rgba(56, 197, 246, 0.45);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--brand-500);
  background: rgba(10,180,239, 0.06);
  color: var(--brand-300);
}
.btn--lg { padding: 16px 28px; font-size: var(--text-lg); }
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section frame ---------- */
.section {
  padding-block: var(--section-y);
  position: relative;
}
.section + .section { border-top: 1px solid var(--hairline-color); }
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-12);
  gap: var(--space-6);
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-tight);
  max-width: 24ch;
  text-wrap: balance;
}
.section-heading .caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-16);
  border-top: 1px solid var(--hairline-color);
  background: var(--ground-950);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
/* Five columns need a tighter gap before the brand blurb starts wrapping badly. */
@media (max-width: 1100px) {
  .site-footer .footer-grid { gap: var(--space-7); }
}
@media (max-width: 960px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  /* The brand block needs a full row. In a 1fr column it is 159px wide,
     which clamps the 238px-wide wordmark via the global
     `img { max-width: 100% }` while `height: 100%` holds it at 26px --
     that is a 33% horizontal squash. It also wrapped the blurb into
     seven ragged lines. */
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-brand .wordmark img { max-width: none; }
}
.site-footer .footer-brand .wordmark { height: 26px; margin-bottom: var(--space-4); display: block; }
.site-footer .footer-brand .wordmark img { height: 100%; width: auto; display: block; opacity: 0.9; }
.site-footer .footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--brand-300); }

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--hairline-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
.footer-bottom .legal { display: flex; gap: var(--space-6); }
.footer-bottom .legal a { color: var(--text-subtle); }
.footer-bottom .legal a:hover { color: var(--text-muted); }

/* ---------- The Line (SVG signature — reused) ---------- */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
/* Pulse via transform + opacity only. The previous version animated the SVG
   `r` attribute (SVG layout) and `filter: drop-shadow` (a blur repainted every
   frame) on an infinite loop, so it burned CPU forever even when scrolled far
   off-screen. Measured: 127ms of main-thread work per 3 idle seconds and 181
   layout passes, versus 0 layouts now. The static drop-shadow keeps the glow. */
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.35); }
}
@media (prefers-reduced-motion: no-preference) {
  .line-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: draw-line 2400ms var(--ease-out) 300ms forwards;
  }
  .line-dot {
    transform-box: fill-box;
    transform-origin: center;
    filter: drop-shadow(0 0 9px rgba(10, 180, 239, 0.85));
    animation: pulse-dot 2000ms ease-in-out infinite;
  }
  /* Paused when off-screen by the IntersectionObserver in homepage.js;
     absent that JS the dot simply animates continuously, which is the
     previous behaviour and still compositor-only. */
  .line-dot.is-idle { animation-play-state: paused; }
}

/* ===================================================================
   Shared page utilities (promoted from index.html for all pages)
   =================================================================== */

/* Brand gradient text — used for accent words in H1s and H2s */
.brand-gradient {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ghost chevron behind page heroes */
.hero-bg-chevron {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  pointer-events: none;
  opacity: 0.04;
  z-index: -1;
}
@media (max-width: 900px) { .hero-bg-chevron { display: none; } }

/* Scroll progress hairline at very top of every page */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--brand-gradient-h);
  z-index: 200; /* above the z-index:100 site header */
  transition: transform 0.1s linear;
}
@supports ((animation-timeline: scroll(root)) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-progress {
      animation: scroll-grow linear;
      animation-timeline: scroll(root);
    }
    /* scaleX, not width: width is a layout property and this animation is
       driven by scroll, so animating it forced a full layout pass on every
       scrolled frame (measured: 350 layouts across one scroll-through).
       scaleX runs on the compositor for zero layout cost. */
    @keyframes scroll-grow { to { transform: scaleX(1); } }
  }
}

/* Active nav link */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--brand-500);
  margin: 3px auto 0;
}

/* ---------- Shared FAQ styles ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--hairline-color);
  padding-block: var(--space-6);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
  color: var(--text);
  letter-spacing: var(--track-tight);
  position: relative;
  padding-right: var(--space-8);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--fw-regular);
  color: var(--text-subtle);
  transition: transform var(--dur-med) var(--ease-out);
  line-height: 1;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-base);
  max-width: 68ch;
}

/* ===================================================================
   Mobile nav drawer
   =================================================================== */
.hamburger[aria-expanded="true"] svg { transform: rotate(90deg); transition: transform .2s ease; }

.mobile-drawer {
  position: fixed;
  inset: 0;
  top: 64px; /* below sticky header */
  background: rgba(6, 10, 14, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .2s ease;
  display: none;
}
@media (max-width: 900px) {
  .mobile-drawer { display: block; }
}
.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8) var(--space-6);
  max-width: 480px;
  margin: 0 auto;
}
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--fw-medium);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-color);
  letter-spacing: var(--track-tight);
}
.mobile-drawer a::after {
  content: '→';
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: var(--text-base);
}
.mobile-drawer a:hover { color: var(--brand-400); }
.mobile-drawer .drawer-cta {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--brand-400);
  color: var(--ground-900);
  border-radius: 999px;
  border: none;
  justify-content: center;
  font-weight: var(--fw-semibold);
}
.mobile-drawer .drawer-cta::after {
  color: var(--ground-900);
  /* Nav rows push the arrow right with margin-left:auto; the centred CTA has
     no free space for that to work, so the arrow collides with the label. */
  margin-left: 0;
}
.mobile-drawer .drawer-cta { gap: var(--space-2); }
.mobile-drawer .drawer-cta:hover { color: var(--ground-900); background: var(--brand-300); }

/* ---------- Vial lineup + spec list (branded compounded meds) ---------- */
.vial-lineup {
  margin: 0 0 var(--space-8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a0d10;
  border: 1px solid var(--border);
}
.vial-lineup img {
  display: block;
  width: 100%;
  height: auto;
}
.vial-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.vial-list li {
  display: grid;
  grid-template-columns: 2fr 3fr 1fr;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.vial-list .vial-name {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--text-lg);
  color: var(--text);
}
.vial-list .vial-cat {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
}
.vial-list .vial-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--brand-400);
  font-weight: var(--fw-semibold);
  text-align: right;
}
.vial-list .vial-price sup {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}
@media (max-width: 640px) {
  .vial-list li {
    grid-template-columns: 1fr auto;
    grid-template-areas: "name price" "cat cat";
    row-gap: var(--space-1);
  }
  .vial-list .vial-name { grid-area: name; }
  .vial-list .vial-price { grid-area: price; }
  .vial-list .vial-cat { grid-area: cat; }
}

/* ============================================================
   Trust bar — substantiable claims only. No review counts,
   no patient counts, no partnership claims.
   ============================================================ */
.trust-bar {
  border-block: 1px solid var(--ground-800);
  background: var(--ground-950);
}
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-3);
}
.trust-bar li {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-subtle);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-bar li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-500);
  flex: none;
}
@media (max-width: 640px) {
  .trust-bar li:nth-child(n+3) { display: none; }
}

/* ---------- Clinician policy (replaces unattributed quote) ---------- */
.clinician-policy {
  color: var(--text);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: 54ch;
}
.clinician-policy-note {
  margin-top: var(--space-5);
  color: var(--text-subtle);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 54ch;
  padding-top: var(--space-5);
  border-top: 1px solid var(--ground-800);
}

/* ---------- Important Safety Information ---------- */
.isi {
  margin-top: var(--space-12);
  padding: var(--space-8) var(--space-6) 0;
  border-top: 1px solid var(--ground-800);
  max-width: 1200px;
  margin-inline: auto;
}
.isi h4 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--text-muted);
  margin: 0 0 var(--space-4);
}
.isi p {
  font-size: var(--text-xs);
  line-height: 1.65;
  color: var(--text-subtle);
  max-width: 92ch;
  margin: 0 0 var(--space-3);
}
.isi a { color: var(--brand-400); }

/* Inline links inside the term-commitment disclosure block */
.term-disc li a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 2px; }
.term-disc li a:hover { color: var(--brand-300); }

/* =========================================================
   PAGE COMPONENTS — legal prose, forms, notices, section heads.
   Written on the current dark token set. Replaces the retired
   assets/css component layer that the legacy pages depended on.
   ========================================================= */

/* --- Long-form legal / policy documents --------------------------------- */
.prose {
  max-width: 72ch;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
}
.prose > * + * { margin-top: var(--space-4); }
.prose h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}
.prose h3 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.prose h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-hover); }
.prose ul, .prose ol { margin: var(--space-3) 0 0; padding-left: 1.35em; }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--text-subtle); }
.prose hr { margin: var(--space-8) 0; border: 0; border-top: 1px solid var(--border); }
.prose table { width: 100%; margin-top: var(--space-4); border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { padding: var(--space-3); text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }

/* --- Inline notice / callout banner ------------------------------------- */
.notice-banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.55;
  background: var(--surface-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}
.notice-banner > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

/* --- Forms -------------------------------------------------------------- */
.form-card {
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.form-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-row > label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem var(--space-3);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--surface-sunk);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  appearance: none;
}
.form-row textarea { min-height: 8rem; resize: vertical; line-height: 1.55; }
.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--text-subtle) 50%),
                    linear-gradient(135deg, var(--text-subtle) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: var(--space-8);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-subtle); }
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

/* --- Section headers ---------------------------------------------------- */
.section-header { max-width: 62ch; margin-bottom: var(--space-8); }
.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-header__lede {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-muted);
}
.section--sm { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* --- News index --------------------------------------------------------- */
.news-featured__body {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-muted);
}


/* ---- Plan summary (end of the intake questionnaire) --------------------
   The last screen of /start shows the real price rather than a generic
   thank-you, so the visitor never meets a number they have not already
   seen. The $99 lab line is toggled by renderPlan() in start.html. */
.plan-summary {
  margin: var(--space-8) auto 0;
  max-width: 460px;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.plan-summary__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--track-caps);
  color: var(--accent);
  margin: 0 0 4px;
}
.plan-summary__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 18px;
}
.plan-summary__lines { list-style: none; margin: 0; padding: 0; }
.plan-summary__lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.plan-summary__lines li:last-child { border-bottom: 0; }
/* display:flex above outranks the [hidden] attribute, which would otherwise
   leave the $99 lab row on the receipt for patients who brought their own. */
.plan-summary__lines li[hidden] { display: none !important; }
.plan-summary__label { font-size: var(--text-sm); color: var(--text-muted); }
.plan-summary__val {
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.plan-summary__total { border-top: 1px solid var(--border); margin-top: 4px; }
.plan-summary__total .plan-summary__label { color: var(--text); font-weight: 600; }
.plan-summary__total .plan-summary__val { font-size: var(--text-2xl); color: var(--accent); }
.plan-summary__after .plan-summary__val { font-size: var(--text-lg); }
.plan-summary__per { font-size: var(--text-sm); font-weight: 400; color: var(--text-muted); }
.plan-summary__note[hidden] { display: none !important; }
.plan-summary__note {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-subtle);
  margin: 14px 0 0;
}
.plan-summary__incl {
  list-style: none;
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.plan-summary__incl li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}
.plan-summary__incl li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
.plan-summary__cancel {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-subtle);
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
@media (max-width: 520px) {
  .plan-summary { padding: 20px 18px; }
}
