/* ════════════════════════════════════════════════════════════════════
   LovBot — Shared Stylesheet
   Standardised variables + common UI patterns across all pages.
   ════════════════════════════════════════════════════════════════════ */

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Design Tokens ───────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary: #6366F1;
  --primary-hover: #4F46E5;
  --primary-light: #EEF2FF;
  --primary-muted: #E0E7FF;
  --primary-dark: #3730A3;

  /* Neutrals */
  --bg: #FAFAF9;
  --fg: #1C1917;
  --surface: #FFFFFF;
  --secondary: #F5F5F4;
  --border: #E7E5E4;
  --border-strong: #D6D3D1;
  --text-secondary: #57534E;
  --muted: #78716C;
  --muted-light: #A8A29E;

  /* Accent */
  --accent-cyan: #22D3EE;
  --accent-violet: #818CF8;

  /* Semantic */
  --green: #10B981;
  --green-bg: #D1FAE5;
  --green-border: #A7F3D0;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --error: #EF4444;
  --error-bg: #FEE2E2;

  /* Dark */
  --dark-bg: #0F172A;
  --dark-surface: #1E293B;
  --dark-border: #334155;

  /* Radius */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  /* Shadows */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);

  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base Typography ─────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }

/* ── Container ───────────────────────────────────────────────────── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover { background: var(--primary-muted); }
.btn-secondary:active { transform: scale(0.98); }
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-outline-dark:hover { border-color: rgba(255, 255, 255, 0.6); }
.btn-outline-dark:active { transform: scale(0.98); }
.btn-outline-dark:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 16px 48px; font-size: 16px; }

/* ── Hero (Radial Gradient variant — SMV, Fagforeninger) ─────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-muted);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 1.75rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
.hero-badge .dot {
  position: relative;
  width: 8px;
  height: 8px;
}
.hero-badge .dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0.75;
}
.hero-badge .dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 760px;
  margin: 0 auto 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero overline (simple variant — Priser, Dokumenttyper, Blog) */
.hero-overline {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Trust Strip ─────────────────────────────────────────────────── */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-light);
}

/* ── Section Labels ──────────────────────────────────────────────── */
.section-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* ── Problem / Solution Cards ────────────────────────────────────── */
.problem-section { padding: 6rem 0; }
.problem-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.875rem;
}
.problem-section .subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.problem-card, .solution-card {
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
}
.problem-card, .solution-card {
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.problem-card:hover, .solution-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-card { background: var(--surface); }
.solution-card {
  background: var(--primary-light);
  border-color: var(--primary-muted);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 20px;
}
.problem-card .card-icon { background: #FEF2F2; color: var(--error, #EF4444); }
.solution-card .card-icon { background: var(--primary-muted); color: var(--primary); }

/* ── Benefit Card Icon ─────────────────────────────────────────── */
.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.problem-card h3, .solution-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.problem-card p, .solution-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Benefits / Features Grid ────────────────────────────────────── */
.benefits-section,
.features-section { padding: 6rem 0; }
.benefits-section h2,
.features-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.875rem;
}
.benefits-section .subtitle,
.features-section .subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 20px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.375rem;
}
.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── How It Works / Steps ────────────────────────────────────────── */
.how-section { padding: 6rem 0; }
.how-section h2 {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.875rem;
}
.how-section .subtitle {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 3rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.step-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
  transform: translateY(-2px);
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--primary-light);
  border: 1px solid var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}
.step-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.step-arrow {
  position: absolute;
  top: 52px;
  right: -18px;
  font-size: 18px;
  color: var(--muted-light);
}

/* ── Stats Banner ────────────────────────────────────────────────── */
.stats-banner {
  border-radius: 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-muted) 100%);
  border: 1px solid var(--primary-muted);
  padding: 2.5rem;
  text-align: center;
  margin: 4rem 0;
}
.stats-banner h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.stats-banner .desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ── Pilot CTA Card ──────────────────────────────────────────────── */
.pilot-section { padding: 6rem 0; }
.pilot-card {
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--primary-muted);
  padding: 3rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.pilot-card .pilot-badge {
  display: inline-block;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.pilot-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.pilot-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.pilot-list {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 2rem;
  list-style: none;
  padding: 0;
}
.pilot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}
.pilot-list .check {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Dark CTA ────────────────────────────────────────────────────── */
.dark-cta {
  background: var(--dark-bg);
  padding: 6rem 0;
  text-align: center;
}
.dark-cta h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1rem;
}
.dark-cta h2 .gradient {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.dark-cta p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #94A3B8;
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* ── Legal Page Styles (shared by service terms, privacy, etc.) ── */
.legal-hero {
  padding: 80px 0 48px;
  text-align: center;
}
.legal-hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.legal-hero .legal-date {
  font-size: 14px;
  color: var(--muted);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--fg);
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}
.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.legal-content strong {
  color: var(--fg);
  font-weight: 600;
}
.legal-content a {
  color: var(--primary);
  text-decoration: none;
}
.legal-content a:hover { text-decoration: underline; }
.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Legal Hero extras ───────────────────────────────────────────── */
.legal-hero-meta {
  font-size: 14px;
  color: var(--muted-light);
  margin-bottom: 8px;
}
.legal-hero-summary {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.legal-overline {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ── Legal TOC (table of contents) ──────────────────────────────── */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 2.5rem;
}
.legal-toc-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-toc li {
  counter-increment: toc-counter;
}
.legal-toc a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.legal-toc a::before {
  content: counter(toc-counter) ".";
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  min-width: 22px;
}
.legal-toc a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Warning Box (legal pages) ──────────────────────────────────── */
.warning-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-muted);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 2.5rem;
}
.warning-box h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.warning-box p {
  margin-bottom: 0;
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
}

