/* TakeHome · /setup/ guided setup (2026-11-13). Tokens come from base.css; nothing here redefines them. */
.setup-page {
  --s-line: #7d8191;            /* field borders: 3.6:1 on paper */
  --s-line-soft: #c9ccd6;       /* dividers inside a card */
  --s-card-pad: clamp(20px, 3.2vw, 40px);
  --s-gap: clamp(20px, 2.4vw, 28px);
}

/* ---------- frame ---------- */
.s-top { padding-block: 18px; }
.s-ask { font-size: 0.9375rem; padding: 12px 0; }
.s-top .mark { min-height: 44px; }
/* a form, not a landing hero: smaller title so step 1 starts higher */
.setup-page .head { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
/* inline text link: 44px hit area without changing the line box */
.s-after .link { display: inline-block; padding-block: 14px; margin-block: -14px; }
/* a hidden legend is placed at the fieldset's static position; pin it so it never widens the page */
.setup-page fieldset { position: relative; }
.setup-page legend.sr-only { top: 0; left: 0; }
.s-main { padding-bottom: clamp(40px, 6vw, 88px); }
.s-intro { padding-block: clamp(12px, 3vw, 40px) clamp(20px, 3vw, 36px); max-width: 52rem; }
.s-intro .head { margin-bottom: 14px; }
.s-intro .lead { max-width: 52ch; }

.s-card { background: var(--paper); border-radius: var(--r-tile); padding: var(--s-card-pad); container-type: inline-size; }
.s-noscript, .s-resume { max-width: 46rem; margin-bottom: 24px; }
.s-resume p { margin-block: 10px 22px; max-width: 60ch; }
.s-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.s-actions.tight { margin-top: 14px; }

/* secondary buttons sit on paper: give them an edge */
.setup-page .button.light { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } /* taste-skill-ignore: inset outline = border of an outlined button, not a shadow */
.setup-page .button.light:hover { background: var(--bg); }
.s-aside .button.light { color: var(--night-ink); box-shadow: inset 0 0 0 1.5px var(--night-ink); } /* taste-skill-ignore: inset outline = border of an outlined button, not a shadow */

/* ---------- progress ---------- */
.s-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 18px; }
.s-count { font-weight: 700; font-size: 0.9375rem; }
.s-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.st > button, .st-box { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px; border-radius: var(--r-btn); font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; }
.st > button { cursor: pointer; color: var(--ink); transition: background-color var(--t-fast) ease; }
.st > button:hover { background: var(--surface); }
.st-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 0.875rem; font-weight: 700; background: var(--surface); color: var(--ink); }
.st-done .st-n { background: var(--ink); color: var(--paper); }
.st-now .st-box { background: var(--paper); color: var(--ink); }
.st-now .st-n { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1099px) {
  .st:not(.st-now) .st-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .st:not(.st-now) > button, .st:not(.st-now) .st-box { padding: 0 7px; min-width: 44px; justify-content: center; }
}
.s-count-name { display: none; }
@media (max-width: 599px) {
  .s-progress { gap: 8px; }
  .s-count { width: 100%; }
  .s-count-name { display: inline; }
  /* six numbered dots fit on one line; the current step's name moves up next to "Step x of 6" */
  .s-steps { flex-wrap: nowrap; gap: 4px; }
  .st-now .st-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .st-now .st-box { padding: 0 7px; min-width: 44px; justify-content: center; }
}

/* ---------- layout ---------- */
.s-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.s-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.s-form > *, .s-card > * { min-width: 0; }
.setup-page select { max-width: 100%; }
@media (min-width: 1024px) {
  .s-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: var(--gutter, 28px); }
}

/* ---------- step card ---------- */
.s-step { display: grid; gap: var(--s-gap); }
.s-h { font-size: var(--step-h3); font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
.s-h:focus { outline: none; }
.s-h:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.s-sub { color: var(--muted); margin-top: calc(var(--s-gap) * -0.6); max-width: 60ch; }
.s-h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; padding-top: 6px; margin-bottom: calc(var(--s-gap) * -0.55); }
.s-note { font-size: 0.9375rem; color: var(--muted); max-width: 64ch; background: var(--bg); border-radius: var(--r-ui); padding: 12px 16px; }
.s-note:empty { display: none; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1rem; padding: 0; margin-bottom: 10px; }
.s-field { display: grid; gap: 10px; }
.s-field > legend { float: left; width: 100%; }
.s-field > legend + * { clear: both; }

