/* 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;
  --bg: #F3F6F8; --surface: #FFFFFF; --ink: #132433; --muted: #566575; --line: #D5DDE4;
  --accent: #1D5F99; --accent-ink: #FFFFFF; --accent-soft: #E3EEF7;
  --brass: #9A7424; --warn-bg: #FFF6E0; --warn-ink: #6B4E0F;
  --good: #1F7A4D; --good-soft: #E2F3EA; --bad: #B3261E;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "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. */
html[data-page="start"] .setup-progress { max-width: 760px; margin: 0 auto; padding: 24px 16px 0; }
.setup-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.setup-progress li { display: grid; align-content: start; gap: 8px; min-width: 0; }
html[data-page="start"] .setup-progress button { width: 100%; min-height: 52px; padding: 12px; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.4; }
html[data-page="start"] .setup-progress li.on button { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 -3px var(--accent); }
.setup-progress .num { display: inline-grid; place-items: center; flex: 0 0 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; }
.setup-progress li.done .num { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.setup-progress .label { overflow-wrap: anywhere; }
.setup-progress .step-status { padding: 0 8px; font-size: 12px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.setup-progress li.done .step-status { color: var(--good); }
@media (max-width: 575.98px) {
  .setup-progress ol { grid-template-columns: 1fr; gap: 8px; }
  .setup-progress li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* 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: 800 clamp(30px, 7vw, 40px)/1.08 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 */
.plans { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--bg); }
.plan input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.plan .name { font-weight: 700; }
.plan .tag { display: inline-flex; align-items: center; white-space: nowrap; min-height: 22px; font: 600 11px/1 var(--body); background: var(--accent-soft); color: var(--accent); padding: 4px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.plan .price { font-weight: 700; white-space: nowrap; }
.plan .desc { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.plan:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px 13px; }
.plan.sales .price a { font-weight: 700; }
.promo { display: grid; gap: 6px; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { text-transform: uppercase; font-family: var(--mono); }
.promo-result { margin: 0; font-size: 14px; }
.promo-result.ok { color: var(--good); }
.promo-result.bad { color: var(--bad); }
.summary { display: grid; gap: 4px; font-size: 14px; border-top: 1px solid var(--line); padding: 12px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary b { white-space: nowrap; }
.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; }
}

@media (max-width: 575.98px) {
  html[data-page="start"] .plan { grid-template-columns: auto minmax(0, 1fr); }
  html[data-page="start"] .plan .price, html[data-page="start"] .plan .desc { grid-column: 2; }
  html[data-page="start"] .plan .tag { margin-left: 0; }
}

.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; }
