/* ============================================================
   VitalCare Health — main stylesheet (no frameworks)
   Fonts are self-hosted (OFL licensed, Google Fonts).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../assets/fonts/fraunces-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
  --background: oklch(0.99 0.005 255);
  --foreground: oklch(0.15 0.04 255);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.15 0.04 255);
  --primary: oklch(0.52 0.19 255);
  --primary-foreground: oklch(0.99 0.01 255);
  --secondary: oklch(0.96 0.015 255);
  --secondary-foreground: oklch(0.25 0.06 255);
  --muted: oklch(0.96 0.01 255);
  --muted-foreground: oklch(0.45 0.03 255);
  --accent: oklch(0.92 0.03 255);
  --accent-foreground: oklch(0.15 0.05 255);
  --destructive: oklch(0.55 0.18 25);
  --border: oklch(0.9 0.02 255);
  --ring: oklch(0.52 0.19 255);
  --chart-2: oklch(0.65 0.15 210);
  --chart-3: oklch(0.45 0.15 280);
  --radius: 0.65rem;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 0.875rem; font-weight: 600; margin: 0; }
p, ul, figure, blockquote, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
section[id] { scroll-margin-top: 5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
.container-narrow { max-width: 48rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }
.text-primary { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; white-space: nowrap; border-radius: 9999px;
  transition: filter 0.3s ease-out, background-color 0.3s ease-out, box-shadow 0.3s ease-out, transform 0.3s ease-out;
}
.btn-md { height: 2.5rem; padding: 0 1.25rem; font-size: 0.875rem; }
.btn-lg { height: 3rem; padding: 0 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }
.btn-outline { border: 1px solid var(--border); background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-ghost { color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-onprimary { background: var(--primary-foreground); color: var(--primary); box-shadow: var(--shadow-md); }
.btn-onprimary:hover { filter: brightness(0.97); }
.btn-onprimary-outline { border: 1px solid oklch(0.99 0.01 255 / 0.4); background: transparent; color: var(--primary-foreground); }
.btn-onprimary-outline:hover { background: oklch(0.99 0.01 255 / 0.1); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid oklch(0.9 0.02 255 / 0.6);
  background: oklch(0.99 0.005 255 / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm);
}
.brand-mark .icon { width: 1.25rem; height: 1.25rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-text small { font-size: 11px; font-weight: 500; color: var(--muted-foreground); }
.brand-name { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.main-nav { display: none; align-items: center; gap: 0.25rem; }
.main-nav a {
  border-radius: 9999px; padding: 0.5rem 1rem;
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.main-nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.header-auth { display: none; align-items: center; gap: 0.5rem; }
.nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; color: var(--foreground); }
.nav-burger:hover { background: var(--accent); }
.mobile-nav { border-top: 1px solid var(--border); padding: 0.75rem 1rem 1rem; background: var(--background); display: flex; flex-direction: column; gap: 0.125rem; }
.mobile-nav > a { padding: 0.625rem 0.75rem; border-radius: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground); }
.mobile-nav > a:hover { background: var(--accent); color: var(--accent-foreground); }
.mobile-auth { display: flex; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: 0.5rem; }
.mobile-auth .btn { flex: 1; }
@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-auth { display: flex; }
  .nav-burger, .mobile-nav { display: none !important; }
}

/* Auth dropdown (desktop) */
.auth-user-wrap { position: relative; }
.avatar-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.875rem; font-weight: 700; text-transform: uppercase; box-shadow: var(--shadow-sm);
}
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 13rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  box-shadow: var(--shadow-lg); padding: 0.375rem; z-index: 60;
}
.user-dropdown .dd-label { padding: 0.375rem 0.625rem; font-size: 0.75rem; color: var(--muted-foreground); }
.user-dropdown .dd-name { padding: 0 0.625rem; font-size: 0.875rem; font-weight: 600; }
.user-dropdown .dd-email { padding: 0 0.625rem 0.5rem; font-size: 0.75rem; color: var(--muted-foreground); word-break: break-all; }
.user-dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 0.25rem 0; }
.dd-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.625rem; border-radius: 0.5rem;
  font-size: 0.875rem; color: var(--foreground); text-align: left;
}
.dd-item:hover { background: var(--accent); }
.dd-item .icon { width: 1rem; height: 1rem; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgb(0 0 0 / 0.45); backdrop-filter: blur(2px);
}
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 24rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: var(--shadow-lg); padding: 1.5rem;
}
.modal h3 { font-size: 1.125rem; }
.modal p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1.25rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 9999px; filter: blur(60px); pointer-events: none; }
.hero-glow-right { right: -8rem; top: -8rem; width: 24rem; height: 24rem; background: oklch(0.52 0.19 255 / 0.1); }
.hero-glow-left { left: -6rem; top: 12rem; width: 18rem; height: 18rem; background: oklch(0.65 0.15 210 / 0.15); }
.hero-grid {
  position: relative; display: grid; gap: 3rem;
  padding-block: 3.5rem 4rem;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2.5rem; padding-block: 5rem 6rem; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  border: 1px solid oklch(0.52 0.19 255 / 0.2); background: oklch(0.52 0.19 255 / 0.05);
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; color: var(--primary);
}
.hero-lede { margin-top: 1.25rem; max-width: 36rem; color: var(--muted-foreground); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  max-width: 32rem; margin-top: 2.5rem;
  border-top: 1px solid oklch(0.9 0.02 255 / 0.7); padding-top: 1.5rem;
}
.stat-value { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 700; color: var(--primary); }
.stat-label { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .stat-label { font-size: 0.875rem; } }

