/* ==========================================================================
   Interior pages.
   These pages carry markup written for the old dark theme. Rather than
   rewrite 95 files of HTML, this restyles that vocabulary on the DESIGN.md
   system: same tokens, same faces, same surfaces, same five patterns.
   Loaded after design.css, which owns tokens, grid, crosshairs, nav and CTAs.

   Rules that apply everywhere here:
     - page background, a square box on the grid, or a near-edge rounded
       card. No fourth kind of surface (§10.2).
     - serif argues, sans explains, mono measures (§4).
     - the accent stays on its seven placements; interior pages get the
       evidence tiers, which is placement 7 (§3).
   ========================================================================== */

/* --- Page shell ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pd-band);
  color: var(--pd-card-ink);
  padding: 12px 18px;
  font-family: var(--pd-mono);
  font-size: 0.8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* The old dark theme painted a smoke canvas behind everything. */
#smoke-canvas, .page-orb { display: none !important; }

.page-wrap,
.section,
.cpd,
.lib-wrap,
/* .page-hero is excluded: it is a near-edge card, and this selector is
   (0,2,2) so it beat the card's own margin-inline on the three pages where
   the hero happens to be a <section> inside <main>. */
main > section:not([class*="pd-"]):not(.endcta):not(.page-hero) {
  position: relative;
  z-index: 1;
  margin-inline: 12.5%;
}

@media (max-width: 900px) {
  .page-wrap,
  .section,
  .cpd,
  .lib-wrap,
  main > section:not([class*="pd-"]):not(.endcta):not(.page-hero) { margin-inline: 24px; }
}

/* --- Page header --------------------------------------------------------- */

/* Layout, colour and the silk all live on the shared subpage-hero rule in
   design.css. This keeps only what is specific to this one shape. */
.page-hero {
  position: relative;
  z-index: 1;
}

/* Breadcrumbs moved to design.css: 13 article and glossary pages carry a
   .crumb but load article.css, not this file, and rendered it unstyled. */

/* A plain text label. Never a pill, never a coloured bubble. */
.hero-kicker, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.hero-kicker::before, .section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--pd-muted);
}

.page-h1, .cpd-title {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
  color: var(--pd-ink);
}
/* No italics in a heading. Quotes and card notes keep them; headings do not. */
.page-h1 em, .cpd-title em { font-style: normal; }

