/* ══════════════════════════════════════
   MEDLITICS – Full Site Stylesheet
   Fonts: Playfair Display (headings) + DM Sans (body)
   Palette: Ink dark + Sky Blue (#1AACE5) + Red (#E53935) + Teal (#1D9E75)
   ══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

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

/* ── VARIABLES ── */
:root {
  --blue:        #1AACE5;
  --blue-bright: #2EC4F0;
  --blue-dim:    #0E86BB;
  --blue-light:  rgba(26,172,229,0.08);
  --blue-border: rgba(26,172,229,0.2);

  --red:         #E53935;
  --red-bright:  #FF5252;
  --red-light:   rgba(229,57,53,0.08);

  --teal:        #1D9E75;
  --teal-dim:    #0F6E56;
  --teal-light:  rgba(29,158,117,0.08);
  --teal-border: rgba(29,158,117,0.2);

  --amber:       #F59E0B;

  --ink:         #07090E;
  --ink2:        #0B1018;
  --surface:     #0F161F;
  --surface2:    #141E2A;
  --surface3:    #1A2535;

  --line:        rgba(255,255,255,0.06);
  --line2:       rgba(255,255,255,0.11);
  --line3:       rgba(255,255,255,0.18);

  --txt:         #EEF2F8;
  --txt2:        #8595AB;
  --txt3:        #4D5F73;

  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', system-ui, sans-serif;

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-xl:   32px;
  --r-pill: 100px;

  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t:      0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--ink);
  color: var(--txt);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ══════════════════════
   NAVIGATION
   ══════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
#nav.solid {
  background: rgba(7,9,14,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--line2);
}

.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-mark svg { width: 36px; height: 36px; }
.logo-wordmark {
  font-family: var(--font-d);
  font-size: 1.3rem; font-weight: 700;
  color: var(--txt); letter-spacing: -0.01em;
}
.logo-wordmark em { font-style: italic; color: var(--blue); }

.nav-links {
  display: flex; align-items: center;
  gap: 0; list-style: none;
}
.nav-links a {
  font-size: 0.82rem; font-weight: 400;
  color: var(--txt2); padding: 0 1rem;
  transition: color var(--t);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--txt); }

.nav-login-group {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.nav-divider { width: 1px; height: 18px; background: var(--line2); }

.btn-nav-patient {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; color: var(--txt2);
  border: 1px solid var(--line2);
  padding: 0.45rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.78rem; font-weight: 500;
  white-space: nowrap; transition: color var(--t), border-color var(--t), background var(--t);
}
.btn-nav-patient:hover { color: var(--blue); border-color: var(--blue-border); background: var(--blue-light); }

.btn-nav-doctor {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal); color: #fff; border: none;
  padding: 0.45rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; transition: background var(--t);
}
.btn-nav-doctor:hover { background: var(--teal-dim); }

.nav-icon { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--txt2); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════
   SHARED SECTION STYLES
   ══════════════════════ */
.section { padding: 110px 5%; }
.section-sm { padding: 80px 5%; }

.s-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--blue-border);
  background: var(--blue-light);
  color: var(--blue); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 1.25rem;
}
.s-pill.teal { background: var(--teal-light); border-color: var(--teal-border); color: var(--teal); }
.s-pill.red  { background: var(--red-light); border-color: rgba(229,57,53,0.2); color: var(--red-bright); }
.pill-line { width: 14px; height: 1px; display: inline-block; }
.s-pill .pill-line { background: var(--blue); }
.s-pill.teal .pill-line { background: var(--teal); }
.s-pill.red  .pill-line { background: var(--red-bright); }

.s-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.01em; color: var(--txt);
  margin-bottom: 1.1rem;
}
.s-title em { font-style: italic; color: var(--blue); }
.s-title .teal { color: var(--teal); }
.s-title .red  { color: var(--red-bright); }

.s-body {
  font-size: 1rem; color: var(--txt2);
  font-weight: 300; line-height: 1.9;
  max-width: 540px;
}

.s-head { margin-bottom: 4.5rem; }
.s-head-center { text-align: center; margin-bottom: 4.5rem; }
.s-head-center .s-body { margin: 0 auto; }