.hero-media { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; }
@media (min-width: 1024px) { .hero-media { max-width: none; } }
.hero-figure { border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.hero-ecg { position: absolute; left: 0; bottom: -1.5rem; width: 66%; height: 3.5rem; color: oklch(0.52 0.19 255 / 0.5); }
.float-card {
  position: absolute; border-radius: 1rem;
  background: oklch(1 0 0 / 0.95); border: 1px solid var(--border);
  box-shadow: var(--shadow-md); padding: 0.75rem 1rem;
  backdrop-filter: blur(6px);
}
.float-card-top { left: -0.75rem; top: 2rem; }
@media (min-width: 640px) { .float-card-top { left: -1.5rem; } }
.float-label { font-size: 0.75rem; color: var(--muted-foreground); }
.float-value { margin-top: 0.125rem; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.float-value span { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.float-card-bottom { right: 1rem; bottom: -1.25rem; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .float-card-bottom { right: 2rem; } }
.float-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: oklch(0.65 0.15 210 / 0.2); color: var(--chart-3);
}
.float-copy { line-height: 1.3; }
.float-title { font-size: 0.875rem; font-weight: 600; }
.float-sub { font-size: 0.75rem; color: var(--muted-foreground); }

/* ECG animation */
.ecg-path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: ecg-dash 3.2s linear infinite; }
@keyframes ecg-dash { to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: 4rem; }
@media (min-width: 1024px) { .section { padding-block: 6rem; } }
.band { background: oklch(0.96 0.015 255 / 0.4); }
.section-head { max-width: 42rem; margin-inline: auto; text-align: center; }
.eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.section-head h2 { margin-top: 0.75rem; }
.lede { margin-top: 1rem; color: var(--muted-foreground); }
.section-cta { margin-top: 2.5rem; text-align: center; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* Services */
.services-grid { margin-top: 3rem; }
.service-card { display: flex; flex-direction: column; padding: 1.5rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 1rem;
  background: oklch(0.52 0.19 255 / 0.1); color: var(--primary);
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.service-card:hover .card-icon { background: var(--primary); color: var(--primary-foreground); }
.service-card h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.service-card > p { margin-top: 0.5rem; flex: 1; font-size: 0.875rem; color: var(--muted-foreground); }
.point-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.375rem; }
.point-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: oklch(0.15 0.04 255 / 0.8); }
.point-list li::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: oklch(0.52 0.19 255 / 0.6); }

/* Assistant */
.assistant-wrap { max-width: 48rem; margin: 2.5rem auto 0; }
.assistant-card { padding: 2rem; }
@media (min-width: 640px) { .assistant-card { padding: 2.5rem; } }
.assistant-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }
.assistant-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: oklch(0.52 0.19 255 / 0.1); color: var(--primary);
}
.assistant-hero h3 { margin-top: 1.25rem; font-size: 1.25rem; }
.assistant-hero p { margin-top: 0.5rem; max-width: 36rem; font-size: 0.875rem; color: var(--muted-foreground); }
.assistant-highlights { margin-top: 2rem; }
.highlight { border: 1px solid oklch(0.9 0.02 255 / 0.6); background: oklch(0.99 0.005 255 / 0.6); border-radius: 0.75rem; padding: 1.25rem; transition: box-shadow 0.3s ease-out; }
.highlight:hover { box-shadow: var(--shadow-sm); }
.highlight-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: oklch(0.52 0.19 255 / 0.1); color: var(--primary); }
.highlight-icon .icon { width: 1.125rem; height: 1.125rem; }
.highlight h4 { margin-top: 0.75rem; }
.highlight p { margin-top: 0.375rem; font-size: 0.75rem; color: var(--muted-foreground); }
.assistant-cta { display: flex; justify-content: center; margin-top: 2rem; }
.assistant-disclaimer {
  display: flex; align-items: flex-start; justify-content: center; gap: 0.375rem;
  margin-top: 1rem; text-align: center;
  font-size: 0.75rem; line-height: 1.6; color: var(--muted-foreground);
}
.assistant-disclaimer .icon { margin-top: 0.125rem; }