.page-sub, .cpd-lead {
  margin-top: 24px;
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.42;
  color: var(--pd-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

/* The hero card carries its own bottom margin and its own mobile inset. */

/* --- Sections ------------------------------------------------------------ */

.section { padding: 62px 0; }

.section-h, .section h2, .section h1.section-h {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 24ch;
  text-wrap: balance;
}
.section h3 {
  font-family: var(--pd-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 32px 0 10px;
}

.prose, .cpd-body { max-width: 68ch; }
.prose p, .cpd-body p {
  font-size: 1.04rem;
  line-height: 1.68;
  margin: 0 0 1.15em;
}
.prose li, .cpd-body li { font-size: 1.04rem; line-height: 1.68; margin-bottom: .5em; }
.prose li::marker, .cpd-body li::marker { color: var(--pd-muted); }
.prose a, .cpd-body a {
  color: var(--pd-ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 25, 25, 0.32);
  text-underline-offset: 3px;
}

/* --- Buttons -------------------------------------------------------------
   design.css owns .pd-cta. These are the old names pointed at the same
   shapes, so the accent still appears only where it is supposed to. */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 0;
  font-family: var(--pd-body);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--pd-quick), color var(--pd-quick),
              border-color var(--pd-quick), transform var(--pd-quick);
}
.btn:active { transform: scale(0.96); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-icon { padding: 0; width: 44px; height: 44px; justify-content: center; }

/* Primary on a light page is ink, not accent: the accent list is closed and
   these pages are not on it. */
.btn-mint {
  background: var(--pd-band);
  color: var(--pd-card-ink);
  border-color: var(--pd-band);
}

.btn-ghost {
  background: transparent;
  color: var(--pd-ink);
  border-color: rgba(25, 25, 25, 0.28);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 0;
  background: var(--pd-band);
  color: var(--pd-card-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

/* On a dark surface the ghost flips. */
.pd-band .btn-ghost, .cta-card .btn-ghost {
  color: var(--pd-card-ink);
  border-color: rgba(242, 241, 236, 0.28);
}
.cta-card .btn-mint { background: var(--pd-accent); color: var(--pd-band); border-color: var(--pd-accent); }

/* A checkbox or radio wearing a chip. These were sixteen identical inline
   styles across the two creator forms, carrying a rgba(255,255,255,.04) fill
   that is invisible on cream, a 10px radius on a site of square controls, and
   a literal 14px. 44px minimum, because it is a real target. */
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid rgba(25, 25, 25, 0.2);
  border-radius: 0;
  background: none;
  color: var(--pd-ink);
  font-size: 0.96rem;
  cursor: pointer;
  transition: background var(--pd-quick), border-color var(--pd-quick);
}
.check-chip input { width: auto; margin: 0; }
.check-chip:has(input:checked) {
  background: rgba(25, 25, 25, 0.05);
  border-color: rgba(25, 25, 25, 0.45);
}

/* --- Evidence tiers (accent placement 7) --------------------------------- */

.rd-badge, .rd-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 0;
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(25, 25, 25, 0.28);
  color: var(--pd-muted);
  background: none;
  white-space: nowrap;
}
/* On light the accent is a fill with dark text on it, never type: #00e0a0
   on #f4f3ef is 1.55:1. */
.rd-extensive { background: var(--pd-accent); border-color: var(--pd-accent); color: var(--pd-band); }
.rd-moderate  { border-color: rgba(25, 25, 25, 0.45); color: var(--pd-ink); }
.rd-limited   { border-color: rgba(25, 25, 25, 0.28); color: var(--pd-muted); }
.rd-minimal {
  border-color: rgba(25, 25, 25, 0.18);
  color: var(--pd-muted);
  background-image: repeating-linear-gradient(-45deg, rgba(25,25,25,.07) 0 1px, transparent 1px 6px);
}
/* On a dark surface it can be type, at 10.68:1. */
.pd-band .rd-extensive, .cta-card .rd-extensive,
.lib-card.on-dark .rd-extensive {
  background: none;
  border-color: var(--pd-accent);
  color: var(--pd-accent);
}

/* --- Library / catalogue grid -------------------------------------------- */

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 16px;
  margin: 34px 0;
}

.lib-card {
  display: block;
  padding: 22px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  text-decoration: none;
  color: var(--pd-ink);
  transition: background var(--pd-card-hov), border-color var(--pd-card-hov);
}

.lib-card-top {
  /* A column, not a row. The category is a kicker over the name, which is
     what a label does everywhere else in this system. As a right-aligned
     flex item it fought the name for one line and lost at every width: on a
     3-up grid "Growth Hormone Secretagogues" is wider than the card, and
     white-space: nowrap meant it could not give. */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 12px;
}
.lib-card-name {
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.22rem;
  line-height: 1.2;
}
.lib-card-aka {
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  color: var(--pd-muted);
  margin-top: 4px;
}
.lib-card-cat {
  order: -1;                       /* above the name, whatever the source order */
  font-family: var(--pd-mono);
  font-size: 0.68rem;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.lib-card-desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--pd-muted);
  margin: 0 0 14px;
}
.lib-card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lib-card-tag {
  font-family: var(--pd-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border: 1px solid rgba(25, 25, 25, 0.16);
  color: var(--pd-muted);
}
.lib-card-note, .lib-card-stub {
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  color: var(--pd-muted);
  margin-top: 12px;
}
.lib-card-link {
  font-family: var(--pd-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pd-ink);
}

/* --- Compound pages ------------------------------------------------------ */

.cpd { padding-top: 0; }
.cpd-cat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.cpd-aka {
  margin-top: 16px;
  font-family: var(--pd-mono);
  font-size: 0.8rem;
  color: var(--pd-muted);
}
.cpd-goals { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cpd-goal-link {
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  padding: 7px 13px;
  border: 1px solid rgba(25, 25, 25, 0.22);
  color: var(--pd-ink);
  text-decoration: none;
  transition: background var(--pd-quick), border-color var(--pd-quick);
}

/* The quick-facts strip is data, so it is mono on a ruled row. */
.cpd-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.22);
  border-bottom: 1px solid rgba(25, 25, 25, 0.22);
  margin-bottom: 44px;
}
.cpd-quick-label {
  display: block;
  font-family: var(--pd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 7px;
}
.cpd-quick-val {
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.cpd-body h2 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.14;
  margin: 56px 0 18px;
  max-width: 24ch;
}
.cpd-body h3 { font-family: var(--pd-body); font-weight: 600; font-size: 1.05rem; margin: 34px 0 10px; }

.cpd-related { margin-top: 62px; }
.cpd-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.cpd-disclaimer,
.disclaimer {
  margin: 48px 0;
  padding: 22px 24px;
  background: rgba(25, 25, 25, 0.045);
  border-left: 2px solid rgba(25, 25, 25, 0.28);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5d5d57;   /* see .art-note: --pd-muted drops under AA on this tint */
  border-radius: 0;
}

.cpd-recon-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--pd-mono);
  font-size: 0.76rem;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid rgba(25, 25, 25, 0.16);
  padding: 0;
}
.faq-item > summary,
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.14rem;
  line-height: 1.35;
  color: var(--pd-ink);
  transition: color var(--pd-quick);
}
.faq-item > summary::-webkit-details-marker { display: none; }

/* .faq-q is a plain element on the reconstitution pages, not a <summary>.
   Its accordion handler was in the deleted site.js, and the answer below it
   is always visible anyway, so it must not look clickable. */
.faq-q { cursor: default; }
.faq-q .faq-icon { display: none; }

