:root {
    --navy: #071d49;
    --blue: #123c7c;
    --bright-blue: #1f5fbf;
    --red: #b31942;
    --red-dark: #84152f;
    --white: #ffffff;
    --cream: #fff8ec;
    --gold: #f6c34b;
    --ink: #102033;
    --muted: #5f6e83;
    --line: #d8dfec;
    --success: #0f7a45;
    --danger: #b31942;
    --shadow: 0 24px 70px rgba(7, 29, 73, 0.18);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--bright-blue);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(820px, calc(100% - 40px));
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 50;
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    border-radius: 10px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

.top-ribbon {
    height: 8px;
    background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--navy) 66% 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(7, 29, 73, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
    font-size: 1.12rem;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--red), var(--navy));
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(179, 25, 66, 0.22);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--red);
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    padding: 9px 12px;
    border-radius: 12px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white) !important;
    text-decoration: none;
    padding: 14px 22px;
    min-height: 48px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(179, 25, 66, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(179, 25, 66, 0.33);
}

.button.small {
    padding: 9px 15px;
    min-height: auto;
    font-size: 0.9rem;
}

.button.ghost {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.button.full {
    width: 100%;
}

.button.loading,
.button:disabled {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
    min-height: 670px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 18%, rgba(246, 195, 75, 0.32), transparent 18%),
        radial-gradient(circle at 88% 12%, rgba(31, 95, 191, 0.42), transparent 24%),
        linear-gradient(135deg, rgba(179, 25, 66, 0.94), rgba(7, 29, 73, 0.94) 47%, rgba(7, 29, 73, 0.98)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 10px, transparent 10px 32px);
}

.hero::after {
    content: "★ ★ ★ ★ ★ ★ ★ ★ ★ ★";
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.24);
    letter-spacing: 18px;
    white-space: nowrap;
    font-size: 1.2rem;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
    gap: 56px;
    align-items: center;
    padding: 78px 0 92px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero-lede {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 18px;
}

.disclaimer {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    max-width: 620px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 900;
}

.eyebrow.red {
    color: var(--red);
}

.hero-card {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transform: rotate(1deg);
}

.hero-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(7, 29, 73, 0.26), transparent 45%);
}

.hero-card-badge {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--navy);
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 900;
    text-align: center;
}

.section {
    padding: 86px 0;
}

.section-light {
    background: linear-gradient(180deg, var(--cream), #ffffff);
}

.section-blue {
    background:
        radial-gradient(circle at top left, rgba(246, 195, 75, 0.26), transparent 24%),
        linear-gradient(135deg, var(--navy), #0d326f);
    color: var(--white);
}

.intro-grid,
.form-grid,
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 42px;
    align-items: start;
}

.intro-grid h2,
.section-heading h2,
.final-cta h2,
.page-hero h1,
.legal-card h2,
.confirmation-box h2 {
    color: var(--navy);
}

.intro-grid h2,
.section-heading h2,
.final-cta h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.price-card,
.summary-panel,
.form-panel,
.legal-card,
.confirmation-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.price-card {
    padding: 28px;
    display: grid;
    gap: 10px;
}

.price-card strong {
    color: var(--red);
    font-size: 4.5rem;
    line-height: 1;
    letter-spacing: -0.08em;
}

.price-label {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
}

.price-card a {
    margin-top: 12px;
    font-weight: 900;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 30px;
}

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

.steps article,
.feature-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 16px 40px rgba(7, 29, 73, 0.08);
}

.steps span {
    color: var(--red);
    font-weight: 1000;
    letter-spacing: 0.14em;
}

.steps h3,
.feature-card h3,
.summary-panel h2 {
    margin: 8px 0 10px;
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1.2;
}

.steps p,
.feature-card p,
.summary-panel p,
.price-card span,
.intro-grid p,
.legal-card p,
.confirmation-box p {
    color: var(--muted);
}

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

.section-blue .feature-card {
    background: rgba(255, 255, 255, 0.98);
    color: var(--ink);
}

.image-card {
    padding: 0;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.image-card div {
    padding: 24px;
}

.icon-circle {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--success);
    font-weight: 1000;
    font-size: 1.4rem;
}

.final-cta {
    background: var(--cream);
}

