/* Aussie Car Check - shared styles
   Loaded once and cached across navigations. Page-specific styles
   live inline within {% block extra_styles %} in each template. */

:root {
    --acc-primary: #0A2540;
    --acc-primary-2: #113a63;
    --acc-blue: #0073e6;
    --acc-blue-2: #2563eb;
    --acc-green: #00d26a;
    --acc-green-dark: #00b85c;
    --acc-bg: #f4f7f6;
    --acc-text: #1f2937;
    /* --acc-muted previously #6b7280 (4.83:1 on white — passes AA
       for normal text but borderline for the small body-meta sizes
       we use at .85-.9rem). Bumped to #4b5563 (7.6:1) so all muted
       copy clears AA-large *and* AAA-normal without us having to
       audit per-element. */
    --acc-muted: #4b5563;
    --acc-border: #e5e7eb;
    --acc-soft: #f8fafc;

    /* Spacing scale — every page picks from the same ladder so vertical
       rhythm stays consistent across templates. */
    --acc-space-1: 0.25rem;
    --acc-space-2: 0.5rem;
    --acc-space-3: 1rem;
    --acc-space-4: 1.5rem;
    --acc-space-5: 2rem;
    --acc-space-6: 3rem;
    --acc-space-7: 4rem;
    --acc-section-y: clamp(2.5rem, 5vw, 4rem);  /* page-section vertical padding */
    --acc-content-max: 1140px;
}

* { box-sizing: border-box; }

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

body {
    background-color: var(--acc-bg);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--acc-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* `clip` is the modern overflow value that prevents scroll *without*
       creating a scrollable context (which `hidden` does, breaking
       position:sticky inside descendants). One stray oversized element no
       longer pushes the page sideways inside iOS Messenger / Instagram. */
    overflow-x: clip;
}

/* Same belt-and-braces on the html element — measured `scrollWidth` then
   matches `clientWidth`, so the page reports zero overflow to JS / a11y
   tools and prevents rubber-band horizontal scrolling on iOS. */
html {
    overflow-x: clip;
    /* Honour the iPhone notch / curved corners on full-bleed elements. */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* iOS Safari zooms inputs whose font-size < 16px on focus. We always opt
   out, since the zoom is jarring and looks broken inside in-app webviews. */
input, select, textarea { font-size: 16px; }

/* Long URLs / email addresses inside prose contexts must wrap; without
   this they overflow narrow viewports because `<a>` defaults to nowrap
   on long unbreakable strings. */
p a, .acc-card a, .contact-card a, td a { overflow-wrap: anywhere; }

/* Bootstrap's .container has a hard min-padding that can still leak below
   320px (iPhone Messenger viewport when the keyboard is up). Tighten it.
   Pair with a row override so Bootstrap's negative-margin gutters don't
   poke past the container's content box on narrow screens. */
@media (max-width: 575.98px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .row { margin-left: -8px; margin-right: -8px; --bs-gutter-x: 1rem; }
    .row > * { padding-left: 8px; padding-right: 8px; }
}

/* Consistent vertical rhythm across pages. Every <main> and <section> gets
   the same breathing room unless explicitly overridden. */
main { display: block; }
main > section + section { margin-top: var(--acc-space-6); }
.page-section { padding: var(--acc-section-y) 0; }
.page-section + .page-section { padding-top: 0; }

/* Smaller headings get tighter top-margin so they sit closer to their
   section eyebrow, which most templates use. */
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
.acc-section-eyebrow + h1,
.acc-section-eyebrow + h2,
.acc-section-eyebrow + h3 { margin-top: var(--acc-space-2); }

/* Image defaults: never let an image overflow its container, default to
   block so it never sits on the typographic baseline. */
img, svg:not(.acc-icon) { max-width: 100%; height: auto; display: block; }

/* Inline SVG icons (replaces FontAwesome). Sprite at /static/icons.svg —
   each icon referenced via <svg class="acc-icon"><use href="...#i-NAME"></svg>.
   `currentColor` lets icons inherit text colour from their parent.
   The 1em sizing matches FA's default visual weight. */
.acc-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    display: inline-block;
    flex-shrink: 0;
}