.faq-icon {
  flex: none;
  color: var(--pd-muted);
  transition: transform var(--pd-quick);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-body, .faq-a {
  padding: 0 0 22px;
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.66;
  color: var(--pd-muted);
}
.faq-body p, .faq-a p { margin: 0 0 1em; }
.faq-body a, .faq-a a { color: var(--pd-ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- Glossary ------------------------------------------------------------ */

.gloss-section-h {
  font-family: var(--pd-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-muted);
  padding: 26px 0 12px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.22);
  margin: 40px 0 0;
}
.gloss-entry { padding: 22px 0; border-bottom: 1px solid rgba(25, 25, 25, 0.1); }
.gloss-term {
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.16rem;
  margin-bottom: 7px;
}
.gloss-def { font-size: 0.99rem; line-height: 1.64; color: var(--pd-muted); max-width: 70ch; }

/* --- Goal tiles ---------------------------------------------------------- */

.goal-tile {
  display: block;
  padding: 22px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  text-decoration: none;
  color: var(--pd-ink);
  transition: background var(--pd-card-hov), border-color var(--pd-card-hov);
}
.goal-tile-icon { color: var(--pd-muted); margin-bottom: 14px; }
.goal-tile-label { font-family: var(--pd-display); font-weight: 400; font-size: 1.14rem; }
.goal-tile-sub { font-size: 0.9rem; color: var(--pd-muted); margin-top: 6px; }
.goal-aka { font-family: var(--pd-mono); font-size: 0.74rem; color: var(--pd-muted); }
.goal-faq { margin-top: 56px; }

/* --- Calculators --------------------------------------------------------- */

.calc-field, .recon-field, .f-field { margin-bottom: 18px; }

.calc-field label, .recon-field label, .f-field label,
/* The reconstitution fields wrap their input in the <label> and carry the
   text in a <span>, so the selector above cannot reach them. */
.recon-field > span,
.calc-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.calc-input,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="range"]),
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid rgba(25, 25, 25, 0.24);
  background: #fbfaf7;
  color: var(--pd-ink);
  font-family: var(--pd-mono);
  /* 16px exactly. Below it iOS zooms the page on focus, and 0.95rem is 15.2. */
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--pd-quick);
}
.calc-input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pd-ink);
}
/* Same specificity as the rule above, which is the whole point: at (0,1,0) the
   global :focus-visible lost to input:focus at (0,1,1) and every form control
   on the site focused with no ring at all. */
.calc-input:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--pd-ink);
  box-shadow: 0 0 0 2px var(--pd-focus-gap), 0 0 0 4px var(--pd-focus-ring);
}

/* Bare controls. site.css styled these by element; without a replacement the
   auth flow and the lead forms rendered default UA buttons and inline labels. */
/* .f-submit is in this list because button:not([class]) cannot match it: the
   three lead-capture forms use <button class="f-submit"> and were rendering as
   raw UA chrome. */
button:not([class]),
.f-submit,
.btn-secondary,
button.primary,
.btn.primary,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  min-height: 44px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--pd-body);
  font-weight: 500;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background var(--pd-quick), border-color var(--pd-quick), transform var(--pd-quick);
}
button:not([class]):active,
.f-submit:active,
button.primary:active,
input[type="submit"]:active { transform: scale(0.96); }

button:not([class]),
.f-submit,
button.primary,
.btn.primary,
input[type="submit"] { background: var(--pd-band); color: var(--pd-card-ink); border-color: var(--pd-band); }

.btn-secondary {
  background: transparent;
  color: var(--pd-ink);
  border-color: rgba(25, 25, 25, 0.28);
}

/* Labels stack over their control. Inline is the UA default and it broke every
   label/input pair once the inline <style> blocks were removed. */
label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
/* except where the label wraps its own control, as with a checkbox */
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--pd-body);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pd-ink);
}
label:has(input[type="checkbox"]) input,
label:has(input[type="radio"]) input { width: auto; margin: 0; }

.card h1, .card h2 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 12px;
}
.card h2.ok { color: #1f6f4f; }

.card-note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--pd-muted);
}
.card-note a { color: var(--pd-ink); text-decoration: underline; text-underline-offset: 3px; }

.preset-chip, .fs-chip {
  /* 40px, the dense-desktop floor. These were about 28 tall. */
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  margin: 0 7px 7px 0;
  border: 1px solid rgba(25, 25, 25, 0.22);
  background: none;
  color: var(--pd-ink);
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  cursor: pointer;
  transition: background var(--pd-quick), border-color var(--pd-quick);
}
.preset-chip.active, .fs-chip.active {
  background: var(--pd-band);
  border-color: var(--pd-band);
  color: var(--pd-card-ink);
}

/* The calculator is the one dark surface on a reconstitution page: a square
   panel, inputs on it, results under a hairline. Not two surfaces: the 18
   reconstitution pages each carried a byte-identical inline <style> that
   relit .recon-calc and left .recon-calc-out on the band, so a full-bleed
   914x111 black bar sat inside a light card. That block is gone and the
   layout it was carrying lives here instead. */
.recon-calc, .rc-out {
  background: var(--pd-band);
  color: var(--pd-card-ink);
  border-radius: 0;
  padding: clamp(20px, 3vw, 30px);
}
.recon-calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.recon-calc .recon-field { margin-bottom: 0; }
.recon-calc .recon-field > span { color: rgba(242, 241, 236, 0.5); }

.recon-calc-out {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(242, 241, 236, 0.16);
}

/* The answer. The question this calculator exists to answer is "how many
   units do I draw", so that number is the size of the answer and the other
   two are the working. They were all one size, which made the user read three
   numbers to find one. */
.rc-answer { display: flex; flex-direction: column; gap: 10px; }
.rc-answer-label {
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.5);
}
.rc-answer-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--pd-display);
  font-weight: 200;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  color: var(--pd-card-ink);
}
.rc-answer-unit {
  font-family: var(--pd-mono);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.5);
}

/* A U-100 syringe holds 100 units, so the draw can be shown against the
   barrel instead of left as a number. This is the part that makes the tool
   worth more than the arithmetic. */
.rc-gauge {
  position: relative;
  height: 12px;
  margin-top: 22px;
  border: 1px solid rgba(242, 241, 236, 0.28);
  background: repeating-linear-gradient(
    to right,
    rgba(242, 241, 236, 0.28) 0 1px,
    transparent 1px 10%);
}
.rc-gauge-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--pd-accent);
}
.rc-gauge.is-over .rc-gauge-fill { background: rgba(242, 241, 236, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  /* A transition, not a keyframe: this retargets on every keystroke. */
  .rc-gauge-fill { transition: width 180ms var(--pd-ease-out, cubic-bezier(0.23, 1, 0.32, 1)); }
}
.rc-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-family: var(--pd-mono);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  color: rgba(242, 241, 236, 0.42);
}
.rc-note {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(242, 241, 236, 0.72);
}

