/* VetsConnect marketing site stylesheet.
   Hand-written, no build step: served straight from public/ and loaded by
   resources/views/layouts/site.blade.php. Nothing here depends on lp-assets.
   Fonts (Spectral + Public Sans) are loaded by <link> in that layout's head. */

:root {
    /* Palette */
    --navy: #16264F;
    --navy-deep: #0E1A38;
    --gold: #D4A73C;
    --gold-ink: #7A5E0A;
    --paper: #FBF9F3;
    --card: #FFFFFF;
    --rule: #E0D9C7;
    --flag-red: #B3202E;
    --flag-cream: #F4F1E8;
    --flag-blue: #16307F;
    --hero-navy: #122047;
    --hero-sub: #C8D2E6;
    --stat-warm: #F2ECDC;
    --stat-label: #6B6450;
    --ink: #17191F;
    --ink-soft: #4C525E;
    --ink-faint: #6B7280;

    /* Type */
    --font-display: 'Spectral', Georgia, 'Times New Roman', Times, serif;
    --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Layout */
    --container: 1280px;
    --gutter: 60px;
    --radius: 14px;
    --radius-sm: 8px;
    --logo-slot-h: 118px;
    --shadow: 0 10px 30px rgba(14, 26, 56, .08);
    --shadow-lift: 0 18px 40px rgba(14, 26, 56, .14);
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, p,
figure, blockquote,
dl, dd, ul, ol { margin: 0; }

ul[class], ol[class] { list-style: none; padding: 0; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

input, button, textarea, select { font: inherit; color: inherit; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy-deep);
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p + p { margin-top: 1em; }

.lede {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 62ch;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: .6rem;
}

.muted { color: var(--ink-faint); }
.small { font-size: .875rem; }

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: 72px; }
.section--tight { padding-block: 44px; }
.section--paper { background: var(--paper); }
.section--card { background: var(--card); border-block: 1px solid var(--rule); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 12px 18px;
    z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---------- Header / nav ---------- */

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 76px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy-deep);
    text-decoration: none;
}
/* The logo is portrait (501x715), so height drives it and width follows. */
.brand img { width: auto; height: 42px; }
.brand:hover { color: var(--navy); }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.nav a {
    font-weight: 500;
    font-size: .97rem;
    color: var(--ink-soft);
    text-decoration: none;
    padding-block: 6px;
    border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
    color: var(--navy-deep);
    border-bottom-color: var(--gold);
}

/* Store buttons sit in the nav but must not pick up the nav link underline. */
.nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.nav__cta a { border-bottom: none; padding-block: 0; }
.nav__cta a:hover { border-bottom: none; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.btn-primary:hover {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-deep);
}
.btn-secondary:hover {
    background: #c2962f;
    border-color: #c2962f;
    color: var(--navy-deep);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline:hover {
    background: var(--navy);
    color: #fff;
}
.btn-outline--light {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
}
.btn-outline--light:hover {
    background: #fff;
    color: var(--navy-deep);
}

.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

/* ---------- Door cards ---------- */

.doors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}

.door {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--rule);
    border-top: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 34px 30px 30px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.door:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
    border-top-color: var(--navy);
    color: inherit;
}

.door__icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--gold-ink);
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.door__title { margin-bottom: 10px; }
.door__text { color: var(--ink-soft); flex-grow: 1; }

.door__cta {
    margin-top: 20px;
    font-weight: 600;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.door__cta::after { content: "→"; transition: transform .16s ease; }
a.door:hover .door__cta::after { transform: translateX(4px); }

/* ---------- Stat band ---------- */

.stat-band {
    background: var(--stat-warm);
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    padding-block: 40px;
}
.stat-band h2 { color: var(--navy-deep); }

.stat-band__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

/* Vertical rules between columns rather than a gap, so the band reads as one
   object. The first cell of each row drops its rule — see the breakpoints. */
.stat { padding-inline: 24px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }

.stat__figure {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    color: var(--navy);
    line-height: 1.1;
}

.stat__label {
    margin-top: 6px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--stat-label);
}

