/* Client checklist: one step per screen. Mobile-first. */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }
#wizard { flex: 1; display: flex; flex-direction: column; }
#wizard[hidden] { display: none !important; }

.save-status { font-size: 14px; color: var(--text-2); text-align: right; min-height: 1em; }
.save-status.is-error { color: var(--ink); font-weight: 600; }
.loading, .gate { padding-block: 64px 96px; }
.gate-title { font-size: clamp(34px, 8vw, 56px); line-height: .95; margin-bottom: 18px; }
#loading-fail { margin-top: 6px; }
#loading-fail-msg { font-weight: 600; }

/* ---- loading skeleton: shaped like a step screen (progress row, eyebrow, title, help, answers, nav) ---- */
#loading { width: 100%; }
#loading-skeleton { margin-bottom: 28px; }
.sk-screen-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sk-screen-progress .sk-line { margin-bottom: 0; }
.sk-short-a { width: 92px; }
.sk-short-b { width: 56px; }
#loading-skeleton .sk-bar { margin-bottom: 30px; }
.sk-eyebrow { width: 130px; }
.sk-screen-title { width: 60%; max-width: 420px; }
.sk-screen-help { width: 80%; max-width: 50ch; margin-bottom: 0; }
.sk-screen-answers { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; max-width: 520px; }
.sk-screen-answers .sk-row { margin-bottom: 0; }
.sk-screen-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 34px; }
.sk-screen-nav .sk-line { margin-bottom: 0; }
.sk-nav-back { width: 60px; height: 20px; }
.sk-nav-next { width: 120px; height: 48px; }

/* ---- step bar: where you are ---- */
.stepbar { padding-block: 4px 0; }
.stepbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.step-where { margin: 0; font-size: 15px; color: var(--text-2-tint); }
#step-num { font-weight: 600; color: var(--ink); }
.step-where #step-section { color: var(--text-2); }
.all-link { font-size: 15px; }
.bar { height: 6px; background: var(--tint); margin-top: 6px; }
.bar-fill { height: 100%; width: 0; background: var(--cobalt-deep); transition: width .4s cubic-bezier(.2, .8, .2, 1); }

/* ---- the stage: one screen at a time ---- */
.stage { flex: 1; outline: none; display: flex; flex-direction: column; }
.screen { padding-block: clamp(28px, 6vh, 64px) 40px; }
.screen.enter-fwd { animation: enterFwd .32s cubic-bezier(.2, .8, .2, 1) both; }
.screen.enter-back { animation: enterBack .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes enterFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.enter-fwd, .screen.enter-back { animation: none; } .bar-fill { transition: none; } }

.step-kicker { color: var(--cobalt-deep); margin-bottom: 12px; font-size: 13px; }
.step-title { font-size: clamp(38px, 8.5vw, 68px); line-height: .92; margin-bottom: 18px; outline: none; }
.step-question { font-size: 19px; max-width: 60ch; }
.item-help { color: var(--text-2-tint); max-width: 62ch; }
.step-state { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--cobalt-deep); }

.item-prefill { background: var(--tint); padding: 16px 18px; margin: 14px 0 6px; max-width: 64ch; }
.item-prefill ul { margin: 6px 0 0; padding-left: 20px; }
.item-prefill li { margin-bottom: 4px; }
.item-prefill .value { font-weight: 600; font-size: 19px; }
.stage input[type=text], .stage input[type=url], .stage textarea { background: var(--tint); }
.stage .field { max-width: 64ch; }

/* choice buttons */
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; max-width: 520px; }
.choice { font: 500 17px/1.35 var(--ui); background: var(--tint); color: var(--ink); border: 0; border-radius: 0; padding: 16px 18px;
  min-height: 56px; cursor: pointer; text-align: left; }
.choice:hover { background: var(--tint-2); }
.choice[aria-pressed="true"], .choice[aria-checked="true"] { background: var(--cobalt-deep); color: var(--paper); }

/* action buttons (Done / I need help) read differently than the plain selection pills above them,
   so a client never confuses "pick an answer" with "confirm you did the thing" */
.choice.action-btn { background: var(--ink); color: var(--paper); }
.choice.action-btn:hover { background: #2A2A2D; }
.choice.action-btn[aria-pressed="true"] { background: var(--cobalt-deep); color: var(--paper); }

/* a "We don't need this" toggle on optional steps (team, offer, news, social, photos) */
.optional-out { margin-top: 16px; }
.optional-out .choice { max-width: 280px; }

/* per-line ticks */
.lines { list-style: none; margin: 16px 0 0; padding: 0; max-width: 64ch; }
.lines li { background: var(--tint); margin-bottom: 6px; }
.lines label { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 14px 16px; cursor: pointer; }
.lines input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cobalt-deep); }

