/* ============================================================
   Lawfe — Marketing Website Stylesheet
   Design System: Indigo "Counsel" legal-AI aesthetic
   (deep indigo-navy ink, indigo primary, airy tinted whites)
   NOTE: legacy variable names (--gold*) are kept to avoid
   touching every var() reference; their VALUES are indigo now.
   ============================================================ */

/* ── Google Fonts ── */
/* Fonts are loaded from each page's <head> — no @import (avoids a duplicate render-blocking fetch). */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors (indigo primary — names are legacy) */
  --gold:          #7472DE;
  --gold-light:    #9694E8;
  --gold-pale:     #D6D6F7;
  --gold-ultra:    #E9E9FB;
  --gold-dark:     #4A48AB;

  /* Neutrals */
  --bg:            #FAFAFC;
  --surface:       #FFFFFF;
  --dark:          #1D1C45;
  --mid:           #3F3F54;
  --soft:          #71718A;
  --faint:         #C9C9D6;
  --border:        #E4E4ED;

  /* Semantic */
  --success:       #3D9A6E;
  --success-bg:    #E2F3EA;
  --error:         #CE5B5B;
  --info:          #185FA5;
  --info-bg:       #E6F1FB;

  /* Dark overlay */
  --dark-green:    #1D1C45;

  /* Typography */
  --font-display:  'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-ui:       'Figtree', -apple-system, 'Helvetica Neue', sans-serif;

  /* Spacing */
  --s-xs:  4px;
  --s-sm:  8px;
  --s-md:  12px;
  --s-lg:  16px;
  --s-xl:  20px;
  --s-2xl: 24px;
  --s-3xl: 32px;
  --s-4xl: 40px;
  --s-5xl: 48px;
  --s-6xl: 64px;
  --s-7xl: 80px;
  --s-8xl: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-soft:   0 2px 8px rgba(29,28,69, 0.07);
  --shadow-gold:   0 4px 20px rgba(116,114,222, 0.25);
  --shadow-strong: 0 8px 24px rgba(29,28,69, 0.16);
  --shadow-float:  0 20px 60px rgba(29,28,69, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   0.15s;
  --t-base:   0.3s;
  --t-slow:   0.6s;
  --t-slower: 0.9s;

  /* Layout */
  --max-w: 1200px;
  --nav-h: 72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Utility ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-2xl);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Inline icon (Lucide, replaces emoji glyphs sitewide).
   Sized relative to the parent's font-size so existing emoji
   holders (.feature-icon, .link-card .icon, .callout-icon, …)
   keep their proportions. */
svg.icon {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  vertical-align: -0.18em;
  flex: none;
}

/* ── Scroll Animation Classes ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.reveal--left  { transform: translateX(-50px); }
.reveal.reveal--right { transform: translateX(50px); }
.reveal.reveal--scale { transform: scale(0.9); }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-children.is-visible > * { opacity: 1; transform: none; }

/* ── Typography ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.t-gold { color: var(--gold); }
.t-mid  { color: var(--mid);  }
.t-soft { color: var(--soft); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-lg);
}

.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: var(--s-lg);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--soft);
  line-height: 1.7;
  max-width: 560px;
}

/* Inside centered section headers the width-capped subtitle block must
   center itself too, not sit flush left of the wider header */
header[style*="text-align:center"] .section-subtitle,
div[style*="text-align:center"] .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.1); }

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(116,114,222, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--dark);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-ghost {
  color: var(--gold);
  border: 1.5px solid rgba(116,114,222, 0.3);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
}

.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* Brand glyphs (Apple / Google Play) inside store buttons */
.btn .btn-brand-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ── Gold Divider ── */
.gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin-bottom: var(--s-2xl);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

#navbar.scrolled {
  background: rgba(247, 248, 253, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(21,21,42,0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.nav-logo-img { width: 30px; height: auto; display: block; }

.nav-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
}

.nav-logo-mark svg { width: 20px; height: 20px; }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4xl);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-base) var(--ease);
}

.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Current page (aria-current set by main.js): stronger color and the
   underline stays visible instead of waiting for hover */
.nav-links a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  padding: var(--s-2xl);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
  flex-direction: column;
  gap: var(--s-lg);
  z-index: 999;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a[aria-current="page"] { color: var(--gold-dark); font-weight: 600; }

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mid);
  padding: var(--s-sm) 0;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 var(--s-7xl);
}