/* ---------- Generic card ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }
.card__title { margin-bottom: 10px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ---------- Forms ---------- */

.form { max-width: 620px; }

.field { margin-bottom: 22px; }

.field label,
.label {
    display: block;
    font-weight: 600;
    font-size: .93rem;
    color: var(--navy-deep);
    margin-bottom: 7px;
}

.field .hint {
    display: block;
    font-weight: 400;
    font-size: .85rem;
    color: var(--ink-faint);
    margin-bottom: 7px;
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: border-color .14s ease, box-shadow .14s ease;
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 38, 79, .14);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.field--checkbox input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.field--checkbox label { margin-bottom: 0; font-weight: 400; color: var(--ink-soft); }

.field--error input,
.field--error select,
.field--error textarea { border-color: #B3261E; }

.field-error {
    display: block;
    margin-top: 6px;
    font-size: .86rem;
    font-weight: 500;
    color: #B3261E;
}

.form-alert {
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rule);
    margin-bottom: 24px;
}
.form-alert--success {
    background: #F0F7F1;
    border-color: #BBD9BE;
    color: #1E4D2B;
}
.form-alert--error {
    background: #FDF2F1;
    border-color: #E8C0BC;
    color: #8C1D18;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .78);
    padding-block: 54px 32px;
    font-size: .94rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 40px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}
.site-footer__brand img { width: auto; height: 40px; }

.site-footer h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* The global reset only covers lists with a class; the footer link lists have
   none, so clear their markers and indent here rather than site-wide. */
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 9px; }

/* Icon row under the footer tagline. Same resting colour as the footer text
   and the same gold hover as the footer links; the ring keeps each icon a
   clear target without adding a fill colour the footer doesn't otherwise use. */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.site-footer .social-links li { margin-bottom: 0; }

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: rgba(255, 255, 255, .78);
    transition: color .15s ease, border-color .15s ease;
}
.site-footer .social-links a:hover,
.site-footer .social-links a:focus-visible {
    color: var(--gold);
    border-color: var(--gold);
    text-decoration: none;
}
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.site-footer__bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .86rem;
    color: rgba(255, 255, 255, .6);
}

/* ---------- Section heads & utilities ---------- */

.section-head {
    max-width: 72ch;
    margin-inline: auto;
    margin-bottom: 40px;
    text-align: center;
}
.section-head .lede { margin-inline: auto; }

.h3 { font-size: 1.3rem; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate; /* confines the z-index:-1 layers below to this hero */
    overflow: hidden;
    background: var(--hero-navy);
    color: #fff;
    padding-block: 84px 72px;
    text-align: left;
}

/* Three decorative layers. z-index:-1 paints them above the hero's own
   background but below every child element, so text can never fall behind
   them however the content grows. */
.hero__flag,
.hero__block,
.hero__scrim {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.hero__flag {
    inset: 0;
    opacity: .16;
    background: repeating-linear-gradient(-6deg,
        var(--flag-red) 0 34px,
        var(--flag-cream) 34px 68px);
}

.hero__block {
    top: -40px;
    left: -60px;
    width: 560px;
    height: 300px;
    background: var(--flag-blue);
    opacity: .22;
    transform: rotate(-6deg);
}

.hero__scrim {
    inset: 0;
    background: linear-gradient(90deg,
        rgba(10, 19, 44, .93) 0%,
        rgba(10, 19, 44, .80) 52%,
        rgba(10, 19, 44, .55) 100%);
}

.hero > .container { position: relative; z-index: 1; }

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 48px;
    align-items: center;
}

.hero__logo { width: auto; height: 260px; margin: 0; justify-self: center; }

.hero h1 {
    margin: 0;
    max-width: 15ch;
    color: #fff;
    font-size: clamp(2.3rem, 1.2rem + 3.8vw, 3.875rem); /* caps at 62px */
}
.hero h1 .accent { color: var(--gold); }