/* The working, on a ruled row under the answer. */
.rc-support {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 241, 236, 0.16);
}
.rc-stat { display: flex; flex-direction: column; gap: 8px; }
.rc-stat > span {
  font-family: var(--pd-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, 0.5);
}
.rc-stat > strong {
  font-family: var(--pd-display);
  font-weight: 200;
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  line-height: 1;
  /* Live output: without this the digits change width as you type. */
  font-variant-numeric: tabular-nums;
  color: var(--pd-card-ink);
}

.recon-table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.recon-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--pd-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  border-bottom: 1px solid rgba(25, 25, 25, 0.28);
}
.recon-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
  font-family: var(--pd-mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* Any table on an interior page scrolls in its own box rather than widening
   the document. */
.table-scroll, .recon-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Interior CTA -------------------------------------------------------- */

.cta-section { padding: 76px 0; }

.cta-card {
  position: relative;
  border-radius: var(--pd-r-card);
  overflow: hidden;
  overflow: clip;
  background: var(--pd-band);
  color: var(--pd-card-ink);
  padding: clamp(40px, 5vw, 72px);
  text-align: left;
}
.cta-card h2 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 20ch;
  color: var(--pd-card-ink);
}
.cta-sub { color: rgba(242, 241, 236, 0.66); max-width: 46ch; margin: 0 0 26px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Entrance ------------------------------------------------------------
   The old theme used a JS "reveal" class. Same effect, on a scroll timeline,
   no listener. */

.reveal { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  .reveal {
    animation-name: pd-rise;
    animation-duration: auto;
    animation-timing-function: cubic-bezier(0.2, 0, 0, 1);
    animation-fill-mode: both;
    animation-timeline: view();
    animation-range: entry 10% entry 62%;
  }
}

/* --- Odds and ends ------------------------------------------------------- */

hr { border: 0; height: 1px; background: rgba(25, 25, 25, 0.22); margin: 44px 0; }

blockquote {
  margin: 40px 0;
  padding: 22px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.22);
  border-bottom: 1px solid rgba(25, 25, 25, 0.22);
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.36;
  max-width: 32ch;
}

code, kbd, samp { font-family: var(--pd-mono); font-size: 0.9em; }

table { font-variant-numeric: tabular-nums; }

/* The global :focus-visible ring moved to design.css, which every page loads. */

/* ==========================================================================
   Legal and utility pages.
   privacy, terms, support, delete-account, reset-password. These never used
   site.css: they each carried an inline <style> block and their own token
   names. Same treatment, one vocabulary.
   ========================================================================== */

/* See the shared subpage-hero rule in design.css. */
.legal-hero { position: relative; z-index: 1; }
.legal-hero h1 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  margin: 0;
}

.legal-body {
  position: relative;
  z-index: 1;
  margin-inline: 12.5%;
  padding: 52px 0 0;
  max-width: 72ch;
}
.legal-section { margin-bottom: 42px; }
.legal-section h2 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.16;
  margin: 0 0 14px;
}
.legal-section h3 {
  font-family: var(--pd-body);
  font-weight: 600;
  font-size: 1.02rem;
  margin: 26px 0 8px;
}
.legal-section p,
.legal-section li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--pd-ink);
  margin: 0 0 1em;
}
.legal-section li { margin-bottom: 0.5em; }
.legal-section li::marker { color: var(--pd-muted); }
.legal-section a,
.email-link {
  color: var(--pd-ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 25, 25, 0.32);
  text-underline-offset: 3px;
}