/* Geometric background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero-bg-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(116,114,222,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-bg-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(61,154,110,0.10) 0%, transparent 70%);
  bottom: 0; left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(116,114,222,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,114,222,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--gold-pale);
  border: 1px solid rgba(116,114,222, 0.3);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: var(--s-2xl);
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(61,154,110, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61,154,110,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(61,154,110,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: var(--s-2xl);
}

.hero-title-line { display: block; }
.hero-title-line.gold { color: var(--gold); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--soft);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: var(--s-4xl);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  flex-wrap: wrap;
  margin-bottom: var(--s-5xl);
}

.hero-store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 12px 20px;
  transition: all var(--t-base) var(--ease);
}

.hero-store-btn:hover {
  background: var(--mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.hero-store-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.hero-store-btn-sub  { font-size: 0.6875rem; font-weight: 400; opacity: 0.7; }
.hero-store-btn-name { font-size: 0.9375rem; font-weight: 600; }

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  flex-wrap: wrap;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-left: -10px;
}
.hero-avatars .hero-avatar:first-child { margin-left: 0; }
.hero-avatar:nth-child(1) { background: linear-gradient(135deg, #7472DE, #9694E8); }
.hero-avatar:nth-child(2) { background: linear-gradient(135deg, #185FA5, #5592C7); }
.hero-avatar:nth-child(3) { background: linear-gradient(135deg, #3D9A6E, #4DC0A0); }
.hero-avatar:nth-child(4) { background: linear-gradient(135deg, #CE5B5B, #D97A75); }

.hero-proof-text { font-size: 0.875rem; color: var(--soft); }
.hero-proof-text strong { color: var(--dark); font-weight: 600; }

/* Hero phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone {
  position: relative;
  width: 280px;
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-16px) rotate(-2deg); }
}

.hero-phone-frame {
  width: 100%;
  aspect-ratio: 9/19.5;
  background: var(--dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px rgba(21,21,42,0.35),
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.5);
  position: relative;
}

.hero-phone-notch {
  width: 100px; height: 26px;
  background: var(--dark);
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}

.hero-phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

/* Phone screen UI elements */
.phone-ui {
  padding: 40px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-greeting {
  font-size: 10px;
  font-weight: 600;
  color: var(--dark);
}

.phone-greeting span { display: block; font-size: 8px; color: var(--soft); font-weight: 400; }

.phone-avatar-sm {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
}

.phone-hero-card {
  background: linear-gradient(135deg, var(--dark) 0%, #2C2B64 100%);
  border-radius: 14px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.phone-hero-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(116,114,222,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.phone-card-label { font-size: 7px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.phone-card-title { font-size: 11px; font-weight: 700; color: #fff; margin: 2px 0 4px; }
.phone-card-sub   { font-size: 8px; color: rgba(255,255,255,0.6); }

.phone-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(116,114,222,0.25);
  border: 1px solid rgba(185,184,240,0.4); /* visible on the dark card */
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 7px;
  color: var(--gold-light);
  margin-top: 8px;
}

.phone-topics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.phone-topic {
  background: var(--gold-pale);
  border: 1px solid rgba(116,114,222,0.2);
  border-radius: 20px;
  padding: 4px 8px;
  font-size: 7px;
  font-weight: 500;
  color: var(--gold-dark);
}

.phone-chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 0;
  padding: 8px 10px;
  font-size: 7px;
  color: var(--dark);
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
  max-width: 85%;
}

.phone-chat-bubble.user {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  border-radius: 10px 10px 0 10px;
  align-self: flex-end;
  margin-left: auto;
}

.phone-chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Floating cards around phone */
.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-md) var(--s-lg);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: var(--s-md);
  white-space: nowrap;
}

.hero-float-card-1 {
  top: 15%;
  right: -10%;
  animation: floatCard1 5s ease-in-out infinite;
}

.hero-float-card-2 {
  bottom: 20%;
  left: -12%;
  animation: floatCard2 7s ease-in-out infinite;
}

@keyframes floatCard1 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%       { transform: translateY(-10px) rotate(2deg); }
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-8px) rotate(-3deg); }
}

.float-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}

.float-icon-gold { background: var(--gold-pale); }
.float-icon-green { background: var(--success-bg); }

.float-card-content { display: flex; flex-direction: column; }
.float-card-title  { font-size: 0.8125rem; font-weight: 600; color: var(--dark); }
.float-card-sub    { font-size: 0.6875rem; color: var(--soft); }

/* ============================================================
   STATS STRIP
   ============================================================ */
#stats {
  padding: var(--s-5xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3xl);
}

.stat-item {
  text-align: center;
  padding: var(--s-xl);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--s-sm);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--soft);
  font-weight: 500;
}

/* ============================================================
   FEATURES
   ============================================================ */
#features {
  padding: var(--s-8xl) 0;
}

.features-header {
  text-align: center;
  margin-bottom: var(--s-6xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2xl);
  margin-bottom: var(--s-5xl);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl);
  transition: all var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  border-color: rgba(74,72,171, 0.25);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--s-2xl);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--s-md);
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--soft);
  line-height: 1.7;
}

/* Feature highlight row */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3xl);
  align-items: center;
  padding: var(--s-5xl);
  background: linear-gradient(135deg, var(--dark) 0%, #2C2B64 100%);
  border-radius: var(--r-2xl);
  overflow: hidden;
  position: relative;
}

