/* ═══════════════════════════════════════════════════════════════
   Numero Chip Marketing Site — Obsidian Atlas Design System
   ═══════════════════════════════════════════════════════════════ */

/* ── Webfonts, self-hosted ──────────────────────────────────────
   These pages make NO requests to any third-party host. The fonts
   below used to come from fonts.googleapis.com / fonts.gstatic.com,
   which handed every visitor's IP address to Google — including on
   privacy.html, which promises EU-only processing. They are now
   served from this origin. Do not re-introduce a remote <link>.

   Both files are the variable builds Google Fonts distributes, so
   one file per subset covers every weight the site uses. The
   latin-ext subset is NOT optional: č, š and ž live in it.

   Provenance, versions and licences: vendor/README.md
   ─────────────────────────────────────────────────────────────── */

/* Inter — variable, wght 100..900 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('vendor/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk — variable, wght 300..700 */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('vendor/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('vendor/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --bg:          #0a0d14;
  --surface:     #111520;
  --raised:      #181d2e;
  --hover:       #1f2640;
  --accent:      #c9a84c;
  --accent-lt:   #dfc47e;
  --accent-dim:  rgba(201,168,76,0.12);
  --accent-glow: rgba(201,168,76,0.25);
  --text:        #e8edf8;
  --text-sec:    #8896b3;
  --text-muted:  #4a5470;
  --border:      #252d42;
  --border-sub:  #1a2238;
  --success:     #22c55e;
  --info:        #60a5fa;
  --danger:      #ef4444;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: clamp(5rem, 10vw, 9rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; }

h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { font-size: clamp(0.9rem, 1.5vw, 1.05rem); color: var(--text-sec); line-height: 1.75; }
a { color: inherit; text-decoration: none; }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--surface); }
.section--raised { background: var(--raised); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.22s ease;
  text-decoration: none; border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0d14;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-lt);
  box-shadow: 0 0 24px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(201,168,76,0.4);
}
.btn-outline:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ── Labels / badges ────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: var(--accent);
}

/* ── Navigation ─────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
#nav.scrolled {
  background: rgba(10,13,20,0.88);
  border-bottom-color: var(--border-sub);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-sec); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-sec); cursor: pointer; padding: 0.4rem;
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.22);
  padding: 0.4rem 1rem; border-radius: 100px;
  margin-bottom: 1.8rem;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

.hero-title {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e8edf8 0%, #c9a84c 60%, #8896b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-sec); max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-canvas-wrap {
  position: relative;
  height: clamp(380px, 55vw, 580px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-sub);
  background: var(--surface);
}
#hero-canvas {
  display: block;
  width: 100%; height: 100%;
}
.hero-canvas-label {
  position: absolute; bottom: 1rem; left: 1rem;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); font-family: var(--font-head);
}

/* ── Stats bar ───────────────────────────────────────────────── */
#stats-bar {
  border-top: 1px solid var(--border-sub);
  border-bottom: 1px solid var(--border-sub);
  background: var(--surface);
  padding: 2.8rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: 0.75rem 0.5rem; }
.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-shadow: 0 0 24px rgba(201,168,76,0.25);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── How it works ────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.step {
  position: relative;
  padding: 2.4rem;
  background: var(--raised);
  border: 1px solid var(--border-sub);
  border-radius: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}
.step-number {
  position: absolute; top: -1px; left: -1px;
  background: var(--accent);
  color: #0a0d14;
  font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 14px 0 8px 0;
}
.step-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
}
.step h3 { margin-bottom: 0.75rem; }
.step p  { font-size: 0.92rem; }

/* Connector line between steps */
.steps-grid .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%; right: -1rem;
  transform: translateY(-50%);
  width: 1rem; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  display: none; /* show only on larger screens */
}
@media (min-width: 900px) {
  .steps-grid .step:not(:last-child)::after { display: block; }
}

