/* ============================================================
   PeakRoutine — prediabetes.css
   /prediabetes/ only (loaded after pd.css and home.css). Same content
   and behaviour, its own look: painted paper colour cut by big wavy
   edges, a soft serif, flat sections, each with its own colour.
   Everything is scoped to html.pdx, so other pages are untouched.
   ============================================================ */

/* Set on html because pd.css derives its aliases (--blue, --accent...) on :root */
html.pdx {
  --paper: #f7efdf;
  --paper-2: #fffaf0;
  --clay: #df7a45;
  --clay-deep: #a8431a;
  --sky: #7dbbdb;
  --ochre: #f3cb7c;
  --sage-band: #8cc7ad;
  --sun-peak: #f6cf7f;
  --cocoa: #361203;

  --bg: var(--paper);
  --bg-tint: #efe4cc;
  --surface: var(--paper-2);
  --surface-2: #f6ecd8;
  --line: #e6d8bc;
  --line-strong: #cfbc94;

  --ink: #3a1a08;
  --ink-2: #553520;
  --muted: #6c4c34;

  --green: var(--clay-deep);
  --green-ink: #7a2e10;
  --green-deep: var(--cocoa);
  --sage: #f8dfc9;
  --sage-2: #eec6a6;
  --blue: var(--green);
  --blue-ink: var(--green-ink);
  --blue-soft: var(--sage);
  --accent: var(--green);
  --accent-ink: var(--green-ink);
  --accent-soft: var(--sage);
  --good: #2c7a5f;
  --good-soft: #d9ecdf;
  --green-soft: var(--good-soft);
  --past: #a18c72;
  --no: var(--clay-deep);
  --no-soft: var(--sage);

  --grad-primary: linear-gradient(135deg, #5a2308, var(--cocoa));
  --dark: var(--ink);
  --primary: var(--clay-deep);
  --gray-100: var(--surface-2);
  --gray-600: var(--ink-2);
  --gray-700: var(--ink-2);

  --radius: 28px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Urbanist', system-ui, -apple-system, sans-serif;
  --hero-fs: clamp(2.5rem, min(1rem + 4vw, 8.4vh), 4.75rem);
  --section-y: clamp(5.5rem, 11vw, 9.5rem);
}

/* ── Type: Fraunces at its softest for headlines, Urbanist for reading ── */
.pdx .pd { background: var(--paper); color: var(--ink-2); }
.pdx .pd h1, .pdx .pd h2, .pdx .pd.home .hero-pd h1, .pdx .pd .feat-step h3, .pdx .pd .faq-side h2, .pdx .pd .cta2-card h2 {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 100;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pdx .pd h2 { font-size: clamp(2.1rem, calc(var(--hero-fs) * 0.8), 3.5rem); line-height: 1.08; max-width: 19ch; }
.pdx .accent, .pdx .cta-band .accent { color: inherit; }
.pdx .pd .section-head h2 .accent { display: block; }
.pdx .section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pdx .section-head p { color: var(--ink-2); font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; text-wrap: pretty; }
.pdx .pd :focus-visible { outline-color: var(--ink); }

/* ── Painted bands: colour and grain under a wavy mask, spilling past
   their section so the edges sit in the white space between sections ── */
.pdx main { position: relative; isolation: isolate; }
.pw-band {
  position: absolute; left: 0; right: 0; z-index: -1; isolation: isolate; overflow: hidden; pointer-events: none;
  top: calc(var(--section-y) * -0.42); bottom: calc(var(--section-y) * -0.42);
  background: var(--band);
  -webkit-mask: var(--wave) 0 0 / 100% 100% no-repeat; mask: var(--wave) 0 0 / 100% 100% no-repeat;
}
.pw-band::before { content: ''; position: absolute; inset: 0; background: url(/img/prediabetes/grain.svg) 0 0 / 420px 420px; opacity: 0.5; }
.pw-band--hero { --band: var(--clay); --wave: url(/img/prediabetes/wave-hero.svg); top: 0; bottom: -4rem; }
.pw-band--sky { --band: var(--sky); --wave: url(/img/prediabetes/wave-sky.svg); }
.pw-band--ochre { --band: var(--ochre); --wave: url(/img/prediabetes/wave-ochre.svg); }
.pw-band--sage { --band: var(--sage-band); --wave: url(/img/prediabetes/wave-sage.svg); }
.pw-band--clay { --band: var(--clay); --wave: url(/img/prediabetes/wave-clay.svg); bottom: 0; }

.pdx .section, .pdx .section-alt { background: none; padding: var(--section-y) 0; }
.pdx #features { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }

/* Ink follows the band a section sits on */
.pdx #same-meal { --ink: #07293c; --ink-2: #0f3a50; --muted: #1b4a62; --line-strong: #4b8cad; }
.pdx #community { --ink: #3f2a00; --ink-2: #4f3705; --muted: #5a3f08; }
.pdx #trust { --ink: #0b322c; --ink-2: #123f37; --muted: #174a41; }
.pdx .cta-band { --ink: var(--cocoa); --ink-2: #4a1c07; }

/* ── Navbar: paper over the painted page ── */
.pdx .pd .pr-nav.scrolled .pr-nav-inner { background: rgba(255, 250, 240, 0.72); border-color: rgba(58, 26, 8, 0.1); box-shadow: none; }
.pdx .pd .pr-nav.raised .pr-nav-inner { background: rgba(255, 250, 240, 0.94); box-shadow: 0 10px 30px -14px rgba(58, 26, 8, 0.4); }
.pdx .pd .pr-nav-wordmark { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 600; letter-spacing: -0.01em; }
.pdx .pr-nav-mobile { background: rgba(255, 250, 240, 0.98); }

/* ── Buttons: a swipe of paint, and a brush stroke under text links ── */
.pdx .pd .btn-primary {
  position: relative; isolation: isolate; min-height: 60px; padding: 0.9rem 2.1rem; border-radius: 0; background: none; box-shadow: none; color: var(--paper-2);
  font-size: 1.1rem; font-weight: 700;
}
.pdx .pd .btn-primary::before {
  content: ''; position: absolute; inset: 0 -0.35rem; z-index: -1; background: var(--btn, var(--cocoa));
  -webkit-mask: url(/img/prediabetes/brush-fill.svg) 0 0 / 100% 100% no-repeat; mask: url(/img/prediabetes/brush-fill.svg) 0 0 / 100% 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.pdx .pd .btn-primary:hover { transform: none; background: none; }
.pdx .pd .btn-primary:hover::before { transform: scale(1.04, 1.08) rotate(-0.5deg); }
.pdx .pd .btn-ghost {
  position: relative; min-height: 60px; padding: 0.9rem 0.4rem; border: 0; border-radius: 0; background: none; color: var(--ink); font-size: 1.1rem; font-weight: 700;
}
.pdx .pd .btn-ghost::after {
  content: ''; position: absolute; left: 0.2rem; right: -0.8rem; bottom: 0.35rem; height: 0.8rem; background: var(--paper-2);
  -webkit-mask: url(/img/prediabetes/brush-line.svg) 0 0 / 100% 100% no-repeat; mask: url(/img/prediabetes/brush-line.svg) 0 0 / 100% 100% no-repeat;
  transition: background 0.2s ease;
}
.pdx .pd .btn-ghost:hover { transform: none; }
.pdx .pd .btn-ghost:hover::after { background: var(--cocoa); }
.pdx .pd .proof-link { color: var(--ink); font-weight: 700; text-underline-offset: 0.2em; }
.pdx .pd .callout { color: var(--ink-2); }
.pdx .pd .callout a { color: var(--ink); font-weight: 700; }

/* ── Hero: the copy holds the first screen on one left edge ── */
.pdx .hero-pd { --ink: var(--cocoa); --ink-2: #4a1c07; padding: 0 0 clamp(2rem, 5vw, 4rem); overflow: visible; isolation: auto; }
.pdx .hero-center { gap: 0; justify-items: center; text-align: left; }
.pdx .hero-copy {
  width: min(100%, 13.4em); max-width: none; min-height: 100vh; min-height: 100svh; font-size: var(--hero-fs);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 5.5rem 0 3.5rem;
}
.pdx .hero-copy > * { font-size: 1rem; }
.pdx .pd.home .hero-pd h1 { max-width: none; margin: 0; font-size: var(--hero-fs); line-height: 1.08; text-wrap: wrap; }
.pdx .pd.home .hero-pd h1 .accent { display: block; }
.pdx .hero-copy .eyebrow { margin: 0 0 0.7rem; color: var(--cocoa); font-size: 1.05rem; font-weight: 700; }
.pdx .pd.home .hero-pd .lede { max-width: 36rem; margin: clamp(1rem, 2.5vh, 1.6rem) 0 0; color: var(--ink-2); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); font-weight: 600; line-height: 1.38; text-wrap: pretty; }
.pdx .pd .hero-pd .hero-note { justify-content: flex-start; margin: 0.85rem 0 0; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.12rem); font-weight: 600; color: var(--ink-2); }
.pdx .hero-note i { background: currentColor; }
.pdx .hero-pd .btn-row { order: 5; justify-content: flex-start; align-items: center; gap: 0.6rem 1.75rem; margin-top: clamp(1.5rem, 3.5vh, 2.5rem); }

.pk { display: block; width: clamp(112px, min(13vw, 19vh), 176px); height: auto; margin: 0 0 0.9rem -0.4rem; overflow: visible; }
.pk-lid { transform-box: fill-box; transform-origin: center; animation: pk-blink 6.5s infinite; }
.hero-copy .pk { animation: pk-rise 1s var(--ease-spring) both; transform-origin: 50% 100%; }
@keyframes pk-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(0.08); } }
@keyframes pk-rise { from { opacity: 0; transform: translateY(26px) scale(0.86, 0.72); } }

/* ── Interactive panels stay on paper; everything else sits flat on the page ── */
.pdx .card, .pdx .scrub-card, .pdx .web-panel { background: var(--paper-2); border: 0; box-shadow: 0 24px 44px -32px rgba(54, 18, 3, 0.5); }
.pdx .card:hover { box-shadow: 0 24px 44px -32px rgba(54, 18, 3, 0.5); }
.pdx .web-panel { border-top: 0; --ink: #3a1a08; }

/* Connect: a notebook with an index tab for each source. The active tab
   joins a band across the top; the left page holds the number on a hill
   of colour, the right page the reading. Sheets peek out underneath. */
.pdx .pj { display: block; max-width: 66rem; margin: 0 auto; }
.pdx .pj-tabs { position: relative; z-index: 2; display: flex; gap: 0.3rem; width: 100%; aspect-ratio: auto; margin: 0; padding: 0 1.6rem; }
.pdx .pj .node {
  position: relative; flex: 1; justify-content: center; gap: 0.45rem; padding: 0.75rem 0.5rem 1rem; transform: none; border: 0; border-radius: 16px 16px 0 0;
  background: color-mix(in srgb, var(--c) 22%, var(--paper-2)); box-shadow: none; color: var(--ink); font-size: 1rem; font-weight: 700; translate: 0 8px;
  transition: translate 0.3s var(--ease-out), background 0.3s ease, color 0.3s ease;
}
.pdx .pj .node:hover { transform: none; box-shadow: none; translate: 0 3px; background: color-mix(in srgb, var(--c) 34%, var(--paper-2)); }
.pdx .pj .node.on { transform: none; box-shadow: none; background: var(--c); color: #fff; translate: 0 0; }
.pdx .pj .n-ico { width: 22px; height: 22px; background: none; color: var(--c); transition: color 0.3s ease; }
.pdx .pj .n-ico svg { width: 19px; height: 19px; }
.pdx .pj .node.on .n-ico { background: none; color: #fff; }
.pj-book { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pj-book::before, .pj-book::after { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: 24px; transition: background 0.4s ease; }
.pj-book::before { rotate: 0.7deg; translate: 0 9px; background: color-mix(in srgb, var(--active) 16%, var(--paper-2)); }
.pj-book::after { z-index: -2; rotate: -0.6deg; translate: 0 16px; background: color-mix(in srgb, var(--active) 30%, var(--paper-2)); box-shadow: 0 30px 44px -34px rgba(54, 18, 3, 0.6); }
.pj-page, .pdx .pj-read { box-shadow: inset 0 6px 0 var(--active); transition: background 0.4s ease, box-shadow 0.4s ease; }
.pj-page { position: relative; display: flex; flex-direction: column; min-height: 30rem; padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.5rem, 3.5vw, 2.6rem) 0; border-radius: 24px 0 0 24px; background: color-mix(in srgb, var(--active) 13%, var(--paper-2)); overflow: hidden; }
.pj-k { color: var(--ink); font-size: 1.08rem; font-weight: 700; }
.pdx .pj .wp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0.5rem 0 0; }
.pdx .pj .wp-m { display: block; flex: 0 0 100%; margin: 0; }
.pdx .pj .wp-m [data-wp-n] { display: block; color: var(--ink); font-size: clamp(4.5rem, 9.5vw, 7.5rem); font-feature-settings: 'lnum'; line-height: 0.95; letter-spacing: -0.035em; }
.pdx .pj .wp-m small { display: block; margin-top: 0.55rem; color: var(--ink-2); font-size: 1.1rem; }
.pdx .pj .delta { background: var(--active); color: #fff; font-size: 0.95rem; transition: background 0.4s ease; }
.pj-graph { position: relative; flex: 1; min-height: 10rem; margin: 1.5rem calc(clamp(1.5rem, 3.5vw, 2.6rem) * -1) 0; }
.pj-graph svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pj-src { display: none; }
.pj-area { fill: color-mix(in srgb, var(--active) 26%, transparent); transition: fill 0.4s ease; }
.pj-line { fill: none; stroke: var(--active); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s ease; }
.pj-dot { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 4px solid var(--paper-2); border-radius: 50%; background: var(--active); transition: background 0.4s ease; }
.pdx .pj-read { display: flex; flex-direction: column; padding: clamp(1.6rem, 3.5vw, 2.6rem); border-radius: 0 24px 24px 0; background: var(--paper-2); }
.pdx .pj-read::before, .pdx .pj-read::after { display: none; }
.pdx .pj-read { box-shadow: inset 0 6px 0 var(--active), inset 26px 0 22px -24px rgba(54, 18, 3, 0.16); }
.pdx .pj-read:hover { box-shadow: inset 0 6px 0 var(--active), inset 26px 0 22px -24px rgba(54, 18, 3, 0.16); }
.pdx .pj .wp-k { margin-bottom: 1.6rem; color: var(--ink); font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 600; line-height: 1.1; }
.pdx .pj .web-panel [data-wp-t] { max-width: none; color: var(--ink-2); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.pdx .pj .bars { gap: 1rem; margin-bottom: 1.5rem; }
.pdx .pj .bar-l { font-size: 1rem; }
.pdx .pj .bar-v { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 1.3rem; font-weight: 600; font-feature-settings: 'lnum'; }
.pdx .pj .bar-t { height: 14px; background: color-mix(in srgb, var(--active) 10%, var(--surface-2)); }
.pdx .pj .bar-f { background: color-mix(in srgb, var(--active) 34%, var(--paper-2)); }
.pdx .pj .bar.lead .bar-f { background: var(--active); }
.pdx .pj .bar-scale { margin-top: -0.5rem; }
.pdx .pj .wp-foot { margin-top: auto; padding-top: 1.25rem; }
.pdx .wp-m [data-wp-n], .pdx .scrub-read .r-today, .pdx .scrub-read .r-past { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 600; letter-spacing: -0.02em; }

/* Same meal: the table loses its box, the chart keeps its paper */
.pdx #same-meal .card { --ink: #3a1a08; --ink-2: #553520; --muted: #6c4c34; --line: #e6d8bc; }
.pdx #same-meal .lede { color: var(--ink-2); }
.pdx #same-meal .eyebrow { color: var(--ink); }
.pdx .diff-table { border: 0; border-radius: 0; background: none; }
.pdx .dt-row { padding: 0.8rem 0; border-top-color: rgba(7, 41, 60, 0.26); }
.pdx .dt-head { background: none; }
.pdx .dt-row:not(.dt-head):hover { background: none; }
.pdx .c-today { color: var(--ink); }
.pdx .dt-row [role="rowheader"] { color: var(--ink-2); font-weight: 600; }

/* Features: the glow behind the pinned phone becomes a painted blob */
.pdx .feat-glow {
  width: 520px; height: 600px; border-radius: 47% 53% 44% 56% / 58% 46% 54% 42%;
  background: color-mix(in srgb, var(--fc) 26%, var(--paper));
}
.pdx .pd .feat-step h3 { font-size: clamp(2.1rem, 3.4vw, 3rem); letter-spacing: -0.012em; }
.pdx .pd .feat-tag { color: var(--ink); font-weight: 700; }
.pdx .pd .feat-step > p:not(.feat-tag) { color: var(--ink-2); }
.pdx .feat-num i { color: var(--muted); }
.pdx .feat-chip { background: rgba(255, 250, 240, 0.97); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.pdx .feat-rail button i { background: var(--paper); }

/* Mid-page CTA: a line of type and a swipe of paint, no box */
.pdx .cta-inline { justify-content: center; gap: 1rem 3rem; margin: 0 0 clamp(1rem, 3vw, 2.5rem); padding: 0; border: 0; border-radius: 0; background: none; }
.pdx .pd .cta-inline p { color: var(--ink); font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.15; }
.pdx .pd .cta-inline p span { margin-top: 0.4rem; color: var(--ink-2); font-family: var(--font-body); font-variation-settings: normal; font-size: 1.06rem; font-weight: 500; }

/* Community: numbers straight on the ochre, one quote carries the section */
.pdx #community .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.pdx .stats { max-width: none; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); border: 0; border-radius: 0; background: none; overflow: visible; }
.pdx .stat-big { padding: 0; background: none; }
.pdx .stat-big b { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
.pdx .stat-big span { color: var(--ink-2); font-size: 1rem; font-weight: 600; }
.pdx .quotes .quote-card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.pdx .quotes .quote-card:hover { box-shadow: none; transform: none; }
.pdx .qmark { height: 3rem; font-family: var(--font-display); font-size: 7rem; font-weight: 700; line-height: 0.85; color: var(--clay-deep); opacity: 1; }
.pdx .quotes blockquote { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 400; color: var(--ink); line-height: 1.35; letter-spacing: 0; }
.pdx .quotes figcaption { color: var(--ink-2); font-size: 0.95rem; }
@media (min-width: 761px) {
  .pdx .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
  .pdx .quotes .quote-card:first-child { grid-column: 1 / -1; max-width: 52rem; margin: 0 auto; text-align: left; }
  .pdx .quotes .quote-card:first-child blockquote { font-size: clamp(1.6rem, 2.9vw, 2.35rem); line-height: 1.24; }
  .pdx .quotes .quote-card:not(:first-child) blockquote { font-size: 1.3rem; }
  .pdx .quotes .quote-card:not(:first-child) .qmark { font-size: 4.5rem; height: 2rem; }
}
@media (max-width: 760px) {
  .pdx .quotes .quote-card { padding: 0; }
  .pdx .quotes blockquote { font-size: 1.2rem; }
}

/* A1c cycle: soft painted stones on a brush line */
.pdx .cycle-track { background: var(--line-strong); height: 3px; }
.pdx .cycle-track span { background: var(--clay-deep); }
.pdx .cycle-point .dot { border: 0; border-radius: 54% 46% 52% 48% / 46% 56% 44% 54%; background: var(--ochre); box-shadow: none; font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-weight: 600; font-size: 1.05rem; }
.pdx .cycle-point:first-child .dot, .pdx .cycle-point:last-child .dot { background: var(--clay); color: var(--cocoa); box-shadow: none; }
.pdx .cycle-point:first-child .dot small, .pdx .cycle-point:last-child .dot small { color: var(--cocoa); }
.pdx .cycle-point .dot small { color: var(--ink-2); font-family: var(--font-body); font-variation-settings: normal; }
.pdx .pd .cycle-point h3 { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 1.35rem; font-weight: 600; letter-spacing: 0; }
.pdx .cycle-point p { color: var(--ink-2); font-size: 1.02rem; }

/* Trust: two lists on the sage, no boxes */
.pdx .trust-grid { gap: clamp(2rem, 6vw, 5rem); max-width: 60rem; margin: 0 auto; }
.pdx .trust-col { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.pdx .pd .trust-col h3 { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 1.75rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.pdx .trust-list li { color: var(--ink); font-weight: 600; }
.pdx .ic-no { background: rgba(255, 250, 240, 0.55); color: var(--ink); }
.pdx .ic-yes { background: var(--ink); color: var(--sage-band); }

/* Comparison: rules only, our column painted */
.pdx .compare-wrap { max-width: 60rem; margin: 0 auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.pdx .compare th, .pdx .compare td { border-top-color: var(--line-strong); }
.pdx .compare thead th { color: var(--ink); font-weight: 700; }
.pdx .compare thead th.us { color: var(--cocoa); font-family: var(--font-display); font-variation-settings: 'SOFT' 100; font-size: 1.15rem; }
.pdx .compare td.us, .pdx .compare thead th.us { background: color-mix(in srgb, var(--clay) 26%, var(--paper)); color: var(--cocoa); }
.pdx .compare thead th.us { border-radius: 18px 18px 0 0; }
.pdx .compare tbody tr:last-child td.us { border-radius: 0 0 18px 18px; }

/* FAQ: rows on rules */
.pdx .faq details { margin: 0; padding: 0; background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; }
.pdx .faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.pdx .faq details[open] { border-color: var(--line-strong); box-shadow: none; }
.pdx .faq summary { padding: 1.3rem 0; font-size: 1.14rem; }
.pdx .faq summary::after { border-color: var(--ink); }
.pdx .pd .faq-side p { color: var(--ink-2); }

/* Closing CTA: full-bleed paint, the peak back again, the QR on paper */
.pdx .cta-band { padding: calc(var(--section-y) * 1.1) 0 calc(var(--section-y) * 0.8); }
.pdx .cta2-card { overflow: visible; padding: 0; border-radius: 0; background: none; color: var(--ink); align-items: end; max-width: 60rem; margin: 0 auto; }
.pdx .pd .cta2-card h2 { color: var(--cocoa); font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
.pdx .pd .cta2-card h2 .accent { display: block; }
.pdx .pd .cta2 .cta2-lede { max-width: 30rem; margin: 0 auto 1.5rem 0; color: var(--ink-2); font-size: clamp(1.12rem, 1rem + 0.4vw, 1.35rem); font-weight: 600; }
.pdx .pd .cta-band p { color: var(--ink-2); }
.pdx .qr-tile { background: var(--paper-2); box-shadow: 0 24px 40px -28px rgba(54, 18, 3, 0.7); }
.pdx .cta2 .pk { margin-bottom: 0.6rem; }

/* Footer picks up straight from the paint */
.pdx .pd .footer { background: var(--paper); border-top: 0; }
.pdx .pd .footer-link, .pdx .pd .footer-desc, .pdx .pd .footer-disclaimer, .pdx .pd .footer-bottom a { color: var(--ink-2); }
.pdx .pd .footer-social, .pdx .pd .footer-platform-badge { background: var(--paper-2); }
.pdx .pd .footer-wordmark, .pdx .pd .footer-tagline { font-family: var(--font-display); font-variation-settings: 'SOFT' 100; }
.pdx .m-cta { background: var(--cocoa); }
.pdx .m-cta a { background: var(--paper-2); color: var(--cocoa); }

/* ── Phones ── */
@media (max-width: 900px) {
  .pdx .feat-step { background: var(--paper-2); border: 0; }
  .pdx .feat-mshot { background: color-mix(in srgb, var(--c) 18%, var(--paper)); }
  .pdx .feat-mshot::after { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--c) 18%, var(--paper)) 88%); }
}
@media (max-width: 860px) {
  .pj-book { grid-template-columns: minmax(0, 1fr); }
  .pj-page { min-height: 0; border-radius: 24px 24px 0 0; }
  .pj-graph { flex: none; height: 9rem; min-height: 0; }
  .pdx .pj-read, .pdx .pj-read:hover { border-radius: 0 0 24px 24px; box-shadow: none; }
}
@media (max-width: 640px) {
  .pdx .pj-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; padding: 0; margin-bottom: 0.75rem; }
  .pdx .pj .node, .pdx .pj .node:hover, .pdx .pj .node.on { translate: none; padding: 0.55rem 0.4rem; border-radius: 12px; font-size: 0.92rem; }
}
@media (max-width: 760px) {
  html.pdx { --section-y: 5rem; }
  .pdx .hero-copy { width: 100%; padding: 5.5rem 0 2.5rem; }
  .pdx .pd.home .hero-pd h1 { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .pdx .hero-pd .btn-row { flex-direction: row; }
  .pdx .pd .hero-pd .hero-note { flex-direction: column; align-items: flex-start; gap: 0.1rem; font-size: 0.98rem; }
  .pdx .hero-note i { display: none; }
  .pdx .stats { gap: 1.4rem 1rem; }
  .pdx .cta-inline { align-items: flex-start; }
  .pdx .cta-inline .btn-row .btn { width: auto; }
  .pdx .compare-wrap { margin: 0 -1rem; padding: 0 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pk-lid, .hero-copy .pk { animation: none; }
}
