/* Homepage sections share the hero palette without changing global surfaces. */
.page-home .home-page { width: 100%; min-width: 0; }
.page-home .home-sections {
    --home-panel: linear-gradient(145deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .18));
    --home-panel-edge: rgba(255, 255, 255, .68);
    --home-panel-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(35, 75, 99, .035);
    --home-field: rgba(255, 255, 255, .52);
    --home-divider: rgba(66, 119, 144, .12);
    max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 64px; color: #234b63;
}
.page-home .home-section { padding-block: clamp(44px, 6vw, 80px); }
.page-home .home-section + .home-section { border-top: 1px solid var(--home-panel-edge); }
.page-home .home-section-eyebrow { margin: 0 0 12px; color: #24566c; font-size: 12px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; line-height: 1.5; }
.page-home .home-section-heading { max-width: 760px; margin: 0 0 32px; }
.page-home .home-section-heading h2 { margin: 0; color: #234b63; font-size: clamp(28px, 2.7vw, 36px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.page-home .home-section-heading p:not(.home-section-eyebrow) { margin: 14px 0 0; max-width: 60ch; color: #315f75; font-size: 17px; line-height: 1.65; }
.page-home .home-community { text-align: center; padding-block: 18px; }
.page-home .home-community-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 680px; margin: 0 auto; }
.page-home .home-community-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 4px 24px; }
.page-home .home-community-stats > div + div { border-left: 1px solid rgba(35, 75, 99, .2); }
.page-home .home-community-stats dd { order: -1; margin: 0; color: #234b63; font-size: 36px; font-weight: 400; letter-spacing: -.045em; line-height: 1.1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.page-home .home-community-stats dt { font-size: 15px; color: #315f75; }
.page-home .home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0; list-style: none; }
.page-home .home-steps > li { display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 32px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 22px; background: #f7fdff; box-shadow: 0 5px 16px rgba(35, 75, 99, .055); }
.page-home .home-step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.page-home .home-step-number { font-size: 14px; font-weight: 600; color: #487185; }
.page-home .home-step-top svg { width: 48px; height: 48px; color: #1388a6; }
.page-home .home-steps h3 { margin: 0 0 12px; font-size: 21px; font-weight: 650; letter-spacing: -.025em; color: #234b63; }
.page-home .home-steps p { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: #42677b; }
.page-home .home-text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #006f93; font-size: 14px; font-weight: 650; text-decoration: none; }
.page-home .home-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-home .home-section-footnote { margin: 18px 0 0; font-size: 13px; line-height: 1.65; color: #385f74; max-width: 90ch; }
.page-home .home-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.page-home .home-select-label { display: flex; flex-direction: column; gap: 8px; width: fit-content; color: #315f75; font-size: 13px; font-weight: 600; }
.page-home .home-select-label select { min-width: 142px; width: 100%; min-height: 44px; padding: 10px 36px 10px 14px; border: 1px solid rgba(66, 119, 144, .22); border-radius: 12px; background-color: var(--home-field); color: #234b63; font: inherit; font-size: 15px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.page-home .home-board-panel { overflow: hidden; border: 1px solid var(--home-panel-edge); border-radius: 24px; background: var(--home-panel); box-shadow: var(--home-panel-shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.page-home .home-board-columns { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; padding: 20px 28px; border-bottom: 1px solid var(--home-divider); background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 600; color: #42677b; }
.page-home .home-board-list { padding: 0; margin: 0; list-style: none; }
.page-home .home-board-list > li + li { border-top: 1px solid var(--home-divider); }
.page-home .home-board-entry { display: grid; grid-template-columns: 52px 60px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 18px 28px; color: #234b63; text-decoration: none; }
.page-home .home-board-entry:hover { background: rgba(255, 255, 255, .38); }
.page-home .home-board-rank { font-size: 22px; font-weight: 550; font-variant-numeric: tabular-nums; }
.page-home .home-board-avatar { display: grid; place-items: center; width: 60px; height: 80px; border-radius: 10px; object-fit: cover; background: #dbf2f7; color: #327189; font-size: 20px; }
.page-home .home-board-person { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.page-home .home-board-person strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.page-home .home-board-person small { font-size: 13px; color: #5d7b8b; overflow-wrap: anywhere; }
.page-home .home-board-score { display: flex; flex-direction: column; gap: 4px; align-items: end; color: #234b63; font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.page-home .home-board-score small { font-size: 11px; color: #5d7b8b; font-weight: 500; }
.page-home .home-board-more { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; padding: 16px; border-top: 1px solid var(--home-divider); background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; color: #006f93; text-decoration: none; }
.page-home .home-board-more:hover { background: rgba(255, 255, 255, .45); }
.page-home .home-section-status { padding: 16px 24px; color: #42677b; text-align: center; font-size: 15px; line-height: 1.6; }
.page-home .home-section-status:empty { display: none; }
.page-home .home-small-button { display: block; margin: 0 auto 24px; padding: 10px 18px; min-height: 44px; border: 1px solid var(--home-panel-edge); border-radius: 999px; background: var(--home-field); box-shadow: var(--home-panel-shadow); color: #234b63; font: inherit; cursor: pointer; }
.page-home .home-small-button[hidden] { display: none; }
.page-home .home-calculator-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; margin: 0; border: 1px solid var(--home-panel-edge); border-radius: 24px; background: var(--home-panel); box-shadow: var(--home-panel-shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.page-home .home-calculator-inputs { padding: clamp(24px, 3vw, 40px); }
.page-home .home-calculator-inputs > .home-select-label { margin-bottom: 28px; }
.page-home .home-score-input + .home-score-input { margin-top: 28px; }
.page-home .home-score-input > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-home .home-score-input label { color: #234b63; font-size: 15px; font-weight: 600; }
.page-home .home-score-input input[type="number"] { width: 100px; min-width: 0; padding: 10px 8px 10px 14px; height: 48px; border: 1px solid rgba(66, 119, 144, .22); border-radius: 12px; color: #234b63; background: var(--home-field); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); font: inherit; font-size: 20px; font-weight: 550; font-variant-numeric: tabular-nums; }
.page-home .home-score-input input[type="range"] { appearance: none; -webkit-appearance: none; display: block; width: 100%; margin: 0; padding: 0; min-height: 26px; border: 0; background: transparent; box-shadow: none; cursor: pointer; accent-color: #009fc3; }
.page-home .home-score-input input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: #c2e6ef; }
.page-home .home-score-input input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #c2e6ef; }
.page-home .home-score-input input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid #fff; border-radius: 50%; background: #009fc3; box-shadow: 0 1px 4px rgba(35, 75, 99, .2); }
.page-home .home-score-input input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: #009fc3; box-shadow: 0 1px 4px rgba(35, 75, 99, .2); }
.page-home .home-score-range-note { margin: 24px 0 0; color: #56778a; font-size: 12px; line-height: 1.6; }
.page-home .home-calculator-result { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 44px); border-left: 1px solid var(--home-panel-edge); background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(173, 234, 250, .16)); }
.page-home .home-calculator-result output { margin: 10px 0 16px; color: #234b63; font-size: clamp(48px, 5.5vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.page-home .home-calculator-result > p:not(.home-section-eyebrow) { margin: 0; color: #42677b; font-size: 16px; line-height: 1.65; }
.page-home .home-calculator-result strong { color: #234b63; font-weight: 650; }
.page-home .home-chance-bar { height: 8px; width: 100%; margin: 24px 0 18px; overflow: hidden; border-radius: 8px; background: #c2e6ef; }
.page-home .home-chance-bar > span { display: block; height: 100%; width: var(--chance, 0%); background: #00a8cb; border-radius: inherit; }
.page-home .home-calculator-result .home-calc-status { font-size: 12px; min-height: 3.3em; }
.page-home .home-calculator > .home-section-heading { margin-inline: auto; text-align: center; }
.page-home .home-calculator > .home-section-heading p { margin-inline: auto; }
.page-home .home-calculator > .home-section-footnote { margin-inline: auto; text-align: center; }
.page-home .home-select-label select { background: var(--home-field); }
.page-home .home-select-label select:hover,
.page-home .home-small-button:hover { background: rgba(255, 255, 255, .75); }
body.page-home .site-footer {
    max-width: 1152px;
    border-top-color: rgba(255, 255, 255, .68);
    color: #315f75;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent);
}
body.page-home .site-footer-copyright { color: #42677b; }
.page-home .home-sections :is(a, button, input, select):focus-visible { outline: 3px solid #007d9d; outline-offset: 4px; }
.page-home .home-board-panel :is(a, button):focus-visible { outline-offset: -4px; }
@media (min-width: 1100px) {
    .page-home .home-sections { margin-top: -24px; }
    /* Keep the counts as a quiet, single-row bridge to the three steps. */
    .page-home .home-community { display: flex; align-items: center; justify-content: center; gap: 40px; padding-block: 14px; }
    .page-home .home-community-stats { flex: 1; max-width: 600px; margin: 0; }
    .page-home .home-community-stats > div { flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; }
    .page-home .home-how { padding-block: 14px; }
    .page-home .home-how .home-section-heading { max-width: none; margin-bottom: 16px; }
    .page-home .home-how .home-section-heading h2 { font-size: 28px; }
    .page-home .home-steps { gap: 16px; }
    .page-home .home-steps > li { padding: 16px 20px; border-radius: 16px; }
    .page-home .home-step-top { margin-bottom: 8px; }
    .page-home .home-step-top svg { width: 28px; height: 28px; }
    .page-home .home-steps h3 { margin-bottom: 8px; font-size: 18px; }
    .page-home .home-steps p { margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
    .page-home .home-how .home-section-footnote { margin-top: 10px; font-size: 12px; line-height: 1.5; }
}
@media (max-width: 800px) {
    .page-home .home-sections { padding-bottom: 56px; }
    .page-home .home-steps { grid-template-columns: 1fr; gap: 16px; }
    .page-home .home-step-top { margin-bottom: 16px; }
    .page-home .home-steps > li { padding: 24px; }
    .page-home .home-calculator-panel { grid-template-columns: 1fr; }
    .page-home .home-calculator-result { border-left: 0; border-top: 1px solid var(--home-panel-edge); }
}
@media (max-width: 480px) {
    .page-home .home-community-stats > div { padding-inline: 10px; }
    .page-home .home-community-stats dd { font-size: 32px; }
    .page-home .home-heading-row { align-items: stretch; flex-direction: column; gap: 18px; }
    .page-home .home-board-columns { grid-template-columns: 24px 1fr auto; gap: 12px; padding: 18px 16px; font-size: 11px; }
    .page-home .home-board-entry { grid-template-columns: 24px 44px minmax(0, 1fr) auto; gap: 10px; padding: 16px; }
    .page-home .home-board-avatar { width: 44px; height: 59px; border-radius: 8px; }
    .page-home .home-board-rank { font-size: 17px; }
    .page-home .home-board-person strong { font-size: 14px; }
    .page-home .home-board-person small { font-size: 11px; }
    .page-home .home-board-score { font-size: 23px; }
    .page-home .home-board-score small { font-size: 9px; }
}

/* A lighter walkthrough, with quiet surfaces and a single next action. */
.page-home .home-how { padding-block: clamp(40px, 5vw, 72px); }
.page-home .home-how .home-section-heading { max-width: none; margin: 0 auto 32px; text-align: center; }
.page-home .home-how .home-section-heading h2 { font-size: clamp(28px, 3vw, 40px); }
.page-home .home-how .home-section-eyebrow { margin-bottom: 10px; }
.page-home .home-how .home-steps { gap: 18px; }
.page-home .home-how .home-steps > li { position: relative; padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255,255,255,.45); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.4), rgba(255,255,255,.16)); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(35,75,99,.035); }
.page-home .home-how .home-step-top { margin-bottom: 28px; }
.page-home .home-how .home-step-number { color: #36718c; font-size: 40px; font-weight: 400; letter-spacing: -.055em; line-height: 1; }
.page-home .home-how .home-steps h3 { margin-bottom: 10px; font-size: 20px; }
.page-home .home-how .home-steps p { max-width: 30ch; margin: 0; color: #31576c; font-size: 15px; line-height: 1.65; }
.page-home .home-how-action { display: flex; justify-content: center; margin-top: 30px; }
.page-home .home-how-action .home-btn { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px; background: rgba(255, 255, 255, .78); color: #07112e; box-shadow: 0 3px 8px rgba(28, 88, 108, .09); font-size: 15px; font-weight: 650; text-decoration: none; }
.page-home .home-how-action .home-btn:hover { background: #fff; box-shadow: 0 4px 12px rgba(28, 88, 108, .12); }
.page-home .home-how .home-community-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; max-width: none; margin: 0 auto 16px; }
.page-home .home-how .home-community-stats > div { display: flex; flex-direction: row; align-items: baseline; gap: 5px; padding: 0; border: 0; }
.page-home .home-how .home-community-stats :is(dt, dd) { color: #315f75; font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.page-home .home-how .home-community-stats dd { font-size: 24px; font-weight: 650; }
@media (max-width: 800px) {
    .page-home .home-how .home-steps { gap: 12px; }
    .page-home .home-how .home-steps > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding: 24px; border-radius: 20px; }
    .page-home .home-how .home-step-top { grid-row: span 2; margin: 0; align-self: start; }
    .page-home .home-how .home-step-number { font-size: 32px; }
    .page-home .home-how .home-steps h3 { font-size: 18px; }
    .page-home .home-how .home-steps p { max-width: none; }
}

/* Keep the community counts at the end of the mobile introduction,
   with the walkthrough beginning below the first screen. */
@media (max-width: 700px) {
    .page-home .home-how { padding-top: 16px; }
    .page-home .home-how .home-community-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 112px; }
    .page-home .home-how .home-community-stats > div { flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding-inline: 10px; }
    .page-home .home-how .home-community-stats > div + div { border-left: 1px solid rgba(35, 75, 99, .24); }
    .page-home .home-how .home-community-stats dt { font-size: clamp(13px, 3.7vw, 15px); }
    .page-home .home-how .home-community-stats dd { font-size: clamp(16px, 4.6vw, 19px); }
}

/* Reserve a compact walkthrough beneath the desktop hero. */
@media (min-width: 1100px) {
    .page-home .home-how { padding-block: 18px 24px; }
    .page-home .home-how .home-section-heading { margin-bottom: 18px; }
    .page-home .home-how .home-section-eyebrow { display: none; }
    .page-home .home-how .home-section-heading h2 { font-size: 28px; }
    .page-home .home-how .home-steps > li { padding: 20px 24px; border-radius: 20px; }
    .page-home .home-how .home-step-top { margin-bottom: 12px; }
    .page-home .home-how .home-step-number { font-size: 28px; }
    .page-home .home-how .home-steps h3 { font-size: 18px; margin-bottom: 6px; }
    .page-home .home-how .home-steps p { font-size: 14px; line-height: 1.5; }
    .page-home .home-how-action { margin-top: 16px; }
    .page-home .home-how .home-community-stats { margin-bottom: 12px; }
}
@media (min-width: 1100px) and (max-height: 850px) {
    .page-home .home-main .home-hero-copy h1 { font-size: clamp(44px, 6.5svh, 62px); line-height: 1.12; }
    .page-home .home-hero-text { margin-top: 20px; font-size: 20px; }
    .page-home .home-hero-ctas { margin-top: 20px; }
    .page-home .home-main .home-btn-primary { min-height: 60px; }
    .page-home .home-showcase { max-width: min(480px, 57svh); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .page-home .home-sections { --home-panel: #edfaff; --home-field: #fff; --home-divider: #aacbd8; }
    .page-home :is(.home-board-panel, .home-calculator-panel) { -webkit-backdrop-filter: none; backdrop-filter: none; }
    .page-home .home-calculator-result { background: #e3f6fc; }
}
