/* Layout concept: deep-teal hero bands with the guide's purple disc, white reading sections, one column of 68ch text, cards only for case studies. */
:root {
  --teal: #13949A;
  --teal-deep: #0E6E72;
  --teal-ink: #0B5357;
  --purple: #503180;
  --purple-soft: #EEE8F6;
  --tint: #E6F4F5;
  --ink: #1F2526;
  --muted: #55605F;
  --rule: #D6E1E1;
  --bg: #FFFFFF;
  --bg-alt: #F5F9F9;
  --on-dark: #FFFFFF;
  --on-dark-muted: #D3ECEC;
  --plate: #FFFFFF;
  --font-display: "Lato", "Open Sans", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --teal: #2BB5BB; --teal-deep: #7FD3D6; --teal-ink: #0A3B3D; --purple: #B7A0DD; --purple-soft: #2A2238;
    --tint: #142D2F; --ink: #ECF2F2; --muted: #A9B8B8; --rule: #2E3B3C; --bg: #111717; --bg-alt: #162021;
    --on-dark: #FFFFFF; --on-dark-muted: #C3E3E3; --plate: #FFFFFF; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --teal: #2BB5BB; --teal-deep: #7FD3D6; --teal-ink: #0A3B3D; --purple: #B7A0DD; --purple-soft: #2A2238;
  --tint: #142D2F; --ink: #ECF2F2; --muted: #A9B8B8; --rule: #2E3B3C; --bg: #111717; --bg-alt: #162021;
  --on-dark: #FFFFFF; --on-dark-muted: #C3E3E3; --plate: #FFFFFF; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.prose { max-width: 68ch; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 10px; }
.brand { display: block; background: var(--plate); border-radius: 8px; padding: 4px 6px; flex: none; }
.brand img { width: 128px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-deep); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-phone { font-size: 14px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-panel { display: flex; }
.menu-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--rule); flex-direction: column; padding: 8px 20px 20px; gap: 4px; }
.menu-panel a { padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
.menu-panel .btn { margin-top: 12px; border-bottom: 0; }
@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .menu { display: block; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #FFFFFF; }
:root:not([data-theme="light"]) .btn-primary { }
.btn-ghost { border-color: currentColor; color: var(--teal-deep); background: transparent; }
.btn-light { background: #FFFFFF; color: #503180; }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #FFFFFF; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #6B47A8; } }
:root[data-theme="dark"] .btn-primary { background: #6B47A8; }

/* Hero band (echoes the guide cover) */
.hero { position: relative; overflow: hidden; background: #0E6E72; color: #FFFFFF; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #503180; top: -220px; right: -140px; }
.hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); bottom: -170px; left: -90px; }
.hero .wrap { position: relative; z-index: 1; padding-block: 88px 80px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--on-dark-muted); }
.hero h1 { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -.01em; max-width: 14ch; margin-top: 14px; }
.hero h1 strong { font-weight: 700; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; max-width: 56ch; margin-top: 24px; color: var(--on-dark-muted); }
.hero .actions { margin-top: 34px; }
.hero .note { margin-top: 22px; font-size: 14px; color: var(--on-dark-muted); }
.hero-sm .wrap { padding-block: 64px 56px; }
.hero-sm h1 { font-size: clamp(36px, 5vw, 56px); max-width: 18ch; }
@media (max-width: 600px) { .hero::before { width: 300px; height: 300px; top: -150px; right: -120px; } .hero .wrap { padding-block: 56px 52px; } }

/* Sections */
section.band { padding-block: 80px; }
section.band.alt { background: var(--bg-alt); }
section.band.tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.section-head .eyebrow { color: var(--purple); }
h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; color: var(--teal-deep); }
h3 { font-size: 19px; line-height: 1.35; color: var(--ink); }
.lead { font-size: 19px; color: var(--muted); }
@media (max-width: 600px) { section.band { padding-block: 56px; } }

/* Symptom list */
.symptoms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.symptoms li { padding: 18px 0 18px 34px; border-top: 1px solid var(--rule); position: relative; font-size: 18px; }
.symptoms li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--teal); }
.after-list { margin-top: 28px; font-size: 19px; font-weight: 600; color: var(--purple); }
@media (max-width: 760px) { .symptoms { grid-template-columns: 1fr; } }

