/* ===========================================================
   WC Audit Recovery — landing page
   Minimal palette, light background, navy accents.
   =========================================================== */

:root {
    --ink: #0a2540;
    --ink-soft: #324a6e;
    --muted: #5a6577;
    --line: #e4e8ef;
    --bg: #ffffff;
    --bg-alt: #f5f7fa;
    --bg-soft: #fafbfd;
    --accent: #0a2540;
    --accent-hover: #1e3a5f;
    --max-width: 1080px;
    --max-narrow: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* -------- Typography -------- */
h1, h2, h3 { font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
h1 { font-size: 44px; line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.025em; }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.02em; }
h3 { font-size: 18px; line-height: 1.35; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
a { color: var(--ink); }

@media (max-width: 700px) {
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
}

/* -------- Layout helpers -------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow { max-width: var(--max-narrow); }

.section { padding: 80px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); }

@media (max-width: 700px) {
    .section { padding: 56px 0; }
}

/* -------- Nav -------- */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
    z-index: 50;
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.brand-mark {
    width: 18px;
    height: 18px;
    background: var(--ink);
    border-radius: 4px;
    display: inline-block;
    position: relative;
}
.brand-mark::after {
    content: "";
    position: absolute;
    inset: 4px 4px auto auto;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 1px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}
.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.12s;
}
.nav-link:hover {
    color: var(--ink);
}
.nav-cta {
    text-decoration: none;
    color: #fff;
    background: var(--ink);
    font-size: 14px;
    font-weight: 600;
    padding: 9px 16px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
}
.nav-cta:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
@media (max-width: 520px) {
    .nav-right { gap: 12px; }
    .nav-link { display: none; }
}

/* -------- Hero -------- */
.hero {
    padding: 96px 0 64px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-alt) 100%);
}
.hero .container {
    max-width: 800px;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 18px;
}
.lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 16px;
    max-width: 680px;
}
.hero-ctas {
    margin: 32px 0 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-fineprint {
    font-size: 14px;
    color: var(--muted);
    margin-top: 12px;
}

@media (max-width: 700px) {
    .hero { padding: 64px 0 48px; }
    .lede { font-size: 16.5px; }
}

/* -------- Buttons -------- */
.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.05s;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-ghost:hover {
    background: var(--bg-alt);
    border-color: var(--ink-soft);
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 22px;
    font-size: 16px;
    margin-top: 8px;
}

/* -------- Stats strip -------- */
.stats {
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 56px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat {
    padding: 0 28px;
    border-left: 1px solid var(--line);
    text-align: left;
}
.stat:first-child {
    padding-left: 0;
    border-left: none;
}
.stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
    max-width: 220px;
}

@media (max-width: 900px) {
    .stats { padding: 40px 0; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }
    .stat {
        padding: 0 20px;
    }
    .stat:nth-child(odd) {
        padding-left: 0;
        border-left: none;
    }
    .stat:nth-child(even) {
        border-left: 1px solid var(--line);
    }
    .stat-num {
        font-size: 30px;
        margin-bottom: 8px;
    }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; gap: 24px 0; }
    .stat {
        padding: 0;
        border-left: none !important;
        border-top: 1px solid var(--line);
        padding-top: 24px;
    }
    .stat:first-child {
        border-top: none;
        padding-top: 0;
    }
    .stat-label { max-width: none; }
}

/* -------- Findings (problem section) -------- */
.finding-list {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}
.finding {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    padding: 22px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.finding-rule {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', ui-monospace, monospace;
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    padding-top: 2px;
}
.finding-body {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.6;
}

@media (max-width: 700px) {
    .finding {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .finding-rule { font-size: 12px; }
}

/* -------- Who we work with -------- */
.who-list {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
}
.who-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    color: var(--ink);
    font-size: 15.5px;
    line-height: 1.4;
    border-bottom: 1px solid var(--line);
}
.who-list li::before {
    content: "";
    flex-shrink: 0;
    width: 14px;
    height: 2px;
    background: var(--ink);
}
.who-list li:nth-last-child(-n+2) {
    border-bottom: none;
}

@media (max-width: 700px) {
    .who-list { grid-template-columns: 1fr; }
    .who-list li:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
    .who-list li:last-child { border-bottom: none; }
}

/* -------- Steps -------- */
.steps {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    counter-reset: step;
}
.steps > li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.steps > li:last-child { border-bottom: none; }
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
}
.step-body h3 {
    margin-top: 6px;
    margin-bottom: 6px;
}
.step-body p {
    font-size: 15.5px;
    line-height: 1.6;
    margin: 0;
}