/* ── Skip-to-content (accessibility) ────────────────────────────── */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-to-content:focus {
  left: 0;
}

/* ── Form Focus & Hover States (standardized) ──────────────────── */
input:hover, select:hover, textarea:hover {
  border-color: var(--muted-light);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}

/* ── Scroll Entrance Animations ─────────────────────────────────── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delays for grid children */
.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }

/* ── Info Card hover (kontakt, etc.) ────────────────────────────── */
.info-card {
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-muted);
  transform: translateY(-2px);
}

/* ── Gradient Border Glow on Card Hover (fixed z-index) ──────────── */
.feature-card,
.step-card,
.problem-card,
.solution-card,
.info-card,
.pilot-card {
  position: relative;
  isolation: isolate;
}
.feature-card::before,
.step-card::before,
.info-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -2;
}
.feature-card:hover::before,
.step-card:hover::before,
.info-card:hover::before {
  opacity: 1;
}
/* Inner background to create the border effect */
.feature-card::after,
.step-card::after,
.info-card::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
  z-index: -1;
  transition: background 0.3s ease;
}

/* ── 3D Tilt on Card Hover ───────────────────────────────────────── */
.feature-card,
.step-card,
.problem-card,
.solution-card,
.info-card,
.pilot-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* JS applies inline transform via data-tilt; this just ensures perspective */
.features-grid,
.problem-grid,
.steps-grid,
.info-cards {
  perspective: 1200px;
}

/* ── Button Hover Lift + Subtle Glow ────────────────────────────── */
.btn-primary {
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-secondary {
  transition: background 0.15s, transform 0.2s, box-shadow 0.2s;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
}

/* ── Smooth Link Underline Animation ────────────────────────────── */
.legal-content a,
.info-card-body a {
  position: relative;
  text-decoration: none;
}
.legal-content a::after,
.info-card-body a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.25s ease;
}
.legal-content a:hover::after,
.info-card-body a:hover::after {
  width: 100%;
}
/* Override the old underline behavior */
.legal-content a:hover,
.info-card-body a:hover {
  text-decoration: none;
}

/* ── Hero Stagger Entrance ──────────────────────────────────────── */
.hero-stagger {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards;
}
.hero-stagger:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger:nth-child(4) { animation-delay: 0.55s; }
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Card Shine Shimmer on Hover ────────────────────────────────── */
.feature-card,
.step-card,
.info-card,
.pilot-card {
  overflow: hidden;
}
.card-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  transform: translateX(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

/* ── Scroll Offset for TOC anchor links ─────────────────────────── */
[id^="s"] {
  scroll-margin-top: 80px;
}

/* ── Legal TOC hover indicator ──────────────────────────────────── */
.legal-toc a {
  position: relative;
  overflow: hidden;
}
.legal-toc a::after {
  content: '→';
  position: absolute;
  right: 10px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
  color: var(--primary);
  font-weight: 600;
}
.legal-toc a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── Notify Form focus-within glow ──────────────────────────────── */
.notify-form {
  transition: border-color 0.2s, box-shadow 0.2s;
}
.notify-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ── Stats counter animation placeholder ────────────────────────── */
.stat-value {
  transition: color 0.3s;
}
.stat-item:hover .stat-value {
  color: var(--primary-dark);
}

/* ════════════════════════════════════════════════════════════════════
   GLASSMORPHISM SYSTEM
   Frosted glass cards, gradient backgrounds, colorful accents
   ════════════════════════════════════════════════════════════════════ */

/* ── Animated Gradient Orbs (section background decoration) ────── */
.glass-bg {
  position: relative;
  overflow: hidden;
}
.glass-bg::before,
.glass-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.glass-bg::before {
  width: 500px; height: 500px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, rgba(129,140,248,0.15) 50%, transparent 70%);
}
.glass-bg::after {
  width: 400px; height: 400px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(34,211,238,0.3) 0%, rgba(99,102,241,0.1) 50%, transparent 70%);
  animation-delay: -6s;
}
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Variant: subtle orbs for lighter sections */
.glass-bg-subtle::before { opacity: 0.25; }
.glass-bg-subtle::after { opacity: 0.2; }

