:root {
    --ink: #102446;
    --soft-ink: #4d6071;
    --line: #d6e1e3;
    --wash: #f3f7f7;
    --white: #fff;
    --primary: #087553;
    --primary-dark: #07563e;
    --mint: #b4f0ce;
    --error: #a12e35;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 15; transform: translateY(-200%); background: var(--white); padding: .6rem .9rem; border-radius: 8px; }
.skip-link:focus { transform: none; }
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid #11866a; outline-offset: 4px; }
button, input { font: inherit; }
h1, h2, p { margin: 0; }
h1, h2 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.shell { width: min(100% - 3rem, 1080px); margin-inline: auto; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .11em; font-size: 1rem; }
.brand small { color: var(--soft-ink); font-size: .77rem; margin-top: .22rem; }
.brand-mark { object-fit: contain; width: 45px; height: auto; }
.header-inner nav { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 1.5rem); }
.header-inner nav a { font-size: .9rem; font-weight: 650; text-decoration: none; padding: .55rem .15rem; color: var(--soft-ink); white-space: nowrap; }
.header-inner nav .nav-share { color: var(--primary-dark); background: #e9f5ee; padding-inline: .85rem; border-radius: 8px; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.page { padding-block: clamp(1.6rem, 5vw, 3.8rem); flex: 1; }
.hero { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); padding: clamp(1rem, 3.8vw, 2.45rem) 0 clamp(1.65rem, 5vw, 3.5rem); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.8vw, 4.65rem); margin: .75rem 0 1.05rem; letter-spacing: -.06em; }
.hero h1 span { color: var(--primary); }
.hero-description { color: var(--soft-ink); max-width: 43ch; font-size: clamp(.97rem, 2vw, 1.13rem); }
.eyebrow { color: var(--primary-dark); font-size: .76rem; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: .55rem; }
.hero .eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero-crest { justify-self: center; display: block; width: min(72%, 242px); height: auto; }
.install-app { margin-top: 1rem; }
.install-help { margin-top: .55rem; color: var(--soft-ink); font-size: .9rem; }
.catalog-heading { margin-top: clamp(1.7rem, 4.2vw, 2.8rem); }
.catalog-heading p { color: var(--soft-ink); margin-top: .38rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.15rem; }
.card { padding: clamp(1.25rem, 3.6vw, 2rem); border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.audience-card { display: flex; flex-direction: column; align-items: start; }
.survey-card { transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease; }
.survey-card:hover, .survey-card:focus-within { transform: translateY(-2px); border-color: #a9c9c1; box-shadow: 0 13px 28px #142c4413; }
.audience-label, .card p.audience-label { margin-bottom: .45rem; display: inline-flex; border-radius: 6px; background: #e7f4ed; color: var(--primary-dark); padding: .25rem .55rem; font-size: .77rem; font-weight: 750; }
.survey-card:nth-child(2) .audience-label { background: #edf0f7; color: #304873; }
.survey-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; width: 100%; margin-top: auto; border-top: 1px solid #e4eceb; padding-top: 1rem; }
.survey-card-actions small { color: var(--soft-ink); white-space: nowrap; }
.card h2 { margin-block: .35rem .65rem; }
.card p:not(.eyebrow) { color: var(--soft-ink); margin-bottom: 1.3rem; }
.card .button { margin-top: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 44px; padding: .62rem 1rem; background: var(--primary); border: 1px solid var(--primary); border-radius: 8px; color: var(--white); font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.button > span[aria-hidden] { transition: transform .18s ease; }
.button:hover > span[aria-hidden] { transform: translateX(2px); }
.button:hover { color: var(--white); background: var(--primary-dark); border-color: var(--primary-dark); }
.button.secondary { color: var(--primary-dark); background: var(--white); border-color: #a8c3bd; }
.button.secondary:hover { color: var(--primary-dark); background: #e8f5f0; border-color: var(--primary); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding-block: 1rem; font-size: .82rem; color: var(--soft-ink); }
.site-footer a { text-underline-offset: 3px; }
.reading { max-width: 760px; margin-inline: auto; }
.back-link { display: inline-block; font-size: .9rem; font-weight: 650; text-decoration: none; margin-bottom: 1rem; }
.back-link:hover { text-decoration: underline; }
.page-heading { margin-bottom: 1.35rem; }
.page-heading .eyebrow { margin-bottom: .45rem; }
.page-heading > p:not(.eyebrow) { margin-top: .65rem; color: var(--soft-ink); }
.survey-heading { background: linear-gradient(110deg,#fff,#e8f4f0); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.2rem, 4vw, 2rem); }
.progress-card { position: sticky; top: .6rem; z-index: 3; border: 1px solid var(--line); border-radius: 13px; padding: .78rem; margin-bottom: 1rem; background: var(--white); box-shadow: 0 7px 23px #142c4410; scroll-margin-top: .6rem; }
.progress-summary { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; font-size: .89rem; }
.progress-summary span { color: var(--soft-ink); font-variant-numeric: tabular-nums; }
.progress-card progress { width: 100%; height: .45rem; accent-color: var(--primary); margin-block: .4rem .6rem; display: block; border: 0; border-radius: 1rem; background: #e4eeec; overflow: hidden; }
.progress-card progress::-webkit-progress-bar { background: #e4eeec; }
.progress-card progress::-webkit-progress-value { background: var(--primary); transition: width .25s ease; }
.progress-card progress::-moz-progress-bar { background: var(--primary); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.step { border: 1px solid transparent; display: flex; align-items: center; text-align: left; gap: .44rem; padding: .5rem; border-radius: 7px; background: #edf2f3; font-size: .83rem; color: var(--soft-ink); }
.step:enabled { cursor: pointer; }
.step:enabled:hover { border-color: var(--primary); }
.step b { flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #fff; font-size: .75rem; }
.step[aria-current] { color: #fff; background: var(--primary-dark); font-weight: 650; }
.step[aria-current] b { color: var(--primary-dark); background: var(--mint); }
.step.complete:not([aria-current]) { color: var(--primary-dark); background: #d8efe6; }
.question-section { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: clamp(1rem, 4vw, 2rem); margin-bottom: 1rem; }
.section-heading { padding-bottom: 1.1rem; }
.section-heading h2 { scroll-margin-top: 9rem; }
.section-heading p { margin-top: .6rem; color: var(--soft-ink); }
.section-heading .topic { color: var(--primary-dark); font-weight: 700; }
.question { min-inline-size: 0; border: 0; margin: 0; padding: 0 0 1.2rem; }
.question + .question { margin-top: .2rem; }
.question legend { width: 100%; border-top: 1px solid #e5eeec; padding: 1.15rem 0 .54rem; font-weight: 630; }
.question.answered legend { border-top-color: #bfe3d2; }
.question input { scroll-margin-top: 10rem; }
.question:last-child { padding-bottom: 0; }
.required, .field-error { color: var(--error); }
.field-error { margin-top: .45rem; font-size: .9rem; font-weight: 600; }
.text-input { width: min(100%, 28rem); min-height: 45px; padding: .55rem .7rem; border: 1px solid #9db4b7; border-radius: 7px; color: var(--ink); background: var(--white); }
.options { display: grid; gap: .42rem; }
.choice { display: flex; position: relative; align-items: center; gap: .65rem; min-height: 42px; padding: .46rem .65rem; background: #f8fbfa; border: 1px solid #e1ece8; border-radius: 7px; color: var(--ink); cursor: pointer; }
.choice:hover { border-color: #85ad9f; }
.choice:has(input:checked) { background: #e3f6eb; border-color: var(--primary); }
.choice input { margin: 0; width: 1.04rem; height: 1.04rem; flex: none; accent-color: var(--primary); }
.scale { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scale .choice { flex-direction: column; justify-content: center; gap: .2rem; font-weight: 700; }
.scale-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; padding: .7rem; margin: .8rem 0 0; background: var(--wash); border-radius: 8px; font-size: .88rem; color: var(--soft-ink); }
.scale-key strong { color: var(--primary-dark); margin-right: .23rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.notice { border-radius: 8px; padding: .7rem .85rem; margin-bottom: 1rem; }
.error-notice { color: var(--error); background: #feeeee; border: 1px solid #e9b0b3; }
.offline-notice { margin: .7rem 0 0; color: #633c05; background: #fff6e7; border: 1px solid #ecd3aa; }
.offline-logo { display: block; margin: 0 auto 1rem; height: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.qr-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qr-card img { display: block; max-width: 100%; height: auto; }
.qr-url { font-size: .83rem; overflow-wrap: anywhere; margin: .25rem 0 1rem; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: auto; }
.qr-actions .button { margin-top: 0; }
.copy-status { min-height: 1.2em; margin-top: .45rem; font-size: .82rem; color: var(--primary-dark); }
.confirmation { max-width: 660px; margin: 1rem auto; text-align: center; }
.confirmation h1, .login-card h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: .65rem; }
.success-mark { display: grid; place-items: center; margin: 0 auto .95rem; border-radius: 50%; width: 54px; height: 54px; background: #d8f4e4; color: var(--primary-dark); font-size: 1.65rem; }
.login-card { max-width: 480px; margin: 1rem auto; }
.login-card form { display: grid; gap: .65rem; }
.login-card label { font-size: .9rem; font-weight: 650; }
.login-card .button { justify-self: start; margin-top: .35rem; }
.admin-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .75rem; }
.count { color: var(--ink); font-size: 1.3rem; }
.page-loader { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; pointer-events: none; background: #f4f8f8f5; opacity: 0; animation: reveal-loader .18s .13s ease both; }
.loader-line { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, #0a6445, #97e1b6, #0a6445); }
.loader-body { padding: 1.45rem 2.2rem; display: grid; justify-items: center; gap: .62rem; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 15px 40px #142c441b; }
.loader-body img { width: 68px; height: auto; }
.loader-track { min-width: 8rem; width: 100%; height: 4px; overflow: hidden; border-radius: 4px; background: #dcebe7; }
.loader-track::before { display: block; width: 45%; height: 100%; content: ''; border-radius: inherit; background: var(--primary); animation: loading 1s ease-in-out infinite; }
@keyframes reveal-loader { to { opacity: 1; } }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(230%); } }
@media (max-width: 620px) {
    .shell { width: calc(100% - 1.75rem); }
    .header-inner { min-height: 67px; gap: .55rem; }
    .header-inner nav { gap: .5rem; }
    .header-inner nav a { font-size: .8rem; }
    .header-inner nav .nav-share { padding-inline: .48rem; }
    .brand-mark { width: 36px; }
    .brand small { font-size: .68rem; }
    .cards { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; gap: .9rem; }
    .hero-crest { width: min(36%, 125px); justify-self: start; }
    .step { align-items: start; font-size: .73rem; gap: .23rem; }
    .step b { width: 1.1rem; height: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; }
    .loader-track::before { animation: none; width: 100%; }
    .page-loader { animation-duration: .01s; }
}
