@font-face {
    font-family: "Newsreader";
    src: url("../fonts/Newsreader-Variable.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --bg: #d9ddef;
    --bg-deep: #cbd1e8;
    --surface: #f5efe6;
    --surface-raised: #fbf7ef;
    --surface-soft: #e4e5f3;
    --surface-strong: #d6d9eb;
    --ink: #25413b;
    --ink-strong: #17342f;
    --muted: #5f6e6a;
    --faint: #7b8582;
    --coral: #ed9278;
    --coral-strong: #d66e54;
    --coral-soft: #f3b39f;
    --lilac: #aca0ce;
    --lilac-strong: #6d6399;
    --lilac-soft: #d7d0e9;
    --green-soft: #b9cfb6;
    --line: rgba(31, 52, 70, .16);
    --line-strong: rgba(31, 52, 70, .3);
    --shadow-raised: 15px 17px 34px rgba(47, 53, 77, .2), -10px -10px 25px rgba(255, 255, 255, .66);
    --shadow-raised-small: 7px 8px 16px rgba(47, 53, 77, .18), -6px -6px 14px rgba(255, 255, 255, .63);
    --shadow-inset: inset 4px 4px 10px rgba(47, 53, 77, .17), inset -4px -4px 10px rgba(255, 255, 255, .7);
    --shadow-coral: 9px 11px 19px rgba(123, 73, 63, .27), -5px -5px 13px rgba(255, 220, 208, .6);
    --font-display: "Newsreader", Georgia, serif;
}

html[data-theme="dark"] {
    --bg: #111827;
    --bg-deep: #0a101c;
    --surface: #1a2435;
    --surface-raised: #222e42;
    --surface-soft: #171f30;
    --surface-strong: #2b3850;
    --ink: #d8e6df;
    --ink-strong: #f4f7f5;
    --muted: #aebcb6;
    --faint: #88958f;
    --coral: #f09a80;
    --coral-strong: #ffad94;
    --coral-soft: #593c3b;
    --lilac: #b9afe1;
    --lilac-strong: #ddd3ff;
    --lilac-soft: #3c3957;
    --green-soft: #31483f;
    --line: rgba(224, 232, 244, .15);
    --line-strong: rgba(224, 232, 244, .29);
    --shadow-raised: 16px 18px 34px rgba(2, 6, 14, .64), -9px -9px 22px rgba(51, 66, 91, .42);
    --shadow-raised-small: 8px 9px 17px rgba(2, 6, 14, .6), -6px -6px 14px rgba(54, 70, 96, .38);
    --shadow-inset: inset 4px 4px 11px rgba(2, 5, 12, .74), inset -4px -4px 10px rgba(58, 75, 101, .4);
    --shadow-coral: 10px 12px 22px rgba(2, 6, 14, .58), -5px -5px 13px rgba(108, 79, 76, .42);
}

body {
    background:
        radial-gradient(circle at 14% 7%, rgba(255, 255, 255, .33), transparent 25rem),
        var(--bg);
}

h1,
h2,
h3 {
    letter-spacing: -.045em;
}

h1 {
    font-weight: 620;
}

h2 {
    font-weight: 610;
}

h3 {
    font-weight: 650;
}

.site-header {
    position: relative;
    z-index: 80;
    padding-top: 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .site-header {
    box-shadow: none;
}

.header-inner {
    min-height: 72px;
    padding: 7px 10px 7px 18px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 25px;
    background: color-mix(in srgb, var(--surface-raised) 93%, transparent);
    box-shadow: var(--shadow-raised);
}

html[data-theme="dark"] .header-inner {
    border-color: rgba(255, 255, 255, .08);
}

.brand-lockup {
    gap: 12px;
}

.brand-mark {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.48rem;
    font-weight: 660;
    letter-spacing: -.055em;
}

.brand-name span {
    color: var(--coral-strong);
    font-style: italic;
}

.nav-link {
    font-weight: 700;
}

.clay-control,
.account-chip,
.button-secondary {
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.button.is-pressed,
.clay-control.is-pressed,
.account-chip.is-pressed,
[data-clay-press].is-pressed {
    transform: translateY(2px) scale(.985);
    box-shadow: var(--shadow-inset);
}

.button[disabled] {
    cursor: not-allowed;
    opacity: .55;
}

.hero-world {
    position: relative;
    margin-top: -88px;
    padding: 122px 0 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 10%, rgba(255, 255, 255, .46), transparent 21rem),
        radial-gradient(circle at 11% 40%, rgba(237, 146, 120, .14), transparent 23rem),
        var(--bg);
}

.hero-world::after {
    content: "";
    position: absolute;
    right: -3%;
    bottom: 0;
    left: -3%;
    height: 280px;
    border-radius: 64px 64px 0 0;
    background: var(--surface-raised);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 -18px 38px rgba(54, 60, 91, .09);
}

html[data-theme="dark"] .hero-world::after {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 -20px 40px rgba(0, 0, 0, .24);
}

.hero-landscape {
    position: relative;
    z-index: 2;
}

.hero-world .hero-grid {
    min-height: 408px;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: 0;
}

.hero-world .hero-copy {
    z-index: 3;
    padding-bottom: 38px;
}

.hero-kicker,
.eyebrow {
    margin-bottom: 13px;
    color: var(--lilac-strong);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.hero-world h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(3.7rem, 6.2vw, 5.65rem);
    line-height: .94;
}

.hero-world .text-coral {
    display: block;
    color: var(--coral-strong);
    font-style: italic;
    font-weight: 540;
}

.hero-world .hero-lead {
    max-width: 580px;
    margin-bottom: 23px;
    font-size: clamp(1.05rem, 1.55vw, 1.22rem);
}

.hero-world .hero-actions {
    gap: 16px;
}

.hero-assurance {
    margin: 23px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .84rem;
}

.hero-assurance .icon {
    color: var(--success);
}

.hero-art-integrated {
    position: relative;
    z-index: 1;
    min-height: 430px;
    pointer-events: none;
}

.hero-art-integrated img {
    position: absolute;
    right: -90px;
    bottom: -42px;
    width: 790px;
    max-width: none;
    filter: drop-shadow(0 24px 24px rgba(34, 41, 49, .28));
}

html[data-theme="dark"] .hero-art-integrated img {
    filter: brightness(.86) saturate(.92) drop-shadow(0 26px 27px rgba(0, 0, 0, .54));
}

.quilt-stage {
    position: relative;
    z-index: 5;
    margin-top: -118px;
}

.quilt-strip-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2.9 / 1;
    filter: drop-shadow(0 22px 18px rgba(56, 48, 52, .2));
}

html[data-theme="dark"] .quilt-strip-wrap {
    filter: brightness(.86) saturate(.9) drop-shadow(0 25px 22px rgba(0, 0, 0, .48));
}

.quilt-strip-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-world .coverage-quilt-connected {
    position: absolute;
    inset: 2% 1.4% 5%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    list-style: none;
}

.hero-world .coverage-quilt-connected .quilt-piece {
    min-height: 0;
    padding: 48% 10% 10%;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #263b36;
}

.hero-world .coverage-quilt-connected .quilt-piece h3 {
    margin-bottom: 5px;
    color: #203630;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.65vw, 1.43rem);
    line-height: 1;
}

.hero-world .coverage-quilt-connected .quilt-piece p {
    max-width: 230px;
    margin: 0;
    color: #40534e;
    font-size: clamp(.68rem, .85vw, .82rem);
    line-height: 1.35;
}

.path-caption {
    position: relative;
    z-index: -1;
    margin: -52px 28px 0;
    padding: 72px 42px 28px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: end;
    gap: 48px;
    border-radius: 0 0 34px 34px;
    background: var(--surface-raised);
    box-shadow: var(--shadow-raised);
}

.path-caption h2 {
    max-width: 610px;
    margin: 0;
    font-size: clamp(2rem, 3.7vw, 3.25rem);
}

.path-caption > p:last-child {
    margin: 0;
    color: var(--muted);
}

.path-caption a {
    color: var(--ink-strong);
    font-weight: 750;
    text-decoration-color: var(--coral-strong);
}

.js [data-path-reveal] .quilt-strip-art,
.js [data-path-reveal] .quilt-piece,
.js [data-path-reveal] .path-caption {
    opacity: 0;
    transform: translateY(26px) scale(.985);
}

.js [data-path-reveal].is-revealed .quilt-strip-art,
.js [data-path-reveal].is-revealed .quilt-piece,
.js [data-path-reveal].is-revealed .path-caption {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity .62s var(--ease), transform .7s var(--ease);
}

.js [data-path-reveal].is-revealed .quilt-piece:nth-child(1) { transition-delay: .1s; }
.js [data-path-reveal].is-revealed .quilt-piece:nth-child(2) { transition-delay: .18s; }
.js [data-path-reveal].is-revealed .quilt-piece:nth-child(3) { transition-delay: .26s; }
.js [data-path-reveal].is-revealed .quilt-piece:nth-child(4) { transition-delay: .34s; }
.js [data-path-reveal].is-revealed .path-caption { transition-delay: .14s; }

.section-tint {
    background: color-mix(in srgb, var(--surface-soft) 82%, var(--bg));
}

.coverage-panel,
.form-panel,
.portal-records,
.settings-panel,
.admin-panel,
.comparison-wrap {
    border-color: color-mix(in srgb, var(--line-strong) 64%, transparent);
}

html[data-theme="dark"] .coverage-panel,
html[data-theme="dark"] .form-panel,
html[data-theme="dark"] .portal-records,
html[data-theme="dark"] .settings-panel,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .comparison-wrap,
html[data-theme="dark"] .choice-card {
    box-shadow: var(--shadow-raised);
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
    border-color: color-mix(in srgb, var(--line) 58%, transparent);
}

.field .choice-card input[type="radio"],
.choice-card input[type="radio"] {
    appearance: none;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    margin: 3px 0 0;
    padding: 0;
    flex: 0 0 20px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    outline: 0;
    background: var(--surface);
    box-shadow: inset 2px 2px 4px rgba(40, 48, 62, .16), inset -2px -2px 4px rgba(255, 255, 255, .5);
}

.field .choice-card input[type="radio"]:checked,
.choice-card input[type="radio"]:checked {
    border: 5px solid var(--coral-strong);
    background: var(--surface-raised);
}

.field .choice-card input[type="radio"]:focus-visible,
.choice-card input[type="radio"]:focus-visible {
    outline: 3px solid var(--lilac-strong);
    outline-offset: 3px;
}

.choice-card:has(input:checked) {
    border-color: var(--coral-strong);
    background: color-mix(in srgb, var(--coral-soft) 82%, var(--surface));
    box-shadow: var(--shadow-inset);
}

.choice-card:has(input:disabled) {
    cursor: not-allowed;
    opacity: .52;
}

.choice-card:has(input[aria-invalid="true"]),
.choice-grid:has(+ .field-error) .choice-card {
    border-color: var(--danger);
}

.inline-notice {
    border: 1px solid color-mix(in srgb, var(--lilac-strong) 42%, transparent);
}

.config-required {
    display: inline-flex;
    width: fit-content;
    padding: 4px 9px;
    border: 1px dashed var(--coral-strong);
    border-radius: 8px;
    background: color-mix(in srgb, var(--coral-soft) 44%, var(--surface));
    color: var(--ink-strong);
    font-size: .78rem;
    font-weight: 780;
    line-height: 1.25;
}

.contact-email-slot {
    margin-top: 6px;
}

.footer-email {
    align-items: center;
    gap: 8px;
}

.footer-nav .config-required {
    font-size: .72rem;
}

@media (max-width: 1080px) {
    .hero-world .hero-grid {
        grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    }

    .hero-art-integrated img {
        right: -120px;
        width: 720px;
    }

    .hero-world .coverage-quilt-connected .quilt-piece {
        padding-top: 46%;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding-top: 12px;
    }

    .header-inner {
        min-height: 68px;
        padding-left: 14px;
        border-radius: 22px;
    }

    .site-navigation {
        top: calc(100% + 10px);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow-raised);
    }

    .hero-world {
        margin-top: -80px;
        padding-top: 110px;
    }

    .hero-world .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .hero-world .hero-copy {
        max-width: 680px;
        padding-bottom: 0;
    }

    .hero-world h1 {
        max-width: 700px;
        font-size: clamp(3.5rem, 9vw, 5rem);
    }

    .hero-art-integrated {
        min-height: 390px;
    }

    .hero-art-integrated img {
        right: -80px;
        bottom: -48px;
        width: 760px;
    }

    .quilt-stage {
        margin-top: -96px;
    }

    .path-caption {
        margin-inline: 20px;
        padding-inline: 30px;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 24px), var(--container));
    }

    .site-header {
        padding-top: 8px;
    }

    .header-inner {
        min-height: 62px;
        border-radius: 19px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 1.24rem;
    }

    .hero-world {
        margin-top: -70px;
        padding: 96px 0 34px;
    }

    .hero-world::after {
        height: 760px;
        border-radius: 38px 38px 0 0;
    }

    .hero-world h1 {
        font-size: clamp(3.05rem, 15vw, 4.2rem);
        line-height: .94;
    }

    .hero-world .hero-lead {
        margin-bottom: 20px;
        font-size: 1.02rem;
    }

    .hero-world .hero-actions {
        gap: 13px;
    }

    .hero-assurance {
        align-items: flex-start;
        font-size: .78rem;
    }

    .hero-art-integrated {
        min-height: 300px;
    }

    .hero-art-integrated img {
        right: -134px;
        bottom: -18px;
        width: 620px;
    }

    .quilt-stage {
        margin-top: -52px;
    }

    .quilt-strip-wrap {
        min-height: 1080px;
        aspect-ratio: auto;
        filter: none;
    }

    html[data-theme="dark"] .quilt-strip-wrap {
        filter: none;
    }

    .quilt-strip-art {
        display: none;
    }

    .hero-world .coverage-quilt-connected {
        position: relative;
        inset: auto;
        padding-left: 31px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-world .coverage-quilt-connected::before {
        content: "";
        position: absolute;
        top: 42px;
        bottom: 42px;
        left: 10px;
        width: 8px;
        border-radius: 8px;
        background: repeating-linear-gradient(to bottom, #eadfcf 0 9px, #b8aa96 9px 13px);
        box-shadow: 3px 4px 7px rgba(65, 55, 55, .22), -2px -2px 5px rgba(255, 255, 255, .38);
    }

    .hero-world .coverage-quilt-connected .quilt-piece {
        position: relative;
        min-height: 262px;
        margin-top: -7px;
        padding: 126px 34px 28px;
        border-radius: 34px;
        background-image: url("../images/coverage-quilt-strip.png");
        background-repeat: no-repeat;
        background-size: 400% auto;
        filter: drop-shadow(0 12px 10px rgba(57, 49, 51, .22));
    }

    html[data-theme="dark"] .hero-world .coverage-quilt-connected .quilt-piece {
        filter: brightness(.87) saturate(.91) drop-shadow(0 14px 13px rgba(0, 0, 0, .42));
    }

    .hero-world .coverage-quilt-connected .quilt-piece::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -29px;
        width: 17px;
        height: 17px;
        border: 4px solid #f4e8d7;
        border-radius: 50%;
        background: var(--coral-strong);
        box-shadow: 3px 4px 8px rgba(42, 39, 52, .26);
    }

    .hero-world .coverage-quilt-connected .quilt-family {
        background-color: #dc8066;
        background-position: 0 center;
    }

    .hero-world .coverage-quilt-connected .quilt-income {
        background-color: #eadfc9;
        background-position: 33.333% center;
    }

    .hero-world .coverage-quilt-connected .quilt-home {
        background-color: #ad9cc3;
        background-position: 66.667% center;
    }

    .hero-world .coverage-quilt-connected .quilt-future {
        background-color: #99aa7d;
        background-position: 100% center;
    }

    .hero-world .coverage-quilt-connected .quilt-piece h3 {
        font-size: 1.48rem;
    }

    .hero-world .coverage-quilt-connected .quilt-piece p {
        max-width: 240px;
        font-size: .83rem;
    }

    .path-caption {
        z-index: 1;
        margin: -18px 4px 0 31px;
        padding: 34px 24px 27px;
        border-radius: 0 0 28px 28px;
    }

    .path-caption h2 {
        font-size: 2.2rem;
    }

    .path-caption > p:last-child {
        font-size: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js [data-path-reveal] .quilt-strip-art,
    .js [data-path-reveal] .quilt-piece,
    .js [data-path-reveal] .path-caption {
        opacity: 1;
        transform: none;
    }
}