/* content-visibility: skip layout/paint for off-screen sections. Browsers
   that support it (Chromium 85+, Edge 85+, Opera 71+, Samsung Internet 14+)
   render the page faster, especially on long report pages. The
   contain-intrinsic-size hint reserves the right amount of space so the
   scroll bar isn't jumpy as sections unmount/mount. Safari currently no-ops. */
.cv-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
}

/* Anchor offset so in-page #section links don't hide content under sticky nav */
:target { scroll-margin-top: 80px; }

/* Smooth focus interactions */
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Accessibility: skip link + screen-reader only */
.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;
}
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    z-index: 10000;
    background: var(--acc-blue);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* Auth pages (login / signup / forgot) — single shared shell + card. The
   --wide modifier widens the card for the longer signup form. */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
    background: linear-gradient(135deg, #f4f7f6 0%, #eef2f6 100%);
}
.auth-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(10, 37, 64, .08);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}
.auth-card--wide { max-width: 460px; }
.auth-card h1 { color: var(--acc-primary); font-weight: 800; }

/* Universal focus ring for accessibility (WCAG AA) */
.btn:focus,
.form-control:focus,
.form-select:focus,
a:focus-visible {
    outline: 2px solid var(--acc-blue);
    outline-offset: 2px;
}

/* Shared navbar (used on subpages) */
.acc-navbar {
    background-color: #fff;
    border-bottom: 1px solid var(--acc-border);
    padding: 12px 0;
}
.acc-navbar .navbar-brand {
    color: var(--acc-primary);
    display: flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* Branded logo lockup — used by both the navbar and footer (see _nav.html
   and _footer.html). Inline custom SVG: navy verification shield + white
   car-front silhouette + green verified-check badge. Sprite-independent
   so it can never silently break the same way the old shield-check
   sprite reference did.
   Wordmark stacks "AUSSIE" (small, green, tracked caps) over "CAR CHECK"
   (large, navy, bold caps) so it reads as a polished brand lockup
   rather than a sentence-cased label. The text content stays sentence-
   case in markup ("Aussie Car Check") so screen readers and tests that
   assert that literal still work — uppercase comes from CSS. */
.acc-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: inherit;
    line-height: 1;
}
.acc-brand:hover { text-decoration: none; }
.acc-brand-logo {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Subtle lift on hover — the whole brand link gets it */
    transition: transform 0.18s ease;
    /* Faint navy halo to lift the shield off light backgrounds */
    filter: drop-shadow(0 1px 2px rgba(10, 37, 64, 0.15));
}
.acc-brand-logo svg { display: block; width: 100%; height: 100%; }
.acc-brand:hover .acc-brand-logo { transform: translateY(-1px); }
.acc-brand--footer .acc-brand-logo { width: 44px; height: 44px; }

/* Stacked wordmark — AUSSIE on top, CAR CHECK below. The vertical stack
   right of the icon mirrors classic auto brand lockups (Toyota, Subaru
   etc.) and reads more like a "mark" than the previous inline version. */
