/* ========================================
   LEXCHEST DESIGN SYSTEM v2
   ======================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-900: #0F172A;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --purple-600: #7C3AED;
  --green-500: #10B981;
  --red-600: #DC2626;
  --amber-600: #B45309;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05),0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.08),0 8px 16px rgba(0,0,0,0.04);
  --shadow-xl: 0 40px 80px rgba(0,0,0,0.12);
  --transition: 200ms cubic-bezier(0.4,0,0.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }

/* Typography base */
body { font-family: var(--font-sans); }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* Lucide icon sizing */
[data-lucide] { display: inline-block; vertical-align: middle; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Card base */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Module card */
.module-card { display: block; text-decoration: none; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-700); }

/* Blog card */
.blog-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; display: block; text-decoration: none; transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* Buttons */
.btn-primary { display: inline-block; background: var(--blue-700); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius-md); border: none; cursor: pointer; transition: background var(--transition), transform 100ms ease; font-family: var(--font-sans); }
.btn-primary:hover { background: var(--blue-800); }
.btn-primary:active { transform: scale(0.98); }
.btn-outline { display: inline-block; background: transparent; color: var(--blue-700); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius-md); border: 1.5px solid var(--blue-700); cursor: pointer; transition: all var(--transition); font-family: var(--font-sans); }
.btn-outline:hover { background: var(--blue-50); }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); letter-spacing: 0.05em; text-transform: uppercase; }
.badge-blue { background: var(--blue-50); color: var(--blue-700); }
.badge-green { background: #F0FDF4; color: #166534; }
.badge-amber { background: #FEF3C7; color: #92400E; }
.badge-red { background: #FEF2F2; color: var(--red-600); }

/* Nav */
.nav-bar { position: sticky; top: 0; z-index: 200; background: #fff; border-bottom: 1px solid transparent; transition: all 200ms ease; }
.nav-bar.scrolled { background: rgba(255,255,255,0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: rgba(226,232,240,0.8); box-shadow: 0 1px 8px rgba(0,0,0,0.06); }

/* Stats counter */
.stat-num { font-size: clamp(36px,5vw,56px); font-weight: 800; color: #fff; display: block; }
.stat-label { font-size: 16px; color: rgba(255,255,255,0.6); }

/* Scroll progress bar */
#scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: linear-gradient(90deg, #1D4ED8, #7C3AED); z-index: 9999; transition: width 0.1s; pointer-events: none; }

/* Callout boxes */
.callout-info { background: #EFF6FF; border-left: 4px solid #1D4ED8; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.callout-warn { background: #FEF3C7; border-left: 4px solid #B45309; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }
.callout-danger { background: #FEF2F2; border-left: 4px solid #DC2626; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 24px 0; }

/* Gradient mesh animation */
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
#gradient-mesh { background-size: 400% 400%; animation: gradientShift 12s ease infinite; }

/* Gradient accent */
.gradient-text { background: linear-gradient(135deg, #1D4ED8 0%, #7C3AED 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* JetBrains Mono legal refs */
.legal-ref { font-family: var(--font-mono); font-size: 13px; background: var(--gray-100); padding: 2px 6px; border-radius: var(--radius-sm); }

/* ============================================================
   LexChest — Shared Stylesheet
   ============================================================ */

/* 1. CSS Reset + Root Variables
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg:        #FFFFFF;
  --bg2:       #F8FAFC;
  --bg3:       #EFF6FF;
  --blue:      #1D4ED8;
  --blue-hover:#1E40AF;
  --navy:      #0F172A;
  --text:      #0F172A;
  --text2:     #475569;
  --text3:     #94A3B8;
  --border:    #E2E8F0;
  --success:   #10B981;
  --warning:   #F59E0B;
  --danger:    #EF4444;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;

  /* Layout */
  --max-width: 1280px;
  --section-pad: 96px;
  --card-pad: 32px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: var(--font-sans);
}

ul {
  list-style: none;
}


/* 2. Base Typography
   ============================================================ */
h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--navy);
}

p {
  color: var(--text2);
}

.label-caps {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
}


/* 3. Sticky Nav
   ============================================================ */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.nav-bar.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-lex {
  color: var(--navy);
  font-weight: 800;
  font-size: 22px;
  font-family: var(--font-sans);
}

.logo-chest {
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
  font-family: var(--font-sans);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-jur-btn {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.nav-jur-btn:hover {
  border-color: var(--blue);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--bg3);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 28px;
}


/* 4. Sections
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  color: var(--text2);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-sub {
  margin: 0 auto;
}

.section-alt {
  background: var(--bg2);
}

.section-blue {
  background: var(--bg3);
}


/* 5. Cards
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--card-pad);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-sm {
  padding: 20px;
}

.card-blue {
  background: var(--bg3);
  border-color: #BFDBFE;
}

.card-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 1px 3px rgba(0,0,0,0.06);
}

.card-featured:hover {
  box-shadow: 0 0 0 2px var(--blue), 0 10px 25px rgba(0,0,0,0.08);
}


/* 6. Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-blue {
  background: var(--bg3);
  color: var(--blue);
}

.badge-green {
  background: #ECFDF5;
  color: #059669;
}

.badge-yellow {
  background: #FFFBEB;
  color: #B45309;
}

.badge-red {
  background: #FEF2F2;
  color: #DC2626;
}

.badge-navy {
  background: var(--navy);
  color: #ffffff;
}


/* 7. Forms
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}


/* 8. Grids
   ============================================================ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* 9. Accuracy Dots
   ============================================================ */
.acc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.acc-green {
  background: var(--success);
}

.acc-yellow {
  background: var(--warning);
}

.acc-red {
  background: var(--danger);
}


/* 10. Accordion
    ============================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s;
}

.accordion-btn:hover {
  color: var(--blue);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content.open {
  max-height: 500px;
}

.accordion-content-inner {
  padding-bottom: 20px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-btn.open .accordion-icon {
  transform: rotate(180deg);
}


/* 11. Footer
    ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-logo .logo-lex {
  color: #ffffff;
}

.footer-logo .logo-chest {
  color: #93C5FD;
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

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

  .footer-brand {
    grid-column: span 1;
  }
}


/* 12. Hero, Trust Bar, How It Works, Pricing
    ============================================================ */

/* Hero */
.hero-section {
  background: var(--bg);
  padding: 80px 0 96px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: block;
  margin-bottom: 20px;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text2);
}

.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text3);
  margin: 0 14px;
  flex-shrink: 0;
}

/* Hero Document Preview Card */
.hero-preview {
  position: relative;
}

.doc-preview-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.doc-preview-header {
  background: var(--blue);
  padding: 20px 24px;
}

.doc-preview-header-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 4px;
}

.doc-preview-header-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.doc-preview-body {
  padding: 24px;
}

.doc-preview-field {
  margin-bottom: 16px;
}

.doc-preview-field-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 6px;
}

.doc-preview-field-value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--navy);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
}

.doc-preview-field-value.placeholder {
  color: var(--text3);
}

.doc-preview-divider {
  border: none;
  border-top: 1px dashed var(--border);
  margin: 16px 0;
}

.doc-preview-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Social Proof Bar */
.social-proof-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.social-proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
}

