/* Built to the Refero "August Health EHR" style reference (see DESIGN.md), on a white canvas instead of its cream
   (Stephen: "It should use white space"): outlined white cards, an editorial serif at weight 400 only, a humanist
   sans at 400/500, pill shapes, circular photo frames in colour halos, tinted feature cards and warm shadows.
   Palette (Stephen: "Health is green, trust is blue", in the reference's own greens and blues): Forest green carries
   the colour, Primary Indigo is the one action colour, Midnight Violet the deep surfaces. No dark green. No red (it
   reads as bleeding), not even for errors; no pink; no beige. Every text pair meets WCAG AA. */
:root {
  /* Surfaces: white canvas -> outlined white card -> tinted card -> accent */
  --canvas: #ffffff;
  --subtle: #f5f6f8;
  --white: #ffffff;
  --green-tint: #e3f1e4;
  --blue-tint: #dce4fb;
  --grey-tint: #f1f3f6;
  /* Halo colours for the circular frames */
  --halo-green: #328a3b;
  --halo-blue: #a2baff;
  --halo-green-soft: #b5dbb9;
  --halo-blue-soft: #dce4fb;
  /* Ink */
  --ink: #080331;
  --ink-2: #3d3a52;
  --muted: #5d5a6e;
  --line: #e8eaef;
  --border-soft: #858b9c;
  /* Refero greens and blues: Forest, Primary Indigo, Midnight Violet, Lavender Mist, Info Blue */
  --green: #328a3b;
  --green-deep: #276d2e; /* Forest, a shade deeper, for small green text only (AA) */
  --blue: #4865ff;
  --blue-hover: #3a56e8;
  --blue-deep: #1b1463;
  --lavender: #a2baff;
  /* Reference shadows (warm brown only) */
  --shadow-sm: 0 4px 4px 0 rgba(75, 68, 57, .05), 0 32px 16px 0 rgba(75, 68, 57, .08);
  --shadow-md: 0 8px 16px 0 rgba(99, 91, 79, .08), 0 32px 32px 0 rgba(99, 91, 79, .04);
  --shadow-lg: 0 12px 24px 0 rgba(75, 68, 57, .1), 0 48px 48px 0 rgba(75, 68, 57, .1);
  --shadow-xl: 0 48px 48px 0 rgba(75, 68, 57, .1);
  /* Shapes */
  --radius-card: 16px;
  --radius-link: 24px;
  --pill: 1600px;
  /* Type: Source Serif 4 stands in for Reckless Neue, DM Sans for Saans */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
  --text-caption: 12px;
  --text-body-sm: 14px;
  --text-body: 16px;
  --text-subheading: 20px;
  --text-heading-sm: 24px;
  --text-heading: 32px;
  --text-heading-lg: 48px;
  --text-display: 64px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 17L17 7M9 7h8v8' fill='none' stroke='%23080331' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23328a3b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anything scrolled to or focused clear of the sticky header (WCAG 2.4.11) */
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 var(--text-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
strong, b { font-weight: 500; }

/* Headings: serif, weight 400 only, letter spacing 0 */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; color: var(--ink); margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: var(--text-heading-lg); line-height: 1.1; }
h2 { font-size: var(--text-heading-lg); line-height: 1.1; }
h3 { font-size: var(--text-heading-sm); line-height: 1.3; }
p { margin: 0 0 16px; }
@media (max-width: 760px) {
  h1, h2 { font-size: 36px; }
  h3 { font-size: 22px; }
}

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--text-body-sm); line-height: 1.4; color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 16px; border-radius: var(--pill); z-index: 70; }
.skip:focus { left: 16px; }
/* Text for screen readers only (for example which file a "Download" link is for) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Links on Info Blue or green tints use Midnight Violet: Primary Indigo is only 3.6:1 there */
.guide-support a, .guide-note a, .notice a, .honest a, .guide-callout p a { color: var(--blue-deep); }
/* Fields with an error get a heavier border as well as the linked message (no red: see DESIGN.md) */
[aria-invalid="true"] { border-width: 2px; border-color: var(--blue-deep); }

