:root {
  color-scheme: light;
  --ink: #0a0a12;
  --paper: #f6f7fb;
  --card: #ffffff;
  --panel: #fbfdff;
  --ink-text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #5b5bd6;
  --brand-dark: #4848b2;
  --violet: #6d5ce7;
  --blue: #4f7bf0;
  --teal: #22d3b0;
  --teal-ink: #0f766e;
  --violet-ink: #4f46b5;
  --hero-text: #e9e9f5;
  --hero-muted: #a5a3c4;
  --grad: linear-gradient(100deg, var(--violet), var(--blue) 45%, var(--teal));
  --grad-btn: linear-gradient(120deg, var(--violet), var(--blue));
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink-text);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, .wordmark {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- header (light, sticky) ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.logo-image { width: 132px; height: 42px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-text); font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta {
  display: inline-flex; align-items: center; padding: 9px 18px;
  border-radius: 999px; background: var(--grad-btn); color: #fff;
  font-weight: 600; box-shadow: 0 8px 22px rgba(79, 123, 240, 0.35);
}
.nav-cta:hover { color: #fff; filter: brightness(1.07); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 14px; background: var(--grad-btn);
  color: #ffffff; font-weight: 600; font-size: 16px; font-family: inherit;
  border: none; cursor: pointer; box-shadow: 0 10px 30px rgba(79, 123, 240, 0.4);
}
.button:hover { color: #fff; filter: brightness(1.08); }
.link-button { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0; font: inherit; }
.link-button:hover { color: var(--brand); }
/* Generic ghost button + card — used by the shared demo-funnel pages
   (demo_report, demo_already_claimed). Kept when the stylesheet was
   redesigned so those pages don't lose their card/secondary-button styling. */
.button-ghost { background: #ffffff; color: var(--brand); border: 1px solid var(--brand); box-shadow: none; }
.button-ghost:hover { background: rgba(91, 91, 214, 0.1); color: var(--brand-dark); filter: none; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05); }

/* ---------- hero: base (LIGHT) — shared by demo-funnel pages ---------- */
/* styles.css is the app-wide global stylesheet. The demo/claim funnel pages
   (demo_report, demo_already_claimed, demo_claim_sent, dashboard_empty) reuse
   .hero / .eyebrow / .subheadline on a light background, so the base rules
   stay light. The landing's dramatic dark hero is namespaced under
   .hero--dark below so it never bleeds onto those pages. */
.hero { position: relative; padding: 64px 0 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; font-weight: 600; color: var(--muted); }
.subheadline { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- lander hero (DARK) — landing page only ---------- */
.hero--dark { overflow: hidden; background: var(--ink); color: var(--hero-text); padding: 88px 0 104px; }
.hero--dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 0%, #000 40%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 60% 0%, #000 40%, transparent 80%);
}
.hero--dark .glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: 0; }
.hero--dark .glow-v { width: 520px; height: 520px; background: var(--violet); opacity: .5; top: -170px; right: -70px; }
.hero--dark .glow-t { width: 420px; height: 420px; background: var(--teal); opacity: .32; bottom: -200px; left: -120px; }
.hero--dark .container { position: relative; z-index: 2; max-width: 900px; }
.hero--dark .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: none; letter-spacing: 0;
  font-size: 13px; font-weight: 600; color: #d9d8ef;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 7px 14px; border-radius: 999px;
}
.hero--dark .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(34,211,176,.25); }
.hero--dark h1 { font-size: clamp(38px, 6vw, 66px); font-weight: 800; color: #fff; margin: 22px 0 18px; }
.hero--dark .subheadline { color: var(--hero-muted); max-width: 660px; }

/* demo form on dark hero */
.demo-form { margin-top: 32px; max-width: 660px; }
.demo-form > label {
  display: block; font-weight: 600; margin-bottom: 10px; color: #cfcee6; font-size: 15px;
}
.demo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-row input {
  flex: 1 1 320px; padding: 15px 18px; border-radius: 14px; font-size: 16px;
  font-family: inherit; color: #fff;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16);
}
.demo-row input::placeholder { color: #8f8db0; }
.fine-print { font-size: 13px; color: var(--muted); }
.hero--dark .fine-print { color: #8f8db0; margin-top: 16px; }
.hero-trust { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: #8f8db0; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* inline banners (dark hero context) */
.demo-error, .l0-banner {
  margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; max-width: 660px;
}
.demo-error { background: rgba(239,100,97,.14); border: 1px solid rgba(239,100,97,.4); color: #ffd9d7; }
.demo-error strong { color: #fff; display: block; }
.l0-banner { background: rgba(79,123,240,.14); border: 1px solid rgba(79,123,240,.4); color: #dce6ff; }
.l0-banner strong { color: #fff; }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section.light { background: var(--card); }
.kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 700; color: var(--brand); margin: 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin: 10px 0 10px; }
.section .lead { color: var(--muted); max-width: 660px; font-size: 17px; }

/* ---------- dual value band ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 38px; }
.vcard {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.07);
}
.vcard .edge { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.vcard.guard .edge { background: linear-gradient(90deg, var(--teal), var(--blue)); }
.vcard.intel .edge { background: linear-gradient(90deg, var(--violet), var(--blue)); }
.vcard .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.vcard.guard .tag { background: rgba(34,211,176,.14); color: var(--teal-ink); }
.vcard.intel .tag { background: rgba(109,92,231,.14); color: var(--violet-ink); }
.vcard h3 { font-size: 22px; font-weight: 700; margin: 16px 0 8px; }
.vcard p { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.mini { border-radius: 14px; border: 1px solid #e3e8ef; background: var(--panel); padding: 16px; }
.mini .row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.mini .sev { font-weight: 700; color: var(--teal-ink); display: flex; align-items: center; gap: 8px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(34,211,176,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,211,176,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,211,176,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,176,0); } }
.mini .meta { color: var(--muted); font-size: 13px; margin-top: 6px; }
.mini .act { margin-top: 14px; font-size: 13px; font-weight: 600; }
.topic { display: flex; align-items: center; gap: 12px; font-size: 14px; margin: 10px 0; }
.topic .name { width: 92px; color: #374151; font-weight: 500; }
.track { flex: 1; height: 9px; border-radius: 999px; background: #eef1f6; overflow: hidden; }
.track > span { display: block; height: 100%; border-radius: 999px; }
.track .g { background: var(--teal); } .track .a { background: #f5a524; } .track .r { background: #ef6461; }
.topic .num { width: 36px; text-align: right; color: var(--muted); font-size: 13px; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.steps li { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.step-number { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; background: var(--grad-btn); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }
.steps strong { display: block; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- security + feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 32px; }
.feature { padding: 22px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(91,91,214,.12); color: var(--brand); margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
.pill-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.pill-list li { background: var(--card); border: 1px solid var(--border); padding: 12px 16px; border-radius: 12px; font-weight: 500; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 28px; }

/* ---------- pricing page: per-tier VAT breakdown table ---------- */
.price-breakdown {
  width: 100%; margin: 12px 0 24px;
  border-collapse: collapse; font-size: 14px;
}
.price-breakdown caption {
  text-align: left; padding: 8px 0; font-size: 12px; opacity: .7;
  font-style: italic;
}
.price-breakdown th,
.price-breakdown td {
  padding: 8px 12px; text-align: right;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.price-breakdown th:first-child,
.price-breakdown td:first-child {
  text-align: left; font-weight: 500;
}
.price-breakdown thead th {
  background: rgba(0,0,0,.03); font-weight: 600;
  border-bottom: 2px solid rgba(0,0,0,.12);
}
.price-breakdown tbody tr:last-child td { border-bottom: none; }

/* ---------- footer (dark) ---------- */
.site-footer { background: var(--ink); color: var(--hero-muted); padding: 40px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.site-footer strong { color: #fff; }
.site-footer .fine-print { color: var(--hero-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c9c8e0; }
.footer-links a:hover { color: #fff; }
.site-footer a { color: #c9c8e0; }

/* ---------- accessibility utils ---------- */
*:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(91,91,214,.45); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--brand); color: #fff; padding: 8px 16px; font-weight: 600; border-radius: 0 0 4px 0; z-index: 1000; }
.skip-link:focus { top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { padding: 64px 0 76px; }
  .section { padding: 56px 0; }
  .nav-links { gap: 14px; }
  .nav-links .navlink { display: none; }
  .nav-links .nav-signin { display: inline-flex; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}
