/* ============================================
   EI MATCH — Style Sheet
   Warm editorial · Forest green · Fraunces
   ============================================ */

:root {
  --cream: #FAF8F3;
  --cream2: #F3F0E8;
  --green: #1C4A2F;
  --green-mid: #2D6B45;
  --green-light: #E8F2EC;
  --amber: #C97B2A;
  --amber-light: #FDF3E3;
  --blue: #1A4A7A;
  --blue-light: #E8F0F8;
  --teal: #1A6B5A;
  --teal-light: #E5F4F0;
  --text: #1A1A14;
  --text2: #4A4A3A;
  --text3: #8A8A7A;
  --border: rgba(28,74,47,0.12);
  --border2: rgba(28,74,47,0.2);
  --shadow: 0 4px 24px rgba(28,74,47,0.08);
  --shadow-lg: 0 16px 48px rgba(28,74,47,0.12);
  --radius: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Touch targets — minimum 44px on mobile */
a, button { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  background: rgba(250,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark {
  color: var(--green);
  font-style: italic;
}

.logo-word { color: var(--text); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: none;
  font-weight: 400;
  transition: color .15s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--green-mid); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 1.5rem 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(28,74,47,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(201,123,42,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Fraunces', serif;
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 900;
  color: rgba(28,74,47,0.04);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(28,74,47,0.15);
  animation: dotpulse 2.5s ease-in-out infinite;
}

@keyframes dotpulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(28,74,47,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(28,74,47,0.05); }
}

.hero-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* CTA Phone Button */
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 24px 14px 18px;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 8px 24px rgba(28,74,47,0.25);
}

.cta-phone:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28,74,47,0.3);
}

.cta-phone.small { padding: 10px 18px 10px 14px; box-shadow: var(--shadow); }
.cta-phone.large { padding: 18px 32px 18px 24px; }

.cta-phone-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-phone.small .cta-phone-icon { width: 32px; height: 32px; border-radius: 8px; }

.cta-phone-text {
  display: flex;
  flex-direction: column;
}

.cta-phone-label {
  font-size: 11px;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-phone-num {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta-phone.small .cta-phone-num { font-size: 16px; }
.cta-phone.large .cta-phone-num { font-size: 26px; }

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.cta-gift {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--amber);
  font-weight: 500;
}

/* Trust bar */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  padding: 0 20px 0 0;
}

.trust-item strong {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.trust-item span {
  font-size: 12px;
  color: var(--text3);
  font-weight: 300;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--border2);
  margin: 0 20px 0 0;
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.phone-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: floatup 6s ease-in-out infinite;
}

@keyframes floatup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.phone-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cream2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
}

.phone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.phone-dot.green { background: #30C95C; }
.phone-dot.red { background: #FF5F57; }

.phone-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: hidden;
}

.chat { display: flex; }
.chat.avery { justify-content: flex-start; }
.chat.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.chat.avery .chat-bubble {
  background: var(--green-light);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat.user .chat-bubble {
  background: var(--green);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat.typing .chat-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
}

.chat.typing .chat-bubble span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: typing 1.2s ease-in-out infinite;
}

.chat.typing .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat.typing .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.match-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28,74,47,0.1);
  border-left: 3px solid var(--green);
  animation: floatup 6s ease-in-out infinite;
  animation-delay: -3s;
}