/* Badges: pills, 12px, used for section labels and tags */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--pill); background: var(--white); color: var(--ink); font: 500 var(--text-caption)/1 var(--sans); box-shadow: inset 0 0 0 1px var(--line); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--pill); background: var(--green-tint); color: var(--green-deep); font: 500 var(--text-caption)/1.2 var(--sans); white-space: nowrap; }
.chip-1 { background: var(--blue-tint); color: var(--blue-deep); }
.chip-2 { background: var(--blue-tint); color: var(--blue-deep); }
.chip-3 { background: var(--grey-tint); color: var(--ink-2); }

/* Buttons: full pills. Primary is the one action colour, with the reference's warm double shadow */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 0; border-radius: var(--pill); background: var(--blue); color: var(--white); font: 500 var(--text-body)/1.5 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-lg); transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-hover); color: var(--white); transform: translateY(-1px); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sep { opacity: .6; }
.btn-small { padding: 8px 16px; font-size: var(--text-body-sm); box-shadow: var(--shadow-md); }
.btn-wide { width: 100%; white-space: normal; }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--lavender); }
.btn-outline:hover { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--lavender); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding: 12px 8px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .2s; }
.link-arrow:hover { color: var(--ink); }
.link-arrow:hover::after { transform: translateX(4px); }
/* Circular arrow button (top right of feature cards) */
.circle-arrow { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--white) var(--arrow) center / 18px no-repeat; box-shadow: var(--shadow-md); transition: transform .2s; }
a:hover > .circle-arrow, .circle-arrow:hover { transform: rotate(45deg); }

/* Floating pill navigation bar */
.site-header { position: sticky; top: 16px; z-index: 40; padding: 16px 16px 0; margin-top: -16px; }
.nav-pill { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 24px; background: var(--white); border-radius: var(--pill); box-shadow: var(--shadow-md); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-mark .page { fill: var(--green); }
.brand-mark .tab { fill: var(--blue); }
.brand-mark .mark { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: var(--text-body-sm); font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--blue); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav-pill { padding: 8px 8px 8px 16px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-pill .btn-small { padding: 8px 12px; font-size: 13px; }
}

/* Sections and section headers */
.section { padding: 128px 0; }
.section-tight { padding-top: 0; }
section[id] { scroll-margin-top: 96px; }
@media (max-width: 760px) { .section { padding: 80px 0; } }
.section-header { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-header h2, .section-header h1 { margin: 24px 0 0; }
.section-header p { margin: 40px auto 0; max-width: 640px; font-size: var(--text-subheading); line-height: 1.45; color: var(--ink-2); }
@media (max-width: 760px) { .section-header { margin-bottom: 40px; } .section-header p { margin-top: 24px; font-size: 18px; } }
.section-lead { font-size: var(--text-subheading); line-height: 1.45; color: var(--ink-2); }
.section-foot { margin: 40px auto 0; text-align: center; max-width: 640px; }

/* Cards */
.card { position: relative; background: var(--white); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-xl); }
/* On the white canvas, white surfaces get a fine neutral outline so they still read as cards */
.card, .guide-card, .page-card, .faq details, .toc, .guide-item, .sources, .prose, .shot, .hero-card, .file, .nav-pill,
.clinic-card, .clinic-panel, .clinic-side { border: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); } .card { padding: 24px; } }
/* Tinted feature card: colour fill, small icon, serif subheading, body, circular arrow top right */
.feature { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius-card); background: var(--green-tint); color: var(--ink); text-decoration: none; transition: transform .25s, box-shadow .25s; }
a.feature:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature.tint-1 { background: var(--blue-tint); }
.feature.tint-2 { background: var(--blue-tint); }
.feature.tint-3 { background: var(--green-tint); }
.feature .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--white); }
.feature .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0; padding-right: 48px; }
.feature p { margin: 0; color: var(--ink-2); }
.feature .meta { margin-top: auto; font-size: var(--text-body-sm); color: var(--ink-2); }

