/* Mental Wellness — demo design system (Exhibit A Media, Oct 2026)
   Evolved from the live brand: purple #9150A0 -> deeper plum, plus sage, cream and a warm peach accent. */
:root {
  --plum-900: #3b1d45;
  --plum-800: #4f2759;
  --plum-700: #6c3779;
  --plum-600: #9150a0;   /* primary */
  --plum-500: #a86ab6;   /* close to the original #9150A0 */
  --plum-100: #f3e9f6;
  --plum-50:  #faf5fb;
  --sage-700: #3e7d24;
  --sage-500: #6abd45;
  --sage-200: #d5ecc9;
  --sage-100: #ecf6e6;
  --cream:    #f8f8fa;
  --sand:     #f4f4f6;
  --peach:    #25aae1;
  --peach-100:#e2f3fb;
  --ink:      #26222b;
  --ink-soft: #5d5a63;
  --line:     rgba(59, 29, 69, .12);
  --white:    #ffffff;
  --radius:   22px;
  --radius-sm:14px;
  --shadow-sm: 0 1px 2px rgba(59, 29, 69,.06), 0 4px 14px rgba(59, 29, 69,.06);
  --shadow:    0 2px 6px rgba(59, 29, 69,.06), 0 18px 40px -12px rgba(59, 29, 69,.18);
  --serif: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;   /* Jason's font for headings too (25 Nov 2026); was Fraunces */
  --sans:  "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--cream); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--plum-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-800); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--plum-900); margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
em.accent, .accent-italic { font-style: italic; color: var(--plum-500); font-weight: 400; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum-900); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--plum-600); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.5rem; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s; font-family: var(--sans); line-height: 1.2; }
.btn:hover { --bg: var(--plum-700); color: var(--fg); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(145, 80, 160,.6); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--plum-800); border-color: rgba(79, 39, 89,.25); }
.btn--ghost:hover { --bg: var(--white); --fg: var(--plum-800); box-shadow: var(--shadow-sm); }
.btn--light { --bg: #fff; --fg: var(--plum-800); }
.btn--light:hover { --bg: var(--plum-50); --fg: var(--plum-900); }
.btn--sage { --bg: var(--sage-700); }
.btn--sage:hover { --bg: #3f5845; }
.btn--sm { padding: .6rem 1.05rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* ---------- Crisis bar + header ---------- */
.crisis-bar { background: var(--plum-900); color: rgba(255,255,255,.88); font-size: .86rem; }
.crisis-bar .wrap { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .5rem 0; flex-wrap: wrap; text-align: center; }
.crisis-bar a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.crisis-bar a:hover { color: var(--peach-100); }
.crisis-bar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px rgba(37, 170, 225,.25); flex: none; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(248, 248, 250,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(248, 248, 250,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--plum-900); flex: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
/* Jason's own logo (25 Nov 2026): the puzzle-piece brain and wordmark from his WordPress site. */
.brand__logo { height: 54px; width: auto; display: block; }
@media (max-width: 640px) { .brand__logo { height: 44px; } }
.site-footer .brand__mark { width: 48px; height: 48px; }
.site-footer .brand__name { font-family: var(--sans); font-weight: 400; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.brand__tag { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-700); margin-top: .3rem; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; transition: background-color .2s, color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { background: var(--plum-50); color: var(--plum-700); }
.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__signin { font-size: .93rem; font-weight: 600; color: var(--plum-700); text-decoration: none; padding: .5rem .8rem; display: inline-flex; align-items: center; gap: .45rem; }
.nav__signin .avatar-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--sage-200); display: grid; place-items: center; font-size: .72rem; color: var(--sage-700); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--plum-900); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav__links, .nav__actions .nav__signin, .nav__actions .btn { display: none; }
  .site-header.is-open .nav__panel { display: flex; }
}
.nav__panel { display: none; position: fixed; inset: 0; top: 0; background: var(--cream); z-index: 150; flex-direction: column; padding: 1.2rem 16px 2rem; overflow-y: auto; }
.nav__panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.nav__panel a.big { font-family: var(--serif); font-size: 1.9rem; color: var(--plum-900); text-decoration: none; padding: .45rem 0; border-bottom: 1px solid var(--line); display: block; }
.nav__panel .btn { margin-top: 1.5rem; }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 6rem) 0 clamp(6rem, 11vw, 9.5rem); background: radial-gradient(1200px 650px at 85% -10%, #dcc2e5 0%, transparent 62%), radial-gradient(900px 520px at -10% 110%, #e4d3ec 0%, transparent 58%), linear-gradient(165deg, #f7f0f9 0%, #eee2f2 100%); overflow: hidden; }   /* deeper purple (Jason, 29 Nov 2026) */
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .script { font-style: italic; color: var(--plum-500); font-weight: 400; }
.hero__quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--sage-700); margin-bottom: 1.4rem; }
.hero__visual { position: relative; }
.hero__img { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/4.6; box-shadow: var(--shadow); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero__badge { position: absolute; left: -28px; bottom: 36px; background: #fff; border-radius: 18px; padding: .9rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: center; max-width: 260px; animation: floaty 6s ease-in-out infinite; }
.hero__badge .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sage-100); display: grid; place-items: center; color: var(--sage-700); flex: none; }
.hero__badge strong { display: block; font-size: .95rem; color: var(--plum-900); line-height: 1.25; }
.hero__badge span { font-size: .8rem; color: var(--ink-soft); }
.hero__badge--top { left: auto; right: -18px; top: 28px; bottom: auto; animation-delay: -3s; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fa66b; box-shadow: 0 0 0 0 rgba(63,166,107,.5); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,166,107,.5); } 70% { box-shadow: 0 0 0 10px rgba(63,166,107,0); } 100% { box-shadow: 0 0 0 0 rgba(63,166,107,0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__trust { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero__trust div { font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
.hero__trust strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--plum-800); }

/* Curved divider (house standard) */
.divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(48px, 7vw, 110px); display: block; z-index: 2; pointer-events: none; }
.divider--top { top: -1px; bottom: auto; transform: scaleY(-1); }
.divider--footer { top: auto; bottom: calc(100% - 1px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .hero__badge { left: 10px; }
  .hero__badge--top { right: 10px; }
}
@media (max-width: 640px) {
  .divider { height: 36px; }
  .hero__img { border-radius: 140px 140px var(--radius) var(--radius); aspect-ratio: 4/4.3; }
  .hero__badge { position: relative; left: 0; bottom: 0; margin-top: -40px; margin-left: 12px; max-width: 270px; animation: none; }
  .hero__badge--top { display: none; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 7.5rem); background: radial-gradient(900px 460px at 90% 0%, #dcc2e5 0%, transparent 62%), radial-gradient(700px 400px at 0% 100%, #e4d3ec 0%, transparent 60%), linear-gradient(165deg, #f7f0f9 0%, #eee2f2 100%); overflow: hidden; }   /* deeper purple (Jason, 29 Nov 2026) */
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 18ch; }
.page-hero--img .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.page-hero--img .ph-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; box-shadow: var(--shadow); }
.page-hero--img .ph-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero--img .wrap { grid-template-columns: 1fr; } }
.crumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--plum-600); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--sage { background: var(--sage-100); }
.section--plum { background: var(--plum-900); color: rgba(255,255,255,.82); }
.section--plum h2, .section--plum h3 { color: #fff; }
.section--plum .eyebrow { color: var(--peach); }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head.center { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--wide { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame--arch { border-radius: 260px 260px var(--radius) var(--radius); }

/* Cards */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.35rem; margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--plum-50); color: var(--plum-600); margin-bottom: 1.2rem; }
.card .ico svg { width: 26px; height: 26px; }
.card--sage .ico { background: var(--sage-100); color: var(--sage-700); }
.card--peach .ico { background: var(--peach-100); color: #b3633d; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.6rem; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.4rem; color: var(--plum-500); font-style: italic; }
.step::after { content: ""; position: absolute; top: 1.4rem; left: 3.8rem; right: -.7rem; height: 1px; background: linear-gradient(90deg, var(--plum-500), transparent); opacity: .35; }
.step:last-child::after { display: none; }
.step h4 { font-family: var(--serif); font-size: 1.3rem; }

/* Compare (Peer vs Peer+) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; background: var(--plum-50); color: var(--plum-700); line-height: 1.2; }
.tag--sage { background: var(--sage-100); color: var(--sage-700); }
.tag--peach { background: var(--peach-100); color: #a6552f; }
.tag--ink { background: var(--plum-900); color: #fff; }
.tag--outline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .7rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6b55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/62% no-repeat; }

/* Quote */
.quote-big { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; color: var(--plum-900); font-weight: 400; letter-spacing: -.01em; }
.quote-big::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--peach); margin-bottom: .4rem; }
.section--plum .quote-big { color: #fff; }
.quote-cite { margin-top: 1.4rem; font-size: .95rem; color: var(--ink-soft); }
.section--plum .quote-cite { color: rgba(255,255,255,.65); }

/* Testimonials */
.tcard { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.tcard p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; color: var(--plum-900); margin: 0; }
.tcard .who { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--ink-soft); margin-top: auto; }
.tcard .who .ini { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-100); color: var(--plum-700); font-weight: 700; font-size: .85rem; }

