/* ================================================
   AIcounsyl Health Report Guide — styles.css
   ================================================ */

/* CSS Custom Properties */
:root {
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #DBEAFE;
  --secondary:      #0891B2;
  --accent:         #10B981;
  --text:           #1F2937;
  --text-light:     #6B7280;
  --text-lighter:   #9CA3AF;
  --bg:             #FFFFFF;
  --bg-alt:         #F8FAFC;
  --border:         #E5E7EB;
  --shadow:         0 1px 3px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,0.10), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05);
  --radius:         12px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --transition:     0.2s ease;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul    { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-lockup {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* White rounded backing so the dark wordmark stays legible on the dark footer */
.logo-lockup--footer {
  height: 64px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 14px;
}

.nav { display: flex; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  color: #374151;          /* steel grey, legible on the white header */
  font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: white;
}
.mobile-menu.open { display: block; }
.mobile-nav-list { padding: 0.75rem 1.25rem 1rem; }
.mobile-nav-link {
  display: block;
  color: var(--text);
  font-size: 1rem; font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: var(--primary); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}
.btn-sm  { padding: 0.45rem 1rem;   font-size: 0.875rem; }
.btn-md  { padding: 0.65rem 1.25rem; font-size: 0.95rem; }
.btn-lg  { padding: 0.85rem 1.5rem;  font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn-white { background: white; color: var(--primary); border-color: white; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); border-color: var(--primary-light); }

.btn-outline-white { background: transparent; color: white; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: white; color: white; }

/* ============ SECTIONS ============ */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}
.section-label.light { color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.18); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.section-title.light { color: white; }
.section-subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 580px; margin: 0 auto; line-height: 1.7; }
.section-subtitle.light { color: rgba(255,255,255,0.8); }
.section-body { font-size: 1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 35%, #0891B2 70%, #0E7490 100%);
  padding: 96px 0 52px;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title em { font-style: normal; color: #BAE6FD; }
.hero-sub-heading {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: #BAE6FD;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.hero-sub-heading em { font-style: normal; color: white; }
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 620px;
}
.hero-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 620px;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.45);
}
.hero-highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #FCA5A5;
  color: #B91C1C;
  box-shadow: 0 0 0 6px rgba(252,165,165,0.18);
}
.hero-highlight-icon svg { width: 26px; height: 26px; }
.hero-highlight-text { font-size: 1rem; color: rgba(255,255,255,0.95); line-height: 1.5; }
.hero-highlight-text strong { color: #ffffff; font-weight: 800; }
.hero-highlight-tag {
  display: inline-block;
  background: #FCA5A5;
  color: #7F1D1D;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 5px;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.hero-note--free { font-size: 1.4rem; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.02em; }
.hero-proof {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(186,230,253,0.35);
  border-radius: 16px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 22px -10px rgba(34,211,238,0.32);
}
.hero-proof-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #22D3EE 0%, #2563EB 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(34,211,238,0.4);
}
.hero-proof-body { display: flex; flex-direction: column; line-height: 1.05; }
.hero-proof-number {
  font-size: 1.75rem; font-weight: 800; color: #ffffff; letter-spacing: -0.01em;
}
.hero-proof-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: #BAE6FD; margin-top: 0.2rem;
}