/* Hero: centred headline stack flanked by circular photo frames that bleed off the page edges */
.hero { position: relative; overflow: hidden; padding: 112px 0 128px; min-height: 780px; }
.hero-copy { position: relative; z-index: 2; max-width: 640px; text-align: center; }
.hero h1 { font-size: var(--text-display); line-height: 1; margin: 24px 0 24px; }
.hero .lead { font-size: var(--text-subheading); line-height: 1.45; color: var(--ink-2); margin: 0 auto 40px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; }
.hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--subtle); font-size: var(--text-body-sm); color: var(--ink-2); }
.hero-facts li::before { content: ""; width: 14px; height: 14px; background: var(--tick) center / 14px no-repeat; }
.frames { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.frame { position: absolute; margin: 0; border-radius: 50%; padding: clamp(8px, 1vw, 14px); background: var(--halo-green); box-shadow: var(--shadow-sm); }
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.frame.halo-blue { background: var(--halo-blue); }
.frame.halo-blue-soft { background: var(--halo-blue-soft); }
.frame.halo-green-soft { background: var(--halo-green-soft); }
.frame.f1 { width: clamp(180px, 17vw, 270px); left: -3%; top: 64px; }
.frame.f2 { width: clamp(120px, 11vw, 170px); left: 12%; top: 380px; }
.frame.f3 { width: clamp(96px, 8.5vw, 130px); left: 2%; top: 560px; }
.frame.f4 { width: clamp(170px, 16vw, 250px); right: -2%; top: 40px; }
.frame.f5 { width: clamp(120px, 11vw, 170px); right: 13%; top: 490px; }
.frame.f6 { width: clamp(96px, 8.5vw, 130px); right: 1%; top: 590px; }
.hero-card { position: absolute; right: 4%; top: 270px; width: 230px; display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lg); }
.hero-card .label { display: flex; justify-content: space-between; align-items: center; font-size: var(--text-caption); color: var(--muted); }
.hero-card .row { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: var(--text-body-sm); color: var(--ink-2); }
.hero-card .row b { color: var(--ink); }
@media (max-width: 1180px) {
  .hero { min-height: 0; padding: 40px 0 80px; display: flex; flex-direction: column-reverse; }
  .frames { position: relative; inset: auto; display: flex; justify-content: center; align-items: center; margin: 0 0 32px; }
  /* Row of circles above the headline: big in the middle, smaller towards the edges */
  .frames .frame { position: relative; left: auto; right: auto; top: auto; width: 150px; margin: 0 -10px; }
  .frames .frame.f2, .frames .frame.f5 { width: 120px; }
  .frames .frame.f3, .frames .frame.f6 { width: 96px; }
  .frames .frame.f3 { order: 1; } .frames .frame.f2 { order: 2; } .frames .frame.f1 { order: 3; z-index: 2; }
  .frames .frame.f4 { order: 4; z-index: 1; } .frames .frame.f5 { order: 5; } .frames .frame.f6 { order: 6; }
  .hero-card { display: none; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 18px; }
  .frames .frame { width: 116px; padding: 7px; }
  .frames .frame.f2, .frames .frame.f5 { width: 92px; }
  .frames .frame.f3, .frames .frame.f6 { display: none; }
}
@media (max-width: 420px) { .frames .frame.f5 { display: none; } }

/* What's inside: one white product card with the ten sections */
.inside-card { padding: 48px; }
.contents { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.contents li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.contents li:nth-last-child(-n+2) { border-bottom: 0; }
.contents .num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font: 400 var(--text-body)/1 var(--serif); }
.contents li:nth-child(4n+2) .num { background: var(--blue-tint); color: var(--blue-deep); }
.contents li:nth-child(4n+3) .num { background: var(--blue-tint); color: var(--blue-deep); }
.contents li:nth-child(4n+4) .num { background: var(--green-tint); color: var(--green-deep); }
.contents h3 { font-size: 20px; margin: 4px 0 4px; }
.contents p { margin: 0; color: var(--ink-2); font-size: 15px; }
.contents .chip { margin-left: 8px; vertical-align: 3px; }
@media (max-width: 760px) { .inside-card { padding: 24px; } .contents { grid-template-columns: minmax(0, 1fr); } .contents li:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.formats { margin-top: 48px; }

/* Product block: text beside a floating screenshot */
.product-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.product-row h2 { margin-top: 24px; }
.shot { margin: 0; padding: 16px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lg); }
.shot img { border-radius: 8px; width: 100%; }
.feature-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.feature-list li { position: relative; padding-left: 36px; color: var(--ink-2); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-tint) var(--tick) center / 15px no-repeat; }
.feature-list b { color: var(--ink); }
@media (max-width: 960px) { .product-row { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Sample pages: white product cards in a sideways scroller */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 320px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 8px max(16px, calc((100% - 1200px) / 2)) 72px; scroll-padding-inline: max(16px, calc((100% - 1200px) / 2)); }
.page-card { margin: 0; scroll-snap-align: start; padding: 16px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-md); }
.page-card img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.page-card figcaption { padding: 16px 4px 4px; font-size: var(--text-body-sm); line-height: 1.4; color: var(--ink-2); }
.page-card figcaption strong { display: block; margin-bottom: 4px; font: 400 20px/1.3 var(--serif); color: var(--ink); }
.gallery-nav { display: flex; justify-content: center; gap: 12px; margin-top: -24px; }
.g-btn { width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: var(--shadow-md); }
.g-btn:hover { background: var(--ink); color: var(--white); }
.g-btn[disabled] { opacity: .4; cursor: default; background: var(--white); color: var(--ink); }

