*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:       #020C45;
  /* Same value as styles.css:--ink. Duplicated because these pages do NOT load styles.css:
     a custom property is inherited through the DOM, not shared between stylesheets, so a
     var(--ink) here would be invalid-at-computed-value-time and silently fall back to
     `inherit`. Keep in step with styles.css. */
  --ink: #020C45;
  --blue:       #2563eb;
  --blue-mid:   #3578e5;
  --blue-light: #50A2FF;
  --blue-pale:  #e8f1ff;
  --white:      #ffffff;
  --gray-bg:    #f7f9fc;
  --gray-mid:   #9ca3af;
  --text:       #0f172a;
  --text-muted: #64748b;
  --border:     #e2e8f0;
  --radius:     12px;
  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo .check { color: var(--blue-light); margin-left: 2px; }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.btn-login { font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; color: var(--ink); background: none; border: none; cursor: pointer; padding: 8px 16px; border-radius: 8px; transition: background .2s; }
.btn-login:hover { background: var(--gray-bg); }
.btn-signup { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: #ffffff; background: var(--navy); border: none; cursor: pointer; padding: 8px 20px; border-radius: 8px; transition: background .2s; }
.btn-signup:hover { background: var(--blue); }

/* HERO */
.hero {
  background: var(--navy);
  padding: 96px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(80,162,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--blue-light); border-radius: 2px; }
.hero-eyebrow::after  { content: ''; display: block; width: 20px; height: 2px; background: var(--blue-light); border-radius: 2px; }
.hero-title {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #ffffff; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-title span { color: var(--blue-light); }
.hero-sub { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* SHARED */
.section-inner { max-width: 1100px; margin: 0 auto; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; color: var(--ink); line-height: 1.18; letter-spacing: -0.025em; margin-bottom: 16px; }
.section-sub { font-size: 1.05rem; font-weight: 300; color: var(--text-muted); line-height: 1.7; max-width: 560px; }

/* WHAT SECTION */
.what { padding: 96px 40px; background: var(--white); }
.what-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 60px; }
.what-text p { font-size: 1rem; font-weight: 300; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.what-text p strong { color: var(--ink); font-weight: 600; }
.what-cards { display: flex; flex-direction: column; gap: 16px; }
.what-card {
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.what-card-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.icon-navy  { background: var(--navy); color: #ffffff; }
.icon-blue  { background: var(--blue-pale); color: var(--blue); }
.icon-green { background: #f0fdf4; color: #15803d; }
.what-card h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.what-card p  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* EXAMPLES */
.examples { padding: 96px 40px; background: var(--gray-bg); }
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.example-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.example-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.08); transform: translateY(-3px); }
.example-emoji { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.example-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.example-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.example-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.tag-instant { background: #eff6ff; color: var(--blue); }
.tag-apply   { background: #fff7ed; color: #c2410c; }

/* HOW IT WORKS */
.hiw { padding: 96px 40px; background: var(--white); }
.hiw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.hiw-step {
  text-align: center; padding: 32px 20px;
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.hiw-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--blue-light); margin-bottom: 16px; display: block;
}
.hiw-step h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.hiw-step p  { font-size: 0.855rem; color: var(--text-muted); line-height: 1.65; }

/* FAQ */
.faq { padding: 96px 40px; background: var(--gray-bg); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; cursor: pointer; gap: 16px;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--ink);
  list-style: none; user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); flex-shrink: 0; transition: background .2s;
}
.faq-icon svg { transition: transform .2s; }
.faq-q:hover .faq-icon { background: var(--blue); color: #ffffff; }
details[open] .faq-icon { background: var(--navy); color: #ffffff; }
details[open] .faq-icon svg { transform: rotate(180deg); }
.faq-a { padding: 0 0 20px; font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; }
.faq-a a { color: var(--blue); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }
.faq-aside {
  background: var(--navy); border-radius: 20px;
  padding: 40px; display: flex; flex-direction: column; gap: 24px;
  height: fit-content; position: sticky; top: 84px;
}
.faq-aside-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: #ffffff; line-height: 1.3; }
.faq-aside-title span { color: var(--blue-light); }
.faq-aside p { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.7; }
.btn-faq-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  color: #020C45; background: #ffffff;
  padding: 13px 24px; border-radius: 10px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-faq-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* CTA */
.cta-section {
  padding: 96px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2380 60%, #1a3a8f 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(80,162,255,0.15) 0%, transparent 70%);
}
.cta-inner { position: relative; max-width: 600px; margin: 0 auto; }
.cta-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: #ffffff; line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 16px; }
.cta-title span { color: var(--blue-light); }
.cta-sub { font-size: 1.05rem; font-weight: 300; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-primary { font-family: var(--font-body); font-size: 0.925rem; font-weight: 600; color: #020C45; background: #ffffff; border: none; cursor: pointer; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-cta-secondary { font-family: var(--font-body); font-size: 0.925rem; font-weight: 600; color: #ffffff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); cursor: pointer; padding: 14px 28px; border-radius: 10px; text-decoration: none; transition: background .2s; }
.btn-cta-secondary:hover { background: rgba(255,255,255,0.2); }

/* FOOTER */
footer.footer { background: var(--navy); color: rgba(255,255,255,0.65); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 64px 40px 0; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: #ffffff; margin-bottom: 14px; }
.footer-check { color: var(--blue-light); }
.footer-tagline { font-size: 0.875rem; font-weight: 300; line-height: 1.7; max-width: 320px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.footer-social-btn:hover { border-color: var(--blue-light); color: var(--blue-light); background: rgba(80,162,255,0.1); }
.footer-links-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.footer-links-col a { font-size: 0.875rem; color: rgba(255,255,255,0.6); text-decoration: none; transition: color .2s; }
.footer-links-col a:hover { color: #ffffff; }
.footer-bottom { padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .hero, .what, .examples, .hiw, .faq, .cta-section { padding: 64px 20px; }
  .what-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .hiw-grid { grid-template-columns: 1fr 1fr; }
  .examples-grid { grid-template-columns: 1fr 1fr; }
  .faq-aside { position: static; }
  .footer-inner { padding: 48px 20px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .hiw-grid, .examples-grid { grid-template-columns: 1fr; }
}
/* ---------- Dark mode — toggled by JS/theme.js (faqs.html is self-contained) ---------- */
body.dark {
  --bg: #0b1226;
  --white: #111a38;           /* surface flips; always-white text is literal #ffffff */
  --gray-bg: #0e1832;
  --gray-light: #26325c;
  --gray-mid: #34426e;
  --border: #26325c;
  --text: #dbe4f8;
  --ink: #e8eefc;
  --text-muted: #93a3c8;
  --blue-pale: rgba(59,130,246,0.16);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  /* --navy is NOT flipped: it is the bg of heroes/footers/panels (already dark) */
  background: #0b1226;
  color: #dbe4f8;
}
body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5 { color: #e8eefc; }
body.dark .icon-green { background: rgba(21,128,61,0.25); color: #4ade80; }
body.dark .btn-login:hover { background: rgba(255,255,255,0.06); }
/* ── QA dark-mode accessibility fixes (faqs.html is self-contained → repaint nav + navy text) ── */
body.dark { color-scheme: dark; }
body.dark nav { background: #111a38; border-bottom-color: #26325c; }
body.dark nav .logo { color: #ffffff; }
body.dark .nav-links a { color: var(--text, #dbe4f8); }
body.dark .nav-links a:hover, body.dark .nav-links a.active { color: #50A2FF; }
body.dark .btn-login { color: var(--text, #dbe4f8); }
body.dark .faq-q { color: #e8eefc; }
body.dark .what-text p strong { color: #e8eefc; }
body.dark details[open] .faq-icon { background: #3b82f6; }
