/* LegalAI design system — Trust & Authority
   Palette: authority navy + trust amber. Fonts: EB Garamond / Lato. */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy: #1E3A8A;
  --navy-2: #1E40AF;
  --navy-deep: #172554;
  --cta: #B45309;
  --cta-hover: #92400E;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --ok: #15803D;
  --warn: #B45309;
  --err: #B91C1C;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
  --maxw: 1120px;
  --z-nav: 30; --z-modal: 50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Lato', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1,h2,h3 { font-family: 'EB Garamond', Georgia, serif; line-height: 1.2; color: var(--navy-deep); margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: 'Lato'; font-weight: 700; font-size: 1rem; border: 1px solid transparent;
  padding: .7rem 1.3rem; border-radius: var(--radius); transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); text-decoration: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: #fff; border-color: var(--navy); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: .45rem .8rem; font-size: .9rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(248,250,252,.9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'EB Garamond'; font-weight: 700; font-size: 1.45rem; color: var(--navy-deep); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 32px; height: 32px; }

/* Hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1100px 460px at 80% -10%, rgba(30,64,175,.10), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(180,83,9,.06), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--navy-2);
  background: rgba(30,64,175,.08); padding: .35rem .7rem; border-radius: 999px; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.trust-row { display: flex; gap: 1.4rem; margin-top: 2rem; flex-wrap: wrap; }
.trust-row .item { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); }
.trust-row svg { color: var(--ok); flex: none; }

/* Card visual in hero */
.glass-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 22px; }
.src-chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700;
  color: var(--navy-2); background: rgba(30,64,175,.08); border-radius: 8px; padding: .25rem .55rem; margin: .2rem .2rem 0 0; }
.cite { color: var(--navy-2); font-weight: 700; }

/* Sections */
section { padding: 64px 0; }
.section-head { max-width: 60ch; margin: 0 auto 40px; text-align: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); }
.step .num { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; background: rgba(30,64,175,.08); color: var(--navy-2); display: grid; place-items: center; margin-bottom: 14px; }

/* Honesty band */
.band { background: var(--navy-deep); color: #E2E8F0; }
.band h2 { color: #fff; }
.band .container { padding-top: 56px; padding-bottom: 56px; }
.band .note { display: flex; gap: 14px; align-items: flex-start; max-width: 70ch; margin: 0 auto; }
.band .note svg { color: #FBBF24; flex: none; margin-top: 3px; }

/* CTA */
.cta-band { background: linear-gradient(180deg, #fff, #EEF2FF); border-top: 1px solid var(--border); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--muted); font-size: .9rem; }
.disclaimer { font-size: .82rem; color: var(--muted); background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--cta); border-radius: 8px; padding: 12px 14px; margin-top: 16px; }

/* ── Immersive dark 3D hero ─────────────────────────────────────────── */
.hero-dark { position: relative; overflow: hidden; background: #0B1437; padding: 104px 0 96px; }
.hero-dark #hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-dark .hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1000px 620px at 16% 42%, rgba(11,20,55,.88), rgba(11,20,55,.4) 46%, transparent 72%),
    linear-gradient(90deg, rgba(11,20,55,.82) 0%, rgba(11,20,55,.28) 52%, transparent 82%); }
.hero-dark .container { position: relative; z-index: 2; }
.hero-dark .hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: 2;
  pointer-events: none; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-dark h1 { color: #ffffff; letter-spacing: -0.01em; }
.hero-dark p.lead { color: #C7D2E6; }
.eyebrow-dark { color: #FCD34D; background: rgba(252,211,77,.12); }
.hero-dark .trust-row .item { color: #AAB7D6; }
.hero-dark .trust-row svg { color: #34D399; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.38); }
.btn-ghost-light:hover { background: rgba(255,255,255,.10); border-color: #fff; text-decoration: none; }
.hero-card-wrap { display: flex; align-items: center; justify-content: flex-end; }
.glass-card-dark { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 70px rgba(0,0,0,.4); color: #E2E8F0; }
.glass-card-dark .gc-label { font-size: .78rem; font-weight: 700; color: #93A3C4; text-transform: uppercase; letter-spacing: .06em; }
.glass-card-dark .gc-q { font-weight: 700; color: #fff; margin: .3rem 0 1rem; }
.glass-card-dark .gc-a { color: #E2E8F0; margin: .3rem 0 .6rem; }
.glass-card-dark .gc-a strong { color: #FCD34D; }
.glass-card-dark .cite { color: #FCD34D; font-weight: 700; }
.glass-card-dark .src-chip { color: #BBD0FF; background: rgba(147,180,255,.14); }
.glass-card-dark .gc-disc { font-size: .78rem; color: #9FB0CE; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-left: 4px solid var(--cta); border-radius: 8px; padding: 10px 12px; margin-top: 14px; }

/* ── Editorial section ──────────────────────────────────────────────── */
.editorial { background: #fff; border-top: 1px solid var(--border); }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ed-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm); }
.ed-item h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.ed-item p { color: var(--muted); margin: 0; line-height: 1.7; }
.ed-item em { color: var(--navy-2); font-style: italic; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq-section { background: var(--bg); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-family: 'EB Garamond', Georgia, serif; font-size: 1.2rem;
  font-weight: 600; color: var(--navy-deep); padding: 16px 0; list-style: none; position: relative;
  padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.5rem;
  color: var(--cta); transition: transform .2s; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; max-width: 70ch; }

/* ── Scroll-reveal + nav shadow (modern interactions) ───────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.nav.nav-scrolled { box-shadow: 0 4px 20px rgba(15,23,42,.07); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .hero-dark .hero-card-wrap { justify-content: flex-start; }
  .ed-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