/* ══════════════════════
   BUTTONS
   ══════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.95rem 1.9rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.93rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue  { background: var(--blue);  color: #fff; }
.btn-blue:hover  { box-shadow: 0 0 36px rgba(26,172,229,0.45); }
.btn-teal  { background: var(--teal);  color: #fff; }
.btn-teal:hover  { box-shadow: 0 0 36px rgba(29,158,117,0.4); background: var(--teal-dim); }
.btn-red   { background: var(--red);   color: #fff; }
.btn-red:hover   { box-shadow: 0 0 36px rgba(229,57,53,0.4); }
.btn-ghost {
  background: transparent; color: var(--txt2);
  border: 1px solid var(--line2);
}
.btn-ghost:hover { color: var(--txt); border-color: var(--line3); }
.btn-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-sm { padding: 0.72rem 1.4rem; font-size: 0.85rem; }

/* ══════════════════════
   HERO (shared base)
   ══════════════════════ */
.hero {
  min-height: 100vh; padding: 110px 5% 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 5rem;
  position: relative; overflow: hidden;
}
.hero.single-col {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  min-height: 70vh;
  padding: 140px 10% 80px;
}
.hero-mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mesh-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.15;
}
.mesh-blob.b1 { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -100px; }
.mesh-blob.b2 { width: 400px; height: 400px; background: var(--red); bottom: -100px; left: 3%; }
.mesh-blob.b3 { width: 280px; height: 280px; background: var(--teal); top: 35%; left: 38%; opacity: 0.1; }
.mesh-blob.teal1 { background: var(--teal); }
.mesh-blob.teal2 { background: var(--blue); }
.hero-grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-left { position: relative; z-index: 2; }
.hero-right { position: relative; z-index: 2; display: flex; justify-content: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-light); border: 1px solid var(--blue-border);
  color: var(--blue-bright);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 1.5rem;
}
.hero-eyebrow.teal { background: var(--teal-light); border-color: var(--teal-border); color: var(--teal); }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
.eyebrow-dot.teal { background: var(--teal); }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.hero h1 {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.01em; color: var(--txt);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero h1 .teal { color: var(--teal); }
.hero h1 .red  { color: var(--red-bright); }

.hero-desc {
  font-size: 1.05rem; color: var(--txt2);
  font-weight: 300; line-height: 1.9;
  max-width: 480px; margin-bottom: 2.5rem;
}
.hero.single-col .hero-desc { max-width: 600px; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero.single-col .hero-ctas { justify-content: center; }

.hero-or { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
.or-line  { flex: 1; height: 1px; background: var(--line); }
.or-txt   { font-size: 0.68rem; color: var(--txt3); font-weight: 500; letter-spacing: 0.05em; }

.hero-learn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.83rem; color: var(--txt3); font-weight: 400;
  transition: color var(--t);
}
.hero-learn:hover { color: var(--blue); }
.learn-arrow { transition: transform 0.2s; }
.hero-learn:hover .learn-arrow { transform: translateX(4px); }

.hero-trust { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.trust-avatars { display: flex; }
.trust-av {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--ink); font-size: 0.6rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-left: -7px;
}
.trust-av:first-child { margin-left: 0; }
.ta1 { background: linear-gradient(135deg,#1AACE5,#0A6A96); color:#fff; }
.ta2 { background: linear-gradient(135deg,#E53935,#922B21); color:#fff; }
.ta3 { background: linear-gradient(135deg,#1D9E75,#085041); color:#fff; }
.ta4 { background: linear-gradient(135deg,#8B5CF6,#4C1D95); color:#fff; }
.trust-txt { font-size: 0.8rem; color: var(--txt2); font-weight: 300; line-height: 1.4; }
.trust-txt strong { color: var(--txt); font-weight: 600; }

/* ══════════════════════
   STATS BAR
   ══════════════════════ */
.stats-bar {
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2rem 5%; display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item { text-align: center; padding: 0 1.5rem; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--font-d); font-size: 2.2rem; font-weight: 700; color: var(--txt); line-height: 1; }
.stat-num .acc { color: var(--blue); }
.stat-num .acc-teal { color: var(--teal); }
.stat-desc { font-size: 0.77rem; color: var(--txt3); margin-top: 4px; font-weight: 300; }

/* ══════════════════════
   HEALTH DASHBOARD CARD (hero visual)
   ══════════════════════ */
.health-card {
  background: var(--surface); border: 1px solid var(--line2);
  border-radius: 24px; padding: 1.75rem;
  width: 100%; max-width: 360px; position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.health-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: 25px;
  background: linear-gradient(135deg, rgba(26,172,229,0.18), transparent 55%, rgba(229,57,53,0.08));
  pointer-events: none; z-index: -1;
}
.f-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--line2);
  border-radius: var(--r-pill); padding: 0.42rem 0.875rem;
  font-size: 0.68rem; font-weight: 500; color: var(--txt2);
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4); white-space: nowrap; z-index: 3;
}
.f-chip-dot { width: 5px; height: 5px; border-radius: 50%; }
.fc1 { top: -14px; right: -14px; animation: floatA 4s ease-in-out infinite; }
.fc2 { bottom: -14px; left: -18px; animation: floatB 5s ease-in-out infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes floatB { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.card-user-name { font-family: var(--font-d); font-size: 0.95rem; font-weight: 600; color: var(--txt); }
.card-user-sub  { font-size: 0.66rem; color: var(--txt3); font-weight: 300; }
.card-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  border: 2px solid var(--blue-border);
}
.live-badge { display: flex; align-items: center; gap: 4px; font-size: 0.62rem; font-weight: 700; color: #4ADE80; }
.live-dot   { width: 5px; height: 5px; border-radius: 50%; background: #4ADE80; animation: pulse 1.5s infinite; }

.vitals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 1.1rem; }
.vital-tile {
  background: var(--surface2); border-radius: 12px;
  padding: 0.75rem; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.vital-tile::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.vital-tile.v-ok::after   { background: linear-gradient(90deg,var(--blue),var(--blue-bright)); }
.vital-tile.v-warn::after { background: linear-gradient(90deg,var(--red),var(--red-bright)); }
.vital-tile.v-good::after { background: linear-gradient(90deg,#4ADE80,#22C55E); }
.vt-label { font-size: 0.6rem; color: var(--txt3); letter-spacing: 0.07em; text-transform: uppercase; }
.vt-val   { font-family: var(--font-d); font-size: 1.3rem; font-weight: 600; color: var(--txt); line-height: 1; margin-top: 2px; }
.vt-unit  { font-size: 0.6rem; color: var(--txt3); font-family: var(--font-b); }
.vt-badge { font-size: 0.58rem; font-weight: 600; padding: 2px 6px; border-radius: 100px; margin-top: 4px; display: inline-block; }
.vb-ok   { background: rgba(26,172,229,0.12); color: var(--blue-bright); }
.vb-warn { background: rgba(229,57,53,0.12);  color: #FF8A80; }
.vb-good { background: rgba(74,222,128,0.12); color: #4ADE80; }

.mini-chart-wrap { margin-bottom: 1.1rem; }
.mini-chart-head { display: flex; justify-content: space-between; margin-bottom: 7px; }
.mch-label { font-size: 0.67rem; color: var(--txt3); }
.mch-val   { font-size: 0.67rem; color: var(--blue); font-weight: 600; }
.mini-chart { height: 50px; display: flex; align-items: flex-end; gap: 4px; }
.m-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--surface3); }
.m-bar.hi { background: linear-gradient(to top, var(--blue-dim), var(--blue)); }

.alert-strip {
  background: rgba(229,57,53,0.07); border: 1px solid rgba(229,57,53,0.18);
  border-radius: 11px; padding: 0.65rem 0.875rem;
  display: flex; align-items: center; gap: 9px; margin-bottom: 0.875rem;
}
.alert-strip-icon {
  width: 26px; height: 26px; background: rgba(229,57,53,0.14);
  border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alert-strip-icon svg { width: 12px; height: 12px; stroke: var(--red-bright); fill: none; stroke-width: 2; stroke-linecap: round; }
.alert-title { font-size: 0.72rem; font-weight: 600; color: #FF8A80; }
.alert-sub   { font-size: 0.64rem; color: var(--txt3); }
.alert-time  { font-size: 0.6rem; color: var(--txt3); flex-shrink: 0; }

.doctor-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.45rem 0.75rem 0.45rem 0.45rem;
}
.doctor-chip-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg,var(--teal),var(--teal-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; color: #fff;
}
.doctor-chip-name { font-size: 0.7rem; font-weight: 600; color: var(--txt); flex: 1; }
.doctor-chip-role { font-size: 0.6rem; color: var(--txt3); }
.doctor-chip-status { font-size: 0.6rem; font-weight: 600; color: #4ADE80; background: rgba(74,222,128,0.1); padding: 2px 7px; border-radius: 100px; }

/* ══════════════════════
   FEATURE CARDS
   ══════════════════════ */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feat-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color var(--t), transform 0.25s var(--ease);
}
.feat-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity var(--t);
}
.feat-card:hover { transform: translateY(-3px); }

.feat-card.blue::before { background: linear-gradient(135deg,rgba(26,172,229,0.04),transparent); }
.feat-card.teal::before { background: linear-gradient(135deg,rgba(29,158,117,0.04),transparent); }
.feat-card.red::before  { background: linear-gradient(135deg,rgba(229,57,53,0.04),transparent); }
.feat-card.blue:hover { border-color: rgba(26,172,229,0.28); }
.feat-card.teal:hover { border-color: rgba(29,158,117,0.28); }
.feat-card.red:hover  { border-color: rgba(229,57,53,0.28); }
.feat-card:hover::before { opacity: 1; }

.feat-card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; border: 1px solid;
}
.feat-card-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat-card-icon.blue { background: var(--blue-light); border-color: var(--blue-border); }
.feat-card-icon.blue svg { stroke: var(--blue); }
.feat-card-icon.teal { background: var(--teal-light); border-color: var(--teal-border); }
.feat-card-icon.teal svg { stroke: var(--teal); }
.feat-card-icon.red  { background: var(--red-light);  border-color: rgba(229,57,53,0.2); }
.feat-card-icon.red svg  { stroke: var(--red-bright); }

.feat-card h3 {
  font-family: var(--font-d); font-size: 1.05rem; font-weight: 600;
  color: var(--txt); margin-bottom: 0.6rem; line-height: 1.3;
}
.feat-card p { font-size: 0.875rem; color: var(--txt2); font-weight: 300; line-height: 1.8; }
.feat-tag {
  display: inline-flex; align-items: center; margin-top: 1rem;
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: var(--r-pill);
}
.feat-tag.blue { color: var(--blue); background: var(--blue-light); }
.feat-tag.teal { color: var(--teal); background: var(--teal-light); }
.feat-tag.red  { color: var(--red-bright); background: var(--red-light); }

/* ══════════════════════
   FORMS
   ══════════════════════ */
.form-card {
  background: var(--surface2); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 2.5rem;
  max-width: 540px;
}
.form-card h3 {
  font-family: var(--font-d); font-size: 1.5rem; font-weight: 600;
  color: var(--txt); margin-bottom: 0.5rem;
}
.form-card .form-sub { font-size: 0.875rem; color: var(--txt2); font-weight: 300; margin-bottom: 2rem; line-height: 1.7; }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.25rem; }
.form-row label { font-size: 0.78rem; font-weight: 500; color: var(--txt2); letter-spacing: 0.02em; }
.form-row input,
.form-row select,
.form-row textarea {
  background: var(--surface3); border: 1px solid var(--line2);
  border-radius: var(--r-sm); color: var(--txt);
  font-family: var(--font-b); font-size: 0.9rem;
  padding: 0.75rem 1rem; outline: none;
  transition: border-color var(--t), background var(--t);
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--txt3); }
.form-row select option { background: var(--surface2); color: var(--txt); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--blue-border);
  background: var(--surface2);
  box-shadow: 0 0 0 3px rgba(26,172,229,0.08);
}
.form-row textarea { resize: vertical; min-height: 100px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-submit {
  width: 100%; padding: 1rem; border-radius: var(--r-pill);
  background: var(--blue); color: #fff; border: none;
  font-family: var(--font-b); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background var(--t), transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--blue-dim); transform: translateY(-1px); box-shadow: 0 0 24px rgba(26,172,229,0.35); }
.form-submit.teal { background: var(--teal); }
.form-submit.teal:hover { background: var(--teal-dim); box-shadow: 0 0 24px rgba(29,158,117,0.35); }

.form-note { font-size: 0.73rem; color: var(--txt3); margin-top: 0.875rem; text-align: center; line-height: 1.5; }

.form-success-msg {
  display: none; background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2); color: #4ADE80;
  padding: 1rem 1.5rem; border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 500; margin-top: 1rem; text-align: center;
}

/* ══════════════════════
   TESTIMONIALS
   ══════════════════════ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.testi-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2rem;
  transition: border-color var(--t), transform 0.25s var(--ease);
}
.testi-card:hover { border-color: var(--line2); transform: translateY(-3px); }
.testi-card.featured {
  border-color: var(--blue-border);
  background: linear-gradient(135deg, rgba(26,172,229,0.05), var(--surface));
}

.quote-mark { font-family: Georgia, serif; font-size: 3rem; color: var(--blue); line-height: 0.5; margin-bottom: 1.1rem; opacity: 0.55; }
.testi-card blockquote { font-family: var(--font-d); font-size: 0.95rem; font-weight: 400; font-style: italic; color: var(--txt2); line-height: 1.8; margin-bottom: 1.5rem; }
.testi-foot { display: flex; align-items: center; gap: 10px; }
.testi-av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testi-name { font-size: 0.82rem; font-weight: 600; color: var(--txt); }
.testi-role { font-size: 0.7rem; color: var(--txt3); font-weight: 300; }
.star-row { color: #F59E0B; font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 1rem; }

/* ══════════════════════
   PERKS LIST
   ══════════════════════ */
.perks-list { list-style: none; display: flex; flex-direction: column; gap: 0.875rem; }
.perks-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: var(--txt2); font-weight: 300; line-height: 1.65;
}
.perk-icon {
  width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.perk-icon svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.perk-icon.blue { background: var(--blue-light); border: 1px solid var(--blue-border); color: var(--blue); }
.perk-icon.teal { background: var(--teal-light); border: 1px solid var(--teal-border); color: var(--teal); }

/* ══════════════════════
   HOW IT WORKS
   ══════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.step-item {
  padding: 2.25rem 1.75rem; border-right: 1px solid var(--line);
  transition: background var(--t);
}
.step-item:last-child { border-right: none; }
.step-item:hover { background: var(--surface); }
.step-num {
  font-family: var(--font-d); font-size: 2.8rem; font-weight: 700;
  color: var(--line2); line-height: 1; margin-bottom: 1rem;
  transition: color var(--t);
}
.step-item:hover .step-num { color: var(--blue); opacity: 0.5; }
.step-icon-wrap {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-light); border: 1px solid var(--blue-border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.step-icon-wrap svg { width: 19px; height: 19px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-item h3 { font-family: var(--font-d); font-size: 1rem; font-weight: 600; color: var(--txt); margin-bottom: 0.5rem; line-height: 1.3; }
.step-item p  { font-size: 0.83rem; color: var(--txt3); font-weight: 300; line-height: 1.75; }

/* ══════════════════════
   INSURANCE LOGOS
   ══════════════════════ */
.ins-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3.5rem; }
.ins-tile {
  background: var(--surface2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.75rem;
  min-width: 148px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--t), transform 0.2s;
}
.ins-tile:hover { border-color: var(--blue-border); transform: translateY(-2px); }
.ins-tile span {
  font-family: var(--font-d); font-size: 0.82rem; font-weight: 600;
  color: var(--txt3); letter-spacing: 0.01em; transition: color var(--t);
}
.ins-tile:hover span { color: var(--txt2); }

/* ══════════════════════
   CTA SECTION
   ══════════════════════ */
.cta-block {
  background: var(--surface); border: 1px solid var(--line2);
  border-radius: var(--r-xl); padding: 5rem;
  text-align: center; position: relative; overflow: hidden;
  margin: 0 2%;
}
.cta-block::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(26,172,229,0.07), transparent 70%);
  pointer-events: none;
}
.cta-block.teal::before { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(29,158,117,0.07), transparent 70%); }
.cta-block h2 { font-family: var(--font-d); font-size: clamp(2rem,4vw,3.4rem); font-weight: 700; color: var(--txt); letter-spacing: -0.01em; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-block h2 em { font-style: italic; color: var(--blue); }
.cta-block h2 .teal { color: var(--teal); }
.cta-block p { font-size: 1rem; color: var(--txt2); font-weight: 300; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.9; position: relative; z-index: 1; }
.cta-block .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* Inline waiting list form in CTA */
.cta-inline-form {
  display: flex; gap: 0; max-width: 460px; margin: 0 auto 1rem;
  background: var(--surface2); border: 1px solid var(--line2);
  border-radius: var(--r-pill); overflow: hidden; padding: 5px;
  position: relative; z-index: 1;
}
.cta-inline-select {
  flex: 0 0 auto; background: transparent; border: none;
  color: var(--txt2); font-family: var(--font-b); font-size: 0.82rem;
  padding: 0 0.875rem; outline: none; cursor: pointer; appearance: none; width: 150px;
}
.cta-inline-select option { background: var(--surface2); color: var(--txt); }
.cta-inline-divider { width: 1px; background: var(--line2); margin: 0.25rem 0; }
.cta-inline-email {
  flex: 1; background: transparent; border: none; color: var(--txt);
  font-family: var(--font-b); font-size: 0.88rem;
  padding: 0.5rem 0.875rem; outline: none; min-width: 0;
}
.cta-inline-email::placeholder { color: var(--txt3); }
.cta-inline-submit {
  background: var(--blue); color: #fff; border: none;
  padding: 0.65rem 1.4rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.83rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background var(--t);
  flex-shrink: 0;
}
.cta-inline-submit:hover { background: var(--blue-dim); }
.cta-inline-submit.teal { background: var(--teal); }
.cta-inline-submit.teal:hover { background: var(--teal-dim); }
.cta-note { font-size: 0.72rem; color: var(--txt3); position: relative; z-index: 1; }

/* ══════════════════════
   DOCTOR PANEL (visual)
   ══════════════════════ */
.doc-panel {
  background: var(--surface); border: 1px solid var(--line2);
  border-radius: 22px; padding: 1.75rem; position: relative; overflow: hidden;
}
.doc-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue), transparent);
}
.dp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.dp-title { font-family: var(--font-d); font-size: 0.9rem; font-weight: 600; color: var(--txt); }
.dp-sub { font-size: 0.68rem; color: var(--txt3); }
.patient-row-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.7rem 0.875rem; border-radius: 11px;
  transition: background var(--t);
}
.patient-row-item:hover { background: var(--surface2); }
.pr-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.pr-av.a1 { background: linear-gradient(135deg,var(--blue),var(--blue-dim)); }
.pr-av.a2 { background: linear-gradient(135deg,#8B5CF6,#4C1D95); }
.pr-av.a3 { background: linear-gradient(135deg,#F59E0B,#92400E); }
.pr-av.a4 { background: linear-gradient(135deg,#10B981,#064E3B); }
.pr-info { flex: 1; min-width: 0; }
.pr-name { font-size: 0.8rem; font-weight: 600; color: var(--txt); }
.pr-detail { font-size: 0.67rem; color: var(--txt3); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-status { font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); flex-shrink: 0; }
.ps-ok { background: rgba(74,222,128,0.1); color: #4ADE80; }
.ps-al { background: rgba(229,57,53,0.12); color: #FF8A80; }
.ps-rv { background: rgba(251,191,36,0.1); color: #FCD34D; }
.dp-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 1rem; }
.dp-metric { background: var(--surface2); border: 1px solid var(--line); border-radius: 11px; padding: 0.875rem; text-align: center; }
.dp-metric-num { font-family: var(--font-d); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.dp-metric-lbl { font-size: 0.62rem; color: var(--txt3); margin-top: 3px; }

/* ══════════════════════
   FOOTER
   ══════════════════════ */
footer {
  background: var(--ink2); border-top: 1px solid var(--line);
  padding: 64px 5% 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-desc { font-size: 0.83rem; color: var(--txt3); font-weight: 300; line-height: 1.8; max-width: 220px; margin: 0.875rem 0 1.25rem; }
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--txt3);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.footer-social-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.footer-social-btn svg { width: 14px; height: 14px; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--txt3); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.83rem; color: var(--txt3); font-weight: 300; transition: color var(--t); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.875rem;
}
.footer-bottom p { font-size: 0.73rem; color: var(--txt3); font-weight: 300; }
.footer-bottom a { color: var(--txt3); transition: color var(--t); }
.footer-bottom a:hover { color: var(--blue); }

/* ══════════════════════
   REVEAL ANIMATIONS
   ══════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ══════════════════════
   RESPONSIVE
   ══════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 120px 5% 60px; }
  .hero-right { display: none; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-item { border-bottom: 1px solid var(--line); }
  .step-item:nth-child(even) { border-right: none; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--line); }
  .stat-item:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
  .feat-grid-3 { grid-template-columns: 1fr 1fr; }
  .cta-block { padding: 3.5rem 2.5rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-login-group { display: none; }
  .nav-links {
    display: none; position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--ink2); flex-direction: column;
    align-items: flex-start; gap: 0;
    border-bottom: 1px solid var(--line); padding-bottom: 1rem; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.875rem 5%; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .nav-mobile-sep { padding: 0.75rem 5% 0.25rem; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt3); }
  .nav-mobile-patient { color: var(--blue) !important; font-weight: 500 !important; }
  .nav-mobile-doctor  { color: var(--teal) !important; font-weight: 600 !important; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; }
  .btn { justify-content: center; }
  .testi-grid { grid-template-columns: 1fr; }
  .feat-grid-2, .feat-grid-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .cta-inline-form { flex-direction: column; border-radius: 16px; padding: 1rem; gap: 8px; }
  .cta-inline-select, .cta-inline-divider { display: none; }
  .cta-inline-email { padding: 0.5rem; }
  .cta-inline-submit { width: 100%; border-radius: var(--r-pill); padding: 0.875rem; }
  .cta-block { padding: 2.5rem 1.5rem; margin: 0; border-radius: var(--r-lg); }
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-item { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-bar { padding: 1.5rem 5%; }
  .section { padding: 80px 5%; }
  .hero { padding: 100px 5% 60px; }
  .feat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2rem; }
  .trust-txt { font-size: 0.72rem; }
  .hero-trust { flex-wrap: wrap; }
  .s-title { font-size: 1.8rem; }
}

/* ══ v4: Nav button priority fix ══ */
/* Patient = PRIMARY (solid blue) */
.btn-nav-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #fff;
  border: none;
  padding: 0.48rem 1.1rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; text-decoration: none;
  transition: background var(--t), box-shadow 0.2s;
}
.btn-nav-primary:hover {
  background: var(--blue-dim);
  box-shadow: 0 0 20px rgba(26,172,229,0.35);
}

/* Doctor = SECONDARY (ghost) */
.btn-nav-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--txt3);
  border: 1px solid var(--line2);
  padding: 0.48rem 1rem; border-radius: var(--r-pill);
  font-family: var(--font-b); font-size: 0.78rem; font-weight: 400;
  white-space: nowrap; text-decoration: none;
  transition: color var(--t), border-color var(--t);
}
.btn-nav-secondary:hover { color: var(--txt2); border-color: var(--line3); }

/* Mobile nav: patient link gets blue highlight */
.nav-mobile-patient { color: var(--blue) !important; font-weight: 600 !important; }
.nav-mobile-doctor  { color: var(--txt2) !important; font-weight: 400 !important; }