/* Gradient accent panel, used once (the honest statement) */
.accent-panel { position: relative; overflow: hidden; padding: 96px 64px; border-radius: var(--radius-card); color: var(--white); text-align: center; background: linear-gradient(121deg, var(--green) 0%, var(--blue) 20%, var(--blue-deep) 100%); }
.accent-panel .badge { background: rgba(8, 3, 49, .3); color: var(--white); box-shadow: none; }
.accent-panel .badge::before { background: var(--halo-blue); }
.accent-panel h2 { color: var(--white); max-width: 860px; margin: 24px auto 40px; }
.accent-panel .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; text-align: left; }
.accent-panel p { margin: 0; color: var(--white); }
.accent-panel .checked { margin-top: 40px; text-align: center; font-size: var(--text-body-sm); color: var(--white); }
@media (max-width: 760px) { .accent-panel { padding: 56px 24px; } .accent-panel .cols { grid-template-columns: minmax(0, 1fr); } }

/* Who it's for: pills */
.pills { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pills li { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; color: var(--ink); }
.pills li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pills li:nth-child(4n+2)::before { background: var(--halo-blue); }
.pills li:nth-child(4n+3)::before { background: var(--blue); }
.pills li:nth-child(4n+4)::before { background: var(--halo-green-soft); }

.promises { margin-top: 64px; }

/* Promise cards */
.promise .icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--green-tint); }
.promise .icon svg { width: 24px; height: 24px; fill: none; stroke: var(--green-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise p { margin: 0; color: var(--ink-2); }

/* Guide cards: white feature cards with the circular arrow */
.guide-cards { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 32px; border-radius: var(--radius-card); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-xl); transition: transform .25s; }
.guide-card:hover { color: var(--ink); transform: translateY(-2px); }
.guide-card .chip { align-self: flex-start; }
.guide-card-title { margin: 0; padding-right: 40px; font-size: var(--text-heading-sm); line-height: 1.3; }
@media (max-width: 760px) { .guide-card-title { font-size: 22px; } }
.guide-card p { margin: 0; color: var(--ink-2); }
.guide-meta { margin-top: auto; font-size: var(--text-body-sm); color: var(--muted); }
@media (max-width: 960px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .guide-cards { grid-template-columns: minmax(0, 1fr); } }

/* Buy: one white product card */
.buy-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 32px; }
.bundle { position: relative; min-height: 460px; border-radius: var(--radius-card); background: var(--green-tint); overflow: hidden; }
.bundle figure { position: absolute; margin: 0; }
.b-cover { width: 46%; left: 8%; top: 9%; transform: rotate(-4deg); }
.b-cover img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-lg); }
.b-tablet { width: 46%; right: 7%; top: 13%; padding: 8px; border-radius: 18px; background: var(--ink); transform: rotate(3deg); box-shadow: var(--shadow-lg); }
.b-tablet img { width: 100%; border-radius: 11px; }
.b-sheet { width: 62%; left: 19%; bottom: 7%; padding: 8px; border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lg); }
.b-sheet img { width: 100%; border-radius: 6px; }
.buy-info { padding: 16px 16px 16px 0; }
.buy-info h2 { font-size: var(--text-heading); margin: 24px 0 8px; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 0 0 24px; font: 400 var(--text-display)/1 var(--serif); }
.price span { font: 400 var(--text-body)/1 var(--sans); color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint) var(--tick) center / 14px no-repeat; }
.buy-form { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 24px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.buy-form .small { margin: 16px 0 0; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-deep); font-size: 15px; }
.notice::before { content: "i"; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font: 400 13px/1 var(--serif); color: var(--white); background: var(--blue-deep); }
/* New download link form (expired-link page and /download/resend) */
.resend-form { max-width: 520px; margin: 32px auto 0; text-align: left; }
.resend-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--ink); }
.resend-row { display: flex; gap: 12px; }
.resend-row input { flex: 1; min-width: 0; padding: 12px 20px; border: 1px solid var(--border-soft); border-radius: var(--pill); background: var(--white); color: var(--ink); font: 400 var(--text-body)/1.5 var(--sans); }
.resend-row input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 520px) { .resend-row { flex-direction: column; } }
/* Contact form (/support) */
.contact-form { display: grid; gap: 8px; margin-top: 24px; }
.contact-form label { font-weight: 500; color: var(--ink); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 20px; border: 1px solid var(--border-soft); border-radius: 24px; background: var(--white); color: var(--ink); font: 400 var(--text-body)/1.5 var(--sans); }
.contact-form input { border-radius: var(--pill); margin-bottom: 16px; }
.contact-form textarea { resize: vertical; min-height: 160px; }
.contact-form .small { margin: 0 0 24px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-form .btn { justify-self: start; }
/* Honeypot: hidden from people and screen readers, filled in only by bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Analytics consent banner: fixed at the bottom. Accept and Reject look the same, so neither is the easy option.
   While it shows, scroll padding keeps focused items clear of it (WCAG 2.4.11). */
.consent-banner { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-lg); }
.consent-banner[hidden] { display: none; }
.consent-text { flex: 1 1 360px; }
.consent-banner h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.consent-banner p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.consent-actions { display: flex; gap: 12px; }
.consent-actions .btn { min-width: 104px; }
html.has-consent-banner { scroll-padding-bottom: 220px; }
html.has-consent-banner body { padding-bottom: 200px; }
/* A button that looks like the links around it (footer "Cookie settings") */
.link-button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
@media (max-width: 960px) { .buy-card { grid-template-columns: minmax(0, 1fr); } .bundle { min-height: 0; aspect-ratio: 1 / .85; } .buy-info { padding: 0; } }
@media (max-width: 680px) { .buy-card { padding: 16px; gap: 24px; } .buy-info { padding: 8px; } }

