:root {
  /* Layout idea: a lavender ground where the cartoon team carries the page; quiet type, one bold hero lineup. */
  --paper: #F7F5FF;
  --card: #FFFFFF;
  --ink: #1F1D36;
  --muted: #514E68;
  --line: #E1DCF7;
  --accent: #4B47C9;
  --accent-ink: #FFFFFF;
  --accent-soft: #EDEBFF;
  --alert: #B42318;
  --alert-soft: #FEE4E2;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15142A; --card: #201E3A; --ink: #F1EFFF; --muted: #B9B5D6; --line: #34315A;
    --accent: #9C99F5; --accent-ink: #15142A; --accent-soft: #2B2850; --alert: #FDA29B; --alert-soft: #3D1A1A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15142A; --card: #201E3A; --ink: #F1EFFF; --muted: #B9B5D6; --line: #34315A;
  --accent: #9C99F5; --accent-ink: #15142A; --accent-soft: #2B2850; --alert: #FDA29B; --alert-soft: #3D1A1A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 44px; }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.tile { border-radius: 18px; display: grid; place-items: center; }
.tile svg { width: 82%; height: 82%; }

/* Header */
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.brand svg { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-family: var(--body); font-weight: 800; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; border-bottom: 0; }
  .menu-btn { display: grid; place-items: center; }
}

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: var(--ink); color: var(--paper); text-decoration: none; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; font-weight: 700; opacity: .85; }
.store strong { font-size: 17px; font-weight: 800; }
.fine { font-size: 14px; color: var(--muted); }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.phone { width: 300px; border-radius: 44px; background: #1F1D36; padding: 12px; box-shadow: 0 30px 60px -20px rgba(43,40,110,.45); position: relative; z-index: 2; }
.screen { background: #F7F5FF; color: #1F1D36; border-radius: 34px; overflow: hidden; padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 560px; }
.screen .day { font-size: 12px; font-weight: 700; color: #5B5872; }
.screen .hi { font-family: var(--display); font-size: 24px; font-weight: 600; }
.bubble { background: #fff; border-radius: 18px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; box-shadow: 0 2px 0 #E4DFFA; font-size: 13.5px; line-height: 1.4; }
.bubble svg { width: 54px; height: 54px; flex: none; }
.mini-btn { display: inline-block; margin-top: 8px; background: #4B47C9; color: #fff; font-weight: 800; font-size: 12.5px; border-radius: 999px; padding: 7px 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mini-card { background: #fff; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 2px 0 #E4DFFA; }
.mini-card .tile { width: 36px; height: 36px; border-radius: 11px; }
.mini-card b { font-family: var(--display); font-weight: 600; font-size: 14px; }
.mini-card span { font-size: 11.5px; color: #5B5872; font-weight: 700; line-height: 1.3; }

.orbit { position: absolute; width: 96px; height: 96px; z-index: 3; animation: bob 5s ease-in-out infinite; }
.orbit svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(43,40,110,.18)); }
.orbit.o1 { top: 20px; left: 6%; animation-delay: -1s; }
.orbit.o2 { top: 60px; right: 4%; animation-delay: -2.4s; width: 86px; height: 86px; }
.orbit.o3 { top: 46%; left: 0; animation-delay: -3.1s; width: 82px; height: 82px; }
.orbit.o4 { top: 50%; right: 0; animation-delay: -.4s; }
.orbit.o5 { bottom: 30px; left: 10%; animation-delay: -1.8s; width: 88px; height: 88px; }
.orbit.o6 { bottom: 10px; right: 9%; animation-delay: -4s; width: 92px; height: 92px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .orbit { animation: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 560px; }
  .orbit { width: 70px; height: 70px; }
  .orbit.o2, .orbit.o3, .orbit.o4, .orbit.o5, .orbit.o6 { width: 64px; height: 64px; }
}
@media (max-width: 420px) { .orbit.o3, .orbit.o4 { display: none; } .phone { width: 270px; } }

/* Problems strip */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.strip-item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-item:nth-child(3n) { border-right: 0; }
.strip-item:nth-last-child(-n+3) { border-bottom: 0; }
.strip-item .tile { width: 52px; height: 52px; flex: none; }
.strip-item b { display: block; font-size: 16px; }
.strip-item span { font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item, .strip-item:nth-child(3n), .strip-item:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip-item:last-child { border-bottom: 0; }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.member.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 180px 1fr 1fr; gap: 32px; align-items: center; background: var(--accent-soft); border-color: transparent; }
.member-top { display: flex; align-items: center; gap: 16px; }
.member .tile { width: 84px; height: 84px; flex: none; border-radius: 24px; }
.member.lead .tile { width: 180px; height: 180px; border-radius: 40px; }
.member h3 { font-size: 26px; }
.role { font-weight: 800; font-size: 14px; color: var(--muted); }
.label { font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.member p { color: var(--ink); font-size: 16px; line-height: 1.5; }
.member ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.45; }
.why { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } .member.lead { grid-template-columns: 140px 1fr; } .member.lead .tile { width: 140px; height: 140px; } .member.lead .lead-how { grid-column: 1 / -1; } }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } .member.lead { grid-template-columns: 1fr; } .member.lead .tile { width: 120px; height: 120px; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--display); font-weight: 700; font-size: 18px; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Hard days */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { flex: none; width: 28px; height: 28px; }
.checks b { display: block; font-size: 18px; }
.checks span { color: var(--muted); }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.compare-card { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.compare-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.playful { background: #FFFFFF; color: #1F1D36; border: 1px solid #E1DCF7; }
.playful .tag { color: #4B47C9; }
.quiet { background: #F1F0F4; color: #1F1D36; border: 1px solid #DCDAE5; }
.quiet .tag { color: #514E68; }
.compare-card .row { background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.compare-card .row svg { width: 34px; height: 34px; flex: none; }
.quiet .row { font-size: 15px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.safe-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.safe-card.urgent { border: 2px solid var(--alert); background: var(--alert-soft); }
.safe-card.urgent h3 { color: var(--alert); }
.safe-card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .safety { grid-template-columns: 1fr; } }

/* Clinicians */
.clin { background: var(--ink); color: var(--paper); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 28px; }
.clin .eyebrow { color: #C9C6FF; }
.clin .lede { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.gate { display: flex; align-items: center; gap: 14px; background: color-mix(in srgb, var(--paper) 10%, transparent); border-radius: 18px; padding: 16px 18px; max-width: 640px; }
.gate input { width: 24px; height: 24px; accent-color: #9C99F5; flex: none; }
.gate label { font-weight: 800; font-size: 17px; cursor: pointer; }
.clin-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clin-card { background: color-mix(in srgb, var(--paper) 8%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; }
.clin-card h3 { font-size: 20px; }
.clin-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.clin-card a { color: #C9C6FF; }
.flyer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 22px 24px; }
.flyer-info { display: flex; gap: 16px; align-items: center; }
.flyer-icon { width: 56px; height: 68px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 13px; color: var(--accent); border: 2px solid var(--line); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.locked { font-size: 15px; color: color-mix(in srgb, var(--paper) 75%, transparent); }
@media (max-width: 900px) { .clin-panel { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; font-weight: 500; color: var(--accent); line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* CTA + footer */
.cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-team { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.cta-team svg { width: 72px; height: 72px; }
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; background: var(--card); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 10px; font-size: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot a { color: var(--ink); }
.urgent-note { border-left: 0; background: var(--alert-soft); color: var(--ink); border-radius: 16px; padding: 14px 16px; font-size: 15px; margin-top: 14px; }
.legal { margin-top: 32px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Multi-page additions */
.nav-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.page-top { padding-top: 64px; }
.explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.explore a { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease, border-color .15s ease; }
.explore a:hover { transform: translateY(-2px); border-color: var(--accent); }
.explore p { color: var(--muted); font-size: 16px; }
.explore .go { margin-top: auto; font-weight: 800; color: var(--accent); }
.explore .faces { display: flex; gap: 2px; }
.explore .faces svg { width: 44px; height: 44px; }
@media (max-width: 900px) { .explore { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .explore a, .btn { transition: none; } }

/* Legal and contact pages */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 26px; margin-top: 24px; }
.prose p, .prose li { color: var(--ink); font-size: 17px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; font-weight: 700; }
.callout { background: var(--accent-soft); border-radius: 18px; padding: 18px 20px; }
.callout.urgent { background: var(--alert-soft); border: 2px solid var(--alert); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card p { color: var(--muted); font-size: 16px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-row code { font-family: var(--body); font-weight: 800; font-size: 18px; background: var(--accent-soft); color: var(--ink); padding: 8px 12px; border-radius: 10px; }
.copy-btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