/* fields */
.f { display: grid; gap: 6px; min-width: 0; }
.f label, .f-lab { font-weight: 600; font-size: 0.9375rem; }
.opt { font-weight: 500; color: var(--muted); font-size: 0.875rem; margin-left: 4px; }
.f-hint { font-size: 0.875rem; color: var(--muted); max-width: 64ch; }
.f-row { display: grid; gap: var(--s-gap); }
@container (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }

.setup-page input[type="text"], .setup-page input[type="email"], .setup-page input[type="tel"], .setup-page input[type="url"], .setup-page input[type="time"], .setup-page select, .setup-page textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--s-line); border-radius: var(--r-ui);
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.35;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.setup-page textarea { resize: vertical; min-height: 76px; }
.setup-page select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%2312151d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.setup-page input::placeholder, .setup-page textarea::placeholder { color: #6b7080; }
.setup-page input:hover, .setup-page select:hover, .setup-page textarea:hover { border-color: var(--ink); }
.setup-page input:focus-visible, .setup-page select:focus-visible, .setup-page textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 4.5px var(--accent); } /* taste-skill-ignore: focus ring of a form field */
.setup-page input[aria-invalid="true"], .setup-page select[aria-invalid="true"], .setup-page textarea[aria-invalid="true"] { border-color: var(--urgent); }

/* errors */
.f-err { display: flex; gap: 8px; align-items: flex-start; color: var(--urgent); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.f-err::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17zm0 11.2a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM9 5.5v5.5h2V5.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5a8.5 8.5 0 1 1 0 17 8.5 8.5 0 0 1 0-17zm0 11.2a1.2 1.2 0 1 0 0 2.4 1.2 1.2 0 0 0 0-2.4zM9 5.5v5.5h2V5.5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.s-field.has-err > .inds, .s-field.has-err > .svcs { outline: 2px solid var(--urgent); outline-offset: 6px; border-radius: var(--r-ui); }

/* checkbox line */
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 1rem; line-height: 1.4; }
.check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.check.s-field { display: flex; }
.check.has-err { flex-wrap: wrap; }
.check.has-err .f-err { width: 100%; padding-left: 34px; }

/* pills: Pilot / Waitlist / Planned, same words as the home page */
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-btn); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap; vertical-align: 2px; margin-left: 6px; }
.pill.pilot { background: var(--accent-soft); color: var(--accent-deep); }
.pill.wait { background: var(--lilac); color: var(--ink); }
.pill.soon { background: var(--surface); color: var(--ink); }
.pill.soft { background: var(--accent-soft); color: var(--accent-deep); }

/* choice cards (radio) */
.opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.opt-card, .ind, .pl {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px 50px; min-height: 64px;
  background: #fff; border: 1.5px solid var(--s-line-soft); border-radius: var(--r-ui); cursor: pointer;
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-fast) var(--ease);
}
.opt-card:hover, .ind:hover, .pl:hover { border-color: var(--ink); }
.opt-card:active, .ind:active, .pl:active { transform: scale(0.99); }
.opt-card input, .ind input, .pl input { position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.opt-card:has(input:checked), .ind:has(input:checked), .pl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); } /* taste-skill-ignore: inset 1px thickens the selected border of a form choice */
.opt-card:has(input:focus-visible), .ind:has(input:focus-visible), .pl:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.oc-name { font-weight: 700; line-height: 1.3; }
.oc-desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }

/* industries */
.inds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ind-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ind-top .pill { margin-left: 0; }
.ind-name { font-weight: 700; line-height: 1.3; }
.ind-tag { font-size: 0.9375rem; color: var(--muted); line-height: 1.4; }
.ind-other { background: var(--bg); border-style: dashed; border-color: var(--s-line); }

/* waitlist */
.s-wait { display: grid; gap: 14px; background: var(--lilac); border-radius: var(--r-ui); padding: clamp(18px, 2.6vw, 28px); }
.s-wait p { max-width: 62ch; }
.s-wl-form { display: grid; gap: 14px; }
@container (min-width: 620px) { .s-wl-form { grid-template-columns: 1fr 1fr; align-items: end; } .s-wl-form .f:nth-child(3) { grid-column: 1 / -1; } .s-wl-form .button { justify-self: start; } }
.s-msg:empty { display: none; }
.s-msg { font-weight: 600; }
.s-msg.ok { color: var(--ok); }
.s-msg.bad { color: var(--urgent); }