/* Square, on the grid, with a rule down one edge. Not a rounded card. */
.legal-warn, .legal-info {
  margin: 30px 0;
  padding: 20px 22px;
  border-radius: 0;
  background: rgba(25, 25, 25, 0.045);
  border-left: 2px solid rgba(25, 25, 25, 0.28);
}
.legal-warn p, .legal-info p { margin: 0; font-size: 0.96rem; color: #5d5d57; }
.legal-warn { border-left-color: #b4552f; }

.support-card, .card {
  padding: 26px 28px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  margin-bottom: 16px;
}

/* A standalone form card sits in the grid like everything else, and holds a
   form measure rather than running the full width of the viewport. */
body > .card,
main > .card {
  position: relative;
  z-index: 1;
  margin-inline: 12.5%;
  margin-top: 34px;
  max-width: 32rem;
}
body > .card-note,
main > .card-note { margin-inline: 12.5%; }

@media (max-width: 900px) {
  body > .card, main > .card,
  body > .card-note, main > .card-note { margin-inline: 24px; }
}
.support-card h3, .card h3 { margin-top: 0; }
.support-card .sub, .card .sub, .sub { color: var(--pd-muted); font-size: 0.95rem; }

/* Form states on reset-password / delete-account. */
.msg { margin-top: 16px; font-size: 0.95rem; }
.msg.ok  { color: #1f6f4f; }
.msg.err { color: #a4402a; }
.hide { display: none !important; }
.success-icon { color: #1f6f4f; margin-bottom: 14px; }
.btn-secondary {
  background: transparent;
  color: var(--pd-ink);
  border: 1px solid rgba(25, 25, 25, 0.28);
}
button.primary, .btn.primary {
  background: var(--pd-band);
  color: var(--pd-card-ink);
  border-color: var(--pd-band);
}

@media (max-width: 900px) {
  /* .legal-hero is a near-edge card now; design.css owns its inset and its
     padding. Only the body below it takes the 24px page gutter. */
  .legal-body { margin-inline: 24px; }
}

/* A bare brand lockup, for utility pages that deliberately carry no nav
   (reset-password). app-icon.png is the full wordmark, 600x148, NOT a square
   icon: height and auto width, never equal values, or it squashes. */
.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline: 12.5%;
  padding: 40px 0 0;
}
.brand-icon { height: 26px; width: auto; }
.brand-name {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--pd-ink);
  text-decoration: none;
}
.logo-ai { color: inherit; }

@media (max-width: 900px) { .brand { margin-inline: 24px; } }

/* ==========================================================================
   Repairs for markup written against the old theme
   ========================================================================== */

/* No italics in any heading. Cameron rejected them twice. Quotes, step
   numbers and card notes keep italic, which is correct usage. The old markup
   puts <em> inside h1 for emphasis, so the reset has to be on the element,
   not on a class. */
h1 em, h2 em, h3 em, h4 em,
.page-h1 em, .cpd-title em, .section-h em { font-style: normal; }

/* Icon SVGs in the old markup carry a viewBox and no width or height. The
   old stylesheet sized them; without a rule they expand to fill their
   container, which is how a 24px icon became 1034px. Sized in em so it
   follows whatever it sits next to. */
svg:not([width]):not([height]) { width: 1.25em; height: 1.25em; flex: none; }

.goal-tile-icon,
.faq-icon,
.btn svg,
.pd-cta svg,
.lib-card svg {
  display: inline-flex;
  flex: none;
}
.goal-tile-icon { width: 26px; height: 26px; color: var(--pd-muted); }
.goal-tile-icon svg { width: 100%; height: 100%; }
.faq-icon { width: 20px; height: 20px; }
.faq-icon svg { width: 100%; height: 100%; }

/* Legacy token names. Old inline styles still reference these; without a
   definition they resolve to nothing and the text loses its colour. Mapped
   onto the new palette rather than reintroducing the dark-era values. */
:root {
  --mint:      var(--pd-accent);
  --mint-deep: #0f8f66;
  --ink:       var(--pd-ink);
  --ink-soft:  var(--pd-ink);
  --ink-mute:  var(--pd-muted);
  --line:      rgba(25, 25, 25, 0.14);
  --line-2:    rgba(25, 25, 25, 0.24);
  /* still referenced by migrated pages: without these, font-family:var(--mono)
     is invalid at computed-value time and silently falls back to the body
     face, and transition:...var(--ease) drops the transition altogether */
  --mono:      var(--pd-mono);
  --display:   var(--pd-display);
  --body:      var(--pd-body);
  --ease:      cubic-bezier(0.2, 0, 0, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* An accent used as type on a light page fails contrast at 1.55:1. Anywhere
   the old markup asked for it inline, fall back to ink. */
[style*="var(--mint)"]:not(.pd-band *):not(.cta-card *) { color: var(--pd-ink) !important; }

/* ==========================================================================
   Components the old stylesheet owned. Same markup, restyled on the system.
   ========================================================================== */

/* --- Card rows ----------------------------------------------------------- */

.goal-row, .faq-list, .fs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.faq-list { grid-template-columns: 1fr; gap: 0; }
.goal-content { max-width: 68ch; }

/* --- Compound quick facts ------------------------------------------------ */

.cpd-quick-item { min-width: 0; }

.cpd-cta {
  margin: 62px 0;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--pd-r-card);
  overflow: hidden;
  overflow: clip;
  background: var(--pd-band);
  color: var(--pd-card-ink);
}
.cpd-cta h2, .cpd-cta h3 {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--pd-card-ink);
}
.cpd-cta p { color: rgba(242, 241, 236, 0.66); max-width: 48ch; margin-bottom: 22px; }

/* --- Data tables --------------------------------------------------------- */

.goal-table-wrap, .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 30px 0;
}
.goal-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.goal-table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--pd-mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  border-bottom: 1px solid rgba(25, 25, 25, 0.28);
  white-space: nowrap;
}
.goal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
  font-size: 0.94rem;
  vertical-align: top;
}
.goal-table td a {
  font-family: var(--pd-display);
  font-size: 1.02rem;
  color: var(--pd-ink);
  text-decoration: none;
}
.goal-table .goal-aka { display: block; margin-top: 3px; }

/* --- Blog cards ---------------------------------------------------------- */

