/* Builderlab brand tokens, taken from builderlab.com */
:root {
  /* Readability pass 2026-11-24: lifted background, brighter secondary text, a card panel per step */
  --bg: #0a1511;
  --surface: #122019;        /* card panel behind each step */
  --surface-2: #1b2d25;
  --field: #0c1713;          /* answer boxes, chips and cards sit slightly inset in the panel */
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f5f6f8;
  --muted: rgba(245, 246, 248, 0.80);   /* was 0.62 */
  --faint: rgba(245, 246, 248, 0.60);   /* was 0.38 */
  --green: #38b685;
  --green-deep: #2e9e73;
  --mint: #7fe9c6;
  --gold: #ffc107;
  --danger: #ff6b6b;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
b { font-weight: 600; color: var(--text); }

.glow {
  position: fixed; inset: -20vh -10vw auto; height: 80vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(56, 182, 133, 0.22), transparent 70%),
    radial-gradient(30% 40% at 85% 10%, rgba(127, 233, 198, 0.08), transparent 70%);
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  background: rgba(8, 18, 14, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 30px; width: auto; display: block; }
.save-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--faint); transition: color .3s; }
.save-state:empty { display: none; }
/* Saving…: small spinning ring */
.save-state.saving::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--mint);
  animation: spin .8s linear infinite;
}
/* Saved: green check */
.save-state.saved { color: var(--mint); }
.save-state.saved::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--green) center/9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.save-state.unsaved { color: var(--danger); }

.shell {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: clamp(40px, 8vw, 88px) 16px 120px;
}

/* Type */
.eyebrow {
  margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
}
h1 {
  margin: 0; font-size: clamp(38px, 7vw, 68px); font-weight: 500; line-height: 1.06; letter-spacing: -0.03em;
  text-wrap: balance;
}
h2 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 34px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.grad {
  background: linear-gradient(100deg, var(--mint), var(--green) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 24px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; }
.lede + .lede { margin-top: 12px; }
.muted { color: var(--faint); font-weight: 400; }
.hint { font-size: 13px; color: var(--faint); margin: 18px 0 0; }

/* Intro */
.intro { max-width: 820px; margin: 0 auto; animation: rise .8s var(--ease) both; }
.intro-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 32px 0 36px; max-width: 520px;
}
.stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 18px 8px 16px; text-align: center; border-radius: 14px;
  background: linear-gradient(180deg, rgba(56,182,133,.08), rgba(56,182,133,.02)), var(--surface);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.stat:hover { border-color: rgba(56,182,133,.35); transform: translateY(-2px); }