/* greeting preview */
.greet { display: grid; gap: 8px; background: var(--night); color: var(--night-ink); border-radius: var(--r-ui); padding: clamp(18px, 2.6vw, 26px); }
.greet-k { font-size: 0.875rem; font-weight: 600; color: var(--night-muted); }
.greet-line { font-size: var(--step-lead); line-height: 1.4; font-weight: 500; max-width: 52ch; text-wrap: pretty; }
.greet-line + .greet-k, #greet-es-row { margin-top: 6px; }
#greet-es-row { display: grid; gap: 8px; }
#greet-es-row[hidden] { display: none; }
.greet-line b { font-weight: 700; color: #fff; }
.greet-line .ph { font-weight: 600; color: var(--accent-light); }
.greet-asks { display: grid; gap: 8px; margin-top: 8px; padding-top: 6px; }
.greet-asks[hidden] { display: none; }
.greet-asks ul { display: flex; flex-wrap: wrap; gap: 6px; }
.greet-asks li { font-size: 0.875rem; line-height: 1.3; padding: 6px 10px; border-radius: var(--r-btn); background: var(--night-2); color: var(--night-ink); }

/* services */
.svcs { display: grid; gap: 10px; }
.s-empty { color: var(--muted); padding: 14px 16px; background: var(--bg); border-radius: var(--r-ui); }
.svc { display: grid; gap: 10px 12px; padding: 14px; border-radius: var(--r-ui); background: var(--bg);
  grid-template-columns: 1fr 1fr 44px; grid-template-areas: "name name rm" "dur price price" "book book book"; }
.svc-name { grid-area: name; }
.svc-dur { grid-area: dur; }
.svc-price { grid-area: price; }
.svc-book { grid-area: book; padding-block: 4px; min-height: 44px; align-items: center; font-size: 0.9375rem; }
.svc .icon-btn { grid-area: rm; align-self: end; }
@container (min-width: 760px) {
  .svc { grid-template-columns: minmax(0, 1.5fr) 9.5rem minmax(0, 1.1fr) auto 44px; grid-template-areas: "name dur price book rm"; align-items: end; }
  .svc-book { padding-bottom: 2px; min-height: 48px; }
}
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 48px; border: 0; border-radius: var(--r-ui); background: transparent; color: var(--muted); cursor: pointer; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.icon-btn:hover { background: var(--surface); color: var(--urgent); }
.s-reset { background: none; border: 0; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--ink); min-height: 44px; padding: 0 6px; cursor: pointer; }
.s-reset[hidden] { display: none; }
#svc-add { gap: 8px; }
#svc-add::before { content: "+"; font-size: 1.25rem; line-height: 1; font-weight: 600; }

/* hours */
.hours { display: grid; gap: 2px; }
.hr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 0; border-bottom: 1px solid var(--s-line-soft); } /* taste-skill-ignore: hours are a weekly table; rows separate days */
.hr:last-child { border-bottom: 0; }
.hr-day { width: 9.5rem; font-weight: 600; }
.hr-times { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 360px; }
.hr-times .f { flex: 1; }
.hr-to { color: var(--muted); font-size: 0.9375rem; }
.hr-closed { color: var(--muted); font-size: 0.9375rem; }
.hr .f-err { flex-basis: 100%; }
.hr .f:has(.f-err) { flex-basis: 100%; }

/* urgency rules */
.s-rules { display: grid; gap: var(--s-gap); }
.rules { display: grid; gap: 10px; }
.rules li { position: relative; padding: 12px 16px 12px 40px; background: var(--bg); border-radius: var(--r-ui); font-size: 0.9375rem; line-height: 1.5; max-width: 72ch; }
.rules li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--urgent); }
.rules q { font-style: italic; quotes: "\201C" "\201D"; }

/* transfers sub-box */
.s-group { gap: 4px; }
.s-sub-box { display: grid; gap: 14px; margin: 6px 0 0 34px; padding-left: 18px; border-left: 2px solid var(--s-line-soft); }
.s-sub-box[hidden] { display: none; }
.s-sub-box .check { min-height: 40px; padding-block: 8px; }
@media (max-width: 479px) { .s-sub-box { margin-left: 10px; padding-left: 14px; } }

