/* ============================================================
   Pathshala MCQ — Public Website — Main Stylesheet
   ============================================================ */

/* ---------- CSS Reset & Variables ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #e3f2fd;
  --accent: #7c3aed;
  --accent-light: #ede9fe;
  --success: #15803d;
  --success-light: #dcfce7;
  --warn: #ca8a04;
  --warn-light: #fef9c3;
  --text-main: #1e293b;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --canvas: #f8fafc;
  --line: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --container: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-main);
  background: var(--canvas);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 48px 0;
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--text-muted);
}
.text-sub {
  color: var(--text-sub);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}
.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.section-header {
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
}
.section-header p {
  font-size: 16px;
  color: var(--text-sub);
  margin-top: 12px;
  max-width: 600px;
}
.section-header.center {
  text-align: center;
}
.section-header.center p {
  margin: 12px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--primary-light);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-md);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ---------- Card ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta a {
  font-size: 14px;
  font-weight: 700;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #7c3aed 100%);
  padding: 90px 0 80px;
  overflow: hidden;
  position: relative;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-title span {
  color: #fde68a;
}
.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.6;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat {
  color: #fff;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card-stack {
  position: relative;
  width: 320px;
  height: 360px;
}
.hero-card-stack .hcard {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  color: #fff;
}
.hcard-1 {
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}
.hcard-2 {
  bottom: 50px;
  left: 20px;
  right: 20px;
  z-index: 2;
  opacity: 0.7;
}
.hcard-3 {
  bottom: 90px;
  left: 40px;
  right: 40px;
  z-index: 1;
  opacity: 0.4;
}
.hcard-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.hcard-label {
  font-size: 13px;
  opacity: 0.8;
}
.hcard-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
}
.hcard-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}
.hcard-bar-fill {
  height: 100%;
  background: #fde68a;
  border-radius: 3px;
}
.floating-badge {
  position: absolute;
  background: var(--success);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.fb-1 {
  top: 20px;
  right: 0;
}
.fb-2 {
  top: 80px;
  left: -20px;
  background: var(--warn);
}
.fb-3 {
  top: 150px;
  right: -10px;
  background: var(--accent);
}

/* ============================================================
   TRUST / STATS BAR
   ============================================================ */
#trust {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.trust-item {
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.trust-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.trust-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
  font-weight: 600;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--line);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
#features {
  background: var(--canvas);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how {
  background: var(--surface);
}
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}
.steps-row::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  z-index: 0;
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
}
.step-1 .step-num {
  background: var(--primary-light);
  color: var(--primary);
}
.step-2 .step-num {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}
.step-3 .step-num {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success);
}
.step-4 .step-num {
  background: var(--warn-light);
  color: var(--warn);
  border-color: var(--warn);
}
.step-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 14px;
  color: var(--text-sub);
}

/* ============================================================
   EXAM CATEGORIES
   ============================================================ */
#categories {
  background: var(--canvas);
}
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text-sub);
  transition: var(--transition);
}
.cat-tab.active,
.cat-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.cat-card {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.cat-emoji {
  font-size: 36px;
  margin-bottom: 12px;
}
.cat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.cat-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   PACKAGES
   ============================================================ */
#packages {
  background: var(--surface);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.plan-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px 28px;
  border: 2px solid var(--line);
  background: var(--surface);
  transition: var(--transition);
}
.plan-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.plan-card.featured {
  border-color: var(--primary);
  background: #eff6ff;
}
.plan-popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
}
.plan-name {
  font-size: 18px;
  font-weight: 800;
}
.plan-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--primary);
  margin: 12px 0 4px;
  line-height: 1;
}
.plan-price span {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-sub);
}
.plan-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 24px;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sub);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.plan-features li:last-child {
  border-bottom: none;
}
.plan-features .check {
  color: var(--success);
  font-weight: 900;
  font-size: 16px;
}
.plan-cta {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

/* ============================================================
   AI TUTOR HIGHLIGHT
   ============================================================ */
#ai-highlight {
  background: linear-gradient(135deg, #0d1b3e 0%, #1a237e 50%, #4a148c 100%);
  padding: 80px 0;
}
.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ai-text h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ai-text h2 span {
  color: #c4b5fd;
}
.ai-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 32px;
  line-height: 1.7;
}
.ai-feature-list {
  margin-bottom: 32px;
}
.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  margin-bottom: 16px;
}
.ai-feature-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.ai-chat-demo {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(8px);
}
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.chat-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.chat-status {
  font-size: 12px;
  color: #86efac;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  max-width: 85%;
}
.chat-user {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
}
.chat-bot {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px 12px 12px 4px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}
.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.chat-send {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 18px;
}