.feature-highlight::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(116,114,222,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.feature-highlight-content { position: relative; z-index: 1; }

.feature-highlight-content .section-title { color: #fff; }
.feature-highlight-content .section-subtitle { color: rgba(255,255,255,0.6); }

.feature-highlight-list {
  margin-top: var(--s-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
}

.feature-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-lg);
}

.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(61,154,110, 0.15);
  border: 1px solid rgba(61,154,110, 0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-icon svg { width: 11px; height: 11px; }

.feature-highlight-item-text strong { font-size: 0.9375rem; color: #fff; font-weight: 500; display: block; }
.feature-highlight-item-text span   { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.feature-highlight-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

/* Document analysis card */
.doc-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2xl);
  padding: var(--s-2xl);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 320px;
}

.doc-card-header {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  margin-bottom: var(--s-xl);
  padding-bottom: var(--s-xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.doc-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(116,114,222,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
}

.doc-card-title { font-size: 0.9375rem; font-weight: 600; color: #fff; }
.doc-card-sub   { font-size: 0.75rem; color: rgba(255,255,255,0.4); }

.doc-risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-lg);
}

.doc-risk-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.risk-badge {
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.risk-high   { background: rgba(206,91,91,0.2); color: #E08585; }
.risk-medium { background: rgba(186,117,23,0.2); color: #E0A050; }
.risk-low    { background: rgba(61,154,110,0.2); color: #4DC0A0; }

.doc-clauses { display: flex; flex-direction: column; gap: var(--s-sm); }

.doc-clause {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  padding: var(--s-md);
}

.clause-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.clause-dot-gold  { background: var(--gold); }
.clause-dot-red   { background: #E08585; }
.clause-dot-green { background: #4DC0A0; }

.clause-text { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
#how-it-works {
  padding: var(--s-8xl) 0;
  background: var(--surface);
}

.how-header {
  text-align: center;
  margin-bottom: var(--s-6xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2xl);
  position: relative;
}

/* Centered 3-step variant (e.g. lawyer apply) */
.steps-container.steps-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.steps-container.steps-3::before { display: none; }
.steps-container.steps-3 .step { text-align: center; }
.steps-container.steps-3 .step-num { margin-left: auto; margin-right: auto; }
@media (max-width: 768px) {
  .steps-container.steps-3 { grid-template-columns: 1fr; max-width: 360px; }
}

/* Connector line */
.steps-container::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  opacity: 0.3;
}

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

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto var(--s-2xl);
  position: relative;
  z-index: 1;
  transition: all var(--t-base) var(--ease);
}

.step-item:hover .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
  transform: scale(1.1);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--s-md);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.6;
}

/* ============================================================
   LEGAL AREAS
   ============================================================ */
#legal-areas {
  padding: var(--s-8xl) 0;
  background: var(--gold-ultra);
}

.areas-header {
  text-align: center;
  margin-bottom: var(--s-6xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2xl);
}

.area-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-3xl);
  display: flex;
  align-items: flex-start;
  gap: var(--s-xl);
  transition: all var(--t-base) var(--ease);
  cursor: default;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  border-color: rgba(116,114,222, 0.3);
}

.area-emoji {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--gold-pale);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.area-content { flex: 1; }

.area-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--s-sm);
}

.area-desc {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.65;
}

/* ============================================================
   PRICING
   ============================================================ */
#pricing {
  padding: var(--s-8xl) 0;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--s-5xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Billing Toggle */
.billing-toggle {
  /* shrink-wrapped block (not inline-flex) so `margin: 0 auto`
     actually centers it in the section */
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px;
  margin: 0 auto var(--s-5xl);
  position: relative;
}

.billing-toggle-btn {
  padding: 8px 20px;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--soft);
  transition: all var(--t-base) var(--ease);
  position: relative;
  z-index: 1;
}

.billing-toggle-btn.active {
  color: #fff; /* on the indigo slider pill — ink-on-indigo fails AA */
  font-weight: 600;
}

.billing-toggle-slider {
  position: absolute;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: all var(--t-base) var(--ease);
  top: 4px; bottom: 4px;
  z-index: 0;
}

.billing-badge {
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
  margin-left: var(--s-xs);
}

/* Pricing tabs */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: var(--s-md);
  margin-bottom: var(--s-4xl);
}

.pricing-tab {
  padding: 10px 24px;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t-base) var(--ease);
}

.pricing-tab.active {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2xl);
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl);
  position: relative;
  transition: all var(--t-base) var(--ease);
}

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

.pricing-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold), 0 20px 60px rgba(74,72,171,0.08);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: var(--shadow-gold), 0 30px 80px rgba(116,114,222,0.12);
}

.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%; transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.pricing-plan-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: var(--s-sm);
}

.pricing-plan-desc {
  font-size: 0.875rem;
  color: var(--soft);
  margin-bottom: var(--s-2xl);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--s-xs);
  margin-bottom: var(--s-xl);
}

.pricing-price-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
}

.pricing-price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-price-period {
  font-size: 0.875rem;
  color: var(--soft);
}

