body {
    --site-header-height: 66px;
    --home-header-space: 52px;
    --home-logo-drop: 41px;
    --header-logo-scale: .78;
}

body > .site-header {
    position: sticky;
    top: 0;
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: inset 0 -1px var(--brand-line);
    background: #fff;
}

body.quote-page > .site-header { position: relative; min-height: 0; }
.site-header[data-home-header="true"] {
    transition: background-color .24s ease, box-shadow .24s ease;
}
body > .site-header[data-home-header="true"]:not(.is-compact) {
    background: var(--brand-purple-wash);
    box-shadow: inset 0 -1px transparent;
}
.site-header-space {
    height: var(--home-header-space);
    background: var(--brand-purple-wash);
}

body > .site-header .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: min(1440px, calc(100% - 2 * clamp(16px, 3vw, 40px)));
    height: var(--site-header-height);
    min-height: 0;
    gap: 14px;
}

.site-header .brand {
    grid-area: 1 / 2;
    justify-self: center;
    margin: 0;
    white-space: nowrap;
    transform: translateY(0) scale(var(--header-logo-scale));
}
.site-header[data-home-header="true"] .brand {
    transition: transform .34s cubic-bezier(.22, 1, .36, 1);
}
.site-header[data-home-header="true"]:not(.is-compact) .brand {
    transform: translateY(var(--home-logo-drop)) scale(1);
}

.site-header .brand .brand-symbol { width: 53px; height: 43px; }
.site-header .brand .brand-wordmark { font-size: 27px; }
.site-header .brand-wordmark > span { color: var(--current-logo-accent); }

body > .site-header .site-header-inner > .header-nav {
    grid-area: 1 / 1;
    justify-self: start;
    margin: 0;
    gap: 3px;
}

.site-header .header-nav > a,
.site-header .insurance-menu summary {
    padding-inline: 10px;
    font-weight: 600;
}
@media (min-width: 961px) and (max-width: 1050px) {
    .site-header .header-nav > a,
    .site-header .insurance-menu summary { padding-inline: 6px; }
}

.site-header .header-nav a:hover,
.site-header .header-nav a[aria-current="page"],
.site-header .insurance-menu summary:hover,
.site-header .insurance-menu[open] summary {
    background: var(--brand-purple-wash);
    color: var(--brand-purple-strong);
}

.site-header .header-nav a[aria-current="page"]::after { display: none; }
.site-header .insurance-menu ul { inset-inline: 0 auto; }
.site-header .header-menu-help { display: none; }
.site-header .header-nav > a:is(:hover, :focus-visible),
.site-header .insurance-menu summary:is(:hover, :focus-visible) {
    text-decoration: underline 2px var(--brand-red);
    text-underline-offset: 5px;
}

