/* ── InsurScribe Global Styles ─────────────────────────────────────────────── */

:root {
  --navy: #1a2744;
  --navy-dark: #111c36;
  --navy-mid: #1e2f55;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --green: #10b981;
  --red: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utility ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-large {
  padding: 18px 36px;
  font-size: 17px;
  border-radius: 12px;
}

.btn-block { width: 100%; justify-content: center; }

.text-blue { color: var(--blue); }
.text-center { text-align: center; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 39, 68, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--blue-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

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

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1e3a6e 100%);
  padding: 96px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(37,99,235,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(59,130,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(37,99,235,0.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.trust-item .icon {
  width: 20px;
  height: 20px;
  background: rgba(16,185,129,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 11px;
}

.hero-visual {
  position: relative;
}

.letter-preview {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.1);
  overflow: hidden;
}

.letter-preview-header {
  background: var(--gray-50);
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.letter-preview-body {
  padding: 28px;
}

.letter-line {
  height: 10px;
  border-radius: 5px;
  background: var(--gray-200);
  margin-bottom: 10px;
  animation: shimmer 2.5s ease-in-out infinite;
}

.letter-line.title { width: 60%; background: var(--gray-400); height: 14px; margin-bottom: 20px; }
.letter-line.w-full { width: 100%; }
.letter-line.w-90 { width: 90%; }
.letter-line.w-75 { width: 75%; }
.letter-line.w-85 { width: 85%; }
.letter-line.w-95 { width: 95%; }
.letter-line.gap { margin-top: 16px; background: transparent; }
.letter-line.blue { background: rgba(37,99,235,0.3); height: 12px; }

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  margin-top: 16px;
}

/* ── Pain Points ───────────────────────────────────────────────────────────── */
.pain {
  padding: 80px 0;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.7;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.pain-icon.red { background: #fef2f2; }
.pain-icon.orange { background: #fff7ed; }
.pain-icon.purple { background: #f5f3ff; }

.pain-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.pain-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
}

.pain-stat {
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how {
  padding: 96px 0;
  background: var(--white);
}

.how-header { text-align: center; max-width: 560px; margin: 0 auto 64px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 260px;
  margin: 0 auto;
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.features-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.features-header .section-title { color: var(--white); }
.features-header .section-sub { color: rgba(255,255,255,0.65); margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.feat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
}

.feat-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(37,99,235,0.5);
  transform: translateY(-4px);
}

.feat-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feat-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.feat-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 0;
  background: var(--gray-50);
}

.pricing-header { text-align: center; max-width: 540px; margin: 0 auto 56px; }

.pricing-card-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--blue);
  overflow: hidden;
  position: relative;
}

.pricing-card-badge {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pricing-card-body { padding: 40px; }

.price-amount {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 8px;
}

.price-dollar { font-size: 28px; font-weight: 700; color: var(--navy); padding-bottom: 6px; }
.price-number { font-size: 64px; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: -2px; }
.price-period { font-size: 18px; color: var(--gray-600); padding-bottom: 10px; }

.price-trial {
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
  color: var(--gray-700);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 16px;
}

/* ── CTA Section ───────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1a3a6e 100%);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(37,99,235,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title { color: var(--white); margin: 0 auto 16px; }
.cta-section .section-sub { color: rgba(255,255,255,0.7); margin: 0 auto 36px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}
.footer-logo span { color: var(--blue-light); }

.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 13px; }

/* ── Signup Page ───────────────────────────────────────────────────────────── */
.signup-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.signup-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.signup-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}
.signup-logo span { color: var(--blue); }

.signup-tag {
  text-align: center;
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.signup-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}

.signup-sub {
  font-size: 15px;
  color: var(--gray-600);
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.6;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.signup-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 24px 0;
}

.signup-perks {
  list-style: none;
  margin-bottom: 24px;
}

.signup-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-600);
  padding: 6px 0;
}

.signup-perks .check { color: var(--green); font-weight: 700; }

.signup-back {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray-400);
}
.signup-back a { color: var(--blue); font-weight: 600; }
.signup-back a:hover { text-decoration: underline; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: var(--blue); border: 1px solid #bfdbfe; }

/* ── App Page ──────────────────────────────────────────────────────────────── */
.app-page {
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
}

.app-nav {
  background: var(--navy);
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.app-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
}
.app-logo span { color: var(--blue-light); }

.app-user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.app-logout {
  padding: 7px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
}
.app-logout:hover { background: rgba(255,255,255,0.18); }

.app-main {
  flex: 1;
  padding: 40px 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.app-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.app-sub {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 28px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 28px;
  width: fit-content;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 7px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(26,39,68,0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  padding: 36px;
  margin-bottom: 28px;
}

.form-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full { grid-column: 1 / -1; }

.form-group label .optional {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 12px;
  margin-left: 4px;
}

/* Generate button */
.generate-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.generate-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }
.generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Result area */
.result-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.result-header {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-actions { display: flex; gap: 10px; }

.result-btn {
  padding: 8px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  border: none;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-btn-copy {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.result-btn-copy:hover { background: rgba(255,255,255,0.25); }

.result-btn-download {
  background: var(--blue);
  color: var(--white);
}
.result-btn-download:hover { background: var(--blue-dark); }

.result-body {
  padding: 32px;
}

.result-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray-700);
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .pain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 48px; }
  .signup-card { padding: 32px 24px; }
  .form-card { padding: 24px 20px; }
  .app-main { padding: 24px 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── Testimonials ──────────────────────────────────────────────────────────── */
.testimonials {
  padding: 80px 0;
  background: #f8fafc;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}
.testimonial-text {
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testimonial-author {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.testimonial-name {
  font-weight: 700;
  color: #1a2744;
  font-size: 14px;
}
.testimonial-role {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq {
  padding: 80px 0;
  background: white;
}
.faq-header {
  text-align: center;
  margin-bottom: 48px;
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item.open {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.faq-question {
  width: 100%;
  background: white;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
}
.faq-question:hover { background: #f8fafc; }
.faq-icon {
  font-size: 22px;
  font-weight: 300;
  color: #2563eb;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 24px 20px;
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}