.pricing-price-note {
  font-size: 0.75rem;
  color: var(--soft);
  margin-bottom: var(--s-2xl);
  min-height: 1.2em;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: var(--s-2xl);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
  margin-bottom: var(--s-3xl);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s-md);
  font-size: 0.9rem;
  color: var(--mid);
}

.pricing-feature.disabled {
  opacity: 0.4;
}

.pricing-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-check svg { width: 10px; height: 10px; }

.pricing-x {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-x svg { width: 8px; height: 8px; }

/* Lawyer pricing section */
.lawyer-pricing {
  margin-top: var(--s-7xl);
  padding: var(--s-5xl);
  background: var(--gold-ultra);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
}

.lawyer-pricing-header {
  text-align: center;
  margin-bottom: var(--s-4xl);
}

.lawyer-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2xl);
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================================
   LAWYERS SECTION
   ============================================================ */
#for-lawyers {
  padding: var(--s-8xl) 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

#for-lawyers::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(116,114,222,0.07) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(116,114,222,0.05) 0%, transparent 40%);
}

.lawyers-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7xl);
  align-items: center;
}

.lawyers-content .section-title { color: #fff; }
.lawyers-content .section-subtitle { color: rgba(255,255,255,0.55); }

.lawyers-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-lg);
  margin-top: var(--s-4xl);
}

.lawyers-benefit {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  padding: var(--s-2xl);
  transition: all var(--t-base) var(--ease);
}

.lawyers-benefit:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(116,114,222,0.2);
}

.lawyers-benefit-icon {
  font-size: 1.5rem;
  margin-bottom: var(--s-md);
}

.lawyers-benefit-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--s-xs);
}

.lawyers-benefit-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

/* Lawyers visual */
.lawyers-visual {
  display: flex;
  justify-content: center;
}

.lawyer-profile-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 360px;
}

.lawyer-card-header {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  margin-bottom: var(--s-2xl);
  padding-bottom: var(--s-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lawyer-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.lawyer-name  { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.lawyer-spec  { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

.lawyer-badge-top {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.lawyer-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  margin-bottom: var(--s-2xl);
}

.lawyer-stat {
  background: rgba(255,255,255,0.04);
  border-radius: var(--r-md);
  padding: var(--s-md);
  text-align: center;
}

.lawyer-stat-num   { font-size: 1.125rem; font-weight: 700; color: var(--gold-light); }
.lawyer-stat-label { font-size: 0.6875rem; color: rgba(255,255,255,0.4); margin-top: 2px; }

.lawyer-specializations {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.lawyer-spec-tag {
  background: rgba(116,114,222,0.15);
  border: 1px solid rgba(116,114,222,0.25);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  padding: var(--s-8xl) 0;
  background: var(--surface);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--s-6xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2xl);
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl);
  transition: all var(--t-base) var(--ease);
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s-xl);
}

.testimonial-stars span { color: var(--gold); font-size: 1rem; }

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: var(--s-2xl);
  font-style: italic;
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--gold-pale);
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: var(--s-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-md);
}

.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.t-name { font-size: 0.9375rem; font-weight: 600; color: var(--dark); }
.t-role { font-size: 0.8125rem; color: var(--soft); }

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  padding: var(--s-8xl) 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7xl);
  align-items: start;
}

.faq-sidebar { position: sticky; top: calc(var(--nav-h) + 32px); }

.faq-list { display: flex; flex-direction: column; gap: var(--s-md); }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
}

.faq-item.is-open {
  border-color: rgba(74,72,171,0.3);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--s-2xl) var(--s-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--t-fast);
}

.faq-item.is-open .faq-question { color: var(--gold); }

.faq-chevron {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t-base) var(--ease);
}

.faq-item.is-open .faq-chevron {
  background: var(--gold-pale);
  transform: rotate(180deg);
}

.faq-chevron svg { width: 12px; height: 12px; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease), padding var(--t-base);
}

.faq-item.is-open .faq-answer { max-height: 500px; }

.faq-answer-inner {
  padding: 0 var(--s-3xl) var(--s-2xl);
  font-size: 0.9375rem;
  color: var(--soft);
  line-height: 1.75;
}

/* ============================================================
   CTA / DOWNLOAD
   ============================================================ */
#cta {
  padding: var(--s-8xl) 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--dark) 0%, #2C2B64 60%, #15152A 100%);
  border-radius: 32px;
  padding: var(--s-7xl) var(--s-5xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ghost buttons sit on the dark CTA gradient on most pages — the
   indigo primary is unreadable there, so lift to indigo-200. */
.cta-box .btn-ghost {
  color: #B9B8F0;
  border-color: rgba(185,184,240, 0.45);
}
.cta-box .btn-ghost:hover {
  color: var(--gold-dark);
  background: var(--gold-pale);
  border-color: var(--gold-pale);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(116,114,222,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--s-2xl);
}

.cta-stars span { color: var(--gold); font-size: 1.25rem; }

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-xl);
  position: relative;
  z-index: 1;
}