/* FAQ: white cards */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 24px 72px 24px 32px; font: 400 20px/1.3 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; width: 32px; height: 32px; margin-top: -16px; display: grid; place-items: center; border-radius: 50%; background: var(--subtle); font: 400 20px/1 var(--sans); color: var(--ink); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 32px 24px; color: var(--ink-2); }
@media (max-width: 680px) { .faq summary { padding: 20px 64px 20px 20px; font-size: 18px; } .faq details p { padding: 0 20px 20px; } }

/* Thank-you, downloads, support and legal pages */
.prose { background: var(--white); border-radius: var(--radius-card); padding: 64px; box-shadow: var(--shadow-xl); }
.prose h1 { margin-bottom: 16px; }
.prose h2 { font-size: var(--text-heading-sm); margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
@media (max-width: 680px) { .prose { padding: 32px 20px; } }
.honest { max-width: 760px; margin-inline: auto; padding: 32px; border-radius: var(--radius-card); background: var(--green-tint); text-align: left; }
.honest p { color: var(--ink-2); }
.small-honest { margin-top: 32px; padding: 24px; }
.small-honest p { font-size: 15px; margin: 0; }
.file-list { list-style: none; padding: 0; margin: 32px 0; display: grid; gap: 12px; text-align: left; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); }
.file-text { font-size: 15px; color: var(--muted); }
.file-text strong { display: block; font: 400 20px/1.3 var(--serif); color: var(--ink); }
.org-list { list-style: none; padding: 0; margin: 40px 0; display: grid; gap: 16px; }
.org-list h2 { font-size: var(--text-heading-sm); margin-bottom: 8px; }
.org-list p { margin: 0 0 8px; color: var(--ink-2); }
@media (max-width: 600px) { .file { flex-direction: column; align-items: flex-start; } }

