/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0C151E;
  color: #E2E8F0;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; }
p { font-size: 1rem; color: #94A3B8; line-height: 1.7; }

/* ===== COLORS ===== */
:root {
  --bg-primary: #0C151E;
  --bg-secondary: #0F1E2E;
  --bg-card: #111D2B;
  --bg-card-hover: #162436;
  --blue-main: #1259A0;
  --blue-light: #38BDF8;
  --blue-glow: rgba(56, 189, 248, 0.15);
  --green: #22C55E;
  --yellow: #FBBF24;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --border: rgba(255,255,255,0.07);
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: #0A1320; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.25);
  color: #38BDF8; font-size: 0.75rem; font-weight: 700;
  padding: 6px 14px; border-radius: 100px; letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}
.highlight { color: #38BDF8; }
.highlight-green { color: #22C55E; }
.highlight-yellow { color: #FBBF24; }
.text-center { text-align: center; }
.section-header { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-header p { font-size: 1.1rem; margin-top: 16px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.2s ease;
}
.btn-primary {
  background: #1259A0; color: #fff;
  box-shadow: 0 0 24px rgba(18,89,160,0.4);
}
.btn-primary:hover { background: #1a6fc4; transform: translateY(-2px); box-shadow: 0 0 32px rgba(56,189,248,0.3); }
.btn-outline {
  background: transparent; color: #38BDF8;
  border: 1px solid rgba(56,189,248,0.4);
}
.btn-outline:hover { background: rgba(56,189,248,0.08); transform: translateY(-2px); }
.btn-large { padding: 18px 36px; font-size: 1.1rem; border-radius: 12px; }
.btn-green { background: #16A34A; color: #fff; box-shadow: 0 0 24px rgba(34,197,94,0.3); }
.btn-green:hover { background: #15803d; transform: translateY(-2px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12,21,30,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 72px;
  display: flex; align-items: center;
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo { display: flex; align-items: center; gap: 12px; }
.navbar-logo img { width: 36px; height: 36px; border-radius: 8px; }
.navbar-logo span { font-size: 1.2rem; font-weight: 800; color: #F1F5F9; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { font-size: 0.9rem; font-weight: 500; color: #94A3B8; transition: color 0.2s; }
.navbar-links a:hover { color: #38BDF8; }
.navbar-cta { display: flex; gap: 12px; }
.navbar-mobile-btn { display: none; background: none; border: none; cursor: pointer; color: #94A3B8; }
.navbar-tagline { font-size: 0.75rem; font-weight: 500; color: #38BDF8; letter-spacing: 0.04em; opacity: 0.85; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(18,89,160,0.25) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 50%, rgba(56,189,248,0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding: 80px 0;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-title { color: #F1F5F9; }
.hero-subtitle { font-size: 1.15rem; color: #94A3B8; max-width: 520px; }
.hero-tagline { font-size: 0.85rem; font-weight: 600; color: #38BDF8; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: -8px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-stat-value { font-size: 1.8rem; font-weight: 900; color: #38BDF8; }
.hero-stat-label { font-size: 0.8rem; color: #64748B; margin-top: 2px; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup {
  width: 280px; height: 560px;
  background: #0A1320;
  border-radius: 40px;
  border: 2px solid rgba(56,189,248,0.2);
  box-shadow: 0 0 80px rgba(18,89,160,0.4), 0 0 160px rgba(18,89,160,0.15);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch {
  width: 100px; height: 28px;
  background: #0A1320;
  border-radius: 0 0 20px 20px;
  margin: 0 auto; position: relative; z-index: 2;
  border: 2px solid rgba(56,189,248,0.15); border-top: none;
}
.phone-screen {
  flex: 1; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.phone-header { display: flex; justify-content: space-between; align-items: center; }
.phone-greeting { font-size: 0.7rem; color: #64748B; }
.phone-name { font-size: 0.95rem; font-weight: 700; color: #F1F5F9; }
.phone-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1259A0, #38BDF8);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
}
.phone-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 12px;
}
.phone-card-label { font-size: 0.65rem; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; }
.phone-card-value { font-size: 1.1rem; font-weight: 800; color: #38BDF8; margin-top: 2px; }
.phone-card-sub { font-size: 0.65rem; color: #475569; margin-top: 2px; }
.phone-pill-row { display: flex; gap: 6px; }
.phone-pill {
  flex: 1; background: rgba(18,89,160,0.2);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 10px; padding: 8px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.phone-pill-name { font-size: 0.65rem; font-weight: 700; color: #F1F5F9; }
.phone-pill-time { font-size: 0.6rem; color: #64748B; }
.phone-pill-status {
  font-size: 0.55rem; font-weight: 700; color: #22C55E;
  background: rgba(34,197,94,0.1); padding: 2px 6px; border-radius: 4px;
  display: inline-block; margin-top: 2px;
}
.phone-pill-status.pending { color: #FBBF24; background: rgba(251,191,36,0.1); }
.phone-patient-list { display: flex; flex-direction: column; gap: 6px; }
.phone-patient-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 8px 10px;
}
.phone-patient-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.phone-patient-name { font-size: 0.7rem; font-weight: 600; color: #E2E8F0; }
.phone-patient-med { font-size: 0.6rem; color: #64748B; }
.phone-patient-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-left: auto; flex-shrink: 0;
}

/* ===== PROBLEM SECTION ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  text-align: center; transition: all 0.3s ease;
}
.stat-card:hover { border-color: rgba(56,189,248,0.3); transform: translateY(-4px); }
.stat-number { font-size: 3rem; font-weight: 900; color: #38BDF8; line-height: 1; }
.stat-label { font-size: 1rem; font-weight: 600; color: #E2E8F0; margin-top: 8px; }
.stat-source { font-size: 0.75rem; color: #334155; margin-top: 8px; }
.problem-quote {
  max-width: 800px; margin: 48px auto 0;
  background: rgba(18,89,160,0.1); border: 1px solid rgba(56,189,248,0.2);
  border-radius: 16px; padding: 32px; text-align: center;
}
.problem-quote p { font-size: 1.2rem; color: #CBD5E1; font-style: italic; line-height: 1.6; }
.problem-quote span { color: #38BDF8; font-weight: 700; font-style: normal; }

/* ===== HOW IT WORKS ===== */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.pillar-card.medico::before { background: linear-gradient(90deg, #1259A0, #38BDF8); }
.pillar-card.paciente::before { background: linear-gradient(90deg, #16A34A, #22C55E); }
.pillar-card.cuidador::before { background: linear-gradient(90deg, #D97706, #FBBF24); }
.pillar-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,0.2); }
.pillar-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.pillar-icon.medico { background: rgba(18,89,160,0.2); }
.pillar-icon.paciente { background: rgba(34,197,94,0.15); }
.pillar-icon.cuidador { background: rgba(251,191,36,0.15); }
.pillar-number {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #475569;
}
.pillar-title { font-size: 1.3rem; font-weight: 800; color: #F1F5F9; }
.pillar-desc { font-size: 0.95rem; color: #64748B; line-height: 1.6; }
.pillar-items { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.pillar-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: #94A3B8;
}
.pillar-item-dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.pillar-item-dot.blue { background: #38BDF8; }
.pillar-item-dot.green { background: #22C55E; }
.pillar-item-dot.yellow { background: #FBBF24; }

/* ===== VALUE SECTION ===== */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.value-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all 0.3s ease;
}
.value-item:hover { border-color: rgba(56,189,248,0.2); background: var(--bg-card-hover); }
.value-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(18,89,160,0.2); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.value-title { font-size: 1rem; font-weight: 700; color: #F1F5F9; margin-bottom: 4px; }
.value-desc { font-size: 0.875rem; color: #64748B; line-height: 1.5; }
.value-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.value-visual {
  background: var(--bg-card);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 20px; padding: 32px;
}
.value-visual-title { font-size: 0.8rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.revenue-bar { display: flex; flex-direction: column; gap: 12px; }
.revenue-item { display: flex; flex-direction: column; gap: 6px; }
.revenue-item { display: flex; flex-direction: column; gap: 6px; }
.revenue-track { height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.revenue-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #1259A0, #38BDF8); }

/* ===== TUTORIAL SECTION ===== */
.tutorial-tabs { display: flex; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center; }
.tutorial-tab {
  padding: 10px 20px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: #64748B; transition: all 0.2s ease;
}
.tutorial-tab.active {
  background: #1259A0; color: #fff;
  border-color: #1259A0; box-shadow: 0 0 20px rgba(18,89,160,0.4);
}
.tutorial-tab:hover:not(.active) { border-color: rgba(56,189,248,0.3); color: #38BDF8; }
.tutorial-content { display: none; }
.tutorial-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tutorial-steps { display: flex; flex-direction: column; gap: 20px; }
.tutorial-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all 0.3s ease; cursor: pointer;
}
.tutorial-step.active-step { border-color: rgba(56,189,248,0.3); background: rgba(18,89,160,0.1); }
.tutorial-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: #1259A0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.tutorial-step-title { font-size: 0.95rem; font-weight: 700; color: #F1F5F9; }
.tutorial-step-desc { font-size: 0.85rem; color: #64748B; margin-top: 4px; line-height: 1.5; }
.tutorial-phone-wrap { display: flex; justify-content: center; }

/* Tutorial phone screens */
.tphone {
  width: 260px; height: 520px;
  background: #0A1320;
  border-radius: 36px;
  border: 2px solid rgba(56,189,248,0.2);
  box-shadow: 0 0 60px rgba(18,89,160,0.35);
  overflow: hidden; display: flex; flex-direction: column;
}
.tphone-bar {
  height: 24px; background: #0A1320;
  display: flex; align-items: center; justify-content: center;
}
.tphone-dot { width: 60px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.tphone-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.tphone-title { font-size: 1rem; font-weight: 800; color: #F1F5F9; }
.tphone-sub { font-size: 0.7rem; color: #475569; }
.tphone-field {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 10px 12px;
}
.tphone-field-label { font-size: 0.6rem; color: #475569; text-transform: uppercase; letter-spacing: 0.5px; }
.tphone-field-value { font-size: 0.8rem; color: #E2E8F0; margin-top: 3px; font-weight: 500; }
.tphone-btn {
  background: #1259A0; color: #fff;
  border-radius: 10px; padding: 12px;
  text-align: center; font-size: 0.8rem; font-weight: 700;
  margin-top: auto;
}
.tphone-btn.green { background: #16A34A; }
.tphone-med-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px;
}
.tphone-med-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(18,89,160,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.tphone-med-name { font-size: 0.75rem; font-weight: 700; color: #E2E8F0; }
.tphone-med-dose { font-size: 0.65rem; color: #64748B; }
.tphone-alert {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 10px; padding: 12px;
  display: flex; gap: 10px; align-items: center;
}
.tphone-alert-icon { font-size: 1.2rem; }
.tphone-alert-text { font-size: 0.75rem; color: #86EFAC; font-weight: 600; }
.tphone-alert-sub { font-size: 0.65rem; color: #4ADE80; opacity: 0.7; }

/* ===== REFERRAL SECTION ===== */
.referral-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.referral-steps { display: flex; flex-direction: column; gap: 0; }
.referral-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.referral-step:last-child { border-bottom: none; }
.referral-step-badge {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; flex-shrink: 0;
}
.referral-step-title { font-size: 1rem; font-weight: 700; color: #F1F5F9; }
.referral-step-desc { font-size: 0.875rem; color: #64748B; margin-top: 4px; }
.referral-visual {
  background: var(--bg-card);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 20px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
/* referral-tier styles moved to REFERRAL TIER MOBILE FIX section below */

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.faq-question {
  width: 100%; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  text-align: left; color: #F1F5F9; font-size: 1rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { color: #38BDF8; }
.faq-icon { font-size: 1.2rem; color: #38BDF8; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; color: #64748B; line-height: 1.7; }

/* ===== PREREGISTER ===== */
.prereg-section {
  background: linear-gradient(135deg, #0A1320 0%, #0F1E2E 50%, #0A1320 100%);
  position: relative; overflow: hidden;
}
.prereg-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(18,89,160,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.prereg-content { position: relative; z-index: 1; text-align: center; }
.prereg-form {
  max-width: 560px; margin: 48px auto 0;
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.8rem; font-weight: 600; color: #64748B; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 14px 16px;
  color: #F1F5F9; font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus { outline: none; border-color: rgba(56,189,248,0.5); }
.form-input::placeholder { color: #334155; }
.form-select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 14px 16px;
  color: #F1F5F9; font-size: 0.95rem;
  font-family: 'Inter', sans-serif; width: 100%;
  cursor: pointer;
}
.form-select option { background: #0C151E; color: #F1F5F9; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; font-weight: 700; border-radius: 12px; }
.form-privacy { font-size: 0.8rem; color: #334155; text-align: center; }
.form-privacy a { color: #38BDF8; }
.form-success {
  display: none; text-align: center; padding: 32px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px;
}
.form-success h3 { color: #22C55E; font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: #86EFAC; }

/* ===== FOR PATIENTS ===== */
.patient-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.patient-features { display: flex; flex-direction: column; gap: 20px; }
.patient-feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.patient-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.patient-feature-title { font-size: 1rem; font-weight: 700; color: #F1F5F9; }
.patient-feature-desc { font-size: 0.875rem; color: #64748B; margin-top: 4px; }
.invite-box {
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.invite-title { font-size: 1rem; font-weight: 700; color: #22C55E; }
.invite-desc { font-size: 0.875rem; color: #64748B; }
.invite-input-row { display: flex; gap: 10px; }
.invite-input {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px;
  color: #F1F5F9; font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.invite-input:focus { outline: none; border-color: rgba(34,197,94,0.4); }
.invite-input::placeholder { color: #334155; }
.invite-btn {
  background: #16A34A; color: #fff;
  border: none; border-radius: 10px; padding: 12px 20px;
  font-size: 0.875rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; white-space: nowrap;
}

/* ===== FOOTER ===== */
footer {
  background: #060E16;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 32px; height: 32px; border-radius: 8px; }
.footer-logo span { font-size: 1.1rem; font-weight: 800; color: #F1F5F9; }
.footer-tagline { font-size: 0.8rem; font-weight: 600; color: #38BDF8; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: -4px; }
.footer-desc { font-size: 0.875rem; color: #334155; line-height: 1.6; max-width: 280px; }
.footer-col-title { font-size: 0.8rem; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: #475569; transition: color 0.2s; }
.footer-links a:hover { color: #38BDF8; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.8rem; color: #334155; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 0.8rem; color: #334155; transition: color 0.2s; }
.footer-legal a:hover { color: #38BDF8; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(6,14,22,0.98); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.3rem; font-weight: 600; color: #94A3B8; }
.mobile-menu a:hover { color: #38BDF8; }
.mobile-menu-close {
  position: absolute; top: 24px; right: 24px;
  background: none; border: none; color: #94A3B8; font-size: 1.5rem; cursor: pointer;
}

/* ===== PHOTOS GRID ===== */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 0;
}
.photos-grid > div {
  border-radius: 20px;
  overflow: hidden;
  height: 280px;
  position: relative;
}

/* ===== CALC INPUTS ===== */
.calc-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

/* ===== REVENUE LABEL MOBILE FIX ===== */
.revenue-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.revenue-name { font-size: 0.85rem; color: #94A3B8; flex: 1; min-width: 0; }
.revenue-value { font-size: 0.9rem; font-weight: 700; color: #22C55E; white-space: nowrap; }

/* ===== REFERRAL TIER MOBILE FIX ===== */
.referral-tier {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 8px;
  flex-wrap: nowrap;
}
.referral-tier-num {
  font-size: 1.3rem;
  font-weight: 900;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.referral-tier-label { font-size: 0.85rem; color: #94A3B8; }
.referral-tier-reward { font-size: 1rem; font-weight: 700; margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.referral-tier.t1 { background: rgba(56,189,248,0.05); border-color: rgba(56,189,248,0.15); }
.referral-tier.t2 { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.15); }
.referral-tier.t3 { background: rgba(251,191,36,0.05); border-color: rgba(251,191,36,0.15); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .value-layout { grid-template-columns: 1fr; }
  .tutorial-content.active { grid-template-columns: 1fr; }
  .tutorial-phone-wrap { display: none; }
  .referral-layout { grid-template-columns: 1fr; }
  .patient-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .photos-grid { grid-template-columns: 1fr; }
  .photos-grid > div { height: 220px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-links, .navbar-cta { display: none; }
  .navbar-mobile-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .photos-grid { grid-template-columns: 1fr; gap: 12px; }
  .photos-grid > div { height: 200px; }
  .calc-inputs-grid { grid-template-columns: 1fr; }
  .value-visual { padding: 20px 16px; }
  .revenue-name { font-size: 0.8rem; }
  .revenue-value { font-size: 0.85rem; }
  .referral-tier { padding: 10px 12px; }
  .referral-tier-num { font-size: 1.1rem; min-width: 36px; }
  .referral-tier-reward { font-size: 0.9rem; }
  .pillar-card { padding: 24px 20px; }
  .section-header { margin-bottom: 40px; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .btn-large { padding: 14px 24px; font-size: 1rem; }
  .hero-stats { gap: 16px; }
  .hero-stat-value { font-size: 1.6rem; }
  .tutorial-tabs { gap: 6px; }
  .tutorial-tab { padding: 8px 14px; font-size: 0.8rem; }
  .patient-features { gap: 16px; }
  .referral-steps { gap: 16px; }
  .form-group label { font-size: 0.8rem; }
  .faq-question { font-size: 0.9rem; padding: 16px; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 24px rgba(18,89,160,0.4); }
  50% { box-shadow: 0 0 48px rgba(56,189,248,0.3); }
}
.animate-in { animation: fadeInUp 0.6s ease forwards; }
.phone-mockup { animation: pulse-glow 3s ease infinite; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