/* Steps */
.steps-grid { margin-top: 3rem; position: relative; }
.steps-line { display: none; position: absolute; left: 16%; right: 16%; top: 2.5rem; border-top: 2px dashed oklch(0.52 0.19 255 / 0.3); }
@media (min-width: 768px) { .steps-line { display: block; } }
.step-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem; }
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem; border-radius: 9999px;
  border: 4px solid var(--secondary); background: oklch(0.52 0.19 255 / 0.1); color: var(--primary);
}
.step-icon .icon { width: 2.25rem; height: 2.25rem; stroke-width: 1.6; }
.step-num { margin-top: 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: oklch(0.52 0.19 255 / 0.7); }
.step-card h3 { margin-top: 0.375rem; }
.step-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* Doctors */
.doctors-grid { margin-top: 3rem; }
.doctor-card { overflow: hidden; }
.doctor-photo { aspect-ratio: 1 / 1; overflow: hidden; background: oklch(0.96 0.015 255 / 0.5); }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease-out; }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }
.doctor-body { padding: 1.25rem; }
.doctor-body h3 { display: flex; align-items: center; gap: 0.375rem; font-size: 1rem; }
.certified { color: var(--primary); }
.doctor-title { margin-top: 0.125rem; font-size: 0.875rem; color: var(--primary); }
.doctor-meta { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.tag-row span { border-radius: 9999px; background: oklch(0.52 0.19 255 / 0.08); padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 500; color: var(--primary); }

/* Testimonials */
.testimonials-grid { margin-top: 3rem; }
.testimonial { display: flex; flex-direction: column; padding: 1.5rem; }
.quote-icon { width: 1.75rem; height: 1.75rem; color: oklch(0.52 0.19 255 / 0.3); }
.testimonial blockquote { margin-top: 0.75rem; flex: 1; font-size: 0.875rem; color: oklch(0.15 0.04 255 / 0.9); }
.stars { display: flex; gap: 0.125rem; margin-top: 1rem; color: var(--primary); }
.testimonial figcaption { margin-top: 0.75rem; border-top: 1px solid oklch(0.9 0.02 255 / 0.7); padding-top: 0.75rem; }
.t-name { font-size: 0.875rem; font-weight: 600; }
.t-meta { margin-top: 0.125rem; font-size: 0.75rem; color: var(--muted-foreground); }

/* FAQ */
.faq-list { margin-top: 2.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 0; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chevron { color: var(--muted-foreground); transition: transform 0.3s ease-out; }
.faq-item[open] .chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 0 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* CTA */
.cta-section { padding: 0 1rem 4rem; }
@media (min-width: 640px) { .cta-section { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .cta-section { padding-inline: 2rem; padding-bottom: 6rem; } }
.cta-banner {
  position: relative; overflow: hidden;
  max-width: 80rem; margin-inline: auto;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 1.5rem; text-align: center;
  padding: 3.5rem 1.5rem;
}
@media (min-width: 640px) { .cta-banner { padding: 3.5rem 3rem; } }
@media (min-width: 1024px) { .cta-banner { padding: 5rem 3rem; } }
.cta-ecg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.12; pointer-events: none; }
.cta-content { position: relative; }
.cta-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: oklch(0.99 0.01 255 / 0.15);
}
.cta-content h2 { margin: 1.5rem auto 0; max-width: 42rem; }
.cta-content > p { margin: 1rem auto 0; max-width: 36rem; color: oklch(0.99 0.01 255 / 0.85); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: oklch(0.96 0.015 255 / 0.4); }
.site-footer .container { padding-block: 3rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer h3 { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; }
.site-footer nav ul, .footer-contact ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.site-footer nav a, .footer-contact li { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.3s ease-out; }
.site-footer nav a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact .icon { margin-top: 0.2rem; color: var(--primary); }
.legal-box {
  margin-top: 2.5rem; border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--card); padding: 1rem;
  font-size: 0.75rem; line-height: 1.7; color: var(--muted-foreground);
}
.legal-box strong { color: oklch(0.15 0.04 255 / 0.8); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: 2rem; border-top: 1px solid oklch(0.9 0.02 255 / 0.7); padding-top: 1.5rem;
  font-size: 0.75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Login page ---------- */
.auth-layout { display: flex; min-height: 100vh; }
.auth-aside {
  display: none; position: relative; overflow: hidden;
  width: 46%; flex-direction: column; justify-content: space-between;
  background: var(--primary); color: var(--primary-foreground); padding: 2.5rem;
}
@media (min-width: 1024px) { .auth-aside { display: flex; } }
.auth-aside .brand-mark { background: oklch(0.99 0.01 255 / 0.15); color: var(--primary-foreground); }
.auth-aside-brand { position: relative; display: inline-flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.auth-aside-body { position: relative; }
.auth-aside-body h2 { color: var(--primary-foreground); }
.auth-highlights { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.auth-highlights li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: oklch(0.99 0.01 255 / 0.9); }
.auth-highlights .hl-icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: oklch(0.99 0.01 255 / 0.15);
}
.auth-highlights .hl-icon .icon { width: 1.125rem; height: 1.125rem; }
.auth-aside .ecg { margin-top: 2.5rem; width: 100%; max-width: 28rem; height: 4rem; color: oklch(0.99 0.01 255 / 0.4); }
.auth-legal { position: relative; font-size: 0.75rem; line-height: 1.7; color: oklch(0.99 0.01 255 / 0.7); }
.auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem; }
@media (min-width: 640px) { .auth-main { padding-inline: 2rem; } }
.auth-card { width: 100%; max-width: 28rem; }
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 2rem; }
.auth-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-md);
}
.auth-logo .icon { width: 2.25rem; height: 2.25rem; }
.auth-head h1 { font-size: 1.5rem; margin-top: 1rem; }
.auth-head p { margin-top: 0.375rem; font-size: 0.875rem; color: var(--muted-foreground); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; background: var(--muted); border-radius: 0.75rem; padding: 0.25rem; }
.tab { height: 2.5rem; border-radius: 0.6rem; font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.tab.active { background: var(--card); color: var(--foreground); box-shadow: var(--shadow-sm); }
.auth-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 2.75rem; padding: 0 0.875rem;
  border: 1px solid var(--border); border-radius: 0.75rem;
  background: var(--background); outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px oklch(0.52 0.19 255 / 0.25); }