/* Sponsors */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.2rem 3rem; }
/* Sponsor logos sit in a soft brand purple, in full colour on hover (Jason, 25 Nov 2026; was grey). */
.logos img { height: 52px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1) sepia(.85) saturate(2.4) hue-rotate(248deg) contrast(1.2) brightness(1); opacity: .85; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.logos a:hover img { filter: none; opacity: 1; }

/* CTA band */
.cta-band { position: relative; border-radius: calc(var(--radius) + 8px); overflow: hidden; color: #fff; padding: clamp(2.5rem, 6vw, 5rem); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(59, 29, 69,.92) 0%, rgba(79, 39, 89,.75) 45%, rgba(79, 39, 89,.15) 100%); z-index: -1; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band h2 { color: #fff; max-width: 16ch; }
.cta-band p { max-width: 46ch; color: rgba(255,255,255,.85); }

/* Newsletter box */
.news-box { background: var(--plum-900); color: rgba(255,255,255,.85); border-radius: calc(var(--radius) + 8px); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; position: relative; overflow: hidden; }
.news-box::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 170, 225,.35), transparent 70%); }
.news-box h2 { color: #fff; }
@media (max-width: 860px) { .news-box { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 1rem; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--plum-900); }
.field .hint { font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.input, select.input, textarea.input { width: 100%; font: inherit; font-size: 1rem; padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgba(168, 106, 182,.15); }
textarea.input { min-height: 130px; resize: vertical; }
.news-box .input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.news-box .input::placeholder { color: rgba(255,255,255,.5); }
.news-box .field label { color: rgba(255,255,255,.85); }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .3rem; accent-color: var(--plum-600); width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; cursor: pointer; transition: all .2s; user-select: none; }
.chip span:hover { border-color: var(--plum-500); }
.chip input:checked + span { background: var(--plum-600); border-color: var(--plum-600); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--peach); outline-offset: 2px; }
.success { display: none; text-align: center; padding: 1.5rem 0; }
.success.is-on { display: block; animation: rise .5s var(--ease); }
.success .big-check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-100); color: var(--sage-700); margin: 0 auto 1rem; }
.success .big-check svg { width: 34px; height: 34px; }
.form.is-hidden { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.demo-note { display: inline-flex; gap: .45rem; align-items: center; font-size: .78rem; color: var(--ink-soft); background: var(--sand); border-radius: 999px; padding: .3rem .75rem; }

/* ---------- Groups / calendar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; z-index: 20; }
@media (max-width: 760px) { .toolbar { position: static; } }
.seg { display: inline-flex; background: var(--sand); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button.is-on { background: #fff; color: var(--plum-800); box-shadow: var(--shadow-sm); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .8rem; }
.day { background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); padding: .9rem .75rem; min-height: 220px; display: flex; flex-direction: column; gap: .6rem; }
.day.is-today { border-color: var(--plum-500); box-shadow: 0 0 0 3px rgba(168, 106, 182,.12); }
.day h4 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .2rem; display: flex; justify-content: space-between; }
.day h4 .d { color: var(--plum-700); }
.slot { text-align: left; border: 0; font: inherit; cursor: pointer; border-radius: 12px; padding: .65rem .7rem; background: var(--plum-50); color: var(--plum-900); transition: transform .2s, box-shadow .2s; border-left: 3px solid var(--plum-500); }
.slot:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.slot .t { font-size: .74rem; font-weight: 700; color: var(--plum-600); display: block; }
.slot .n { font-size: .86rem; font-weight: 600; line-height: 1.25; display: block; margin-top: .1rem; }
.slot.peerplus { background: var(--peach-100); border-left-color: var(--peach); }
.slot.peerplus .t { color: #a6552f; }
.slot.inperson { background: var(--sage-100); border-left-color: var(--sage-500); }
.slot.inperson .t { color: var(--sage-700); }
.day .empty { font-size: .8rem; color: var(--ink-soft); opacity: .7; margin: auto 0; text-align: center; }
@media (max-width: 1080px) { .week { grid-template-columns: repeat(2, 1fr); } .day { min-height: 0; } }
@media (max-width: 560px) { .week { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .4rem; vertical-align: -1px; }

.group-list { display: grid; gap: 1rem; }
.gcard { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.4rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; transition: box-shadow .3s, transform .3s var(--ease); }
.gcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gcard .when { text-align: center; border-right: 1px solid var(--line); padding-right: 1.2rem; }
.gcard .when .dow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-700); }
.gcard .when .tm { font-family: var(--serif); font-size: 1.6rem; color: var(--plum-800); line-height: 1.1; }
.gcard .when .tz { font-size: .72rem; color: var(--ink-soft); }
.gcard h3 { font-size: 1.3rem; margin: .35rem 0 .3rem; }
.gcard h3 a { color: inherit; text-decoration: none; }
.gcard h3 a:hover { color: var(--plum-600); }
.gcard .meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.gcard p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.gcard .acts { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.seats { font-size: .8rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 760px) { .gcard { grid-template-columns: 1fr; } .gcard .when { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 .8rem; text-align: left; display: flex; gap: .8rem; align-items: baseline; } .gcard .acts { flex-direction: row; } }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(59, 29, 69,.55); backdrop-filter: blur(4px); animation: fade .25s; }
.modal__card { position: relative; background: var(--cream); border-radius: calc(var(--radius) + 4px); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 2rem; box-shadow: 0 30px 80px -20px rgba(59, 29, 69,.5); animation: rise .35s var(--ease); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--plum-900); }
@keyframes fade { from { opacity: 0; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .93rem; background: #fff; border-radius: 14px; padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; border: 1px solid var(--line); }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; color: var(--plum-900); }

/* Group detail */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }
.sidebar { position: sticky; top: 100px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.rules { background: var(--sage-100); border-radius: var(--radius); padding: 1.6rem 1.8rem; }
.rules ol { margin: 0; padding-left: 1.2rem; }
.rules li { margin-bottom: .5rem; }
.facilitator { display: flex; gap: 1rem; align-items: center; padding: 1.2rem; background: var(--plum-50); border-radius: var(--radius-sm); margin: 1.5rem 0; }
.facilitator .av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--plum-500), var(--plum-700)); flex: none; }