/* ============================================================
   LEADERBOARD / SOCIAL PROOF
   ============================================================ */
#leaderboard {
  background: var(--canvas);
}
.lb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.lb-table {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.lb-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
}
.lb-row:last-child {
  border-bottom: none;
}
.lb-row:hover {
  background: var(--canvas);
}
.lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.rank-1 {
  background: #fef9c3;
  color: var(--warn);
}
.rank-2 {
  background: var(--canvas);
  color: var(--text-muted);
}
.rank-3 {
  background: #fee2e2;
  color: #dc2626;
}
.lb-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}
.lb-score {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}
.lb-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.testimonials-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.testi-stars {
  color: #f59e0b;
  font-size: 14px;
  margin-bottom: 10px;
}
.testi-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 14px;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
}
.testi-name {
  font-size: 13px;
  font-weight: 700;
}
.testi-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   APP DOWNLOAD CTA
   ============================================================ */
#app-cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.app-cta-text h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  margin-bottom: 16px;
}
.app-cta-text h2 span {
  color: var(--primary);
}
.app-cta-text p {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 32px;
}
.app-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.app-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--text-main);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.app-badge:hover {
  background: var(--primary);
}
.app-badge-icon {
  font-size: 24px;
}
.app-badge-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}
.phone-mockup {
  background: linear-gradient(145deg, var(--primary), var(--accent));
  border-radius: 32px;
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}
.phone-screen-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.pstat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.pstat-num {
  font-size: 24px;
  font-weight: 900;
}
.pstat-label {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 2px;
}
.phone-title {
  font-size: 18px;
  font-weight: 800;
}
.phone-sub {
  font-size: 13px;
  opacity: 0.75;
  margin-top: 4px;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  background: var(--canvas);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}
.faq-question:hover {
  background: var(--canvas);
}
.faq-question.open {
  color: var(--primary);
}
.faq-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}
.faq-question.open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.3s ease;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #0f1c35;
  color: #cbd5e1;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin: 12px 0 8px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
}
.social-btn:hover {
  background: var(--primary);
}
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a {
  color: #94a3b8;
}
.footer-bottom a:hover {
  color: #fff;
}

/* ============================================================
   INNER PAGES / LEGAL
   ============================================================ */
.page-hero {
  padding: 60px 0 56px;
  background: linear-gradient(135deg, #0d47a1, #1565c0, #7c3aed);
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto;
}
.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
.breadcrumbs a:hover {
  color: #fff;
}
.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.toc-card,
.prose-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.toc-card {
  padding: 20px;
  position: sticky;
  top: 88px;
}
.toc-card h2 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-list a {
  font-size: 14px;
  color: var(--text-sub);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.toc-list a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.prose-card {
  padding: 36px;
}
.prose-card h2 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.prose-card h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}
.prose-card h4 {
  font-size: 16px;
  margin: 18px 0 8px;
}
.prose-card p,
.prose-card li {
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.8;
}
.prose-card p + p {
  margin-top: 14px;
}
.prose-card ul,
.prose-card ol {
  margin: 14px 0 0 18px;
}
.prose-card ul {
  list-style: disc;
}
.prose-card ol {
  list-style: decimal;
}
.prose-card li + li {
  margin-top: 8px;
}
.prose-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}
.meta-pill {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.link-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.link-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.link-card p {
  font-size: 14px;
  color: var(--text-sub);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner,
  .ai-inner,
  .lb-grid,
  .app-cta-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc-card {
    position: static;
  }
  .hero-visual,
  .hero-card-stack {
    display: none;
  }
  .steps-row::before {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
  .nav-links,
  .nav-cta a:first-child {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .mobile-menu a {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
  }
  .mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
  }
  .trust-inner {
    flex-direction: column;
    gap: 24px;
  }
  .trust-divider {
    width: 80px;
    height: 1px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .prose-card {
    padding: 24px;
  }
}
