/* =================================================================
   Body Mode — Cinematic Dark UI
   A unified, single-theme design system. No light mode, no surprises.
   ================================================================= */

/* ----------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------- */
:root {
  /* Surfaces (deep neutral, slightly warm) */
  --ink-0:   #05060a;   /* deepest — for canvases */
  --ink-1:   #0a0c14;   /* page bg */
  --ink-2:   #0f1220;   /* cards */
  --ink-3:   #161a2c;   /* elevated cards */
  --ink-4:   #1d2238;   /* hover/raised */
  --ink-5:   #272d48;   /* borders-strong */

  /* Lines */
  --line-1:  rgba(255,255,255,.06);
  --line-2:  rgba(255,255,255,.10);
  --line-3:  rgba(255,255,255,.16);

  /* Text */
  --text-1:  #f4f5fb;   /* primary */
  --text-2:  #c4c8da;   /* secondary */
  --text-3:  #8b91a8;   /* muted */
  --text-4:  #5a607a;   /* faint */

  /* Brand */
  --brand-300: #c7d2fe;
  --brand-400: #a5b4fc;
  --brand-500: #818cf8;
  --brand-600: #6366f1;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --pink-500:   #ec4899;
  --pink-600:   #db2777;
  --amber-400:  #fbbf24;
  --emerald-500:#10b981;
  --emerald-400:#34d399;
  --red-500:    #ef4444;
  --cyan-400:   #22d3ee;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #818cf8 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-brand-2: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #db2777 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(129,140,248,.55), transparent);
  --grad-aurora: radial-gradient(1200px 600px at 50% -10%, rgba(139,92,246,.35), transparent 60%),
                 radial-gradient(900px 500px at 10% 0%, rgba(99,102,241,.25), transparent 60%),
                 radial-gradient(900px 500px at 90% 0%, rgba(236,72,153,.18), transparent 60%);

  /* Effects */
  --glow-1: 0 0 0 1px rgba(255,255,255,.05), 0 30px 60px -20px rgba(0,0,0,.6);
  --glow-2: 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -20px rgba(99,102,241,.35);
  --ring: 0 0 0 3px rgba(129,140,248,.35);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,.45);
  --shadow-3: 0 24px 60px rgba(0,0,0,.55);

  /* Layout */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;

  --container: 1200px;
  --container-narrow: 920px;
  --gutter: clamp(16px, 4vw, 24px);
  --section-y: clamp(72px, 9vw, 128px);
  --nav-h: 72px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: 160ms;
  --t:      240ms;
  --t-slow: 480ms;
}

