/* ============================================================================
   Cleira — shared stylesheet (SINGLE SOURCE OF TRUTH for the theme)
   ----------------------------------------------------------------------------
   Every colour, font, radius and spacing token lives in :root below.
   To re-skin the whole site (palette, fonts, radii) edit ONLY :root.
   ============================================================================ */

:root {
  /* ---- BRAND PALETTE ---------------------------------------------------- */
  /* 1 — anchor (deep ink-indigo: trustworthy dark surfaces) */
  --indigo: #312E81;
  --indigo-700: #2A2770;
  --indigo-900: #1E1B4B;
  /* 2 — primary action (vivid indigo-blue) */
  --primary: #6366F1;
  --primary-600: #4F46E5;
  --primary-tint: #EEF0FE;
  --primary-tint-2: #F6F7FF;
  /* brand blue (logo) */
  --blue: #2563EB;
  /* 3 — supporting accent (fresh teal: "fairness / balance") */
  --teal: #0EA5A4;
  --teal-600: #0B8786;
  --teal-tint: #E2F6F5;
  /* warm coral spark (the one warm accent) */
  --coral: #FF7A45;

  /* ---- SEMANTIC STATES -------------------------------------------------- */
  --ok: #10B981;
  --ok-deep: #047857;
  --ok-tint: #E6F8F1;
  --warn: #D97706;
  --warn-strong: #B45309;
  --warn-tint: #FEF3E2;
  --bad: #DC2626;
  --bad-tint: #FDECEC;

  /* ---- NEUTRALS --------------------------------------------------------- */
  --ink: #14152B;
  --body: #4B5168;
  --muted: #767D92;
  --line: #E6E8F0;
  --line-soft: #EFF1F7;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FC;

  /* ---- RADII ------------------------------------------------------------ */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;

  /* ---- SHADOWS ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(30,27,75,.05), 0 1px 3px rgba(30,27,75,.04);
  --shadow-md: 0 10px 30px rgba(30,27,75,.08);
  --shadow-lg: 0 30px 70px rgba(30,27,75,.16);
  --shadow-primary: 0 10px 26px rgba(99,102,241,.30);

  /* ---- LAYOUT ----------------------------------------------------------- */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);

  /* ---- TYPOGRAPHY ------------------------------------------------------- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2.3rem, 5.2vw, 3.85rem);
  --fs-h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --fs-h3: clamp(1.12rem, 1.6vw, 1.28rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: var(--fs-h1); font-weight: 900; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
strong, b { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal-600); margin-bottom: .9rem;
}
.section { padding: clamp(60px, 9vw, 116px) 0; }
.section--soft { background: var(--bg-soft); }
.section--ink {
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(99,102,241,.32), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(14,165,164,.26), transparent 60%),
    var(--indigo-900);
  color: #c9cef0;
}
.lead { font-size: var(--fs-lead); color: var(--body); max-width: 58ch; }
.center { text-align: center; margin-inline: auto; }

/* focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--indigo); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* scroll-reveal micro-interaction */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .14s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none; font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); color: #fff; box-shadow: var(--shadow-primary); }
.btn--primary:hover { box-shadow: 0 14px 32px rgba(99,102,241,.42); }
.btn--ghost { background: #fff; color: var(--indigo); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary-600); }
.btn--ink { background: var(--indigo); color: #fff; }
.btn--ink:hover { background: var(--indigo-700); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(14,165,164,.28); }
.btn--teal:hover { background: var(--teal-600); }
.btn--lg { padding: 18px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ============================ ANNOUNCE BAR ============================ */
.announce-bar {
  background: var(--indigo-900);
  color: #c9cef0;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.announce-bar a {
  display: block;
  color: inherit;
  padding: 9px var(--gutter);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.announce-bar a:hover { background: var(--indigo-700); text-decoration: none; }
.announce-bar .ab-link { color: var(--coral); font-weight: 800; white-space: nowrap; }
.announce-bar a:hover .ab-link { text-decoration: underline; }
@media (max-width: 560px) {
  .announce-bar { font-size: .76rem; }
  .announce-bar a { padding: 8px 14px; }
}

/* ============================ HEADER ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; color: var(--indigo); font-size: 1.22rem; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--body); font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 999px;
}
.nav-links a:hover { background: var(--primary-tint); color: var(--indigo); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--indigo); background: var(--primary-tint); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; color: var(--indigo); }

@media (max-width: 1040px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; gap: 2px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px; border-radius: var(--r-sm); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn--ghost { display: none; }
}

/* ============================ HERO ============================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 560px at 82% -12%, rgba(99,102,241,.20), transparent 58%),
    radial-gradient(900px 520px at 8% 8%, rgba(14,165,164,.13), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--primary-tint-2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(49,46,129,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 90%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 68px); align-items: center; padding: clamp(52px,7vw,92px) 0 clamp(48px,6vw,80px); }
.hero--center { text-align: center; }
.hero--center .hero-inner { position: relative; max-width: 820px; margin-inline: auto; padding: clamp(52px,7vw,92px) 0 clamp(40px,5vw,64px); }
.hero--center .lead { margin-inline: auto; }
.hero--center .hero-cta { justify-content: center; }
.hero--center .trust-strip { justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--indigo); font-size: .82rem; font-weight: 700; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary-600), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.9rem; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.trust-strip li { list-style: none; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--body); }
.trust-strip svg { color: var(--teal); flex: none; }
ul.trust-strip { margin: 0; padding: 1.1rem 0 0; }

/* hero dashboard mock */
.hero-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); padding: 24px; }
.hero-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(99,102,241,.5), rgba(14,165,164,.4), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-diffline { font-size: .92rem; color: var(--muted); font-style: italic; margin-top: -.6rem; margin-bottom: 1.4rem; }
.hero-card-caption { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.hc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hc-head h3 { margin: 0; font-size: 1rem; }
.hc-tag { font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-600); background: var(--teal-tint); padding: 5px 10px; border-radius: 999px; }
.hc-verdict { display: flex; align-items: center; gap: 10px; background: var(--warn-tint); border: 1px solid #f3d39a; border-radius: var(--r-md); padding: 11px 13px; margin-bottom: 14px; }
.hc-verdict .vico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--warn); color: #fff; flex: none; }
.hc-verdict b { display: block; margin-bottom: 3px; color: var(--warn-strong); font-size: .9rem; }
.hc-verdict span { display: block; font-size: .76rem; line-height: 1.45; color: var(--body); }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.hc-stat { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 13px 14px; }
.hc-stat .k { display: block; font-size: .72rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.hc-stat .v { font-size: 1.5rem; font-weight: 900; color: var(--indigo); letter-spacing: -.03em; line-height: 1.05; }
.hc-stat .v.sm { font-size: 1.1rem; }
.hc-stat .v small { font-size: .78rem; font-weight: 800; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.hc-stat.flag { background: var(--warn-tint); border-color: #f3d39a; }
.hc-stat.flag .v { color: var(--warn-strong); }
.hc-chart { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.hc-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 13px; font-size: .72rem; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.hc-chart-head .hc-muted { color: var(--muted); font-weight: 700; letter-spacing: 0; text-transform: none; }
.hc-split { display: flex; flex-direction: column; gap: 11px; }
.hc-split-row { display: grid; grid-template-columns: 48px 1fr 22px; align-items: center; gap: 11px; }
.hc-split-row .lbl { font-size: .76rem; font-weight: 700; color: var(--body); }
.hc-split-row .track { height: 10px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.hc-split-row .fill { height: 100%; border-radius: 999px; }
.hc-split-row .fill.f { background: var(--teal); }
.hc-split-row .fill.m { background: var(--primary); }
.hc-split-row .num { font-size: .82rem; font-weight: 800; color: var(--ink); text-align: right; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* ============================ LOGO ROW ============================ */
.logos { padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.logos p { text-align: center; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); opacity: .68; }
.logo-row span { font-weight: 900; color: var(--indigo); font-size: 1.05rem; letter-spacing: -.03em; }

/* ============================ FEATURE / SOLUTION GRID ============================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px){ .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px;
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #d3d6e8; }
.icon-badge {
  width: 50px; height: 50px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary-600); margin-bottom: 18px;
}
.icon-badge.teal { background: var(--teal-tint); color: var(--teal-600); }
.icon-badge.warn { background: var(--warn-tint); color: var(--warn-strong); }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .98rem; margin: 0; }

/* chips / tags (e.g. country readiness) */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--body);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.chip--ready {
  color: var(--teal-600); background: var(--teal-tint); border-color: #bce7e5;
}
.chip--ready::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); flex: none;
}

.callout-row { margin-top: 26px; display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px; border: 1px solid #e3e8f0; border-radius: 18px; background: #fff; }
.callout-row h3 { margin: 0 0 6px; }
.callout-row p { margin: 0; }

.problem-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,60px); align-items: center; }
@media (max-width: 880px){ .problem-split { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { flex: none; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-600); margin-top: 2px; }
.checklist b { color: var(--ink); }
.panel {
  position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% -10%, rgba(99,102,241,.45), transparent 60%),
    radial-gradient(500px 300px at -10% 120%, rgba(14,165,164,.35), transparent 60%),
    var(--indigo-900);
  color: #c9cef0; border-radius: var(--r-2xl); padding: clamp(28px,4vw,44px); box-shadow: var(--shadow-lg);
}
.panel h3 { color: #fff; }
.panel .stat-big { font-size: clamp(2.6rem,7vw,3.8rem); font-weight: 900; color: #fff; letter-spacing: -.04em; line-height: 1; }
.panel .stat-big.teal { color: #5eead4; }
.panel hr { border: 0; border-top: 1px solid rgba(255,255,255,.16); margin: 24px 0; }

/* prose / generic rich text */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; font-size: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose .lead { margin-bottom: 1.6rem; }

/* ============================ DEMO ============================ */
.demo-shell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-md); overflow: hidden; }
.demo-top { padding: clamp(24px,4vw,38px); border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg,#fff, var(--primary-tint-2)); }
.privacy-note { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--teal-600); background: var(--teal-tint); padding: 8px 14px; border-radius: 999px; margin-bottom: 16px; }
.dropzone {
  border: 2px dashed #bcc0e0; border-radius: var(--r-lg); background: var(--bg-soft);
  padding: clamp(30px,5vw,48px); text-align: center; transition: border-color .2s, background .2s; cursor: pointer;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--primary); background: var(--primary-tint); }
.dropzone.drag { border-color: var(--primary); background: var(--primary-tint); }
.dropzone .dz-icon { color: var(--primary); margin-bottom: 12px; }
.dropzone h3 { margin: 0 0 .3rem; }
.dropzone p { margin: 0; font-size: .95rem; color: var(--muted); }
.dz-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.demo-msg { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); font-size: .92rem; font-weight: 600; display: none; }
.demo-msg.show { display: block; }
.demo-msg.error { background: var(--bad-tint); color: var(--bad); border: 1px solid #f3bdbd; }
.demo-msg.info { background: var(--primary-tint); color: var(--indigo); border: 1px solid #cdd1f8; }
.demo-msg.ok { background: var(--ok-tint); color: var(--ok-deep); border: 1px solid #bdebd6; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.hint code { background: var(--primary-tint); color: var(--indigo); padding: 2px 6px; border-radius: 6px; font-size: .85em; }

.demo-results { display: none; padding: clamp(22px,4vw,36px); }
.demo-results.show { display: block; }
.results-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.results-head h3 { margin: 0; }

/* verdict banner */
.verdict { display: flex; gap: 18px; align-items: flex-start; border-radius: var(--r-xl); padding: clamp(20px,3vw,28px); margin-bottom: 26px; border: 1.5px solid; }
.verdict .vbadge { flex: none; width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; }
.verdict h4 { margin: 0 0 4px; font-size: clamp(1.15rem,2.2vw,1.45rem); }
.verdict p { margin: 0; font-size: .96rem; }
.verdict .vmeta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .86rem; font-weight: 600; }
.verdict .vmeta span { display: inline-flex; align-items: center; gap: 6px; }
.verdict.at-risk { background: var(--warn-tint); border-color: #f1c98a; }
.verdict.at-risk .vbadge { background: var(--warn); }
.verdict.at-risk h4 { color: var(--warn-strong); }
.verdict.on-track { background: var(--ok-tint); border-color: #b6e8d2; }
.verdict.on-track .vbadge { background: var(--ok); }
.verdict.on-track h4 { color: var(--ok-deep); }
.pf-pill { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.pf-pill.pass { background: var(--ok-tint); color: var(--ok-deep); }
.pf-pill.attn { background: var(--warn-tint); color: var(--warn-strong); }

/* section heading inside dashboard */
.dash-h { display: flex; align-items: center; gap: 10px; margin: 30px 0 8px; }
.dash-h .n { width: 26px; height: 26px; border-radius: 8px; background: var(--indigo); color: #fff; display: grid; place-items: center; font-size: .82rem; font-weight: 800; flex: none; }
.dash-h h4 { margin: 0; font-size: 1.12rem; }
.dash-sub { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 920px){ .stat-cards { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px){ .stat-cards { grid-template-columns: 1fr; } }
.stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 17px; background: #fff; }
.stat .label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat .num { font-size: 1.85rem; font-weight: 900; color: var(--indigo); letter-spacing: -.03em; line-height: 1.1; margin-top: 5px; }
.stat .sub { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.stat.is-breach { border-color: #f1c98a; background: var(--warn-tint); }
.stat.is-breach .num { color: var(--warn-strong); }
.stat.is-ok { border-color: #b6e8d2; background: var(--ok-tint); }
.stat.is-ok .num { color: var(--ok-deep); }
.stat.is-neg { border-color: #c7d6f5; background: var(--primary-tint-2); }
.stat.is-neg .num { color: var(--primary-600); }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 880px){ .panel-grid { grid-template-columns: 1fr; } }
.subpanel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background:#fff; }
.subpanel h5 { margin: 0 0 4px; font-size: 1.0rem; color: var(--ink); font-weight: 800; }
.subpanel .cap { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.chart-box { position: relative; height: 230px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .82rem; color: var(--body); }
.legend span { display: inline-flex; align-items: center; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; }

/* quartile insight strip */
.insight { display: flex; gap: 12px; align-items: flex-start; background: var(--primary-tint-2); border: 1px solid #d7daf8; border-radius: var(--r-md); padding: 14px 16px; margin-top: 16px; font-size: .9rem; color: var(--body); }
.insight svg { color: var(--primary-600); flex: none; margin-top: 2px; }
.insight b { color: var(--indigo); }

table.cat-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.cat-table th, .cat-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line-soft); }
.cat-table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.cat-table td.num, .cat-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cat-table td .barcell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.cat-table td .minibar { width: 64px; height: 7px; border-radius: 999px; background: var(--line-soft); overflow: hidden; flex: none; }
.cat-table td .minibar > i { display: block; height: 100%; border-radius: 999px; }
.cat-table tr.breach td { background: var(--warn-tint); }
.cat-table tr.breach td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
.cat-table tbody tr:hover td { background: var(--primary-tint-2); }
.cat-table tr.breach:hover td { background: #fbe9cf; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.badge.flag { background: var(--warn); color: #fff; }
.badge.clear { background: var(--ok-tint); color: var(--ok-deep); }
.badge.na { background: #eef0f6; color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table-scroll table { min-width: 580px; }

/* advisor / interpretation cards */
.advice-list { display: grid; gap: 14px; margin-top: 4px; }
.advice { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: var(--r-md); padding: 16px 18px; background: #fff; }
.advice.breach { border-left-color: var(--warn); background: var(--warn-tint); }
.advice.good { border-left-color: var(--ok); background: var(--ok-tint); }
.advice h6 { margin: 0 0 5px; font-size: .98rem; color: var(--ink); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.advice p { margin: 0; font-size: .9rem; color: var(--body); }
.advice .what { display: block; margin-top: 8px; font-size: .86rem; }
.advice .what b { color: var(--ink); }

/* upgrade boundary panel */
.upgrade {
  position: relative; overflow: hidden; margin-top: 30px; border-radius: var(--r-xl);
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(99,102,241,.5), transparent 60%),
    radial-gradient(500px 300px at -5% 120%, rgba(14,165,164,.4), transparent 60%),
    var(--indigo-900);
  color: #d2d6f2; padding: clamp(24px,4vw,40px); box-shadow: var(--shadow-lg);
}
.upgrade .u-tag { display:inline-flex; align-items:center; gap:7px; font-size:.74rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#5eead4; background:rgba(14,165,164,.16); padding:6px 12px; border-radius:999px; margin-bottom:14px; }
.upgrade h4 { color: #fff; font-size: clamp(1.25rem,2.6vw,1.7rem); margin: 0 0 8px; }
.upgrade p { margin: 0 0 18px; max-width: 62ch; }
.upgrade .u-feats { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
@media (max-width: 620px){ .upgrade .u-feats { grid-template-columns: 1fr; } }
.upgrade .u-feats li { display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; }
.upgrade .u-feats svg { color: #5eead4; flex: none; margin-top: 3px; }
.upgrade .u-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.upgrade .u-free { font-size: .86rem; color: #aab0e0; }
.upgrade .u-free b { color: #fff; }

/* ============================ PRICING ============================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 980px){ .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.tier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: 30px; position: relative; }
.tier.featured { border-color: var(--primary); box-shadow: 0 22px 56px rgba(99,102,241,.20); }
.tier-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--primary-600)); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.tier h3 { margin-bottom: 4px; }
.tier .price { font-size: 2.3rem; font-weight: 900; color: var(--indigo); letter-spacing: -.03em; }
.tier .price small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.tier .desc { font-size: .92rem; color: var(--muted); min-height: 44px; margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.tier ul li { display: flex; gap: 10px; padding: 9px 0; font-size: .94rem; border-bottom: 1px solid var(--line-soft); }
.tier ul li:last-child { border-bottom: 0; }
.tier ul li svg { flex: none; margin-top: 3px; color: var(--teal); }
.tier ul li.off { color: var(--muted); }
.tier ul li.off svg { color: #c5cad9; }

.compare-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.compare { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 640px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare thead th { background: #fff; font-size: .82rem; color: var(--ink); }
.compare thead th.tcol { text-align: center; }
.compare td.tcol { text-align: center; }
.compare tbody tr:hover { background: var(--primary-tint-2); }
.compare .yes { color: var(--teal-600); font-weight: 800; }
.compare .no { color: #c5cad9; }
.compare caption { caption-side: top; text-align: left; padding: 15px 16px; font-weight: 800; background: var(--indigo); color: #fff; }

/* ============================ FAQ ============================ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #cdd1f8; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 19px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; transition: transform .25s; color: var(--primary-600); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 22px 19px; font-size: .96rem; color: var(--body); }

/* ============================ CONTACT ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,60px); align-items: start; }
@media (max-width: 880px){ .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-2xl); padding: clamp(24px,4vw,36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field .req { color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.18); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.err-text { color: var(--bad); font-size: .82rem; margin-top: 5px; display: none; }
.err-text.show { display: block; }
.field textarea { min-height: 112px; resize: vertical; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.check-row label { font-size: .92rem; font-weight: 500; color: var(--body); margin: 0; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .tick { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-tint); color: var(--ok-deep); display: grid; place-items: center; margin: 0 auto 16px; }
.grid-2-tight { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px){ .grid-2-tight { grid-template-columns: 1fr; } }
.turnstile-wrap { margin: 6px 0 18px; }

/* ============================ PRE-LAUNCH / COMING SOON ============================
   Date-driven swap. assets/launch.js sets .pre-launch / .post-launch on
   <html> and <body>. Default (no class yet) hides launch-only elements to avoid
   a flash; the live analyzer is the natural fallback. */

/* coming-soon card and pre-launch-only bits hidden by default + post-launch */
.demo-comingsoon { display: none; }
.pre-launch .demo-comingsoon { display: block; }
.pre-launch .demo-shell { display: none; }
.post-launch .demo-comingsoon { display: none; }
.post-launch .demo-shell { display: block; }

/* generic toggles for announce bar / hero pill / trust line / CTAs */
.pre-only { display: none; }
.post-only { display: none; }
.pre-launch .pre-only { display: inline; }
.post-launch .post-only { display: inline; }
/* buttons keep their flex layout when toggled */
.pre-launch a.btn.pre-only,
.pre-launch button.btn.pre-only { display: inline-flex; }
.post-launch a.btn.post-only,
.post-launch button.btn.post-only { display: inline-flex; }
/* block-level variants (e.g. the section intro copy that swaps) */
.pre-only-block { display: none; }
.post-only-block { display: none; }
.pre-launch .pre-only-block { display: block; }
.post-launch .post-only-block { display: block; }

/* the coming-soon card itself */
.cs-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background:
    radial-gradient(700px 300px at 85% -20%, rgba(99,102,241,.10), transparent 60%),
    radial-gradient(500px 260px at -10% 120%, rgba(14,165,164,.10), transparent 60%),
    #fff;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
}
.cs-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,122,69,.12); color: #c2410c; border: 1px solid #f7c9af;
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.cs-badge .b {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255,122,69,.18);
}
.cs-card h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cs-card .cs-sub { font-size: 1.05rem; max-width: 56ch; margin: .9rem auto 0; color: var(--body); }
.cs-card .cs-privacy {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 700; color: var(--teal-600);
  background: var(--teal-tint); padding: 8px 14px; border-radius: 999px; margin-top: 22px;
}

/* countdown */
.countdown { display: flex; justify-content: center; gap: 14px; margin: 30px 0 28px; flex-wrap: wrap; }
.cd-box { min-width: 84px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 8px; }
.cd-num { font-size: 2.3rem; font-weight: 900; color: var(--indigo); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-lbl { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@media (max-width: 560px) { .cd-box { min-width: 70px; } .cd-num { font-size: 1.9rem; } }

/* early-access CTA on the coming-soon card */
.cs-actions { display: flex; justify-content: center; margin: 4px 0 16px; }
.cs-card .cs-reassure { font-size: .9rem; color: var(--muted); margin: 0; }

/* ============================ LEGAL PAGES ============================ */
.legal { max-width: 800px; margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.12rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--body); }
.legal ul, .legal ol { padding-left: 1.3em; margin: 0 0 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal .meta { font-size: .9rem; color: var(--muted); margin-bottom: 1.5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .94rem; }
.legal th, .legal td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.draft-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--warn-tint); border: 1px solid #f1c98a; color: var(--warn-strong);
  border-radius: var(--r-md); padding: 13px 18px; margin-bottom: 28px; font-weight: 700; font-size: .92rem;
}
.draft-banner svg { flex: none; }

/* page header band for inner pages */
.page-head { padding: clamp(48px,7vw,84px) 0 clamp(20px,3vw,32px); }
.page-head .lead { margin-top: .4rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--primary-600); }
.breadcrumb span { margin: 0 6px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c9cef0; max-width: 56ch; margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.6rem; }

/* ============================ FOOTER ============================ */
.site-footer { background: var(--indigo-900); color: #a9aed4; padding: clamp(46px,6vw,72px) 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand img { height: 30px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #a9aed4; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; }
.footer-bottom p { margin: 0; max-width: 72ch; }
.legal-note { font-size: .8rem; color: #8388b3; margin-top: 8px; max-width: 60ch; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================ LANGUAGE SELECTOR ============================ */
.lang-select {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--indigo);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 30px 9px 14px;
  cursor: pointer;
  line-height: 1;
  max-width: 9.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23312E81' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  transition: border-color .2s ease, color .2s ease;
}
.lang-select:hover { border-color: var(--primary); color: var(--primary-600); }
@media (max-width: 1040px) {
  /* keep the language selector reachable on mobile (the ghost CTA is hidden there) */
  .lang-select { max-width: 8rem; }
}

/* ============================ I18N CAVEAT BANNER ============================ */
.i18n-caveat {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--primary-tint);
  border-bottom: 1px solid #cdd1f8;
  color: var(--indigo);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  padding: 11px var(--gutter);
  text-align: center;
  justify-content: center;
}
.i18n-caveat.show { display: flex; }
.i18n-caveat svg { flex: none; color: var(--primary-600); }
@media (max-width: 560px) {
  .i18n-caveat { font-size: .8rem; padding: 10px 14px; }
}