.acc-wordmark {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2px;
    line-height: 1;
    font-feature-settings: 'cv11', 'ss01';  /* Inter alts: matches report.html */
}
.acc-wordmark__lead {
    font-weight: 700;
    color: #00a85a;            /* green — pairs with the verified badge */
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* Slight bottom offset so the tracked caps optically sit on top of the main word */
    padding-left: 1px;
}
.acc-wordmark__main {
    font-weight: 800;
    color: var(--acc-primary); /* navy */
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.acc-wordmark--lg .acc-wordmark__lead { font-size: 0.78rem; letter-spacing: 0.24em; }
.acc-wordmark--lg .acc-wordmark__main { font-size: 1.25rem; letter-spacing: 0.07em; }
@media (max-width: 480px) {
    .acc-brand { gap: 9px; }
    .acc-brand-logo { width: 32px; height: 32px; }
    .acc-wordmark__lead { font-size: 0.62rem; letter-spacing: 0.18em; }
    .acc-wordmark__main { font-size: 0.95rem; letter-spacing: 0.05em; }
}
.acc-navbar__row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 24px;
    flex-wrap: wrap;
}
.acc-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    flex: 1 1 auto;
    justify-content: center;
}
.acc-nav-links a {
    color: var(--acc-text);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    padding: 6px 4px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.acc-nav-links a:hover,
.acc-nav-links a:focus {
    color: var(--acc-blue);
    border-bottom-color: var(--acc-blue);
}
.acc-navbar__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
@media (max-width: 991.98px) {
    .acc-nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        gap: 2px 14px;
        padding-top: 8px;
        border-top: 1px solid var(--acc-border);
        margin-top: 8px !important;
    }
    .acc-nav-links a { font-size: .85rem; }
    .acc-navbar__cta { margin-left: auto; }
}
.acc-brand-mark {
    background-color: var(--acc-blue);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Page header (used on about/contact/faq/terms) */
.page-header {
    background: linear-gradient(135deg, var(--acc-primary) 0%, var(--acc-primary-2) 100%);
    color: #fff;
    padding: 70px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,115,230,0.25), transparent 60%);
    pointer-events: none;
}
.page-header h1 {
    font-weight: 800;
    margin-bottom: .75rem;
    letter-spacing: -0.5px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    position: relative;
}
.page-header .breadcrumb-trail {
    position: relative;
    font-size: .85rem;
    opacity: .8;
    margin-bottom: 1rem;
}
.page-header .breadcrumb-trail a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,.4);
}
.page-header .breadcrumb-trail a:hover { border-bottom-color: #fff; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.acc-footer {
    background: #fff;
    border-top: 1px solid var(--acc-border);
    color: var(--acc-text);
    margin-top: 60px;
}
.acc-footer__heading {
    color: var(--acc-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.acc-footer a {
    color: var(--acc-muted);
    text-decoration: none;
    transition: color .2s, transform .2s;
    display: inline-block;
}
.acc-footer a:hover {
    color: var(--acc-blue);
    transform: translateX(2px);
}
.acc-footer .acc-brand-mark {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,115,230,0.3);
}

/* Trust strip across the top of the footer */
.acc-footer__trust {
    background: linear-gradient(135deg, #f4f7f6 0%, #eef2f6 100%);
    border-top: 1px solid var(--acc-border);
    border-bottom: 1px solid var(--acc-border);
    padding: 32px 0;
}
.trust-item i {
    color: var(--acc-blue);
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.trust-label {
    font-weight: 700;
    color: var(--acc-primary);
    font-size: .95rem;
}
.trust-sub {
    color: var(--acc-muted);
    font-size: .8rem;
}

.acc-footer__main { padding: 48px 0 24px; }

/* Footer contact list */
.acc-contact-list i {
    color: var(--acc-blue);
    width: 18px;
    margin-right: 6px;
}
.acc-contact-list a {
    color: var(--acc-text);
}
.acc-contact-list address { color: var(--acc-text); }

/* Newsletter form */
.acc-newsletter .input-group .btn {
    border-radius: 0 6px 6px 0;
    padding-left: 14px;
    padding-right: 14px;
}
.acc-newsletter .input-group .form-control { border-radius: 6px 0 0 6px; }

/* Inline badges (review + ssl) */
.acc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
}
.acc-badge--review { background: #fff7e6; color: #6b5500; border: 1px solid #fde6b8; }
.acc-badge--ssl    { background: #e8f7ee; color: #045e2c; border: 1px solid #b9ecc9; }
.acc-badge--ssl i  { color: var(--acc-green-dark); }

/* Social icons */
.acc-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f4f7f6;
    color: var(--acc-muted) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, transform .2s;
}
.acc-social a:hover {
    background: var(--acc-blue);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Bottom bar */
.acc-footer__bottom {
    border-top: 1px solid var(--acc-border);
    padding: 18px 0 24px;
    background: var(--acc-soft);
}
.acc-pay {
    font-size: 1.6rem;
    color: var(--acc-muted);
    line-height: 1;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: acc-spin 1s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Shared content components
   ========================================================================== */

.acc-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 4px 16px rgba(10, 37, 64, .06);
    border: 1px solid var(--acc-border);
}

.acc-section-eyebrow {
    color: var(--acc-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .75rem;
    margin-bottom: .5rem;
    display: inline-block;
}

.acc-stat {
    text-align: center;
    padding: 20px;
}
.acc-stat__value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--acc-primary);
    letter-spacing: -1px;
    line-height: 1;
}
.acc-stat__label {
    color: var(--acc-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Legal-doc layout (privacy / terms) */
.legal-doc h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--acc-primary);
    margin-top: 1.75rem;
    margin-bottom: .6rem;
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--acc-primary);
    margin-top: 1.2rem;
    margin-bottom: .4rem;
}
.legal-doc p, .legal-doc li { color: var(--acc-muted); line-height: 1.75; }
.legal-doc ul { padding-left: 1.25rem; }
.legal-doc ul li { margin-bottom: .35rem; }
.legal-doc a { color: var(--acc-blue); }

.legal-toc {
    background: var(--acc-soft);
    border: 1px solid var(--acc-border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}
.legal-toc ol { margin: 0; padding-left: 1.25rem; }
.legal-toc li { margin-bottom: .25rem; }
.legal-toc a { color: var(--acc-blue); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Form helpers used by contact / newsletter */
.acc-input-group label {
    font-weight: 600;
    color: var(--acc-primary);
    margin-bottom: .35rem;
}
.acc-input-group .form-control,
.acc-input-group .form-select {
    border-radius: 8px;
    border: 1px solid var(--acc-border);
    padding: 12px 14px;
}

.acc-flash {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.acc-flash--success { background: #e8f7ee; border-color: #b9ecc9; color: #045e2c; }
.acc-flash--error   { background: #fdecec; border-color: #f5b5b5; color: #7a1f1f; }


/* ==========================================================================
   Home page (.home-page) — typography-led, tight spacing, no decorative icons.

   Design rules:
   - No icon blocks. Use bullets, numerals, and weight contrast instead.
   - Section padding capped at ~64 px so the page feels dense and purposeful.
   - Cards use inset borders + subtle shadows; no oversize hero shadows.
   - Mobile-first; everything collapses to single column under 768 px and
     stays clean inside iPhone Messenger / Instagram in-app webviews.
   ========================================================================== */

.section-head { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.section-title {
    color: var(--acc-primary);
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.15;
    font-size: clamp(1.65rem, 3.4vw, 2.25rem);
    margin: 0 0 .35em;
    text-wrap: balance;
}
.section-sub {
    color: var(--acc-muted);
    max-width: 56ch;
    margin: 0 auto;
    font-size: clamp(.98rem, 1.6vw, 1.05rem);
    line-height: 1.6;
}


/* -------- Hero ---------------------------------------------------------- */
.hero {
    position: relative;
    background: #fff;
    color: var(--acc-text);
    padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5.5vw, 72px);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid var(--acc-border);
}
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(800px 420px at 50% -20%, rgba(0,115,230,.10), transparent 60%),
        linear-gradient(180deg, #fafbff 0%, #ffffff 60%);
}
.hero__inner {
    position: relative;
    text-align: center;
    max-width: 880px;
}
.hero__title {
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    font-size: clamp(2rem, 6vw, 3.6rem);
    margin: 0 0 14px;
    color: var(--acc-primary);
    text-wrap: balance;
}
.hero__title-accent {
    background: linear-gradient(135deg, var(--acc-blue) 0%, #0aa5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero__subtitle {
    color: var(--acc-muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    max-width: 56ch;
    margin: 0 auto 24px;
    line-height: 1.55;
}
.hero__subtitle strong { color: var(--acc-primary); }
.hero__meta {
    margin: 16px 0 0;
    color: var(--acc-muted);
    font-size: .88rem;
}
.hero__meta strong { color: var(--acc-primary); }
.hero__meta a { color: var(--acc-blue); font-weight: 700; text-decoration: none; }
.hero__meta a:hover { text-decoration: underline; }
.hero__stars { color: #fbbc05; letter-spacing: 1px; margin-right: 4px; }

/* Trust-credential strip — four authority/security badges directly
   above the rego form. Lives in the hero, uses a muted-cool palette
   so it reads as 'context' not 'CTA' and doesn't fight the search
   form for attention. Wraps to two rows on mobile via flex-wrap;
   each badge is an inline-flex so icons sit on the text baseline. */
.hero__trust {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    max-width: 720px;
}
.hero__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(10, 37, 64, .045);
    border: 1px solid rgba(10, 37, 64, .08);
    border-radius: 999px;
    color: var(--acc-primary);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.hero__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--acc-blue);
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .hero__trust-badge { font-size: .78rem; padding: 5px 10px; }
}


/* -------- Searchbar ----------------------------------------------------- */
.searchbar {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    box-shadow:
        0 1px 0 rgba(10,37,64,.04),
        0 16px 40px -12px rgba(10,37,64,.16),
        0 0 0 1px var(--acc-border);
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    transition: box-shadow .2s;
}
.searchbar:focus-within {
    box-shadow:
        0 1px 0 rgba(10,37,64,.04),
        0 20px 44px -12px rgba(0,115,230,.22),
        0 0 0 2px rgba(0,115,230,.4);
}
.searchbar__row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) {
    .searchbar__row { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr) auto; }
}
.searchbar__field {
    background: #f4f7fb;
    border-radius: 10px;
    padding: 8px 14px 10px;
    transition: background-color .15s;
    min-width: 0;
}
.searchbar__field:focus-within { background: #eaf2fb; }
.searchbar__label {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    color: var(--acc-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}
.searchbar__input,
.searchbar__select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--acc-primary);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    outline: none;
}
.searchbar__input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.3rem;
    font-weight: 900;
}
.searchbar__input::placeholder { color: #a3b1c2; letter-spacing: 2px; font-weight: 800; }
.searchbar__btn {
    background: var(--acc-green);
    color: #061b32;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    padding: 0 22px;
    min-height: 52px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s, box-shadow .15s, background-color .15s, color .15s;
    width: 100%;
    letter-spacing: -.1px;
}
@media (min-width: 600px) { .searchbar__btn { width: auto; padding: 0 26px; } }
.searchbar__btn:hover,
.searchbar__btn:focus-visible {
    background: var(--acc-green-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -6px rgba(0,210,106,.4);
    outline: none;
}
.searchbar__btn:disabled { opacity: .65; cursor: progress; transform: none; }

/* Inline form-error region. Replaces the old alert() popup so the
   error is announced by screen readers (aria-live=polite) without
   stealing focus, stays visible while the user corrects the input,
   and degrades gracefully — when JS is off, the field-level
   :invalid pattern/required validation still triggers. */
.searchbar__error {
    margin: 10px 0 0;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 71, 71, 0.12);
    border: 1px solid rgba(255, 71, 71, 0.55);
    color: #ffd7d7;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}
.searchbar__error[hidden] { display: none; }
.searchbar__input[aria-invalid="true"],
.searchbar__select[aria-invalid="true"] {
    box-shadow: 0 0 0 2px rgba(255, 71, 71, 0.6);
    border-color: rgba(255, 71, 71, 0.8);
}


/* -------- Section scaffolding ------------------------------------------ */
.page-section { padding: clamp(40px, 5vw, 64px) 0; }
.page-section--soft {
    background: #fafbff;
    border-block: 1px solid var(--acc-border);
}


/* -------- Stats strip --------------------------------------------------- */
.stats {
    background: linear-gradient(135deg, var(--acc-primary) 0%, var(--acc-primary-2) 100%);
    color: #fff;
    padding: clamp(24px, 3vw, 36px) 0;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: center;
}
@media (min-width: 768px) {
    .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stats__num {
    display: block;
    font-weight: 800;
    color: #fff;
    font-size: clamp(1.4rem, 3.2vw, 1.85rem);
    letter-spacing: -.5px;
    line-height: 1;
}
.stats__label {
    display: block;
    color: rgba(255,255,255,.75);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-top: 6px;
    font-weight: 600;
}


/* -------- "What we check" — typographic two-column list ---------------- */
.checks-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 28px;
}
@media (min-width: 700px) {
    .checks-list { grid-template-columns: 1fr 1fr; }
}
.checks-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border-top: 1px solid var(--acc-border);
    padding: 14px 0;
}
.checks-list__title {
    color: var(--acc-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.2px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.checks-list__bullet {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--acc-blue);
    display: inline-block;
    flex-shrink: 0;
}
.checks-list__bullet--danger { background: #dc2626; }
.checks-list__desc {
    color: var(--acc-muted);
    font-size: .9rem;
    line-height: 1.55;
    padding-left: 17px;  /* aligns with the title text after the bullet */
}


/* -------- Pricing ------------------------------------------------------- */
.price-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    max-width: 880px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .price-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 16px;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px -6px rgba(10,37,64,.08);
    transition: transform .15s, box-shadow .15s;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(10,37,64,.16); }
.price-card--featured {
    border: 2px solid var(--acc-blue);
    box-shadow: 0 14px 32px -14px rgba(0,115,230,.30);
}
.price-card__ribbon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--acc-blue), #0aa5ff);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.price-card__head { text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--acc-border); margin-bottom: 16px; }
.price-card__name { color: var(--acc-primary); font-weight: 800; font-size: 1.05rem; margin: 0; letter-spacing: -.2px; text-transform: uppercase; letter-spacing: 1.5px; }
.price-card__amount {
    color: var(--acc-primary);
    font-weight: 800;
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    letter-spacing: -1.5px;
    margin: 8px 0 4px;
    line-height: 1;
}
.price-card__currency, .price-card__cents {
    font-size: .42em;
    vertical-align: top;
    font-weight: 800;
    color: var(--acc-primary);
    letter-spacing: 0;
    margin: 0 2px;
}
.price-card__cents { vertical-align: 0.3em; }
.price-card__sub { color: var(--acc-muted); font-size: .88rem; margin: 0; line-height: 1.5; }
.price-card__feat {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}
.price-card__feat li {
    color: var(--acc-text);
    font-size: .94rem;
    padding-left: 22px;
    position: relative;
    line-height: 1.45;
}
.price-card__feat li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--acc-green-dark);
    border-bottom: 2px solid var(--acc-green-dark);
    transform: rotate(-45deg);
}
.price-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    min-height: 48px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid var(--acc-primary);
    color: var(--acc-primary);
    background: #fff;
    transition: background-color .15s, color .15s, transform .12s;
    letter-spacing: -.1px;
}
.price-card__cta:hover, .price-card__cta:focus-visible {
    background: var(--acc-primary);
    color: #fff;
    transform: translateY(-1px);
    outline: none;
}
.price-card__cta--primary {
    background: var(--acc-green);
    border-color: var(--acc-green);
    color: #061b32;
}
.price-card__cta--primary:hover, .price-card__cta--primary:focus-visible {
    background: var(--acc-green-dark);
    border-color: var(--acc-green-dark);
    color: #fff;
}
.price-foot { text-align: center; color: var(--acc-muted); font-size: .82rem; margin-top: 18px; }


/* -------- Sample preview row ------------------------------------------- */
.sample-row {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.sample-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--acc-text);
    transition: transform .12s, border-color .15s, box-shadow .15s;
    flex-wrap: wrap;
}
.sample-link:hover, .sample-link:focus-visible {
    border-color: rgba(0,115,230,.45);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(10,37,64,.16);
    outline: none;
}
.sample-link__title {
    color: var(--acc-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.2px;
    flex: 1 1 auto;
    min-width: 0;
}
.sample-link__desc {
    flex: 1 1 100%;
    color: rgba(255,255,255,.85);
    font-size: .88rem;
    line-height: 1.5;
}
.sample-link__arrow {
    color: var(--acc-blue);
    font-weight: 800;
    font-size: 1.2rem;
    margin-left: auto;
    flex-shrink: 0;
}
.sample-link--primary {
    background: linear-gradient(135deg, var(--acc-primary), var(--acc-primary-2));
    border-color: transparent;
    color: #fff;
    padding: 22px 24px;
}
.sample-link--primary .sample-link__title { color: #fff; font-size: 1.1rem; }
.sample-link--primary .sample-link__arrow { color: #fff; }


/* -------- Reviews ------------------------------------------------------- */
.review-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    padding: 22px;
    margin: 0;
    box-shadow: 0 4px 12px -6px rgba(10,37,64,.10);
    display: flex;
    flex-direction: column;
}
.review__stars { color: #fbbc05; font-size: .95rem; letter-spacing: 2px; margin-bottom: 10px; }
.review__quote {
    color: var(--acc-text);
    font-size: .96rem;
    line-height: 1.55;
    margin: 0 0 12px;
    font-style: normal;
    flex: 1 1 auto;
    text-wrap: pretty;
}
.review__meta { color: var(--acc-muted); font-size: .82rem; }
.review__meta strong { color: var(--acc-primary); }


/* -------- Final CTA ----------------------------------------------------- */
.final-cta {
    background:
        radial-gradient(800px 400px at 50% -30%, rgba(0,115,230,.4), transparent 60%),
        linear-gradient(160deg, var(--acc-primary) 0%, var(--acc-primary-2) 60%, #08182a 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 72px) 0;
    text-align: center;
}
.final-cta__inner { max-width: 720px; }
.final-cta__title {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.7px;
    font-size: clamp(1.6rem, 3.6vw, 2.25rem);
    line-height: 1.15;
    margin: 0 0 12px;
    text-wrap: balance;
}
.final-cta__sub {
    color: rgba(255,255,255,.85);
    font-size: clamp(.98rem, 1.6vw, 1.05rem);
    max-width: 56ch;
    margin: 0 auto 22px;
    line-height: 1.55;
}
.final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--acc-green);
    color: #061b32;
    font-weight: 800;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 999px;
    font-size: 1rem;
    transition: transform .12s, box-shadow .15s, background-color .15s, color .15s;
    min-height: 50px;
    letter-spacing: -.1px;
    box-shadow: 0 14px 28px -10px rgba(0,210,106,.45);
}
.final-cta__btn:hover,
.final-cta__btn:focus-visible {
    background: var(--acc-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -10px rgba(0,210,106,.55);
    outline: none;
}
.final-cta__foot { color: rgba(255,255,255,.7); font-size: .82rem; margin: 14px 0 0; }

/* ===========================================================
   Sticky mobile CTA — appears after user scrolls past the hero
   search form. Hidden on desktop because the hero stays in view
   at common breakpoints; on mobile the hero scrolls off fast and
   ad-traffic users would otherwise have to scroll back up to find
   the primary CTA. Toggled via IntersectionObserver in app.js by
   adding the `.sticky-mobile-cta--visible` class when the hero
   search form leaves the viewport.
   =========================================================== */
.sticky-mobile-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1000;
    display: none; /* JS-shown */
    text-align: center;
    text-decoration: none;
    padding: 16px 22px;
    background: var(--acc-green);
    color: #061b32;
    font-weight: 800;
    font-size: 1.05rem;
    border-radius: 12px;
    box-shadow: 0 12px 28px -6px rgba(6, 27, 50, .35),
                0 4px 10px -2px rgba(6, 27, 50, .25);
    /* Slide-in from below + fade so the appearance feels intentional,
       not jarring. Without the transition the bar pops in abruptly
       on the scroll boundary which reads as a layout bug. */
    transform: translateY(120%);
    opacity: 0;
    transition: transform .25s ease-out, opacity .2s ease-out;
}
.sticky-mobile-cta:hover,
.sticky-mobile-cta:focus-visible {
    background: var(--acc-green);
    color: #061b32;
    box-shadow: 0 14px 32px -6px rgba(6, 27, 50, .45);
    outline: 3px solid rgba(255, 255, 255, .6);
    outline-offset: 2px;
}
.sticky-mobile-cta--visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}
/* Desktop: never show — primary CTA is the hero search form which
   stays in the layout's top half. */
@media (min-width: 768px) {
    .sticky-mobile-cta,
    .sticky-mobile-cta--visible { display: none; }
}
/* Honour user motion preferences — disable the slide animation but
   keep the appearance so the CTA still works. */
@media (prefers-reduced-motion: reduce) {
    .sticky-mobile-cta { transition: none; }
}

/* Global reduced-motion guard. Anyone who sets 'reduce motion' at the
   OS level (Settings → Accessibility on every major OS) is telling us
   their inner ear can't handle ambient transitions. Honouring this is
   table stakes accessibility — vestibular disorders affect ~35% of
   adults at some point and animation can trigger nausea / dizziness
   in seconds. The !important on transition/animation overrides ALL
   per-element transitions; we keep transform-origin and box-shadow
   changes (they're instant) so hover states still communicate. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* Home-page mini-FAQ — three-objection accordion sitting between
   reviews and final CTA. Uses native <details>/<summary> so there
   is no JS dependency and screen readers get the expected
   'collapsed/expanded' state for free. */
.home-faq__item {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.home-faq__item[open] {
    border-color: rgba(0, 115, 230, 0.35);
    box-shadow: 0 6px 16px rgba(10, 37, 64, 0.06);
}
.home-faq__q {
    cursor: pointer;
    font-weight: 700;
    color: var(--acc-primary);
    list-style: none;
    position: relative;
    padding-right: 28px;
}
.home-faq__q::-webkit-details-marker { display: none; }
.home-faq__q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--acc-blue);
    font-weight: 600;
    transition: transform 0.15s;
}
.home-faq__item[open] .home-faq__q::after { content: '\2212'; }
.home-faq__a {
    color: var(--acc-muted);
    line-height: 1.7;
    padding-top: 10px;
}
.home-faq__a p:last-child { margin-bottom: 0; }
.home-faq__a a { color: var(--acc-blue); text-decoration: none; font-weight: 600; }
.home-faq__a a:hover { text-decoration: underline; }

/* Newsletter signup toast — rendered by app.js when the user
   lands at /?newsletter=ok|invalid after a footer signup. Small
   inline strip near the form, dismissed implicitly by the URL
   rewrite. */
.newsletter-toast {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .88rem;
    line-height: 1.4;
    animation: newsletter-toast-fade .4s ease-out;
}
.newsletter-toast--ok {
    background: rgba(0, 210, 106, .15);
    color: #045e2c;
    border: 1px solid rgba(0, 210, 106, .35);
}
.newsletter-toast--invalid {
    background: rgba(245, 158, 11, .15);
    color: #7a4a05;
    border: 1px solid rgba(245, 158, 11, .35);
}
@keyframes newsletter-toast-fade {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scanned-VIN confirmation strip — sits above the hero search form
   when the user lands at /?vin=... from the VIN scanner. Subtle
   green tint so it reads as 'success / context' not 'attention'. */
.acc-scanned-vin {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 auto 16px;
    max-width: 720px;
    padding: 10px 16px;
    background: rgba(0, 210, 106, 0.10);
    border: 1px solid rgba(0, 210, 106, 0.30);
    border-radius: 10px;
    color: var(--acc-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}
.acc-scanned-vin .acc-icon {
    color: var(--acc-green-dark);
    flex-shrink: 0;
}
.acc-scanned-vin code {
    background: rgba(0, 0, 0, 0.05);
    color: var(--acc-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}
.acc-scanned-vin__note {
    flex-basis: 100%;
    margin-left: 26px;
}
@media (min-width: 600px) {
    .acc-scanned-vin__note { flex-basis: auto; margin-left: 0; }
}
