/* ============================================================
   TALKING TO PATIENTS — Medical Creator Hub
   Palette taken from the book cover: cream stock, navy display
   type, medical blue, and the coral of the lips.
   ============================================================ */

:root {
  --cream:        #FAF6EE;
  --cream-deep:   #F3ECDE;
  --paper:        #FFFFFF;
  --navy:         #101C3A;
  --navy-soft:    #3A4665;
  --blue:         #1477CE;   /* brand blue: fills, rules, large type */
  --blue-text:    #0F62AE;   /* darker blue for small text — AA on cream, white and pale blue */
  --blue-bright:  #2E92E6;
  --blue-pale:    #E6F0FA;
  --coral:        #D07E6B;   /* brand coral: rules, bullets, decorative only */
  --coral-text:   #A9503B;   /* darker coral for glyphs that carry meaning */
  --coral-pale:   #F6E6E1;
  --line:         rgba(16, 28, 58, 0.13);
  --line-soft:    rgba(16, 28, 58, 0.07);

  --measure: 34rem;
  --wrap: 74rem;
  --wrap-tight: 58rem;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.125rem;
  --step-5: 2.75rem;

  --gap: 1.25rem;
  --pad-block: 4.5rem;
  --radius: 14px;
  --shadow: 0 18px 44px -22px rgba(16, 28, 58, 0.38);
}

