:root {
    --ink: #16211d;
    --muted: #64716b;
    --paper: #f6f4ed;
    --white: #ffffff;
    --green: #173d32;
    --green-2: #245b49;
    --lime: #cafa59;
    --orange: #ff7043;
    --line: #dcded7;
    --danger: #cf4e31;
    --warning: #c67a24;
    --success: #27864d;
    --sans: "DM Sans", system-ui, sans-serif;
    --display: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.top-note { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 7px 16px; color: #19351e; background: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .025em; text-align: center; }
.top-note span { width: 7px; height: 7px; border-radius: 50%; background: #37843e; box-shadow: 0 0 0 4px rgba(55,132,62,.14); }
.tool-header { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 6vw, 88px); background: var(--paper); border-bottom: 1px solid rgba(22,33,29,.09); }
.tool-header > a:last-child { color: var(--ink); font-size: .82rem; font-weight: 700; text-decoration: none; }
.tool-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 1.18rem; font-weight: 800; text-decoration: none; }
.tool-brand img { border-radius: 9px; }

.tool-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, .88fr) minmax(480px, .82fr); gap: clamp(48px, 7vw, 110px); align-items: center; max-width: 1450px; margin: auto; padding: clamp(60px, 7vw, 105px) clamp(22px, 6vw, 88px) 115px; }
.tool-hero__copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--green-2); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
h1, h2, h3 { font-family: var(--display); }
h1 { max-width: 760px; margin: 0 0 24px; font-size: clamp(3.2rem, 5.5vw, 6.2rem); line-height: .96; letter-spacing: -.065em; }
h1 em { color: var(--green-2); font-style: normal; position: relative; }
h1 em::after { content: ""; position: absolute; height: 11px; left: 1%; right: -3%; bottom: 1px; z-index: -1; border-radius: 50%; background: var(--lime); transform: rotate(-2deg); }
.tool-hero__lead { max-width: 650px; margin: 0 0 29px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.72; }
.hero-promises { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; color: #35443d; font-size: .9rem; font-weight: 600; }
.hero-promises span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; color: var(--green); background: #e2efdd; font-size: .72rem; }
.legal-note { max-width: 590px; margin: 27px 0 0; color: #89918d; font-size: .68rem; line-height: 1.55; }

.diagnostic-card { position: relative; min-height: 610px; overflow: hidden; padding: clamp(28px, 4vw, 50px); border: 1px solid #e5e7e1; border-radius: 24px; background: var(--white); box-shadow: 0 28px 85px rgba(31,54,45,.14); }
.diagnostic-card__accent { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--lime) 0 40%, var(--orange) 40% 52%, var(--green-2) 52% 100%); }
[data-view][hidden] { display: none !important; }
.tool-intro { display: flex; flex-direction: column; align-items: flex-start; min-height: 510px; }
.tool-intro__badge { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 29px; border-radius: 16px; color: var(--green-2); background: #edf7d8; transform: rotate(-3deg); }
.tool-intro__badge svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-kicker { margin: 0 0 11px; color: var(--green-2); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tool-intro h2, .question-stage h2, .loading-view h2, .result-view h2 { margin: 0 0 13px; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.12; letter-spacing: -.045em; }
.tool-intro > p:not(.step-kicker) { margin: 0; color: var(--muted); line-height: 1.65; }
.intro-preview { width: 100%; display: grid; gap: 0; margin: 26px 0 28px; border-top: 1px solid var(--line); }
.intro-preview div { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.intro-preview span { color: #8b958f; font-family: var(--display); font-size: .69rem; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 9px; color: #19331b; background: var(--lime); box-shadow: 0 12px 28px rgba(81,112,36,.15); font-size: .9rem; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 17px 35px rgba(81,112,36,.23); }
.primary-action span { font-size: 1.1rem; transition: transform .2s; }
.primary-action:hover span { transform: translateX(4px); }
.tool-intro > small { margin-top: 12px; color: #8a928e; font-size: .68rem; }

.progress-meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: #738078; font-size: .7rem; font-weight: 700; }
.progress-meta strong { color: var(--green-2); }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e9ede8; }
.progress-track span { display: block; width: 16.67%; height: 100%; border-radius: inherit; background: var(--lime); transition: width .3s ease; }
.back-button { margin: 22px 0 30px; padding: 0; border: 0; color: #768079; background: none; font-size: .74rem; font-weight: 700; cursor: pointer; }
.back-button[disabled] { opacity: .35; cursor: default; }
.question-stage > p:not(.step-kicker) { margin: 0 0 24px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.answer-list { display: grid; gap: 10px; }
.answer-option { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border .18s, background .18s, transform .18s; }
.answer-option:hover { border-color: #9bb1a7; background: #f9fbf7; transform: translateX(3px); }
.answer-option__key { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: #68756e; background: #f0f2ee; font-size: .68rem; font-weight: 800; }
.answer-option strong { font-family: var(--sans); font-size: .87rem; }
.answer-option > span:last-child { color: #93a099; }

.loading-view { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.score-loader { position: relative; width: 145px; height: 145px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 50%; background: conic-gradient(var(--lime) var(--loader-value, 0%), #eef0eb 0); }
.score-loader::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: #fff; }
.score-loader > span { display: none; }
.score-loader strong, .score-loader small { position: relative; z-index: 1; }
.score-loader strong { margin-right: -28px; font-family: var(--display); font-size: 2.4rem; }
.score-loader small { transform: translate(29px, 20px); color: var(--muted); }
.loading-view p { margin: 0; color: var(--muted); }

.result-view { padding-top: 2px; }
.result-heading { display: grid; grid-template-columns: 122px 1fr; gap: 22px; align-items: center; margin: 20px 0 27px; }
.score-ring { --score-angle: 0deg; position: relative; width: 122px; height: 122px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: conic-gradient(var(--ring-color, var(--green-2)) var(--score-angle), #e9ede8 0); }
.score-ring::before { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: #fff; }
.score-ring > span { position: relative; z-index: 1; display: flex; align-items: baseline; }
.score-ring strong { font-family: var(--display); font-size: 2.2rem; letter-spacing: -.06em; }
.score-ring small { color: var(--muted); font-size: .65rem; }
.result-status { display: inline-block; margin-bottom: 7px; padding: 5px 8px; border-radius: 5px; font-size: .61rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-heading h2 { margin-bottom: 7px; font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.result-heading p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.risk-panel { padding: 18px; border-radius: 13px; background: #f5f6f2; }
.risk-panel h3 { margin: 0 0 13px; font-size: .9rem; }
.risk-item { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid #e0e4de; }
.risk-item:first-child { border-top: 0; padding-top: 0; }
.risk-item:last-child { padding-bottom: 0; }
.risk-item > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #8e421f; background: #fbe3d8; font-size: .65rem; font-weight: 800; }
.risk-item strong { display: block; margin-bottom: 2px; font-size: .76rem; }
.risk-item p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.result-actions { display: flex; gap: 10px; margin-top: 19px; }
.result-actions .primary-action { flex: 1; min-height: 51px; padding-inline: 17px; font-size: .78rem; }
.secondary-action { min-height: 51px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; }
.price-note { margin: 10px 0 0; color: #77817c; font-size: .65rem; text-align: center; }
.review-box { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.review-box > div > span { color: var(--orange); font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.review-box h3 { margin: 6px 0 5px; font-size: .95rem; }
.review-box > div > p { margin: 0 0 14px; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.review-box form > label:first-of-type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.email-row { display: grid; grid-template-columns: 1fr auto; }
.email-row input { min-width: 0; height: 45px; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; outline: none; font-size: .76rem; }
.email-row input:focus { border-color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-2); }
.email-row button { padding: 0 14px; border: 0; border-radius: 0 8px 8px 0; color: #fff; background: var(--green); font-size: .71rem; font-weight: 700; cursor: pointer; }
.privacy-check { display: flex; align-items: flex-start; gap: 7px; margin-top: 9px; color: #78837d; font-size: .62rem; line-height: 1.4; }
.privacy-check input { margin: 2px 0 0; accent-color: var(--green-2); }
.privacy-check a { color: inherit; }
.form-message { min-height: 17px; margin: 8px 0 0; color: var(--success); font-size: .68rem; }
.form-message.is-error { color: var(--danger); }
.restart-button { display: block; margin: 13px auto 0; padding: 5px; border: 0; color: #8b948f; background: none; font-size: .65rem; cursor: pointer; }

.social-strip { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 45px; padding: 23px 25px; color: #69756f; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .76rem; }
.social-strip strong { color: var(--ink); }
.social-strip span, .social-strip a { display: flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.social-strip i { color: var(--success); font-style: normal; font-weight: 800; }

.analysis-section { padding: clamp(85px, 10vw, 145px) clamp(22px, 7vw, 108px); background: #fff; }
.section-copy { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.eyebrow--dark { justify-content: center; }
.section-copy h2, .bottom-cta h2 { margin: 0 0 20px; font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1.02; letter-spacing: -.058em; }
.section-copy > p:last-child { max-width: 640px; margin: auto; color: var(--muted); line-height: 1.7; }
.analysis-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 1250px; margin: auto; }
.analysis-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 14px; background: #fcfcfa; }
.analysis-grid article > span { color: #929b96; font-size: .62rem; font-weight: 700; }
.analysis-grid svg { width: 34px; margin: 48px 0 28px; fill: none; stroke: var(--green-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.analysis-grid h3 { margin: 0 0 8px; font-size: .96rem; }
.analysis-grid p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }

.bottom-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: clamp(75px, 9vw, 125px) clamp(22px, 8vw, 125px); color: #fff; background: var(--green); }
.bottom-cta .eyebrow { color: rgba(255,255,255,.6); }
.bottom-cta h2 { margin-bottom: 0; }
.bottom-cta .primary-action { flex-shrink: 0; margin-bottom: 10px; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 32px clamp(22px, 7vw, 100px); color: rgba(255,255,255,.55); background: #0d281f; font-size: .72rem; }
.tool-brand--footer { color: #fff; font-size: 1rem; }
footer p { margin: 0; }
footer nav { display: flex; align-items: center; gap: 17px; }
footer nav a, footer nav button { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-decoration: none; cursor: pointer; }

@media (max-width: 1050px) {
    .tool-hero { grid-template-columns: 1fr; }
    .tool-hero__copy { max-width: 760px; }
    .diagnostic-card { max-width: 720px; width: 100%; }
    .analysis-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .top-note { padding-inline: 9px; font-size: .63rem; }
    .tool-header { height: 64px; padding-inline: 18px; }
    .tool-header > a:last-child { font-size: .73rem; }
    .tool-brand { font-size: 1.02rem; }
    .tool-brand img { width: 32px; height: 32px; }
    .tool-hero { min-height: auto; gap: 44px; padding: 60px 18px 75px; }
    h1 { font-size: clamp(2.8rem, 13.7vw, 4rem); }
    .tool-hero__lead { font-size: .98rem; }
    .diagnostic-card { min-height: 590px; padding: 28px 20px; border-radius: 17px; }
    .tool-intro { min-height: 530px; }
    .result-heading { grid-template-columns: 100px 1fr; gap: 16px; }
    .score-ring { width: 100px; height: 100px; }
    .score-ring strong { font-size: 1.85rem; }
    .result-actions { flex-direction: column; }
    .secondary-action { width: 100%; }
    .email-row { grid-template-columns: 1fr; gap: 8px; }
    .email-row input { border-right: 1px solid var(--line); border-radius: 8px; }
    .email-row button { min-height: 44px; border-radius: 8px; }
    .social-strip { justify-content: flex-start; gap: 14px 25px; padding: 22px 18px; }
    .social-strip strong { width: 100%; }
    .analysis-section { padding: 78px 18px; }
    .section-copy { margin-bottom: 38px; }
    .analysis-grid { grid-template-columns: 1fr; }
    .analysis-grid article { min-height: 210px; }
    .analysis-grid svg { margin: 37px 0 22px; }
    .bottom-cta { flex-direction: column; align-items: flex-start; padding: 75px 20px; }
    footer { flex-direction: column; align-items: flex-start; }
}

@media print {
    body { background: #fff; }
    .top-note, .tool-header, .tool-hero__copy, .social-strip, .analysis-section, .bottom-cta, footer, .result-actions, .review-box, .restart-button, .diagnostic-card__accent { display: none !important; }
    .tool-hero { display: block; min-height: 0; padding: 20px; }
    .diagnostic-card { max-width: none; min-height: 0; padding: 0; border: 0; box-shadow: none; }
    .result-view { display: block !important; }
    .price-note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
