/* Big Web — Website Requirement Form */
:root {
  --brand: #5b21d6;
  --brand-2: #7c3aed;
  --brand-3: #a78bfa;
  --brand-soft: #f1ecff;
  --ink: #1a1433;
  --ink-2: #4b4568;
  --muted: #7d7896;
  --line: #e7e3f3;
  --card: rgba(255, 255, 255, 0.82);
  --yes: #16a34a;
  --yes-soft: #e9f9ef;
  --no: #e11d48;
  --no-soft: #fff0f3;
  --warn: #d97706;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(26, 20, 51, 0.04), 0 8px 30px rgba(91, 33, 214, 0.08);
  --shadow-lg: 0 20px 60px rgba(91, 33, 214, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #faf9ff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  animation: float 22s ease-in-out infinite alternate;
}
.b1 { width: 520px; height: 520px; background: #c4b5fd; top: -160px; left: -120px; }
.b2 { width: 460px; height: 460px; background: #fbcfe8; bottom: -160px; right: -100px; animation-delay: -7s; }
.b3 { width: 380px; height: 380px; background: #bae6fd; top: 40%; left: 55%; animation-delay: -14s; opacity: 0.4; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(91, 33, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 33, 214, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(250, 249, 255, 0.75);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(231, 227, 243, 0.8);
}
.brand img { height: 40px; width: auto; display: block; }
.topbar-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.topbar-title strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.site-link {
  font-size: 13px; font-weight: 600; text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: var(--brand-soft); transition: background 0.2s, transform 0.2s var(--spring);
}
.site-link:hover { background: #e4dafe; transform: translateY(-1px); }
.save-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted);
  opacity: 0; transform: translateY(-4px); transition: 0.3s var(--ease);
}
.save-pill.show { opacity: 1; transform: none; }
.save-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--yes); }
.save-pill.saving i { background: var(--warn); animation: blink 0.8s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

.progress-track { position: sticky; top: 64px; z-index: 19; height: 3px; background: transparent; }
.progress-bar {
  height: 100%; width: 2%;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), #ec4899);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  transition: width 0.6s var(--ease);
  border-radius: 0 3px 3px 0;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Layout ---------- */
.layout {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 32px clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}
body.has-stepper .layout { grid-template-columns: 290px minmax(0, 1fr); }
.stage { min-width: 0; }

/* stage transitions */
.stage.leave-fwd { animation: leaveFwd 0.22s ease-in forwards; }
.stage.leave-back { animation: leaveBack 0.22s ease-in forwards; }
.stage.enter-fwd { animation: enterFwd 0.45s var(--ease); }
.stage.enter-back { animation: enterBack 0.45s var(--ease); }
@keyframes leaveFwd { to { opacity: 0; transform: translateX(-30px); } }
@keyframes leaveBack { to { opacity: 0; transform: translateX(30px); } }
@keyframes enterFwd { from { opacity: 0; transform: translateX(40px); } }
@keyframes enterBack { from { opacity: 0; transform: translateX(-40px); } }

/* staggered entrance */
.anim { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Stepper ---------- */
.stepper { position: sticky; top: 96px; align-self: start; min-width: 0; }
.stepper:empty { display: none; }
.stepper-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; margin-bottom: 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.ring {
  --p: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), #ece8f8 0);
  transition: background 0.5s;
}
.ring span {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: var(--brand);
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; position: relative; }
.step-link {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--spring);
}
.step-link:hover { background: rgba(255, 255, 255, 0.7); transform: translateX(3px); }
.step-link.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.step-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: #efebfb; color: var(--brand-2); transition: 0.3s var(--ease);
}
.step-link.active .step-ico { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 16px rgba(91, 33, 214, 0.35); }
.step-link.done .step-ico { background: var(--yes-soft); color: var(--yes); }
.step-txt { display: flex; flex-direction: column; min-width: 0; }
.step-txt b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.step-txt small { font-size: 11.5px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 13px 22px; border-radius: 14px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px;
  text-decoration: none; transition: transform 0.25s var(--spring), box-shadow 0.25s, background 0.25s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px rgba(91, 33, 214, 0.32);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(91, 33, 214, 0.4); }
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover .ic { transform: translateX(3px); }
.btn .ic { transition: transform 0.25s var(--spring); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-3); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 16px; }
.btn:disabled { cursor: progress; opacity: 0.85; }
.chip-btn {
  cursor: pointer; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: 0.2s;
}
.chip-btn:hover { border-color: var(--brand-3); color: var(--brand); background: var(--brand-soft); }
.link-btn { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.btn-submit .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .ic { display: none; }
.btn-submit.loading .lbl::after { content: "…"; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Welcome ---------- */
.welcome, .success { max-width: 820px; margin: 4vh auto 0; text-align: center; }
.welcome-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand-2);
  animation: ping 1.6s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.welcome h1, .success h1 {
  font-size: clamp(34px, 5.6vw, 60px); line-height: 1.08; letter-spacing: -0.03em; margin: 22px 0 18px; font-weight: 800;
}
.grad {
  background: linear-gradient(120deg, var(--brand), #c026d3 50%, var(--brand-2));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradMove 5s ease-in-out infinite alternate;
}
@keyframes gradMove { to { background-position: 100% center; } }
.lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 640px; margin: 0 auto; }
.yes-t { color: var(--yes); } .no-t { color: var(--no); }
.client-input { display: block; max-width: 420px; margin: 28px auto 0; text-align: left; }
.client-input span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }
.client-input input { width: 100%; font-size: 17px; padding: 14px 16px; }
.shake { animation: shake 0.45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.welcome-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 38px 0 34px; }
.mini-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
  transition: transform 0.3s var(--spring), box-shadow 0.3s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mini-card .ic { width: 26px; height: 26px; color: var(--brand-2); margin-bottom: 6px; }
