/* Start with Sōl — Hero onboarding (5 pages).
   One narrow column per page; every page opens with a one-sentence purpose banner. */
:root {
  color-scheme: light;
  /* Sōl HQ look: page #F5F3EC, cards #FBFBF8 on #D9D4C7, ink #14213D, blue #1F63BF. */
  --bg: #F5F3EC; --surface: #FBFBF8; --ink: #14213D; --muted: #5A6170; --line: #D9D4C7;
  --accent: #1F63BF; --accent-dark: #174C93; --accent-ink: #FFFFFF; --accent-soft: #E6EEF9;
  --brass: #9A7424; --warn-bg: #FFF6E0; --warn-ink: #6B4E0F;
  --good: #1F7A4D; --good-soft: #E2F3EA; --bad: #B3261E;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1821; --surface: #15222E; --ink: #E6EDF3; --muted: #9AAAB8; --line: #2A3A48;
    --accent: #6FA8DC; --accent-ink: #0E1821; --accent-soft: #1B3044;
    --brass: #D4AE5C; --warn-bg: #2E2614; --warn-ink: #EBCB85;
    --good: #6CCB98; --good-soft: #16342A; --bad: #F2877F; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--accent); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.upper { text-transform: uppercase; }

.preview-bar { background: var(--warn-bg); color: var(--warn-ink); text-align: center; font-size: 13px; padding: 8px 16px; }

/* Numbered, semantic navigation; Bootstrap controls use the shared theme tokens. */
/* Step strip under the HQ header: "Step 2 of 5 · Plan" and five small step buttons. */
html[data-page="start"] .setup-progress { max-width: 760px; margin: 0 auto; padding: 16px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html[data-page="start"] .setup-progress #stepPosition { margin: 0 !important; color: var(--muted); font-size: 15px; }
.setup-progress ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.setup-progress li { position: relative; }
html[data-page="start"] .setup-progress button { min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; justify-content: center; }
html[data-page="start"] .setup-progress li.on button { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.setup-progress .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 700; font-size: 13px; }
.setup-progress li.done .num { background: var(--good); color: #fff; }
.setup-progress .label { white-space: nowrap; }
.setup-progress li:not(.on) .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.setup-progress .step-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page */
main { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; }
.page { display: grid; gap: 16px; }
.purpose { margin: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 12px 16px; font-weight: 600; }
h1 { font: 700 clamp(34px, 8vw, 44px)/1.05 var(--display); margin: 4px 0 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font: 700 22px/1.2 var(--display); margin: 8px 0 0; }
h3 { font: 700 20px/1.2 var(--display); margin: 0; }
.lede { margin: 0; color: var(--muted); }
.lede:empty { display: none; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.notice { border-radius: 8px; padding: 12px 14px; font-size: 14px; background: var(--accent-soft); color: var(--ink); margin-bottom: 8px; }
.notice.error { background: #FDECEA; color: #7A1C15; }
.notice.ok { background: var(--good-soft); color: var(--ink); }
@media (prefers-color-scheme: dark) { .notice.error { background: #3A1A18; color: #F7C1BB; } }
.note { margin: 0; background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.fine { margin: 0; font-size: 13px; color: var(--muted); }
.center { text-align: center; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label, .field .label, .promo label { font-weight: 600; font-size: 15px; }
.field small { color: var(--muted); font-size: 13px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
textarea { resize: vertical; min-height: 64px; }
.invalid input, .invalid select, .invalid textarea, input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 14px; background: var(--bg); }
.seg input { accent-color: var(--accent); }

/* Buttons */
button { cursor: pointer; border-radius: 8px; border: 1px solid var(--accent); padding: 13px 18px; font-weight: 600; line-height: 1.1; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { background: var(--accent); color: var(--accent-ink); }
.secondary { background: transparent; color: var(--accent); }
.wide { width: 100%; }
.link { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; text-decoration: underline; }
.link.inline { padding: 0; font-weight: 600; }
.center-block { justify-self: center; }
.google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: var(--surface); color: var(--ink); border-color: var(--line); }
.auth { display: grid; gap: 10px; }
.auth > .link { justify-self: center; }
.signed-box { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--good-soft); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Plans */
/* Plan page (mockup start-plan.html): real radio inputs styled as cards. */
/* HQ steps (plan, texting): no box around the page, 640px wide, as in the plan mockup. */
html[data-page="start"] .page.hq-step { background: transparent; border: 0; padding: 0; gap: 12px; }
html[data-page="start"] main:has(.hq-step:not([hidden])) { max-width: 640px; }
.hq-step .input-group { flex-wrap: nowrap; }
.hq-step .input-group > .form-control { min-width: 0; }
.hq-step h1 { margin-bottom: 4px; }
.hq-step fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin: 0; }
.plan .form-check-input { width: 20px; height: 20px; margin: 0; cursor: pointer; background-color: #fff; }
.plan .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.plan:has(.form-check-input:checked) { background: var(--accent-soft); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan:has(.form-check-input:disabled) { cursor: default; }
.plan .desc { color: var(--muted); }
.plan .tag { color: var(--accent); }
.hq-step .form-control, .hq-step .form-select { min-height: 46px; background-color: #fff; }
.stripe-slot { min-height: 46px; }
.stripe-slot.loading, .stripe-slot.preview { border: 1px dashed var(--line); border-radius: 10px; background: #fff; color: #8C919B; display: flex; align-items: center; padding: 10px 12px; }
.plan-unavailable { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 14px; }
.btn-go { min-height: 54px; font-size: 19px; font-weight: 700; }
html[data-page="start"] .hq-step .btn-primary { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); --bs-btn-disabled-bg: var(--accent); --bs-btn-disabled-border-color: var(--accent); }
html[data-page="start"] .hq-step .btn-outline-primary { --bs-btn-color: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-hover-bg: var(--accent); --bs-btn-hover-border-color: var(--accent); --bs-btn-active-bg: var(--accent-dark); --bs-btn-bg: #fff; }
/* Texting step: three short groups, each a white box like the plan cards. */
.texting-form { display: grid; gap: 16px; }
.hq-step .group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 20px; display: grid; gap: 14px; }
.hq-step fieldset.group { padding: 16px 20px 20px; border: 1px solid var(--line); }
.hq-step .group > legend { float: left; width: 100%; margin: 0; font-family: "Barlow Condensed", system-ui, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); }
.hq-step .group > legend + * { clear: left; }
.hq-step .optional { font-weight: 400; color: var(--muted); font-size: 13px; }
.hq-step .status-line { display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 14px; }
.hq-step .status-line i { color: var(--accent); }
.hq-step .status-line:has(#textingReadiness:empty) { display: none; }
@media (max-width: 575.98px) { .hq-step .group, .hq-step fieldset.group { padding: 14px 16px 16px; } }
/* Inline alerts (/shared/inline-alert.js) sit next to what caused them. */
.sw-inline-alert { border-radius: 10px; }
.sw-inline-alert:focus { outline: 3px solid var(--accent); outline-offset: 2px; }
.checkout-mount:empty { display: none; }
.checkout-mount { min-height: 200px; }

/* Texting */
.verify { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }
.verify p { margin: 0; }

/* Payments statement preview */
.statement { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 12px 14px; font: 13px/1.7 var(--mono); }
.statement div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.statement .me { color: var(--ink); font-weight: 600; }

/* Dashboard */
main:has(.wide-page:not([hidden])) { max-width: 960px; }
.dash { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: start; }
.dash-nav { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: 12px; }
.dash-nav a { text-decoration: none; color: var(--muted); padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.dash-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dash-main { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 991.98px) {
  main:has(.wide-page:not([hidden])) { max-width: 640px; }
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; }
  .dash-nav a { white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
}
.number-card { display: flex; flex-wrap: wrap; gap: 16px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.number-card b { display: block; font: 700 24px/1.2 var(--display); margin-top: 4px; }
.number-card b.mono { font: 500 20px/1.4 var(--mono); }
.checklist { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.checklist li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.checklist .done .ico { background: var(--good); border-color: var(--good); color: var(--accent-ink); }
.checklist .wait .ico { border-color: var(--brass); color: var(--brass); }
.checklist .soon .ico { border-style: dashed; }
.checklist b { display: block; font-weight: 600; }
.checklist small { display: block; color: var(--muted); font-size: 13px; }
.checklist .status { font-size: 13px; font-weight: 600; white-space: nowrap; }
.checklist .done .status { color: var(--good); }
.checklist .wait .status { color: var(--brass); }
.checklist .soon .status { color: var(--muted); }
.checklist-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.checklist-actions button { padding: 8px 14px; font-size: 14px; }
.hours { display: grid; gap: 8px; }
.hours .day { display: grid; grid-template-columns: 110px auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.hours .times { display: flex; gap: 6px; align-items: center; }
.hours .times input { min-height: 44px; padding: 6px 8px; width: auto; min-width: 0; }
@media (max-width: 575.98px) { .hours .day { grid-template-columns: 1fr auto; } .hours .times { grid-column: 1 / 3; } }
.result:empty { display: none; }
.result { background: var(--bg); border-radius: 8px; padding: 12px 14px; font-size: 14px; display: grid; gap: 8px; }
.result code { font: 600 20px/1.3 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; justify-self: start; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.foot { max-width: 960px; margin: 0 auto; padding: 24px 16px 40px; color: var(--muted); font-size: 13px; text-align: center; }

.panel p { margin: 0; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.phones > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.phones small { color: var(--muted); font-size: 13px; }
.test { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.test h4 { margin: 0; font: 700 17px/1.3 var(--display); display: flex; align-items: center; gap: 10px; }
.tnum { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font: 600 13px/1 var(--mono); flex: none; }
.expect { background: var(--good-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.trouble { border-top: 1px solid var(--line); padding: 12px; font-size: 14px; }
.trouble summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.trouble ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Bootstrap is the control/grid foundation; Travis's theme remains the design. */
:root { --bs-body-font-family: var(--body); --bs-body-color: var(--ink); --bs-body-bg: var(--bg); }
.btn { border-radius: 8px; border: 1px solid var(--accent); padding: 13px 18px; font-weight: 600; line-height: 1.1; }
.btn.link { border: 0; padding: 4px 0; }
.btn.primary:hover, .btn.primary:focus { background: var(--accent); color: var(--accent-ink); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent); }
.btn.google { border-color: var(--line); }
.form-control:focus, .form-select:focus { background-color: var(--bg); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.form-control, .field select.form-select, .field textarea.form-control, .check .form-check-input { border-color: #8797a5; }
.field input[aria-invalid=true], .field select[aria-invalid=true], .field textarea[aria-invalid=true] { border-color: var(--bad); }
input#ein { max-width: 14ch; }
input[type=tel] { max-width: 24ch; }
input#statementDescriptor { max-width: 28ch; }
input#areaCode { max-width: 8ch; }
#numberSearch { display: grid; gap: 12px; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 101; padding: 12px; background: var(--surface); }
.skip-link:focus { top: 8px; }
.checklist li > :nth-child(2) { min-width: 0; }
.checklist .status { white-space: normal; max-width: 15ch; }
@media (max-width: 480px) { .card, .panel { padding: 16px; } .checklist li { gap: 8px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Keep keyboard focus visible above Bootstrap button resets. */
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.setup-progress button, .btn.link, .checklist-actions button { min-height: 44px; }

/* Give checklist actions their own row on small screens and at high zoom. */
@media (max-width: 480px) {
  .checklist li { grid-template-columns: 24px minmax(0, 1fr); }
  .checklist-actions { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; max-width: 100%; }
  .checklist-actions .status { max-width: 100%; }
  .checklist li > :nth-child(2) { overflow-wrap: anywhere; }
}

/* Page canvas and inset are explicit: the shared theme also styles .page. */
html[data-page="start"] main { max-width: 760px; padding-top: 24px; }
html[data-page="start"] .page { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; gap: 24px; }
html[data-page="start"] main:has(.wide-page:not([hidden])) { max-width: 1080px; }
@media (max-width: 575.98px) {
  html[data-page="start"] .page { padding: 16px; gap: 20px; }
  html[data-page="start"] .page > .card { padding: 16px; }
}


.registration-fees { padding:0; list-style:none; }
.registration-fees li { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.registration-fees strong { flex-shrink:0; }
#quoteText { overflow-wrap:anywhere; }
.registration-policy-links { display:flex; gap:20px; flex-wrap:wrap; }
@media(max-width:575.98px){.registration-fees li{flex-direction:column;gap:4px;}#textingContinuation .actions{flex-direction:column;align-items:stretch;}}
#textingForm { grid-template-columns: minmax(0, 1fr); }
#textingForm input, #textingForm select { min-width: 0; }

/* HQ concept: setup steps read as one progress bar, like a job's stage bar.
   Green segments are saved, the blue segment is where you are. */
html[data-page="start"] .setup-progress ol { gap: 8px; }
html[data-page="start"] .setup-progress button { min-height: 44px; padding: 12px 12px 6px; border: 0; border-top: 6px solid var(--line); border-radius: 3px 3px 0 0; background: transparent; box-shadow: none; font-size: 14px; font-weight: 650; color: var(--muted); }
html[data-page="start"] .setup-progress li.on button { border-top-color: var(--accent); background: transparent; box-shadow: none; color: var(--accent); }
html[data-page="start"] .setup-progress li.done button { border-top-color: var(--good); color: var(--good); }
html[data-page="start"] .setup-progress .num { flex-basis: 20px; height: 20px; font-size: 11px; margin-right: 6px; border-color: currentColor; }
html[data-page="start"] .setup-progress .step-status { padding: 0 2px; }
html[data-page="start"] #stepPosition { font-size: 14px; color: var(--muted); font-weight: 600; }
/* Narrow phones: the strip shows numbers only (the step name is in "Step 2 of 5 · Plan"),
   and a plan's name and price may wrap onto two lines. */
.plan .flex-grow-1 { min-width: 0; }
.plan .flex-grow-1 > .d-flex { flex-wrap: wrap; column-gap: 12px; row-gap: 2px; }
@media (max-width: 400px) {
  .setup-progress li.on .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[data-page="start"] .setup-progress ol { gap: 4px; }
}

