/* AuditFlow landing. Everything is served from this site: the CSP is 'self' only (no CDN, no web
   font service). The font is Inter, self-hosted under fonts/ with its OFL licence. */
@font-face {
    font-family: "Inter";
    src: url("fonts/inter-latin-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #0d6e5f;
    --brand-dark: #0a574b;
    --brand-soft: #e7f3f0;
    --ink: #0f1b2d;
    --muted: #4a5768;
    --line: #e2e6ea;
    --bg: #ffffff;
    --bg-alt: #f5f7f6;
    --bg-deep: #0f1b2d;
    --danger: #b42318;
    --ok: #1e7a46;
    /* Severity, as the product paints it (SeverityDisplay in the Web app). */
    --sev-critical: #b42318;
    --sev-high: #c4520d;
    --sev-medium: #a16207;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.08);
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.2; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 680px; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(8px); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 13px 24px;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #8f1c13; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 12px 0 20px; }
.eyebrow { display: inline-block; color: var(--brand-dark); background: #fff; border: 1px solid #cfe5df; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 0.85rem; margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.fineprint { color: var(--muted); font-size: 0.875rem; }
.hero .fineprint { margin: 16px 0 0; }

/* The example finding: the product's promise, shown instead of described. */
.report { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.report-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.report-file { font-weight: 600; font-size: 0.95rem; margin: 0; }
.report-meta { color: var(--muted); font-size: 0.8rem; margin: 2px 0 0; }
.tag-example { flex: none; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 8px; }
.finding { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 6px; }
.finding h3 { font-size: 1rem; margin: 0; }
.sev { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; border-radius: 6px; padding: 2px 8px; }
.sev-critical { background: var(--sev-critical); }
.sev-high { background: var(--sev-high); }
.sev-medium { background: var(--sev-medium); }
.ref { font-size: 0.8rem; color: var(--muted); margin-left: auto; }
.quote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--bg-alt); border-radius: 0 6px 6px 0; font-size: 0.9rem; color: var(--ink); font-style: italic; }
.reco { margin: 0; font-size: 0.875rem; color: var(--muted); }
.reco strong { color: var(--ink); font-weight: 600; }
.finding.compact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finding.compact h3 { font-size: 0.95rem; font-weight: 600; }

/* ── Trust strip ─────────────────────────────────────────────────────── */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.trust li { display: flex; gap: 10px; align-items: center; font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--brand); }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section.deep { background: var(--bg-deep); color: #e8edf3; }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep .section-intro, .section.deep p { color: #b8c3d1; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; max-width: 760px; }
.kicker { color: var(--brand); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.section.deep .kicker { color: #6fd1bb; }
.section-intro { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 0 0 40px; }
.subhead { margin-top: 48px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.card.lead-card { background: var(--brand-soft); border-color: #cfe5df; }
.card.lead-card h3 { font-size: 1.25rem; }
.card.lead-card p { color: var(--ink); font-size: 1.02rem; max-width: 520px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin-bottom: 2px; }
.icon { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* Who it is for */
.audience { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience .card { padding: 20px; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; }
.steps h3 { margin: 14px 0 8px; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); }
.promise { display: flex; gap: 16px; align-items: flex-start; background: var(--brand-soft); border: 1px solid #cfe5df; border-radius: var(--radius); padding: 20px 24px; max-width: 860px; }
.promise svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.promise p { margin: 0; color: var(--ink); }
.promise strong { display: block; font-size: 1.08rem; margin-bottom: 2px; }

/* Benefits on the dark band */
.benefits { display: grid; gap: 1px; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(255, 255, 255, 0.08); border-radius: var(--radius); overflow: hidden; }
.benefit { background: var(--bg-deep); padding: 28px 24px; }
.benefit h3 { margin: 0 0 8px; font-size: 1.1rem; }
.benefit p { margin: 0; font-size: 0.95rem; }
.benefit .icon { background: rgba(111, 209, 187, 0.12); color: #6fd1bb; }
.badge-plan { display: inline-block; margin-left: 6px; font-size: 0.72rem; font-weight: 600; color: #6fd1bb; border: 1px solid rgba(111, 209, 187, 0.4); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }

.note { max-width: 760px; }

/* Profiles */
.profiles-note { margin: 24px 0 0; color: var(--muted); }

/* Beta offer */
.offer { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 28px; }
.offer .card { border-top: 3px solid var(--brand); }
.offer .big { font-size: 1.9rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; letter-spacing: -0.02em; }
.offer .big span { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; max-width: 860px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; letter-spacing: 0.02em; }
.founder p { margin: 0 0 12px; color: var(--muted); font-size: 1.05rem; }
.founder .sign { color: var(--ink); font-weight: 600; margin: 0; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 720px; }

/* ── Form ────────────────────────────────────────────────────────────── */
.signup { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.signup-points { list-style: none; padding: 0; margin: 24px 0 0; }
.signup-points li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--ink); }
.signup-points svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; font-size: 0.95rem; }
.form label:first-child { margin-top: 0; }
.form .optional { font-weight: 400; color: var(--muted); }
.form input[type="email"], .form input[type="text"], .form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c5ccd4;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
.form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 14px 0 6px; font-size: 0.9rem; color: var(--muted); }
.form .check input { margin-top: 4px; accent-color: var(--brand); }
.form .btn { margin-top: 8px; width: 100%; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }

/* ── Plain pages (privacy, legal notice, confirm, leave) ─────────────── */
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose ul { padding-left: 18px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.9rem; background: var(--bg); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

/* ── Narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-grid, .signup { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .trust ul, .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefits, .grid-3, .steps, .offer { grid-template-columns: minmax(0, 1fr); }
    .span-2 { grid-column: auto; }
}

@media (max-width: 720px) {
    .nav a:not(.btn) { display: none; }
    .hero { padding: 48px 0 40px; }
    .section { padding: 56px 0; }
    .lead { font-size: 1.05rem; }
    .trust ul, .audience { grid-template-columns: minmax(0, 1fr); }
    .founder { grid-template-columns: minmax(0, 1fr); }
    .ref { margin-left: 0; width: 100%; }
    .form-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn { transition: none; }
}