/* ----------------------------------------------------------
   2. Reset & base
   ---------------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-0); }
body, h1,h2,h3,h4,h5,h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }

html, body { background: var(--ink-1); color: var(--text-1); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle film grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .5; mix-blend-mode: overlay;
}

::selection { background: var(--brand-600); color: #fff; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 8px; border: 3px solid var(--ink-0); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-5); }

/* ----------------------------------------------------------
   3. Typography
   ---------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-1);
}
h2, .h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
h3, .h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-1);
}
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em;
  color: var(--brand-400);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ----------------------------------------------------------
   4. Layout
   ---------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }

.section-header { text-align: center; max-width: 760px; margin: 0 auto clamp(2.4rem, 4vw, 3.5rem); position: relative; z-index: 2; }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header .lead { max-width: 620px; margin: 0 auto; }

main, footer, header { position: relative; z-index: 2; }

/* ----------------------------------------------------------
   5. Accessibility
   ---------------------------------------------------------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; transform: translateY(-200%); transition: transform var(--t) var(--ease);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ----------------------------------------------------------
   6. Navbar
   ---------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 12, 20, .55);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.navbar.is-scrolled {
  background: rgba(10, 12, 20, .85);
  border-bottom-color: var(--line-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 100%;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.05rem; color: var(--text-1); letter-spacing: -.01em;
  position: relative;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 900;
  box-shadow: 0 6px 20px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.2);
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: -1px; border-radius: 12px;
  background: var(--grad-brand);
  filter: blur(8px); opacity: .4; z-index: -1;
}
.logo-mark svg { width: 20px; height: 20px; }

.nav-menu {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  padding: 4px;
}
.nav-menu > li > a {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: var(--radius-full);
  color: var(--text-2); font-weight: 500; font-size: .9rem;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-menu > li > a:hover { color: var(--text-1); background: rgba(255,255,255,.06); }
.nav-menu > li > a.is-active { color: var(--text-1); background: rgba(255,255,255,.08); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.nav-cta:hover::before { transform: translateX(100%); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(99,102,241,.55); }

.mobile-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-1);
  align-items: center; justify-content: center;
  position: relative;
}
.mobile-toggle span {
  display: block; position: absolute; left: 11px; right: 11px; height: 2px;
  background: var(--text-1); border-radius: 2px;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease), opacity var(--t) var(--ease);
}
.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 20px; }
.mobile-toggle span:nth-child(3) { top: 26px; }
.mobile-toggle.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10, 12, 20, .98);
    backdrop-filter: blur(24px);
    border: 0;
    border-top: 1px solid var(--line-1);
    padding: 16px var(--gutter) 32px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    border-radius: 0;
  }
  .nav-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu > li > a { padding: 14px 16px; font-size: 1rem; border-radius: 10px; }
  .nav-cta { margin-top: 12px; align-self: stretch; justify-content: center; padding: 14px; }
  .mobile-toggle { display: inline-flex; }
}

/* ----------------------------------------------------------
   7. Hero
   ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(60px, 10vw, 120px)) 0 clamp(80px, 12vw, 140px);
  background: var(--ink-1);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-aurora);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  display: grid; gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1.05fr 0.95fr; align-items: center;
  z-index: 2;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero h1 { margin: 18px 0 22px; }
.hero p.lead { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 24px; color: var(--text-3); font-size: .9rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-500); box-shadow: 0 0 0 4px rgba(16,185,129,.18); animation: pulse-dot 2.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

/* Hero mockup card */
.hero-mockup {
  position: relative;
  background: linear-gradient(180deg, rgba(22,26,44,.92) 0%, rgba(15,18,32,.95) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--glow-1);
  backdrop-filter: blur(20px);
}
.hero-mockup::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg);
  background: var(--grad-brand); opacity: .15; z-index: -1;
  filter: blur(30px);
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px; padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line-1); margin-bottom: 16px;
}
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.mockup-bar span:first-child { background: #ff5f57; }
.mockup-bar span:nth-child(2) { background: #febc2e; }
.mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-time { margin-left: auto; font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.mockup-greet { font-size: .72rem; color: var(--brand-400); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.mockup-title { font-size: 1.5rem; font-weight: 800; margin: 4px 0 18px; letter-spacing: -.02em; }

.plan-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-1);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.plan-card:hover { transform: translateX(4px); background: rgba(255,255,255,.05); border-color: var(--line-2); }
.plan-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(139,92,246,.2));
  color: var(--brand-400);
  flex-shrink: 0;
}
.plan-icon svg { width: 18px; height: 18px; }
.plan-body { flex: 1; min-width: 0; }
.plan-title { font-weight: 700; font-size: .92rem; color: var(--text-1); }
.plan-sub { font-size: .78rem; color: var(--text-3); }
.plan-time { font-size: .76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.plan-stack { display: grid; gap: 10px; }
.plan-stack + .plan-stack { margin-top: 10px; }

.score-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px;
}
.score-pill {
  border-radius: var(--radius); padding: 12px 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line-1);
  display: flex; flex-direction: column; gap: 4px;
}
.score-pill .lbl { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.score-pill .val { font-size: 1.2rem; font-weight: 800; color: var(--text-1); font-variant-numeric: tabular-nums; }
.score-pill.good { background: linear-gradient(135deg, rgba(16,185,129,.1), rgba(16,185,129,.04)); border-color: rgba(16,185,129,.25); }
.score-pill.good .val { color: var(--emerald-400); }
.score-pill.warn { background: linear-gradient(135deg, rgba(251,191,36,.1), rgba(251,191,36,.04)); border-color: rgba(251,191,36,.25); }
.score-pill.warn .val { color: var(--amber-400); }

.grade-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; font-weight: 900; font-size: 1.05rem; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.grade-A { background: linear-gradient(135deg, #10b981, #059669); }
.grade-B { background: linear-gradient(135deg, #22c55e, #16a34a); }
.grade-C { background: linear-gradient(135deg, #f59e0b, #d97706); }
.grade-D { background: linear-gradient(135deg, #f97316, #ea580c); }
.grade-F { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ----------------------------------------------------------
   8. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-full);
  font-weight: 700; font-size: .95rem; letter-spacing: -.005em;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
  white-space: nowrap; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 28px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary:hover { box-shadow: 0 16px 36px rgba(99,102,241,.6), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-dark { background: var(--ink-3); color: var(--text-1); border-color: var(--line-2); }
.btn-outline { background: transparent; color: var(--text-1); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand-500); background: rgba(99,102,241,.08); }
.btn-ghost { background: transparent; color: var(--text-1); }
.btn-ghost:hover { background: rgba(255,255,255,.04); }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------
   9. Cards
   ---------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: linear-gradient(180deg, rgba(22,26,44,.6) 0%, rgba(15,18,32,.6) 100%);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
  position: relative; overflow: hidden;
  backdrop-filter: blur(8px);
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-line);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(29,34,56,.7) 0%, rgba(22,26,44,.7) 100%);
}
.card:hover::before { opacity: 1; }

.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(139,92,246,.18));
  color: var(--brand-400);
  margin-bottom: 18px;
  font-size: 1.4rem;
  border: 1px solid rgba(129,140,248,.15);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: .96rem; line-height: 1.65; }

.feature-card-link { display: block; color: inherit; }

/* Bio Engine score cards */
.bio-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.bio-card {
  position: relative; padding: 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22,26,44,.7) 0%, rgba(15,18,32,.7) 100%);
  border: 1px solid var(--line-1);
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.bio-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.bio-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--grad-brand);
  opacity: .9;
}
.bio-card .label { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.bio-card .name { font-size: 1.2rem; font-weight: 800; margin: 6px 0 10px; color: var(--text-1); letter-spacing: -.01em; }
.bio-card .desc { font-size: .9rem; color: var(--text-2); line-height: 1.6; }
.bio-card .ring {
  position: absolute; top: 22px; right: 22px;
  width: 60px; height: 60px;
}
.bio-card .ring svg { transform: rotate(-90deg); }
.bio-card .ring .score { font-size: .85rem; font-weight: 800; fill: var(--text-1); }

/* ----------------------------------------------------------
   10. Lang strip
   ---------------------------------------------------------- */
.lang-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-pill {
  padding: 8px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-1);
  font-size: .85rem; color: var(--text-2); font-weight: 600;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.lang-pill:hover { background: rgba(99,102,241,.1); color: var(--brand-400); border-color: var(--line-2); }
.lang-pill.rtl { direction: rtl; }

/* ----------------------------------------------------------
   11. Proof strip
   ---------------------------------------------------------- */
.proof-strip {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative; z-index: 2;
}
.proof-item {
  background: rgba(10,12,20,.6); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(8px);
}
.proof-item .num { font-size: 1.6rem; font-weight: 800; color: var(--text-1); letter-spacing: -.02em; }
.proof-item .lbl { font-size: .82rem; color: var(--text-3); }

/* ----------------------------------------------------------
   12. CTA section
   ---------------------------------------------------------- */
.cta-section {
  position: relative;
  background: var(--ink-1);
  color: var(--text-1);
  padding: var(--section-y) 0;
  overflow: hidden;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 50% 50%, rgba(139,92,246,.25), transparent 60%);
  pointer-events: none;
}
.cta-section .container { position: relative; text-align: center; max-width: 760px; z-index: 2; }
.cta-section h2 { color: var(--text-1); }
.cta-section p { color: var(--text-2); }
.cta-section .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 16px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.store-badge .ico { width: 30px; height: 30px; }
.store-badge .lbl { font-size: .68rem; opacity: .8; line-height: 1; }
.store-badge .name { font-size: 1.1rem; font-weight: 800; line-height: 1; margin-top: 2px; }
.store-badge .stack { display: flex; flex-direction: column; }

/* ----------------------------------------------------------
   13. Footer
   ---------------------------------------------------------- */
.footer {
  background: var(--ink-0);
  color: var(--text-2);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-1);
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-line);
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 48px;
  position: relative; z-index: 2;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-3); font-size: .92rem; margin-top: 14px; max-width: 360px; line-height: 1.6; }