.hero .lede { margin: 20px 0 0; max-width: 54ch; color: var(--hero-sub); }
.hero p { color: var(--hero-sub); }
.hero .eyebrow { color: var(--gold); }
.hero .btn-outline--light { border-color: rgba(255, 255, 255, .35); }

/* Light components reused inside the dark hero. */
.hero .panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 4px solid var(--gold);
}
.hero .code-line {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}
.hero .placeholder {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .22);
    color: var(--hero-sub);
}
.hero .muted { color: rgba(255, 255, 255, .6); }

/* ---------- Badge pill ---------- */

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 16px;
    border: 1px solid rgba(212, 167, 60, .55);
    border-radius: 999px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}
.badge-pill svg { width: 14px; height: 14px; flex-shrink: 0; fill: currentColor; }

/* ---------- Doors: 2x2 grid and the navy feature card ---------- */

.doors--2up { grid-template-columns: repeat(2, 1fr); }

.door__eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: 10px;
}

.door__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.door--feature {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy);
    border-color: var(--navy);
    border-top-color: var(--gold);
    color: #fff;
}

/* Same flag texture as the hero, tighter bands and fainter. Sits below the
   card's content via z-index:-1 inside the card's own stacking context. */
.door__flag {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .10;
    background: repeating-linear-gradient(-6deg,
        var(--flag-red) 0 22px,
        var(--flag-cream) 22px 44px);
}

.door__body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.door--feature .door__title { color: #fff; }
.door--feature .door__eyebrow { color: var(--gold); }
.door--feature .door__text { color: rgba(255, 255, 255, .82); }

/* ---------- Split (text beside media) ---------- */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.list-two {
    columns: 2;
    column-gap: 32px;
    margin-top: 20px;
}
.list-two li {
    break-inside: avoid;
    position: relative;
    margin-bottom: 10px;
    padding-left: 26px;
    color: var(--ink-soft);
}
.list-two li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-ink);
    font-weight: 700;
}

.placeholder {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 24px;
    border: 2px dashed var(--rule);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink-faint);
    font-size: .9rem;
    text-align: center;
}

/* Tall phone screenshot in a column built for landscape art: height-capped so
   it cannot dominate the row, width follows from the 900x1798 attributes. */
.map-shot {
    display: block;
    height: 480px;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Partner logo grid ---------- */

.logo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.logo-slot {
    display: grid;
    place-items: center;
    min-height: var(--logo-slot-h);
    padding: 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink-faint);
    font-size: .85rem;
    text-align: center;
}

.logo-slot--cta {
    border: 2px solid var(--gold);
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: none;
}
.logo-slot--cta:hover { background: var(--paper); color: var(--navy-deep); }
.logo-slot--cta span {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    font-weight: 400;
    color: var(--ink-faint);
}

/* Real partner logos. Capped against the slot rather than their own size, so
   wide wordmarks and square marks all read at a consistent weight. The cap is
   calc() off the slot height, not a percentage: the slot uses min-height, and
   a percentage max-height against an auto height resolves to none. */
.logo-slot img {
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: calc(var(--logo-slot-h) * .6);
    object-fit: contain;
}

a.logo-slot { text-decoration: none; }
a.logo-slot:hover { border-color: var(--gold); }

.logo-caption { margin-top: 20px; text-align: center; }

/* ---------- Closing CTA band ---------- */

.cta-band {
    background: var(--navy-deep);
    color: #fff;
    padding-block: 66px;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
    max-width: 52ch;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .8);
}
.cta-band .btn-row { justify-content: center; }

/* ---------- Lead hero (text beside a panel) ---------- */

.hero--split {
    padding-block: 64px 56px;
    text-align: left;
}
.hero--split h1 { max-width: 20ch; }

.split--lead { grid-template-columns: 1.15fr .85fr; align-items: start; }

/* ---------- Navy side panel ---------- */