/* ── Feature cards ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.feature-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-sub);
  border-radius: 14px;
  transition: all 0.3s ease;
  cursor: default;
}
.feature-card:hover {
  border-color: rgba(201,168,76,0.3);
  background: var(--raised);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(201,168,76,0.08);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.feature-icon--gold   { background: rgba(201,168,76,0.12); border: 1px solid rgba(201,168,76,0.2); }
.feature-icon--blue   { background: rgba(96,165,250,0.12);  border: 1px solid rgba(96,165,250,0.2); }
.feature-icon--green  { background: rgba(34,197,94,0.12);   border: 1px solid rgba(34,197,94,0.2); }
.feature-icon--purple { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.2); }

.feature-card h3  { margin-bottom: 0.6rem; font-size: 1rem; }
.feature-card p   { font-size: 0.875rem; }

/* ── Two-column split sections ───────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-sub);
  background: var(--raised);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
}
.split-visual-inner {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
}

/* Mock dashboard card (for visuals) */
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  width: 100%;
  margin-bottom: 0.8rem;
  transition: all 0.3s;
}
.mock-card:hover { border-color: var(--accent-dim); }
.mock-row {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem;
}
.mock-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.mock-dot--green  { background: var(--success);  box-shadow: 0 0 6px var(--success); }
.mock-dot--gold   { background: var(--accent);   box-shadow: 0 0 6px var(--accent); }
.mock-dot--dim    { background: var(--text-muted); }
.mock-label { font-size: 0.82rem; color: var(--text-sec); flex: 1; }
.mock-badge {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem; border-radius: 100px;
}
.mock-badge--green  { background: rgba(34,197,94,0.12);  color: var(--success); }
.mock-badge--gold   { background: var(--accent-dim);     color: var(--accent); }
.mock-badge--dim    { background: var(--border-sub);     color: var(--text-muted); }

/* Phone mockup for mobile section */
.phone-mock {
  width: 200px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 1.2rem 0.8rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.phone-mock-header {
  width: 60px; height: 5px;
  border-radius: 3px;
  background: var(--border);
  margin: 0 auto 1rem;
}
.phone-mock-row {
  background: var(--raised);
  border: 1px solid var(--border-sub);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.phone-mock-row-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.phone-mock-row-text {
  flex: 1;
  height: 7px; border-radius: 4px; background: var(--border);
}
.phone-mock-scan-btn {
  background: var(--accent);
  color: #0a0d14;
  font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 700;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  margin-top: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Split content */
.split-content .list {
  list-style: none;
  margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.split-content .list li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 0.92rem; color: var(--text-sec);
}
.list-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  color: var(--success);
  margin-top: 0.1rem;
}

/* ── Technology section ──────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.tech-card {
  padding: 1.8rem;
  background: var(--raised);
  border: 1px solid var(--border-sub);
  border-radius: 14px;
  text-align: center;
}
.tech-card .icon {
  font-size: 2rem; margin-bottom: 1rem;
}
.tech-card h4 { margin-bottom: 0.5rem; font-size: 0.9rem; }
.tech-card p  { font-size: 0.82rem; }

/* ── CTA section ─────────────────────────────────────────────── */
#cta {
  position: relative; overflow: hidden;
  text-align: center;
  padding: var(--section-pad) 0;
}
#cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
}
.cta-inner h2 { margin-bottom: 1rem; }
.cta-inner > p { max-width: 480px; margin: 0 auto 2.5rem; }

.email-form {
  display: flex; gap: 0.75rem;
  max-width: 460px; margin: 0 auto;
}
.email-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  padding: 0.72rem 1.1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}
.email-form input::placeholder { color: var(--text-muted); }
.email-form input:focus { border-color: rgba(201,168,76,0.5); }
.email-form .btn { white-space: nowrap; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border-sub);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  font-size: 0.88rem; max-width: 280px; margin-top: 0.75rem;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.footer-col h5 {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a {
  font-size: 0.88rem; color: var(--text-sec);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border-sub);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* Attribution to the software maker. Present on every public page — keep it
   small and quiet, but keep it. */
.footer-credit { font-size: 0.8rem; color: var(--text-muted); }
.footer-credit a {
  color: var(--text-sec);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Scroll reveal animations ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.16,1,.3,1),
              transform 0.75s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(.16,1,.3,1),
              transform 0.65s cubic-bezier(.16,1,.3,1);
}
.reveal-stagger.visible > *:nth-child(1)  { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2)  { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3)  { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4)  { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5)  { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6)  { transition-delay: 400ms; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }

/* ── Section header helper ───────────────────────────────────── */
.section-header { max-width: 560px; margin-bottom: 0; }
.section-header--center { max-width: 600px; margin: 0 auto; text-align: center; }
.section-header h2 { margin-bottom: 1rem; }

/* ── Divider ─────────────────────────────────────────────────── */
.gold-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin-bottom: 2rem;
}
.gold-line--center { margin: 0 auto 2rem; }

/* ═══════════════════════════════════════════════════════════════
   Legal pages (privacy.html, terms.html, delete-account.html)
   Same tokens as the marketing site; no JS, no Three.js.
   ═══════════════════════════════════════════════════════════════ */