.final-cta-box {
    text-align: center;
    background: var(--white);
    border-radius: 34px;
    padding: 54px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.page-hero {
    color: var(--white);
    background:
        radial-gradient(circle at 80% 0%, rgba(246, 195, 75, 0.36), transparent 22%),
        linear-gradient(135deg, var(--navy), var(--red-dark));
}

.page-hero.compact {
    padding: 78px 0;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.page-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
}

.form-section {
    padding-top: 58px;
}

.form-panel {
    padding: 28px;
}

.secure-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #f2f7ff;
    border: 1px solid #cfe1ff;
    color: var(--navy);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 26px;
}

.secure-note p {
    margin: 2px 0 0;
    color: var(--muted);
}

.intake-form {
    display: grid;
    gap: 20px;
}

.form-row.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field label,
.checkbox-line {
    font-weight: 850;
    color: var(--navy);
}

.field label {
    display: block;
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid #c8d2e4;
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--ink);
    font: inherit;
    background: var(--white);
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

.field input:focus,
.field textarea:focus {
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 4px rgba(31, 95, 191, 0.12);
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--danger);
}

.field-help,
.form-microcopy {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.error {
    min-height: 18px;
    display: block;
    margin-top: 5px;
    color: var(--danger);
    font-weight: 750;
}

.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-line input {
    margin-top: 6px;
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}

.form-alert {
    display: none;
    border-radius: 16px;
    border: 1px solid #f3bdc9;
    background: #fff1f4;
    color: var(--danger);
    padding: 12px 14px;
    font-weight: 750;
}

.form-alert.show {
    display: block;
}

.is-hidden {
    display: none !important;
}

.form-locked {
    opacity: 0.74;
}

.form-locked input,
.form-locked textarea {
    cursor: not-allowed;
}

.checkout-panel {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.checkout-panel-header h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.checkout-panel-header p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--muted);
}

.checkout-status {
    display: block;
    margin: 14px 0 18px;
    border-radius: 16px;
    padding: 12px 14px;
    background: #edf2fa;
    color: var(--navy);
    font-weight: 780;
}

.checkout-status:empty {
    display: none;
}

.checkout-status.success {
    border: 1px solid rgba(15, 122, 69, 0.25);
    background: #edf9f2;
    color: var(--success);
}

.checkout-status.error {
    border: 1px solid #f3bdc9;
    background: #fff1f4;
    color: var(--danger);
}

.stripe-checkout-mount {
    min-height: 620px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
}


.summary-panel {
    padding: 28px;
    position: sticky;
    top: 104px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.summary-line span {
    color: var(--muted);
}

.summary-line strong {
    color: var(--navy);
}

.summary-panel hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0;
}

.legal-page {
    padding-top: 58px;
}

.legal-card,
.confirmation-box {
    padding: clamp(26px, 5vw, 46px);
}

.legal-card h2 {
    margin: 32px 0 8px;
    font-size: 1.45rem;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card code,
.session-id code {
    padding: 2px 6px;
    border-radius: 7px;
    background: #edf2fa;
    color: var(--red-dark);
}

.legal-card li {
    margin: 10px 0;
    color: var(--muted);
}

.confirmation-box .button {
    margin-top: 18px;
}

.session-id {
    word-break: break-word;
}

.site-footer {
    background: #061736;
    color: rgba(255, 255, 255, 0.78);
    padding: 56px 0 28px;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.45fr) minmax(250px, 0.75fr);
}

.footer-brand {
    color: var(--white);
    margin-bottom: 12px;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 1rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a:not(.brand) {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    margin: 7px 0;
}

.site-footer a:hover {
    color: var(--gold);
}

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    margin-top: 38px;
    padding-top: 22px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 20px;
        right: 20px;
        top: 86px;
        padding: 18px;
        border-radius: 18px;
        background: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .site-header.nav-open .site-nav {
        display: flex;
    }

    .hero-grid,
    .intro-grid,
    .form-grid,
    .footer-grid,
    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-card {
        transform: none;
    }

    .hero-card img {
        height: 360px;
    }

    .summary-panel {
        position: static;
    }

    .copyright {
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .container,
    .narrow {
        width: min(100% - 28px, 1120px);
    }

    .nav-wrap {
        min-height: 68px;
    }

    .hero-grid {
        padding: 56px 0 78px;
        gap: 34px;
    }

    .hero-copy h1,
    .page-hero h1 {
        letter-spacing: -0.045em;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section,
    .page-hero.compact {
        padding: 58px 0;
    }

    .form-row.two {
        grid-template-columns: 1fr;
    }

    .form-panel,
    .summary-panel {
        padding: 22px;
    }
}
