/* Canvas Scout — the web sign-up's look (start.html; docs/superpowers/specs/2026-11-24-onboarding-design.md, mockup
   docs/design/onboarding/onboarding-after.html rows A and B). Light pages, one question per screen, a segmented bar and a
   Continue held at the bottom. The Where step's map keeps today's dark look (Devin, 2026-11-24), all of it in
   county-map.css; this file only places it. Loaded after site.css and county-map.css, by start.html only. */
/* ---------- Sign-up steps (2026-11-24 onboarding) ---------- */
.start-body { --su-bg: #FFFFFF; --su-fg: #0B1A2E; --su-muted: #56606E; --su-line: rgba(11,26,46,.13); --su-raise: #F4F1EC; --su-shadow: 0 1px 2px rgba(11,26,46,.10), 0 4px 14px rgba(11,26,46,.10); --su-sheet: 46svh; background: var(--su-bg); color: var(--su-fg); }
.start-body .split-form { background: var(--su-bg); }
.start-body .split-form .inner { margin: 0; gap: 16px; }

/* the head: Back and the four-step bar (What · Who · Where · Account) */
.su-head { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.su-back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--su-line); background: var(--su-bg); color: var(--su-fg); cursor: pointer; }
.su-back:hover { border-color: var(--su-fg); }
.su-back .i { width: 20px; height: 20px; }
.su-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; list-style: none; padding: 0; margin: 0; flex: 1; min-width: 0; }
.su-bar li { height: 4px; border-radius: 2px; background: var(--su-line); }
.su-bar li.on { background: var(--su-fg); }

