/* ==========================================================================
   Virtual Addiction Medicine — Design System
   Self-contained, no build step. Calm, clinical, human.
   ========================================================================== */

:root {
  /* Brand palette */
  /* Blue (primary brand) — matches logo wordmark. Var names kept for stability. */
  --teal-900: #123a58;
  --teal-800: #1a4f73;
  --teal-700: #23628f;   /* primary blue: brand, links, secondary buttons */
  --teal-600: #2d76a8;
  --teal-500: #3f97c9;
  --teal-100: #d6e8f3;
  --teal-50:  #eef6fb;

  /* Green (accent) — matches logo leaf. Primary CTA buttons use --amber-500. */
  --amber-600: #155f26;  /* deep green: button hover, pill text */
  --amber-500: #1c7a30;  /* green CTA (white text passes AA), eyebrow, flag, steps */
  --amber-400: #57b85c;  /* bright green: stat numbers on dark, accents */
  --amber-100: #dcefd6;  /* light green: pill bg, hero tint */

  --sand-50:  #f5f8f9;   /* cool light page background */
  --sand-100: #e9eff2;
  --ink-900:  #14232e;
  --ink-700:  #38474f;
  --ink-500:  #61717a;
  --line:     #dce4e9;
  --white:    #ffffff;

  --success:  #158a5e;
  --crisis:   #b4472e;

  /* Type */
  --font-head: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Radius & shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11,61,58,.06), 0 2px 8px rgba(11,61,58,.05);
  --shadow-md: 0 6px 20px rgba(11,61,58,.09);
  --shadow-lg: 0 18px 48px rgba(11,61,58,.14);

  --maxw: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--sand-50);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink-900); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { color: var(--ink-700); }
strong { color: var(--ink-900); }

/* Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section--sand { background: var(--sand-100); }
.section--teal { background: var(--teal-900); color: #d9efec; }
.section--teal h2, .section--teal h3 { color: #fff; }
.section--teal p { color: #bfe0db; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; margin-top: .9rem; color: var(--ink-500); }

.lead { font-size: 1.18rem; color: var(--ink-700); }

.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--amber-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--teal { background: var(--teal-700); color: #fff; }
.btn--teal:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-600); }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-800); }
.btn--white { background: #fff; color: var(--teal-800); }
.btn--white:hover { background: var(--teal-50); transform: translateY(-2px); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Crisis banner ---------------------------------------------------------- */
.crisis-bar {
  background: var(--crisis); color: #fff; font-size: .92rem;
  text-align: center; padding: .5rem var(--gutter);
}
.crisis-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.crisis-bar strong { color: #fff; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; font-size: 1.16rem; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 36px; } }
.footer-brand .brand-logo { height: 40px; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink-700);
  padding: .5rem .8rem; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal-800); background: var(--teal-50); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; color: var(--ink-900); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--sand-50); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem; gap: .2rem; box-shadow: var(--shadow-md);
  }
  .nav.open .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav.open .nav-book-item { display: block; margin-top: .6rem; }
  .nav.open .nav-book-item a { padding: .9rem 1rem; font-size: 1.05rem; color: #fff; }
}
.nav-book-item { display: none; }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 500px at 82% -8%, var(--teal-100), transparent 60%),
    radial-gradient(700px 400px at 6% 108%, var(--amber-100), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { max-width: 42ch; margin-bottom: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2rem; }
.hero-badge { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--ink-700); }
.hero-badge svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; }

.hero-card {
  background: #fff; border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-card h3 { margin-bottom: .3rem; }
.hero-card .muted { color: var(--ink-500); font-size: .92rem; margin-bottom: 1.3rem; }

/* Pills / badges --------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--teal-50); color: var(--teal-800); }
.pill--amber { background: var(--amber-100); color: var(--amber-600); }

/* Cards ------------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 1.1rem;
}
.ico svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; font-size: 1.22rem; }
.card p { color: var(--ink-500); font-size: .98rem; }
.card--link { display: block; }
.card--link .more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--teal-700); }
.card--flag { border-top: 4px solid var(--amber-500); }

/* Steps ------------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 1.4rem; }
.steps.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps.grid-3 { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.2rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -22px; left: 1.6rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--amber-500); color: #fff; font-family: var(--font-head); font-weight: 700;
  display: grid; place-items: center; font-size: 1.15rem; box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-500); font-size: .96rem; }

/* Stat row --------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
.stat { min-width: 0; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 430px) { .stats { grid-template-columns: 1fr; } }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--teal-600); line-height: 1; }
.section--teal .stat .num { color: var(--amber-400); }
.stat .lbl { font-size: .9rem; color: var(--ink-500); margin-top: .35rem; }
.section--teal .stat .lbl { color: #bfe0db; }

/* Feature split ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; display: grid; gap: .9rem; margin-top: 1.4rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li svg { width: 22px; height: 22px; color: var(--teal-600); flex-shrink: 0; margin-top: .15rem; }
.check-list li span { color: var(--ink-700); }
.check-list li strong { display: block; }

.media-card {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 2.6rem); color: #d9efec;
  box-shadow: var(--shadow-lg);
}
.media-card h3 { color: #fff; }
.media-card .quote { font-size: 1.15rem; line-height: 1.6; color: #eafaf7; font-style: italic; }
.media-card .cite { margin-top: 1.2rem; font-weight: 600; color: var(--amber-400); font-family: var(--font-head); }

/* Insurance logos -------------------------------------------------------- */
.logo-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; }
.logo-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .7rem 1.4rem; font-family: var(--font-head); font-weight: 600; color: var(--ink-700);
  box-shadow: var(--shadow-sm); font-size: .95rem;
}