.footer h4 { color: var(--text-1); font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 18px; font-weight: 700; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-2); font-size: .92rem; transition: color var(--t-fast) var(--ease); }
.footer ul a:hover { color: var(--brand-400); }
.footer-bottom {
  border-top: 1px solid var(--line-1);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .85rem; color: var(--text-4);
  position: relative; z-index: 2;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); color: var(--text-2);
  border: 1px solid var(--line-1);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.footer-socials a:hover { background: rgba(99,102,241,.18); color: var(--brand-400); border-color: var(--line-2); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-company-link { color: var(--brand-400); font-weight: 600; text-decoration: none; }
.footer-company-link:hover { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.footer-sibling-link { color: var(--text-2); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.footer-sibling-link:hover { color: var(--brand-400); border-bottom-color: var(--brand-400); }

/* ----------------------------------------------------------
   14. Article / blog
   ---------------------------------------------------------- */
.article {
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: var(--ink-1);
  position: relative;
}
.article::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: var(--grad-aurora);
  pointer-events: none; opacity: .6;
}
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 18px; position: relative; z-index: 2; }
.article .meta {
  color: var(--text-3); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px;
  align-items: center; position: relative; z-index: 2;
}
.article .meta .pill {
  background: rgba(255,255,255,.04); padding: 5px 12px; border-radius: var(--radius-full);
  color: var(--text-2); font-weight: 600; font-size: .8rem; border: 1px solid var(--line-1);
}

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--text-2); position: relative; z-index: 2; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 14px; color: var(--text-1); letter-spacing: -.02em; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; color: var(--text-1); }
.prose p  { margin: 16px 0; }
.prose ul, .prose ol { margin: 16px 0 16px 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0; padding: 18px 22px;
  border-left: 3px solid var(--brand-500);
  background: rgba(99,102,241,.06); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-2); font-style: italic;
  backdrop-filter: blur(8px);
}
.prose a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(129,140,248,.3); }
.prose a:hover { text-decoration-color: var(--brand-400); }
.prose code { background: rgba(255,255,255,.06); padding: 2px 7px; border-radius: 6px; font-size: .9em; color: var(--brand-300); border: 1px solid var(--line-1); }

.toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: linear-gradient(180deg, rgba(22,26,44,.6) 0%, rgba(15,18,32,.6) 100%);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  padding: 20px;
  font-size: .9rem;
  max-height: 70vh; overflow-y: auto;
  backdrop-filter: blur(8px);
}
.toc h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-3); margin-bottom: 14px; }
.toc ol { counter-reset: toc; padding-left: 0; }
.toc li { counter-increment: toc; margin-bottom: 8px; }
.toc a { color: var(--text-2); display: block; padding: 6px 0; transition: color var(--t-fast) var(--ease); }
.toc a:hover { color: var(--brand-400); }

@media (min-width: 960px) {
  .article-grid { display: grid; grid-template-columns: 1fr 240px; gap: 56px; }
}

.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-1); position: relative; z-index: 2; }
.related h3 { margin-bottom: 20px; font-size: 1.4rem; }
.related-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ----------------------------------------------------------
   15. Tabs / accordion / timeline
   ---------------------------------------------------------- */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 5px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-full);
  width: fit-content; margin: 0 auto 36px;
}
.tabs button {
  padding: 10px 20px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .9rem; color: var(--text-3);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.tabs button[aria-selected="true"] { background: rgba(99,102,241,.18); color: var(--text-1); }
.tabs button:hover { color: var(--text-1); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .3s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.acc-item {
  background: linear-gradient(180deg, rgba(22,26,44,.5) 0%, rgba(15,18,32,.5) 100%);
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color var(--t) var(--ease);
}
.acc-item:hover { border-color: var(--line-2); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; text-align: left; font-weight: 700; color: var(--text-1);
}
.acc-trigger .chev { transition: transform var(--t) var(--ease); color: var(--text-3); }
.acc-item.is-open .acc-trigger .chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--ease); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; padding: 0 22px 20px; color: var(--text-2); }

