/* ===================== Design tokens ===================== */
:root {
  --page-plane: #0d0d0d;
  --surface-1: #14161c;
  --surface-2: #1a1a19;
  --surface-glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.06);

  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;

  --series-blue: #3987e5;
  --series-aqua: #199e70;
  --series-yellow: #c98500;
  --series-violet: #9085e9;

  --accent: #3987e5;
  --accent-2: #199e70;
  --accent-soft: rgba(57,135,229,0.15);

  --whatsapp: #22c55e;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 0 1px rgba(57,135,229,0.15), 0 20px 60px -20px rgba(57,135,229,0.35);
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page-plane);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
svg { display: block; }

/* subtle grain / vignette across whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(57,135,229,0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(25,158,112,0.08), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* cursor glow that follows pointer (desktop only) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,135,229,0.10), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-1000px,-1000px);
  transition: opacity .3s ease;
  will-change: transform;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ===================== Buttons ===================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--series-blue), var(--series-aqua));
  color: #051019;
  box-shadow: 0 8px 30px -10px rgba(57,135,229,0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(57,135,229,0.7); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--series-blue); background: var(--accent-soft); }
.btn-ghost { background: var(--surface-glass); border-color: var(--border); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-whatsapp { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.3); }
.btn-whatsapp:hover { background: rgba(34,197,94,0.2); transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* magnetic hover handled via JS transform; keep transition here */
.magnetic { transition: transform .25s var(--ease), box-shadow .35s var(--ease), background .25s ease, border-color .25s ease; }

/* ===================== Nav ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13,13,13,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border-soft); background: rgba(13,13,13,0.82); }
.nav-inner { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; color: var(--series-blue); }

.nav-links { display: flex; gap: 24px; }
.nav-links a { position: relative; font-size: 14px; color: var(--text-secondary); padding: 6px 0; transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--series-blue), var(--series-aqua));
  transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-mobile-actions { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: .5; }
.hero-orb-1 { width: 480px; height: 480px; background: var(--series-blue); top: -180px; left: -120px; }
.hero-orb-2 { width: 420px; height: 420px; background: var(--series-aqua); bottom: -200px; right: -100px; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--series-aqua); background: rgba(25,158,112,0.12); border: 1px solid rgba(25,158,112,0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; margin-bottom: 22px; }
.text-gradient { background: linear-gradient(135deg, var(--series-blue), var(--series-aqua)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  font-size: 13px; color: var(--text-secondary); padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-glass);
  display: flex; align-items: center; gap: 6px;
}
.hero-chips li::before { content: "✓"; color: var(--series-aqua); font-weight: 700; }

/* ===================== Sections ===================== */
.section { position: relative; z-index: 2; padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 15%, rgba(255,255,255,0.02) 85%, transparent); }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--series-blue); margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); max-width: 640px; margin-bottom: 14px; }
.section-sub { font-size: 15.5px; color: var(--text-secondary); max-width: 560px; margin-bottom: 48px; }

/* ===================== Grids & cards ===================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease);
  will-change: transform;
}
.card:hover { border-color: rgba(57,135,229,0.4); box-shadow: var(--shadow-glow); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 17.5px; margin-bottom: 8px; }
.card > p { color: var(--text-secondary); font-size: 14px; margin-bottom: 16px; }
.card-list { display: flex; flex-direction: column; gap: 7px; }
.card-list li { font-size: 13.5px; color: var(--text-secondary); padding-left: 18px; position: relative; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--series-blue); }

/* ===================== Charts ===================== */
.chart-grid { align-items: stretch; }
.chart-card {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 18px 14px;
  position: relative;
  transition: border-color .3s ease, transform .4s var(--ease);
}
.chart-card:hover { border-color: var(--border); transform: translateY(-3px); }
.chart-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.chart-card-head h4 { font-size: 14.5px; color: var(--text-primary); }
.chart-unit { font-size: 11px; color: var(--text-muted); }
.metric-canvas { width: 100%; height: 160px; display: block; cursor: crosshair; }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(20,22,28,0.95); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 10px; font-size: 12px; color: var(--text-primary); white-space: nowrap;
  transform: translate(-50%, -120%);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.6);
}
.chart-tooltip strong { color: var(--series-blue); }

