@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Newsreader:ital,wght@1,600&display=swap');

:root {
    --navy: #071521;
    --navy-2: #102f43;
    --paper: #f2eee7;
    --white: #fffdf8;
    --ink: #13202a;
    --muted: #60717c;
    --line: #d8dedb;
    --orange: #ed2f24;
    --orange-dark: #b81913;
    --mint: #cde9df;
    --danger: #bd362d;
    --shadow: 0 22px 70px rgba(11, 36, 56, .12);
    font-family: Manrope, system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
a { color: inherit; }

.site-header {
    min-height: 88px; padding: 18px clamp(22px, 5vw, 72px); display: flex; align-items: center;
    justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--orange); background: var(--navy); color: white;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; transform: rotate(45deg); border-radius: 10px; background: var(--orange); color: white; }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand strong { display: block; font-size: 1.2rem; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: #bad0dd; font-size: .7rem; }
.privacy-pill { padding: 9px 14px; border: 1px solid #34566c; border-radius: 999px; color: #d9e8ef; font-size: .78rem; }
.privacy-pill span { color: #67d7ab; margin-right: 7px; }

main { overflow: hidden; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr); gap: clamp(35px, 7vw, 110px); min-height: 760px; padding: clamp(64px, 9vw, 130px) clamp(22px, 8vw, 130px) 150px; background: var(--navy); color: white; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,15,25,.98) 0%, rgba(4,15,25,.91) 32%, rgba(4,15,25,.44) 64%, rgba(4,15,25,.08) 100%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; z-index: 0; height: 9px; background: repeating-linear-gradient(135deg, #ed2f24 0 22px, #ffd248 22px 44px); }
.hero-art { position: absolute; inset: 0; z-index: -2; background: url('/assets/images/hero-fire-safety-v1.png') center / cover no-repeat; }
.hero-copy, .promise-card { position: relative; z-index: 1; }
.eyebrow { margin-bottom: 18px; color: #ff5a4f; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.signal-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 0 5px rgba(255,59,48,.16); animation: signal 1.8s ease-out infinite; }
@keyframes signal { 50% { box-shadow: 0 0 0 10px rgba(255,59,48,0); } }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 850px; margin-bottom: 30px; font-size: clamp(2.7rem, 6vw, 6.2rem); line-height: .96; letter-spacing: -.055em; }
.hero h1 em { color: #ffb0a9; font-family: Newsreader, Georgia, serif; font-weight: 600; }
.hero-copy > p { max-width: 690px; color: #c2d3dd; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.hero-actions > span { max-width: 220px; color: #9fb8c6; font-size: .75rem; line-height: 1.55; }
.hero-actions > span strong { color: white; }
.button-large { min-height: 58px; padding-inline: 29px; }
.hero-facts { display: flex; gap: clamp(24px, 5vw, 65px); margin: 45px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 11px; }
.hero-facts strong { color: var(--orange); font-size: 2rem; }
.hero-facts span { max-width: 115px; color: #a9bfcb; font-size: .74rem; line-height: 1.4; }
.promise-card { align-self: end; padding: 34px; border: 1px solid rgba(255,255,255,.22); border-top: 4px solid var(--orange); border-radius: 5px 5px 18px 18px; background: rgba(5,19,29,.78); backdrop-filter: blur(12px); }
.shield { display: grid; place-items: center; width: 54px; height: 62px; margin-bottom: 32px; border-radius: 50% 50% 45% 45%; background: var(--mint); color: var(--navy); font-size: 1.5rem; }
.promise-card h2 { font-size: 1.35rem; }
.promise-card p { margin: 0; color: #bcd0db; font-size: .9rem; line-height: 1.7; }

.why { padding: 105px clamp(22px, 8vw, 130px) 150px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; column-gap: clamp(30px, 8vw, 120px); align-items: end; max-width: 1200px; margin: 0 auto 60px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.05; letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--muted); line-height: 1.8; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1200px; margin: auto; }
.benefit-grid article { min-height: 260px; padding: 32px; border: 1px solid #d8ddd9; border-top: 5px solid var(--orange); border-radius: 5px 5px 18px 18px; background: rgba(255,253,248,.88); }
.benefit-grid article > span { color: var(--orange); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.benefit-grid h3 { margin: 65px 0 12px; color: var(--navy); font-size: 1.25rem; }
.benefit-grid p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.urgency { display: grid; grid-template-columns: 80px minmax(280px, 1.2fr) minmax(250px, .8fr) auto; align-items: center; gap: clamp(22px, 4vw, 55px); padding: 45px clamp(22px, 7vw, 100px); background: #f9ded2; }
.urgency-mark { display: grid; place-items: center; width: 70px; height: 70px; border: 2px solid var(--orange); border-radius: 50%; color: var(--orange-dark); font-size: 2.2rem; font-weight: 800; }
.urgency .eyebrow { margin-bottom: 10px; }.urgency h2 { margin: 0; color: var(--navy); font-size: clamp(1.4rem, 2.5vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; }
.urgency > p { margin: 0; color: #70584d; font-size: .82rem; line-height: 1.7; }

.test-shell { position: relative; width: min(960px, calc(100% - 36px)); margin: 90px auto; border-radius: 28px; background: var(--white); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 24px; }
.progress-wrap { padding: 30px 42px 24px; border-bottom: 1px solid var(--line); background: #fcfaf5; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.progress-track { height: 5px; border-radius: 99px; background: #e4e7e3; overflow: hidden; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: var(--orange); transition: width .35s ease; }
.step-dots { display: flex; justify-content: space-between; margin: 18px 0 0; padding: 0; list-style: none; color: #9aa6aa; font-size: .68rem; font-weight: 700; }
.step-dots .active { color: var(--orange-dark); }.step-dots .done { color: var(--navy-2); }
form { padding: clamp(28px, 6vw, 64px); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.test-step { display: none; animation: reveal .3s ease both; }
.test-step.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
legend { display: flex; align-items: center; gap: 18px; width: 100%; margin-bottom: 36px; font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
legend > span { color: #d7d9d4; font-size: 3rem; }
legend small { display: block; margin-bottom: 3px; color: var(--orange-dark); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.question { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(270px, 1.2fr); align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid #e8e9e5; }
.question p, .question label { margin: 0; font-weight: 650; line-height: 1.5; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choices-compact { grid-template-columns: repeat(2, 1fr); }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: grid; place-items: center; min-height: 48px; padding: 9px 12px; border: 1px solid #ccd4d5; border-radius: 12px; background: white; color: var(--muted); font-size: .82rem; font-weight: 700; text-align: center; transition: .18s ease; }
.choice input:checked + span { border-color: var(--navy-2); background: var(--navy-2); color: white; box-shadow: 0 6px 18px rgba(18,58,84,.16); }
.choice input:focus-visible + span { outline: 3px solid #f4a989; outline-offset: 2px; }
input[type="number"], select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #ccd4d5; border-radius: 12px; background: white; color: var(--ink); }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check { cursor: pointer; }.check input { position: absolute; opacity: 0; }
.check span { display: flex; align-items: center; min-height: 58px; padding: 14px; border: 1px solid #d4d9d7; border-radius: 12px; font-size: .82rem; font-weight: 700; }
.check input:checked + span { border-color: #6aa58f; background: var(--mint); color: var(--navy); }
.form-hint { margin-top: 20px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding: 18px; border-radius: 12px; background: #f0f4f2; font-size: .78rem; line-height: 1.55; }
.consent input { width: 19px; height: 19px; accent-color: var(--navy); }
.form-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav #back { margin-right: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 51px; padding: 0 24px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; text-decoration: none; transition: .2s ease; }
.button-primary { background: var(--orange); color: white; }.button-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button-ghost { border-color: #cbd4d5; background: transparent; color: var(--navy); }
.form-error { margin-top: 22px; padding: 12px 15px; border-left: 4px solid var(--danger); background: #fff0ed; color: #92271f; font-size: .82rem; }
[hidden] { display: none !important; }

.result-hero { padding: clamp(60px, 9vw, 110px) clamp(22px, 10vw, 150px); background: var(--navy); color: white; }
.result-hero h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(2.4rem, 6vw, 5.7rem); line-height: 1; letter-spacing: -.05em; }
.result-hero > p { max-width: 690px; color: #bdd0db; line-height: 1.7; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 20px; }
.result-hero .button-ghost { border-color: #527084; color: white; }
.ephemeral-note { font-size: .75rem; }
.results { display: grid; gap: 14px; width: min(1000px, calc(100% - 36px)); margin: 60px auto; }
.recommendation { display: grid; grid-template-columns: 54px 1fr; gap: 20px; padding: 27px; border: 1px solid var(--line); border-left: 5px solid #7394a7; border-radius: 16px; background: var(--white); box-shadow: 0 7px 25px rgba(11,36,56,.045); }
.recommendation--danger { border-left-color: var(--danger); }.recommendation--warning { border-left-color: var(--orange); }.recommendation--intro { border-left-color: #62a58c; }
.recommendation-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #edf1ef; color: var(--navy); font-weight: 800; }
.recommendation h2 { margin-bottom: 8px; font-size: 1.08rem; }.recommendation p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.email-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: min(1000px, calc(100% - 36px)); margin: 0 auto 80px; padding: 35px; border-radius: 20px; background: var(--mint); }
.email-preview p { margin: 0; color: #315c50; line-height: 1.7; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 35px clamp(22px, 8vw, 120px); background: #071b2a; color: #9bb3c0; font-size: .75rem; }
footer > strong, footer span strong { color: white; }

@media (max-width: 760px) {
    .site-header { min-height: 74px; }.privacy-pill { display: none; }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-bottom: 120px; }.hero::before { background: linear-gradient(180deg, rgba(4,15,25,.91), rgba(4,15,25,.82)); }.hero-art { background-position: 63% center; }.promise-card { max-width: 520px; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-facts { gap: 16px; justify-content: space-between; }.hero-facts li { display: block; }.hero-facts span { display: block; }
    .why { padding-block: 70px; }.section-heading { grid-template-columns: 1fr; gap: 24px; }.benefit-grid { grid-template-columns: 1fr; }.benefit-grid article { min-height: 210px; }.benefit-grid h3 { margin-top: 42px; }
    .urgency { grid-template-columns: 58px 1fr; }.urgency-mark { width: 54px; height: 54px; }.urgency > p, .urgency > .button { grid-column: 1 / -1; }.urgency > .button { width: 100%; }
    .test-shell { border-radius: 20px; }.progress-wrap { padding: 24px 22px 20px; }.step-dots { display: none; }
    form { padding: 28px 20px; }.question { grid-template-columns: 1fr; gap: 12px; }.choices { grid-template-columns: 1fr 1fr; }.choices .choice:last-child:nth-child(3) { grid-column: 1 / -1; }
    .check-grid { grid-template-columns: 1fr 1fr; }.form-nav { position: sticky; bottom: 0; margin-inline: -20px; padding: 16px 20px; background: rgba(255,253,248,.95); backdrop-filter: blur(8px); }
    .email-preview { grid-template-columns: 1fr; }.recommendation { grid-template-columns: 42px 1fr; padding: 21px; }
    footer { flex-direction: column; }
}

@media (max-width: 430px) {
    .brand small { display: none; }.hero h1 { font-size: 2.65rem; }.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
    .check-grid { grid-template-columns: 1fr; }.result-actions .button { width: 100%; }
}

@media print {
    .site-header, .result-actions, .email-preview, footer { display: none !important; }
    body { background: white; }.result-hero { padding: 20px 0; background: white; color: black; }.result-hero p { color: #333; }
    .results { width: 100%; margin: 20px 0; }.recommendation { break-inside: avoid; box-shadow: none; }
}