.tl { position: relative; padding-left: 32px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line-1); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad-brand); box-shadow: 0 0 0 4px var(--ink-1), 0 0 0 6px rgba(99,102,241,.2);
}
.tl-item time { font-size: .82rem; color: var(--text-3); font-weight: 600; letter-spacing: .04em; }
.tl-item h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.tl-item ul { margin-top: 8px; padding-left: 20px; list-style: disc; color: var(--text-2); font-size: .95rem; }
.tl-item ul li { margin-bottom: 4px; }
.tl-tag { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-left: 8px; }
.tl-tag.add { background: rgba(16,185,129,.15); color: var(--emerald-400); }
.tl-tag.fix { background: rgba(239,68,68,.15); color: #f87171; }
.tl-tag.imp { background: rgba(99,102,241,.18); color: var(--brand-400); }

/* Press kit */
.press-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.press-card {
  background: linear-gradient(180deg, rgba(22,26,44,.6) 0%, rgba(15,18,32,.6) 100%);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-md); padding: 28px; text-align: center;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.press-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.press-card .swatch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.press-card .swatch span { height: 56px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); }

/* ----------------------------------------------------------
   16. Scroll progress + back to top
   ---------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-brand);
  z-index: 1100;
  transition: width 80ms linear;
  box-shadow: 0 0 12px rgba(99,102,241,.6);
}
.to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--violet-600));
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  z-index: 900;
  border: 1px solid rgba(255,255,255,.1);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------
   17. Tooltip
   ---------------------------------------------------------- */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  background: var(--ink-3); color: #fff; font-size: .78rem; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-2);
  z-index: 50; border: 1px solid var(--line-2);
}

/* ----------------------------------------------------------
   18. Utilities
   ---------------------------------------------------------- */
.text-center { text-align: center; }
.text-soft   { color: var(--text-2); }
.text-muted  { color: var(--text-3); }
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* ----------------------------------------------------------
   19. Reveal animation
   ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------------------------------------------------------
   20. Cinematic section variants
   ---------------------------------------------------------- */
.section-aurora { position: relative; overflow: hidden; }
.section-aurora::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-aurora);
  pointer-events: none;
}

.section-divider {
  height: 1px; background: var(--grad-line); margin: 0; border: 0;
}

@media (max-width: 640px) {
  .hero-inner { gap: 32px; }
  .footer-grid { gap: 32px; }
  .card { padding: 24px; }
  .bio-card { padding: 24px; }
}

/* ----------------------------------------------------------
   21. Legal pages (privacy / terms / delete-data)
   ---------------------------------------------------------- */