/* how-to steps */
.steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 62ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 6px; margin-bottom: 12px; font-size: 18px; }
.steps li::before { content: counter(s); font-family: var(--accent); font-size: 26px; line-height: 1; color: var(--cobalt); }
.step-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; max-width: 520px; }
.step-note { margin-top: 12px; color: var(--cobalt-deep); font-weight: 600; }
.step-note.is-waiting { color: var(--text-2-tint); }
.choice-steps { margin-top: 18px; }
.choice-steps .item-help { margin-top: 16px; }
/* a visually separate box for the "when you've done it" actions, so it never reads as more choices */
.when-done-box { background: var(--tint); padding: 16px 18px; margin-top: 18px; max-width: 520px; }
.when-done-label { font-weight: 600; margin-bottom: 10px; }
.when-done-box .step-actions { margin-top: 0; }
.when-done-box .step-note:empty { display: none; }

/* why a follow-up screen appeared ("extras" items ticked on the have-list) */
.because-line { color: var(--text-2-tint); margin: -8px 0 14px; font-size: 15px; }

/* your key dates: plain text, not button-shaped like the choice list above */
.dates-list { list-style: none; margin: 16px 0 0; padding: 0; max-width: 64ch; }
.dates-list .date-line { padding: 10px 0; border-bottom: 1px solid var(--tint-2); }
.dates-list .date-line:last-child { border-bottom: 0; }
.date-line { display: flex; flex-direction: column; gap: 2px; }
.date-line .date-label { color: var(--text-2-tint); }

/* have: tick all that apply */
.have-none { margin-top: 10px; }