.header-actions {
    grid-area: 1 / 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header .header-actions .header-help {
    min-height: 42px;
    margin: 0;
    border: 0;
    background: transparent;
}

.site-header .header-help:hover { color: var(--brand-purple-strong); }

.site-header .header-quote-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--brand-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.site-header .header-quote-link:hover { background: var(--brand-purple-hover); color: #fff; }

.site-footer .footer-inner { gap: clamp(20px, 3vw, 40px); }
.site-footer .footer-description { margin: 14px 0 0; }

.site-footer .footer-brand .brand-wordmark,
.site-footer .footer-brand .brand-wordmark > span,
.site-footer .footer-brand .brand-wordmark small,
.site-footer .footer-description,
.site-footer .footer-column :is(a, p, h3),
.site-footer .footer-bottom { color: #fff; }

.site-footer .footer-column h3 {
    margin-bottom: 7px;
    padding-bottom: 7px;
    background: linear-gradient(var(--brand-red), var(--brand-red)) left bottom / 24px 2px no-repeat;
    font-size: 15px;
    line-height: 1.4;
}

.site-footer .footer-help {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid #ffffff60;
    border-radius: 10px;
    color: #fff;
    text-align: left;
}

.site-footer .footer-help:hover { background: #ffffff16; }
.site-footer .footer-bottom { border-top-color: #ffffff36; }
.site-footer .footer-legal { flex-wrap: wrap; }
.site-footer a:is(:hover, :focus-visible) { text-decoration: underline 2px var(--brand-red); text-underline-offset: 4px; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer :focus-visible { outline-color: #fff; }

:is(.content-page, .blog-sticky-cta) :is(.primary-button, .secondary-button) {
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    max-width: 100%;
    padding: 11px 18px;
    border-width: 1px;
    border-radius: 12px;
    font-size: 14px;
}

:is(.content-page, .blog-sticky-cta) .primary-button:not(:disabled) {
    border-color: var(--brand-purple);
    background: var(--brand-purple);
    color: #fff;
}

:is(.content-page, .blog-sticky-cta) .primary-button:not(:disabled):hover {
    border-color: var(--brand-purple-hover);
    background: var(--brand-purple-hover);
}

.content-page .secondary-button,
.legacy-page .legacy-faq-jump,
.blog-index .blog-pagination [aria-current="page"],
.blog-index .content-card > a:last-child {
    border: 1px solid var(--brand-purple-border);
    background: var(--brand-purple-wash);
    color: var(--brand-purple-strong);
}

.legacy-page .legacy-faq-jump { padding: 10px 14px; border-radius: 10px; }
.blog-index .content-card > a:last-child {
    align-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 13px;
    border-radius: 10px;
    font-weight: 700;
}

.content-page .secondary-button:hover, .legacy-page .legacy-faq-jump:hover { background: var(--brand-purple-border); }
:is(.blog-article-layout, .blog-sticky-cta) .blog-cta { --article-accent: var(--brand-purple-strong); }
.blog-index :is(.blog-pagination a, .content-card > a:last-child):hover { background: var(--brand-purple-border); color: var(--brand-purple-strong); }

@media (max-width: 900px) {
    .site-footer .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer .footer-main { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    body {
        --site-header-height: 60px;
        --home-header-space: 44px;
        --home-logo-drop: 35px;
        --header-logo-scale: .83;
    }
    body > .site-header .site-header-inner { gap: 5px; }

    .site-header .brand { gap: 5px; }
    .site-header .brand .brand-symbol { width: 38px; height: 32px; }
    .site-header .brand .brand-wordmark { font-size: clamp(17px, 5vw, 22px); }

    .site-header .header-menu-toggle {
        grid-area: 1 / 1;
        justify-self: start;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: transparent;
    }

    .site-header .header-menu-toggle:hover,
    .site-header .header-menu-toggle[aria-expanded="true"] { background: var(--brand-purple-wash); }
    .site-header .header-actions .header-help { display: none; }
    .site-header .header-quote-link { min-height: 44px; gap: 5px; padding-inline: 10px; font-size: 12px; }

    body > .site-header .site-header-inner > .header-nav {
        inset: calc(100% + 5px) 12px auto;
        justify-self: stretch;
        max-height: calc(100dvh - var(--site-header-height) - 18px);
        padding: 8px;
        overflow: auto;
        overscroll-behavior: contain;
        border: 1px solid var(--brand-line);
    }

    body > .site-header[data-home-header="true"]:not(.is-compact) .header-nav {
        inset-block-start: calc(100% + var(--home-header-space) + 5px);
        max-height: calc(100dvh - var(--site-header-height) - var(--home-header-space) - 18px);
    }

    .site-header .header-menu-help {
        display: block;
        min-height: 44px;
        padding: 10px;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: var(--brand-ink-soft);
        font-size: 14px;
        font-weight: 600;
        text-align: start;
    }

    .site-header .header-menu-help:hover { background: var(--brand-purple-wash); color: var(--brand-purple-strong); }
    html:has(body.menu-open) { overflow: hidden; }
    body.menu-open::after { inset-block-start: var(--site-header-height); backdrop-filter: none; }
}

@media (max-width: 420px) { .site-header .header-quote-link span { display: none; } }

.site-footer .footer-brand .brand-symbol { filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
    .site-header[data-home-header="true"],
    .site-header[data-home-header="true"] .brand { transition: none; }
}

.site-footer { background: var(--brand-purple-hover); }
:root { --button-radius: 999px; }
body :is(.primary-button, .secondary-button, .qr-primary, .pay-submit, .campaign-cta, .cookie-primary, .shared-quote-home) {
    border-radius: var(--button-radius);
}
body :is(.content-page, .blog-sticky-cta) :is(.primary-button, .secondary-button) {
    border-radius: var(--button-radius);
}
.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 5vw, 64px);
    padding: clamp(24px, 5vw, 56px);
    margin-bottom: 36px;
    border-radius: 24px;
    background: var(--brand-purple-mist);
}
.about-intro .content-heading { margin-top: 0; }
.about-intro .primary-button { margin-top: 8px; }
.about-cover, .about-art { width: 100%; border-radius: 16px; }
.about-cover { max-height: 360px; object-fit: cover; }
.about-art {
    display: grid;
    min-height: 200px;
    place-items: center;
    background: radial-gradient(circle, white 0 33%, transparent 34% 38%, white 39% 40%, transparent 41%), var(--brand-purple-wash);
}
.about-page .content-body { max-width: 76ch; margin-inline: auto; }
@media (max-width: 700px) {
    .about-intro { grid-template-columns: minmax(0, 1fr); }
    .about-art { min-height: 140px; }
    .about-art img { width: 96px; }
}
