/* =============================================
   WHAT'S MY E.T.A. — Global Styles
   ============================================= */

:root {
  --green: #00A878;
  --green-light: #E6F8F3;
  --green-dark: #007A57;
  --green-mid: #009E71;
  --off-white: #F7F7F5;
  --surface: #FFFFFF;
  --border: #E5E5E2;
  --border-dark: #D0D0CC;
  --text: #111111;
  --text-mid: #444444;
  --text-muted: #787874;
  --red: #D94F4F;
  --red-light: #FEF2F2;
  --red-border: #FBBFBF;
  --amber: #BA7517;
  --amber-light: #FAEEDA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  background: var(--off-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(20px, 2.5vw, 26px); }
h3 { font-size: 17px; }
em { font-style: normal; color: var(--green); }

.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* =============================================
   NAV
   ============================================= */

#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  letter-spacing: -0.02em;
}
.logo span { color: var(--green); }

.nav-desktop-btn { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.mobile-menu.open { display: block; }

.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: var(--surface);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mobile-menu-inner .btn-primary {
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: 15px;
}

.mobile-menu-inner a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

.btn-ghost {
  background: none;
  color: var(--text-muted);
  border: 0.5px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-ghost:hover { border-color: var(--border-dark); color: var(--text); }
.btn-full { width: 100%; padding: 14px; font-size: 15px; }

/* =============================================
   LANDING PAGE
   ============================================= */

.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-mid);
  max-width: 520px;
  margin: 16px auto 48px;
  line-height: 1.65;
}

.eta-cards-section {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 48px 32px;
}

.eta-cards-inner {
  max-width: 860px;
  margin: 0 auto;
}

.eta-cards-header {
  text-align: center;
  margin-bottom: 32px;
}

.eta-cards-header h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.eta-cards-header p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

@media (max-width: 640px) {
  .three-cols { grid-template-columns: 1fr; }
}

.col-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.col-letter {
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.05em;
}

.col-card h3 { font-size: 16px; margin-bottom: 8px; }
.col-card p { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

.demo-section {
  background: var(--off-white);
  padding: 48px 32px;
}

.demo-section-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.demo-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 680px;
  margin: 0 auto 16px;
}

@media (max-width: 640px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

.demo-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 12px 18px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, transform 0.1s;
}
.demo-card:hover { border-color: var(--green); transform: translateY(-2px); }
.demo-card.active { border: 2px solid var(--green); background: var(--green-light); }

.demo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--off-white);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.demo-card.active .demo-icon { background: rgba(0,168,120,0.15); }
.demo-card h3 { font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.demo-card p { font-size: 12px; color: var(--text-muted); }
.start-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* =============================================
   GATING QUESTION
   ============================================= */

.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gate-overlay.hidden { display: none; }

.gate-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
}

.gate-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.gate-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.gate-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.gate-options { display: flex; flex-direction: column; gap: 10px; }

.gate-opt {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  font-family: inherit;
}
.gate-opt:hover { border-color: var(--green); background: var(--green-light); }

/* =============================================
   SECTION INTRO SCREEN
   ============================================= */

.section-intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.section-intro-overlay.hidden { display: none; }