/* How It Works */
.how-it-works-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  border-top: 2px dashed #BFDBFE;
  z-index: 0;
}

.step-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* Document Category Cards */
.cat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  border-left: 3px solid transparent;
}

.cat-card:hover {
  border-left-color: var(--blue);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.cat-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}

.cat-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}

.cat-count {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 14px;
}

.cat-docs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-doc-item {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--text3);
}

/* Featured Document Cards */
.featured-doc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.featured-doc-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.featured-doc-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 10px;
}

.featured-doc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.featured-doc-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 16px;
}

.featured-doc-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s;
}

.featured-doc-link:hover {
  color: var(--blue-hover);
}

/* Accuracy Banner */
.accuracy-banner {
  background: var(--bg3);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  padding: 40px;
}

.accuracy-banner-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 8px;
}

.accuracy-banner-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 36px;
  max-width: 560px;
}

.accuracy-feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accuracy-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-bottom: 12px;
}

.accuracy-feature-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 6px;
}

.accuracy-feature-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* Pricing */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
}

.pricing-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 4px 16px rgba(29, 78, 216, 0.12);
  position: relative;
}

.pricing-card.featured:hover {
  box-shadow: 0 0 0 2px var(--blue), 0 14px 32px rgba(29, 78, 216, 0.14);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 4px;
}

.pricing-tier-price {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 40px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-tier-price span {
  font-size: 20px;
  font-weight: 600;
  vertical-align: top;
  margin-top: 6px;
  display: inline-block;
}

.pricing-tier-desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
}

.pricing-feature-item::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--text2);
}

.pricing-note a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}


/* 13. Mobile Nav
    ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  padding: 0 2rem 2rem;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.nav-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--navy);
  padding: 8px;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-overlay-links a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}

.nav-overlay-links a:hover {
  color: var(--blue);
}

.nav-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.nav-overlay-actions .btn-primary,
.nav-overlay-actions .btn-outline {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 20px;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-preview {
    order: -1;
  }

  h1 {
    font-size: 36px;
  }

  .how-it-works-steps {
    grid-template-columns: 1fr;
  }

  .how-it-works-steps::before {
    display: none;
  }

  .step-card {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 20px;
  }

  .step-circle {
    margin-bottom: 0;
  }

  .social-proof-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-cards {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }

  .section {
    padding: 64px 0;
  }

  .social-proof-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Utility Classes
   ============================================================ */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--text2); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }

.mt-0  { margin-top: 0; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }
.gap-24       { gap: 24px; }

.w-full { width: 100%; }

.btn-primary.w-full,
.btn-outline.w-full {
  display: flex;
  width: 100%;
  justify-content: center;
}

.faq-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