.cta-title span { color: var(--gold-light); }

.cta-subtitle {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto var(--s-4xl);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--s-lg);
  flex-wrap: wrap;
  margin-bottom: var(--s-3xl);
  position: relative;
  z-index: 1;
}

.cta-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

/* App store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xl);
  padding: 14px 22px;
  color: #fff;
  transition: all var(--t-base) var(--ease);
  backdrop-filter: blur(10px);
}

.store-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(74,72,171,0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.store-btn-icon { font-size: 1.75rem; }
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-btn-sub  { font-size: 0.6875rem; opacity: 0.6; font-weight: 400; }
.store-btn-name { font-size: 1rem; font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: var(--dark);
  padding: var(--s-6xl) 0 var(--s-4xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-5xl);
  padding-bottom: var(--s-5xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--s-4xl);
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-lg);
}
.footer-brand-name img { width: 26px; height: auto; }

.footer-brand-name span { color: var(--gold); }

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: var(--s-3xl);
}

.footer-socials {
  display: flex;
  gap: var(--s-md);
}

.footer-social {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--t-base) var(--ease);
}

.footer-social:hover {
  background: rgba(116,114,222,0.2);
  border-color: rgba(74,72,171,0.3);
  transform: translateY(-2px);
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--s-xl);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-lg);
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: var(--s-2xl);
}

.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner             { grid-template-columns: 1fr; gap: var(--s-5xl); }
  /* copy first on small screens; the phone mock follows the CTAs */
  .hero-visual            { order: 2; }
  .hero-phone             { width: 220px; }
  .hero-float-card-1,
  .hero-float-card-2      { display: none; }
  .features-grid          { grid-template-columns: repeat(2, 1fr); }
  .feature-highlight      { grid-template-columns: 1fr; }
  .steps-container        { grid-template-columns: repeat(2, 1fr); }
  .steps-container::before{ display: none; }
  .areas-grid             { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid           { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured  { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .lawyer-pricing-grid    { grid-template-columns: 1fr; }
  .lawyers-inner          { grid-template-columns: 1fr; }
  .testimonials-grid      { grid-template-columns: 1fr; }
  .faq-inner              { grid-template-columns: 1fr; }
  .faq-sidebar            { position: static; }
  .footer-top             { grid-template-columns: 1fr 1fr; }
  .stats-grid             { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 var(--s-xl); }
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .features-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lawyers-benefits { grid-template-columns: 1fr; }
  .cta-box { padding: var(--s-5xl) var(--s-3xl); }
  /* Footer on phones: brand spans full width, then Product / Legal /
     Company link columns flow two-up. */
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s-4xl) var(--s-3xl); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-phone { width: 200px; }
  .steps-container { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

/* Wide comparison tables (Features / Pricing): let the table shrink to its
   container on small screens instead of overflowing (overrides the inline
   min-width used in the markup). Cell density is tightened below. */
@media (max-width: 560px) {
  .facts-table { min-width: 0 !important; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: var(--s-3xl);
  right: var(--s-3xl);
  width: 44px; height: 44px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: all var(--t-base) var(--ease);
  z-index: 500;
}

#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74,72,171,0.4);
}

/* Cookie / announcement banner */
.topbar {
  background: var(--gold);
  color: #fff;
  text-align: center;
  padding: 10px var(--s-2xl);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { opacity: 0.8; }

.topbar-close {
  position: absolute;
  right: var(--s-2xl); top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.875rem;
  transition: background var(--t-fast);
}

.topbar-close:hover { background: rgba(255,255,255,0.35); }

/* Jurisdiction flag strip */
.jurisdictions {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  margin-top: var(--s-2xl);
  flex-wrap: wrap;
}

.jurisdiction-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--mid);
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   FORMS (contact / report / lawyer-apply) — mobile-friendly
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
}

.form-group {
  margin-bottom: var(--s-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-ui);
  font-size: 16px;               /* >=16px prevents iOS zoom-on-focus */
  color: var(--dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;            /* ~46px tall — comfortable tap target */
  line-height: 1.4;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  -webkit-appearance: none;
  appearance: none;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D4566' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

[dir="rtl"] .form-group select {
  background-position: left 14px center;
  padding-right: 14px;
  padding-left: 38px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--mid); opacity: 0.7; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(116,114,222,0.18);
}

.form-submit { width: 100%; margin-top: var(--s-sm); }

.form-note {
  margin-top: var(--s-lg);
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.5;
}

/* Key-facts table (What is Lawfe) — horizontal-scroll safety on small screens */
.facts-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 480px) {
  .facts-table th,
  .facts-table td { padding: 8px 7px !important; font-size: 0.82rem; line-height: 1.3; vertical-align: top; }
}

/* ============================================================
   SUBPAGE HERO  (legal-areas, blog, about, legal docs, etc.)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + var(--s-6xl)) 0 var(--s-5xl);
  background:
    radial-gradient(900px 360px at 80% -10%, rgba(116,114,222,0.12), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 860px; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.08;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.page-hero .page-lead {
  margin-top: var(--s-xl);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--mid);
  max-width: 70ch;
}

/* ── Breadcrumbs ── */
.breadcrumb { margin-bottom: var(--s-xl); font-size: 0.8125rem; color: var(--soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: "/"; color: var(--faint); }
.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--mid); }

/* ── Eyebrow tag ── */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-sm);
  background: var(--gold-ultra); color: var(--gold-dark);
  border: 1px solid var(--gold-pale);
  border-radius: var(--r-full); padding: 5px 14px;
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}