/* Forms ------------------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink-900); }
.field label .req { color: var(--crisis); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink-900);
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--sand-50); transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); background: #fff;
}
.field .hint { font-size: .82rem; color: var(--ink-500); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-500); }
.checkbox input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--teal-600); flex-shrink: 0; }
.form-note { font-size: .85rem; color: var(--ink-500); display: flex; gap: .5rem; align-items: flex-start; margin-top: 1rem; }
.form-note svg { width: 20px; height: 20px; color: var(--teal-600); flex-shrink: 0; margin-top: .1rem; }
.form-success { display: none; background: var(--teal-50); border: 1.5px solid var(--teal-500); color: var(--teal-800); border-radius: var(--r-md); padding: 1.2rem 1.4rem; }
.form-success.show { display: block; }
.form-success h3 { color: var(--teal-800); margin-bottom: .3rem; }

/* Accordion (FAQ) -------------------------------------------------------- */
.accordion { display: grid; gap: .8rem; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.acc-btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: var(--ink-900);
}
.acc-btn .chev { width: 22px; height: 22px; color: var(--teal-600); transition: transform .2s ease; flex-shrink: 0; }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.acc-panel .inner { padding: 0 1.4rem 1.3rem; color: var(--ink-500); }

/* Provider / about ------------------------------------------------------- */
.provider { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem,4vw,3rem); align-items: start; }
@media (max-width: 760px) { .provider { grid-template-columns: 1fr; } }
.provider-photo {
  aspect-ratio: 3/4; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--teal-100), var(--sand-100));
  display: grid; place-items: center; color: var(--teal-700); box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.provider-photo svg { width: 88px; height: 88px; opacity: .55; }
.cred-list { list-style: none; display: grid; gap: .6rem; margin-top: 1.2rem; }
.cred-list li { display: flex; gap: .6rem; align-items: center; font-size: .96rem; }
.cred-list li svg { width: 20px; height: 20px; color: var(--amber-500); flex-shrink: 0; }