.stat b {
  font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap;
  background: linear-gradient(100deg, var(--mint), var(--green) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span {
  font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: var(--faint); line-height: 1.3; white-space: nowrap;
}
@media (max-width: 420px) { .stat b { font-size: 17px; } .stat span { font-size: 11.5px; } }

/* "Pull from my website" */
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bolt { color: var(--gold); margin-right: 2px; }
.pf-overlay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 10, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: rise .3s var(--ease) both;
}
.pf-box {
  width: 100%; max-width: 520px; padding: clamp(24px, 4vw, 36px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(56,182,133,.08), transparent 40%), var(--surface);
  border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.pf-box h2 { margin-bottom: 8px; }
.pf-lede { margin: 0 0 22px; color: var(--muted); }
.pf-form input { width: 100%; margin-top: 8px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pf-demo { margin: 18px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--gold); background: rgba(255,193,7,.07); border: 1px solid rgba(255,193,7,.2); }
.pf-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-steps li { position: relative; padding-left: 30px; color: var(--faint); transition: color .3s; }
.pf-steps li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line-strong); box-sizing: border-box;
}
.pf-steps li.pf-on { color: var(--text); }
.pf-steps li.pf-on::before { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.pf-steps li.pf-done { color: var(--muted); }
.pf-steps li.pf-done::before { border: 0; background: var(--green) center/11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.pf-tag {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--mint); background: rgba(56,182,133,.1); border: 1px solid rgba(56,182,133,.3);
}
.pf-tag::before { content: "⚡"; font-size: 11px; }
.inline-mic {
  display: inline-block; width: 22px; height: 22px; vertical-align: -5px; border-radius: 50%;
  background: var(--surface-2) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe9c6' stroke-width='2' stroke-linecap='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v4'/%3E%3C/svg%3E");
  border: 1px solid var(--line-strong);
}

/* Buttons (white pills with green glow, like the site) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 inherit; font-family: inherit; border-radius: 999px; cursor: pointer;
  padding: 16px 28px; border: 1px solid transparent; text-decoration: none;
  transition: transform .5s var(--ease), background-color .4s var(--ease), color .4s var(--ease), border-color .3s, opacity .3s;
}
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 44px rgba(56, 182, 133, 0.3); }
.btn-primary:hover { transform: scale(1.03); }
.btn-primary:disabled { opacity: .5; transform: none; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--green); color: var(--mint); }
.btn-sm { padding: 10px 16px; font-size: 13px; }
.arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible, .chip input:focus-visible + span, .mic:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--mint); outline-offset: 2px;
}

/* Progress */
.progress-bar { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 40px; }
.progress-bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--mint));
  box-shadow: 0 0 16px rgba(127, 233, 198, .6);
  transition: width .7s var(--ease);
}

/* Steps */
.step { display: none; }
.step.active { display: block; animation: rise .55s var(--ease) both; }
.step.active.back { animation-name: riseBack; }
.step-head { margin-bottom: 32px; }
.step-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseBack { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.grid.inner { gap: 10px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Type scale for every step (keep these in sync): question labels 15px/500 · answers (inputs, chips, card titles) 15px
   · help text (question descriptions, card descriptions) 13.5px. Step titles are 28px/700, title descriptions 15px. */
.field label, .field legend { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--text); padding: 0; }
.req { color: #ff6b6b; font-weight: 700; }   /* red asterisk = required */

input[type=date] { color-scheme: dark; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--field); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 14px; transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
textarea { resize: vertical; min-height: 52px; line-height: 1.5; }
select {
  padding-right: 40px; cursor: pointer;
  background: var(--field) right 14px center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f4f4f9' stroke-opacity='.6' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
}
select option { background: var(--surface); }
::placeholder { color: rgba(245, 246, 248, 0.42); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green); background: #0f1c17;
  box-shadow: 0 0 0 4px rgba(56, 182, 133, .14);
}
.invalid input, .invalid select, .invalid textarea, input.invalid { border-color: var(--danger) !important; }
.error-msg { font-size: 12.5px; color: var(--danger); margin-top: 6px; }

/* Dictation */
.dictate-wrap { position: relative; }
.dictate-wrap input, .dictate-wrap textarea { padding-right: 52px; }
.mic {
  position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  color: var(--mint); background: var(--surface-2); border: 1px solid var(--line-strong);
  transition: background .25s, color .25s, transform .3s var(--ease), border-color .25s;
}
.mic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic:hover { border-color: var(--green); transform: scale(1.06); }
.mic.on { background: var(--green); color: #04110b; border-color: var(--green); }
.mic.on::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--green); animation: pulse 1.4s ease-out infinite;
}
.dictate-wrap.listening input, .dictate-wrap.listening textarea {
  border-color: var(--green); box-shadow: 0 0 0 4px rgba(56, 182, 133, .18), 0 0 30px rgba(56, 182, 133, .15);
}
@keyframes pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.5); } }
.no-dictation .mic { display: none; }
.no-dictation .dictate-wrap input, .no-dictation .dictate-wrap textarea { padding-right: 14px; }