/* ============================================================
   ARTICLE / LONG-FORM PROSE  (blog posts, legal areas, policies)
   ============================================================ */
.prose-wrap { padding: var(--s-7xl) 0; }
.prose-wrap .container { max-width: 760px; }

.prose { color: var(--dark); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: var(--s-xl); }
.prose h2 {
  font-family: var(--font-display); font-size: 1.85rem; line-height: 1.2;
  color: var(--dark); margin-top: var(--s-5xl); letter-spacing: -0.01em;
}
.prose h3 {
  font-family: var(--font-ui); font-size: 1.2rem; font-weight: 600;
  color: var(--dark); margin-top: var(--s-3xl);
}
.prose p { color: var(--mid); }
.prose strong { color: var(--dark); font-weight: 600; }
.prose a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.35em; color: var(--mid); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-sm); }
.prose li { padding-left: 4px; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: var(--s-md) var(--s-xl);
  background: var(--gold-ultra);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--dark); font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--dark); font-weight: 600; }
.prose td { color: var(--mid); }
.prose-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Lead paragraph / answer block (GEO citability) */
.lead-answer {
  font-size: 1.18rem; line-height: 1.65; color: var(--dark);
  border-left: 3px solid var(--gold); padding-left: var(--s-xl);
}

/* Callout / disclaimer box */
.callout {
  display: flex; gap: var(--s-md);
  background: var(--info-bg); border: 1px solid #cfe1f3;
  border-radius: var(--r-md); padding: var(--s-xl);
  font-size: 0.95rem; color: var(--dark); line-height: 1.6;
}
/* Warn stays warm so it reads as a caution, distinct from the
   cool-blue info callout (both were indigo-washed by the rebrand). */
.callout--warn { background: #F7EEDC; border-color: #ECDFBE; }
.callout--warn .callout-icon { color: #BA8A2E; }
.callout .callout-icon { flex: none; font-size: 1.1rem; line-height: 1.5; }

/* Article byline / meta */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); color: var(--soft); font-size: 0.85rem; }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.byline {
  display: flex; align-items: center; gap: var(--s-md);
  margin: var(--s-3xl) 0; padding: var(--s-lg) 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.byline .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark); color: #fff; font-weight: 600; font-size: 0.85rem;
}
.byline .byline-name { font-weight: 600; color: var(--dark); font-size: 0.9rem; }
.byline .byline-sub { color: var(--soft); font-size: 0.8rem; }

/* ============================================================
   BLOG INDEX
   ============================================================ */
.post-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3xl);
}
/* 3-up variant (homepage "From the blog"). Defined before the responsive
   rule below so the max-width:900px breakpoint still collapses it to 1 column. */
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-3xl);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.post-card { padding: 0; overflow: hidden; }
.post-card-img { width: 100%; height: auto; display: block; background: var(--gold-ultra); }
.post-card > :not(.post-card-img) { margin-left: var(--s-3xl); margin-right: var(--s-3xl); }
.post-card .cat { display: block; margin-top: var(--s-2xl); color: var(--gold-dark); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.post-card > :last-child { margin-bottom: var(--s-2xl); }

/* Article featured/hero image */
.prose .area-link {
  background: var(--gold-ultra);
  border: 1px solid var(--gold-pale);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  font-size: 0.95rem;
}
.prose .area-link a { text-decoration: none; font-weight: 600; }

.post-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  margin: var(--s-4xl) auto 0;
  box-shadow: var(--shadow-soft);
  background: var(--gold-ultra);
}
.post-card h3 { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.22; color: var(--dark); margin-top: var(--s-sm); }
.post-card p { color: var(--mid); font-size: 0.95rem; line-height: 1.6; margin-top: var(--s-md); flex: 1 1 auto; }
.post-card .read-more { margin-top: var(--s-lg); color: var(--gold-dark); font-weight: 600; font-size: 0.9rem; }
.post-card:hover .read-more { text-decoration: underline; }

/* ── Related / next reads ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2xl); }

/* ============================================================
   CARD GRID (generic, used by legal-areas hub + blog teaser)
   ============================================================ */
.link-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2xl); }
/* 4-up variant (e.g. For Lawyers benefits). Defined before the responsive
   rules below so the max-width breakpoints still collapse it to 2/1 columns. */