.legal-page {
  padding: calc(var(--nav-h) + 48px) 0 96px;
  background: var(--ink-1);
  position: relative;
  min-height: 100dvh;
}
.legal-page::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: var(--grad-aurora);
  pointer-events: none; opacity: .55;
  z-index: 0;
}
.legal-page .container { position: relative; z-index: 2; }
.legal-page .page-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-1);
  margin-bottom: 14px;
}
.legal-page .last-updated {
  color: var(--text-3);
  font-size: .92rem;
  margin-bottom: 4px;
}
.legal-page .last-updated strong { color: var(--text-2); }
.legal-prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; position: relative; z-index: 2; }
.legal-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--text-1);
  margin: 56px 0 14px;
  letter-spacing: -.02em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.legal-prose h3 {
  font-size: 1.15rem;
  color: var(--text-1);
  margin: 28px 0 10px;
  letter-spacing: -.005em;
}
.legal-prose p  { margin: 14px 0; }
.legal-prose ul, .legal-prose ol { margin: 14px 0 14px 1.4rem; color: var(--text-2); }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin-bottom: 6px; }
.legal-prose a  { color: var(--brand-400); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(129,140,248,.3); }
.legal-prose a:hover { text-decoration-color: var(--brand-400); }
.legal-prose strong { color: var(--text-1); font-weight: 700; }
.legal-prose section[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* Table of contents on legal pages */
.legal-prose .toc {
  position: static; max-height: none; backdrop-filter: none;
  background: linear-gradient(180deg, rgba(22,26,44,.55) 0%, rgba(15,18,32,.55) 100%);
  border: 1px solid var(--line-1); border-radius: var(--radius);
  padding: 24px 28px; margin: 28px 0 40px;
  counter-reset: toc; padding-left: 28px;
}
.legal-prose .toc h3 {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--text-3); margin: 0 0 14px;
  font-weight: 700;
}
.legal-prose .toc ol { margin: 0; padding: 0; list-style: none; }
.legal-prose .toc li { counter-increment: toc; margin-bottom: 4px; }
.legal-prose .toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--text-4); font-variant-numeric: tabular-nums;
  font-weight: 700; margin-right: 12px; font-size: .82em;
}
.legal-prose .toc a {
  color: var(--text-2); text-decoration: none;
  display: block; padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.legal-prose .toc a:hover { color: var(--brand-400); text-decoration: none; }

/* Callouts (info / warning / danger) */
.legal-prose .callout {
  margin: 24px 0; padding: 18px 22px;
  border-radius: var(--radius);
  border-left: 3px solid var(--brand-500);
  background: linear-gradient(180deg, rgba(99,102,241,.10) 0%, rgba(99,102,241,.04) 100%);
  color: var(--text-2);
  backdrop-filter: blur(8px);
}
.legal-prose .callout strong {
  display: block; margin-bottom: 6px; color: var(--text-1);
  font-weight: 700; letter-spacing: -.005em;
}
.legal-prose .callout.warning {
  border-left-color: var(--amber-400);
  background: linear-gradient(180deg, rgba(251,191,36,.10) 0%, rgba(251,191,36,.04) 100%);
}
.legal-prose .callout.danger {
  border-left-color: var(--red-500);
  background: linear-gradient(180deg, rgba(239,68,68,.10) 0%, rgba(239,68,68,.04) 100%);
}

/* Data tables on legal pages */
.legal-prose .data-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: 24px 0; font-size: .92rem;
  border: 1px solid var(--line-1);
  border-radius: var(--radius);
  overflow: hidden;
}
.legal-prose .data-table th,
.legal-prose .data-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line-1);
  vertical-align: top;
  color: var(--text-2);
}
.legal-prose .data-table th {
  background: rgba(255,255,255,.04);
  font-weight: 700; color: var(--text-1);
  text-transform: uppercase; letter-spacing: .04em; font-size: .78rem;
}
.legal-prose .data-table tbody tr:last-child td { border-bottom: 0; }
.legal-prose .data-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.02);
}