/* Phone mockup + screenshot carousel */
.hero-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem; }
.phone-mock {
  position: relative;
  width: 260px;
  height: 540px;
  background: linear-gradient(145deg, #f7f8fa 0%, #dee1e6 55%, #eef0f3 100%);
  border-radius: 40px;
  padding: 6px;
  box-shadow:
    0 28px 55px -15px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(0,0,0,0.10);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #6cc6e4;     /* matches the app status-bar strip so the top safe-area is seamless */
}
/* Hero video poster (static thumbnail filling the phone screen) */
.hero-visual .phone-poster {
  position: absolute;
  top: 14px; left: 0;      /* small top safe-area so the clock/battery clear the rounded corners */
  width: 100%;
  height: 108%;            /* overshoot + top-align so the bottom system nav bar is cropped out */
  object-fit: cover;
  object-position: top center;
}
/* Play button overlay — centred over the phone screen, opens the video modal */
.hero-visual .phone-mock { cursor: pointer; }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  padding: 0;
  padding-left: 4px;       /* optical centring of the play triangle */
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1D4ED8;
  cursor: pointer;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 2;
}
.video-play-btn:hover { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.video-play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* "Watch demo" button — mobile only (the phone mock is hidden below 960px) */
.hero-watch-demo {
  display: none;           /* shown on mobile via the 960px media query */
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hero-watch-demo:hover { background: rgba(255, 255, 255, 0.22); border-color: #fff; }
.hero-watch-demo:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hero-watch-demo svg { flex-shrink: 0; }

/* ============ VIDEO MODAL / LIGHTBOX ============ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;           /* above the fixed header (z-index: 100) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.video-modal__dialog {
  position: relative;
  display: flex;
  max-width: min(92vw, 1000px);
  max-height: 86vh;
}
.video-modal__player {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1000px);
  max-height: 86vh;        /* robust for portrait or landscape video */
  background: #000;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.video-modal__close {
  position: absolute;
  top: -14px; right: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}
.video-modal__close:hover { transform: scale(1.08); }
.video-modal__close:focus-visible { outline: 3px solid #60A5FA; outline-offset: 2px; }

@media (max-width: 640px) {
  .video-modal { padding: 12px; }
  .video-modal__close { top: -10px; right: -6px; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text { display: flex; flex-direction: column; }

.report-collage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.report-collage img {
  width: 100%;
  height: auto;
  max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* ============ FEATURES — HUB & SPOKE ============ */
.features-hub {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Connector layer sits behind the widgets */
.hub-connectors {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

/* Each side: 3 widgets spread top → middle → bottom, matched to the phone height */
.hub-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  height: 540px;
  position: relative;
  z-index: 2;
}
.hub-phone { display: flex; justify-content: center; position: relative; z-index: 2; }

/* Soft static glow behind the phone */
.hub-phone::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.14), transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(8px);
  z-index: -1;
}

/* Push widgets to the outer edge so the elbow connectors have room to run */
@media (min-width: 961px) {
  .hub-side--left  { align-items: flex-start; }
  .hub-side--right { align-items: flex-end; }
  .hub-widget { width: 250px; }
}
.hub-phone .phone-screen img.hub-screen-img {
  position: absolute;
  top: 14px; left: 0;
  width: 100%; height: 108%;
  object-fit: cover;
  object-position: top center;
}

/* Widget card */
.hub-widget {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  transition: all var(--transition);
}
.hub-widget:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
/* Icon faces the phone: left column reversed (icon on the right), right column normal */
.hub-side--left  .hub-widget { flex-direction: row-reverse; text-align: right; }
.hub-side--right .hub-widget { flex-direction: row;          text-align: left;  }

/* Gradient emoji badge — same recipe as .step-number */
.hub-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.45rem; line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 14px -4px rgba(37, 99, 235, 0.45);
}
.hub-text h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin: 0 0 0.2rem; }
.hub-text p  { font-size: 0.82rem; color: var(--text-light); line-height: 1.45; margin: 0; }

/* Solid connector lines + a single solid data packet on each */
.hub-connectors .spoke {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}
.hub-connectors .spoke-node { fill: var(--primary); }
.hub-connectors .spoke-bead { fill: url(#beadGradient); }

/* ============ FEATURES — DARK THEME ============ */
.section-dark {
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(34,211,238,0.12), transparent 60%),
    linear-gradient(180deg, #1B2A47 0%, #122038 100%);
  color: #E2E8F0;
}
.section-dark .section-title    { color: #ffffff; }
.section-dark .section-subtitle { color: rgba(226,232,240,0.72); }
.section-dark .section-label    { color: #ffffff; background: rgba(255,255,255,0.10); }

/* Bright white cards that lift off the dark background */
.section-dark .hub-widget {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 14px 32px -14px rgba(0,0,0,0.55);
}
.section-dark .hub-widget:hover {
  border-color: rgba(56,189,248,0.7);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.65), 0 0 0 1px rgba(56,189,248,0.35);
  transform: translateY(-2px);
}
/* keep dark, readable text on the white cards */
.section-dark .hub-text h3 { color: var(--text); }
.section-dark .hub-text p  { color: var(--text-light); }

/* Brighter traces + cyan aura on dark */
.section-dark .hub-connectors .spoke { stroke: #38BDF8; opacity: 0.55; }
.section-dark .hub-phone::before {
  background: radial-gradient(circle, rgba(34,211,238,0.22), rgba(37,99,235,0.10) 45%, transparent 70%);
}

/* ============ STEPS ============ */
.steps-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0.5rem;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.step-number {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; border-radius: 50%;
  font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.step-card p  { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }
.step-arrow {
  align-self: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
  -webkit-text-stroke: 1.4px var(--primary);   /* thicken the arrow's stroke */
  opacity: 0.55;
  flex-shrink: 0;
}

/* ============ AUDIENCE ============ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.audience-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.audience-icon { font-size: 2.75rem; margin-bottom: 1rem; line-height: 1; }
.audience-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.audience-card p  { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

/* ============ DOWNLOAD ============ */
.section-download {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 35%, #0891B2 70%, #0E7490 100%);
  text-align: center;
}
.download-content { max-width: 680px; margin: 0 auto; }
.download-buttons {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin: 2.25rem 0;
}
.btn-label { font-size: 0.68rem; font-weight: 400; opacity: 0.8; line-height: 1; display: block; }
.btn-store { font-size: 1rem; font-weight: 700; line-height: 1.25; display: block; }
.download-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.25rem; font-weight: 800; color: white; }
.stat-label  { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 0.15rem; }
.stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.25); }
.download-attribution { margin-top: 2rem; font-size: 0.9rem; color: rgba(255,255,255,0.72); }
.download-attribution a { color: #BAE6FD; font-weight: 600; }
.download-attribution a:hover { color: #ffffff; text-decoration: underline; }

/* ============ CONTACT ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-layout--single {
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}
.contact-layout--single .contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; color: var(--text); }
.contact-item p  { font-size: 0.9rem; color: var(--text-light); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-success {
  background: #D1FAE5;
  color: #065F46;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
}
.form-error {
  background: #FEE2E2;
  color: #B91C1C;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem; font-weight: 500;
}
.form-error a { color: #991B1B; text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer .logo      { color: white; }
.footer .logo:hover { color: white; }
.footer-tagline {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-top: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-description { font-size: 0.9rem; margin-top: 0.5rem; line-height: 1.6; }
.footer-by { font-size: 0.82rem; color: var(--text-light); margin-top: 0.2rem; }
.footer-by a { color: var(--primary); font-weight: 600; text-decoration: none; transition: color 0.2s; }
.footer-by a:hover { color: var(--primary-dark); text-decoration: underline; }
.link-out-icon { width: 0.7em; height: 0.7em; margin-left: 0.2em; vertical-align: middle; position: relative; top: -0.1em; }
.hero-optra-link { color: #BAE6FD; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.hero-optra-link:hover { color: #ffffff; text-decoration: underline; }
/* OptraHEALTH attribution link for dark backgrounds (footer, page hero, download) */
.optra-link { color: #BAE6FD; font-weight: 600; text-decoration: none; transition: color 0.2s; }
.optra-link:hover { color: #ffffff; text-decoration: underline; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer-col h4 {
  font-size: 0.82rem; font-weight: 700;
  color: white; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a  { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
}
.footer-disclaimer p { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.75; }
.footer-disclaimer strong { color: rgba(255,255,255,0.65); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 0.85rem; }
.social-links { display: flex; gap: 0.6rem; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  transition: all var(--transition);
}
.social-links a:hover { background: var(--primary); color: white; }

/* ============ INNER PAGE (privacy / terms) ============ */
.page-hero {
  background: linear-gradient(135deg, #1E3A8A, #0891B2);
  padding: 120px 0 60px;
  color: white;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p  { font-size: 1rem; color: rgba(255,255,255,0.75); }
.page-content { padding: 72px 0; max-width: 780px; margin: 0 auto; }
.page-content h2 { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 2.5rem 0 0.75rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.page-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.page-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.5rem; }
.page-content p  { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.page-content ul { margin-bottom: 1rem; padding-left: 1.25rem; }
.page-content ul li { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 0.35rem; list-style: disc; }
.page-content a  { color: var(--primary); }
.page-content a:hover { text-decoration: underline; }
.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.info-box p { color: var(--primary-dark); margin: 0; font-size: 0.9rem; }
.warning-box {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.warning-box p { color: #92400E; margin: 0; font-size: 0.9rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .nav       { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle    { margin: 0 auto 2rem; }
  .hero-highlight   { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-cta         { justify-content: center; }
  .hero-note        { text-align: center; }
  .hero-visual .phone-mock { display: none; }
  .hero-watch-demo  { display: inline-flex; margin-left: auto; margin-right: auto; }

  .about-grid       { grid-template-columns: 1fr; }
  .features-hub     { grid-template-columns: 1fr; gap: 1.5rem; }
  .hub-connectors   { display: none; }
  .hub-phone        { order: -1; margin-bottom: 0.5rem; }
  .hub-side         { height: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hub-side--left .hub-widget,
  .hub-side--right .hub-widget { flex: 1 1 300px; max-width: 380px; flex-direction: row; text-align: left; }
  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .step-arrow       { display: none; }
  .audience-grid    { grid-template-columns: repeat(2, 1fr); }
  .contact-layout   { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav              { display: none; }
  .hamburger        { display: flex; }
  .header-actions .btn-sm { display: none; }

  .section          { padding: 36px 0; }
  .hero             { padding: 100px 0 48px; min-height: auto; }

  .hub-side--left .hub-widget,
  .hub-side--right .hub-widget { flex: 1 1 100%; max-width: 420px; }
  .audience-grid    { grid-template-columns: 1fr; }
  .contact-layout--single .contact-info { grid-template-columns: 1fr; }
  .report-collage img { max-width: 100%; }

  .download-buttons { flex-direction: column; align-items: center; }
  .download-stats   { gap: 1rem; }
  .stat-divider     { display: none; }

  .form-row         { grid-template-columns: 1fr; }

  .footer-links     { grid-template-columns: 1fr 1fr; }
  .footer-bottom    { flex-direction: column; gap: 0.75rem; text-align: center; }

  .page-content     { padding: 48px 0; }
}

/* ================================================
   CLINICIANS PAGE (clinic.html)
   Reuses the site tokens + .section / .section-header /
   .text-gradient / .btn primitives.
   ================================================ */

/* Page hero sub-line under the H1 */
.page-hero .page-hero-sub {
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
}

/* ---- The Challenge: pain-point card ---- */
.problem-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}
.problem-card h3 {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 1.25rem;
}
.pain-list { display: flex; flex-direction: column; gap: 1rem; }
.pain-list li {
  display: flex; align-items: flex-start; gap: 0.85rem;
  font-size: 1rem; color: var(--text); line-height: 1.5;
}
.pain-icon {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #FEE2E2; color: #DC2626;
  font-size: 0.95rem; line-height: 1;
  box-shadow: 0 0 0 5px rgba(252,165,165,0.15);
  margin-top: 0.05rem;
}

/* ---- The Solution: 2x2 check grid ---- */
.clin-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin: 0 auto;
}
.check-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  transition: all var(--transition);
}
.check-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}
.check-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 14px -4px rgba(37,99,235,0.45);
}
.check-item p {
  font-size: 0.95rem; color: var(--text);
  line-height: 1.5; font-weight: 500; margin: 0;
}

/* ---- Benefits: two cards with dot headers ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 900px;
  margin: 0 auto;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem 1.85rem;
}
.benefit-card h3 {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.benefit-card h3::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
}
.benefit-list { display: flex; flex-direction: column; gap: 0.85rem; }
.benefit-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem; color: var(--text-light); line-height: 1.5;
}
.benefit-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---- Better Outcomes: comparison grid ---- */
.compare {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.compare-head {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700; font-size: 1.05rem;
  color: #fff;
}
.compare-head--trad { background: #94A3B8; }
.compare-head--ai   { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.compare-cell {
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.compare-cell--trad {
  background: var(--bg-alt);
  color: var(--text-light);
  border: 1px solid var(--border);
}
.compare-cell--ai {
  background: #fff;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.compare-arrow {
  font-size: 1.5rem; font-weight: 700;
  color: var(--primary);
  opacity: 0.6;
  text-align: center;
  -webkit-text-stroke: 1.2px var(--primary);
}
.compare-spacer { width: 24px; }

/* ---- Two-column hero with image ---- */
.clin-hero { text-align: left; }
.clin-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.clin-hero-text .page-hero-sub { margin: 0.85rem 0 1.5rem; }
.clin-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---- Split: image + content side by side ---- */
.clin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.clin-split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.clin-split .problem-card    { max-width: none; margin: 0; }
.clin-split .clin-check-grid { grid-template-columns: 1fr; max-width: none; margin: 0; }

/* ---- Clinicians page responsive ---- */
@media (max-width: 768px) {
  .clin-check-grid { grid-template-columns: 1fr; }
  .benefits-grid   { grid-template-columns: 1fr; }
  .clin-hero       { text-align: center; }
  .clin-hero-inner,
  .clin-split      { grid-template-columns: 1fr; gap: 2rem; }
  .clin-hero-text .page-hero-sub { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .compare-row    { grid-template-columns: 1fr; gap: 0.4rem; text-align: center; }
  .compare-arrow  { transform: rotate(90deg); }
  .compare-spacer { display: none; }
  .problem-card   { padding: 1.5rem 1.25rem; }
}