.input-wrap .input { padding-right: 2.5rem; }
.eye-btn {
  position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
  display: inline-flex; color: var(--muted-foreground);
}
.eye-btn:hover { color: var(--foreground); }
.eye-btn .icon { width: 1rem; height: 1rem; }
.btn-block { width: 100%; height: 2.75rem; border-radius: 0.75rem; font-size: 1rem; }
.alert { display: flex; align-items: flex-start; gap: 0.5rem; border-radius: 0.5rem; padding: 0.625rem 0.75rem; font-size: 0.75rem; line-height: 1.6; }
.alert .icon { width: 0.875rem; height: 0.875rem; margin-top: 0.125rem; }
.alert-error { border: 1px solid oklch(0.55 0.18 25 / 0.3); background: oklch(0.55 0.18 25 / 0.05); color: var(--destructive); }
.alert-info { border: 1px solid oklch(0.65 0.15 210 / 0.4); background: oklch(0.65 0.15 210 / 0.1); color: var(--foreground); }
.alert-info .icon { color: var(--primary); }
.form-switch { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.form-switch button { margin-left: 0.25rem; font-weight: 500; color: var(--primary); }
.form-switch button:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-home { display: flex; justify-content: center; margin-top: 2rem; }
.spinner {
  display: inline-block; width: 1rem; height: 1rem; flex-shrink: 0;
  border: 2px solid oklch(0.99 0.01 255 / 0.4); border-top-color: var(--primary-foreground);
  border-radius: 9999px; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ecg-path { animation: none; stroke-dashoffset: 0; }
  .card, .card:hover, .doctor-card:hover .doctor-photo img { transition: none; transform: none; }
}