/* AUTOPAL — Ink & Brass site-wide skin (bone-first). Shared by all pages.
   Requires /css/tokens.css. Page-specific styles live in each page's own <style>. */

        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-ui);
            background:
                radial-gradient(120% 90% at 50% -10%, var(--surface-alt) 0%, var(--bone) 55%, var(--bone) 100%)
                var(--bone);
            color: var(--text-body);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        ::selection { background: var(--brass-bright); color: var(--on-brass); }

        img { max-width: 100%; display: block; }
        a { text-decoration: none; color: inherit; }

        a:focus-visible, button:focus-visible {
            outline: none;
            box-shadow: var(--focus-halo);
            border-radius: var(--radius-btn);
        }

        .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

        /* ---- Header ------------------------------------------------------ */
        .header {
            position: sticky; top: 0; z-index: 100;
            background: color-mix(in srgb, var(--bone) 88%, transparent);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--line);
        }
        .header-inner {
            max-width: 1180px; margin: 0 auto; padding: 0 24px;
            display: flex; align-items: center; gap: 32px;
            height: 72px;
        }
        .logo img { height: 34px; width: auto; }
        .nav-links { display: flex; gap: 6px; margin-left: 8px; flex: 1; }
        .nav-link {
            font-size: 14.5px; font-weight: 500; color: var(--text-mute);
            padding: 9px 14px; border-radius: var(--radius-chip);
            transition: color .25s ease, background .25s ease;
        }
        .nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--brass) 10%, transparent); }
        .nav-link.active { color: var(--brass-deep); font-weight: 600; }
        .header-cta {
            font-size: 14px; font-weight: 600;
            background: var(--brass); color: var(--on-brass);
            padding: 11px 20px; border-radius: var(--radius-chip);
            transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
            white-space: nowrap;
        }
        .header-cta:hover {
            background: var(--brass-bright);
            transform: translateY(-1px);
            box-shadow: 0 8px 22px color-mix(in srgb, var(--brass) 30%, transparent);
        }
        .mobile-menu-btn {
            display: none; background: none; border: 1px solid var(--line-strong);
            color: var(--text); font-size: 16px; cursor: pointer;
            width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-btn);
        }

        /* ---- Hero -------------------------------------------------------- */
        .hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
        .hero::before {
            content: ''; position: absolute; inset: 0; pointer-events: none;
            background: radial-gradient(58% 48% at 50% 0%, color-mix(in srgb, var(--brass) 7%, transparent) 0%, transparent 70%);
        }
        .hero .container { position: relative; }
        .hero-badge {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--font-mono); font-size: 12px; font-weight: 500;
            letter-spacing: .09em; text-transform: uppercase;
            color: var(--brass-deep);
            background: var(--surface);
            border: 1px solid var(--line);
            padding: 8px 16px; border-radius: var(--radius-chip);
            margin-bottom: 28px;
        }
        .hero-badge i { color: var(--brass); font-size: 11px; }
        .hero-title {
            font-family: var(--font-display); font-weight: 420; font-optical-sizing: auto;
            font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.02em;
            color: var(--text); margin-bottom: 22px;
        }
        .hero-title span { font-style: italic; font-weight: 480; color: var(--brass-deep); }
        .hero-subtitle {
            font-size: 18px; color: var(--text-mute); max-width: 560px;
            margin: 0 auto 36px; line-height: 1.65;
        }
        .hero-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

        .btn {
            display: inline-flex; align-items: center; gap: 9px;
            font-family: var(--font-ui); font-size: 15px; font-weight: 600;
            padding: 14px 26px; border-radius: var(--radius-chip);
            border: 1px solid transparent; cursor: pointer;
            transition: all .3s cubic-bezier(.22,.7,.25,1);
            min-height: var(--tap-min);
        }
        .btn-primary { background: var(--brass); color: var(--on-brass); }
        .btn-primary:hover {
            background: var(--brass-bright); transform: translateY(-2px);
            box-shadow: 0 10px 26px color-mix(in srgb, var(--brass) 32%, transparent);
        }
        .btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
        .btn-secondary:hover { border-color: var(--brass); color: var(--brass-deep); transform: translateY(-2px); }

        .hero-stats {
            display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
            padding-top: 40px; border-top: 1px solid var(--line);
            max-width: 640px; margin: 0 auto;
        }
        .stat-value {
            font-family: var(--font-mono); font-variant-numeric: tabular-nums;
            font-size: 30px; font-weight: 600; color: var(--brass-deep); line-height: 1.1;
        }
        .stat-label {
            font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
            text-transform: uppercase; color: var(--text-faint); margin-top: 6px;
        }

        /* ---- Sections (shared) -------------------------------------------- */
        section { padding: 76px 0; }
        .section-header { text-align: center; margin-bottom: 44px; }
        .section-label {
            font-family: var(--font-mono); font-size: 12px; font-weight: 500;
            letter-spacing: .12em; text-transform: uppercase;
            color: var(--brass-deep); margin-bottom: 10px;
        }
        .section-title {
            font-family: var(--font-display); font-weight: 450;
            font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.015em;
            color: var(--text);
        }

        /* ---- Brands -------------------------------------------------------- */
        .brands-section { padding-top: 40px; }
        .brands-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 14px;
        }
        .brand-card {
            background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--radius-card); padding: 22px 14px;
            text-align: center;
            transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
        }
        .brand-card:hover {
            border-color: var(--brass); transform: translateY(-3px);
            box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 8%, transparent);
        }
        .brand-card.stale { opacity: .55; }
        .brand-logo { height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
        .brand-logo img { max-height: 100%; max-width: 78px; object-fit: contain; }
        .brand-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
        .brand-count { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 3px; }

        /* ---- Deals --------------------------------------------------------- */
        .deals-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        .deal-card {
            background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--radius-card); overflow: hidden;
            transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
        }
        .deal-card:hover {
            border-color: var(--brass); transform: translateY(-3px);
            box-shadow: var(--shadow-card);
        }
        .deal-image {
            position: relative; height: 180px;
            background: radial-gradient(90% 90% at 50% 30%, var(--surface-alt) 0%, var(--surface-dim) 100%);
            display: flex; align-items: center; justify-content: center;
        }
        .deal-image img { max-height: 150px; object-fit: contain; }
        .deal-badge {
            position: absolute; top: 12px; left: 12px;
            font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
            letter-spacing: .07em; text-transform: uppercase;
            color: #fff; background: var(--green);
            padding: 5px 11px; border-radius: var(--radius-chip);
        }
        .deal-info { padding: 18px 20px 20px; }
        .deal-year {
            font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
            text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px;
        }
        .deal-title {
            font-family: var(--font-display); font-weight: 500; font-size: 21px;
            color: var(--text); margin-bottom: 10px;
        }
        .deal-price-row { display: flex; align-items: baseline; }
        .deal-price {
            font-family: var(--font-mono); font-variant-numeric: tabular-nums;
            font-size: 26px; font-weight: 600; color: var(--brass-deep);
        }
        .deal-price span { font-size: 13px; font-weight: 500; color: var(--text-mute); margin-left: 2px; }
        .view-all-row { text-align: center; margin-top: 36px; }

        .loading {
            grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
            gap: 14px; padding: 48px 0; color: var(--text-faint);
            font-family: var(--font-mono); font-size: 13px;
        }
        .spinner {
            width: 28px; height: 28px; border-radius: 50%;
            border: 3px solid var(--skeleton); border-top-color: var(--brass);
            animation: spin .9s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ---- How it works --------------------------------------------------- */
        .how-it-works { background: var(--surface-alt); border-block: 1px solid var(--line); }
        .steps-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
        }
        .step-card {
            background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--radius-card); padding: 28px 24px;
            transition: border-color .3s ease, transform .3s ease;
        }
        .step-card:hover { border-color: var(--brass); transform: translateY(-3px); }
        .step-icon {
            width: 46px; height: 46px; border-radius: 50%;
            background: color-mix(in srgb, var(--brass) 13%, transparent);
            color: var(--brass-deep); font-size: 17px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 18px;
        }
        .step-number {
            font-family: var(--font-mono); font-size: 11px; font-weight: 500;
            letter-spacing: .12em; text-transform: uppercase;
            color: var(--brass-deep); margin-bottom: 6px;
        }
        .step-title { font-family: var(--font-display); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
        .step-desc { font-size: 14px; color: var(--text-mute); line-height: 1.6; }

        /* ---- Benefits -------------------------------------------------------- */
        .benefits-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 18px;
        }
        .benefit-card {
            background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--radius-card); padding: 26px 24px;
            transition: border-color .3s ease, transform .3s ease;
        }
        .benefit-card:hover { border-color: var(--brass); transform: translateY(-3px); }
        .benefit-icon {
            width: 42px; height: 42px; border-radius: var(--radius-btn);
            background: color-mix(in srgb, var(--brass) 13%, transparent);
            color: var(--brass-deep); font-size: 16px;
            display: flex; align-items: center; justify-content: center;
            margin-bottom: 16px;
        }
        .benefit-title { font-size: 16.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
        .benefit-desc { font-size: 14px; color: var(--text-mute); line-height: 1.6; }

        /* ---- Testimonials ----------------------------------------------------- */
        .testimonials-section { background: var(--surface-alt); border-block: 1px solid var(--line); }
        .reviews-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 18px;
        }
        .review-card {
            background: var(--surface); border: 1px solid var(--line);
            border-radius: var(--radius-card); padding: 24px;
            display: flex; flex-direction: column;
        }
        .review-header { display: flex; gap: 13px; align-items: center; margin-bottom: 12px; }
        .review-avatar {
            width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
            background: var(--petrol); color: var(--bone);
            font-family: var(--font-mono); font-size: 13px; font-weight: 600;
            display: flex; align-items: center; justify-content: center;
        }
        .review-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
        .review-meta { font-size: 12px; color: var(--text-faint); }
        .review-google { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
        .review-google i { color: var(--brass-deep); margin-right: 4px; }
        .review-stars { color: var(--brass); font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
        .review-text { font-size: 14px; color: var(--text-mute); line-height: 1.65; font-style: italic; }
        .reviews-footer { text-align: center; margin-top: 34px; }
        .google-overall {
            display: inline-flex; align-items: center; gap: 10px;
            background: var(--surface); border: 1px solid var(--line);
            padding: 12px 22px; border-radius: var(--radius-chip);
            transition: border-color .3s ease;
        }
        .google-overall:hover { border-color: var(--brass); }
        .google-overall-score {
            font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--text);
        }
        .google-overall-stars { color: var(--brass); letter-spacing: 2px; }
        .google-overall-label { font-size: 13.5px; color: var(--text-mute); }

        /* ---- Closing CTA — deliberate dark moment (petrol) -------------------- */
        .cta-section {
            background: radial-gradient(130% 120% at 50% -20%, #16424F 0%, var(--petrol) 40%, var(--petrol-deep) 100%);
            text-align: center; padding: 88px 0;
        }
        .cta-title {
            font-family: var(--font-display); font-weight: 420;
            font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.015em;
            color: var(--on-dark); margin-bottom: 14px;
        }
        .cta-subtitle { font-size: 16.5px; color: color-mix(in srgb, var(--bone) 72%, transparent); margin-bottom: 34px; }
        .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
        .btn-white { background: var(--brass); color: var(--on-brass); }
        .btn-white:hover {
            background: var(--brass-bright); transform: translateY(-2px);
            box-shadow: 0 10px 28px rgba(0,0,0,.35);
        }
        .btn-outline-white {
            background: transparent; color: var(--bone);
            border-color: color-mix(in srgb, var(--bone) 38%, transparent);
        }
        .btn-outline-white:hover { border-color: var(--brass-bright); color: var(--brass-bright); transform: translateY(-2px); }

        /* ---- Footer — ink ground ---------------------------------------------- */
        .footer {
            background: var(--ink); color: var(--text-ghost);
            padding: 64px 0 36px; font-size: 14px;
        }
        .footer-grid {
            display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 36px; margin-bottom: 44px;
        }
        .footer-col h4 {
            font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
            letter-spacing: .12em; text-transform: uppercase;
            color: var(--brass-bright); margin-bottom: 16px;
        }
        .footer-col ul { list-style: none; }
        .footer-col li { margin-bottom: 9px; }
        .footer-col a { color: var(--text-ghost); transition: color .25s ease; }
        .footer-col a:hover { color: var(--bone); }
        .footer-col p { line-height: 1.8; }
        .footer-social { display: flex; gap: 10px; margin-top: 18px; }
        .footer-social a {
            width: 38px; height: 38px; border-radius: 50%;
            border: 1px solid #363B44; color: var(--text-ghost);
            display: flex; align-items: center; justify-content: center;
            transition: all .25s ease;
        }
        .footer-social a:hover { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
        .footer-trust {
            display: flex; gap: 12px; flex-wrap: wrap;
            padding: 22px 0; border-block: 1px solid #262A31;
            margin-bottom: 26px;
        }
        .trust-badge {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
            color: var(--text-ghost);
            border: 1px solid #363B44; border-radius: var(--radius-chip);
            padding: 7px 14px;
        }
        .trust-badge i { color: var(--brass); font-size: 11px; }
        .footer-bottom {
            display: flex; align-items: center; justify-content: space-between;
            gap: 20px; flex-wrap: wrap;
        }
        .footer-logo img { height: 30px; width: auto; }
        .footer-legal { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-size: 13px; }
        .footer-legal a { color: var(--text-ghost); transition: color .25s ease; }
        .footer-legal a:hover { color: var(--bone); }

        /* ---- Responsive --------------------------------------------------------- */
        @media (max-width: 768px) {
            .mobile-menu-btn { display: flex; align-items: center; justify-content: center; margin-left: auto; }
            .header-inner { gap: 14px; }
            .nav-links {
                display: none;
                position: absolute; top: 72px; left: 0; right: 0;
                background: var(--bone);
                border-bottom: 1px solid var(--line);
                flex-direction: column; padding: 12px 24px 18px; gap: 4px;
                box-shadow: 0 18px 30px color-mix(in srgb, var(--ink) 12%, transparent);
            }
            .nav-links.open { display: flex; }
            .nav-link { padding: 13px 14px; }
            .header-cta { display: none; }
            .hero { padding: 64px 0 52px; }
            .hero-stats { gap: 32px; }
            section { padding: 56px 0; }
            .footer-bottom { flex-direction: column; align-items: flex-start; }
        }

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