/* Guides */
.guide-header { padding: 80px 0 64px; text-align: center; }
.guide-header .wrap { max-width: 860px; }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; font-size: var(--text-body-sm); color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.guide-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; }
.guide-facts span { padding: 8px 14px; border-radius: var(--pill); background: var(--white); font-size: var(--text-body-sm); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.guide-header h1 { margin: 24px 0 0; }
.guide-header .lead { margin: 40px auto 0; max-width: 680px; font-size: var(--text-subheading); line-height: 1.45; color: var(--ink-2); }
.guide-header .lead + .lead { margin-top: 16px; font-size: var(--text-body); line-height: 1.6; }
.guide-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 128px; }
.toc { position: sticky; top: 104px; padding: 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); font-size: var(--text-body-sm); }
.toc p { margin: 0 0 12px; font-weight: 500; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.toc a:hover { background: var(--subtle); color: var(--ink); }
.toc .n { color: var(--green-deep); }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.guide-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding: 32px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); scroll-margin-top: 104px; }
.g-num { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green-tint); color: var(--green-deep); font: 400 20px/1 var(--serif); }
.guide-item:nth-child(4n+2) .g-num { background: var(--blue-tint); color: var(--blue-deep); }
.guide-item:nth-child(4n+3) .g-num { background: var(--blue-tint); color: var(--blue-deep); }
.guide-item:nth-child(4n+4) .g-num { background: var(--green-tint); color: var(--green-deep); }
.guide-item h2 { font-size: var(--text-heading-sm); line-height: 1.3; margin: 8px 0 16px; }
.guide-item p, .guide-item li { color: var(--ink-2); }
.guide-item ul { padding-left: 20px; margin: 0 0 16px; }
.guide-item li { margin-bottom: 6px; }
.guide-item p:last-child, .guide-item ul:last-child { margin-bottom: 0; }
.ask { margin: 16px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--subtle); color: var(--ink-2); }
.ask strong { color: var(--green-deep); }
.cite { display: inline-block; margin-top: 12px; font-size: var(--text-body-sm); color: var(--muted); }
.cite a { color: var(--muted); }
.guide-callout { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: center; margin: 24px 0; padding: 32px; border-radius: var(--radius-card); background: var(--green-tint); }
.guide-callout img { width: 100%; aspect-ratio: 210 / 297; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: var(--shadow-lg); }
.guide-callout h2 { font-size: var(--text-heading-sm); margin-bottom: 8px; }
.guide-callout p { color: var(--ink-2); }
.guide-note { margin: 24px 0; padding: 24px 32px; border-radius: var(--radius-card); background: var(--blue-tint); color: var(--blue-deep); }
.guide-note strong { color: var(--blue-deep); }
.sources { margin-top: 24px; padding: 32px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); }
.sources h2 { font-size: var(--text-heading-sm); }
.sources ol { padding-left: 20px; margin: 0 0 16px; font-size: var(--text-body-sm); color: var(--ink-2); }
.sources li { margin-bottom: 8px; }
.sources a { word-break: break-word; }
.guide-support { margin-top: 24px; padding: 32px; border-radius: var(--radius-card); background: var(--blue-tint); }
.guide-support h2 { font-size: var(--text-heading-sm); margin-bottom: 12px; }
.guide-support ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
@media (max-width: 960px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }
@media (max-width: 600px) {
  .guide-header { padding: 56px 0 40px; }
  .guide-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px; }
  .guide-callout { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .guide-callout img { max-width: 160px; }
  .sources, .guide-support { padding: 24px; }
}