.blog-card {
  display: block;
  border-radius: var(--pd-r-feature);
  overflow: hidden;
  overflow: clip;
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  text-decoration: none;
  color: var(--pd-ink);
  transition: background var(--pd-card-hov), border-color var(--pd-card-hov);
}
.blog-card-img { aspect-ratio: 3 / 2; overflow: hidden; background: rgba(25, 25, 25, 0.06); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 24px; }
.blog-card-cat, .blog-card-meta {
  font-family: var(--pd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.blog-card-body h3, .blog-card-body h2 {
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 10px 0 8px;
}
.blog-soon {
  font-family: var(--pd-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
  border: 1px solid rgba(25, 25, 25, 0.2);
  padding: 3px 8px;
  display: inline-block;
}

/* --- Bento (features) ---------------------------------------------------- */

.bento-card {
  padding: 26px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  transition: background var(--pd-card-hov), border-color var(--pd-card-hov);
}
.bento-card h3 { margin-top: 0; }
.bento-icon, .icon-mint, .label-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--pd-muted);
  margin-bottom: 14px;
}
.bento-icon svg, .icon-mint svg, .label-icon svg { width: 100%; height: 100%; }
/* bento-mint was a coloured tile in the old theme. One accent, seven
   placements: a feature tile is not one of them. */
.bento-mint { background: rgba(25, 25, 25, 0.045); }

/* --- Testimonials -------------------------------------------------------- */

.testi-card {
  padding: 26px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
}
.testi-stars { color: var(--pd-ink); letter-spacing: 2px; font-size: 0.92rem; margin-bottom: 14px; }
.testi-quote {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: 1.14rem;
  line-height: 1.45;
  margin: 0 0 20px;
}
/* A quote keeps its italic. That is correct usage, unlike a heading. */
.testi-quote em { font-style: italic; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.1);
  display: grid; place-items: center;
  font-family: var(--pd-mono); font-size: 0.8rem; color: var(--pd-muted);
  flex: none;
}
.testi-name { font-weight: 500; font-size: 0.95rem; }
.testi-role { font-family: var(--pd-mono); font-size: 0.72rem; color: var(--pd-muted); }

/* --- Pricing ------------------------------------------------------------- */

.price-card {
  padding: 28px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
}
.pc-label {
  font-family: var(--pd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
}
.pc-price {
  font-family: var(--pd-display);
  font-weight: 200;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 20px;
}
.pc-list { list-style: none; margin: 0 0 24px; padding: 0; }
.pc-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
  font-size: 0.95rem;
}

/* --- Forms --------------------------------------------------------------- */

.form-section, .form-card {
  padding: 28px;
  border-radius: var(--pd-r-feature);
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
}
.form-sub { color: var(--pd-muted); font-size: 0.95rem; margin-bottom: 22px; }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.f-submit { margin-top: 22px; }
.f-error, .f-success { margin-top: 16px; font-size: 0.94rem; }
.f-error { color: #a4402a; }
.f-success, .check { color: #1f6f4f; }
.req { color: #a4402a; }
.opt { color: var(--pd-muted); font-family: var(--pd-mono); font-size: 0.72rem; }

.fs-pitch { max-width: 60ch; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

.lib-chip {
  /* 40px, the dense-desktop floor. These are the catalogue's primary filter
     and they measured 30. */
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  margin: 0 7px 7px 0;
  border: 1px solid rgba(25, 25, 25, 0.22);
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  color: var(--pd-ink);
  background: none;
  cursor: pointer;
  transition: background var(--pd-quick), border-color var(--pd-quick);
}
.lib-chip.active {
  background: var(--pd-band);
  border-color: var(--pd-band);
  color: var(--pd-card-ink);
}

/* --- Inline helpers ------------------------------------------------------ */

/* The hero card carries the nav clearance now. */
.page-top { padding-top: 0; }
.s { color: var(--pd-muted); }
.b { font-weight: 600; }

/* Entrance stagger. Scroll-driven, so these shift the range rather than
   adding a delay: a time delay on a view() timeline does nothing. */
.d1 { animation-range: entry 14% entry 66%; }
.d2 { animation-range: entry 18% entry 70%; }

@media (max-width: 900px) {
  /* The nav rule and the hero card's own margin supply the clearance now. */
  .goal-row, .fs-list { grid-template-columns: 1fr; }
}

/* Book a call. One target, styled once, so the label reads the same wherever
   it appears. The href is a mailto until a real scheduling URL exists: swap
   the two occurrences (about, partners) when there is one. */
.fs-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}
.fs-book-note { font-size: 0.88rem; color: var(--pd-muted); }
.book-call { white-space: nowrap; }

/* ==========================================================================
   Layout containers site.css owned. The markup still emits them, so without
   these the children lose their grid or flex and fall into normal flow.
   ========================================================================== */

/* Catalogue controls (compounds) */
.lib-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 30px 0 18px;
}
.lib-search {
  flex: 1 1 260px;
  min-width: 0;
}
.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.lib-empty {
  padding: 44px 0;
  text-align: center;
  color: var(--pd-muted);
  font-family: var(--pd-mono);
  font-size: 0.85rem;
}

/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
  margin: 30px 0 60px;
}
.blog-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  margin: 34px 0 40px;
  border-radius: var(--pd-r-feature);
  overflow: hidden;
  overflow: clip;
  border: 1px solid rgba(25, 25, 25, 0.14);
  background: rgba(25, 25, 25, 0.022);
  text-decoration: none;
  color: var(--pd-ink);
  transition: background var(--pd-card-hov), border-color var(--pd-card-hov);
}
.blog-featured .blog-card-img { aspect-ratio: auto; height: 100%; min-height: 240px; }
.blog-featured .blog-card-body { align-self: center; padding: 30px 34px; }
.blog-card-img-photo { background: rgba(25, 25, 25, 0.06); }
.blog-card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* the placeholder tiles carry only a word */
.blog-card-img > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--pd-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

/* Features bento */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  margin: 34px 0;
}

/* How it works */
.steps { margin: 34px 0; }
.step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.14);
}
.step-row:last-child { border-bottom: 1px solid rgba(25, 25, 25, 0.14); }
.step-num {
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  color: var(--pd-muted);
  padding-top: 4px;
  min-width: 2.5em;
}
.step-bullets { margin: 12px 0 0; padding-left: 1.1em; }
.step-bullets li { font-size: 0.97rem; line-height: 1.62; margin-bottom: 0.4em; }

