:root {
    --ink: #17201b;
    --muted: #5f6d66;
    --line: #dfe8e2;
    --paper: #fbfcf9;
    --white: #ffffff;
    --sage: #738b78;
    --forest: #1e4b3a;
    --gold: #b78942;
    --blue: #2f6f8f;
    --danger: #b54747;
    --shadow: 0 24px 70px rgba(29, 43, 36, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px clamp(18px, 4vw, 56px);
    background: rgba(251, 252, 249, 0.88);
    border-bottom: 1px solid rgba(223, 232, 226, 0.8);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    background: var(--forest);
    border-radius: 8px;
}

.header-nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.hero-shell {
    position: relative;
    display: grid;
    min-height: clamp(430px, 56vh, 620px);
    padding: clamp(36px, 5vw, 70px) clamp(18px, 5vw, 72px);
    place-items: center;
    overflow: hidden;
    color: #f7fbf7;
    background: #173f32;
}

.hero-shell::before {
    position: absolute;
    inset: clamp(22px, 4vw, 54px);
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    pointer-events: none;
}

.hero-shell::after {
    display: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 860px;
    padding: clamp(12px, 2vw, 24px) 0;
    text-align: center;
}

.hero-copy::before,
.hero-copy::after {
    position: absolute;
    left: 50%;
    width: min(78vw, 720px);
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: translateX(-50%);
}

.hero-copy::before {
    top: -18px;
}

.hero-copy::after {
    bottom: -18px;
}

.eyebrow,
.panel-kicker,
.chat-label {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-shell .eyebrow {
    color: #d5b77b;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: #f8fbf8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4.8vw, 62px);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 640px;
    margin: 20px auto 0;
    color: rgba(247, 251, 247, 0.76);
    font-size: clamp(17px, 2vw, 21px);
}

.trust-row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.trust-row span {
    padding: 9px 12px;
    color: #f6fbf6;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.assessment-band {
    padding: 30px clamp(18px, 5vw, 72px) 76px;
    background: #eef3ef;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.assessment-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 780px);
    gap: 28px;
    align-items: start;
    justify-content: center;
}

.insight-panel {
    padding: 26px;
    background: #f8faf7;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.insight-panel ul {
    display: grid;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.insight-panel li {
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.insight-panel li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.insight-panel strong {
    font-size: 24px;
}

.insight-panel span {
    color: var(--muted);
    font-size: 14px;
}

.chat-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.chat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.chat-top h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: 0;
}

.chat-label {
    margin-bottom: 6px;
}

.status-pill {
    flex: 0 0 auto;
    padding: 8px 10px;
    color: var(--forest);
    background: #edf8ef;
    border: 1px solid #cae3d0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.chat-window {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 280px;
    max-height: 440px;
    overflow-y: auto;
    padding: 22px;
}

.message {
    max-width: 84%;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
}

.message.bot {
    color: #26352d;
    background: #f1f5f1;
    border: 1px solid #dde8df;
}

.message.user {
    justify-self: end;
    color: var(--white);
    background: var(--forest);
}

.choice-form,
.lead-form {
    padding: 0 22px 22px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice-button,
.submit-button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 900;
}

.choice-button {
    padding: 12px 14px;
    color: var(--ink);
    background: #f8faf8;
    border: 1px solid var(--line);
    text-align: left;
}

.choice-button:hover,
.choice-button:focus {
    border-color: var(--forest);
    outline: none;
}

.lead-form {
    display: grid;
    gap: 16px;
}

.lead-form.is-hidden,
.is-hidden {
    display: none;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fbfcfb;
    border: 1px solid #ccd8d0;
    border-radius: 8px;
}

input:focus {
    border-color: var(--forest);
    outline: 3px solid rgba(30, 75, 58, 0.12);
}

textarea {
    width: 100%;
    padding: 12px;
    color: var(--ink);
    resize: vertical;
    background: #fbfcfb;
    border: 1px solid #ccd8d0;
    border-radius: 8px;
}

textarea:focus {
    border-color: var(--forest);
    outline: 3px solid rgba(30, 75, 58, 0.12);
}

.consent-check {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    color: #47554e;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.consent-check input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.submit-button {
    width: 100%;
    color: var(--white);
    background: var(--forest);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.microcopy {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.questions-preview {
    padding: 58px clamp(18px, 5vw, 72px);
    background: var(--paper);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto 24px;
}

.section-heading h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: 0;
}

.questions-heading {
    display: grid;
    position: relative;
    gap: 10px;
    justify-items: center;
    max-width: 860px;
    padding: 0 0 18px;
    margin-bottom: 28px;
    text-align: center;
}

.questions-heading::after {
    width: 72px;
    height: 2px;
    content: "";
    background: var(--gold);
}

.questions-heading .panel-kicker {
    margin-bottom: 0;
    color: var(--gold);
}

.questions-heading h2 {
    max-width: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1;
}

.questions-heading a {
    padding: 10px 14px;
    margin-top: 2px;
    background: #eef5ef;
    border: 1px solid #d8e7dc;
    border-radius: 999px;
    font-size: 13px;
}

.section-heading a,
.article-cta a,
.pagination a {
    flex: 0 0 auto;
    color: var(--forest);
    font-weight: 900;
}

.question-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    max-width: 1120px;
    margin: 0 auto;
}

.question-link {
    display: grid;
    gap: 8px;
    min-height: 88px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.question-link span {
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.question-link small,
.question-row p,
.article-meta {
    color: var(--muted);
    font-size: 13px;
}

.listing-page,
.article-page {
    padding: 0 clamp(18px, 5vw, 72px) 70px;
}

.listing-hero,
.article-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 62px 0 34px;
}

.listing-hero h1,
.article-shell h1 {
    color: var(--ink);
    font-size: clamp(38px, 5vw, 64px);
}

.listing-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
}

.question-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
    margin: 0 auto;
}

.question-row {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.question-row a {
    font-size: 19px;
    font-weight: 900;
}

.question-row p {
    margin: 8px 0 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 30px 0 0;
}

.article-content {
    display: grid;
    gap: 14px;
    margin-top: 26px;
    color: #26352d;
    font-size: 18px;
    line-height: 1.72;
}

.article-cta {
    max-width: 920px;
    padding: 26px;
    margin: 26px auto 0;
    background: #eef3ef;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-cta h2 {
    margin: 0 0 8px;
}

.article-cta p {
    margin: 0 0 14px;
    color: var(--muted);
}

.contact-page {
    padding: 0 clamp(18px, 5vw, 72px) 72px;
}

.contact-hero {
    max-width: 920px;
    padding: 62px 0 26px;
    margin: 0 auto;
}

.contact-hero h1 {
    color: var(--ink);
    font-size: clamp(42px, 6vw, 72px);
}

.contact-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 19px;
}

.contact-hero a {
    color: var(--forest);
    font-weight: 900;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 680px) 280px;
    gap: 28px;
    align-items: start;
    justify-content: center;
}

.contact-form,
.contact-note {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-note h2 {
    margin: 0 0 10px;
}

.contact-note p {
    color: var(--muted);
}

.contact-note a {
    color: var(--forest);
    font-weight: 900;
}

.bot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.field-help,
.form-status {
    color: var(--muted);
    font-size: 12px;
}

.form-status {
    margin: 0;
    font-weight: 800;
}

.empty-questions {
    max-width: 1120px;
    padding: 22px;
    margin: 0 auto;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.proof-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--line);
}

.proof-item {
    min-height: 210px;
    padding: clamp(24px, 4vw, 42px);
    background: var(--paper);
}

.proof-item span {
    color: var(--gold);
    font-weight: 900;
}

.proof-item h3 {
    margin: 14px 0 8px;
    font-size: 22px;
}

.proof-item p {
    margin: 0;
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--muted);
    font-size: 13px;
}

.site-footer div {
    display: flex;
    gap: 18px;
}

.legal-page {
    max-width: 900px;
    padding: 56px clamp(18px, 5vw, 72px);
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.legal-page h2 {
    margin-top: 32px;
}

.admin-body {
    padding: 32px;
    background: #f4f6f4;
}

.admin-card {
    max-width: 1160px;
    padding: 24px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.admin-login {
    max-width: 420px;
    margin: 10vh auto;
}

.alert {
    padding: 12px 14px;
    color: var(--danger);
    background: #fff1f1;
    border: 1px solid #f1cccc;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .hero-shell,
    .assessment-layout,
    .question-columns,
    .proof-band {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        min-height: auto;
    }

    .assessment-layout {
        justify-content: stretch;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .questions-heading {
        align-items: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-shell {
        padding-top: 34px;
    }

    .choice-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 94%;
    }

    .chat-window {
        min-height: auto;
    }
}