/* Direction / System / Habits */
.dsh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.dsh svg { width: 100%; max-width: 420px; height: auto; margin-inline: auto; display: block; }
.dsh-items { display: flex; flex-direction: column; gap: 22px; }
.dsh-items h3 { color: var(--purple); margin-bottom: 4px; }
.closing { margin-top: 28px; padding-top: 22px; border-top: 2px solid var(--teal); font-weight: 600; }
@media (max-width: 820px) { .dsh { grid-template-columns: 1fr; gap: 32px; } .dsh svg { max-width: 320px; } }
.venn-label { font-family: var(--font-body); font-weight: 700; font-size: 17px; fill: var(--ink); }

/* See It */
.seeit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 16px; height: 9px; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.panel { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 30px; }
.panel h3 { margin-bottom: 16px; }
@media (max-width: 820px) { .seeit { grid-template-columns: 1fr; gap: 32px; } }

/* Case study cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.case .tag { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.case h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--teal-deep); }
.case p { color: var(--muted); }
.case .more { margin-top: auto; font-weight: 700; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
blockquote { margin: 0; padding-left: 22px; border-left: 3px solid var(--purple); }
blockquote p { font-size: 19px; font-style: italic; line-height: 1.5; }
blockquote footer { margin-top: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

/* Person */
.person { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: center; }
.person img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 280px; background: var(--tint); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; gap: 28px; } .person img { max-width: 200px; } }

/* CTA band */
.cta { background: #503180; color: #FFFFFF; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: #13949A; opacity: .35; right: -140px; bottom: -200px; }
.cta .wrap { position: relative; z-index: 1; padding-block: 72px; display: flex; flex-direction: column; gap: 18px; }
.cta h2 { color: #FFFFFF; }
.cta p { max-width: 58ch; color: #E6DDF3; font-size: 18px; }
.cta .actions { margin-top: 10px; }

/* Beliefs, generic two-column list */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.pairs h3 { color: var(--purple); margin-bottom: 6px; }
@media (max-width: 760px) { .pairs { grid-template-columns: 1fr; } }

/* Results */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 4px; }
.numbers div { border-top: 3px solid var(--teal); padding-top: 12px; }
.numbers strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--teal-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.numbers span { font-size: 14px; color: var(--muted); }
.study { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.study h3.sub { color: var(--purple); font-size: 16px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
@media (max-width: 820px) { .numbers { grid-template-columns: 1fr; } .study { grid-template-columns: 1fr; gap: 28px; } }

/* Insights */
.resource { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: center; }
.resource .thumb { aspect-ratio: 4 / 5; border-radius: 8px; background: #0E6E72; position: relative; overflow: hidden; color: #FFFFFF; padding: 16px; display: flex; align-items: flex-end; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.resource .thumb::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #503180; top: -60px; right: -60px; }
.resource .thumb span { position: relative; }
.resource .thumb.alt { background: #503180; }
.resource .thumb.alt::before { background: #13949A; }
@media (max-width: 600px) { .resource { grid-template-columns: 1fr; } .resource .thumb { max-width: 160px; } }

/* Article */
.article { padding-block: 64px 80px; }
.article h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 44px; margin-bottom: 14px; }
.article p { margin-bottom: 18px; }
.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article .pull { margin: 28px 0; }
.article .fogg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 26px; }
.article .fogg div { background: var(--tint); border-radius: 8px; padding: 16px; }
.article .fogg strong { display: block; color: var(--teal-deep); font-size: 18px; }
.article .byline { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
@media (max-width: 600px) { .article .fogg { grid-template-columns: 1fr; } }

/* Health check placeholder */
.survey-slot { border: 2px dashed var(--rule); border-radius: var(--radius); padding: 40px 28px; text-align: center; color: var(--muted); }

/* Footer */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--rule); font-size: 15px; }
.site-footer .wrap { padding-block: 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal-deep); text-decoration: underline; }
.site-footer .small { color: var(--muted); font-size: 13px; margin-top: 14px; }
.site-footer .brand img { width: 150px; }
.site-footer .contact { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

.nav a.btn, .menu-panel a.btn { color: #FFFFFF; text-decoration: none; }

/* Always dark: the site uses the dark palette whatever the visitor's device setting */
:root {
  --teal: #2BB5BB; --teal-deep: #7FD3D6; --teal-ink: #0A3B3D; --purple: #B7A0DD; --purple-soft: #2A2238;
  --tint: #142D2F; --ink: #ECF2F2; --muted: #A9B8B8; --rule: #2E3B3C; --bg: #111717; --bg-alt: #162021;
  --on-dark: #FFFFFF; --on-dark-muted: #C3E3E3; --plate: #FFFFFF; color-scheme: dark;
}
.btn-primary, .hc-primary { background: #6B47A8; }
