/* ═══════════════════════════════════════════════════════════════
   Credentik — marketing home page
   Light, friendly, mobile-first. Tokens follow the Credentik V3 app
   (slate neutrals, indigo #4f46e5). styles.css is left untouched
   because /api/ still uses it.
   ═══════════════════════════════════════════════════════════════ */

/* Self-hosted web fonts (see /fonts/README.txt). Preloaded in each page <head>. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/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; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/bricolage-grotesque-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; }
/* Metric-matched fallbacks: system fonts sized like the web fonts, so text does not jump
   (layout shift) when Inter / Bricolage Grotesque finish loading. Computed with fontTools. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107.56%; ascent-override: 90.06%; descent-override: 22.42%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 700 800; size-adjust: 92.41%; ascent-override: 100.64%; descent-override: 29.22%; line-gap-override: 0%; }

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-2: #f1f5f9;

  --brand: #4f46e5;
  --brand-ink: #4338ca;
  --brand-hover: #4338ca;
  --brand-soft: #eef2ff;
  --brand-soft-2: #e0e7ff;
  --brand-on-dark: #a5b4fc;

  --ok: #10b981;   --ok-bg: #ecfdf5;   --ok-ink: #066e54;
  --warn: #f59e0b; --warn-bg: #fffbeb; --warn-ink: #92400e;
  --bad: #ef4444;  --bad-bg: #fef2f2;  --bad-ink: #991b1b;
  --info: #3b82f6; --info-bg: #eff6ff; --info-ink: #1e40af;

  --navy: #0f172a;
  --navy-2: #172033;
  --navy-line: rgba(148, 163, 184, .18);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -18px rgba(15, 23, 42, .22);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 30px 60px -30px rgba(15, 23, 42, .35);

  --f-display: "Bricolage Grotesque", "Bricolage Fallback", "Inter", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 16px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .dark :focus-visible { outline-color: var(--brand-on-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }
.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; }

.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn .ic { font-size: 16px; transition: transform .15s; }
.btn:hover .ic-go { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--bg); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; color: #fff; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

/* ── Header ──────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 23, 42, .3); }
.hdr-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo svg.lk { width: 151px; height: 32px; display: block; } /* 472:100 lockup; symbol box >= 24px */
.nav { display: none; margin: 0 auto; gap: 4px; }
.nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover { background: var(--bg-2); text-decoration: none; }
.hdr-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-cta .signin { display: none; color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
.hdr-cta .signin:hover { background: var(--bg-2); text-decoration: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink);
}
.menu-btn .ic { font-size: 20px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mnav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 16px; }
.mnav.open { display: block; }
.mnav a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mnav a:hover { text-decoration: none; color: var(--brand-ink); }
.mnav .btn { margin-top: 14px; }
@media (max-width: 420px) { .hdr-cta .btn-trial { padding: 8px 12px; font-size: 14px; } .logo svg.lk { width: 132px; height: 28px; } }
@media (min-width: 960px) {
  .nav { display: flex; }
  .hdr-cta { margin-left: 0; }
  .hdr-cta .signin { display: inline-flex; }
  .menu-btn, .mnav, .mnav.open { display: none; }
}
@media (min-width: 960px) and (max-width: 1139px) {
  .nav { gap: 0; }
  .nav a, .hdr-cta .signin { padding: 8px 9px; font-size: 14.5px; }
}

/* ── Section scaffolding ─────────────────────────────────────── */
.sec { padding: 72px 0; }
.sec-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.eyebrow {
  display: inline-block; font-family: var(--f-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px;
}
.on-dark .eyebrow { color: var(--brand-on-dark); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 5vw, 46px); }
.sec-head p { margin-top: 16px; font-size: clamp(16px, 2vw, 18.5px); color: var(--body); }
.hl { color: var(--brand); }
.on-dark .hl { color: var(--brand-on-dark); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .16), rgba(99, 102, 241, 0));
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .08), rgba(16, 185, 129, 0));
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  background: #fff; border: 1px solid var(--brand-soft-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 7.2vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.hero h1 .squiggle { position: relative; white-space: nowrap; color: var(--brand); }
.hero h1 .squiggle svg { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .3em; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 2.2vw, 19.5px); line-height: 1.6; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14.5px; color: var(--body); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { color: var(--ok); font-size: 16px; stroke-width: 2.6; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }

/* Hero visual */
.hv { position: relative; max-width: 560px; margin: 0 auto; width: 100%; padding: 26px 0 30px; }
.hv-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.hv-top { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); }
.av { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 14px; flex: none; }
.av.round { border-radius: 50%; }
.av.sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.hv-name { color: var(--ink); font-weight: 600; font-size: 15.5px; line-height: 1.3; }
.hv-sub { color: var(--muted); font-size: 13px; }
.hv-top .pill { margin-left: auto; }
.hv-prog { padding: 14px 20px 6px; }
.hv-prog .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.hv-prog .row b { color: var(--ink); font-weight: 600; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, var(--brand)); }
.hv-list { padding: 8px 12px 14px; }
.hv-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.hv-list li + li { border-top: 1px solid var(--line-2); }
.payer { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; }
.hv-list .pill { margin-left: auto; }
.float {
  position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--ink-2); line-height: 1.35;
  max-width: 260px;
}
.float b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.float .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.float-a { top: -4px; right: -8px; }
.float-b { bottom: -2px; left: -14px; }
.float-c { display: none; }
@media (min-width: 1100px) { .float-c { display: flex; top: 46%; right: -46px; } }
@media (max-width: 560px) {
  .float { position: relative; inset: auto; max-width: none; margin-top: 10px; box-shadow: var(--shadow); }
  .hv { padding: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .float-a { animation: bob 6s ease-in-out infinite; }
  .float-b { animation: bob 7s ease-in-out -2s infinite; }
  .float-c { animation: bob 6.5s ease-in-out -4s infinite; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 560px) { .float-a, .float-b { animation: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tone-ok { background: var(--ok-bg); color: var(--ok-ink); }
.tone-warn { background: var(--warn-bg); color: var(--warn-ink); }
.tone-bad { background: var(--bad-bg); color: var(--bad-ink); }
.tone-info { background: var(--info-bg); color: var(--info-ink); }
.tone-brand { background: var(--brand-soft); color: var(--brand-ink); }

/* Status pill (app look) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pill.info { background: var(--info-bg); color: var(--info-ink); }
.pill.neutral { background: var(--bg-2); color: #475569; }
.pill.brand { background: var(--brand-soft); color: #3730a3; }

/* ── Marquee ─────────────────────────────────────────────────── */
.who-strip { padding: 8px 0 64px; text-align: center; }
.who-strip .label { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.marquee { position: relative; overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; }
.marquee-track li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; white-space: nowrap; }
.marquee-track li .ic { color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}
.sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.sources span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.sources .ic { color: var(--ok); }

/* ── Browser frame + app chrome (shared by tour & spotlights) ── */
.frame { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.dots i:nth-child(1) { background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.url { flex: 1; max-width: 360px; margin: 0 auto; height: 26px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.url .ic { font-size: 11px; color: var(--ok); }

/* App mock (V3 look) */
.app { display: grid; grid-template-columns: 1fr; font-size: 12.5px; color: #334155; background: var(--bg); text-align: left; line-height: 1.45; }
@media (min-width: 820px) { .app { grid-template-columns: 200px minmax(0, 1fr); } }
.app-side { display: none; background: #fff; border-right: 1px solid var(--line); padding: 14px 10px; }
@media (min-width: 820px) { .app-side { display: block; } }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 0 6px 14px; }
.app-brand .tile { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.app-brand b { display: block; color: var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.app-brand small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.app-sec { font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 10px 8px 4px; }
.app-nav li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-weight: 500; color: #334155; font-size: 12px; transition: background .2s, color .2s; }
.app-nav li .ic { font-size: 14px; stroke-width: 1.8; color: var(--muted); }
.app-nav li.on { background: var(--brand-soft); color: var(--brand-ink); }
.app-nav li.on .ic { color: var(--brand-ink); }
.app-nav .ct { margin-left: auto; font-size: 10px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 99px; padding: 0 6px; font-weight: 600; }
.app-nav .ct.red { background: #fee2e2; color: #b91c1c; }
.app-main { min-width: 0; }
.app-hdr { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line); }
.app-search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); font-size: 11.5px; min-width: 0; flex: 0 1 240px; }
.app-search kbd { margin-left: auto; font-family: var(--f-mono); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); }
.app-hdr .sp { flex: 1; }
.app-hdr .bell { position: relative; color: var(--muted); font-size: 16px; }
.app-hdr .bell::after { content: ""; position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); border: 1.5px solid #fff; }
.app-body { padding: 18px; min-height: 380px; }
@media (min-width: 820px) { .app-body { padding: 22px 24px; min-height: 430px; } }
.app-h1 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.app-h1 h4 { font-family: var(--f-body); font-size: 17px; font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
.app-h1 p { color: var(--muted); font-size: 12px; width: 100%; margin-top: -6px; }
.app-h1 .abtn { margin-left: auto; }
.abtn { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-weight: 600; font-size: 11.5px; padding: 6px 11px; border-radius: 7px; }
.abtn.sec2 { background: #fff; color: #334155; border: 1px solid var(--line); }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 11px 13px; border-top: 3px solid var(--brand); }
.stat small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 10.5px; color: var(--muted); }
.stat.s-ok { border-top-color: var(--ok); } .stat.s-warn { border-top-color: var(--warn); } .stat.s-bad { border-top-color: var(--bad); }
.atable { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.atable th { text-align: left; background: var(--bg); color: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.atable td { padding: 9px 12px; border-top: 1px solid var(--line-2); color: #334155; white-space: nowrap; }
.atable td.who { color: var(--ink); font-weight: 500; }
.atable .num { text-align: right; font-variant-numeric: tabular-nums; }
.atable .pill { font-size: 10.5px; padding: 1px 7px; }
.hide-sm { display: none; }
@media (min-width: 820px) { .hide-sm { display: table-cell; } }
.alist li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line-2); }
.alist li:first-child { border-top: 0; }
.alist .t { min-width: 0; }
.alist .t b { display: block; color: var(--ink); font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alist .t span { display: block; color: var(--muted); font-size: 11px; }
.alist .pill { margin-left: auto; font-size: 10.5px; }
.acard-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-weight: 600; color: var(--ink); font-size: 12px; }
.acard-h .ic { color: var(--brand); }
.acard-h .lnk { margin-left: auto; font-weight: 500; color: var(--brand); font-size: 11px; }
.two { display: grid; gap: 12px; }
@media (min-width: 820px) { .two { grid-template-columns: 1.3fr 1fr; } }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 12px; }
.banner .ic { font-size: 15px; }

/* Kanban */
.kb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 820px) { .kb { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kb-col { background: var(--bg-2); border-radius: 10px; padding: 8px; }
.kb-col:nth-child(n+3) { display: none; }
@media (min-width: 820px) { .kb-col:nth-child(n+3) { display: block; } }
.kb-h { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #475569; }
.kb-h i { width: 8px; height: 8px; border-radius: 50%; }
.kb-h em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 500; }
.kb-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 7px; box-shadow: var(--shadow-sm); }
.kb-card b { display: block; color: var(--ink); font-weight: 600; font-size: 11.5px; }
.kb-card span { display: block; color: var(--muted); font-size: 10.5px; }
.kb-card .meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.kb-card .meta .av { width: 20px; height: 20px; font-size: 8.5px; border-radius: 50%; }
.kb-card .meta small { margin-left: auto; font-size: 10px; color: var(--muted); }
.kb-card.lift { border-color: #c7d2fe; box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .45); transform: rotate(-1.2deg); }

/* ── Product tour ────────────────────────────────────────────── */
.tour-tabs { display: flex; gap: 8px; margin: 0 auto 22px; padding: 4px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; max-width: 100%; }
.tour-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tour-tabs { justify-content: center; flex-wrap: wrap; } }
.tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.tab .ic { font-size: 16px; color: var(--muted); }
.tab:hover { border-color: #c7d2fe; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .6); }
.tab[aria-selected="true"] .ic { color: var(--brand-on-dark); }
.tour-panels { position: relative; }
.tour-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .tour-panel:not([hidden]) { animation: fadeIn .45s ease; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour-cap { display: flex; align-items: center; gap: 16px; margin-top: 18px; font-size: 15.5px; color: var(--body); }
.tour-cap b { color: var(--ink); font-weight: 600; }
.tour-cap .note { margin-left: auto; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tour-prog { height: 3px; background: var(--line); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.tour-prog span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; }
@media (max-width: 640px) { .tour-cap { flex-direction: column; align-items: flex-start; gap: 6px; } .tour-cap .note { margin-left: 0; } }

/* ── Before / after ledger ───────────────────────────────────── */
.ledger { display: grid; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger > div { padding: 32px 26px; }
@media (min-width: 900px) { .ledger > div { padding: 40px 40px; } }
.ledger .old { background: #fff; }
.ledger .new { background: var(--navy); color: #cbd5e1; position: relative; }
.ledger .new::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; background: radial-gradient(closest-side, rgba(99, 102, 241, .35), transparent); pointer-events: none; }
.ledger h3 { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.ledger .new h3 { color: var(--brand-on-dark); }
.ledger li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-2); font-size: 15.5px; color: var(--ink-2); }
.ledger li:first-child { border-top: 0; }
.ledger .new li { color: #e2e8f0; border-top-color: var(--navy-line); position: relative; }
.ledger .x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad-ink); flex: none; font-size: 13px; margin-top: 1px; }
.ledger .y { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(99, 102, 241, .25); color: #c7d2fe; flex: none; font-size: 13px; margin-top: 1px; }
.ledger .x .ic, .ledger .y .ic { stroke-width: 2.8; }
.ledger .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); font-size: 15px; }
.ledger .new .foot { border-top-color: rgba(255,255,255,.2); color: #fff; position: relative; }
.ledger .foot .tag { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--bad-ink); }
.ledger .new .foot .tag { color: var(--brand-on-dark); }

/* ── Spotlight rows ─────────────────────────────────────────── */
.spot { display: grid; gap: 36px; align-items: center; }
.spot + .spot { margin-top: 88px; }
@media (min-width: 960px) {
  .spot { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .spot.flip > .spot-copy { order: 2; }
}
.spot-copy h3 { font-size: clamp(26px, 3.6vw, 36px); }
.spot-copy > p { margin-top: 14px; font-size: 17px; }
.spot-copy .tick { margin-top: 22px; display: grid; gap: 12px; }
.tick li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.tick li > .ic { margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); stroke-width: 3; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 22px; margin-bottom: 18px; }
.spot-vis { position: relative; }
.spot-vis .blob { position: absolute; inset: 8% -4% -6% 6%; background: linear-gradient(135deg, #e0e7ff, #ede9fe 50%, #ecfdf5); border-radius: 28px; transform: rotate(2deg); z-index: 0; }
.spot.flip .spot-vis .blob { transform: rotate(-2deg); inset: 8% 6% -6% -4%; }
.spot-vis .vis { position: relative; z-index: 1; }

/* Timeline visual (expirations) */
.tl { padding: 18px; }
.tl-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tl-h b { color: var(--ink); font-size: 14px; }
.tl-h .pill { margin-left: auto; }
.tl-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.tl-row .ki { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.tl-row b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.tl-row span { color: var(--muted); font-size: 12.5px; }
.toast { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #e2e8f0; font-size: 13px; line-height: 1.45; box-shadow: var(--shadow-lg); }
.toast b { color: #fff; }
.toast .ic { font-size: 18px; color: #fbbf24; margin-top: 1px; }
@media (min-width: 960px) { .toast { position: absolute; left: -34px; bottom: -26px; max-width: 330px; margin: 0; } }

/* Document request visual */
.req { padding: 20px; }
.req-mail { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.req-mail small { display: block; font-size: 12px; color: var(--muted); }
.req-mail b { color: var(--ink); }
.req-mail p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.drop { margin-top: 14px; border: 2px dashed #c7d2fe; border-radius: 12px; padding: 16px; text-align: center; color: var(--brand-ink); background: #f8f9ff; font-size: 13.5px; font-weight: 500; }
.drop .ic { margin: 0 auto 6px; font-size: 22px; }
.files { margin-top: 14px; display: grid; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; background: #fff; }
.file .fic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; flex: none; }
.file b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.file span { color: var(--muted); font-size: 12px; }
.file .pill { margin-left: auto; }
.file .bar { width: 90px; margin: 0 0 0 auto; flex: none; }

/* White-label builder */
.wl { overflow: hidden; }
.wl-top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--wl, #4f46e5); color: #fff; transition: background .35s; }
.wl-top .mk { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); }
.wl-top b { font-size: 14.5px; }
.wl-top small { display: block; font-size: 11px; opacity: .85; }
.wl-top .ava { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.wl-body { padding: 16px; display: grid; gap: 10px; }
.wl-hello { font-weight: 600; color: var(--ink); font-size: 15px; }
.wl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wl-tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 11.5px; color: var(--muted); }
.wl-tile b { display: block; font-size: 18px; color: var(--ink); font-weight: 600; }
.wl-task { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink-2); }
.wl-task .box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--wl, #4f46e5); flex: none; display: grid; place-items: center; color: #fff; transition: border-color .35s, background .35s; }
.wl-task .box.done { background: var(--wl, #4f46e5); }
.wl-task .box .ic { font-size: 11px; stroke-width: 3.4; }
.wl-task .go { margin-left: auto; font-weight: 600; color: var(--wl-ink, #4338ca); font-size: 12px; transition: color .35s; }
.wl-btn { display: block; text-align: center; padding: 10px; border-radius: 10px; background: var(--wl, #4f46e5); color: #fff; font-weight: 600; font-size: 13.5px; transition: background .35s; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.swatches .lbl { font-size: 14px; color: var(--muted); margin-right: 4px; }
.sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: transform .15s, box-shadow .15s; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* ── Feature grid ────────────────────────────────────────────── */
.grid-head { margin: 104px auto 36px; }
.fgrid { display: grid; gap: 16px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fgrid { grid-template-columns: repeat(4, 1fr); } }
.fcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.fcard .icon-tile { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; margin-bottom: 16px; }
.fcard h3 { font-size: 18px; letter-spacing: -.01em; }
.fcard p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }

/* ── Revenue band (dark) ─────────────────────────────────────── */
.dark { background: var(--navy); color: #cbd5e1; position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; right: -200px; top: -200px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(79, 70, 229, .32), transparent); pointer-events: none; }
.dark::after { content: ""; position: absolute; left: -260px; bottom: -300px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(16, 185, 129, .1), transparent); pointer-events: none; }
.dark > .wrap { position: relative; z-index: 1; }
.dark h2, .dark h3 { color: #fff; }
.dark .sec-head p { color: #cbd5e1; }
.dark .sec-head p b { color: #fff; }
.rc { display: grid; gap: 18px; }
@media (min-width: 960px) { .rc { grid-template-columns: 300px minmax(0, 1fr); gap: 22px; align-items: start; } }
.rc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rc-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .rc-tabs { flex-direction: column; overflow: visible; } }
.rtab {
  display: flex; align-items: center; gap: 12px; text-align: left; flex: none; cursor: pointer;
  padding: 12px 16px; border-radius: 14px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .03); color: #e2e8f0;
  transition: background .15s, border-color .15s;
}
.rtab:hover { background: rgba(255, 255, 255, .06); }
.rtab .ic { font-size: 18px; color: #94a3b8; }
.rtab b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.rtab small { display: none; font-size: 12.5px; color: #94a3b8; }
@media (min-width: 960px) { .rtab small { display: block; } .rtab { padding: 14px 18px; } }
.rtab[aria-selected="true"] { background: linear-gradient(135deg, rgba(79, 70, 229, .4), rgba(79, 70, 229, .18)); border-color: rgba(165, 180, 252, .5); }
.rtab[aria-selected="true"] .ic { color: var(--brand-on-dark); }
.rc-panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .rc-panel:not([hidden]) { animation: fadeIn .4s ease; } }
.rc-card { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.rc-card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--navy-line); }
.rc-card-h .icon-tile { width: 38px; height: 38px; margin: 0; font-size: 18px; border-radius: 10px; background: rgba(99, 102, 241, .2); color: var(--brand-on-dark); }
.rc-card-h small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.rc-card-h b { color: #fff; font-size: 15.5px; font-weight: 600; }
.rc-card-h .pill { margin-left: auto; }
.rc-body { padding: 18px 20px 20px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--navy-line); font-size: 14px; color: #e2e8f0; }
.drow:first-child { border-top: 0; }
.drow .k { min-width: 0; }
.drow .k b { display: block; color: #fff; font-weight: 500; }
.drow .k span { display: block; font-size: 12.5px; color: #94a3b8; }
.drow .amt { margin-left: auto; font-family: var(--f-mono); font-size: 13.5px; color: #fff; white-space: nowrap; }
.drow .pill { flex: none; }
.dark .pill.ok { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.dark .pill.warn { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.dark .pill.bad { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.dark .pill.info { background: rgba(59, 130, 246, .18); color: #93c5fd; }
.dark .pill.brand { background: rgba(99, 102, 241, .22); color: #c7d2fe; }
.letter { margin-top: 14px; border-radius: 12px; background: #f8fafc; color: #334155; padding: 16px 18px; font-size: 13px; line-height: 1.6; }
.letter .lh { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.letter b { color: var(--ink); }
.letter mark { background: #e0e7ff; color: #3730a3; border-radius: 4px; padding: 0 3px; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--brand); color: #fff; }
.mini-btn.o { background: transparent; border: 1px solid var(--navy-line); color: #e2e8f0; }
.aging { display: grid; gap: 12px; }
.aging .ar { display: grid; grid-template-columns: 64px 1fr 76px; gap: 12px; align-items: center; font-size: 13px; }
.aging .ar span { color: #94a3b8; font-family: var(--f-mono); font-size: 12px; }
.aging .ar em { font-style: normal; text-align: right; font-family: var(--f-mono); color: #fff; font-size: 13px; }
.aging .track { height: 12px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.aging .track i { display: block; height: 100%; border-radius: inherit; }
.rc-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #94a3b8; font-family: var(--f-mono); letter-spacing: .02em; }
.rc-note .ic { color: var(--brand-on-dark); }
.rc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.rc-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .03); color: #e2e8f0; font-size: 14.5px; }
.rc-chips .ic { color: #6ee7b7; stroke-width: 2.6; }

/* ── Security ────────────────────────────────────────────────── */
.sec-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sec-grid { grid-template-columns: repeat(3, 1fr); } }
.scard { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.scard .icon-tile { margin: 0; width: 44px; height: 44px; font-size: 20px; flex: none; background: var(--ok-bg); color: var(--ok-ink); }
.scard h3 { font-family: var(--f-body); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.scard p { margin-top: 4px; font-size: 14.5px; }
.sec-foot { margin-top: 26px; text-align: center; font-size: 15px; }
.sec-foot a { font-weight: 600; }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.step .n { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.04em; color: var(--brand-soft-2); }
.step h3 { margin-top: 14px; font-size: 19px; letter-spacing: -.01em; }
.step p { margin-top: 8px; font-size: 14.5px; }
.step .time { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); border-radius: 99px; padding: 3px 10px; }

/* ── Who it's for ────────────────────────────────────────────── */
.aud { display: grid; gap: 18px; }
@media (min-width: 900px) { .aud { grid-template-columns: 1fr 1fr; } }
.acard2 { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; position: relative; overflow: hidden; }
.acard2.alt { background: linear-gradient(160deg, #eef2ff, #fff 60%); border-color: var(--brand-soft-2); }
.acard2 h3 { font-size: 24px; }
.acard2 > p { margin-top: 10px; font-size: 16px; }
.acard2 .tick { margin-top: 20px; display: grid; gap: 11px; }
.acard2 .tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }

/* ── Pricing ─────────────────────────────────────────────────── */
.plans { display: grid; gap: 18px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
@media (min-width: 920px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; }
.plan h3 { font-size: 22px; }
.plan .for { margin-top: 6px; font-size: 14.5px; color: var(--muted); min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.price b { font-family: var(--f-display); font-size: 52px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan .trial { margin-top: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .03em; }
.plan .btn { margin-top: 22px; }
.plan ul { margin-top: 24px; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.plan li .ic { color: var(--brand); margin-top: 4px; stroke-width: 2.6; }
.plan li strong { color: var(--ink); font-weight: 600; }
.plan.pop { background: var(--navy); border-color: var(--brand); color: #cbd5e1; box-shadow: 0 30px 60px -28px rgba(79, 70, 229, .55); }
@media (min-width: 920px) { .plan.pop { transform: translateY(-10px); } }
.plan.pop h3, .plan.pop .price b, .plan.pop li strong { color: #fff; }
.plan.pop .for, .plan.pop .price span, .plan.pop .trial { color: #94a3b8; }
.plan.pop li { color: #e2e8f0; }
.plan.pop li .ic { color: var(--brand-on-dark); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plans-note { text-align: center; margin-top: 30px; font-size: 15px; color: var(--muted); }
.plans-note a { font-weight: 600; }
.trial-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: -16px auto 44px; font-size: 14.5px; }
.trial-strip li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.trial-strip .ic { color: var(--ok); stroke-width: 2.6; }

/* ── Testimonials (placeholder, hidden until real quotes) ────── */
.quotes { display: grid; gap: 18px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.quote p { font-size: 16px; color: var(--ink-2); }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.quote .by b { display: block; color: var(--ink); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none;
  padding: 22px 4px; font-family: var(--f-display); font-weight: 600; font-size: 18.5px; color: var(--ink); letter-spacing: -.01em; border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-2); flex: none; transition: transform .2s, background .2s, color .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-ink); }
.faq summary:hover { color: var(--brand-ink); }
.faq .ans { padding: 0 4px 24px; font-size: 16px; line-height: 1.7; max-width: 720px; }
.faq .ans a { font-weight: 600; }

/* ── Final CTA ───────────────────────────────────────────────── */
.cta-wrap { padding: 32px 0 88px; }
.cta { position: relative; overflow: hidden; text-align: center; background: var(--navy); color: #cbd5e1; border-radius: 28px; padding: 56px 22px; }
@media (min-width: 760px) { .cta { padding: 76px 40px; } }
.cta::before { content: ""; position: absolute; left: 50%; top: -260px; width: 760px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99, 102, 241, .5), transparent); pointer-events: none; }
.cta > * { position: relative; }
.cta .mk { width: 56px; height: 56px; margin: 0 auto 22px; --ck-ring: #a5b4fc; --ck-check: #34d399; } /* reversed on dark */
.cta h2 { color: #fff; font-size: clamp(30px, 5vw, 48px); max-width: 760px; margin: 0 auto; }
.cta p { margin: 16px auto 0; max-width: 580px; font-size: 18px; }
.cta .hero-cta { justify-content: center; }
.cta .fine { margin-top: 18px; font-size: 14px; color: #94a3b8; }

/* ── Footer ──────────────────────────────────────────────────── */
.ftr { background: var(--navy); color: #94a3b8; padding: 64px 0 32px; font-size: 14.5px; }
.ftr-grid { display: grid; gap: 36px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-brand { grid-column: auto; } }
.ftr .logo { color: #fff; --ck-ring: #a5b4fc; --ck-check: #34d399; --ck-word: #fff; } /* logo-reversed */
.ftr-brand p { margin-top: 14px; max-width: 360px; line-height: 1.65; }
.ftr h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ftr li + li { margin-top: 10px; }
.ftr a { color: #cbd5e1; }
.ftr a:hover { color: #fff; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 13.5px; }
.ftr-bot .mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .03em; }

/* ── Reveal on scroll (only when JS is on + motion allowed) ──── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Mock helpers (added with markup) ────────────────────────── */
.mbars { padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.mbars .mb-l { display: flex; justify-content: space-between; font-size: 11.5px; }
.mbars .mb-l b { color: var(--ink); font-weight: 600; }
.mbars .bar { height: 6px; margin-top: 5px; }
.inbox { grid-template-columns: 1fr; }
@media (min-width: 820px) { .inbox { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.threads { display: none; }
@media (min-width: 820px) { .threads { display: block; } }
.threads li.sel { background: var(--brand-soft); border-radius: 10px 10px 0 0; }
.convo { padding: 14px; display: grid; gap: 10px; align-content: start; }
.convo .b { padding: 9px 12px; max-width: 85%; font-size: 12px; border-radius: 12px; }
.convo .b b { display: block; color: var(--ink); font-size: 11px; }
.convo .them { background: var(--bg-2); border-bottom-left-radius: 4px; }
.convo .me { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.convo .reply { flex: none; margin-top: 4px; }
.drow.wo { margin-top: 14px; border-top: 1px solid var(--navy-line); }
.steps { list-style: none; margin: 0; padding: 0; }
.cta .fine a { color: #c7d2fe; font-weight: 600; }
.frame.tl { box-shadow: var(--shadow-lg); }

/* ── Layout refinements after visual review ──────────────────── */
.hero::after { bottom: auto; top: -260px; left: -260px; }
.hv { padding: 56px 0 60px; }
.float-a { top: 6px; right: -10px; }
.float-b { bottom: 12px; left: -18px; }
@media (min-width: 1100px) { .float-c { top: auto; bottom: -6px; right: 28px; } }
@media (max-width: 560px) { .hv { padding: 0; } }
@media (min-width: 960px) {
  .frame.tl { padding-bottom: 44px; }
  .toast { bottom: -30px; }
}
.step { display: flex; flex-direction: column; }
.step .time { align-self: flex-start; margin-top: auto; }
.step p { margin-bottom: 16px; }
.two { grid-template-columns: minmax(0, 1fr); }
.two > * { min-width: 0; }
@media (min-width: 820px) { .two { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .two.inbox { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
@media (max-width: 560px) {
  .float, .float-a, .float-b { top: auto; right: auto; bottom: auto; left: auto; }
  .hv { display: grid; gap: 0; }
}
@media (max-width: 959px) {
  .spot-vis .blob, .spot.flip .spot-vis .blob { inset: 6% 0 -4% 0; }
}
@media (max-width: 600px) {
  .drow { flex-wrap: wrap; row-gap: 6px; }
  .drow .k { flex: 1 1 100%; }
  .drow .amt { margin-left: 0; }
  .drow .amt + .pill { margin-left: auto; }
  .fcard { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .fcard .icon-tile { grid-row: span 2; margin: 0; }
  .fcard h3 { align-self: end; }
  .fcard p { margin-top: 4px; }
}
.kb-card .meta .av { width: 22px; height: 22px; font-size: 9px; font-weight: 700; }
