/* ---------- Tokens ---------- */
:root {
  --ink: #0b1220;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --bg-dark: #0b1220;
  --brand: #7b2d6e;
  --brand-600: #94407f;
  --brand-50: #fbf1f8;
  --red: #dc2626;
  --red-50: #fef2f2;
  --amber: #b45309;
  --amber-50: #fffbeb;
  --green: #15803d;
  --green-50: #f0fdf4;
  --slate-50: #f1f5f9;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px rgba(15, 23, 42, .12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { accent-color: var(--brand); margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .85em; background: var(--slate-50); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; word-break: break-all; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .8em; }
.eyebrow-light { color: #eeb4de; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #eeb4de; outline-offset: 2px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 650; border-radius: 10px; padding: .8em 1.3em; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 16px rgba(123,45,110,.25); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #cbd5e1; color: var(--ink); background: var(--bg-alt); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e6fffa; color: var(--ink); }
.btn-small { padding: .5em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
input[type=text], input[type=email], select { font: inherit; width: 100%; padding: .8em 1em; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(148,64,127,.15); }
.form-error { color: var(--red); font-size: .9rem; margin: .5em 0 0; flex-basis: 100%; }
.form-success { color: var(--green); font-weight: 600; }
.check { display: flex; gap: .5em; align-items: center; color: var(--ink-2); }

.scan-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.scan-form input { flex: 1 1 240px; }
.scan-form-large input { padding: 1em 1.2em; font-size: 1.05rem; border-radius: 12px; }
.scan-form-large .btn { padding: 1em 1.6em; font-size: 1.05rem; border-radius: 12px; }
.center .scan-form { margin: 0 auto; }
.region-pick { border: 0; padding: 0; margin: 2px 0 0; display: flex; gap: 16px; align-items: center; flex-basis: 100%; font-size: .9rem; color: var(--ink-2); flex-wrap: wrap; }
.region-pick legend { float: left; padding: 0; margin-right: 4px; color: var(--muted); }
.region-pick label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.center .region-pick { justify-content: center; }

/* ---------- Header & footer ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; color: var(--brand); }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 0; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-note { margin-top: 24px; }
.logo-footer { margin-bottom: .5em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 40px 0 72px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: #cbd5e1; }
.section-cta { background: linear-gradient(180deg, var(--bg) 0%, var(--brand-50) 100%); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.page-head { padding: 72px 0 24px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background:
  radial-gradient(800px 400px at 85% 10%, rgba(148,64,127,.10), transparent 60%),
  radial-gradient(600px 300px at 0% 0%, rgba(59,130,246,.06), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-note { margin-top: 14px; }
.hero h1 { max-width: 14ch; }

.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 24px; transform: rotate(1deg); }
.mock-top { display: flex; gap: 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mock-url { font-weight: 700; margin: 0 0 6px; }
.mock-meta { margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.mock-list li { display: flex; gap: 10px; align-items: center; }
.mock .score-ring { width: 76px; height: 76px; font-size: 1.5rem; }

/* ---------- Score ring ---------- */
.score-ring { --size: 140px; --c: var(--brand); width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--score) * 1%), #e8edf3 0); position: relative; font-weight: 800; font-size: 2.6rem; letter-spacing: -0.03em; }
.score-ring::before { content: ""; position: absolute; inset: 11px; background: #fff; border-radius: 50%; }
.score-ring span { position: relative; }
.score-good { --c: #16a34a; color: var(--green); }
.score-mid { --c: #f59e0b; color: var(--amber); }
.score-bad { --c: #ef4444; color: var(--red); }

/* ---------- Pills & severity ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8em; padding: .1em .6em; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill-critical { background: var(--red-50); color: var(--red); }
.pill-warning { background: var(--amber-50); color: var(--amber); }
.pill-ok { background: var(--green-50); color: var(--green); }
.sev { display: inline-block; flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .25em .6em; border-radius: 6px; }
.sev-critical { background: var(--red-50); color: var(--red); }
.sev-warning { background: var(--amber-50); color: var(--amber); }
.sev-info { background: var(--slate-50); color: var(--ink-2); }
.sev-ok { background: var(--green-50); color: var(--green); }

/* ---------- Chips ---------- */
.platform-strip { padding: 8px 0 40px; }
.chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { padding: .4em .9em; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 550; color: var(--ink-2); }
.chip-muted { background: var(--bg-alt); color: var(--muted); }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--ink-2); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.icon-red { background: var(--red-50); color: var(--red); }
.icon-amber { background: var(--amber-50); color: var(--amber); }
.icon-blue { background: #eff6ff; color: #2563eb; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }

.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.check-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; padding-left: 52px; }
.check-tile::before { content: ""; position: absolute; left: 20px; top: 25px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b2d6e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.check-tile p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* ---------- Monitoring ---------- */
.monitor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: rgba(238,180,222,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eeb4de' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.ticks-dark li::before { background-color: var(--brand-50); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b2d6e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.alert-preview { display: grid; gap: 14px; }
.alert-card { background: #111a2e; border: 1px solid #1e2a44; border-radius: var(--radius); padding: 20px 22px; }
.alert-card p { margin: 0 0 .5em; }
.alert-card-ok { padding: 14px 22px; }
.alert-card-ok p { margin: 0; }
.alert-head { font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.alert-body { color: #cbd5e1; }
.alert-cause { color: #94a3b8; font-size: .92rem; }
.alert-cause strong { color: #e2e8f0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-red { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.2); }
.dot-green { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.muted-light { color: #64748b; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 12px; }

/* ---------- Scan progress ---------- */
.scan-progress { min-height: 60vh; }
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 5px solid var(--brand-50); border-top-color: var(--brand); margin: 0 auto 24px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-list { list-style: none; padding: 0; margin: 32px auto 0; max-width: 460px; text-align: left; display: grid; gap: 12px; }
.stage-list li { padding: 12px 16px 12px 46px; border: 1px solid var(--line); border-radius: 10px; position: relative; color: var(--muted); }
.stage-list li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid #cbd5e1; }
.stage-list li.is-active { color: var(--ink); border-color: var(--brand); background: var(--brand-50); font-weight: 600; }
.stage-list li.is-active::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.stage-list li.is-done { color: var(--ink-2); }
.stage-list li.is-done::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Report ---------- */
.report-head { padding: 48px 0 8px; }
.report-url { font-size: clamp(1.8rem, 3.5vw, 2.6rem); word-break: break-word; }
.report-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.score-card { position: sticky; top: 88px; border: 1px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; box-shadow: var(--shadow); background: #fff; }
.score-card .score-ring { margin: 0 auto 14px; }
.score-label { font-weight: 800; font-size: 1.2rem; margin: 0 0 .3em; }
.counts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 8px; text-align: left; font-size: .95rem; }
.counts li { display: flex; gap: 10px; align-items: center; }
.report-main h2 { margin-top: 0; }
.report-main > h2:not(:first-child) { margin-top: 36px; }
.platforms { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.platforms li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.platforms li:last-child { border-bottom: 0; }
.platform-name { font-weight: 650; }
.platform-ids { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.findings { display: grid; gap: 14px; }
.finding { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.finding p { margin: 0 0 .6em; color: var(--ink-2); }
.finding p:last-child { margin-bottom: 0; }
.finding-head { display: flex; gap: 10px; align-items: baseline; color: var(--ink) !important; }
.finding-critical { border-left-color: #ef4444; }
.finding-warning { border-left-color: #f59e0b; }
.finding-info { border-left-color: #94a3b8; }
.finding-ok { border-left-color: #22c55e; }
.fix { background: var(--bg-alt); border-radius: 8px; padding: 10px 12px; }
.evidence summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.evidence ul { margin: 8px 0 0; padding-left: 18px; font-size: .85rem; }
.unlock { margin-top: 28px; border: 1px solid #efc6e3; background: linear-gradient(180deg, var(--brand-50), #fff); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.unlock-copy p { color: var(--ink-2); margin: 0; }
.unlock-form { display: grid; gap: 10px; }
.unlock-form p { margin: 0; }
.full-report { margin-top: 28px; }
.full-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.group-title { margin: 28px 0 12px; }

/* ---------- Checks page ---------- */
.catalog { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.catalog-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row h3 { font-size: 1rem; margin-bottom: .3em; }
.catalog-row p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.catalog-sev { flex: none; font-size: .8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.platform-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.platform-table th, .platform-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.platform-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg-alt); }
.platform-table tr:last-child td { border-bottom: 0; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.price-card { border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.price-card .ticks { flex: 1; align-content: start; }
.price-card-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.badge { display: inline-block; align-self: flex-start; background: var(--brand-50); color: var(--brand); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .3em .7em; border-radius: 999px; margin-bottom: 12px; }
.badge-muted { background: var(--slate-50); color: var(--muted); }
.waitlist { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.waitlist-form { display: grid; gap: 8px; max-width: 460px; }
.waitlist-form label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.waitlist-form .btn { margin-top: 10px; justify-self: start; }
.waitlist-form p { margin: 0; }

/* ---------- Prose ---------- */
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose p { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .monitor-grid, .report-grid, .unlock { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .cards-3, .check-grid, .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .score-card { position: static; }
  .section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .mock { transform: none; }
  .scan-form .btn { flex: 1 1 100%; }
  .catalog-row { flex-direction: column; gap: 6px; }
  .score-card { display: grid; grid-template-columns: 96px 1fr; gap: 4px 18px; text-align: left; align-items: center; padding: 20px; }
  .score-card .score-ring { --size: 96px; font-size: 1.9rem; margin: 0; grid-row: span 2; }
  .score-card .score-ring::before { inset: 8px; }
  .score-card .counts, .score-card .tiny { grid-column: 1 / -1; }
  .score-card .counts { display: flex; gap: 16px; margin: 12px 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
#top-problems > h2 { margin-top: 36px; }