/* Static nav variant — the marketing nav is transparent until main.js
   adds .scrolled. Legal pages ship no JS, so they get the solid state. */
#nav.nav--static {
  position: sticky;
  background: rgba(10,13,20,0.92);
  border-bottom-color: var(--border-sub);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.legal-page { padding-top: 3.5rem; padding-bottom: 5rem; }

.legal-header { max-width: 780px; margin: 0 auto 3rem; }
.legal-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 1rem;
}
.legal-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.82rem; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-sub);
}
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal-body h3 {
  font-size: 1.02rem;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}
.legal-body p  { margin-bottom: 1rem; }
.legal-body ul, .legal-body ol {
  margin: 0 0 1.2rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.legal-body li {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-sec); line-height: 1.7;
}
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-body a:hover { color: var(--accent-lt); }
.legal-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--surface);
  border: 1px solid var(--border-sub);
  border-radius: 5px;
  padding: 0.1rem 0.35rem;
  color: var(--accent-lt);
}

/* Table of contents */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border-sub);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin-bottom: 3rem;
}
.legal-toc h2 {
  font-size: 0.78rem !important;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem !important; padding: 0 !important; border: none !important;
}
.legal-toc ol {
  margin: 0 0 0 1.1rem;
  gap: 0.4rem;
}
.legal-toc li { font-size: 0.9rem; }

/* Callout — used for the "needs legal review" and TBC notices */
.legal-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 12px 12px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.8rem 0;
}
.legal-note p:last-child { margin-bottom: 0; }
.legal-note--info { border-left-color: var(--info); background: rgba(96,165,250,0.07); }
.legal-note--warn { border-left-color: var(--danger); background: rgba(239,68,68,0.07); }
.legal-note-title {
  font-family: var(--font-head);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: 0.6rem;
}
.legal-note--info .legal-note-title { color: var(--info); }
.legal-note--warn .legal-note-title { color: var(--danger); }

/* Placeholder for facts the publisher must fill in before going live */
.tbc {
  background: rgba(239,68,68,0.12);
  border: 1px dashed rgba(239,68,68,0.5);
  border-radius: 5px;
  padding: 0.05rem 0.4rem;
  color: #f6a3a3;
  font-size: 0.9em;
  font-style: normal;
}

/* Data table */
.legal-table-wrap { overflow-x: auto; margin: 0 0 1.5rem; }
.legal-table {
  width: 100%; min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal-table th, .legal-table td {
  text-align: left; vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-sub);
  color: var(--text-sec); line-height: 1.6;
}
.legal-table th {
  font-family: var(--font-head);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom-color: var(--border);
}
.legal-table td:first-child { color: var(--text); font-weight: 500; }

/* ── Deletion request form ───────────────────────────────────── */
.legal-form {
  background: var(--surface);
  border: 1px solid var(--border-sub);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  margin: 2rem 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.form-field label {
  font-family: var(--font-head);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-sec);
  margin-bottom: 0.45rem;
}
.form-field .req { color: var(--accent); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: rgba(201,168,76,0.55); }
.form-field input:invalid:not(:placeholder-shown) { border-color: rgba(239,68,68,0.55); }
.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; line-height: 1.55; }

.form-check { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1.4rem; }
.form-check input { width: 18px; height: 18px; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }
.form-check label {
  font-size: 0.88rem; color: var(--text-sec); line-height: 1.6;
  text-transform: none; letter-spacing: normal; font-family: var(--font-sans); font-weight: 400;
}

/* Honeypot — hidden from people, visible to naive bots. */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-status {
  font-size: 0.88rem; line-height: 1.6;
  border-radius: 10px; padding: 0.9rem 1.2rem; margin-top: 1.2rem;
}
.form-status[hidden] { display: none; }
.form-status--ok   { background: rgba(34,197,94,0.1);  border: 1px solid rgba(34,197,94,0.3);  color: #86efac; }
.form-status--err  { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }

/* Numbered process steps */
.legal-steps { list-style: none; margin: 1.5rem 0 2rem !important; gap: 1rem !important; }
.legal-steps li {
  position: relative;
  padding-left: 3rem;
  min-height: 2rem;
}
.legal-steps li .n {
  position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--accent);
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-grid         { grid-template-columns: 1fr; }
  .hero-canvas-wrap  { height: 320px; }
  .hero-title        { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .steps-grid  { grid-template-columns: 1fr; }
  .split       { grid-template-columns: 1fr; direction: ltr !important; }
  .split--reverse > * { direction: ltr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links  { display: none; }
  .nav-mobile-toggle { display: block; }

  .email-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .tech-grid     { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
}