/* plans */
.plans { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.pl { gap: 4px; padding-bottom: 18px; }
.pl-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pl-top .pill { margin-left: 0; }
.pl-name { font-weight: 700; }
.pl-price { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 4px; }
.pl-price b { font-size: 1.625rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.pl-price span { color: var(--muted); font-size: 0.9375rem; }
.pl-line { font-size: 0.9375rem; line-height: 1.4; }
.pl-for { font-size: 0.875rem; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.pl-unsure { background: var(--bg); border-style: dashed; border-color: var(--s-line); }

/* review */
.review { display: grid; gap: 10px; }
.rv { background: var(--bg); border-radius: var(--r-ui); padding: 14px 16px 16px; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.rv-head h3 { font-size: 1rem; font-weight: 700; }
.rv-edit { background: none; border: 0; font: inherit; font-weight: 600; font-size: 0.9375rem; color: var(--accent); min-height: 44px; min-width: 44px; padding: 0 4px; cursor: pointer; }
.rv dl { display: grid; gap: 6px; }
.rv dl > div { display: grid; gap: 2px; }
.rv dt { font-size: 0.875rem; color: var(--muted); }
.rv dd { font-size: 0.9375rem; overflow-wrap: anywhere; }
@container (min-width: 560px) { .rv dl > div { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; } .rv dt { font-size: 0.9375rem; } }
.s-auth { padding: 14px 16px; background: var(--accent-soft); border-radius: var(--r-ui); }

/* send error */
.s-error { display: grid; gap: 8px; border-radius: var(--r-ui); padding: 18px; background: #fbe9e7; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--urgent); } /* taste-skill-ignore: inset outline = border of the error box */
.s-error[hidden] { display: none; }
.s-error h3 { color: var(--urgent); }
.s-error h3:focus { outline: none; }

/* nav */
.s-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.s-nav #s-next, .s-nav #s-send { margin-left: auto; min-width: 9rem; }
.s-nav .button[hidden] { display: none; }
.s-after { color: var(--muted); }
@media (max-width: 479px) {
  .s-nav { display: grid; grid-template-columns: 1fr 2fr; }
  .s-nav #s-next, .s-nav #s-send { margin-left: 0; min-width: 0; grid-column: 2; }
  .s-nav #s-back { grid-column: 1; grid-row: 1; }
  .s-nav #s-back[hidden] + #s-next, .s-nav #s-back[hidden] ~ #s-send { grid-column: 1 / -1; }
}

/* honeypot */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: honeypot hidden off-screen, not a rule */

/* ---------- side summary ---------- */
.s-aside { background: var(--night); color: var(--night-ink); border-radius: var(--r-tile); padding: 22px 24px; }
.as-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.005em; }
.as-toggle { display: none; }
.as-body { display: grid; gap: 16px; margin-top: 16px; }
.as-greet { font-size: 0.9375rem; line-height: 1.5; padding: 14px 16px; border-radius: var(--r-ui); background: var(--night-2); }
.as-greet b { color: #fff; }
.as-greet .ph { color: var(--accent-light); }
.as-body dl { display: grid; gap: 10px; }
.as-body dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.4; }
.as-body dt { color: var(--night-muted); }
.as-body dd { overflow-wrap: anywhere; }
@media (min-width: 1024px) {
  .s-aside { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
}
@media (max-width: 1023px) {
  .s-aside { order: -1; padding: 6px 8px 6px 20px; border-radius: var(--r-ui); }
  .as-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .as-head { display: block; }
  .as-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 8px 0 0; border: 0; background: none; color: inherit; font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
  .as-peek { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .as-show { color: var(--night-muted); font-size: 0.875rem; }
  .as-toggle svg { flex: none; transition: transform var(--t-mid) var(--ease); }
  .as-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .as-toggle[aria-expanded="true"] .as-show { display: none; }
  .as-body { display: none; margin: 4px 12px 16px 0; }
  .as-body.is-open { display: grid; }
}

/* ---------- done ---------- */
.s-done { display: grid; gap: 24px; max-width: 52rem; }
.s-done h2:focus { outline: none; }
.done-steps { display: grid; gap: 14px; counter-reset: d; }
.done-steps li { position: relative; padding-left: 46px; max-width: 60ch; counter-increment: d; }
.done-steps li::before { content: counter(d); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 0.9375rem; }
.done-demo { display: grid; gap: 14px; justify-items: start; padding: 20px; border-radius: var(--r-ui); background: var(--night); color: var(--night-ink); }

/* ---------- footer ---------- */
.s-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 36px; font-size: 0.9375rem; color: var(--muted); }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.s-foot-links a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) {
  .opt-card, .ind, .pl, .as-toggle svg, .icon-btn, .st > button { transition: none; }
  .opt-card:active, .ind:active, .pl:active { transform: none; }
}