/* uploads */
.drop { display: block; background: var(--tint); padding: 26px 20px; margin-top: 16px; cursor: pointer; max-width: 64ch; }
.drop.is-over { background: var(--cobalt-deep); color: var(--paper); }
.drop strong { display: block; font-weight: 600; font-size: 18px; }
.drop .muted { display: block; font-size: 15px; }
.drop.is-over .muted { color: var(--paper); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop .btn { margin-top: 14px; pointer-events: none; }
.files { list-style: none; margin: 10px 0 0; padding: 0; max-width: 64ch; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--tint); padding: 10px 16px; margin-bottom: 6px; }
.files .name { overflow-wrap: anywhere; }
.files .size { color: var(--text-2); font-size: 14px; margin-left: 8px; }
.files li.is-busy { color: var(--text-2); }
.files li.is-error { background: #FBE9E9; }
.upload-error { color: var(--ink); font-weight: 600; margin-top: 8px; }

/* ---- welcome, section intro and the finish: the dark field ---- */
.screen.is-dark { flex: 1; background: var(--navy); color: var(--paper); padding-block: clamp(40px, 9vh, 96px) 56px; }
.is-dark .step-kicker { color: var(--ice); }
.is-dark .step-title .stop { color: var(--ice); }
.is-dark p { max-width: 60ch; }
.is-dark .accent-line { color: var(--ice); }
.is-dark a, .is-dark .btn-quiet { color: var(--ice); text-decoration-color: var(--ice); }
.welcome-body { font-size: 19px; }
.welcome-count { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.welcome-count .num { font-family: var(--accent); font-size: 60px; line-height: 1; }
.welcome-count .of { color: var(--ice); }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.btn-big { font-size: 18px; padding: 18px 28px; min-height: 60px; }

/* ---- review ---- */
.review-list { list-style: none; margin: 8px 0 0; padding: 0; max-width: 760px; }
.review-sect { font-size: 26px; line-height: 1; margin: 26px 0 8px; }
.review-row { width: 100%; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: baseline; text-align: left; border: 0; border-radius: 0;
  background: var(--tint); color: var(--ink); padding: 14px 16px; margin-bottom: 6px; cursor: pointer; font: 500 17px/1.35 var(--ui); }
.review-row:hover { background: var(--tint-2); }
.review-row .n { font-family: var(--accent); font-size: 22px; color: var(--cobalt); line-height: 1; }
.review-row .st { font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.review-row.is-done .st { color: var(--cobalt-deep); }
.finish { background: var(--navy); color: var(--paper); padding: 30px clamp(18px, 4vw, 34px) 34px; margin-top: 30px; max-width: 760px; }
.finish h2 { font-size: clamp(34px, 7vw, 54px); line-height: .92; margin-bottom: 12px; }
.finish h2 .stop { color: var(--ice); }
.finish .thanks { color: var(--ice); font-weight: 600; margin-top: 12px; }
.finish a { color: var(--ice); text-decoration-color: var(--ice); }
.finish .open-steps { margin: 4px 0 20px 20px; padding: 0; }
.finish .open-steps li { margin-bottom: 6px; }
.finish .btn-paper { margin-top: 6px; }

/* ---- bottom navigation: pinned on phones ---- */
.navbar { position: sticky; bottom: 0; background: var(--tint); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.navbar-right { display: flex; align-items: center; gap: 8px; }
.navbar .btn { min-height: 52px; }
#nav-next { min-width: 120px; }
#nav-next[disabled] { background: var(--tint-2); color: var(--text-2); }

@media (min-width: 761px) {
  .navbar { position: static; background: transparent; padding-block: 4px 56px; }
  .navbar-inner { max-width: 760px; margin-inline: 0; }
}
@media (max-width: 420px) {
  #nav-skip { padding-inline: 2px; font-size: 15px; }
}

/* ---- step extras: due date, review banners, questions ---- */
.stepbar-links { display: flex; gap: 14px; }
.needed-by { font-weight: 600; color: var(--cobalt-deep); margin: -6px 0 14px; }
.banner { padding: 16px 18px; margin: 4px 0 16px; max-width: 64ch; }
.banner strong { display: block; font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.banner p { margin: 0; }
.banner.is-have { background: var(--tint); }
.banner.is-redo { background: var(--navy); color: var(--paper); }
.banner.is-redo strong { color: var(--ice); }
.banner.is-redo .banner-howto { margin-top: 8px; font-weight: 600; color: var(--ice); }
.received { font-weight: 600; color: var(--cobalt-deep); }
.qa { margin-top: 30px; max-width: 64ch; }
.thread { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.msg { padding: 12px 14px; }
.msg p { margin: 2px 0 0; white-space: pre-wrap; }
.msg.is-mine { background: var(--tint); }
.msg.is-theirs { background: var(--navy); color: var(--paper); }
.msg-who { font-size: 13px; font-weight: 600; }
.msg.is-theirs .msg-who { color: var(--ice); }
.ask-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.ask-note { font-weight: 600; color: var(--cobalt-deep); margin-top: 8px; }
.review-row.is-redo .st { color: var(--ink); }

/* ---- project home ---- */
.screen.is-home { padding-block: 0 48px; }
.home-hero { background: var(--navy); color: var(--paper); padding-block: clamp(36px, 8vh, 80px) 40px; }
.home-hero .step-kicker { color: var(--ice); }
.home-hero .step-title .stop { color: var(--ice); }
.home-hero .welcome-body { max-width: 60ch; }
.home-hero .accent-line { color: var(--ice); }
.home-hero .btn-quiet { color: var(--ice); text-decoration-color: var(--ice); }
.check-card { background: var(--navy-2); padding: 22px clamp(16px, 3vw, 28px) 24px; margin-top: 24px; max-width: 760px; }
.check-card .welcome-count { margin-top: 0; }
.check-card .welcome-actions { margin-top: 16px; }
.home-body { padding-top: 12px; }
.home-h { font-size: clamp(28px, 5vw, 40px); line-height: 1; margin: 34px 0 12px; }
.approval { background: var(--tint); padding: 20px clamp(16px, 3vw, 26px) 22px; margin-bottom: 8px; max-width: 760px; }
.approval-title { font: 600 20px/1.3 var(--ui); margin-bottom: 6px; }
.approval .btn-ink { margin: 4px 0 8px; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.approval-state { font-weight: 600; color: var(--cobalt-deep); margin-top: 10px; }
.approval-comment { background: var(--paper); padding: 10px 14px; white-space: pre-wrap; }
.update { background: var(--tint); padding: 18px 20px; max-width: 760px; }
.update p { margin: 0; white-space: pre-wrap; }
.update .update-at { font-size: 14px; color: var(--text-2-tint); margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.phase { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 16px; background: var(--tint); margin-bottom: 6px; }
.phase strong { font-weight: 600; font-size: 17px; }
.phase .phase-when { display: block; font-size: 15px; color: var(--text-2-tint); }
.phase p { margin: 4px 0 0; }
.phase-state { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; color: var(--text-2); padding-top: 3px; }
.phase.is-done { background: var(--paper); }
.phase.is-done .phase-state { color: var(--cobalt-deep); }
.phase.is-current { background: var(--navy); color: var(--paper); }
.phase.is-current .phase-state, .phase.is-current .phase-when { color: var(--ice); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { margin-bottom: 8px; }
.home-contact { margin-top: 36px; color: var(--text-2-tint); }
@media (max-width: 480px) { .phase { grid-template-columns: 1fr; gap: 4px; } }