/* Inline badges (yes / no / local / etc.) */
.legal-prose .badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.legal-prose .badge-yes  { background: rgba(16,185,129,.15); color: var(--emerald-400); border-color: rgba(16,185,129,.25); }
.legal-prose .badge-no   { background: rgba(239,68,68,.15);  color: #f87171;            border-color: rgba(239,68,68,.25); }
.legal-prose .badge-local{ background: rgba(34,211,238,.12); color: var(--cyan-400);     border-color: rgba(34,211,238,.25); }
.legal-prose .badge-del  { background: rgba(239,68,68,.15);  color: #f87171;            border-color: rgba(239,68,68,.25); }
.legal-prose .badge-keep { background: rgba(251,191,36,.15); color: var(--amber-400);    border-color: rgba(251,191,36,.25); }

/* Price box (terms page) */
.legal-prose .price-box {
  margin: 24px 0; padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(16,185,129,.25);
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(16,185,129,.04));
  backdrop-filter: blur(8px);
}
.legal-prose .price-box h4 { color: var(--emerald-400); margin-bottom: 10px; font-size: 1.05rem; }
.legal-prose .price-box ul { margin: 8px 0 0 1.2rem; }
.legal-prose .price-box li { margin-bottom: 6px; }

/* Method cards (delete-data) */
.legal-prose .method-card {
  margin: 24px 0; padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line-1);
  background: linear-gradient(180deg, rgba(22,26,44,.55) 0%, rgba(15,18,32,.55) 100%);
  backdrop-filter: blur(8px);
}
.legal-prose .method-card h3 {
  margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; color: var(--text-1);
}
.legal-prose .method-tag {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(99,102,241,.20); color: var(--brand-300);
  border: 1px solid rgba(99,102,241,.30);
}
.legal-prose .method-tag.alt { background: rgba(34,211,238,.15); color: var(--cyan-400); border-color: rgba(34,211,238,.30); }

/* Numbered step list (delete-data) */
.legal-prose .steps-list {
  counter-reset: step; list-style: none; margin: 14px 0; padding: 0;
}
.legal-prose .steps-list li {
  counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 12px;
  color: var(--text-2); line-height: 1.6;
}
.legal-prose .steps-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: .82rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}

/* Email CTA (delete-data) */
.legal-prose .email-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--grad-brand); color: #fff !important;
  padding: 13px 24px; border-radius: var(--radius-full);
  font-weight: 700; text-decoration: none !important;
  margin-top: 8px;
  box-shadow: 0 10px 28px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  position: relative; overflow: hidden;
}
.legal-prose .email-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.3) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .6s var(--ease);
}
.legal-prose .email-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(99,102,241,.6); }
.legal-prose .email-cta:hover::before { transform: translateX(100%); }

/* App ID monospace pill */
.legal-prose .app-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,.05); padding: 2px 8px; border-radius: 6px;
  font-size: .9em; color: var(--brand-300);
  border: 1px solid var(--line-1);
}

/* Plain language summary box (terms) */
.legal-prose .legal-summary {
  margin: 40px 0 0; padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(16,185,129,.25);
  background: linear-gradient(180deg, rgba(16,185,129,.08) 0%, rgba(16,185,129,.02) 100%);
  backdrop-filter: blur(8px);
}
.legal-prose .legal-summary h2 { margin-top: 0; }
.legal-prose .legal-summary ul { list-style: none; padding: 0; margin: 0; }
.legal-prose .legal-summary li { padding: 6px 0; }

/* Legal footer (the small links + copyright at page bottom) */
.legal-footer {
  margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--line-1);
  color: var(--text-3); font-size: .9rem;
}
.legal-footer a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(129,140,248,.3); }
.legal-footer a:hover { text-decoration-color: var(--brand-400); }
.legal-footer .legal-copy { margin-top: 10px; color: var(--text-4); font-size: .82rem; }

/* Override the old light footer styles that legal pages re-declared inline */
.footer-content { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 720px) { .footer-content { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-content { grid-template-columns: 1fr; } }
.footer-section h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 14px; color: var(--text-1); font-weight: 700; }
.footer-section p, .footer-section li { color: var(--text-2); font-size: .92rem; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section a { color: var(--text-2); transition: color var(--t-fast) var(--ease); }
.footer-section a:hover { color: var(--brand-400); }
.footer-bottom { border-top: 1px solid var(--line-1); padding-top: 18px; margin-top: 32px; color: var(--text-4); font-size: .85rem; }