.link-card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.link-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-3xl);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: var(--gold-pale); }
.link-card .icon { font-size: 1.6rem; }
.link-card h3 { font-family: var(--font-ui); font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-top: var(--s-md); }
.link-card p { color: var(--mid); font-size: 0.92rem; line-height: 1.55; margin-top: var(--s-sm); }

/* ============================================================
   RESPONSIVE additions
   ============================================================ */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .related-grid, .link-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .related-grid, .link-card-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: calc(var(--nav-h) + var(--s-4xl)); }
  .prose-wrap { padding: var(--s-5xl) 0; }
  .prose { font-size: 1rem; }
  .prose h2 { font-size: 1.5rem; }
}

/* ============================================================
   HERO v2 — ANIMATION LAYER
   Aurora backdrop, drifting grid, shimmer headline, staged
   entrances, floating chips, glowing CTA, animated phone chat,
   scroll cue. All of it is decorative: prefers-reduced-motion
   collapses every animation at the bottom of this section.
   ============================================================ */

/* Aurora — three soft color fields slowly breathing behind the hero */
.hero-aurora {
  position: absolute;
  inset: -20%;
  /* no blur filter: the gradients are already soft, and blurring a
     layer ~140% of the viewport while transform-animating it is the
     single most expensive thing in the hero */
  background:
    radial-gradient(40% 35% at 25% 30%, rgba(116,114,222, 0.16), transparent 70%),
    radial-gradient(35% 30% at 78% 22%, rgba(150,148,232, 0.13), transparent 70%),
    radial-gradient(45% 40% at 60% 78%, rgba(61,154,110, 0.09), transparent 70%);
  animation: auroraShift 16s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1)    rotate(0deg); }
  50%  { transform: translate3d(2%, 3%, 0)   scale(1.07) rotate(2deg); }
  100% { transform: translate3d(4%, -3%, 0)  scale(1.03) rotate(-2deg); }
}

/* Blueprint grid, fading out toward the edges. Static on purpose:
   animating background-position on a viewport-sized masked layer
   forces a full repaint every frame. */
.hero-bg-grid {
  mask-image: radial-gradient(75% 75% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 40%, #000 30%, transparent 100%);
}

/* Third orb — violet, mid-field */
.hero-bg-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(150,148,232, 0.16) 0%, transparent 70%);
  top: 38%; left: 32%;
  animation: float 12s ease-in-out infinite 2s;
}

/* Headline: editorial mask reveal — each line slides up from behind an
   overflow clip. padding-bottom keeps descenders (g, y, p) unclipped. */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.line-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: lineUp 0.8s var(--ease) 0.15s forwards;
}
.line-inner-2 { animation-delay: 0.32s; }

@keyframes lineUp {
  from { transform: translateY(115%); }
  to   { transform: translateY(0); }
}

/* Accent line: static gradient (stops >=3.8:1 on --bg) on the inner
   span, with a pen-stroke underline that draws itself in below. */
.hero-title-line.gold { display: block; }
.gold-wrap { display: inline-block; position: relative; }
.hero-title-line.gold .line-inner {
  background: linear-gradient(110deg, var(--gold) 15%, #5D5ACD 45%, #7472DE 60%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-underline {
  position: absolute;
  left: 0; bottom: -0.04em;
  width: 100%; height: 0.16em;
  overflow: visible;
}
.hero-underline path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: underlineDraw 0.8s var(--ease) 1.05s forwards;
}

@keyframes underlineDraw {
  to { stroke-dashoffset: 0; }
}

/* Staged entrance on load (hero is above the fold, so these run
   immediately rather than waiting for the IntersectionObserver).
   fill-mode is `backwards`, NOT `forwards`: a forwards fill would pin
   the to-keyframe transform forever and swallow any hover/JS
   transforms applied to the same elements later. */