.listening {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(13, 24, 20, .92); border: 1px solid rgba(56, 182, 133, .5);
  box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 40px rgba(56,182,133,.25);
  backdrop-filter: blur(10px); font-size: 14px; white-space: nowrap; animation: rise .4s var(--ease) both;
}
.listening button {
  all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: #fff; color: #000;
  font-weight: 600; font-size: 13px;
}
.bars { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.bars i { width: 3px; border-radius: 2px; background: var(--mint); animation: bar 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: .15s; } .bars i:nth-child(3) { animation-delay: .3s; } .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { all: unset; position: relative; cursor: pointer; border-radius: 999px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 15px; color: var(--muted); background: var(--field); border: 1px solid var(--line-strong);
  transition: all .25s var(--ease); user-select: none;
}
.chip:hover span { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] span { color: var(--mint); border-color: rgba(56, 182, 133, .7); background: rgba(56, 182, 133, .12); }
.chip[aria-pressed="true"] span::before { content: "✓"; font-size: 12px; }

/* Service area: primary + secondary cards (typed or CSV) */
.territory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.terr-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 14px;
  background: var(--field); border: 1px solid var(--line-strong); transition: border-color .2s, background .2s;
}
.terr-card.primary { border-color: rgba(56,182,133,.5); }
.terr-h { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.terr-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.terr-card.primary .terr-dot { background: var(--mint); box-shadow: 0 0 8px rgba(127,233,198,.7); }
.terr-card.secondary .terr-dot { background: transparent; border: 2px solid var(--gold); }
.terr-sub { margin: 0; font-size: 13.5px; color: var(--faint); line-height: 1.45; }
.terr-card textarea { background: var(--surface); min-height: 96px; }
.terr-count { font-size: 13.5px; color: var(--muted); }
/* single CSV upload box below the cards */
.terr-drop {
  margin-top: 12px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed rgba(56,182,133,.45); background: rgba(56,182,133,.05); font-size: 15px; color: var(--muted);
  transition: background .2s, border-color .2s;
}
.terr-drop:hover, .terr-drop.drag { background: rgba(56,182,133,.12); border-color: var(--mint); }
.terr-drop:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.terr-drop b { color: var(--text); font-weight: 600; }
.terr-drop u { color: var(--mint); text-underline-offset: 3px; }
.terr-drop small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--faint); }
.terr-drop-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--mint); background: rgba(56,182,133,.14); font-size: 16px;
}
.terr-note { margin: 10px 0 0; font-size: 13.5px; }
.terr-note:empty { display: none; }
.terr-note.ok { color: var(--mint); }
.terr-note.err { color: var(--danger); }
@media (max-width: 720px) { .territory { grid-template-columns: 1fr; } }