/* Clinic finder (/clinics) and clinic pages (/clinics/{slug}) */
.finder-form { max-width: 560px; margin: 40px auto 0; text-align: left; }
.finder-form > label { display: block; font-weight: 500; color: var(--ink); }
.clinic-panel .finder-form { margin: 0; }
.clinic-panel .finder-form > label { margin-bottom: 8px; }
.hint { margin: 0 0 8px; font-size: var(--text-body-sm); color: var(--muted); }
.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; }
.locate-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.locate-btn[disabled] { opacity: .6; cursor: progress; }
/* Until site.js shows it: invisible but keeping its space, so the page doesn't move when it appears */
.locate-btn[data-pending] { visibility: hidden; }
.locate-status:empty { display: none; }
.results-section { scroll-margin-top: 104px; }
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.finder-form .notice { margin-top: 16px; }
.clinic-results { max-width: 860px; }
.results-title { font-size: var(--text-heading); margin-bottom: 8px; }
.clinic-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
/* Long lists ("show all by distance"): cards after the first ten aren't laid out until scrolled to */
.clinic-list > li:nth-child(n+11) { content-visibility: auto; contain-intrinsic-size: auto 240px; }
/* Full list by region: light directory rows in a two-column grid */
.clinic-rows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.clinic-rows a { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.clinic-rows .row-name { font: 400 20px/1.3 var(--serif); color: var(--ink); }
.clinic-rows a:hover .row-name { color: var(--blue); text-decoration: underline; }
.clinic-rows .row-meta { font-size: var(--text-body-sm); color: var(--muted); }
@media (max-width: 760px) { .clinic-rows { grid-template-columns: minmax(0, 1fr); } }
.clinic-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); }
.clinic-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
/* Ordinary wrapping: balancing every card title costs extra layout passes on phones */
.clinic-card-title { margin: 0; font: 400 22px/1.3 var(--serif); color: var(--ink); text-wrap: wrap; }
.clinic-card-title a { color: var(--ink); text-decoration: none; }
.clinic-card-title a:hover { color: var(--blue); text-decoration: underline; }
.distance { padding: 6px 12px; border-radius: var(--pill); background: var(--green-tint); color: var(--green-deep); font: 500 var(--text-body-sm)/1.2 var(--sans); white-space: nowrap; }
.clinic-address { margin: 0; font-size: 15px; color: var(--ink-2); }
.clinic-chips { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nearer { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--subtle); font-size: var(--text-body-sm); color: var(--ink-2); }
.directions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.directions .btn-outline { box-shadow: inset 0 0 0 1px var(--border-soft); }
.region-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 48px; }
.region-nav a { padding: 8px 14px; border-radius: var(--pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--text-body-sm); color: var(--ink); text-decoration: none; }
.region-nav a:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.region-nav .count { color: var(--muted); }
/* Regions off screen aren't laid out until scrolled to (the full list is long on a phone) */
.region { margin-bottom: 56px; scroll-margin-top: 104px; content-visibility: auto; contain-intrinsic-size: auto 520px; }
.region-title { font-size: var(--text-heading-sm); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.finder-note { margin-top: 32px; }
.clinic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-bottom: 128px; }
.clinic-main { display: grid; gap: 24px; }
.clinic-main .guide-callout { margin: 0; }
.clinic-panel { padding: 32px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); scroll-margin-top: 104px; }
.clinic-panel h2, .clinic-side h2 { font-size: var(--text-heading-sm); }
.clinic-panel p { color: var(--ink-2); }
.clinic-panel address { font-style: normal; color: var(--ink-2); margin-bottom: 16px; }
.clinic-contact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 0 0 24px; }
.clinic-contact dt { font-weight: 500; color: var(--ink); }
.clinic-contact dd { margin: 0; overflow-wrap: anywhere; }
.distance-result { margin: 16px 0 0; padding: 16px 20px; border-radius: 12px; background: var(--green-tint); }
.distance-result p { margin: 0 0 12px; color: var(--ink); }
.site-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.site-list strong { color: var(--ink); }
.site-links { font-size: var(--text-body-sm); }
.clinic-side { position: sticky; top: 104px; padding: 24px; border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); }
.nearby { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.nearby li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) { .clinic-layout { grid-template-columns: minmax(0, 1fr); } .clinic-side { position: static; } }
@media (max-width: 600px) { .clinic-panel, .clinic-card { padding: 20px; } }

/* Footer: Midnight Violet band */
.site-footer { background: var(--blue-deep); color: #e4e8ff; padding: 80px 0 40px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--halo-blue); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; }
.footer-support h2 { color: var(--white); font-size: var(--text-heading); margin-bottom: 24px; }
.footer-support ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.footer-support li { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-support strong { color: var(--white); margin-right: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.footer-links h3 { font: 500 var(--text-caption)/1.6 var(--sans); color: var(--halo-blue); margin: 0 0 12px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--text-body-sm); }
.footer-links a { color: #e4e8ff; text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-links .link-button { color: #e4e8ff; }
.footer-links .link-button:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: var(--text-body-sm); }
.footer-bottom p { margin: 0; }
.footer-bottom .small { color: #c9d3ff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