.match-card-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.match-agency {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-rank { font-size: 22px; }

.match-name {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.match-reason {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

.match-score {
  margin-left: auto;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

/* ── HOW IT WORKS ── */
.how {
  padding: 100px 1.5rem;
  background: var(--green);
  color: #fff;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.how .section-label { color: rgba(255,255,255,0.6); }

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 3rem;
}

.how .section-title { color: #fff; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  padding: 2rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .2s;
}

.step:hover { background: rgba(255,255,255,0.1); }

.step-body { min-width: 0; }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  font-weight: 300;
}

.step a { color: rgba(255,255,255,0.9); }

/* ── STATS BAND ── */
.stats-band {
  background: var(--cream2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.4;
  font-weight: 300;
}

/* ── AGENCIES ── */
.agencies {
  padding: 100px 1.5rem;
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.65;
  font-weight: 300;
}

.agency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.agency-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
}

.agency-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.agency-card.featured {
  border-color: var(--green);
  border-width: 2px;
  background: linear-gradient(135deg, #fff 85%, var(--green-light) 100%);
  position: relative;
}

.agency-card.featured::before {
  content: 'Top pick';
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 0 0 6px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.agency-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.agency-rank {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.agency-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.badge.green { background: var(--green-light); color: var(--green); }
.badge.teal { background: var(--teal-light); color: var(--teal); }
.badge.amber { background: var(--amber-light); color: var(--amber); }
.badge.blue { background: var(--blue-light); color: var(--blue); }
.badge.gray { background: var(--cream2); color: var(--text2); }

.agency-name {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.agency-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.agency-scores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text3);
}

.score-row span { width: 80px; flex-shrink: 0; }

.score-bar {
  flex: 1;
  height: 5px;
  background: var(--cream2);
  border-radius: 3px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: width 1s ease;
}

.agency-disciplines {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.agency-disciplines span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--cream2);
  color: var(--text2);
  border: 1px solid var(--border);
}

/* Blur card */
.blur-card {
  position: relative;
  overflow: hidden;
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250,248,243,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.blur-overlay span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text2);
  text-align: center;
}

.blur-cta {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}

.blur-cta:hover { background: var(--green-mid); }

.blur-card h3 {
  color: transparent;
  background: repeating-linear-gradient(90deg, var(--cream2) 0, var(--cream2) 8px, transparent 8px, transparent 10px);
  border-radius: 3px;
}

.blur-card .agency-desc {
  color: transparent;
  background: var(--cream2);
  border-radius: 3px;
}

.agencies-cta {
  display: flex;
  justify-content: center;
}

/* ── FOR THERAPISTS ── */
.for-therapists {
  padding: 100px 1.5rem;
  background: var(--cream2);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.pain-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pain-icon {
  font-size: 28px;
  margin-bottom: 1rem;
}

.pain-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.pain-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── REFERRAL BAND ── */
.referral-band {
  background: var(--amber-light);
  border-top: 1px solid rgba(201,123,42,0.15);
  border-bottom: 1px solid rgba(201,123,42,0.15);
  padding: 3rem 1.5rem;
}

.referral-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.referral-text { flex: 1; min-width: 240px; }

.referral-text h3 {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.referral-text p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

.referral-example {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ref-code-demo, .ref-link-demo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ref-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  font-weight: 500;
}

.ref-code {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.ref-link {
  font-size: 14px;
  color: var(--text2);
}

.ref-cta {
  padding: 12px 24px;
  background: var(--amber);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}

.ref-cta:hover {
  background: #b06820;
  transform: translateY(-1px);
}

/* ── FINAL CTA ── */
.final-cta {
  padding: 120px 1.5rem;
  text-align: center;
  background: var(--cream);
}

.final-inner {
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 2rem;
  line-height: 1.65;
  font-weight: 300;
}

.final-cta .cta-phone { margin: 0 auto; }

.final-note {
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--text3);
}

/* ── FOOTER ── */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.8);
  padding: 3rem 1.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 700;
}

.footer-logo .logo-mark {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

.footer-logo .logo-word { color: #fff; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: right;
  line-height: 1.5;
}

/* ── FLOAT CTA (mobile) ── */
.float-cta {
  position: fixed;
  bottom: 1.5rem;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: none;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(28,74,47,0.35);
  white-space: nowrap;
}

/* ── ANIMATIONS ── */
.hero-label,
.hero-headline,
.hero-sub,
.hero-cta-group,
.hero-trust {
  opacity: 0;
  transform: translateY(20px);
  animation: fadein 0.6s ease forwards;
}

.hero-label { animation-delay: 0.1s; }
.hero-headline { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-cta-group { animation-delay: 0.5s; }
.hero-trust { animation-delay: 0.65s; }
.hero-visual { opacity: 0; animation: fadein 0.8s ease 0.4s forwards; }

@keyframes fadein {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE — TABLET (≤900px) ── */
@media (max-width: 900px) {
  /* Nav */
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-cta { padding: 7px 16px; font-size: 13px; }
  .float-cta { display: block; }

  /* Hero — text FIRST, visual below */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    justify-items: start;
  }
  .hero-bg-text { font-size: 80px; right: -1rem; }
  /* Visual goes AFTER text on mobile */
  .hero-visual { order: 2; max-width: 480px; width: 100%; }
  .hero-label { justify-content: flex-start; }
  .hero-sub { margin: 0 0 2rem; }
  .hero-cta-group { align-items: flex-start; }
  .hero-trust { justify-content: flex-start; }

  /* Sections */
  .steps { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .agency-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }

  /* Referral */
  .referral-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .footer-copy { margin-left: 0; text-align: left; }

  /* Testimonials — horizontal scroll on tablet */
  .testimonial-grid {
    grid-template-columns: repeat(3, 280px);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    max-width: 100%;
    gap: 1rem;
  }
  .testimonial-card {
    scroll-snap-align: start;
    min-width: 0;
  }

  /* Blog preview — one featured + two side by side */
  .blog-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .blog-preview-card:first-child {
    grid-column: 1 / -1;
  }

  .footer-social { margin-left: 0; }
  .scroll-indicator { display: none; }
}

/* ── RESPONSIVE — MOBILE (≤600px) ── */
@media (max-width: 600px) {
  /* Global spacing */
  .hero { padding: 80px 1.25rem 48px; min-height: auto; }
  .how { padding: 52px 1.25rem; }
  .agencies { padding: 52px 1.25rem; }
  .for-therapists { padding: 52px 1.25rem; }
  .final-cta { padding: 64px 1.25rem; }
  .stats-band { padding: 1.75rem 1.25rem; }
  .referral-band { padding: 1.75rem 1.25rem; }
  .footer { padding: 2rem 1.25rem; }
  .testimonials { padding: 52px 0 52px 1.25rem; }
  .blog-preview { padding: 52px 1.25rem; }

  /* Nav */
  .nav-inner { height: 56px; }
  .logo { font-size: 17px; }
  /* Hide nav CTA — float bar is the CTA on mobile */
  .nav-cta { display: none; }

  /* Hero — compact, left-aligned */
  .hero-inner { gap: 1.75rem; }
  .hero-headline {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.06;
  }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-bg-text { display: none; }

  /* Phone card — much more compact */
  .hero-visual { max-width: 100%; }
  .phone-card-body {
    max-height: 180px;
    padding: 12px;
    gap: 7px;
    overflow: hidden;
  }
  /* Show only first 2 messages + typing on mobile */
  .phone-card-body .chat:nth-child(n+4) { display: none; }
  .phone-card-body .chat.typing { display: flex; }
  .chat-bubble { font-size: 12px; padding: 8px 11px; }
  .match-card { padding: 12px 14px; }
  .match-name { font-size: 14px; }
  .match-score { font-size: 18px; }

  /* Trust bar — compact row */
  .hero-trust {
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    border-top: none;
    border-bottom: 1px solid var(--border);
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .trust-divider { display: flex; }
  .trust-item {
    flex-shrink: 0;
    padding: 0 16px 0 0;
  }
  .trust-item strong { font-size: 17px; }
  .trust-item span { font-size: 11px; white-space: nowrap; }

  /* CTA group */
  .hero-cta-group { width: 100%; gap: 10px; }
  .cta-phone { width: 100%; justify-content: center; }
  .cta-phone-num { font-size: 18px; }
  .cta-phone.small .cta-phone-num { font-size: 15px; }
  .cta-phone.large .cta-phone-num { font-size: 20px; }
  .cta-phone-icon { width: 38px; height: 38px; }
  .cta-phone.small .cta-phone-icon { width: 30px; height: 30px; }
  .cta-gift { font-size: 13px; }

  /* How it works — horizontal step numbers */
  .section-title { font-size: 28px; }
  .step {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0 1rem;
    align-items: start;
  }
  .step-num {
    font-size: 28px;
    margin-bottom: 0;
    padding-top: 2px;
  }
  .step-body {}
  .step h3 { font-size: 16px; margin-bottom: 0.4rem; }
  .step p { font-size: 13px; }

  /* Stats — 2x2 */
  .stats-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
  }
  .stat-num { font-size: 30px; }
  .stat-label { font-size: 12px; }

  /* Agencies */
  .agencies .section-title { font-size: 28px; }
  .section-sub { font-size: 14px; }
  .agency-card { padding: 1.25rem; }
  .agency-name { font-size: 18px; }
  .agency-desc { font-size: 12px; }
  .agency-grid { gap: 1rem; }

  /* For therapists — 2-column pain cards */
  .for-therapists .section-title { font-size: 28px; }
  .pain-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
  .pain-card { padding: 1.1rem; }
  .pain-icon { font-size: 22px; margin-bottom: 0.6rem; }
  .pain-card h4 { font-size: 13px; line-height: 1.3; margin-bottom: 0.5rem; }
  .pain-card p { font-size: 12px; }

  /* Testimonials — horizontal scroll */
  .testimonials { overflow: hidden; }
  .testimonial-grid {
    grid-template-columns: repeat(3, 82vw);
    gap: 0.875rem;
    padding-right: 1.25rem;
    margin-top: 1.5rem;
  }
  .testimonial-card { padding: 1.25rem; }
  .testimonial-quote { font-size: 13px; line-height: 1.65; }

  /* Blog preview — single column, only first 2 */
  .blog-preview-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  .blog-preview-card:first-child { grid-column: auto; }
  /* Hide 3rd article on mobile — keep it clean */
  .blog-preview-card:nth-child(3) { display: none; }
  .blog-preview-card { padding: 1.1rem; }
  .blog-preview-card h3 { font-size: 15px; }
  .blog-preview-card p { font-size: 12px; }
  .blog-preview-header { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .blog-preview-header > div .section-title { font-size: 22px; margin-bottom: 0.25rem; }
  .blog-preview-header > div .section-sub { font-size: 13px; }

  /* Referral */
  .referral-text h3 { font-size: 20px; }
  .referral-text p { font-size: 13px; }
  .ref-code { font-size: 22px; }
  .ref-link { font-size: 13px; }
  .referral-example { flex-direction: column; gap: 1rem; }
  .ref-cta { width: 100%; text-align: center; padding: 12px; }

  /* Final CTA */
  .final-cta h2 { font-size: 28px; }
  .final-cta p { font-size: 14px; }
  .final-note { font-size: 11px; }

  /* Footer */
  .footer-links { gap: 0.875rem; flex-wrap: wrap; }
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 11px; }
  .footer-social { margin-top: 0.25rem; }

  /* Float CTA */
  .float-btn { font-size: 13px; padding: 12px 20px; }

  /* Telnyx widget */
  telnyx-ai-agent {
    bottom: 80px !important;
    right: 12px !important;
  }
}

/* ── RESPONSIVE — VERY SMALL (≤380px) ── */
@media (max-width: 380px) {
  .hero { padding: 76px 1rem 40px; }
  .hero-headline { font-size: 30px; }
  .cta-phone-num { font-size: 16px; }
  .stat-num { font-size: 26px; }
  .agency-name { font-size: 16px; }
  .pain-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: repeat(3, 88vw); }
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadein 0.6s ease 1.2s forwards;
  pointer-events: none;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

.scroll-indicator span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  font-weight: 500;
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: 80px 1.5rem;
  background: var(--cream2);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .2s, box-shadow .2s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--green-light);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.testimonial-role {
  font-size: 11px;
  color: var(--text3);
  margin-top: 1px;
}

/* ── BLOG PREVIEW ── */
.blog-preview {
  padding: 80px 1.5rem;
  background: #fff;
}

.blog-preview-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-see-all {
  font-size: 13px;
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
  flex-shrink: 0;
}

.blog-see-all:hover { border-color: var(--green); }

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-preview-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform .2s, box-shadow .2s, background .15s;
}

.blog-preview-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #fff;
}

.bp-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.bp-tag-green { background: var(--green-light); color: var(--green); }
.bp-tag-amber { background: var(--amber-light); color: var(--amber); }
.bp-tag-blue  { background: var(--blue-light);  color: var(--blue);  }

.blog-preview-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.blog-preview-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
  flex: 1;
}

.bp-read {
  font-size: 12px;
  color: var(--green);
  font-weight: 500;
  margin-top: auto;
}

/* ── FINAL CTA badge ── */
.final-cta-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

/* ── FOOTER SOCIAL ── */
.footer-social {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.footer-social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.footer-social-link:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── RESPONSIVE additions ── */
@media (max-width: 900px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 500px; }
  .blog-preview-grid { grid-template-columns: 1fr; max-width: 500px; }
  .footer-social { margin-left: 0; }
  .scroll-indicator { display: none; }
}

@media (max-width: 600px) {
  .testimonials { padding: 56px 1rem; }
  .blog-preview { padding: 56px 1rem; }
  .testimonial-card { padding: 1.25rem; }
  .blog-preview-card { padding: 1.25rem; }
  .blog-preview-header { flex-direction: column; align-items: flex-start; }
}