/* ---------- Member dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 920px) { .dash { grid-template-columns: 1fr; } }
.dash-nav { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1rem; position: sticky; top: 100px; }
@media (max-width: 920px) { .dash-nav { position: static; display: flex; overflow-x: auto; gap: .3rem; } }
.dash-nav button { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-weight: 500; padding: .75rem .9rem; border-radius: 12px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.dash-nav button svg { width: 20px; height: 20px; color: var(--ink-soft); flex: none; }
.dash-nav button.is-on { background: var(--plum-50); color: var(--plum-700); font-weight: 600; }
.dash-nav button.is-on svg { color: var(--plum-600); }
.panel { display: none; }
.panel.is-on { display: block; animation: rise .4s var(--ease); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.stat .k { font-size: .8rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; }
.stat .v { font-family: var(--serif); font-size: 2.2rem; color: var(--plum-800); line-height: 1.1; margin-top: .2rem; }
.stat .s { font-size: .82rem; color: var(--sage-700); font-weight: 600; }
.next-up { background: linear-gradient(120deg, var(--plum-800), var(--plum-600)); color: #fff; border-radius: var(--radius); padding: 1.8rem; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.next-up h3 { color: #fff; margin: .2rem 0 .3rem; }
.next-up .countdown { font-family: var(--serif); font-size: 1.1rem; color: var(--peach-100); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.progress { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--sage-500), var(--sage-700)); border-radius: 999px; }
.mood { display: flex; gap: .5rem; flex-wrap: wrap; }
.mood button { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: .7rem .9rem; cursor: pointer; font: inherit; font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 74px; transition: all .2s; }
.mood button .e { font-size: 1.5rem; line-height: 1; }
.mood button.is-on { border-color: var(--plum-500); background: var(--plum-50); }
.mood-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 10px; }
.mood-bars div { flex: 1; background: linear-gradient(180deg, var(--plum-500), var(--plum-700)); border-radius: 8px 8px 3px 3px; min-height: 8px; opacity: .85; position: relative; }
.mood-bars div span { position: absolute; bottom: -1.5rem; left: 0; right: 0; text-align: center; font-size: .72rem; color: var(--ink-soft); }

/* Tabs (join) */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.auth__side { position: relative; color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.auth__side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth__side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59, 29, 69,.1) 0%, rgba(59, 29, 69,.88) 100%); z-index: -1; }
.auth__side h2 { color: #fff; }
.auth__form { padding: clamp(2rem, 4vw, 3.2rem); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth__side { min-height: 300px; } }
.tabs { display: inline-flex; background: var(--sand); padding: 4px; border-radius: 999px; margin-bottom: 1.8rem; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.tabs button.is-on { background: #fff; color: var(--plum-800); box-shadow: var(--shadow-sm); }

/* Donate */
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.amounts .chip span { width: 100%; justify-content: center; padding: 1rem; font-size: 1.1rem; font-weight: 700; border-radius: 16px; }
.impact { background: var(--sage-100); border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: .95rem; color: var(--sage-700); display: flex; gap: .8rem; align-items: center; min-height: 64px; }
.impact strong { color: var(--plum-900); }
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.freq .chip span { width: 100%; justify-content: center; }

/* Accordion (FAQ) */
.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.35rem 0; font-family: var(--serif); font-size: 1.22rem; color: var(--plum-900); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; transition: transform .3s var(--ease), background-color .3s; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--plum-700); transform: translate(-50%, -50%); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.acc[open] summary .pm { background: var(--plum-50); }
.acc[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc .ans { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 68ch; }
.acc .ans p:last-child { margin: 0; }

/* Stories / newsletter articles */
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.post-card .pc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sand); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .pc-img img { transform: scale(1.04); }
.post-card .pc-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card h3 { font-size: 1.3rem; margin: 0; }
.post-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.post-card .by { font-size: .82rem; color: var(--ink-soft); margin-top: auto; padding-top: .6rem; }
.prose { font-size: 1.1rem; line-height: 1.8; color: #3b2f3e; }
.prose h2 { font-size: 1.8rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose blockquote { margin: 2rem 0; padding: .4rem 0 .4rem 1.5rem; border-left: 3px solid var(--peach); font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--plum-800); }
.prose p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.2rem; line-height: .85; padding: .35rem .6rem 0 0; color: var(--plum-600); }
.prose.no-drop p:first-of-type::first-letter { all: unset; }
.issue-head { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.issue-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin: 1.6rem 0; }
.issue-block h3 { margin-top: 0; }

/* Team */
.person { display: grid; grid-template-columns: 140px 1fr; gap: 1.5rem; align-items: start; }
.person .ph { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--plum-100), var(--sage-100)); display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; color: var(--plum-700); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; }
.person .role { font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-700); }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.fac { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; text-align: center; }
.fac .av { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto .7rem; display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.fac strong { display: block; color: var(--plum-900); }
.fac span { font-size: .8rem; color: var(--ink-soft); }
.medal { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: var(--radius-sm); padding: 1rem 1.2rem; border: 1px solid var(--line); }
.medal .m { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6dfa0, #c99a3b); flex: none; box-shadow: inset 0 -3px 6px rgba(0,0,0,.15); }
/* Each medal's name on one line (Jason, 25 Nov 2026): the name shrinks a little to fit the column;
   only on a phone, where it cannot fit at a readable size, may it wrap. */
.medals { container-type: inline-size; }
.medals .medal strong { display: block; white-space: nowrap; font-size: max(.75rem, min(1rem, calc((100cqi - 106px) / 26.5))); }
@container (max-width: 420px) { .medals .medal strong { white-space: normal; font-size: 1rem; } }

/* Press */
.press { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.press .yr { font-family: var(--serif); font-size: 1.6rem; color: var(--plum-500); font-style: italic; }
.press h3 { font-size: 1.25rem; margin: .3rem 0; }
@media (max-width: 560px) { .press { grid-template-columns: 1fr; gap: .3rem; } }

/* Crisis page */
.crisis-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 1.8rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.crisis-card .num { font-family: var(--serif); font-size: 2.6rem; color: var(--plum-700); line-height: 1; min-width: 110px; }
.crisis-card--urgent { background: var(--plum-900); color: rgba(255,255,255,.85); border-color: transparent; }
.crisis-card--urgent .num, .crisis-card--urgent h3 { color: #fff; }

/* Footer */
.site-footer { background: var(--plum-900); color: rgba(255,255,255,.72); padding: clamp(5rem, 9vw, 7rem) 0 2rem; position: relative; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand { color: #fff; margin-bottom: 1.2rem; }
.site-footer .brand__tag { color: var(--sage-200); }
.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; }
.socials a:hover { background: rgba(255,255,255,.08); border-color: var(--peach); }
.socials svg { width: 18px; height: 18px; }
.foot-crisis { margin-top: 3rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); font-size: .9rem; }
.foot-crisis strong { color: #fff; }
.foot-bottom { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; scroll-behavior: auto !important; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--plum-900); color: #fff; padding: .9rem 1.3rem; border-radius: 14px; box-shadow: var(--shadow); z-index: 400; display: flex; gap: .7rem; align-items: center; font-size: .95rem; transition: transform .45s var(--ease); max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { color: var(--sage-200); flex: none; }

.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 2rem; }
@media (max-width: 560px) {
  .crisis-bar { font-size: .78rem; }
  .crisis-bar .wrap { gap: .25rem .6rem; padding: .45rem 0; }
  .crisis-bar .dot { display: none; }
}
.site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
.seg button { white-space: nowrap; }
@media (max-width: 560px) {
  .toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar .seg::-webkit-scrollbar { display: none; }
  .seg button { padding: .5rem .8rem; font-size: .85rem; }
}