/* ===================== Split (telemedicine) ===================== */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; }
.check-list li { font-size: 14.5px; color: var(--text-secondary); padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(25,158,112,0.15); color: var(--series-aqua); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.phone-mock {
  max-width: 320px; margin: 0 auto;
  background: #0a0c10; border: 1px solid var(--border); border-radius: 34px;
  padding: 16px 12px; box-shadow: var(--shadow-glow);
  position: relative;
}
.phone-notch { width: 90px; height: 18px; background: #05070a; border-radius: 10px; margin: 0 auto 12px; }
.phone-chat { display: flex; flex-direction: column; gap: 9px; padding: 6px; min-height: 320px; }
.chat-bubble { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
.chat-bubble.in { align-self: flex-start; background: #1e2128; border-bottom-left-radius: 4px; color: var(--text-secondary); }
.chat-bubble.out { align-self: flex-end; background: linear-gradient(135deg, rgba(57,135,229,0.35), rgba(25,158,112,0.35)); border-bottom-right-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 13px; background: #1e2128; border-radius: 14px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typing 1.3s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.physician-photo {
  width: 220px; height: 220px; margin: 0 auto; border-radius: 50%;
  background: linear-gradient(135deg, rgba(57,135,229,0.25), rgba(25,158,112,0.2));
  border: 1px solid var(--border); box-shadow: var(--shadow-glow);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.physician-photo-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.physician-initials { font-size: 52px; font-weight: 700; color: var(--text-primary); opacity: .85; letter-spacing: .02em; }
.physician-caption { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text-secondary); }
.mdcn-badge {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--surface-glass); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px;
}

/* ===================== Chips ===================== */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-size: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--surface-1); border: 1px solid var(--border-soft); color: var(--text-secondary);
  transition: transform .3s var(--ease), border-color .3s ease, color .3s ease, background .3s ease;
  cursor: default;
}
.chip:hover { transform: translateY(-4px) scale(1.04); border-color: var(--series-blue); color: var(--text-primary); background: var(--accent-soft); }

/* ===================== Compare cards ===================== */
.compare-card { border-radius: var(--radius-md); padding: 30px 28px; border: 1px solid var(--border-soft); position: relative; }
.compare-old { background: var(--surface-1); }
.compare-old h4 { color: var(--text-muted); margin-bottom: 18px; }
.compare-old li { color: var(--text-muted); padding: 8px 0; border-top: 1px solid var(--border-soft); font-size: 14px; }
.compare-old li:first-child { border-top: none; }
.compare-new { background: linear-gradient(160deg, rgba(57,135,229,0.12), rgba(25,158,112,0.08)); border-color: rgba(57,135,229,0.35); }
.compare-badge { position: absolute; top: -12px; left: 28px; background: linear-gradient(135deg, var(--series-blue), var(--series-aqua)); color: #051019; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.compare-new h4 { margin-bottom: 18px; margin-top: 8px; }
.compare-new li { color: var(--text-primary); padding: 8px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14.5px; padding-left: 22px; position: relative; }
.compare-new li:first-child { border-top: none; }
.compare-new li::before { content: "✓"; position: absolute; left: 0; color: var(--series-aqua); }

/* ===================== Pricing ===================== */
.price-card {
  background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(57,135,229,0.35); box-shadow: var(--shadow-glow); }
.price-featured { border-color: rgba(57,135,229,0.5); background: linear-gradient(165deg, rgba(57,135,229,0.10), var(--surface-1) 55%); }
.price-badge { position: absolute; top: -13px; left: 28px; background: linear-gradient(135deg, var(--series-blue), var(--series-aqua)); color: #051019; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 20px; margin-bottom: 6px; margin-top: 6px; }
.price-desc { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 20px; }
.price-card .card-list { margin-bottom: 26px; flex-grow: 1; }
.price-card .card-list li::before { background: var(--series-aqua); }

/* ===================== Booking form ===================== */
.booking-wrap { max-width: 720px; }
.booking-form {
  background: var(--surface-1); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 36px; display: flex; flex-direction: column; gap: 26px;
}
.form-step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--series-blue); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 4px;
}
.form-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field > span:first-child { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; color: var(--text-primary); font-size: 14.5px; font-family: inherit;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--series-blue); box-shadow: 0 0 0 3px rgba(57,135,229,0.18);
}
.field textarea { resize: vertical; }