/* Ranked chips (e.g. services offered): pick order = priority, first 3 = top 3 */
.chips.ranked .chip[aria-pressed="true"] span::before { content: none; }
.chips.ranked .rank {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.08);
}
.chips.ranked .chip.top span { color: var(--text); border-color: var(--green); background: rgba(56,182,133,.2); font-weight: 600; }
.chips.ranked .chip.top .rank { color: #04140d; background: var(--mint); }
.top-picks { margin: 0 0 16px; }
.top-picks-h { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.top-picks-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.top-picks-row li {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 12px;
  border: 1px dashed var(--line-strong); color: var(--faint); font-size: 14px;
}
.top-picks-row li b {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-size: 13px; color: var(--faint); border: 1.5px solid var(--line-strong);
}
.top-picks-row li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-picks-row li.filled { border-style: solid; border-color: rgba(56,182,133,.55); background: rgba(56,182,133,.1); color: var(--text); font-weight: 600; }
.top-picks-row li.filled b { color: #04140d; background: var(--mint); border-color: var(--mint); }
@media (max-width: 640px) { .top-picks-row { grid-template-columns: 1fr; } }
.chip:focus-visible span { outline: 2px solid var(--mint); outline-offset: 2px; }
.chip.add span { border-style: dashed; color: var(--faint); }
.chip.add:hover span { color: var(--mint); border-color: var(--green); }
input.own { width: auto; min-width: 200px; padding: 9px 14px; border-radius: 999px; font-size: 14px; }

/* Access */
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 18px;
  border-radius: var(--radius); background: rgba(255, 193, 7, .06); border: 1px solid rgba(255, 193, 7, .22);
}
.callout svg { width: 22px; height: 22px; flex: none; fill: rgba(255,193,7,.15); stroke: var(--gold); stroke-width: 1.6; }
.callout p { margin: 0; font-size: 14px; color: var(--muted); }
.copy-email { color: var(--mint); cursor: pointer; border-bottom: 1px dashed rgba(127,233,198,.5); }
.access-list { display: grid; gap: 10px; margin-bottom: 28px; }
.access {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius); background: var(--field); border: 1px solid var(--line-strong);
  transition: border-color .3s;
}
.access.granted { border-color: rgba(56, 182, 133, .6); }
.access h3 { margin: 0; font-size: 15px; font-weight: 600; }
.access p { margin: 3px 0 0; font-size: 13.5px; color: var(--faint); }
.access p a { color: var(--muted); }
.access .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.access-progress { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.access .access-q { margin: 2px 0 -4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.access-progress b { color: var(--mint); }
.access .seg .chip span { padding: 8px 13px; font-size: 15px; }
.access .extra { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .access { grid-template-columns: 1fr; }
  .access .seg { justify-content: flex-start; }
}

/* Upload */
.dropzone {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; cursor: pointer;
  padding: 40px 20px; border-radius: var(--radius-lg); border: 1.5px dashed rgba(56, 182, 133, .45);
  background: radial-gradient(60% 80% at 50% 0%, rgba(56,182,133,.08), transparent), var(--surface);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.dropzone:hover, .dropzone.drag { border-color: var(--mint); transform: scale(1.005); }
.dropzone.drag { background-color: #10201a; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dz-icon {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: rgba(56,182,133,.14); color: var(--mint);
}
.dz-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dz-title { font-weight: 600; font-size: 16px; }
.dz-sub { font-size: 13px; color: var(--faint); }
.dz-sub u { color: var(--mint); text-decoration-color: rgba(127,233,198,.4); }

.file-list { list-style: none; padding: 0; margin: 14px 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.file-list:empty { margin-bottom: 20px; }
.file {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  animation: rise .4s var(--ease) both;
}
.file .thumb {
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 14px;
  background: repeating-conic-gradient(#15241e 0% 25%, #101c17 0% 50%) 50%/16px 16px;
}
.file img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file .ext { font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--mint); }
.file .meta { padding: 8px 10px; font-size: 12px; }
.file .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .size { color: var(--faint); }
.file .remove {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1;
}
.file .remove:hover { background: var(--danger); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.swatch {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.swatch input[type=color] { width: 30px; height: 30px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type=color]::-webkit-color-swatch { border: 1px solid var(--line-strong); border-radius: 50%; }
.swatch input[type=color]::-moz-color-swatch { border: 1px solid var(--line-strong); border-radius: 50%; }
.swatch input[type=text] { width: 92px; padding: 6px 8px; font-size: 13px; font-family: ui-monospace, Menlo, monospace; border-radius: 8px; }
.swatch button { all: unset; cursor: pointer; color: var(--faint); padding: 0 4px; font-size: 16px; }
.swatch button:hover { color: var(--danger); }

/* Review page (modeled on the reference form): one row per question with an Edit link */
.step-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.review { display: grid; gap: 10px; }
.review-h { margin: 18px 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.review-h:first-child { margin-top: 0; }
.review-row {
  display: grid; grid-template-columns: 200px 1fr auto; gap: 18px; align-items: start;
  padding: 14px 18px; border-radius: 10px; background: var(--field); font-size: 14px;
}
.review-row .lbl { font-weight: 600; color: var(--text); }
.review-row .val { color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.review-row .val.empty { color: var(--faint); font-style: italic; }
.review-row .edit { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mint); }
.review-row .edit:hover { text-decoration: underline; }
.review-row .edit:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 640px) { .review-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 14px; } .review-row .edit { justify-self: start; } }

/* Nav */
.wizard-nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 24px;
}
.wizard-nav .btn-primary { margin-left: auto; }

/* Done: the thank-you page */
.done { text-align: center; padding-top: 32px; max-width: 680px; margin: 0 auto; animation: rise .8s var(--ease) both; }
.done .eyebrow { margin-bottom: 10px; }
.done .lede { margin: 20px auto 0; }
.done-kickoff {
  display: inline-block; margin: 26px auto 0; padding: 12px 22px; border-radius: 999px;
  font-size: clamp(16px, 2vw, 19px); font-weight: 600; color: var(--text);
  background: linear-gradient(100deg, rgba(127,233,198,.16), rgba(56,182,133,.08)); border: 1px solid rgba(56,182,133,.45);
  box-shadow: 0 0 40px rgba(56,182,133,.2);
}
.next-steps {
  margin: 36px auto 34px; padding: 22px 24px; text-align: left; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.next-steps h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.next-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.next-steps li { position: relative; padding-left: 40px; font-size: 15px; color: var(--muted); counter-increment: step; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #04140d; background: var(--mint);
}
.next-steps li b { color: var(--text); }
#confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.check {
  width: 84px; height: 84px; margin: 0 auto 28px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, rgba(56,182,133,.3), rgba(56,182,133,.08)); border: 1px solid rgba(56,182,133,.5);
  box-shadow: 0 0 60px rgba(56,182,133,.35);
}
.check svg { width: 38px; height: 38px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 12px; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: rise .35s var(--ease) both;
}
.toast.error { border-color: rgba(255,107,107,.5); }

.foot { position: relative; z-index: 1; text-align: center; font-size: 13px; color: var(--faint); padding: 28px 16px 36px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===================== v2: one-screen-at-a-time wizard ===================== */
kbd {
  font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
}

/* While the form is open, use the full width so the sidebar lines up with the logo (same side padding as the top bar) */
.shell:has(> .wizard:not([hidden])) { max-width: none; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); padding-top: 40px; }
.wizard { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stage { min-width: 0; width: 100%; max-width: 820px; margin: 0 auto; }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stage-top .eyebrow { margin: 0; }
.pct { margin: 0; font-size: 13px; color: var(--faint); white-space: nowrap; }

/* Section rail */
.rail {
  position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: transparent transparent;   /* Firefox: hidden until hover */
}
.rail:hover { scrollbar-color: rgba(255,255,255,.14) transparent; }
/* Chrome/Safari: a thin, trackless scrollbar that only shows on hover */
.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }
.rail:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); }
.rail:hover::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); }
.rail-toggle { display: none; }
.rail-list, .rail-sub { list-style: none; margin: 0; padding: 0; }
.rail-list > li > button {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--faint); transition: background .2s, color .2s;
}
.rail-list > li > button:hover { background: rgba(255,255,255,.03); color: var(--text); }
.rail-list > li > button:focus-visible { outline: 2px solid var(--mint); }
.rail .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }
.rail .nm { flex: 1; font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; }
.rail .ct { font-size: 12px; color: var(--faint); }
.rail li.complete > button { color: var(--muted); }
.rail li.complete .dot { background: var(--green); border-color: var(--green); }
.rail li.current > button { color: var(--text); font-weight: 600; background: var(--surface); }
.rail li.current .dot { border-color: var(--mint); box-shadow: 0 0 10px rgba(127,233,198,.7); background: var(--mint); }
.rail-sub { margin: 4px 0 10px 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.rail-sub button {
  all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 5px 8px; font-size: 13px;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px;
}
.rail-sub button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.rail-sub button.on { color: var(--mint); background: rgba(56,182,133,.08); }
.rail-sub button:focus-visible { outline: 2px solid var(--mint); }
/* per-question status mark: empty circle (not done, including skipped), green check (done), yellow flag (flagged for help) */
.rail-sub .mk {
  display: inline-block; width: 15px; height: 15px; margin-right: 9px; vertical-align: -2px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); box-sizing: border-box;
}
.rail-sub button.done .mk { border: 0; background: var(--green) center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
/* flagged step: a small yellow flag */
.rail-sub button.flag .mk {
  border: 0; border-radius: 0;
  background: center/15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3v18' stroke='%23ffc107' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M6 4h11.5l-2.6 4.25L17.5 12.5H6z' fill='%23ffc107'/%3E%3C/svg%3E");
}
.rail-sub button.flag { color: var(--gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Review: steps still needing an answer */
/* "N required questions left" box (red stripe, like the reference form) */
.need { margin: 0 0 22px; padding: 14px 16px; border-radius: 8px; background: rgba(255,107,107,.08); border-left: 4px solid var(--danger); }
.need p { margin: 0; font-size: 14px; color: #ffc9c4; }
.need p b { color: #ffb0a8; }
.need ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.need li { position: relative; padding-left: 16px; }
.need li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: #ffb0a8; }
.need button { all: unset; display: block; cursor: pointer; font-size: 14px; line-height: 1.45; color: #ffc9c4; text-decoration: underline; text-underline-offset: 3px; }
.need button:hover { color: #fff; }
.need button:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* Screen */
.screen {
  animation: rise .5s var(--ease) both;
  padding: clamp(22px, 3.5vw, 40px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(56,182,133,.05), transparent 120px), var(--surface);
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.screen .step-head { margin-bottom: 28px; }
/* Question title and description flow straight across the whole card */
.screen h2 {
  outline: none; text-wrap: wrap;
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em;
}
.screen .sub { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.persona-tag { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.fields { display: grid; gap: 28px 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fields > .field { grid-column: 1 / -1; min-width: 0; }
.fields > .field.w-third { grid-column: span 2; }   /* e.g. birthday month / day / year side by side */
.flabel { display: block; font-size: 15px; font-weight: 500; margin: 0 0 8px; color: var(--text); }
.fsub { margin: -2px 0 10px; font-size: 13.5px; color: var(--faint); }
.field.invalid .chips .chip span, .field.invalid .cards .card { border-color: rgba(255,107,107,.55); }
.field.invalid .range .track::before { background: rgba(255,107,107,.5); }

/* "See examples & tips" box (one per step), modeled on the reference form, in our dark theme:
   dashed box, filled + / − circle, examples with a mint stripe (italic), tips with a red stripe and "Tip:" */
.guide {
  margin: 28px 0 0; padding: 14px 18px; border-radius: 12px;
  border: 1px dashed var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.guide summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--mint);
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::before {
  content: "+"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #04140d; font-size: 15px; font-weight: 700; line-height: 1;
}
.guide[open] summary::before { content: "−"; }
.guide summary:hover { color: var(--text); }
.guide summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.guide-body { padding-top: 12px; line-height: 1.6; animation: rise .35s var(--ease) both; }
.guide-for { margin: 12px 0 2px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.guide-for:first-child { margin-top: 0; }
.guide-ex .ex, .guide .tip { margin: 8px 0; padding: 10px 14px; border-radius: 6px; }
.guide-ex .ex { display: grid; gap: 4px; background: rgba(255,255,255,.04); border-left: 3px solid var(--mint); }
.guide-ex .ex p { margin: 0; font-size: 14px; font-style: italic; color: var(--muted); white-space: pre-line; }
.guide .tip { font-size: 13.5px; color: #ffc9c4; background: rgba(255,107,107,.08); border-left: 3px solid var(--danger); }
.guide .tip b { color: #ffb0a8; }
.link { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--mint); justify-self: start; }
.link:hover { text-decoration: underline; }
.link.copy-from { margin-top: 10px; font-size: 13.5px; }
.link:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
.link.danger { color: var(--faint); font-weight: 500; }
.link.danger:hover { color: var(--danger); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card {
  all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: grid; gap: 4px; align-content: start;
  padding: 16px 40px 16px 16px; border-radius: 14px; background: var(--field); border: 1px solid var(--line-strong);
  transition: border-color .25s, background .25s, transform .4s var(--ease);
}
.card b { font-size: 15px; }
/* group headings inside a set of cards (e.g. Full marketing programs / Single-service programs) */
.cards-h {
  grid-column: 1 / -1; margin: 10px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.cards-h:first-child { margin-top: 0; }
.card span:not(.card-check) { font-size: 13.5px; color: var(--faint); line-height: 1.45; }
.cards.compact .card { padding: 12px 34px 12px 14px; }
.cards.compact .card b { font-size: 15px; }
.cards.compact .card span:not(.card-check) { font-size: 13.5px; }
.card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.card:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.card-check {
  position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 11px; color: #04110b;
}
.card[aria-pressed="true"] { border-color: rgba(56,182,133,.7); background: rgba(56,182,133,.1); }
.card[aria-pressed="true"] .card-check { background: var(--green); border-color: var(--green); }
.card[aria-pressed="true"] .card-check::after { content: "✓"; font-weight: 700; }

/* Dual range */
.range .track { position: relative; height: 32px; margin: 4px 9px 0; }
.range .track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: var(--surface-2); }
.range .fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 99px; background: var(--line-strong); }
.range.set .fill { background: linear-gradient(90deg, var(--green), var(--mint)); box-shadow: 0 0 12px rgba(127,233,198,.45); }
.range input[type=range] {
  position: absolute; inset: 0 -9px; width: calc(100% + 18px); height: 100%; margin: 0; background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; cursor: grab;
  background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(56,182,133,.25), 0 2px 8px rgba(0,0,0,.4);
}
.range input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; cursor: grab;
  background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(56,182,133,.25), 0 2px 8px rgba(0,0,0,.4);
}
.range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--mint); }
.range:not(.set) input[type=range]::-webkit-slider-thumb { background: var(--muted); }
.range .nums { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.range input.num { width: 130px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.range .to { font-size: 13px; color: var(--faint); }
.range-out { margin: 8px 0 0; font-size: 13px; color: var(--faint); }
.range.set .range-out { color: var(--mint); }

/* Help flag + nav */
.wizard-nav { align-items: center; }
.help-flag {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; cursor: pointer;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--gold); background: rgba(255,193,7,.08); border: 1px solid rgba(255,193,7,.4);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.help-flag:hover { background: rgba(255,193,7,.16); border-color: var(--gold); }
.help-flag:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.help-flag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* the yellow checkbox */
.hf-box {
  width: 18px; height: 18px; flex: none; border-radius: 5px; border: 2px solid var(--gold); box-sizing: border-box;
  background: transparent center/12px no-repeat; transition: background-color .15s;
}
.help-flag.on { color: #1a1300; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.help-flag.on:hover { background: #ffcd38; }
/* flagged: red check mark in a white box */
.help-flag.on .hf-box {
  border-color: #fff; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5322d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
/* review page: answers on a flagged step */
.flag-tag {
  display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--gold); background: rgba(255,193,7,.1); border: 1px solid rgba(255,193,7,.35);
}
.help-note {
  margin: -4px 0 22px; padding: 14px 16px; border-radius: 12px; font-size: 14px; color: var(--muted);
  background: rgba(255,193,7,.07); border: 1px solid rgba(255,193,7,.3);
}
.help-note b { color: var(--gold); }
.wizard-nav .btn-primary { margin-left: 0; }

/* Personas */
.avatar {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #04110b;
  background: linear-gradient(135deg, var(--mint), var(--green));
}
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.hub { display: grid; gap: 22px; }
.hub .build-persona { justify-self: start; }
.mini { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.p-list { display: grid; gap: 10px; }
.p-card {
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "av body pct" "av actions actions"; gap: 4px 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(56,182,133,.35);
}
.p-card .avatar { grid-area: av; }
.p-card .p-body { grid-area: body; min-width: 0; }
.p-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.p-card .p-body p { margin: 2px 0 0; font-size: 13px; color: var(--faint); }
.p-card .p-pct { grid-area: pct; font-size: 13px; font-weight: 600; color: var(--mint); }
.p-card .p-actions { grid-area: actions; display: flex; gap: 18px; }
.p-count { margin: 0; color: var(--muted); font-size: 14px; }
.picker { display: grid; gap: 14px; }
.picker-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.picker-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.picker > .btn { justify-self: start; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-card {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .4s var(--ease), box-shadow .3s;
}
.t-card:hover { border-color: rgba(56,182,133,.6); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.t-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.t-card.used { border-color: rgba(56,182,133,.4); }
.t-top { display: flex; justify-content: space-between; align-items: center; }
.t-seg { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.t-card b { font-size: 15px; }
.t-snap { font-size: 13px; color: var(--faint); line-height: 1.45; flex: 1; }
.t-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 8px; border-top: 1px solid var(--line); }
.t-use { color: var(--mint); font-weight: 600; }

/* Review */

/* Mobile */
@media (max-width: 900px) {
  .wizard { grid-template-columns: 1fr; gap: 20px; }
  .rail { position: static; max-height: none; overflow: visible; }
  .rail-toggle {
    all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500;
  }
  .rail-toggle:focus-visible { outline: 2px solid var(--mint); }
  .rail .chev { transition: transform .3s var(--ease); color: var(--faint); }
  .rail.open .chev { transform: rotate(180deg); }
  .rail-list { display: none; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
  .rail.open .rail-list { display: block; }
}
@media (max-width: 640px) {
  .wizard-nav { flex-wrap: wrap; }
  .help-flag { order: -1; width: 100%; margin: 0 0 6px; justify-content: center; }
  .wizard-nav .btn-primary { margin-left: auto; }
  .range input.num { width: 110px; }
  .p-card { grid-template-columns: auto 1fr; grid-template-areas: "av body" "pct pct" "actions actions"; }

  /* Phone pass (2026-11-24): more room for content, tidier rows */
  .shell:has(> .wizard:not([hidden])) { padding-left: 12px; padding-right: 12px; padding-top: 20px; }
  .screen { padding: 22px 16px; border-radius: 18px; }
  .screen h2 { font-size: 22px; }
  .stage-top .eyebrow { font-size: 11.5px; letter-spacing: .1em; }
  .pct { font-size: 12px; }
  .fields { gap: 22px 10px; }
  .terr-card, .access { padding: 14px; }
  .access .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }       /* 2×2 status buttons */
  .access .seg .chip span { width: 100%; justify-content: center; text-align: center; box-sizing: border-box; padding: 9px 6px; font-size: 13.5px; }
  .access .seg .chip[aria-pressed="true"] span::before { display: none; }   /* no check mark, so labels fit on one line */
  .terr-drop { align-items: flex-start; gap: 12px; padding: 14px; font-size: 14.5px; }
  .terr-drop-icon { width: 30px; height: 30px; font-size: 14px; }
  .guide { padding: 12px 14px; }
  .review-row { gap: 4px; }
  .intro-meta { gap: 8px; }
  .stat { padding: 14px 6px 12px; }
  .stat b { font-size: 16px; }
  .stat span { font-size: 11.5px; }
  .done-kickoff { border-radius: 18px; }
  .next-steps { padding: 20px 18px; }
}