/* ── Glass Hero (light) ────────────────────────────────────────── */
.hero.glass-hero {
  background: linear-gradient(135deg,
    #EEF2FF 0%,
    #E0E7FF 20%,
    #F0F9FF 40%,
    #F5F3FF 60%,
    #E0E7FF 80%,
    #EEF2FF 100%
  );
  background-size: 300% 300%;
  animation: heroGradientFlow 12s ease-in-out infinite;
  border-bottom: 1px solid rgba(99,102,241,0.1);
  position: relative;
  overflow: hidden;
}
@keyframes heroGradientFlow {
  0%, 100% { background-position: 0% 25%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
}
.hero.glass-hero::before {
  background: radial-gradient(ellipse at 25% 30%, rgba(99,102,241,0.18) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 70%, rgba(34,211,238,0.12) 0%, transparent 50%);
  width: 100%; height: 100%;
  top: 0; left: 0;
  transform: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}
.hero.glass-hero h1 { color: var(--fg); }
.hero.glass-hero h1 .gradient {
  background: linear-gradient(90deg, var(--primary), #7C3AED, var(--primary));
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero.glass-hero p { color: var(--muted); }
.hero.glass-hero .hero-overline { color: var(--primary); }
.hero.glass-hero .hero-badge {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
  color: var(--primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Glass Card Base ──────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04),
              0 1px 3px rgba(0, 0, 0, 0.03),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1),
              0 4px 12px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Dark glass variant (for dark sections) */
.glass-card-dark {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.glass-card-dark:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ── Apply glass to existing card types ──────────────────────── */
.feature-card,
.step-card,
.info-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.feature-card:hover,
.step-card:hover,
.info-card:hover {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08),
              0 4px 12px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.2);
}

.problem-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.solution-card {
  background: rgba(238, 242, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── Glass Stats Banner (animated gradient) ──────────────────── */
.stats-banner {
  background: linear-gradient(135deg,
    rgba(238, 242, 255, 0.85) 0%,
    rgba(224, 231, 255, 0.7) 25%,
    rgba(240, 249, 255, 0.6) 50%,
    rgba(199, 210, 254, 0.7) 75%,
    rgba(238, 242, 255, 0.85) 100%
  );
  background-size: 300% 300%;
  animation: statsBannerShift 8s ease-in-out infinite;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@keyframes statsBannerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Glass Pilot Card ────────────────────────────────────────── */
.pilot-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ── Glass Form Card ─────────────────────────────────────────── */
.form-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ── Glass Legal Hero (light) ─────────────────────────────────── */
.legal-hero.glass-hero {
  background: linear-gradient(135deg,
    #EEF2FF 0%,
    #E0E7FF 20%,
    #F0F9FF 40%,
    #F5F3FF 60%,
    #E0E7FF 80%,
    #EEF2FF 100%
  );
  background-size: 300% 300%;
  animation: heroGradientFlow 12s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.legal-hero.glass-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 30%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 75% 70%, rgba(34,211,238,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.legal-hero.glass-hero h1 { color: var(--fg); }
.legal-hero.glass-hero .legal-date,
.legal-hero.glass-hero .legal-hero-meta { color: var(--muted-light); }
.legal-hero.glass-hero .legal-hero-summary { color: var(--text-secondary); }
.legal-hero.glass-hero .legal-overline { color: var(--primary); }
.legal-hero.glass-hero .legal-subtitle { color: var(--text-secondary); }
.legal-hero.glass-hero .legal-meta { color: var(--muted-light); }

/* ── Glass Legal TOC ─────────────────────────────────────────── */
.legal-toc {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ── Gradient Accent Line (animated section divider) ─────────── */
.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-cyan), var(--primary), transparent);
  background-size: 200% 100%;
  animation: gradientFlow 4s ease-in-out infinite;
  border: none;
  margin: 0;
  opacity: 0.45;
}
@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Vibrant Gradient Text Utility ───────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-vivid {
  background: linear-gradient(135deg, #818CF8, var(--accent-cyan), #A78BFA);
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass Notify Form (blog, etc.) ──────────────────────────── */
.notify-form {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── Section with colored glass background ───────────────────── */
.glass-section {
  position: relative;
  overflow: hidden;
}
.glass-section > .container {
  position: relative;
  z-index: 1;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .glass-bg::before { width: 300px; height: 300px; }
  .glass-bg::after { width: 250px; height: 250px; }
  .hero { padding: 4rem 0 3rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .stats-row { gap: 1.5rem; }
  .trust-strip .container { gap: 1rem; font-size: 12px; }
  .pilot-card { padding: 2rem 1.5rem; }
  .legal-hero { padding: 60px 0 32px; }
  .legal-hero h1 { font-size: 32px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2) .step-arrow,
  .step-card:nth-child(4) .step-arrow { display: none; }
}
