:root {
  --ink: #0c1110;
  --ink-2: #151b19;
  --charcoal: #1d2421;
  --paper: #f6f2e8;
  --paper-2: #ebe4d6;
  --paper-3: #fffaf0;
  --muted: #6c706a;
  --soft-muted: #9d9a8f;
  --line: rgba(21, 27, 25, 0.16);
  --line-dark: rgba(246, 242, 232, 0.18);
  --mint: #55dcc4;
  --mint-dark: #1f7c6e;
  --gold: #bd8a2c;
  --danger: #c46c46;
  --ok: #2f8f6f;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(12, 17, 16, 0.18);
  --font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#funnel, .workspace, .advisor-panel, #price, #guardrails, #handoff {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--ink) 0 38px, var(--paper) 38px 100%);
  font-family: var(--font);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

button, textarea, input { font: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(85, 220, 196, 0.56);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #f7f2e8;
  background: rgba(12, 17, 16, 0.94);
  border-bottom: 1px solid rgba(246, 242, 232, 0.14);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 34px;
  place-items: center;
  color: #07100e;
  background: var(--mint);
  border: 1px solid rgba(246, 242, 232, 0.22);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.brand img {
  width: 92px;
  max-height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.06rem; letter-spacing: 0; }
.brand small { color: rgba(247, 242, 232, 0.66); font-size: 0.78rem; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  color: rgba(247, 242, 232, 0.74);
  font-size: 0.92rem;
  font-weight: 700;
}

.topnav a:hover { color: #fff; }

.line-cta, .primary-action, .secondary-action, .ghost-button, .copy-button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.line-cta, .primary-action {
  color: #07100e;
  background: var(--mint);
  box-shadow: 0 12px 24px rgba(85, 220, 196, 0.18);
}

.line-cta:hover, .primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(85, 220, 196, 0.24);
}

.secondary-action {
  color: #f7f2e8;
  background: rgba(247, 242, 232, 0.1);
  border-color: rgba(247, 242, 232, 0.2);
}

.secondary-action:hover, .ghost-button:hover, .copy-button:hover {
  border-color: rgba(85, 220, 196, 0.42);
}

.ghost-button, .copy-button {
  color: var(--ink);
  background: #fffaf0;
  border-color: var(--line);
}

.hero-funnel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(22px, 4vw, 52px);
  align-items: end;
  min-height: 548px;
  padding: 76px clamp(18px, 5vw, 72px) 92px;
  color: #f8f3e8;
  background:
    linear-gradient(90deg, rgba(85, 220, 196, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(12, 17, 16, 0.99), rgba(27, 34, 31, 0.97) 54%, rgba(12, 17, 16, 0.99));
  overflow: hidden;
}

.hero-funnel::after {
  content: "";
  position: absolute;
  inset: 8% -10% auto auto;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 242, 232, 0.12);
  background:
    linear-gradient(90deg, transparent 49%, rgba(246, 242, 232, 0.05) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(246, 242, 232, 0.05) 50%, transparent 51%);
  background-size: 36px 36px;
  transform: rotate(-8deg);
  opacity: 0.66;
}

.hero-copy, .trust-strip { position: relative; z-index: 1; }

.route-line {
  width: fit-content;
  margin: 0 0 18px;
  padding: 9px 12px;
  color: var(--mint);
  background: rgba(85, 220, 196, 0.1);
  border: 1px solid rgba(85, 220, 196, 0.28);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.7vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 760px;
  color: rgba(248, 243, 232, 0.82);
  font-size: 1.12rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(248, 243, 232, 0.86);
  background: rgba(246, 242, 232, 0.1);
  border: 1px solid rgba(246, 242, 232, 0.14);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-strip {
  display: grid;
  gap: 12px;
  align-self: stretch;
  padding: 18px;
  background: rgba(246, 242, 232, 0.09);
  border: 1px solid rgba(246, 242, 232, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.trust-head {
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(246, 242, 232, 0.14);
}

.trust-head span, .trust-head strong { display: block; }
.trust-head span {
  margin-bottom: 4px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}
.trust-head strong {
  max-width: 300px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.trust-strip article {
  padding: 16px;
  background: rgba(12, 17, 16, 0.44);
  border: 1px solid rgba(246, 242, 232, 0.12);
  border-radius: var(--radius);
}

.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { margin-bottom: 4px; font-size: 1.15rem; }
.trust-strip span { color: rgba(248, 243, 232, 0.68); font-size: 0.9rem; }

.workspace {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
  margin-top: -62px;
  padding: 0 clamp(14px, 3vw, 42px) 54px;
  background: linear-gradient(180deg, rgba(239, 232, 218, 0) 0, #efe8da 62px, #f6f2e8 42%);
}

.scenario-panel, .advisor-panel, .result-panel {
  min-width: 0;
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(12, 17, 16, 0.08);
  backdrop-filter: blur(10px);
}

.scenario-panel, .advisor-panel { padding: 20px; }
.result-panel { padding: 18px; }

@media (min-width: 1181px) {
  .scenario-panel, .result-panel {
    position: sticky;
    top: 94px;
  }
  .result-panel {
    max-height: calc(100vh - 112px);
    overflow: auto;
  }
}

.panel-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-heading.compact { padding-bottom: 14px; }
.panel-heading span, .section-note {
  display: block;
  margin-bottom: 7px;
  color: var(--mint-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.panel-heading h2, .price-band h2, .guardrail-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1.12;
}

.panel-heading p, .price-band p, .guardrail-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-caution {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.scenario-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.scenario-button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 104px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background: #fffaf0;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.scenario-button:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 124, 110, 0.34);
}

.scenario-button[data-active="true"] {
  color: #f9f3e8;
  background: var(--ink-2);
  border-color: rgba(85, 220, 196, 0.42);
  border-left-color: var(--mint);
}

.scenario-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--paper-2);
  border-radius: 50%;
  font-weight: 1000;
}

.scenario-button[data-active="true"] .scenario-icon {
  color: #07100e;
  background: var(--mint);
}

.scenario-button strong, .scenario-button small, .scenario-button span { display: block; }
.scenario-button strong { margin-bottom: 4px; font-size: 1.02rem; }
.scenario-button span { color: var(--muted); font-size: 0.88rem; }
.scenario-button small { margin-top: 8px; color: var(--mint-dark); font-weight: 900; }
.scenario-button[data-active="true"] span { color: rgba(249, 243, 232, 0.7); }
.scenario-button[data-active="true"] small { color: var(--mint); }

.progress-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  margin: 18px 0;
}

.quick-brief {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  color: #f8f3e8;
  background:
    linear-gradient(135deg, rgba(21, 27, 25, 0.96), rgba(29, 36, 33, 0.92));
  border: 1px solid rgba(85, 220, 196, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(12, 17, 16, 0.12);
}

.quick-brief-head span, .quick-brief-head strong {
  display: block;
}

.quick-brief-head span {
  margin-bottom: 4px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.quick-brief-head strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.quick-brief textarea {
  width: 100%;
  min-height: 110px;
  color: #f8f3e8;
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: var(--radius);
  outline: 0;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.quick-brief textarea::placeholder {
  color: rgba(248, 243, 232, 0.48);
}

.quick-brief textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(85, 220, 196, 0.12);
}

.quick-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-brief-actions .primary-action,
.quick-brief-actions .ghost-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.quick-brief-status {
  margin: 0;
  color: rgba(248, 243, 232, 0.66);
  font-size: 0.84rem;
}

.quick-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-preset-button {
  min-height: 34px;
  padding: 0 11px;
  color: rgba(248, 243, 232, 0.88);
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.quick-preset-button:hover {
  border-color: rgba(85, 220, 196, 0.5);
}

.quick-brief-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-brief-chips:empty {
  display: none;
}

.quick-brief-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #07100e;
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.progress-dot {
  min-height: 8px;
  border-radius: 999px;
  background: rgba(12, 17, 16, 0.15);
}

.progress-dot[data-state="done"] { background: var(--ok); }
.progress-dot[data-state="active"] { background: var(--mint); box-shadow: 0 0 0 4px rgba(85, 220, 196, 0.18); }

.question-card {
  position: relative;
  padding: clamp(18px, 3vw, 30px);
  color: #f8f3e8;
  background: var(--ink-2);
  border: 1px solid rgba(246, 242, 232, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.question-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mint), rgba(189, 138, 44, 0.88), transparent);
}

.question-label {
  margin-bottom: 12px;
  color: var(--mint);
  font-size: 0.86rem;
  font-weight: 900;
}

.question-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3.5vw, 3.2rem);
  line-height: 1.04;
}

.question-card p[data-question-help] {
  color: rgba(248, 243, 232, 0.72);
}

.answer-zone {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-button {
  min-height: 64px;
  padding: 12px;
  color: #f8f3e8;
  text-align: left;
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.18);
  border-radius: var(--radius);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(85, 220, 196, 0.5);
}

.choice-button[data-active="true"] {
  color: #07100e;
  background: var(--mint);
  border-color: var(--mint);
}

.choice-button strong, .choice-button span { display: block; }
.choice-button strong { font-size: 1rem; }
.choice-button span { margin-top: 3px; opacity: 0.72; font-size: 0.84rem; }

.answer-input, .answer-textarea {
  width: 100%;
  color: #f8f3e8;
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.2);
  border-radius: var(--radius);
  outline: 0;
}

.answer-input { min-height: 54px; padding: 0 14px; }
.answer-textarea { min-height: 118px; padding: 14px; resize: vertical; }
.answer-input:focus, .answer-textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 4px rgba(85, 220, 196, 0.12); }

.advisor-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.advisor-controls .ghost-button, .advisor-controls .primary-action {
  min-width: 116px;
}

.status-card {
  display: grid;
  gap: 4px;
  padding: 15px;
  color: #f8f3e8;
  background: var(--ink-2);
  border-radius: var(--radius);
}

.status-card span {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-card[data-status="ready"] { background: #123d34; }
.status-card[data-status="human"] { background: #4a2b20; }
.status-card[data-status="human"] span { color: #f2b38b; }

.draft-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 16px 0;
  padding: 16px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.draft-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.draft-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.missing-card, .handoff-check-card, .handoff-card {
  padding: 15px;
  background: rgba(235, 228, 214, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.missing-card h3, .handoff-check-card h3, .handoff-card h3 { margin-bottom: 10px; font-size: 1rem; }
.missing-card ul, .handoff-check-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.missing-card li {
  padding: 9px 10px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}
.missing-card li strong,
.missing-card li span {
  display: block;
}
.missing-card li strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.9rem;
}
.missing-card li span {
  line-height: 1.5;
}
.missing-card li[data-type="human"] {
  background: #fff4eb;
  border-color: rgba(196, 108, 70, 0.32);
}
.missing-card li[data-type="human"] strong {
  color: #8d4225;
}
.missing-card li[data-type="ready"] {
  background: #eaf8ef;
  border-color: rgba(47, 143, 111, 0.26);
}
.missing-card li[data-type="ready"] strong {
  color: #1f6a52;
}

.handoff-check-card {
  margin-top: 14px;
  background: #fffaf0;
}

.handoff-check-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.handoff-check-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-dark);
}

.handoff-card { margin-top: 14px; }
.handoff-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.copy-button { min-height: 36px; padding: 0 12px; font-size: 0.84rem; }
.handoff-card textarea {
  width: 100%;
  min-height: 230px;
  color: #f8f3e8;
  background: var(--ink);
  border: 1px solid rgba(12, 17, 16, 0.32);
  border-radius: var(--radius);
  padding: 13px;
  resize: vertical;
  line-height: 1.62;
}

.copy-status { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; }

.package-band, .price-band, .process-band, .guardrail-band, .faq-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 72px);
}

.package-band {
  background: #efe8da;
  border-top: 1px solid var(--line);
}

.section-copy {
  max-width: 680px;
}

.section-copy p {
  color: var(--muted);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.package-grid article {
  min-width: 0;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.package-grid span {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  color: #07100e;
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 1000;
}

.package-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.24rem;
}

.package-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.scope-list {
  grid-column: 2;
  padding: 14px 16px;
  background: rgba(85, 220, 196, 0.12);
  border: 1px solid rgba(31, 124, 110, 0.22);
  border-radius: var(--radius);
}

.scope-list strong {
  color: var(--ink);
}

.scope-list span {
  color: var(--muted);
}

.price-band {
  background: var(--paper-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-grid article {
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
}

.price-grid span, .price-grid strong, .price-grid small { display: block; }
.price-grid span { color: var(--muted); font-weight: 800; }
.price-grid strong { margin: 8px 0 4px; font-size: 1.35rem; }
.price-grid small { color: var(--muted); }

.guardrail-band {
  color: #f8f3e8;
  background: var(--ink);
}

.guardrail-copy p { color: rgba(248, 243, 232, 0.72); }

.guardrail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guardrail-list li {
  padding: 18px;
  background: rgba(246, 242, 232, 0.08);
  border: 1px solid rgba(246, 242, 232, 0.14);
  border-radius: var(--radius);
}

.guardrail-list strong, .guardrail-list span { display: block; }
.guardrail-list strong { color: var(--mint); margin-bottom: 5px; }
.guardrail-list span { color: rgba(248, 243, 232, 0.72); }

.process-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-width: 0;
  padding: 18px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #07100e;
  background: var(--mint);
  border-radius: 50%;
  font-weight: 1000;
}

.process-list strong {
  display: block;
  margin: 14px 0 6px;
  font-size: 1.1rem;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.faq-band {
  background: var(--paper-3);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-list article {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.faq-list p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(248, 243, 232, 0.72);
  background: #090d0c;
  border-top: 1px solid rgba(246, 242, 232, 0.12);
}

.site-footer strong {
  color: #f8f3e8;
}

.mobile-action-bar { display: none; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .result-panel { grid-column: 1 / -1; }
  .result-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 14px;
    align-items: start;
  }
  .result-panel .panel-heading { grid-column: 1 / -1; }
  .handoff-check-card, .handoff-card { margin-top: 0; }
}

@media (max-width: 840px) {
  #funnel, .workspace, .advisor-panel, #price, #guardrails, #handoff {
    scroll-margin-top: 78px;
  }
  .topbar { grid-template-columns: 1fr auto; gap: 12px; min-height: 66px; padding: 10px 14px; }
  .topnav { display: none; }
  .brand img { width: 76px; }
  .brand small { display: none; }
  .line-cta { min-height: 40px; padding: 0 12px; font-size: 0.86rem; }
  .hero-funnel {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 20px;
    padding: 38px 14px 34px;
  }
  .hero-funnel::after {
    inset: auto -30% 6% auto;
    width: 84vw;
    opacity: 0.34;
  }
  .route-line {
    margin-bottom: 14px;
    font-size: 0.78rem;
  }
  h1 { font-size: 2.92rem; line-height: 1.02; }
  .hero-lede {
    max-width: 34rem;
    font-size: 1rem;
  }
  .hero-actions .primary-action, .hero-actions .secondary-action { width: 100%; }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
  }
  .trust-head {
    display: none;
  }
  .trust-strip article {
    padding: 9px;
  }
  .trust-strip strong {
    margin-bottom: 2px;
    font-size: 0.86rem;
  }
  .trust-strip span {
    font-size: 0.72rem;
    line-height: 1.35;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
    padding: 12px 12px 92px;
    background: linear-gradient(180deg, #efe8da, #f6f2e8 34%);
  }
  .advisor-panel { order: 1; }
  .scenario-panel { order: 2; }
  .result-panel { order: 3; }
  .scenario-panel, .advisor-panel, .result-panel {
    padding: 16px;
  }
  .quick-brief {
    margin-top: 14px;
    padding: 14px;
  }
  .quick-brief textarea {
    min-height: 96px;
  }
  .quick-brief-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .result-panel { display: block; }
  .choice-grid, .price-grid { grid-template-columns: 1fr; }
  .package-band, .price-band, .process-band, .guardrail-band, .faq-band { grid-template-columns: 1fr; padding: 38px 14px; }
  .package-grid, .process-list, .faq-list { grid-template-columns: 1fr; }
  .scope-list { grid-column: auto; }
  .mobile-action-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(12, 17, 16, 0.92);
    border: 1px solid rgba(246, 242, 232, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  body[data-mobile-bar="visible"] .mobile-action-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .mobile-action-bar button, .mobile-action-bar a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border: 0;
    border-radius: 7px;
    font-weight: 900;
  }
  .mobile-action-bar button { color: #07100e; background: var(--mint); }
  .mobile-action-bar a { color: #f8f3e8; background: rgba(246, 242, 232, 0.11); }
}

@media (max-width: 520px) {
  h1 { font-size: 2.34rem; }
  .hero-lede { font-size: 1rem; }
  .trust-strip {
    gap: 6px;
  }
  .trust-strip article {
    padding: 8px 7px;
  }
  .scenario-button, .draft-card { grid-template-columns: 1fr; }
  .scenario-button {
    min-height: 0;
    padding: 12px;
  }
  .scenario-icon { width: 38px; height: 38px; }
  .progress-track { gap: 5px; }
  .question-card {
    padding: 18px;
  }
  .quick-brief-actions {
    grid-template-columns: 1fr;
  }
  .question-card h3 {
    font-size: 1.74rem;
    line-height: 1.1;
  }
  .choice-button {
    min-height: 58px;
  }
  .advisor-controls { flex-direction: column; }
  .advisor-controls .ghost-button, .advisor-controls .primary-action { width: 100%; }
  .handoff-card textarea {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