.hero-enter {
  animation: heroRise 0.85s var(--ease) backwards;
}
.hero-enter.e1 { animation-delay: 0.05s; }
.hero-enter.e2 { animation-delay: 0.16s; }
.hero-enter.e3 { animation-delay: 0.28s; }
.hero-enter.e4 { animation-delay: 0.40s; }
.hero-enter.e5 { animation-delay: 0.52s; }
.hero-enter.e6 { animation-delay: 0.64s; }
.hero-enter.e7 { animation-delay: 0.80s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Per-element entrance variants on top of the shared delays */
.hero-badge.hero-enter { animation-name: dropIn; }
.hero-subtitle.hero-enter { animation-name: blurIn; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blurIn {
  from { opacity: 0; filter: blur(8px); }
  to   { opacity: 1; filter: blur(0); }
}

/* Phone column slides in from the right and settles */
.hero-visual-enter { animation: visualIn 1s var(--ease) 0.45s backwards; }

@keyframes visualIn {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Capability chips pop in with a little overshoot, then sit still
   (backwards fill so the JS/hover transforms aren't pinned) */
#hero .jurisdiction-tag {
  animation: chipPop 0.5s var(--ease) backwards;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
#hero .jurisdiction-tag:nth-child(1) { animation-delay: 0.55s; }
#hero .jurisdiction-tag:nth-child(2) { animation-delay: 0.67s; }
#hero .jurisdiction-tag:nth-child(3) { animation-delay: 0.79s; }
#hero .jurisdiction-tag:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
#hero .jurisdiction-tag svg.icon { color: var(--gold-dark); }

@keyframes chipPop {
  0%   { opacity: 0; transform: scale(0.85); }
  70%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* Primary CTA: a sheen sweeps across every few seconds */
.btn-sheen::before {
  content: '';
  position: absolute;
  top: -2px; bottom: -2px;
  width: 36%; left: -50%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg);
  animation: sheenSweep 4.5s ease-in-out 1.6s infinite;
  pointer-events: none;
}

@keyframes sheenSweep {
  0%   { left: -50%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}

/* Trust ticks under the CTAs */
.hero-trust {
  display: flex;
  gap: var(--s-lg) var(--s-xl);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--soft);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust svg.icon { color: var(--success); }

/* Phone chat: topics pop in, then the conversation plays */
.phone-topic {
  opacity: 0;
  animation: bubbleIn 0.45s var(--ease) forwards;
}
.phone-topics .phone-topic:nth-child(1) { animation-delay: 0.7s; }
.phone-topics .phone-topic:nth-child(2) { animation-delay: 0.82s; }
.phone-topics .phone-topic:nth-child(3) { animation-delay: 0.94s; }
.phone-topics .phone-topic:nth-child(4) { animation-delay: 1.06s; }

.phone-chat-bubble {
  opacity: 0;
  animation: bubbleIn 0.5s var(--ease) forwards;
}
.phone-chat-wrap { position: relative; }
.phone-chat-wrap .phone-chat-bubble.user { animation-delay: 1.2s; }
.phone-chat-wrap .phone-chat-bubble.ai-msg { animation-delay: 4.5s; }

/* Typing indicator overlays the (still invisible) reply's spot, then
   fades out right as the reply pops in */
.phone-typing {
  position: absolute;
  left: 0; bottom: 0;
  display: flex; align-items: center; gap: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px 10px 10px 0;
  padding: 9px 10px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  animation: typingShow 3s var(--ease) 1.6s forwards;
}
.phone-typing span {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--soft);
  animation: typingDot 1s ease-in-out infinite;
}
.phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.phone-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingShow {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes typingDot {
  0%, 100% { transform: translateY(0);    opacity: 0.45; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Float cards slide in from opposite sides (ending at the rotation
   their idle bob holds, so the handoff doesn't snap), then keep bobbing */
.hero-float-card { opacity: 0; animation-fill-mode: forwards; }
.hero-float-card-1 { animation: cardInR 0.7s var(--ease) 1.4s forwards, floatCard1 5s ease-in-out 2.1s infinite; }
.hero-float-card-2 { animation: cardInL 0.7s var(--ease) 1.7s forwards, floatCard2 7s ease-in-out 2.4s infinite; }
.hero-float-card .icon-chip {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gold-ultra);
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.hero-float-card .fc-title { font-size: 0.8rem; font-weight: 600; color: var(--dark); }
.hero-float-card .fc-sub   { font-size: 0.7rem; color: var(--soft); }
.hero-float-card-2 .icon-chip { background: var(--success-bg); color: var(--success); }

@keyframes cardInR {
  from { opacity: 0; transform: translateX(28px) rotate(2deg); }
  to   { opacity: 1; transform: translateX(0) rotate(2deg); }
}

@keyframes cardInL {
  from { opacity: 0; transform: translateX(-28px) rotate(-3deg); }
  to   { opacity: 1; transform: translateX(0) rotate(-3deg); }
}

/* Scroll cue — a little mouse with a falling dot */
.hero-scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--faint);
  border-radius: 14px;
  display: flex; justify-content: center;
  padding-top: 7px;
  opacity: 0.85;
  transition: border-color var(--t-base) var(--ease);
}
.hero-scroll:hover { border-color: var(--gold); }
.hero-scroll-dot {
  width: 4px; height: 8px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrollNudge 1.8s ease-in-out infinite;
}

@keyframes scrollNudge {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  60%      { transform: translateY(12px); opacity: 0.2; }
}

/* Hidden whenever the hero stacks to one column (<=1024px) — the
   section grows past 100vh there, leaving the cue below the fold. */
@media (max-width: 1024px) {
  .hero-scroll { display: none; }
}

/* Motion off = everything readable, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important; /* delayed entrances would otherwise hide content for seconds */
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-enter, .phone-topic, .phone-chat-bubble, .hero-float-card {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal, .stagger-children > * { opacity: 1 !important; transform: none !important; }
  .line-inner { transform: none !important; }
  /* gradient text is fine when static, but keep the underline drawn */
  .hero-underline path { stroke-dashoffset: 0 !important; }
}