.mini-card small { color: var(--muted); }
.welcome-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section-head {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; margin-bottom: 22px;
  border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.section-head h2 { margin: 4px 0 6px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.section-head p { margin: 0; line-height: 1.6; font-size: 14.5px; }
.section-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, #c026d3);
  box-shadow: 0 10px 24px rgba(91, 33, 214, 0.3);
}
.section-ico .ic { width: 24px; height: 24px; }
.section-ico.sm { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
.section-ico.sm .ic { width: 18px; height: 18px; }
.section-count {
  margin-left: auto; text-align: right; flex: none; line-height: 1;
  display: grid; grid-template-columns: auto auto; align-items: baseline;
}
.section-count b { font-size: 34px; font-weight: 800; color: var(--brand); transition: color 0.3s; }
.section-count span { font-size: 18px; color: var(--muted); font-weight: 700; }
.section-count small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-count.complete b { color: var(--yes); }

.group { margin-bottom: 26px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 12px; }
.group-head h3 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.group-head h3::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(var(--brand-2), #c026d3); }
.group-tools { display: flex; gap: 6px; }

/* Feature card */
.features { display: grid; gap: 10px; }
.feature {
  border-radius: 16px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(26, 20, 51, 0.03);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.feature:hover { border-color: #d6cdf5; box-shadow: var(--shadow); }
.feature[data-state="yes"] { border-color: rgba(22, 163, 74, 0.45); background: linear-gradient(90deg, var(--yes-soft), #fff 55%); }
.feature[data-state="no"] { border-color: rgba(225, 29, 72, 0.35); background: linear-gradient(90deg, var(--no-soft), #fff 55%); }
.feature.pop { animation: pop 0.35s var(--spring); }
@keyframes pop { 40% { transform: scale(1.012); } }
.feature-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px 6px; }
.feature-idx {
  font-size: 12px; font-weight: 800; color: var(--brand-3); width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--brand-soft); flex: none; transition: 0.3s;
}
.feature[data-state="yes"] .feature-idx { background: var(--yes); color: #fff; }
.feature[data-state="no"] .feature-idx { background: var(--no); color: #fff; }
.feature-label { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.5; font-weight: 500; }

/* YES / NO segmented toggle */
.choice {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: none; width: 168px;
  padding: 4px; border-radius: 12px; background: #f3f1fa; border: 1px solid var(--line);
}
.choice-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px;
  background: #fff; box-shadow: 0 2px 8px rgba(26, 20, 51, 0.12);
  opacity: 0; transform: scale(0.6); transition: transform 0.4s var(--spring), opacity 0.2s, background 0.3s;
}
.feature[data-state="yes"] .choice-thumb { opacity: 1; transform: translateX(0); background: var(--yes); }
.feature[data-state="no"] .choice-thumb { opacity: 1; transform: translateX(100%); background: var(--no); }
.choice-btn {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; padding: 8px 6px; border-radius: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; transition: color 0.25s;
}
.choice-btn .ic { width: 14px; height: 14px; display: none; }
.choice-btn:hover { color: var(--ink); }
.choice-btn[aria-checked="true"] { color: #fff; }
.choice-btn[data-choice="yes"][aria-checked="true"] .ic { display: block; animation: draw 0.4s var(--ease); }
@keyframes draw { from { transform: scale(0) rotate(-30deg); } }
.choice-btn:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }

.note-toggle {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px 60px; padding: 4px 8px; border-radius: 8px;
  border: 0; background: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: 0.2s;
}
.note-toggle .ic { width: 14px; height: 14px; transition: transform 0.3s var(--spring); }
.note-toggle:hover { color: var(--brand); background: var(--brand-soft); }
.feature.note-open .note-toggle { color: var(--brand); }
.feature.note-open .note-toggle .ic { transform: rotate(45deg); }
.note-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.note-wrap > div { overflow: hidden; padding: 0 16px 0 60px; }
.feature.note-open .note-wrap { grid-template-rows: 1fr; }
.feature.note-open .note-wrap > div { padding-bottom: 14px; }
.note-wrap textarea { width: 100%; resize: vertical; min-height: 54px; }

/* Inputs */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14); }
input:disabled { background: #f6f4fc; color: var(--ink-2); font-weight: 700; }
::placeholder { color: #aaa5c0; }
.fields { display: grid; gap: 14px; }
.fields.grid-2 { grid-template-columns: 1fr 1fr; }
.field {
  display: block; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field:focus-within { border-color: #d6cdf5; box-shadow: var(--shadow); }
.field.filled { border-color: #ddd3fb; }
.field-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 10px; color: var(--ink-2); }
.field-label small { font-weight: 500; color: var(--muted); }
.req { color: var(--no); font-style: normal; }
.field-error, .agree-error { display: block; font-size: 12px; color: var(--no); font-weight: 600; min-height: 0; transition: 0.2s; }
.field-error:not(:empty) { margin-top: 6px; }
.field.invalid { border-color: rgba(225, 29, 72, 0.5); animation: shake 0.4s; }
.field.invalid input { border-color: rgba(225, 29, 72, 0.5); }
.signature-preview {
  margin-top: 12px; min-height: 58px; padding: 6px 4px 0; border-bottom: 2px dashed var(--line);
  font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 30px; color: var(--brand);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agree {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; cursor: pointer;
  background: var(--brand-soft); border: 1.5px solid #e2d8fd; line-height: 1.6; font-size: 14px;
}
.agree.invalid { border-color: rgba(225, 29, 72, 0.5); animation: shake 0.4s; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree .box {
  width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--brand-3); background: #fff; flex: none;
  display: grid; place-items: center; transition: 0.25s var(--spring); margin-top: 1px;
}
.agree .box .ic { width: 15px; height: 15px; color: #fff; transform: scale(0); transition: transform 0.3s var(--spring); }
.agree input:checked + .box { background: var(--brand-2); border-color: var(--brand-2); }
.agree input:checked + .box .ic { transform: scale(1); }
.agree input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2); }

/* Nav row */
.nav-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 1px dashed var(--line);
}
.nav-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Review ---------- */
.summary-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.tile {
  padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.tile b { font-size: 36px; font-weight: 800; color: var(--brand); line-height: 1; }
.tile:nth-child(1) b { color: var(--yes); }
.tile:nth-child(2) b { color: var(--no); }
.tile.warn b { color: var(--warn); }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.notice {
  padding: 14px 18px; border-radius: 14px; background: #fff8eb; border: 1px solid #fde3b0; color: #92400e;
  font-size: 14px; margin: 0 0 18px; line-height: 1.6;
}
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.review-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-head h3 { margin: 0; font-size: 16px; flex: 1; min-width: 180px; }
.review-stats { display: flex; gap: 6px; }
.pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill.yes { background: var(--yes-soft); color: var(--yes); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.open { background: #fff4e0; color: var(--warn); }
.review-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.review-list li {
  position: relative; padding: 8px 12px 8px 36px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; background: #faf9fe;
}
.review-list li::before {
  position: absolute; left: 11px; top: 8px; width: 17px; height: 17px; border-radius: 50%;
  display: grid; place-items: center; font-size: 10px; font-weight: 900; color: #fff;
}
.review-list li.yes::before { content: "✓"; background: var(--yes); }
.review-list li.no::before { content: "✕"; background: var(--no); }
.review-list li.open::before { content: "?"; background: var(--warn); }
.review-list li.open { color: var(--muted); }
.review-list em { display: block; font-style: normal; font-size: 12.5px; color: var(--brand); margin-top: 2px; }
.review-list em::before { content: "Note: "; font-weight: 700; }
.review-fields { margin: 14px 0 0; display: grid; gap: 4px 18px; font-size: 13.5px; }
.review-fields dt { font-weight: 700; color: var(--ink-2); margin-top: 6px; }
.review-fields dd { margin: 0; color: var(--ink); white-space: pre-wrap; }
.review-fields.cols { grid-template-columns: 200px 1fr; }
.review-fields.cols dt { margin-top: 0; }
.review-fields .sig, .print-sheet .sig { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 20px; color: var(--brand); }

/* ---------- Success ---------- */
.success-mark { width: 110px; height: 110px; margin: 0 auto; }
.success-mark svg { width: 100%; height: 100%; fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.success-mark circle {
  stroke: var(--yes); fill: var(--yes-soft); stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: dash 0.8s var(--ease) 0.2s forwards;
}
.success-mark path { stroke: var(--yes); stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash 0.5s var(--ease) 0.85s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.ref {
  display: inline-flex; flex-direction: column; gap: 4px; margin: 26px 0; padding: 14px 26px; border-radius: 16px;
  background: #fff; border: 1px dashed var(--brand-3);
}
.ref span { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ref b { font-size: 20px; letter-spacing: 0.04em; color: var(--brand); }
.success .notice { max-width: 560px; margin: 0 auto 22px; }
.success .link-btn { display: inline-block; margin-top: 22px; }

/* ---------- Footer, toast, confetti ---------- */
.footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 22px 16px 28px; }
.footer a { font-weight: 700; text-decoration: none; }
.footer .dot { margin: 0 6px; color: var(--brand-3); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 12px 20px; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); transition: 0.35s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; display: none; }
#confetti.on { display: block; }
.print-sheet { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  body.has-stepper .layout { grid-template-columns: minmax(0, 1fr); }
  .stepper { position: static; }
  .stepper-head { display: none; }
  .steps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .steps::-webkit-scrollbar { display: none; }
  .step-link { padding: 6px; }
  .step-link .step-txt { display: none; }
  .step-link.active .step-txt { display: flex; white-space: nowrap; }
  .step-link:hover { transform: none; }
}
@media (max-width: 720px) {
  .topbar { gap: 12px; }
  .brand img { height: 32px; width: auto; }
  .site-link, .save-pill { display: none; }
  .progress-track { top: 56px; }
  .layout { padding-top: 20px; }
  .welcome-cards, .summary-tiles { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; padding: 20px; }
  .section-head > div:nth-child(2) { min-width: 0; flex: 1 1 200px; }
  .topbar-title .eyebrow { display: none; }
  .section-count { margin-left: 0; }
  .feature-main { flex-wrap: wrap; }
  .feature-label { flex-basis: calc(100% - 50px); }
  .choice { width: calc(100% - 44px); margin-left: 44px; }
  .note-toggle { margin-left: 58px; }
  .note-wrap > div { padding-left: 16px; }
  .fields.grid-2 { grid-template-columns: 1fr; }
  .review-fields.cols { grid-template-columns: 1fr; }
  .nav-row .btn { flex: 1; }
  .nav-right { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Print / PDF copy ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; display: block; }
  .bg, .topbar, .progress-track, .layout, .footer, .toast, #confetti { display: none !important; }
  .print-sheet { display: block; color: #111; font-size: 10.5pt; }
  .print-sheet .p-head { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid var(--brand); padding-bottom: 10px; margin-bottom: 10px; }
  .print-sheet .p-head img { height: 44px; width: auto; }
  .print-sheet h1 { font-size: 15pt; margin: 0; color: var(--brand); }
  .print-sheet .p-head p { margin: 2px 0 0; color: #555; }
  .print-sheet h2 { font-size: 12.5pt; margin: 16px 0 6px; color: var(--brand); break-after: avoid; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin-bottom: 8px; break-inside: auto; }
  .print-sheet tr { break-inside: avoid; }
  .print-sheet th, .print-sheet td { border: 1px solid #cfc8e6; padding: 5px 7px; text-align: left; vertical-align: top; }
  .print-sheet th { background: #f1ecff; font-size: 9.5pt; }
  .print-sheet th.h-group { background: var(--brand); color: #fff; }
  .print-sheet .c { text-align: center; width: 42px; font-size: 12pt; }
  .print-sheet td.q { width: 42%; font-weight: 600; }
  .print-sheet .p-note, .print-sheet .p-ref { color: #444; }
  .print-sheet .p-foot { margin-top: 18px; text-align: center; color: #666; font-size: 9pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