@media (min-width: 48em) {
  :root {
    --step-0: 1.125rem;
    --step-1: 1.3125rem;
    --step-2: 1.625rem;
    --step-3: 2.25rem;
    --step-4: 3rem;
    --step-5: 4rem;
    --pad-block: 6.5rem;
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

body {
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- focus + skip ---------- */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 0.5rem; top: -100%;
  background: var(--navy); color: #fff; padding: 0.75rem 1.1rem;
  border-radius: 8px; z-index: 200; font-weight: 500;
}
.skip-link:focus { top: 0.5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.wrap--tight { max-width: var(--wrap-tight); }
.section { padding-block: var(--pad-block); }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--pale  { background: var(--blue-pale); }
.section--deep  { background: var(--cream-deep); }
.section--navy  { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--paper); }

.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { line-height: 1.08; font-weight: 800; letter-spacing: -0.022em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; }
p + p { margin-top: 1em; }
.lede { font-size: var(--step-1); color: var(--navy-soft); line-height: 1.6; }
.small { font-size: 0.9375rem; color: var(--navy-soft); }
strong { font-weight: 600; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

.h-kicker {
  font-size: 0.9375rem; font-weight: 500; color: var(--blue-text);
  margin-bottom: 0.9rem;
}
.section-head { margin-bottom: 2.75rem; }
.section-head p { margin-top: 1rem; }

/* the one decorative flourish: a drawn underline, used sparingly */
.underline-mark { position: relative; display: inline-block; }
.underline-mark svg {
  position: absolute; left: 0; right: 0; bottom: -0.42em;
  width: 100%; height: 0.4em; overflow: visible;
}
.underline-mark path {
  fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 900ms cubic-bezier(.4, 0, .2, 1);
}
.underline-mark.is-drawn path { stroke-dashoffset: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; min-height: 52px; padding: 0.9rem 1.6rem;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
  border: 2px solid transparent; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn--primary { background: var(--blue-text); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--onnavy { background: var(--paper); color: var(--navy); }
.btn--onnavy:hover { background: var(--blue-pale); color: var(--navy); }
.btn--wide { width: 100%; }
.btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; }
@media (min-width: 30em) { .btn--wide { width: auto; } }

.cta-block { margin-top: 2rem; }
.cta-note { margin-top: 0.85rem; font-size: 0.9375rem; color: var(--navy-soft); }
.section--navy .cta-note { color: rgba(250, 246, 238, 0.75); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 246, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.06em;
  color: var(--navy); text-decoration: none; text-transform: uppercase;
}
.header-nav { display: none; gap: 1.75rem; }
.header-nav a { color: var(--navy-soft); text-decoration: none; font-size: 0.9375rem; }
.header-nav a:hover { color: var(--blue-text); }
.header-cta { min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.9375rem; }
@media (min-width: 60em) { .header-nav { display: flex; } }
@media (max-width: 26em) { .header-cta { padding: 0.55rem 0.85rem; font-size: 0.875rem; } }

/* ---------- pre-scene ---------- */
.prescene { padding-block: 3.25rem 2.5rem; background: var(--cream); }
.prescene__inner { max-width: 36rem; margin-inline: auto; }
.prescene__quote {
  font-size: var(--step-3); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1.4rem;
}
.prescene p { color: var(--navy-soft); }
.prescene__stack { margin: 1.1rem 0; }
.prescene__stack span { display: block; color: var(--navy-soft); }
.prescene__better {
  margin: 1.5rem 0; padding-left: 1.1rem; border-left: 3px solid var(--blue);
  font-size: var(--step-1); font-weight: 500; color: var(--navy);
}
.prescene__cue {
  display: inline-block; margin-top: 1.5rem; font-size: 0.9375rem;
  font-weight: 500; color: var(--blue-text); text-decoration: none;
}
.prescene__cue:hover { color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding-block: 2rem var(--pad-block); background: var(--cream); }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .line-two { color: var(--blue); display: block; }
.hero__lede { max-width: 32rem; }
.hero__lede p + p { margin-top: 0.9rem; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (min-width: 62em) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .hero__media { order: 2; }
}

/* ---------- quote wall ---------- */
.quotewall {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-block: 2.5rem;
}
.quotewall li {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.6rem 1.15rem;
  font-size: 1rem; color: var(--navy);
}
.quotewall li:nth-child(3n) { background: var(--blue-pale); border-color: transparent; }
.quotewall li:nth-child(5n) { background: var(--coral-pale); border-color: transparent; }

.split-thought {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
}
.split-thought > div {
  padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line);
}
.split-thought .label { font-size: 0.875rem; color: var(--navy-soft); margin-bottom: 0.5rem; }
.split-thought .said { font-size: var(--step-2); font-weight: 600; line-height: 1.25; }
.split-thought > div:last-child { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.split-thought > div:last-child .label { color: rgba(250, 246, 238, 0.7); }
@media (min-width: 44em) { .split-thought { grid-template-columns: 1fr 1fr; } }

/* ---------- author connection / editorial two-column ---------- */
.editorial { display: grid; gap: 2rem; }
.editorial__body p + p { margin-top: 0.85rem; }
@media (min-width: 56em) {
  .editorial { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; }
}
.stack-lines span { display: block; color: var(--navy-soft); }
.pullline {
  font-size: var(--step-2); font-weight: 600; line-height: 1.3;
  letter-spacing: -0.015em; margin-top: 1.5rem;
}

/* ---------- question behind the question ---------- */
.qbq { display: grid; gap: 1rem; }
@media (min-width: 46em) { .qbq { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.qbq__item {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.qbq__surface { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.qbq__arrow { color: var(--coral-text); font-weight: 600; margin: 0.5rem 0; line-height: 1; }
.qbq__under { color: var(--navy-soft); font-size: var(--step-1); line-height: 1.35; }
.qbq-caveat {
  margin-top: 2rem; padding: 1.15rem 1.35rem;
  background: var(--blue-pale); border-radius: var(--radius);
  font-size: 1rem;
}
.principle {
  margin-top: 3rem; text-align: center;
  font-size: var(--step-3); font-weight: 800; line-height: 1.12;
  letter-spacing: -0.02em;
}
.principle span { display: block; }
.principle span:last-child { color: var(--blue); }

/* ---------- three things ---------- */
.three { display: grid; gap: 1.75rem; counter-reset: t; }
@media (min-width: 56em) { .three { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.three__item { padding-top: 1.4rem; border-top: 3px solid var(--blue); }
.three__item h3 { margin-bottom: 0.7rem; }
.three__item p { color: var(--navy-soft); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.tag-row span {
  font-size: 0.875rem; padding: 0.3rem 0.7rem;
  background: var(--blue-pale); border-radius: 999px; color: var(--navy);
}

/* ---------- notice list (trust) ---------- */
.notice-list { display: grid; gap: 0.65rem; margin-top: 2rem; }
@media (min-width: 46em) { .notice-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.notice-list li {
  display: flex; gap: 0.7rem; align-items: flex-start;
  padding-bottom: 0.65rem; border-bottom: 1px solid var(--line-soft);
  color: var(--navy-soft);
}
.notice-list li::before {
  content: ''; flex: 0 0 auto; width: 8px; height: 8px; margin-top: 0.6rem;
  border-radius: 50%; background: var(--blue);
}
.safety-note {
  margin-top: 2rem; padding: 1.15rem 1.35rem; border-left: 3px solid var(--coral);
  background: var(--coral-pale); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1rem;
}

/* ---------- scenes (crying / anger) ---------- */
.scene { display: grid; gap: 2rem; }
@media (min-width: 56em) { .scene { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.scene__narrative p + p { margin-top: 0.85rem; }
.scene__narrative .beat { color: var(--navy-soft); }
.dialogue { display: grid; gap: 1rem; }
.dialogue__row {
  padding: 1.1rem 1.3rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
}
.dialogue__row .who { font-size: 0.8125rem; color: var(--navy-soft); margin-bottom: 0.35rem; }
.dialogue__row .said { font-size: var(--step-1); line-height: 1.4; }
.dialogue__row--better { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.dialogue__row--better .who { color: rgba(250, 246, 238, 0.7); }
.scene__key {
  margin-top: 1.75rem; font-size: var(--step-2); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.018em;
}

/* ---------- book reveal ---------- */
.reveal__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 62em) { .reveal__grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.reveal__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- four needs ---------- */
.needs { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 40em) { .needs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68em) { .needs { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.needs__item { padding-top: 1.1rem; border-top: 3px solid var(--navy); }
.needs__name {
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--blue-text); margin-bottom: 0.6rem;
}
.needs__q { font-size: var(--step-1); font-weight: 500; line-height: 1.35; }
.needs-caveat {
  margin-top: 2.25rem; padding: 1.25rem 1.4rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.needs-caveat p + p { margin-top: 0.6rem; }

/* ---------- what's inside ---------- */
.parts { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 46em) { .parts { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.part {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem 1.75rem 1.9rem;
}
.part__num { font-size: 0.875rem; font-weight: 600; color: var(--blue-text); margin-bottom: 0.45rem; }
.part h3 { margin-bottom: 1rem; }
.part ul { display: grid; gap: 0.5rem; }
.part li { display: flex; gap: 0.65rem; color: var(--navy-soft); font-size: 1rem; }
.part li::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 0.62rem; border-radius: 50%; background: var(--coral); }

/* ---------- previews ---------- */
.previews__scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: 1.25rem;
  margin-top: 2rem;
  /* bleed to the screen edge so it reads as a swipeable gallery, while the
     first card still lines up with the body text */
  margin-inline: -1.25rem;
  padding: 0.25rem 1.25rem 1.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.previews__scroller > * { scroll-snap-align: start; }
@media (max-width: 22em) {
  .previews__scroller { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-left: 1rem; }
}
@media (min-width: 48em) {
  .previews__scroller {
    grid-auto-flow: row; grid-template-columns: 1fr 1fr;
    overflow: visible; gap: 1.5rem;
    margin-inline: 0; padding: 0;
  }
}
@media (min-width: 68em) {
  .previews__scroller { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.preview-btn {
  display: block; width: 100%; padding: 0; background: transparent;
  border: 0; cursor: zoom-in; text-align: left; color: inherit;
  transition: transform 200ms cubic-bezier(.2, .7, .3, 1);
}
.preview-btn__frame {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--cream);
  box-shadow: 0 2px 8px -4px rgba(16, 28, 58, 0.18);
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.preview-btn__frame img { width: 100%; display: block; }
.preview-btn__zoom {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  background: rgba(16, 28, 58, 0.9); color: var(--cream);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em;
  opacity: 0; transform: translateY(6px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.preview-btn:hover { transform: translateY(-5px); }
.preview-btn:hover .preview-btn__frame,
.preview-btn:focus-visible .preview-btn__frame {
  box-shadow: 0 20px 40px -20px rgba(16, 28, 58, 0.45);
  border-color: rgba(16, 28, 58, 0.22);
}
.preview-btn:hover .preview-btn__zoom,
.preview-btn:focus-visible .preview-btn__zoom { opacity: 1; transform: none; }

.preview-btn .cap { display: block; padding: 0.75rem 0.15rem 0; }
.cap__page {
  display: block; font-size: 0.8125rem; font-weight: 500;
  color: var(--blue-text); letter-spacing: 0.04em;
}
.cap__label {
  display: block; margin-top: 0.15rem; font-size: 0.9375rem;
  line-height: 1.35; color: var(--navy);
  /* two lines' worth, so a long label never knocks the next grid row out of line */
  min-height: 2.7em;
}
.previews__hint {
  margin-top: 0.5rem; font-size: 0.9375rem; color: var(--navy-soft);
}
@media (hover: none) {
  .preview-btn__zoom { display: none; }
  .cap__page::after {
    content: ' \00b7  tap to enlarge';
    color: var(--navy-soft); font-weight: 400; letter-spacing: 0;
  }
}

/* ---------- lightbox ---------- */
body.is-locked { overflow: hidden; }
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: start center;
  padding: 0.75rem;
  background: rgba(16, 28, 58, 0.9);
  overscroll-behavior: contain;
}
@media (min-width: 48em) { .modal { padding: 1.5rem; place-items: center; } }

.modal__panel {
  position: relative;
  width: 100%; max-width: min(46rem, 100%);
  max-height: 96vh; overflow-y: auto;
  background: var(--paper); border-radius: 12px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  overscroll-behavior: contain;
}
.modal__panel img { width: 100%; display: block; border-radius: 0 0 12px 12px; }

/* The bar stays put while a tall page scrolls beneath it, so the caption,
   the counter and every control remain reachable at any viewport height. */
.modal__bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.7rem 0.8rem;
  background: var(--paper); border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
}
.modal__caption {
  flex: 1 1 12rem; min-width: 0;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.35;
}
.modal__controls { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.modal__counter {
  font-size: 0.875rem; color: var(--navy-soft);
  white-space: nowrap; margin-right: 0.35rem;
}
.modal__nav, .modal__close {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--navy);
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.modal__nav:hover, .modal__close:hover { background: var(--blue-pale); border-color: transparent; }
.modal__nav[hidden] { display: none; }
.modal__close { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.modal__close:hover { background: #0A1229; color: var(--paper); border-color: #0A1229; }
@media (max-width: 26em) {
  .modal__caption { flex: 1 1 100%; }
  .modal__controls { margin-left: 0; }
}

/* ---------- team sport ---------- */
.roles { display: grid; gap: 0; margin-top: 2rem; }
.roles li {
  padding: 0.95rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: var(--step-1); color: var(--navy-soft); line-height: 1.4;
}
.roles li strong { color: var(--navy); font-weight: 600; }
.closing-pair { margin-top: 2.5rem; }
.closing-pair span { display: block; font-size: var(--step-2); font-weight: 700; line-height: 1.2; letter-spacing: -0.018em; }
.closing-pair span:last-child { color: var(--blue); }

/* ---------- audience ---------- */
.audience { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.audience li {
  padding: 0.65rem 1.15rem; border: 1px solid var(--line);
  border-radius: 999px; font-weight: 500;
}

/* ---------- author ---------- */
.author__grid { display: grid; gap: 2.25rem; }
@media (min-width: 56em) { .author__grid { grid-template-columns: 0.75fr 1.25fr; gap: 3.5rem; } }
.author__id { border-top: 3px solid var(--blue); padding-top: 1.2rem; }
.author__name { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.author__role { color: var(--navy-soft); }
.author__media img { margin-top: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- not-promises ---------- */
.nots { display: grid; gap: 0.6rem; margin-top: 2rem; }
@media (min-width: 46em) { .nots { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.nots li {
  display: flex; gap: 0.7rem; padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--navy-soft);
}
.nots li::before { content: '\00d7'; color: var(--coral-text); font-weight: 600; flex: 0 0 auto; }

/* ---------- offer ---------- */
.offer__card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  display: grid; box-shadow: var(--shadow);
}
@media (min-width: 56em) { .offer__card { grid-template-columns: 0.9fr 1.1fr; } }
.offer__media { background: var(--cream-deep); padding: 2rem; display: grid; place-items: center; }
.offer__media img { border-radius: 10px; box-shadow: 0 12px 30px -18px rgba(16,28,58,.5); }
.offer__body { padding: 2rem 1.75rem 2.25rem; }
@media (min-width: 56em) { .offer__body { padding: 2.75rem 2.5rem; } }
.offer__price { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.1rem 0 1.4rem; }
.offer__amount { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.offer__terms { color: var(--navy-soft); font-size: 1rem; }
.offer__includes { display: grid; gap: 0.55rem; margin-bottom: 1.75rem; }
.offer__includes li { display: flex; gap: 0.7rem; color: var(--navy-soft); font-size: 1rem; }
.offer__includes li::before {
  content: ''; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 0.36rem;
  background: var(--blue); border-radius: 4px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 3 8.4l1.2-1.2 2 2 5.6-5.6L13 4.8z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 3 8.4l1.2-1.2 2 2 5.6-5.6L13 4.8z' fill='%23fff'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- reviews ---------- */
.reviews__grid { display: grid; gap: 1.25rem; margin-top: 2.25rem; }
@media (min-width: 46em) { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68em) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.review-card__stars { color: var(--blue-text); letter-spacing: 0.12em; margin-bottom: 0.7rem; }
.review-card__text { margin-bottom: 1.1rem; }
.review-card__who { font-size: 0.9375rem; color: var(--navy-soft); }
.review-card__who strong { color: var(--navy); }
.badge-verified {
  display: inline-block; margin-top: 0.5rem; padding: 0.2rem 0.6rem;
  font-size: 0.8125rem; background: var(--blue-pale); color: var(--navy);
  border-radius: 999px;
}
.badge-example {
  display: inline-block; margin-bottom: 0.8rem; padding: 0.25rem 0.65rem;
  font-size: 0.8125rem; font-weight: 600; background: var(--coral-pale);
  color: #8A3E2A; border-radius: 6px;
}

/* ---------- form ---------- */
.form { display: grid; gap: 1.15rem; max-width: 36rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--navy-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 0.9rem; min-height: 48px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field--error input, .field--error select, .field--error textarea { border-color: #B23B22; }
.field__error { font-size: 0.875rem; color: #A32F18; }
.field--check { display: flex; gap: 0.7rem; align-items: flex-start; }
.field--check input { width: 22px; height: 22px; min-height: 22px; margin-top: 0.2rem; flex: 0 0 auto; }
.rating-input { display: flex; gap: 0.4rem; }
.rating-input input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  pointer-events: none;   /* the label is the click target; the input must not sit over it */
}
.rating-input label {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  background: var(--paper); font-weight: 600;
}
.rating-input input:checked + label { background: var(--blue-text); color: #fff; border-color: var(--blue-text); }
.rating-input input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-status { padding: 1rem 1.15rem; border-radius: 10px; font-size: 1rem; }
.form-status--ok { background: var(--blue-pale); }
.form-status--err { background: var(--coral-pale); }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-size: var(--step-1); font-weight: 500;
  cursor: pointer; list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: 0 0 auto; font-size: 1.5rem; font-weight: 400;
  color: var(--blue-text); line-height: 1;
}
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding-bottom: 1.35rem; color: var(--navy-soft); max-width: var(--measure); }

/* ---------- final CTA ---------- */
.final { text-align: center; }
.final__body { max-width: 34rem; margin-inline: auto; margin-top: 1.75rem; }
.final__body p { color: rgba(250, 246, 238, 0.82); }
.final__body p + p { margin-top: 0.75rem; }
.final__img { width: 118px; margin: 0 auto 2rem; border-radius: 6px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.6); }

/* ---------- footer ---------- */
.site-footer { background: var(--cream-deep); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.footer-grid h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.85rem; }
.footer-links { display: grid; gap: 0.55rem; }
.footer-links a { color: var(--navy-soft); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--blue-text); text-decoration: underline; }
.footer-note { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--navy-soft); }
.footer-note p + p { margin-top: 0.6rem; }

/* ---------- mobile sticky bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 260ms cubic-bezier(.4, 0, .2, 1);
}
.stickybar.is-visible { transform: translateY(0); }
.stickybar__text { line-height: 1.25; min-width: 0; }
.stickybar__title {
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.stickybar__price { font-size: 0.875rem; color: var(--navy-soft); }
.stickybar .btn { min-height: 46px; padding: 0.6rem 1.1rem; font-size: 0.9375rem; flex: 0 0 auto; }
@media (min-width: 62em) { .stickybar { display: none; } }

/* ---------- legal pages ---------- */
.doc { padding-block: 3.5rem 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--step-4); margin-bottom: 0.75rem; }
.doc h2 { font-size: var(--step-2); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.doc p, .doc li { color: var(--navy-soft); }
.doc ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: 0.75rem; }
.doc .updated { font-size: 0.9375rem; color: var(--navy-soft); }

/* ---------- motion ---------- */
/* Content is visible by default. Only once JS confirms it is running
   (html.has-js) do we hide it ready to be revealed on scroll, so a JS
   failure leaves a fully readable page rather than a blank one. */
.reveal-on-scroll { opacity: 1; transform: none; }
.has-js .reveal-on-scroll { opacity: 0; transform: translateY(18px); }
.reveal-on-scroll.is-in { opacity: 1; transform: none; transition: opacity 620ms ease, transform 620ms cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal-on-scroll { opacity: 1; transform: none; }
  .underline-mark path { stroke-dashoffset: 0; }
  .stickybar { transition: none; }
}

@media print {
  .site-header, .stickybar, .btn, .modal { display: none !important; }
  body { background: #fff; }
}


/* ---------- utilities (exist so no inline style attribute is needed,
   which lets the CSP forbid inline styles entirely) ---------- */
.u-mt-xs  { margin-top: 0.4rem; }
.u-mt-sm  { margin-top: 0.75rem; }
.u-mt-md  { margin-top: 1.25rem; }
.u-mt-lg  { margin-top: 2rem; }
.u-mt-xl  { margin-top: 2.5rem; }
.u-plain  { border: 0; padding: 0; margin: 0; }
.u-legend { font-weight: 500; font-size: 0.9375rem; padding: 0; margin-bottom: 0.4rem; }
.footer-note--bare { margin-top: 0; border-top: 0; padding-top: 0; }
.noscript-band {
  background: var(--navy); color: var(--cream);
  padding: 1rem; text-align: center;
}
.noscript-band a { color: #8FC4F0; }


/* ---------- header refinements for narrow screens ---------- */
.brand { white-space: nowrap; }
.header-cta { white-space: nowrap; }
.header-nav a { padding-block: 0.6rem; }
.footer-links a { padding-block: 0.35rem; }
@media (max-width: 34em) {
  .header-cta__price { display: none; }
  .brand { font-size: 0.75rem; letter-spacing: 0.04em; }
}
@media (max-width: 22em) {
  .brand { font-size: 0.6875rem; }
}


/* ---------- very narrow phones (320px) ---------- */
@media (max-width: 22em) {
  .wrap { padding-inline: 1rem; }
  .header-inner { gap: 0.5rem; }
  .header-cta { padding: 0.5rem 0.7rem; font-size: 0.8125rem; }
  .stickybar { gap: 0.6rem; padding-inline: 0.8rem; }
  .stickybar .btn { padding: 0.6rem 0.8rem; font-size: 0.875rem; }
}

/* ---------- tap targets ---------- */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.prescene__cue { padding-block: 0.6rem; }
.footer-links a { padding-block: 0.5rem; }