.section-intro-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.section-intro-letter {
  font-size: 64px;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

.section-intro-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-intro-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.section-intro-bullets {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.section-intro-bullets li {
  font-size: 14px;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.section-intro-bullets li::before {
  content: '→';
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.section-intro-timing {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* =============================================
   QUESTIONS PAGE
   ============================================= */

.questions-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 60px);
}

@media (max-width: 760px) {
  .questions-layout { grid-template-columns: 1fr; }
}

.progress-sidebar {
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  padding: 32px 24px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}

@media (max-width: 760px) {
  .progress-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 0.5px solid var(--border);
    padding: 20px 16px;
  }
}

.sidebar-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.demo-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.section-progress { margin-bottom: 28px; }

.sp-item { display: flex; align-items: flex-start; gap: 12px; }

.sp-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.sp-item.active .sp-dot { background: var(--green); }
.sp-item.done .sp-dot { background: var(--text); }

.sp-line { width: 2px; height: 24px; background: var(--border); margin-left: 10px; }

.sp-name { font-size: 14px; font-weight: 500; color: var(--text); }
.sp-status { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.sp-item.active .sp-status { color: var(--green); }

.sp-progress-bar-wrap {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
  width: 100%;
}

.sp-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}

.sidebar-flags { margin-top: 8px; }
.sidebar-flags .mini-flag {
  background: var(--red-light);
  border: 0.5px solid var(--red-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: #7A1F1F;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sidebar-flags .flag-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.question-main {
  padding: 40px 48px;
  max-width: 680px;
}

@media (max-width: 760px) {
  .question-main { padding: 24px 16px; }
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: 22px; color: var(--text-muted); font-weight: 400; }

.section-progress-bar-top {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 28px;
  overflow: hidden;
}

.section-progress-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.question-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

.q-counter {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.q-text {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.q-options { display: flex; flex-direction: column; gap: 10px; }

.opt-btn {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
  line-height: 1.4;
  font-family: inherit;
}
.opt-btn:hover { border-color: var(--green); }
.opt-btn.selected {
  border: 1.5px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 500;
}

.flag-display {
  background: var(--red-light);
  border: 0.5px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.flag-display.hidden { display: none; }

.flag-icon-circle {
  width: 24px;
  height: 24px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.flag-icon-circle::after {
  content: '!';
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.flag-title { font-size: 14px; font-weight: 500; color: #7A1F1F; margin-bottom: 4px; }
.flag-desc { font-size: 13px; color: #9A3333; line-height: 1.55; }

.flag-learn-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--red);
  cursor: pointer;
  text-decoration: underline;
}

.q-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.q-progress-label { font-size: 13px; color: var(--text-muted); }

/* =============================================
   FLAG EDUCATION POPUP
   ============================================= */

.flag-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flag-popup-overlay.hidden { display: none; }

.flag-popup-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  position: relative;
}

.flag-popup-tag {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.flag-popup-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.flag-popup-body {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.flag-popup-what {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.flag-popup-what-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.flag-popup-what p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.flag-popup-cta {
  background: var(--green);
  color: #fff;
  border: none;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.flag-popup-cta:hover { background: var(--green-dark); }

/* =============================================
   RESULTS PAGE
   ============================================= */

.results-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

@media (max-width: 600px) {
  .results-layout { padding: 40px 16px 60px; }
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header h1 { margin-bottom: 8px; }
.results-header p { font-size: 16px; color: var(--text-muted); }

.overall-score-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin-bottom: 24px;
  border-top: 4px solid var(--green);
}

.overall-score-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.overall-score-number {
  font-size: 72px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 8px;
}

.overall-score-number span {
  font-size: 28px;
  color: var(--text-muted);
}

.overall-score-desc {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.overall-score-bar-wrap {
  height: 6px;
  background: var(--off-white);
  border-radius: 6px;
  overflow: hidden;
  max-width: 400px;
  margin: 0 auto;
}

.overall-score-bar {
  height: 100%;
  background: var(--green);
  border-radius: 6px;
  transition: width 1.2s ease;
  width: 0%;
}

.scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .scores-grid { grid-template-columns: 1fr; }
}

.score-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.score-card.flag-card { border: 1.5px solid var(--red); }
.score-card.warn-card { border: 1.5px solid var(--amber); }
.score-card.good-card { border: 1.5px solid var(--green); }

.score-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.score-number {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin-bottom: 4px;
}

.score-number.green { color: var(--green); }
.score-number.amber { color: var(--amber); }
.score-number.red { color: var(--red); }

.score-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.score-sub.red { color: var(--red); }
.score-sub.amber { color: var(--amber); }
.score-sub.green { color: var(--green-dark); }

.score-exit-label {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.score-bar-wrap {
  height: 4px;
  background: var(--off-white);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  transition: width 1s ease;
  width: 0%;
}

.score-bar.amber { background: var(--amber); }
.score-bar.red { background: var(--red); }

.section-heading {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.red-flags-section { margin-bottom: 40px; }

.result-flag {
  background: var(--red-light);
  border: 0.5px solid var(--red-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.result-flag:hover { border-color: var(--red); }

.result-flag-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.result-flag-icon {
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-top: 1px;
}

.result-flag-title { font-size: 15px; font-weight: 500; color: #6B1A1A; margin-bottom: 5px; }
.result-flag-desc { font-size: 14px; color: #883333; line-height: 1.55; }

.result-flag-expand {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.result-flag-education {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 0.5px solid var(--red-border);
}

.result-flag-education.open { display: block; }

.result-flag-education p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 10px;
}

.result-flag-education strong { color: var(--text); }

/* CTA box */
.cta-box {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.cta-inner {
  padding: 36px;
  border-top: 4px solid var(--green);
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.cta-title { font-size: 24px; margin-bottom: 10px; }
.cta-desc { font-size: 15px; color: var(--text-mid); margin-bottom: 24px; line-height: 1.6; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

#lead-form input {
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  font-family: inherit;
}

#lead-form input:focus { outline: none; border-color: var(--green); }
#lead-form input[type="tel"] { margin-bottom: 14px; }

.form-fine {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.lead-success.hidden { display: none; }
.lead-success { text-align: center; padding: 20px; }

.success-icon {
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  margin: 0 auto 16px;
}

.lead-success h3 { font-size: 20px; margin-bottom: 8px; }
.lead-success p { font-size: 15px; color: var(--text-mid); }

.retake-box {
  background: var(--off-white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  text-align: center;
  margin-bottom: 40px;
}

.retake-box p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.retake-box .btn-ghost { margin-right: 10px; }

/* =============================================
   FAQ SECTION
   ============================================= */

.faq-section {
  background: var(--surface);
  border-top: 0.5px solid var(--border);
  padding: 64px 32px;
}

.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.faq-header p { font-size: 15px; color: var(--text-muted); }

.faq-item { border-bottom: 0.5px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  gap: 16px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover { color: var(--green); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  color: var(--text-muted);
  transition: transform 0.2s, background 0.15s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--green-light);
  color: var(--green);
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-section {
  background: var(--off-white);
  border-top: 0.5px solid var(--border);
  padding: 64px 32px;
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 36px;
}

.contact-header h2 {
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 8px;
}

.contact-header p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s;
  font-family: inherit;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

#contact-form .form-row { margin-bottom: 10px; }

/* =============================================
   DISCLAIMER FOOTER
   ============================================= */

.disclaimer-footer {
  background: var(--off-white);
  border-top: 0.5px solid var(--border);
  padding: 20px 32px;
  text-align: center;
}

.disclaimer-footer p {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================================
   CHATBOT
   ============================================= */

#chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,168,120,0.35);
  transition: background 0.15s, transform 0.1s;
}
#chatbot-fab:hover { background: var(--green-dark); transform: scale(1.05); }

#chatbot-window {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 360px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

#chatbot-window.hidden { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface);
}

.chat-title { font-size: 15px; font-weight: 500; color: var(--text); }
.chat-subtitle { font-size: 12px; color: var(--text-muted); }

.chat-close {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-msg.bot .msg-bubble {
  background: var(--off-white);
  color: var(--text);
  border-radius: 4px 12px 12px 12px;
}

.chat-msg.user .msg-bubble {
  background: var(--green);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
}

.chat-msg.bot .msg-bubble.typing { color: var(--text-muted); font-style: italic; }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 0.5px solid var(--border);
}

.chat-input-row input {
  flex: 1;
  padding: 9px 14px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input-row input:focus { border-color: var(--green); }

.chat-input-row button {
  width: 36px;
  height: 36px;
  background: var(--green);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.chat-input-row button:hover { background: var(--green-dark); }

/* =============================================
   UTILITIES
   ============================================= */

.hidden { display: none !important; }
.container { max-width: 860px; margin: 0 auto; }

.disclaimer {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* =============================================
   MOBILE
   ============================================= */

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-desktop-btn { display: none; }
}

@media (max-width: 480px) {
  #chatbot-window { width: calc(100vw - 32px); right: 16px; bottom: 84px; }
  .nav-inner { padding: 14px 16px; }
  .hero { padding: 48px 16px 40px; }
  .gate-card { padding: 28px 20px; }
  .section-intro-card { padding: 32px 20px; }
  .flag-popup-card { padding: 24px 20px; }
  .cta-inner { padding: 24px 20px; }
  .faq-section { padding: 40px 16px; }
  .contact-section { padding: 40px 16px; }
  .eta-cards-section { padding: 36px 16px; }
  .demo-section { padding: 36px 16px; }
  .disclaimer-footer { padding: 16px; }
}