.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 4px; }
.slot-placeholder { grid-column: 1 / -1; color: var(--text-muted); font-size: 13.5px; padding: 10px 0; }
.slot-btn {
  padding: 10px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-secondary); font-size: 13.5px; cursor: pointer;
  transition: all .2s ease;
}
.slot-btn:hover:not(:disabled) { border-color: var(--series-blue); color: var(--text-primary); }
.slot-btn.selected { background: linear-gradient(135deg, var(--series-blue), var(--series-aqua)); color: #051019; border-color: transparent; font-weight: 600; }
.slot-btn:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

.booking-status { font-size: 13.5px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.booking-status.error { border-color: rgba(230,103,103,0.4); background: rgba(230,103,103,0.1); color: #f3a6a6; }
.booking-status.info { border-color: rgba(57,135,229,0.35); background: rgba(57,135,229,0.1); color: #a8c8f4; }
.booking-status.loading { border-color: rgba(255,255,255,0.15); color: var(--text-secondary); }

.form-fineprint { font-size: 12px; color: var(--text-muted); text-align: center; }

.consent-field {
  display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--text-muted);
  line-height: 1.5; cursor: pointer;
}
.consent-field input { margin-top: 3px; accent-color: var(--series-blue); flex-shrink: 0; }
.consent-field a { color: var(--series-blue); text-decoration: underline; }

.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.checkbox-pill {
  display: flex; align-items: center; gap: 9px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2);
  font-size: 13.5px; color: var(--text-secondary); cursor: pointer; transition: border-color .2s ease, color .2s ease;
}
.checkbox-pill:hover { border-color: var(--series-blue); color: var(--text-primary); }
.checkbox-pill input { accent-color: var(--series-blue); }

.booking-confirm {
  background: var(--surface-1); border: 1px solid rgba(25,158,112,0.35); border-radius: var(--radius-lg);
  padding: 46px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.confirm-icon {
  width: 56px; height: 56px; border-radius: 50%; background: rgba(25,158,112,0.15); color: var(--series-aqua);
  font-size: 26px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px;
}
.booking-confirm h3 { font-size: 20px; }
.booking-confirm p { color: var(--text-secondary); font-size: 14px; max-width: 420px; }
.booking-confirm .btn { margin-top: 12px; }

.confirm-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--series-aqua); margin-bottom: 2px; }
.booking-confirm p.confirm-lead { color: var(--text-secondary); font-size: 14px; max-width: 480px; }
.confirm-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; width: 100%; max-width: 480px;
  text-align: left; margin: 6px 0; padding: 20px 22px;
  background: var(--surface-glass); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
}
.confirm-details div { display: flex; flex-direction: column; gap: 3px; }
.confirm-details dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.confirm-details dd { margin: 0; font-size: 14px; font-weight: 650; color: var(--text-primary); }
.booking-confirm p.confirm-note { color: var(--text-muted); font-size: 12.5px; max-width: 460px; }

/* ===================== Auth page (login.html) ===================== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 60px; position: relative; z-index: 2; }
.auth-card {
  width: 100%; max-width: 420px; background: var(--surface-1); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 40px 34px;
}

/* ===================== Footer ===================== */
.footer { border-top: 1px solid var(--border-soft); padding: 70px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.brand-footer { margin-bottom: 12px; }
.footer-tag { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col p { margin-bottom: 9px; font-size: 14px; }
.footer-col a:hover { color: var(--series-blue); }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 24px; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); }

/* ===================== Reveal / scroll animation ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* stagger children inside grids marked reveal */
.tilt-grid .tilt-card { transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease); }

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .nav-inner { gap: 16px; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; background: rgba(13,13,13,0.97);
    padding: 20px 24px; border-bottom: 1px solid var(--border-soft);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-burger { display: flex; }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
  .nav-mobile-actions .btn { width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .checkbox-grid { grid-template-columns: 1fr; }
  .hero { padding: 128px 0 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .section { padding: 64px 0; }

  /* Top bar gets crowded below ~640px — CTAs move into the mobile
     dropdown (.nav-mobile-actions) instead, so only brand + burger stay. */
  .nav-actions { display: none; }

  .booking-form { padding: 26px 20px; gap: 20px; }
  .form-step { flex-direction: column; gap: 10px; }
  .step-num { margin-top: 0; }
  .price-card { padding: 26px 22px; }
  .price-card .btn { width: 100%; }
  .compare-card { padding: 24px 20px; }
  .auth-page { padding: 96px 16px 40px; }
  .auth-card { padding: 30px 22px; }
  .confirm-details { grid-template-columns: 1fr; }
}
