:root {
    --bg: #f8f3eb;
    --ink: #22313a;
    --muted: #687882;
    --line: rgba(34, 49, 58, 0.12);
    --accent: #0f6f91;
    --accent-2: #d6672f;
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 55px rgba(38, 54, 62, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(214, 103, 47, 0.18), transparent 25%),
        radial-gradient(circle at right, rgba(15, 111, 145, 0.16), transparent 30%),
        linear-gradient(180deg, #fcf8f2 0%, #f4efe7 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.public-body {
    min-height: 100vh;
}

.site-shell,
.landing-shell,
.thanks-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 48px;
}

.hero,
.landing-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
    align-items: stretch;
}

.hero__copy,
.hero__panel,
.form-panel,
.landing-hero__content,
.thanks-card,
.page-card,
.proof-card,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero__copy,
.landing-hero__content,
.thanks-card,
.empty-state {
    padding: 34px;
}

.hero__copy h1,
.landing-hero__content h1,
.thanks-card h1 {
    margin: 10px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.hero__text,
.landing-hero__subtitle,
.landing-hero__text,
.thanks-card p {
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.8;
}

.hero__panel {
    padding: 26px;
    display: grid;
    gap: 16px;
    background: linear-gradient(180deg, #15303f 0%, #0f2733 100%);
    color: #f3fafc;
}

.hero-stat {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-stat strong {
    display: block;
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.section-heading {
    margin: 46px 0 18px;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: 2rem;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.page-card {
    padding: 24px;
}

.page-card h3 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
}

.page-card__badge,
.pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 111, 145, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.page-card__meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 18px 0;
    color: var(--muted);
}

.form-panel {
    padding: 28px;
}

.form-panel__header h2 {
    margin: 10px 0 0;
    font-size: 2rem;
}

.lead-form,
.grid-two {
    display: grid;
    gap: 14px;
}

.lead-capture-fields.is-hidden,
.quiz-step {
    display: none;
}

.lead-capture-fields,
.quiz-step.is-active {
    display: grid;
    gap: 14px;
}

.grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    padding: 14px 15px;
    color: var(--ink);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(15, 111, 145, 0.6);
    box-shadow: 0 0 0 4px rgba(15, 111, 145, 0.08);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #2b8fa7);
    color: #fff;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.button--ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(15, 111, 145, 0.18);
}

.button--block {
    width: 100%;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    gap: 12px;
}

.hero-media {
    margin: 24px 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #fff;
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-list li {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 111, 145, 0.06);
    border: 1px solid rgba(15, 111, 145, 0.08);
}

.proof-card {
    margin-top: 24px;
    padding: 22px;
}

.proof-card h2 {
    margin-top: 0;
}

.legal-box {
    margin-top: 18px;
    color: var(--muted);
    display: grid;
    gap: 10px;
}

.quiz-flow {
    display: grid;
    gap: 14px;
    margin-bottom: 8px;
}

.quiz-progress {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    display: grid;
    gap: 10px;
}

.quiz-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 0.92rem;
    color: var(--muted);
}

.quiz-progress__bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 111, 145, 0.12);
    overflow: hidden;
}

.quiz-progress__bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    transition: width 0.25s ease;
}

.quiz-step {
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(15, 111, 145, 0.05);
}

.quiz-step h3 {
    margin: 4px 0 6px;
    font-size: 1.45rem;
}

.quiz-step__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.quiz-options {
    display: grid;
    gap: 10px;
}

.quiz-option {
    width: 100%;
    text-align: left;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(34, 49, 58, 0.12);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option__label {
    display: block;
    font-weight: 700;
}

.quiz-option__description {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.quiz-option:hover,
.quiz-option.is-selected {
    transform: translateY(-1px);
    border-color: rgba(15, 111, 145, 0.45);
    box-shadow: 0 16px 32px rgba(15, 111, 145, 0.12);
}

.quiz-result-highlights {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 10px;
}

.quiz-result-highlights.is-hidden {
    display: none;
}

.quiz-result-highlights li {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 111, 145, 0.12);
}

.quiz-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.muted {
    color: var(--muted);
}

.legal-box details {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.thanks-shell {
    display: grid;
    place-items: center;
    min-height: 100vh;
}

.thanks-card {
    width: min(720px, 100%);
    text-align: center;
}

.empty-state {
    text-align: center;
}

.site-footer {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.flash--success {
    background: rgba(5, 150, 105, 0.12);
    color: #047857;
}

.flash--error {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

@media (max-width: 980px) {
    .hero,
    .landing-hero,
    .grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-shell,
    .landing-shell,
    .thanks-shell {
        width: min(100% - 20px, 1200px);
        padding-top: 20px;
    }

    .hero__copy,
    .landing-hero__content,
    .form-panel,
    .thanks-card,
    .empty-state {
        padding: 24px;
    }

    .hero__actions {
        flex-direction: column;
    }
}