.panel {
    background: var(--navy);
    color: #fff;
    border-top: 5px solid var(--gold);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow);
}
.panel h2, .panel h3 { color: #fff; }
.panel .eyebrow { color: var(--gold); }
.panel ul li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 24px;
    color: rgba(255, 255, 255, .84);
}
.panel ul li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Numbered steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps--4up { grid-template-columns: repeat(4, 1fr); }

.step {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px 26px;
    box-shadow: var(--shadow);
}
.step__num {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy-deep);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 44px; }
.faq h3 { margin-bottom: 8px; }
.faq p { color: var(--ink-soft); }

/* ---------- County lists by state ---------- */

.state-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.state h4 {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
}
.state ul li { margin-bottom: 7px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Misc ---------- */

.req { color: var(--gold-ink); font-weight: 700; }

.placeholder--sm { min-height: 180px; margin: 16px 0; }

.code-line {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--navy-deep);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95rem;
    word-break: break-all;
}

/* ---------- Form states ---------- */

/* Bot trap. Off-screen rather than display:none — some scripted submitters
   skip hidden fields. The wrapper carries aria-hidden and the input
   tabindex="-1", so neither a screen reader nor the tab order reaches it. */
.honeypot {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

[aria-invalid="true"] { border-color: #B3261E; }

.field--error label { color: #8C1D18; }

/* The forms are jumped to by #fragment after a redirect; keep the heading and
   any flash message clear of the sticky header. */
.section[id], .hero[id] { scroll-margin-top: 96px; }

/* ---------- Responsive ---------- */

/* The stat band steps 4 -> 2x2 -> 1. Never 3+1, which is why this is an
   explicit column count rather than auto-fit. */
@media (max-width: 900px) {
    .stat-band__grid,
    .steps--4up,
    .state-grid { grid-template-columns: repeat(2, 1fr); }

    /* 2x2: the rule belongs between the pair, so every odd cell starts a row. */
    .stat { padding-inline: 14px; padding-block: 10px; }
    .stat:nth-child(odd) { border-left: 0; }
}

@media (max-width: 820px) {
    :root { --gutter: 24px; }

    body { font-size: 16px; }

    .site-header__inner {
        min-height: 0;
        padding-block: 16px;
        gap: 14px;
    }

    .nav { gap: 18px; width: 100%; }

    .section { padding-block: 52px; }

    .doors,
    .doors--2up,
    .split,
    .split--lead,
    .steps,
    .faq-grid,
    .card-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    /* Single column: the row stays left-aligned with the text above it, and
       the icons grow to a comfortable touch target. */
    .site-footer .social-links a { width: 44px; height: 44px; }

    .hero--split { padding-block: 44px 36px; }
    .hero--split h1 { max-width: none; }

    .hero__grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .hero__logo { order: -1; height: 190px; }  /* logo above the text on mobile */
    .hero h1,
    .hero .lede { max-width: none; margin-inline: auto; }
    .hero .btn-row { justify-content: center; }
    .hero__block { width: 360px; height: 220px; }

    /* The horizontal scrim fades to 55% on the right, which is fine beside a
       logo but leaves centred text sitting on bare stripes. Go vertical. */
    .hero__scrim {
        background: linear-gradient(180deg,
            rgba(10, 19, 44, .90) 0%,
            rgba(10, 19, 44, .75) 100%);
    }

    .stat-band__grid { gap: 26px; }

    .list-two { columns: 1; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__logo { height: 150px; }
    .hero { padding-block: 52px 44px; }
    .placeholder { min-height: 220px; }
    .map-shot { height: 400px; }

    .btn-row .btn { width: 100%; }
}

@media (max-width: 560px) {
    :root { --gutter: 18px; }

    .door { padding: 26px 22px; }
    .card { padding: 22px; }
    .section { padding-block: 42px; }
    .stat-band__grid,
    .state-grid { grid-template-columns: 1fr; }
    .stat { border-left: 0; padding-block: 12px; }
    .step { padding: 24px 22px; }
    .hero { padding-block: 52px 44px; }
}