/* Page hero (interior) --------------------------------------------------- */
.page-hero { padding-block: clamp(2.6rem, 6vw, 4.4rem); position: relative; }
.page-hero::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(900px 400px at 85% -20%, var(--teal-100), transparent 60%); }
.breadcrumb { font-size: .85rem; color: var(--ink-500); margin-bottom: .8rem; }
.breadcrumb a { color: var(--ink-500); }
.page-hero h1 { margin-bottom: .8rem; }
.page-hero p { max-width: 60ch; font-size: 1.12rem; color: var(--ink-500); }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); border-radius: var(--r-xl); padding: clamp(2.2rem,5vw,3.4rem); text-align: center; color: #eafaf7; }
.cta-band h2 { color: #fff; margin-bottom: .7rem; }
.cta-band p { color: #bfe0db; max-width: 52ch; margin: 0 auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: #b6d6d1; padding-block: 3.4rem 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #b6d6d1; font-size: .95rem; display: block; padding: .25rem 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: .9rem; }
.footer-brand p { color: #93c1bb; font-size: .92rem; max-width: 34ch; }
.footer-contact { list-style: none; display: grid; gap: .5rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal-500); flex-shrink: 0; margin-top: .2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.4rem; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; justify-content: space-between; font-size: .84rem; color: #7fb3ac; }
.footer-bottom a { display: inline; color: #7fb3ac; }
.footer-bottom .legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Sticky mobile call/text bar (shown wherever the nav is collapsed) ------ */
.mobile-bar { display: none; }
@media (max-width: 960px) {
  .mobile-bar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: .6rem;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    padding: .6rem .7rem calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(250,247,242,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { width: 100%; padding: .8rem; }
  body { padding-bottom: 70px; }
}

/* SimplePractice embedded contact form ---------------------------------- */
.sp-embed { width: 100%; min-height: 1180px; border: 0; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md); display: block; }
@media (max-width: 620px) { .sp-embed { min-height: 1520px; } }

/* Chat assistant --------------------------------------------------------- */
.chat-launcher {
  position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 70;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  background: var(--teal-700); color: #fff; border: 0; cursor: pointer;
  padding: .85rem 1.25rem; border-radius: 999px; box-shadow: var(--shadow-lg);
  transition: transform .15s ease, background .15s ease;
}
.chat-launcher:hover { background: var(--teal-600); transform: translateY(-2px); }
.chat-launcher svg { width: 22px; height: 22px; }
.chat-launcher[aria-expanded="true"] { display: none; }

.chat-panel {
  position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 71;
  width: min(390px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 2.5rem));
  display: none; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.chat-panel.open { display: flex; }
@media (max-width: 480px) {
  .chat-panel { inset: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-launcher { right: 1rem; }
}
/* Lift the launcher above the sticky call/text bar wherever that bar shows */
@media (max-width: 960px) { .chat-launcher { bottom: 82px; } }

.chat-head { background: linear-gradient(135deg, var(--teal-700), var(--teal-900)); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: .7rem; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; flex-shrink: 0; }
.chat-head .avatar svg { width: 22px; height: 22px; color: #fff; }
.chat-head h2 { color: #fff; font-size: 1.05rem; margin: 0; }
.chat-head p { color: #bfe0db; font-size: .78rem; margin: 0; }
.chat-head .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55e0a0; display: inline-block; margin-right: .35rem; }
.chat-close { margin-left: auto; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,255,255,.25); }
.chat-close svg { width: 18px; height: 18px; }

.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; background: var(--sand-50); }
.chat-msg { max-width: 85%; padding: .7rem .9rem; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.chat-msg--bot { background: #fff; border: 1px solid var(--line); color: var(--ink-700); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-msg--user { background: var(--teal-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-msg a { color: inherit; text-decoration: underline; font-weight: 600; }
.chat-msg--bot a { color: var(--teal-700); }

.chat-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.1rem .3rem; background: var(--sand-50); }
.chat-chip { font-family: var(--font-body); font-size: .82rem; background: var(--teal-50); color: var(--teal-800); border: 1px solid var(--teal-100); border-radius: 999px; padding: .4rem .75rem; cursor: pointer; }
.chat-chip:hover { background: var(--teal-100); }

.chat-crisis { align-self: stretch; max-width: 100%; background: #fdece7; border: 1.5px solid var(--crisis); border-radius: 14px; padding: .85rem 1rem; font-size: .9rem; color: #7a2c1a; }
.chat-crisis strong { color: var(--crisis); display: block; margin-bottom: .3rem; }
.chat-crisis a { color: var(--crisis); font-weight: 700; }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: .8rem .9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); animation: chat-bounce 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-foot { border-top: 1px solid var(--line); background: #fff; padding: .7rem .8rem .55rem; }
.chat-form { display: flex; gap: .5rem; align-items: flex-end; }
.chat-form textarea {
  flex: 1; resize: none; font-family: var(--font-body); font-size: .95rem; color: var(--ink-900);
  border: 1.5px solid var(--line); border-radius: 14px; padding: .6rem .75rem; max-height: 120px; min-height: 44px; line-height: 1.4;
}
.chat-form textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-100); }
.chat-send { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amber-500); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-send:hover { background: var(--amber-600); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }
.chat-send svg { width: 20px; height: 20px; }
.chat-disclaimer { font-size: .72rem; color: var(--ink-500); text-align: center; margin: .5rem .3rem 0; line-height: 1.4; }

@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }

/* Utilities -------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-800); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Reviews */
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.review-card{background:#fff;border-radius:12px;padding:1.8rem;box-shadow:0 2px 12px rgba(0,0,0,.06);display:flex;flex-direction:column}
.review-card p{font-size:.95rem;line-height:1.6;color:var(--ink-700);flex:1}
.review-stars{color:var(--amber-500);font-size:1.1rem;margin-bottom:.6rem;letter-spacing:2px}
.review-name{font-weight:600;font-size:.85rem;color:var(--ink-500);margin-top:1rem;flex:none}
.video-testimonials{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;margin-top:1.5rem}
@media(max-width:900px){.review-grid{grid-template-columns:repeat(2,1fr)}.video-testimonials{grid-template-columns:1fr}}
@media(max-width:600px){.review-grid{grid-template-columns:1fr}}
