/* A focused, full-screen conversation in the existing Good Neighbors palette. */
.funnel-page { min-height: 100vh; min-height: 100svh; background: var(--canvas); }
.funnel-page [hidden] { display: none !important; }
.funnel-page button, .funnel-page input { -webkit-tap-highlight-color: transparent; }
.funnel-page button { cursor: pointer; }
.funnel-page button:disabled { cursor: wait; }
.funnel-page :where(button, a, input, summary, [tabindex="0"]):focus-visible { outline: 3px solid var(--olive); outline-offset: 4px; box-shadow: none; }
.funnel-header { max-width: 90rem; margin: auto; min-height: 7.25rem; padding: 1.45rem clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.funnel-brand { display: block; width: 12.5rem; min-width: 0; flex: 0 1 auto; color: var(--purple); }
.funnel-brand .logo { display: block; width: 100%; }
.funnel-close { display: inline-flex; align-items: center; gap: .85rem; min-height: 2.75rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.funnel-close svg { width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; padding: .7rem; stroke: currentColor; stroke-width: 1.5; fill: none; }
.funnel-close:hover { color: var(--purple); }
.funnel-preview { padding: .65rem 1.25rem; background: var(--lime); color: var(--olive-deep); text-align: center; font-size: .9rem; font-weight: 650; }
.funnel-layout { max-width: 76rem; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 4rem); margin: auto; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.funnel-welcome { padding-top: 4.3rem; }
.funnel-eyebrow { color: var(--olive); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .17em; margin-bottom: 1.5rem; }
.funnel-welcome__title { font-family: var(--font-display); font-variation-settings: var(--vf-display); color: var(--purple); font-size: clamp(2.6rem, 4vw, 3.65rem); letter-spacing: -.04em; line-height: 1.06; margin-bottom: 1.8rem; }
.funnel-welcome > p:last-of-type { color: var(--ink-2); font-size: 1.075rem; line-height: 1.65; }
.funnel-welcome__note { margin-top: 3.5rem; color: var(--ink-3); font-size: .9rem; }
.funnel-welcome__line { display: block; width: 3rem; height: 1px; background: var(--olive); margin-bottom: 1.25rem; }
.funnel-card { min-width: 0; }
.funnel-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; min-height: 2.75rem; }
.funnel-back { display: inline-flex; align-items: center; justify-content: flex-start; gap: .4rem; min-height: 2.75rem; padding: .35rem .45rem .35rem 0; color: var(--ink-2); background: transparent; border: 0; font-size: .95rem; font-weight: 650; }
.funnel-back:disabled { visibility: hidden; }
.funnel-back svg { width: 1.2rem; height: 1.2rem; stroke: currentColor; stroke-width: 1.7; fill: none; }
.funnel-step { font-size: .875rem; color: var(--ink-3); }
.funnel-progress { display: flex; gap: .4rem; margin-bottom: 2.1rem; }
.funnel-progress span { flex: 1; height: .25rem; border-radius: 1rem; background: #e3dfd3; }
.funnel-progress span.is-done { background: var(--olive); }
.funnel-progress span.is-current { background: var(--purple); }
.funnel-title { font-size: clamp(2.05rem, 2.8vw, 2.85rem); line-height: 1.1; margin-bottom: .95rem; text-align: left; }
.funnel-title:focus { outline: none; }
.funnel-hint { font-size: 1.03rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 1.5rem; }
.funnel-intro { display: none; }
.funnel-intro__name { color: var(--olive-deep); font-size: 1rem; font-weight: 750; line-height: 1.4; margin-bottom: .5rem; }
.funnel-intro__hook { color: var(--ink-2); font-size: .98rem; line-height: 1.6; }
.funnel-value-moment { padding: 1.15rem 1.25rem; background: #edf3e2; border-left: 3px solid var(--olive); border-radius: 0 .8rem .8rem 0; color: var(--olive-deep); margin-bottom: 1.5rem; font-size: 1rem; line-height: 1.65; }
.funnel-options { display: grid; gap: .65rem; margin: 0; padding: 0; border: 0; }
.funnel-option { width: 100%; min-height: 4.35rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 1rem 1.15rem; display: flex; align-items: center; gap: 1rem; text-align: left; background: #fffefa; color: var(--purple); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.funnel-option__text { flex: 1; min-width: 0; }
.funnel-option__label { display: block; font-size: 1.095rem; font-weight: 650; line-height: 1.35; }
.funnel-option__description { display: block; margin-top: .3rem; color: var(--ink-2); font-size: .9rem; font-weight: 400; line-height: 1.5; }
.funnel-option__mark { flex: none; width: 1.6rem; height: 1.6rem; border: 1px solid #c4c5b6; border-radius: 50%; display: grid; place-items: center; color: transparent; }
.funnel-option__mark svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.funnel-option.is-selected { border-color: var(--olive); background: #edf4e1; box-shadow: inset 0 0 0 1px var(--olive); }
.funnel-option.is-selected .funnel-option__mark { background: var(--olive); border-color: var(--olive); color: white; }
.funnel-option:disabled:not(.is-selected) { opacity: .65; }
@media (hover: hover) { .funnel-option:not(:disabled):hover { border-color: var(--olive); background: #f2f5ea; } }
.funnel-next-note { margin-top: 1rem; color: var(--ink-3); font-size: .86rem; display: flex; align-items: center; gap: .5rem; }
.funnel-next-note svg { width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 1.5; fill: none; flex: none; }
.funnel-error { margin-top: 1.15rem; padding: .85rem 1rem; border-left: 3px solid var(--berry); background: #fff0f2; color: #8b173f; font-size: .95rem; border-radius: 0 .5rem .5rem 0; }
.funnel-form { display: grid; gap: 1.3rem; }
.funnel-field { display: grid; gap: .45rem; }
.funnel-field > label { font-size: 1rem; color: var(--purple); font-weight: 650; }
.funnel-field input { width: 100%; min-height: 3.5rem; padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: .7rem; background: white; font-size: 1.05rem; color: var(--ink); }
.funnel-field input[aria-invalid="true"] { border-color: var(--berry); }
.funnel-field-error { font-size: .9rem; color: #8b173f; }
.funnel-question-form { display: grid; gap: 1.75rem; }
.funnel-zip-panel { min-width: 0; }
.funnel-zip-display { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(4px, 1.5vw, .6rem); }
.funnel-zip-digit { display: grid; place-items: center; min-width: 0; min-height: 3.5rem; padding: .3rem 0; border: 1px solid var(--line-strong); border-radius: .6rem; background: #f7f5ed; color: var(--ink-3); font-family: var(--font-display); font-size: clamp(1.35rem, 6vw, 2rem); line-height: 1.2; }
.funnel-zip-digit.is-filled { background: #edf3e2; color: var(--purple); border-color: var(--olive); }
.funnel-zip-counter { min-height: 1.6em; margin: .65rem 0 1rem; font-size: .9rem; line-height: 1.6; color: var(--ink-2); text-align: center; }
.funnel-zip-keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; border-radius: var(--r-md); }
.funnel-zip-key { display: grid; place-items: center; min-width: 0; min-height: 3.5rem; padding: .4rem .25rem; border: 1px solid var(--line-strong); border-radius: .75rem; background: #fffefa; color: var(--purple); font-size: 1.4rem; font-weight: 650; line-height: 1.35; }
.funnel-zip-key--utility { background: #f1f1e9; font-size: 1rem; }
.funnel-zip-key svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.funnel-zip-key:disabled, .funnel-zip-key[aria-disabled="true"] { opacity: .4; cursor: default; }
.funnel-zip-key:not(:disabled):active { background: #e5efda; border-color: var(--olive); }
.funnel-zip-instructions { margin-top: 1rem; font-size: .875rem; line-height: 1.6; color: var(--ink-2); }
.funnel-zip-panel .funnel-field-error { margin-top: .75rem; }
@media (hover: hover) { .funnel-zip-key:not(:disabled):hover { background: #edf3e2; border-color: var(--olive); } }
.funnel-scale { padding: 1.5rem; background: #f2f4ec; border: 1px solid var(--line); border-radius: var(--r-lg); }
.funnel-scale__value-row { display: flex; align-items: center; justify-content: center; gap: 2rem; margin-bottom: 1.1rem; }
.funnel-scale__number { display: grid; justify-items: center; min-width: 0; flex: 0 1 7rem; }
.funnel-scale__value { font-family: var(--font-display); font-variation-settings: var(--vf-display); font-size: clamp(2rem, 15vw, 4.5rem); line-height: 1; color: var(--purple); }
.funnel-scale__out-of { font-size: .9rem; color: var(--ink-3); margin-top: .35rem; }
.funnel-scale__adjust { width: 3rem; height: 3rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--purple); background: white; font-size: 1.65rem; line-height: 1; display: grid; place-items: center; padding: 0; flex: none; }
.funnel-scale__adjust:disabled { opacity: .35; cursor: default; }
.funnel-scale__input { width: 100%; height: 3rem; display: block; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; accent-color: var(--olive); }
.funnel-scale__input::-webkit-slider-runnable-track { height: .5rem; background: #d1ddbb; border-radius: 1rem; }
.funnel-scale__input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 2rem; height: 2rem; margin-top: -.75rem; background: var(--olive); border: 3px solid white; border-radius: 50%; box-shadow: 0 1px 5px #33431e38; }
.funnel-scale__input::-moz-range-track { height: .5rem; background: #d1ddbb; border-radius: 1rem; }
.funnel-scale__input::-moz-range-thumb { width: 1.65rem; height: 1.65rem; background: var(--olive); border: 3px solid white; border-radius: 50%; box-shadow: 0 1px 5px #33431e38; }
.funnel-scale__ends { display: flex; justify-content: space-between; color: var(--ink-2); font-size: .9rem; padding-inline: .55rem; }
.funnel-scale__instruction { margin-top: 1rem; color: var(--ink-2); font-size: .9rem; line-height: 1.6; text-align: center; }
.funnel-review { border-block: 1px solid var(--line); padding: .8rem 0; }
.funnel-review summary { cursor: pointer; color: var(--purple); font-size: .95rem; font-weight: 650; list-style: revert; min-height: 2.75rem; align-content: center; }
.funnel-review__list { margin-top: .65rem; display: grid; gap: .4rem; }
.funnel-review__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; }
.funnel-review__row p { font-size: .925rem; color: var(--ink-2); }
.funnel-review__row small { display: block; font-size: .8rem; color: var(--ink-3); margin-bottom: .1rem; }
.funnel-edit { min-height: 2.75rem; min-width: 2.75rem; border: 0; background: transparent; color: var(--olive-deep); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.funnel-submit { min-height: 3.6rem; padding: .9rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--purple); border-radius: var(--r-pill); color: var(--cream); background: var(--purple); font-weight: 700; font-size: 1.05rem; }
.funnel-submit svg { width: 1.3rem; height: 1.3rem; stroke: currentColor; stroke-width: 1.7; fill: none; }
.funnel-submit > span:first-child { min-width: 0; text-align: left; }
.funnel-submit > span:last-child { flex: none; }
.funnel-submit:disabled { opacity: .65; }
.funnel-submit:not(:disabled):hover { background: var(--purple-deep); }
.funnel-privacy { color: var(--ink-3); font-size: .85rem; line-height: 1.6; }
.funnel-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); }
.funnel-success { padding: 2.8rem 0; }
.funnel-success__mark { width: 4.25rem; height: 4.25rem; display: grid; place-items: center; border-radius: 50%; color: var(--olive); background: #e9f1dc; margin-bottom: 1.8rem; }
.funnel-success__mark svg { width: 2rem; height: 2rem; stroke: currentColor; stroke-width: 1.8; fill: none; }
.funnel-success .funnel-hint { max-width: 32rem; }
.funnel-success .funnel-submit { margin-top: 2rem; width: max-content; max-width: 100%; gap: 2.5rem; }
.funnel-fallback { padding-top: 4rem; }
.funnel-fallback h1 { margin-bottom: 1.5rem; }
.funnel-fallback p + p { margin-top: 1rem; }
.funnel-email { display: inline-block; margin-top: 1.5rem; text-decoration: underline; text-underline-offset: .2em; color: var(--olive-deep); font-weight: 650; }
.funnel-bottom { margin: 1rem auto 0; padding: 1.4rem 1.25rem 2rem; text-align: center; font-size: .825rem; color: var(--ink-3); }
/* Budget vertical space against the actual desktop viewport, not its width. */
@media (min-width: 901px) {
  .funnel-page { display: flex; flex-direction: column; }
  .funnel-header { width: 100%; min-height: 0; margin-block: 0; padding-block: .6rem; }
  .funnel-brand { width: clamp(6.75rem, 14svh, 9rem); }
  .funnel-preview { padding-block: .25rem; font-size: .8rem; line-height: 1.5; }
  .funnel-layout { width: 100%; flex: 1; margin-block: 0; padding-block: clamp(.75rem, 2.2svh, 1.8rem); align-content: center; }
  .funnel-welcome { padding-top: 0; align-self: center; }
  .funnel-eyebrow { margin-bottom: .85rem; }
  .funnel-welcome__title { font-size: clamp(2rem, 4.8svh, 3.25rem); margin-bottom: 1.2rem; }
  .funnel-welcome > p:last-of-type { font-size: 1rem; line-height: 1.5; }
  .funnel-welcome__note { margin-top: clamp(1rem, 3svh, 2rem); }
  .funnel-welcome__line { margin-bottom: .85rem; }
  .funnel-top { margin-bottom: .25rem; }
  .funnel-progress { margin-bottom: clamp(.5rem, 1.5svh, 1rem); }
  .funnel-title { font-size: clamp(1.75rem, 4.2svh, 2.5rem); line-height: 1.12; margin-bottom: .6rem; }
  .funnel-hint { font-size: 1rem; line-height: 1.45; margin-bottom: clamp(.6rem, 1.6svh, 1rem); }
  .funnel-options { gap: clamp(6px, 1svh, 10px); }
  .funnel-option { min-height: clamp(48px, 6.4svh, 64px); padding: clamp(.45rem, 1svh, .8rem) 1rem; }
  .funnel-option__label { font-size: 1rem; }
  .funnel-next-note { margin-top: .65rem; }
  .funnel-question-form { gap: 1rem; }
  .funnel-zip-digit { min-height: 2.75rem; }
  .funnel-zip-counter { margin-block: .35rem .6rem; }
  .funnel-zip-keypad { gap: .4rem; }
  .funnel-zip-key { min-height: 2.75rem; font-size: 1.25rem; }
  .funnel-zip-key--utility { font-size: .95rem; }
  .funnel-zip-instructions { margin-top: .6rem; }
  .funnel-scale { padding: 1rem 1.25rem; }
  .funnel-scale__value-row { margin-bottom: .35rem; }
  .funnel-scale__value { font-size: clamp(2.75rem, 7.5svh, 4rem); }
  .funnel-scale__instruction { margin-top: .5rem; }
  .funnel-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .funnel-form > :not([data-contact-field]) { grid-column: 1 / -1; }
  .funnel-field input { min-height: 3rem; padding: .6rem .8rem; font-size: 1rem; }
  .funnel-value-moment { padding: .75rem 1rem; margin-bottom: .9rem; font-size: .95rem; line-height: 1.45; }
  .funnel-review { padding-block: .25rem; }
  .funnel-submit { min-height: 3rem; padding-block: .6rem; font-size: 1rem; }
  .funnel-bottom { flex: none; margin: 0; padding-block: .3rem; font-size: .75rem; line-height: 1.5; }
}
@media (min-width: 901px) and (max-height: 700px) {
  .funnel-layout { padding-block: .5rem; }
  .funnel-form { row-gap: .5rem; }
  .funnel-field { gap: .25rem; }
  .funnel-field > label { line-height: 1.3; }
  .funnel-value-moment { padding-block: .65rem; margin-bottom: .65rem; }
  .funnel-review { padding-block: 0; }
  .funnel-bottom { display: none; }
}
@media (max-width: 900px) {
  .funnel-layout { display: block; max-width: 42rem; padding-top: 1.25rem; }
  .funnel-welcome { display: none; }
  .funnel-intro { display: block; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.65rem; }
  .funnel-header { min-height: 6rem; }
  .funnel-title { font-size: 2.35rem; }
}
@media (max-width: 520px) {
  .funnel-header { min-height: 5.5rem; padding-block: 1.15rem; }
  .funnel-brand { width: 10.25rem; }
  .funnel-close span { display: none; }
  .funnel-layout { padding: 1rem 1.25rem 1.5rem; }
  .funnel-progress { margin-bottom: 1.65rem; }
  .funnel-title { font-size: clamp(1.9rem, 7.3vw, 2.35rem); }
  .funnel-hint { margin-bottom: 1.25rem; font-size: 1rem; }
  .funnel-option { padding: .95rem 1rem; min-height: 4rem; }
  .funnel-option__label { font-size: 1.025rem; }
  .funnel-option__description { font-size: .875rem; }
  .funnel-bottom { margin-top: 0; padding-top: .75rem; }
  .funnel-success { padding-top: 2rem; }
  .funnel-scale { padding: 1.25rem 1rem; }
  .funnel-scale__value-row { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .funnel-page *, .funnel-page *::before, .funnel-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