/* Reviews */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 16px;
  margin: 34px 0;
}

/* Partners */
.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.14);
  border-bottom: 1px solid rgba(25, 25, 25, 0.14);
  margin: 34px 0;
}
[class*="partner-badge"] {
  font-family: var(--pd-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
  padding: 7px 12px;
  border: 1px solid rgba(25, 25, 25, 0.18);
}

/* Shared bits */
.section-lead {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  color: var(--pd-muted);
  max-width: 48ch;
  margin: 0 0 30px;
}
.goal-row-tracks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.f-note { font-size: 0.88rem; color: var(--pd-muted); margin-top: 14px; }

/* Pricing cards */
.price-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
  margin: 34px 0;
  align-items: start;
}
/* flex-start: the control belongs on the same left edge as the card it
   drives and as everything else on the page. */
.price-toggle-wrap { display: flex; justify-content: flex-start; gap: 8px; margin: 26px 0; }
.price-card-featured { border-color: rgba(25, 25, 25, 0.4); background: rgba(25, 25, 25, 0.05); }
.price-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--pd-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
  border: 1px solid rgba(25, 25, 25, 0.22);
  padding: 3px 8px;
}
.price-card { position: relative; }
.price-dollar, .price-unit, .price-period, .price-equiv {
  font-family: var(--pd-mono);
  font-size: 0.78rem;
  color: var(--pd-muted);
}
.price-features { list-style: none; margin: 0 0 24px; padding: 0; }
.price-features li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(25, 25, 25, 0.1);
  font-size: 0.95rem;
}
.price-cta, .price-cta-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 24px;
  min-height: 44px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.96rem;
  border: 1px solid rgba(25, 25, 25, 0.28);
  color: var(--pd-ink);
  transition: background var(--pd-quick), border-color var(--pd-quick);
}
.price-cta-mint { background: var(--pd-band); border-color: var(--pd-band); color: var(--pd-card-ink); }

@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-card-img { min-height: 200px; }
  .step-row { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Clinic directory (/clinics)
   A named list with published criteria, not a matching form. The empty state
   is designed rather than hidden: a short list with a real bar is the claim.
   ========================================================================== */

.clinic-list { margin: 30px 0 0; }

.clinic {
  padding: 28px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.22);
}
.clinic:last-child { border-bottom: 1px solid rgba(25, 25, 25, 0.22); }

.clinic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.clinic-name {
  font-family: var(--pd-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin: 0;
}
.clinic-role {
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin: 0 0 16px;
}
.clinic-note { max-width: 62ch; margin: 0 0 20px; }

.clinic-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 0 0 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.12);
  border-bottom: 1px solid rgba(25, 25, 25, 0.12);
}
.clinic-meta dt {
  font-family: var(--pd-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 5px;
}
.clinic-meta dd { margin: 0; font-size: 0.96rem; }

/* The list is short on purpose, so the gap gets a designed state rather than
   a spinner or a fake row. */
.clinic-empty {
  margin-top: 34px;
  padding: 26px 0 0;
}
.clinic-empty > .pd-mono { color: var(--pd-muted); margin-bottom: 10px; }
.clinic-empty p { max-width: 60ch; color: var(--pd-muted); }
.clinic-empty-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.clinic-empty-cta .f-note { margin: 0; }

/* --- The criteria -------------------------------------------------------- */

/* Two by two. auto-fit gave three across and stranded the fourth alone on a
   second row. */
.crit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin-top: 34px;
}
@media (max-width: 760px) { .crit-list { grid-template-columns: 1fr; } }
.crit {
  padding: 24px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.14);
}
.crit > .pd-mono { color: var(--pd-muted); }
.crit h3 {
  font-family: var(--pd-display);
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 12px 0 8px;
}
.crit p { font-size: 0.97rem; line-height: 1.62; color: var(--pd-muted); max-width: 46ch; margin: 0; }

/* Two containers site.css owned that had no replacement. Without a rule their
   children fall into normal flow: the store buttons stack instead of sitting
   side by side, and the blend rows lose their columns. */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.comp-name { font-family: var(--pd-display); font-size: 1.02rem; }
.comp-mg {
  font-family: var(--pd-mono);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--pd-muted);
}

/* Reconstitution hub on /calculators. These 18 pages each had exactly one
   inbound link, from their own compound page, which left them at the edge of
   the site with almost no internal authority and a deep crawl path.
   /calculators has 322 inbound links, so it is the right place to hang them. */
.recon-index {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 0 32px;
}
.recon-index li { border-top: 1px solid rgba(25, 25, 25, 0.14); }
.recon-index a {
  display: block;
  padding: 13px 0;
  text-decoration: none;
  color: var(--pd-ink);
  font-size: 0.97rem;
  transition: color var(--pd-quick);
}

/* A glossary term that has earned a full page links out to it. The one-line
   definition stays on the hub as the summary. */
.gloss-more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--pd-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(25, 25, 25, 0.32);
}

/* Contextual glossary links on compound and goal pages. The footer links the
   glossary from all 113 pages and that is worth almost nothing: a link present
   everywhere carries no topical signal. These are placed only where the term
   actually appears in the page's own prose. */