/* the question, the reason line under it, and the small print */
.start-step { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.start-step :is(h1, h2) { font-size: 28px; font-weight: 600; line-height: 1.15; text-align: left; letter-spacing: -.01em; margin: 0; }
.start-step :is(h1, h2):focus { outline: none; } /* (focused by the step change for screen readers: tabindex=-1, not a control) */
.su-why { font-size: 15px; line-height: 1.4; color: var(--su-muted); margin: -8px 0 0; }
.su-why .link-arrow { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.su-note { font-size: 13px; line-height: 1.4; color: var(--su-muted); text-align: center; margin: 0; }
.su-line { font-size: 13px; line-height: 1.4; color: var(--su-muted); margin: 0; }

/* Continue: held at the bottom of the screen while the step is on it; the solid band above it keeps text from running
   into it (no gradient over text). Pale (aria-disabled, never disabled) until the step is answered. */
.su-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 10px; background: var(--su-bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.su-foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: var(--su-bg); pointer-events: none; }
.su-go { min-height: 52px; border-radius: 12px; background: var(--su-fg); color: #FDB685; font-weight: 600; width: 100%; border-color: var(--su-fg); font-size: 17px; }
.su-go:hover, .su-go:active { transform: none; }
.su-go::after { display: none; }
.su-go[aria-disabled="true"] { background: #E4E1DB; color: #56606E; border-color: #E4E1DB; }
.start-body .form-error { margin: 0; }

/* fields */
.start-body .input { border-radius: 12px; }
.start-body .field label { font-size: 13px; font-weight: 500; }
.start-body .combo-list { border-radius: 12px; border-color: var(--su-line); box-shadow: var(--su-shadow); }
.start-body .combo-list li { min-height: 44px; align-content: center; border-radius: 8px; }
.start-body .combo-list li.is-active, .start-body .combo-list li:hover { background: var(--su-raise); }

/* What: the picked service is an Ink slab with a check; tapping it searches again */
.su-picked { background: var(--su-fg); color: #fff; border-radius: 12px; min-height: 52px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 0; text-align: left; font: inherit; cursor: pointer; }
.su-picked > span:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.su-picked b { font-size: 15px; font-weight: 600; line-height: 1.25; }
.su-picked small { font-size: 13px; line-height: 1.3; color: rgba(255,255,255,.72); }
.su-picked .i { width: 20px; height: 20px; color: #fff; }
.start-body .sell-more { margin: 4px 0 0; gap: 0; }
.start-body .sell-more legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin: 0 0 10px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--su-muted); }
.start-body .sell-more legend .muted { font: 500 13px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--su-muted); }
/* chips (extra services, industry search results): 8 px corners, Ink when picked (white text; peach stays on buttons) */
.start-body .chips-select span { min-height: 44px; padding: 0 12px; border-radius: 8px; border-color: var(--su-line); font-size: 13px; font-weight: 500; }
.start-body .chips-select input:checked + span { color: #fff; }
.start-body .ind-cat { min-height: 44px; border-radius: 8px; border-color: var(--su-line); }
.start-body .ind-cat[aria-pressed="true"] { color: #fff; }

/* Who: the count band, then the industries as rows (icon, name and examples, a round check) */
.start-body .ind-picker { gap: 12px; min-width: 0; border: 0; padding: 0; margin: 0; }
.su-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin: 0 -16px; padding: 0 16px; background: var(--su-raise); }
#ind-count { font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--su-muted); }
.su-band .ind-browse { min-height: 44px; padding: 0; font-size: 13px; font-weight: 500; color: var(--su-fg); text-decoration: underline; text-underline-offset: 3px; }
.start-body .ind-chips { display: grid; gap: 0; }
.ind-chips label { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; min-height: 56px; border-bottom: 1px solid var(--su-line); column-gap: 14px; align-items: center; align-content: center; padding: 8px 0; }
.ind-chips label > span { display: contents; font-size: 15px; font-weight: 500; line-height: 1.25; }
.ind-chips label > span > .i { grid-column: 1; grid-row: 1 / span 2; width: 24px; height: 24px; }
.ind-chips .ind-ex { grid-column: 2; grid-row: 2; font-size: 13px; line-height: 1.3; color: var(--su-muted); }
.ind-chips label > span::after { content: ""; grid-column: 3; grid-row: 1 / span 2; box-sizing: border-box; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #8A919B; }
.ind-chips label > span::before { content: ""; grid-column: 3; grid-row: 1 / span 2; justify-self: center; z-index: 1; width: 6px; height: 11px; margin-top: -3px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); visibility: hidden; }
.ind-chips input:checked + span::after { background: var(--su-fg); border-color: var(--su-fg); }
.ind-chips input:checked + span::before { visibility: visible; }
.ind-chips label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: -2px; }
.start-body .ind-chips input:checked + span { color: var(--su-fg); }

/* Where: the territory, flat on the page (or the sheet): chips for its counties, the number, the 5-stop meter */
.start-body .terr-box { padding: 0; border: 0; border-radius: 0; background: none; gap: 12px; }
.start-body .terr-head .label { color: var(--su-muted); font-size: 11px; }
.start-body .terr-clear { min-height: 44px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--su-fg); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.start-body .terr-rows { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; overflow: visible; }
.start-body .terr-row { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 8px; background: var(--su-fg); color: #fff; font-size: 13px; font-weight: 500; }
.start-body .terr-row:hover { background: var(--su-fg); }
.start-body .terr-row:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.start-body .terr-row input { position: absolute; opacity: 0; pointer-events: none; }
.start-body .terr-row .ct { font-size: 11px; color: rgba(255,255,255,.72); }
.start-body .terr-row:not(.terr-state)::after { content: "×"; font-size: 17px; line-height: 1; }
.start-body .terr-x { width: 44px; height: 44px; margin-right: -12px; border: 0; border-radius: 8px; color: #fff; font-size: 17px; } /* (the whole chip height, to its right edge: a 44 px target) */
.start-body .terr-x:hover { color: #fff; }
.start-body .terr-meter { padding: 0; border: 0; border-radius: 0; background: none; gap: 6px; }
#sum-est { color: var(--su-fg); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
#sum-cap { font-size: 13px; color: var(--su-muted); }
#sum-plan:empty { display: none; }
#sum-est-label { font-size: 13px; line-height: 1.4; color: var(--su-muted); }
#plan-chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font: 500 11px/1.25 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--su-muted); }
#plan-chart span { padding: 0; border: 0; border-radius: 0; background: none; }
#plan-chart span::before { content: ""; display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: var(--su-line); }
#plan-chart span.on, #plan-chart span:has(~ .on) { background: none; }
#plan-chart span.on::before, #plan-chart span:has(~ .on)::before { background: var(--su-fg); }
#plan-chart span.on { color: var(--su-fg); font-weight: 600; }
.start-body .terr-limit { border-radius: 12px; background: var(--su-raise); font-size: 13px; }
.start-body .terr-limit.over { background: rgba(194,65,12,.08); }
.start-body .terr-limit button { min-height: 44px; border-radius: 8px; color: #fff; }
.start-body .terr-near { gap: 8px; }
.start-body .terr-near .label { font-size: 11px; color: var(--su-muted); }
.start-body .terr-near .chip { min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--su-line); background: var(--su-bg); color: var(--su-fg); font-size: 13px; font-weight: 500; }
.start-body .terr-near .chip:hover { background: var(--su-raise); border-color: var(--su-fg); }
.start-body .terr-near .chip small { font-size: 11px; color: var(--su-muted); }

/* Account: Google, the fields, the plan, the Terms */
.start-body .btn-google { min-height: 48px; border-radius: 12px; font-size: 15px; }
.start-body .or-line { font-weight: 500; color: var(--su-muted); }
.start-body .or-line::before, .start-body .or-line::after { border-top-color: var(--su-line); }
.start-body .plan-seg span { border-radius: 12px; border-color: var(--su-line); }
.start-body .plan-seg input:checked + span { color: #fff; }
.start-body .plan-seg input:checked + span em { color: #fff; }
.start-body .check { font-size: 13px; color: var(--su-muted); }
.start-body .disclosure { border-radius: 12px; background: var(--su-raise); }

/* Where's own Log in and Terms line: the page's top and foot are hidden behind the phone's map sheet, so they sit here */
.su-legal { display: none; }
.su-legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
/* the map's zoom buttons: 44 px targets */
.start-page .map-zoom { gap: 8px; }
.start-page .map-zoom button { width: 44px; height: 44px; }

/* tap targets: every button and link that stands alone is 44 px (links inside a sentence keep the sentence's line) */
.start-body .split-form .top a, .start-body .split-form > .form-note a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.start-body .split-form > .form-note { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.start-body .split-form .top .form-note { display: inline-flex; align-items: center; gap: 6px; }
.su-why .link-arrow { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.start-body .ind-browse, .start-body .terr-clear { min-height: 44px; min-width: 44px; }
.start-body .check { min-height: 44px; align-items: center; }
.start-body .pw-eye { width: 44px; height: 44px; right: 2px; }
.start-body .pw-wrap > input { padding-right: 52px; }
.su-legal a { min-width: 44px; justify-content: center; }

/* Account: the full renewal terms are in the step, under the Terms boxes; the held foot carries the one-line version above Create account */
.su-terms { margin: 0; font-size: 11px; line-height: 1.35; color: var(--su-muted); }
.su-terms strong { color: var(--su-fg); font-weight: 600; }

/* the map's top band (an overlay the county fitting keeps clear of: the search sits there on a phone) */
.su-map-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; pointer-events: none; }

@media (max-width: 900px) { /* Sign-up phone */
  .start-body .split-form { padding: calc(8px + env(safe-area-inset-top)) 16px 24px; }
  .start-body .split-form .inner { padding: 20px 0 8px; }
  .su-head { margin-top: 12px; }
  .su-bar li span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .su-foot { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .start-page:not([data-step="where"]) .split-art { display: none; }
  /* Where: the dark map is the screen, the search on its top, the step a sheet under it */
  .start-page[data-step="where"] .split-art { position: fixed; inset: 0 0 var(--su-sheet) 0; min-height: 0; order: 0; z-index: 1; }
  .start-page[data-step="where"] .start-step[data-step="where"] { position: fixed; left: 0; right: 0; bottom: 0; max-height: calc(var(--su-sheet) + 16px); min-height: calc(var(--su-sheet) + 16px); overflow: auto; overscroll-behavior: contain; align-content: start; background: var(--su-bg); border-radius: 16px 16px 0 0; box-shadow: var(--su-shadow); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 4; }
  .start-page[data-step="where"] .start-step[data-step="where"]::before { content: ""; height: 4px; }
  .start-page[data-step="where"] .su-foot { bottom: calc(-12px - env(safe-area-inset-bottom)); } /* (over the sheet's bottom padding: nothing shows under it) */
  .start-page[data-step="where"] .start-step[data-step="where"] h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .start-page[data-step="where"] #place-field { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 68px; right: 16px; z-index: 5; }
  .start-page[data-step="where"] #place-field .input { border-color: transparent; box-shadow: var(--su-shadow); }
  .start-page[data-step="where"] #place-field .input:focus { border-color: var(--blue); }
  /* Back beside the search (as in the mockup), the bar in the sheet's top edge where a handle would be */
  .start-page[data-step="where"] .su-back { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 16px; z-index: 5; border-color: transparent; box-shadow: var(--su-shadow); }
  .start-page[data-step="where"] .su-bar { position: fixed; left: 16px; right: 16px; bottom: calc(var(--su-sheet) - 12px); z-index: 5; padding: 12px 0; background: var(--su-bg); }
  .start-page[data-step="where"] .split-form > .top, .start-page[data-step="where"] .split-form > .form-note { display: none; }
  .su-map-top { height: calc(64px + env(safe-area-inset-top)); }
  .start-page[data-step="where"] .su-legal { display: block; }
  .start-hud, .start-lock { display: none; }
}

@media (min-width: 901px) { /* Sign-up desktop */
  .start-page.split { grid-template-columns: 560px minmax(0, 1fr); }
  .start-body .split-form { padding: 32px 48px; }
  .split-form .inner { max-width: 464px; padding: 32px 0 40px; }
  .su-head { margin-top: 32px; padding-bottom: 22px; min-height: 66px; } /* (the same height with or without Back, so the question doesn't move between steps 1 and 2) */
  .su-bar li { position: relative; }
  .su-bar li span { position: absolute; left: 0; top: 12px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--su-muted); white-space: nowrap; }
  .su-bar li.on span { color: var(--su-fg); }
  .su-foot { margin: 0 -48px; padding-left: 48px; padding-right: 48px; }
  .su-band { margin: 0 -48px; padding: 0 48px; }
  .su-map-top { display: none; }
}
