:root {
  color-scheme: light;
  --ink: #203638;
  --text: #34494a;
  --muted: #4e6364;
  --brand: #325b5b;
  --deep: #24494b;
  --dark: #193d3e;
  --line: #d5e2dc;
  --paper: #fffefa;
  --white: #fff;
  --wash: #eff5f2;
  --sand: #f8f2e8;
  --radius: 18px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1rem/1.57 var(--sans); }
body[data-topic="hip"] { --wash: #f3f4e9; }
body[data-topic="adhd"] { --wash: #eff4ec; }
body[data-topic="asd"] { --wash: #edf3f5; }
body[data-topic="pn"] { --wash: #f4f0e9; }
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--ink); font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.7vw, 4.7rem); line-height: 1.02; letter-spacing: -.064em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.046em; }
h3 { color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
a { color: var(--deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; }
:focus-visible { outline: 2px solid #875b25; outline-offset: 4px; }
.stack { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .65rem 1rem; background: var(--white); transform: translateY(-145%); }
.skip:focus { transform: translateY(0); }

.site-header { background: var(--paper); }
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; border-bottom: 1px solid var(--line); padding: .4rem 0; }
.wordmark { color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.3; letter-spacing: .085em; text-decoration: none; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: clamp(.65rem, 3vw, 1.8rem); }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .85rem; font-weight: 700; }
.top-nav a:hover { text-decoration: underline; }
.top-nav .language { min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; justify-content: center; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 34%);
  column-gap: clamp(1.5rem, 5vw, 5.1rem);
  align-items: center;
  padding: clamp(2.3rem, 5.5vw, 5rem);
  margin: clamp(1.2rem, 2.9vw, 2.65rem) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 76% 14%, #fff9, transparent 61%);
  pointer-events: none;
}
.hero-copy { min-width: 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .9rem;
  color: var(--deep);
  font-size: .74rem;
  letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase;
}
.kicker::before { width: 17px; height: 1px; background: currentColor; content: ""; flex: none; }
.lead { margin: 1.2rem 0 0; max-width: 62ch; color: var(--text); font-size: clamp(1.04rem, 1.4vw, 1.19rem); line-height: 1.57; }
.hero-links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
.hero-links a { font-size: .87rem; font-weight: 700; }

.purchase { padding: clamp(1.2rem, 2.5vw, 1.9rem); border: 1px solid #ccdcd5; border-radius: 13px; background: var(--white); scroll-margin-top: .7rem; }
.purchase h2 { font-family: var(--sans); line-height: 1.25; letter-spacing: -.012em; font-size: 1.03rem; font-weight: 700; }
.price { margin: .14rem 0 .62rem; font: 400 clamp(2.3rem, 4.2vw, 3.45rem)/1.12 var(--serif); letter-spacing: -.045em; color: var(--ink); }
.purchase-note { border-top: 1px solid var(--line); padding-top: .74rem; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.purchase form { margin: 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 48px; padding: .72rem .98rem; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; line-height: 1.25; cursor: pointer; }
.button:hover { background: var(--dark); border-color: var(--dark); text-decoration: none; }
.button:focus-visible { outline-color: #875b25; }
.button.secondary { color: var(--deep); border-color: #a9beb8; background: var(--white); }
.button.secondary:hover { background: #e5efeb; border-color: #7a9990; }
.purchase .button { width: 100%; }
.payment-note { color: var(--muted); font-size: .77rem; margin-top: .55rem; text-align: center; }
.questionnaire { display: block; text-align: center; margin: .68rem 0 0; font-weight: 700; font-size: .86rem; }
.alias { display: block; width: 0; height: 0; scroll-margin-top: 1.25rem; }

.section { padding: clamp(2.3rem, 5.25vw, 4.25rem) 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }
.section-intro { margin-top: .72rem; max-width: 66ch; color: var(--muted); }
.topic-grid, .steps, .option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.topic-card, .step { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.topic-card p, .step p { margin-top: .4rem; color: var(--text); font-size: .94rem; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); color: var(--deep); font-size: .82rem; font-weight: 700; margin: 0 0 .65rem; }
.step a { display: inline-block; margin-top: .25rem; overflow-wrap: anywhere; }
.reader { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: center; background: var(--deep); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4.2vw, 3.1rem); margin-top: clamp(2.3rem, 5.25vw, 4.25rem); }
.reader h2 { color: #fff; text-wrap: initial; }
.reader p { color: #e5efed; max-width: 65ch; margin-top: .7rem; }
.reader-credit { display: flex; align-items: center; gap: .8rem; }
.reader-credit img { width: 62px; height: 62px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 32%; border: 2px solid #d8e5de; background: #b7c9c3; flex: none; }
.reader-credit strong, .reader-credit span { display: block; }
.reader-credit span { font-size: .85rem; color: #e5efed; }
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: .9rem .15rem; min-height: 45px; font-weight: 700; color: var(--ink); cursor: pointer; }
.faq details p { padding: 0 .4rem 1rem 1.2rem; max-width: 69ch; }
.related { margin-top: 1.15rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.related a { font-weight: 700; font-size: .9rem; }
.bottom-links { padding: 1.2rem 0 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.8rem; border-top: 1px solid var(--line); padding: 1.2rem 0 1.55rem; font-size: .82rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.tracking-pixel { position: absolute; height: 1px; width: 1px; overflow: hidden; }

.overview { grid-template-columns: minmax(0, 1fr); padding-block: clamp(2.2rem, 5vw, 4.4rem); }
.overview .hero-copy { max-width: 780px; }
.overview .hero-links { margin-top: 1.45rem; }
.overview .hero-links a { font-size: .92rem; }
.option-grid { align-items: stretch; }
.option-card { padding: 1.2rem 1.25rem; border: 1px solid var(--line); border-radius: 11px; background: var(--white); display: flex; flex-direction: column; gap: .45rem; }
.option-card p { font-size: .91rem; }
.option-card .entry-links { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .2rem .45rem; }
.entry-links a { font-size: .85rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; border-radius: 6px; min-height: 39px; padding: .32rem .58rem; background: var(--wash); }
.entry-links a:hover { text-decoration: underline; }
.text-block { max-width: 68ch; }
.text-block p { margin-top: .6rem; }
.text-block ul { padding-left: 1.4rem; }
.pro-links { margin-top: 1.2rem; }
.pro-links a { font-weight: 700; }
.option-amount { font-weight: 700; color: var(--deep); }

@media (max-width: 830px) {
  .stack { width: calc(100% - 48px); }
  .hero { gap: 1.6rem; padding: 2rem; grid-template-columns: minmax(0, 1fr) minmax(230px, 36%); }
  .overview { grid-template-columns: minmax(0, 1fr); }
  .topic-grid, .steps, .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

@media (max-width: 640px) {
  .stack { width: calc(100% - 28px); }
  .site-top { min-height: 64px; }
  .wordmark { max-width: 11rem; font-size: .74rem; letter-spacing: .045em; }
  .top-nav { flex: none; flex-wrap: nowrap; gap: 0 .58rem; }
  .top-nav a { font-size: .76rem; white-space: nowrap; }
  .top-nav .language { min-height: 32px; min-width: 32px; }
  .hero { padding: 1.3rem; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; border-radius: 14px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3.3rem); }
  .lead { font-size: 1rem; margin-top: .85rem; }
  .hero-links { margin-top: .85rem; }
  .hero-links a { min-height: 33px; }
  .purchase { padding: 1.1rem; }
  .topic-grid, .steps, .option-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .topic-card, .step, .option-card { padding: .9rem 1rem; }
  .reader { border-radius: 14px; }
  .section { padding-block: 2.25rem; }
}

@media (max-width: 360px) {
  .site-top { gap: .35rem; }
  .top-nav { column-gap: .38rem; }
}