.gloss-related {
  margin: 44px 0;
  padding: 22px 0;
  border-top: 1px solid rgba(25, 25, 25, 0.22);
  border-bottom: 1px solid rgba(25, 25, 25, 0.22);
}
.gloss-related > .pd-mono { display: block; color: var(--pd-muted); margin-bottom: 12px; }
.gloss-related p { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; }
.gloss-related a {
  font-size: 0.97rem;
  color: var(--pd-ink);
  text-decoration: underline;
  text-decoration-color: rgba(25, 25, 25, 0.3);
  text-underline-offset: 3px;
}

/* Sources on the goal pages. These were the longest content on the site and
   cited nothing, which on a YMYL site is the largest exposure there is. */
.goal-sources { border-top: 1px solid rgba(25, 25, 25, 0.22); padding-top: 44px; }
.src-list { margin: 26px 0 0; padding-left: 1.4em; max-width: 76ch; }
.src-list li {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--pd-muted);
  margin-bottom: 0.9em;
}
.src-list a { color: var(--pd-muted); text-decoration: underline; text-underline-offset: 3px; }
.src-note { margin-top: 26px; font-size: 0.92rem; color: var(--pd-muted); max-width: 66ch; }

/* ==========================================================================
   Hover states, gated.
   A device with no pointer fires hover on tap and leaves it stuck there, so
   a card holds its lift and a button holds its ring after the finger is
   gone. Every hover rule in this file lives in here. They sit at the end,
   after the resting states they override.
   ========================================================================== */
@media (hover: hover) {
  .prose a:hover, .cpd-body a:hover { text-decoration-color: var(--pd-ink); }
  .btn-mint:hover { background: #2a2a27; border-color: #2a2a27; }
  .btn-ghost:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.5); }
  .store-btn:hover { background: #2a2a27; }
  .pd-band .btn-ghost:hover, .cta-card .btn-ghost:hover { background: rgba(242, 241, 236, 0.1); }
  .cta-card .btn-mint:hover { background: #4ff0bd; border-color: #4ff0bd; }
  .lib-card:hover {
    background: rgba(25, 25, 25, 0.05);
    border-color: rgba(25, 25, 25, 0.3);
  }
  .cpd-goal-link:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.45); }
  .faq-item > summary:hover { color: var(--pd-muted); }
  .goal-tile:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.3); }
  button:not([class]):hover,
  .f-submit:hover,
  button.primary:hover,
  input[type="submit"]:hover { background: #2a2a27; border-color: #2a2a27; }
  .btn-secondary:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.5); }
  .preset-chip:hover, .fs-chip:hover { background: rgba(25, 25, 25, 0.05); }
  .check-chip:hover { background: rgba(25, 25, 25, 0.04); border-color: rgba(25, 25, 25, 0.34); }
  .legal-section a:hover, .email-link:hover { text-decoration-color: var(--pd-ink); }
  .goal-table td a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .blog-card:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.3); }
  .bento-card:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.3); }
  .lib-chip:hover { background: rgba(25, 25, 25, 0.05); }
  .blog-featured:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.3); }
  .price-cta:hover { background: rgba(25, 25, 25, 0.05); border-color: rgba(25, 25, 25, 0.5); }
  .price-cta-mint:hover { background: #2a2a27; border-color: #2a2a27; }
  .recon-index a:hover { color: var(--pd-muted); text-decoration: underline; text-underline-offset: 3px; }
  .gloss-more:hover { border-bottom-color: var(--pd-ink); }
  .gloss-related a:hover { text-decoration-color: var(--pd-ink); }
  .src-list a:hover { color: var(--pd-ink); }
}

/* ==========================================================================
   Phone pass (2026-09-01).
   The site had exactly one breakpoint, 900px, so a 375px phone got the same
   rules as a 900px tablet. These are the cases where that is not just tighter
   but wrong: type under 11px, a label that runs off its own card, and touch
   targets sized for a mouse.
   ========================================================================== */

/* --- Micro-label floor ---------------------------------------------------
   0.68rem is 10.88px. Mono uppercase carries a small size better than prose
   does, which is why 0.7-0.74rem stays as it is, but under 11px the tracking
   starts closing the counters on a phone screen. 0.75rem = 12px.
   ------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .lib-card-cat,
  .lib-card-tag,
  .cpd-quick-label,
  .blog-card-cat,
  .blog-card-meta,
  .blog-soon { font-size: 0.75rem; }
}

/* The category used to be a right-aligned flex item on the same line as the
   name, which needed a wrap rule and a min-width floor here to survive 375px.
   It is a kicker above the name now, so it can simply wrap and neither hack
   is needed. */

/* --- Touch targets -------------------------------------------------------
   The 24px minimum elsewhere in this file is WCAG 2.2 AA (2.5.8) and correct
   for a mouse. A thumb is not a mouse: these are the controls that measured
   30-34px tall and are the primary way through the page on a phone. Padding,
   not height, so the type does not move.
   ------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .lib-chip,
  .preset-chip,
  .fs-chip { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
}

/* --- Lead forms on a phone ------------------------------------------------
   .form-section and .form-card share one `padding: 28px` rule and they nest,
   so the form inside them lost 56px on each side. On a 375px screen that left
   the fields 259px wide: a third of the viewport spent on two concentric
   frames, on the three pages whose whole job is getting a form filled in
   (partners, creators, affiliate).

   The card keeps the larger inset because it is the one drawing the border.
   Measured after: fields 259px to 307px.

   Scoped to .form-* on purpose. These three pages are the only users of both
   classes, so nothing else on the site moves.
   ------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .form-section { padding: 16px; }
  .form-card { padding: 18px; }
}