/* -------- FAQ -------- */
.faq {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}
.faq:last-child { border-bottom: none; }
.faq h3 {
    font-size: 16.5px;
    margin: 0 0 6px;
    color: var(--ink);
}
.faq p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
}

/* -------- CTA / Form -------- */
.cta {
    background: linear-gradient(180deg, var(--bg-alt) 0%, #ffffff 100%);
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.cta h2 {
    text-align: center;
}
.cta-lede {
    text-align: center;
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 32px;
}

.assess-form {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04), 0 8px 24px rgba(10, 37, 64, 0.04);
}
.assess-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
.assess-form .field {
    margin-bottom: 18px;
}
.assess-form .row .field { margin-bottom: 0; }

.assess-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.assess-form .optional {
    color: var(--muted);
    font-weight: 400;
}
.assess-form input[type="text"],
.assess-form input[type="email"],
.assess-form select,
.assess-form textarea,
.assess-form input[type="file"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.12s, box-shadow 0.12s;
}
.assess-form input:focus,
.assess-form select:focus,
.assess-form textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}
.assess-form input[type="file"] {
    padding: 9px 12px;
    cursor: pointer;
}
.assess-form textarea {
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
}
.field-help {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.form-fineprint {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .assess-form { padding: 24px 20px; }
    .assess-form .row { grid-template-columns: 1fr; }
}

/* -------- Article (blog post) -------- */
.article {
    padding: 64px 0 32px;
}

.article-eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 18px;
}

.article-title {
    font-size: 38px;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.025em;
}

.article-meta {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.article-lede {
    font-size: 18.5px;
    line-height: 1.65;
    color: var(--ink);
    margin: 0 0 24px;
    font-weight: 400;
}

.article p {
    font-size: 16.5px;
    line-height: 1.72;
    color: var(--ink-soft);
    margin: 0 0 18px;
}

.article h2 {
    margin: 48px 0 18px;
    font-size: 26px;
    letter-spacing: -0.02em;
}

.article h3 {
    margin: 30px 0 8px;
    font-size: 17.5px;
    letter-spacing: -0.005em;
}

.article-list {
    margin: 12px 0 24px;
    padding: 0 0 0 22px;
    color: var(--ink-soft);
    font-size: 16.5px;
    line-height: 1.7;
}

.article-list li {
    margin-bottom: 10px;
}

.article-list li::marker {
    color: var(--muted);
}

/* Worked-example numbers block in article body */
.numbers {
    margin: 24px 0 28px;
    padding: 22px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.numbers-row {
    display: grid;
    grid-template-columns: 1fr auto 110px;
    gap: 16px;
    padding: 7px 0;
    align-items: baseline;
}

.numbers-row + .numbers-row {
    border-top: 1px solid var(--line);
}

.numbers-label {
    color: var(--ink);
    font-weight: 500;
}

.numbers-calc {
    color: var(--muted);
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', ui-monospace, monospace;
    font-size: 13.5px;
    text-align: right;
}

.numbers-result {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.numbers-row.numbers-total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 2px solid var(--ink);
}

.numbers-row.numbers-total .numbers-result {
    font-size: 17px;
}

@media (max-width: 700px) {
    .article-title { font-size: 28px; }
    .article-lede { font-size: 17px; }
    .article p { font-size: 16px; }
    .article h2 { font-size: 22px; margin-top: 36px; }
    .numbers { padding: 16px 16px; font-size: 14px; }
    .numbers-row {
        grid-template-columns: 1fr 90px;
    }
    .numbers-calc { display: none; }
}

.article-cta {
    margin: 48px 0 24px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* -------- Footer -------- */
.footer {
    padding: 36px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}
.footer p {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
}
.footer-fine {
    font-size: 12px;
    line-height: 1.55;
    max-width: 720px;
}
