@charset "utf-8";

:root {
  color-scheme: light;
  --q-paper: #f4f1e8;
  --q-surface: #fbfaf5;
  --q-ink: #24332b;
  --q-muted: #505b51;
  --q-olive: #3e4b2e;
  --q-olive-dark: #2e3824;
  --q-sage: #dde5d8;
  --q-citron: #c7d47a;
  --q-line: #d8d8cc;
  --q-caution: #8b4e32;
  --q-white: #fffefa;
  --q-shadow: 0 18px 52px rgb(49 58 43 / 7%);
  --q-radius: 18px;
  --q-serif: Georgia, "Times New Roman", serif;
  --q-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--q-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--q-paper);
  color: var(--q-ink);
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 2%, rgb(221 229 216 / 48%), transparent 30rem),
    var(--q-paper);
  color: var(--q-ink);
  font-size: 16px;
  line-height: 1.55;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible + .choice-card, a:focus-visible, textarea:focus-visible {
  outline: 3px solid #667742;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 9px;
  background: var(--q-olive-dark);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header, .site-footer {
  display: flex;
  width: min(1240px, calc(100% - 64px));
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
}
.site-header { min-height: 88px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(62 75 46 / 23%);
  border-radius: 50%;
  background: rgb(251 250 245 / 74%);
  color: var(--q-olive);
  font-family: var(--q-serif);
  font-size: 18px;
  letter-spacing: -.06em;
}
.brand-copy { display: grid; gap: 2px; font-size: 12px; line-height: 1.25; }
.brand-copy strong { font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.brand-copy span { color: var(--q-muted); }
.prototype-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--q-line);
  border-radius: 999px;
  background: rgb(251 250 245 / 68%);
  color: var(--q-muted);
  font-size: 13px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #75854c; }

main { width: 100%; }
.app-frame { width: min(1240px, calc(100% - 64px)); min-height: min(760px, calc(100vh - 152px)); margin: 6px auto 40px; }
.loading-state { padding: 7rem 1rem; text-align: center; color: var(--q-muted); }
.site-footer { min-height: 60px; padding-bottom: 12px; border-top: 1px solid rgb(216 216 204 / 70%); color: var(--q-muted); font-size: 13px; }

.view { animation: fade-in 150ms ease-out both; }
@keyframes fade-in { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.intro-view {
  display: block;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgb(216 216 204 / 85%);
  border-radius: 24px;
  background: var(--q-surface);
  box-shadow: var(--q-shadow);
}
.intro-copy { display: flex; max-width: 900px; min-height: 640px; flex-direction: column; justify-content: center; margin-inline: auto; padding: clamp(38px, 6.3vw, 84px); }
.eyebrow, .step-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--q-olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { width: 25px; height: 1px; content: ""; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
.intro-copy h1, .result-heading h1 {
  max-width: 660px;
  margin: 22px 0 18px;
  font-family: var(--q-serif);
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.intro-lede { max-width: 530px; margin-bottom: 25px; color: #3e4a40; font-size: 18px; line-height: 1.65; }
.team-assurance { max-width: 500px; margin: 0 0 29px; padding-left: 14px; border-left: 2px solid #a9b58c; color: var(--q-muted); font-size: 15px; }
.intro-details { display: grid; max-width: 490px; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 30px; }
.intro-detail { padding-top: 11px; border-top: 1px solid var(--q-line); }
.intro-detail strong { display: block; margin-bottom: 3px; font-family: var(--q-serif); font-size: 21px; font-weight: 400; }
.intro-detail span { display: block; color: var(--q-muted); font-size: 13px; line-height: 1.4; }
.intro-art { position: relative; display: grid; min-height: 550px; overflow: hidden; place-items: center; padding: 42px; background: #e9eddf; }
.intro-art::before, .intro-art::after { position: absolute; border: 1px solid rgb(62 75 46 / 13%); border-radius: 50%; content: ""; }
.intro-art::before { width: 500px; height: 500px; }
.intro-art::after { width: 380px; height: 380px; }
.art-orbit { position: absolute; z-index: 1; display: grid; width: 73px; height: 73px; place-items: center; border: 1px solid rgb(62 75 46 / 14%); border-radius: 50%; background: #f6f5ee; color: var(--q-olive); box-shadow: 0 8px 25px rgb(38 51 43 / 7%); }
.art-orbit svg { width: 23px; height: 23px; }
.art-orbit.one { top: 13%; right: 15%; }
.art-orbit.two { bottom: 14%; left: 13%; }
.art-orbit.three { right: 9%; bottom: 24%; width: 58px; height: 58px; background: #f1d78a; }
.hero-paper { position: relative; z-index: 2; width: min(100%, 400px); padding: 23px; transform: rotate(-2deg); border: 1px solid #d7ddcf; border-radius: 18px; background: #fbfaf5; box-shadow: 0 22px 55px rgb(37 53 39 / 13%); }
.hero-paper-top, .preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mini-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--q-olive); font-size: 12px; font-weight: 700; }
.mini-brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--q-sage); font-family: var(--q-serif); font-size: 12px; }
.mini-state { color: #6d7668; font-size: 11px; }
.hero-paper h2 { margin: 25px 0 18px; font-family: var(--q-serif); font-size: 27px; font-weight: 400; letter-spacing: -.025em; }
.hero-project { padding: 15px; border-radius: 12px; background: #edf0e8; }
.hero-project small, .preview-label { color: var(--q-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-project strong { display: block; margin: 5px 0 11px; font-family: var(--q-serif); font-size: 20px; font-weight: 400; }
.hero-task { display: flex; align-items: center; gap: 9px; margin-top: 8px; color: #455047; font-size: 12px; }
.task-check { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1px solid #9ca58a; border-radius: 6px; color: var(--q-olive); font-size: 12px; }
.hero-paper-note { margin: 15px 0 0; color: var(--q-muted); font-size: 12px; }
.hero-caption { position: absolute; right: 32px; bottom: 23px; max-width: 250px; color: #46554a; font-size: 12px; text-align: right; }

.primary-button, .secondary-button, .text-button, .quiet-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 120ms ease, transform 120ms ease, border-color 120ms ease;
}
.primary-button { padding: 12px 19px; background: var(--q-olive); color: white; }
.primary-button:hover { background: var(--q-olive-dark); transform: translateY(-1px); }
.secondary-button { padding: 11px 17px; border: 1px solid #bcc4b1; background: transparent; color: var(--q-olive-dark); }
.secondary-button:hover { border-color: #75845b; background: #eef1e8; }
.text-button { min-height: 42px; padding: 8px 3px; background: transparent; color: var(--q-olive); text-decoration: underline; text-decoration-color: #b4be9d; text-underline-offset: 4px; }
.quiet-button { min-height: 40px; padding: 8px 12px; border: 1px solid transparent; background: transparent; color: var(--q-muted); }
.quiet-button:hover { border-color: var(--q-line); background: rgb(255 255 255 / 45%); }
.button-arrow { font-size: 19px; line-height: 1; }
.intro-footnote { max-width: 460px; margin: 15px 0 0; color: var(--q-muted); font-size: 13px; }

.journey-view { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.question-panel, .context-panel, .result-section, .result-preview-panel, .feedback-panel, .cta-panel {
  border: 1px solid rgb(216 216 204 / 90%);
  border-radius: var(--q-radius);
  background: var(--q-surface);
  box-shadow: 0 8px 28px rgb(49 58 43 / 4%);
}
.question-panel { min-height: 590px; padding: clamp(26px, 4.5vw, 56px); }
.progress-shell { margin-bottom: 42px; }
.progress-top { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 10px; }
.step-kicker { letter-spacing: .085em; }
.step-count { color: var(--q-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #e5e6dc; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--q-olive); transition: width 140ms ease; }
.question-heading { margin-bottom: 29px; }
.question-heading h1 { max-width: 760px; margin: 11px 0 10px; font-family: var(--q-serif); font-size: clamp(31px, 3.6vw, 46px); font-weight: 400; letter-spacing: -.035em; line-height: 1.15; }
.question-heading p { max-width: 740px; margin-bottom: 0; color: var(--q-muted); font-size: 16px; }
.field-stack { display: grid; gap: 27px; }
.field-group { min-width: 0; padding: 0; border: 0; }
.field-group + .field-group { padding-top: 23px; border-top: 1px solid #e6e5dc; }
.field-legend { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.field-legend span { color: #687067; font-size: 12px; font-weight: 500; }
.field-help { margin: -5px 0 11px; color: var(--q-muted); font-size: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice { position: relative; display: flex; min-width: 0; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-card {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #d8dbd0;
  border-radius: 11px;
  background: #fffefa;
  transition: border-color 100ms ease, background-color 100ms ease, box-shadow 100ms ease;
}
.choice:hover .choice-card { border-color: #9ca88a; background: #f8f8f1; }
.choice input:checked + .choice-card { border-color: #617343; background: #eef1e7; box-shadow: inset 0 0 0 1px #617343; }
.choice input:disabled + .choice-card { opacity: .48; cursor: not-allowed; }
.choice-control { display: grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border: 1.5px solid #9da397; border-radius: 50%; background: white; }
.choice[data-type="multi_select"] .choice-control { border-radius: 5px; }
.choice input:checked + .choice-card .choice-control { border-color: var(--q-olive); background: var(--q-olive); }
.choice input:checked + .choice-card .choice-control::after { width: 7px; height: 7px; border-radius: 50%; background: white; content: ""; }
.choice[data-type="multi_select"] input:checked + .choice-card .choice-control::after { width: 9px; height: 6px; transform: rotate(-45deg) translate(1px, -1px); border: solid white; border-width: 0 0 2px 2px; border-radius: 0; background: transparent; }
.choice-label { color: #2e3b33; font-size: 14px; line-height: 1.35; }
.field-error { margin: 9px 0 0; color: #984c37; font-size: 14px; font-weight: 600; }
.field-group.invalid .choice-card { border-color: #bc755d; }
.optional-prompt { margin-top: 26px; padding: 17px 19px; border: 1px solid #d5dccb; border-radius: 13px; background: #f1f4eb; }
.optional-prompt summary { cursor: pointer; color: var(--q-olive-dark); font-weight: 700; }
.optional-prompt .field-stack { margin-top: 20px; }
.optional-label { color: var(--q-muted); font-size: 12px; font-weight: 500; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid #e6e5dc; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.question-aside { display: grid; gap: 15px; }
.context-panel { padding: 22px; }
.context-panel h2 { margin: 14px 0 7px; font-family: var(--q-serif); font-size: 23px; font-weight: 400; line-height: 1.18; }
.context-panel p { margin-bottom: 0; color: var(--q-muted); font-size: 14px; }
.aside-number { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #cdd5c2; border-radius: 50%; background: #f1f4eb; color: var(--q-olive); font-family: var(--q-serif); font-size: 17px; }
.aside-note { padding: 17px 18px; border-left: 2px solid #a0ae7f; color: #4a554c; font-size: 13px; }
.aside-note strong { display: block; margin-bottom: 3px; color: var(--q-ink); font-size: 13px; }
.branch-banner { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: #eef1e7; color: var(--q-olive); font-size: 12px; font-weight: 700; }
.branch-banner::before { width: 6px; height: 6px; border-radius: 50%; background: #7a8a55; content: ""; }

.result-view { display: grid; gap: 20px; }
.result-heading { padding: clamp(30px, 5vw, 58px); border: 1px solid var(--q-line); border-radius: 22px; background: var(--q-surface); box-shadow: var(--q-shadow); }
.result-heading .eyebrow { margin-bottom: 5px; }
.result-heading h1 { max-width: 830px; margin: 16px 0 13px; font-size: clamp(39px, 5vw, 60px); }
.result-heading p { max-width: 780px; margin-bottom: 0; color: var(--q-muted); font-size: 17px; }
.result-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr); gap: 20px; align-items: start; }
.result-main, .result-side { display: grid; gap: 18px; min-width: 0; }
.result-section, .result-preview-panel, .feedback-panel, .cta-panel { padding: 25px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-family: var(--q-serif); font-size: 28px; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--q-olive); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.summary-list { display: grid; gap: 0; margin: 0; }
.summary-item { display: grid; grid-template-columns: minmax(120px, .48fr) minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid #e8e7de; }
.summary-item dt { color: var(--q-muted); font-size: 13px; }
.summary-item dd { margin: 0; font-size: 14px; font-weight: 550; }
.summary-item .text-button { min-height: 32px; font-size: 13px; }
.recommendation-list { display: grid; gap: 12px; }
.recommendation-card { padding: 19px; border: 1px solid #dce0d5; border-radius: 14px; background: #fffefa; }
.recommendation-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 9px; }
.recommendation-rank { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 50%; background: #e9eddf; color: var(--q-olive); font-family: var(--q-serif); font-size: 16px; }
.recommendation-card h3 { flex: 1; margin: 1px 0 0; font-family: var(--q-serif); font-size: 23px; font-weight: 400; line-height: 1.15; }
.feasibility-pill { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #d9dfcf; border-radius: 999px; background: #f4f6ef; color: #4e5b3c; font-size: 11px; font-weight: 650; }
.recommendation-card p { margin: 0 0 9px; color: #465148; font-size: 14px; }
.recommendation-card .proposed-use { color: var(--q-ink); font-size: 15px; line-height: 1.5; }
.recommendation-meta { display: grid; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e7e8df; }
.recommendation-meta p { margin: 0; font-size: 13px; }
.meta-label { display: block; margin-bottom: 2px; color: #69736a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.evidence-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.evidence-chip { padding: 4px 8px; border: 1px solid #e0e4d9; border-radius: 999px; background: #f4f6ef; color: #485642; font-size: 11px; }
.impact-note { margin-top: 10px !important; color: #616c62 !important; font-size: 12px !important; }
.no-recommendation { padding: 18px; border-radius: 12px; background: #f2f3ec; color: var(--q-muted); }

.result-preview-panel { overflow: hidden; background: #f6f6ef; }
.preview-disclosure { margin-bottom: 16px; color: var(--q-muted); font-size: 13px; }
.mock-app { overflow: hidden; border: 1px solid #d2d8cc; border-radius: 14px; background: #fbfaf5; box-shadow: 0 12px 30px rgb(48 60 45 / 8%); }
.preview-top { padding: 12px 15px; border-bottom: 1px solid #e2e5dc; }
.preview-state { padding: 4px 7px; border-radius: 999px; background: #edf1e7; color: #54643d; font-size: 10px; font-weight: 650; }
.mock-body { display: grid; min-height: 226px; grid-template-columns: 110px 1fr; }
.mock-sidebar { padding: 14px 10px; border-right: 1px solid #e4e5de; background: #f1f2eb; }
.mock-side-heading { margin-bottom: 14px; color: #71786d; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.mock-nav-item { display: flex; align-items: center; gap: 7px; margin: 7px 0; padding: 5px 6px; border-radius: 5px; color: #606b61; font-size: 10px; }
.mock-nav-item.active { background: #e2e9d9; color: #34422c; font-weight: 650; }
.mock-icon { width: 12px; height: 12px; border: 1px solid #8f9b7d; border-radius: 3px; }
.mock-content { padding: 18px 15px; }
.mock-content-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.mock-content-head small { color: #6a736a; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.mock-content-head strong { display: block; margin-top: 4px; font-family: var(--q-serif); font-size: 17px; font-weight: 400; line-height: 1.2; }
.mock-avatar { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 50%; background: #eadcae; color: #56623f; font-size: 9px; font-weight: 700; }
.mock-progress { height: 4px; margin: 13px 0 14px; overflow: hidden; border-radius: 9px; background: #e5e6de; }
.mock-progress span { display: block; width: 57%; height: 100%; border-radius: inherit; background: #839361; }
.mock-task { display: grid; grid-template-columns: 16px 1fr auto; gap: 7px; align-items: start; padding: 8px 0; border-top: 1px solid #e9e9e2; color: #49534a; font-size: 10px; line-height: 1.35; }
.mock-task:last-child { padding-bottom: 0; }
.mock-task-check { width: 13px; height: 13px; border: 1px solid #a3ad94; border-radius: 4px; }
.mock-task small { color: #77806f; font-size: 9px; }
.mock-foot { padding: 10px 14px; border-top: 1px solid #e2e5dc; color: #697267; font-size: 10px; }
.illustrative-warning { display: flex; gap: 9px; margin-top: 14px; padding: 12px; border-left: 2px solid #a67442; background: #f4eee1; color: #654b32; font-size: 12px; line-height: 1.45; }
.warning-mark { font-weight: 800; }
.reopen-branch { margin-top: 12px; }

.feedback-options { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-option { position: relative; display: inline-flex; cursor: pointer; }
.feedback-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-option input:focus-visible + span { outline: 3px solid #667742; outline-offset: 3px; }
.feedback-option span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 13px; border: 1px solid #d6dbcf; border-radius: 999px; background: white; font-size: 14px; }
.feedback-option input:checked + span { border-color: #647645; background: #edf1e7; box-shadow: inset 0 0 0 1px #647645; color: #35452d; }
.reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin-top: 15px; }
.reason-option { display: flex; align-items: center; gap: 8px; color: var(--q-muted); font-size: 13px; }
.reason-option input { width: 17px; height: 17px; accent-color: var(--q-olive); }
.feedback-note { margin: 13px 0 0; color: var(--q-muted); font-size: 12px; }
.cta-panel { padding: 27px; background: #e9eddf; }
.cta-panel h2 { margin: 0 0 8px; font-family: var(--q-serif); font-size: 27px; font-weight: 400; }
.cta-panel p { margin-bottom: 17px; color: #4c574d; font-size: 14px; }
.cta-panel .primary-button { width: 100%; }
.cta-disclosure { margin: 13px 0 0 !important; font-size: 12px !important; }
.copy-fallback { display: grid; gap: 8px; margin-top: 16px; }
#copy-fallback[hidden] { display: none !important; }
.copy-fallback label { font-size: 13px; font-weight: 700; }
.copy-fallback textarea { width: 100%; min-height: 170px; padding: 11px; resize: vertical; border: 1px solid #aab39e; border-radius: 9px; background: #fffefa; color: var(--q-ink); font-size: 13px; line-height: 1.45; }
.copy-message { min-height: 23px; margin: 12px 0 0; color: #385333; font-size: 13px; font-weight: 650; }
.next-step { margin-top: 13px; padding-top: 14px; border-top: 1px solid #cfd7c3; color: #455148; font-size: 13px; }
.restart-row { display: flex; justify-content: center; padding: 10px 0 0; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; clip-path: inset(50%) !important; border: 0 !important; }

@media (max-width: 1020px) {
  .app-frame { width: min(860px, calc(100% - 40px)); }
  .intro-view { grid-template-columns: 1fr; }
  .intro-copy { min-height: 560px; }
  .intro-art { min-height: 490px; }
  .journey-view { grid-template-columns: 1fr; }
  .question-aside { grid-template-columns: repeat(2, 1fr); }
  .result-columns { grid-template-columns: 1fr; }
  .result-side { grid-template-columns: 1fr 1fr; align-items: start; }
  .cta-panel { grid-column: span 2; }
}

@media (max-width: 700px) {
  .site-header, .site-footer { width: calc(100% - 34px); }
  .site-header { min-height: 72px; }
  .prototype-pill { padding: 7px 9px; font-size: 11px; }
  .app-frame { width: calc(100% - 28px); min-height: calc(100vh - 142px); margin-top: 4px; }
  .site-footer { min-height: 54px; align-items: flex-start; gap: 10px; padding-top: 11px; font-size: 11px; }
  .site-footer span:last-child { text-align: right; }
  .intro-view { min-height: 0; border-radius: 17px; }
  .intro-copy { min-height: 0; padding: 34px 24px 31px; }
  .intro-copy h1 { margin-top: 17px; font-size: clamp(39px, 12vw, 52px); }
  .intro-lede { font-size: 16px; }
  .team-assurance { font-size: 14px; }
  .intro-details { gap: 9px; margin-bottom: 24px; }
  .intro-detail strong { font-size: 18px; }
  .intro-detail span { font-size: 12px; }
  .intro-art { min-height: 390px; padding: 24px; }
  .intro-art::before { width: 350px; height: 350px; }
  .intro-art::after { width: 270px; height: 270px; }
  .hero-paper { width: min(100%, 340px); padding: 18px; }
  .hero-paper h2 { margin: 20px 0 14px; font-size: 23px; }
  .art-orbit { width: 57px; height: 57px; }
  .art-orbit.three { width: 48px; height: 48px; }
  .hero-caption { right: 18px; bottom: 13px; max-width: 210px; font-size: 10px; }
  .question-panel { min-height: auto; padding: 22px 17px; }
  .progress-shell { margin-bottom: 30px; }
  .question-heading { margin-bottom: 24px; }
  .question-heading h1 { font-size: 34px; }
  .question-heading p { font-size: 15px; }
  .field-stack { gap: 22px; }
  .choice-grid { grid-template-columns: 1fr; gap: 8px; }
  .choice-card { min-height: 52px; padding: 10px 12px; }
  .choice-label { font-size: 14px; }
  .nav-row { align-items: stretch; margin-top: 29px; }
  .nav-actions { flex: 1; }
  .nav-actions > button { flex: 1; }
  .nav-row > .primary-button { flex: 1.3; }
  .question-aside { display: none; }
  .result-heading { padding: 29px 22px; }
  .result-heading h1 { font-size: 42px; }
  .result-heading p { font-size: 15px; }
  .result-section, .result-preview-panel, .feedback-panel { padding: 19px 16px; }
  .section-heading h2 { font-size: 25px; }
  .summary-item { grid-template-columns: 1fr auto; gap: 3px 8px; }
  .summary-item dt { grid-column: 1; }
  .summary-item dd { grid-column: 1; }
  .summary-item .text-button { grid-column: 2; grid-row: 1 / span 2; }
  .recommendation-card { padding: 15px 13px; }
  .recommendation-top { flex-wrap: wrap; gap: 8px; }
  .recommendation-card h3 { min-width: calc(100% - 45px); font-size: 21px; }
  .recommendation-top .feasibility-pill { margin-left: 39px; }
  .mock-body { grid-template-columns: 82px 1fr; }
  .mock-sidebar { padding: 12px 7px; }
  .mock-nav-item { gap: 4px; margin: 6px 0; padding: 5px 3px; font-size: 9px; }
  .mock-content { padding: 14px 11px; }
  .mock-content-head strong { font-size: 15px; }
  .mock-task { grid-template-columns: 13px 1fr; font-size: 9px; }
  .mock-task small { grid-column: 2; }
  .result-side { grid-template-columns: 1fr; }
  .cta-panel { grid-column: auto; padding: 22px 18px; }
  .reason-list { grid-template-columns: 1fr; }
}

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

/* Premium refresh: contemporary studio, restrained color, higher contrast. */
:root {
  --q-paper: #121a16;
  --q-surface: #fbfaf5;
  --q-ink: #202c24;
  --q-muted: #526055;
  --q-olive: #2c3c30;
  --q-olive-dark: #1d2a22;
  --q-sage: #dce3d7;
  --q-citron: #d8e77a;
  --q-line: #d4d8ce;
  --q-white: #fffefa;
  --q-shadow: 0 28px 76px rgb(0 0 0 / 22%);
  --q-radius: 8px;
  --q-serif: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background:
    radial-gradient(ellipse at 76% 8%, rgb(107 131 92 / 16%), transparent 34rem),
    radial-gradient(ellipse at 12% 92%, rgb(65 84 68 / 13%), transparent 38rem),
    #121a16;
}

.site-header, .site-footer { color: #eef1e7; }
.site-header { min-height: 84px; }
.site-footer { border-color: rgb(232 238 226 / 18%); color: #c1cbbf; }
.brand-mark {
  border-color: rgb(216 231 122 / 42%);
  border-radius: 11px;
  background: rgb(255 255 255 / 4%);
  color: var(--q-citron);
  font-family: var(--q-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-copy strong { color: #f5f4ec; }
.brand-copy span { color: #c1cbbf; }
.prototype-pill {
  border-color: rgb(232 238 226 / 21%);
  background: rgb(255 255 255 / 4%);
  color: #d5ddd2;
}
.status-dot { background: var(--q-citron); box-shadow: 0 0 0 4px rgb(216 231 122 / 12%); }
.skip-link { background: #d8e77a; color: #18221c; }

.intro-view {
  border-color: #344238;
  border-radius: 8px;
  background: #1a251e;
  box-shadow: 0 30px 80px rgb(0 0 0 / 26%);
}
.intro-copy { padding: clamp(28px, 3.3vw, 42px); color: #f1f0e8; }
.intro-copy .eyebrow { color: var(--q-citron); }
.intro-copy h1, .result-heading h1 {
  font-family: var(--q-sans);
  font-weight: 560;
  letter-spacing: -.065em;
  line-height: .99;
}
.intro-copy h1 { max-width: 630px; margin: 12px 0 10px; font-size: clamp(42px, 4.5vw, 58px); text-wrap: balance; }
.intro-lede { margin-bottom: 12px; color: #d7ded4; }
.team-assurance { margin-bottom: 12px; border-color: var(--q-citron); color: #cbd5c9; }
.intro-copy .intro-footnote { color: #bec9bd; }
.intro-detail { border-color: #405044; }
.intro-detail strong { color: #f3f1e7; font-family: var(--q-sans); font-size: 18px; font-weight: 550; letter-spacing: -.035em; }
.intro-details { margin-bottom: 12px; }
.intro-detail span { color: #bec9bd; }

.intro-art {
  background:
    radial-gradient(ellipse at 48% 35%, rgb(133 153 114 / 34%), transparent 38%),
    linear-gradient(145deg, #2c4032, #1d2b22 72%);
}
.intro-art::before, .intro-art::after { border-color: rgb(216 231 122 / 17%); }
.art-orbit {
  border-color: rgb(239 243 227 / 22%);
  background: rgb(245 244 235 / 94%);
  color: #283a2d;
  box-shadow: 0 12px 36px rgb(0 0 0 / 20%);
}
.art-orbit.three { background: var(--q-citron); }
.hero-paper {
  transform: none;
  border-color: rgb(216 231 122 / 50%);
  border-radius: 8px;
  box-shadow: 0 28px 60px rgb(0 0 0 / 30%);
}
.mini-brand { color: var(--q-olive-dark); }
.mini-brand-mark { border-radius: 7px; background: #e7eccf; font-family: var(--q-sans); font-size: 10px; font-weight: 750; }
.hero-paper h2, .hero-project strong { font-family: var(--q-sans); font-weight: 600; letter-spacing: -.04em; }
.hero-project { border-radius: 7px; background: #eef0e5; }
.hero-caption { color: #e2e8db; }

.primary-button, .secondary-button, .text-button, .quiet-button { border-radius: 6px; }
.primary-button { background: var(--q-citron); color: #1a251e; font-weight: 700; }
.primary-button:hover { background: #e5efaa; }
.secondary-button { border-color: #aab6a8; color: #293a2d; }
.secondary-button:hover { border-color: #61734f; background: #edf0e6; }
.text-button { color: #344a38; text-decoration-color: #8d9b73; }

.question-panel, .context-panel, .result-section, .result-preview-panel, .feedback-panel, .cta-panel {
  border-radius: 8px;
  box-shadow: 0 12px 34px rgb(0 0 0 / 10%);
}
.question-panel { border-color: #e0e1d8; }
.aside-note { border-left-color: #a9ba82; color: #c7d2c7; line-height: 1.5; }
.aside-note strong { color: #f3f1e8; }
#app h1[tabindex="-1"]:focus-visible {
  outline: 2px solid #84945f;
  outline-offset: 5px;
  border-radius: 4px;
}
#result-title:focus-visible { outline-color: var(--q-citron); }
.progress-track { height: 4px; background: #e1e4d9; }
.progress-fill { background: #6f8350; }
.question-heading h1, .result-heading h1 {
  font-family: var(--q-sans);
  font-weight: 570;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.question-heading h1 { font-size: clamp(34px, 3.7vw, 48px); }
.field-legend { letter-spacing: -.015em; }
.choice-card { border-radius: 7px; }
.choice:hover .choice-card { border-color: #8f9d79; background: #f6f7ef; }
.choice input:checked + .choice-card { border-color: #657a47; background: #edf1dc; box-shadow: inset 0 0 0 1px #657a47; }
.optional-prompt { border-radius: 7px; background: #f0f2e8; }
.nav-row { border-color: #e1e2d8; }
.context-panel h2, .section-heading h2, .recommendation-card h3, .cta-panel h2 {
  font-family: var(--q-sans);
  font-weight: 570;
  letter-spacing: -.045em;
}
.context-panel, .result-section, .feedback-panel { border-color: #e1e2d8; }
.aside-number { border-radius: 8px; background: #edf1dc; }
.branch-banner { border-radius: 5px; background: #edf1dc; }

.result-heading {
  border: 1px solid #344238;
  border-radius: 8px;
  background: #1a251e;
  box-shadow: 0 30px 80px rgb(0 0 0 / 20%);
  color: #f1f0e8;
}
.result-heading .eyebrow, .result-heading .section-kicker { color: var(--q-citron); }
.result-heading h1 { color: #f6f4ea; }
.result-heading p { color: #d4ddd2; }
.result-section, .result-preview-panel, .feedback-panel { border-radius: 8px; }
.section-heading h2 { font-size: 27px; }
.recommendation-card { border-radius: 7px; background: #fffefa; }
.recommendation-card:first-child { border-top: 2px solid #788b52; }
.recommendation-rank { border-radius: 6px; background: #e7edcc; color: #2c3c30; }
.feasibility-pill { border-color: #d7ddc9; border-radius: 5px; background: #f0f3e7; color: #40543b; }
.evidence-chip { border-radius: 4px; background: #f1f3e9; }
.result-preview-panel { background: #f0f2e9; }
.mock-app { border-radius: 8px; box-shadow: 0 18px 40px rgb(25 37 29 / 12%); }
.mock-content-head strong { font-family: var(--q-sans); font-weight: 600; letter-spacing: -.035em; }
.illustrative-warning { border-radius: 0 6px 6px 0; }
.feedback-option span { border-radius: 6px; }
.feedback-option input:checked + span { border-color: #677b49; background: #edf1dc; color: #29392d; }
.cta-panel { border-color: #2f4434; background: #223329; color: #f3f1e8; }
.cta-panel h2 { color: #f3f1e8; }
.cta-panel p, .cta-panel .cta-disclosure, .cta-panel .next-step { color: #d3ddd1; }
.cta-panel .next-step { border-color: #46574a; }
.cta-panel .primary-button { background: var(--q-citron); color: #1a251e; }
.cta-panel .copy-fallback textarea { border-color: #82907d; }
.cta-panel .copy-message { color: var(--q-citron); }
.cta-panel .copy-secondary {
  border-color: #b7c4b6;
  background: transparent;
  color: #eef1e8;
}
.cta-panel .copy-secondary:hover {
  border-color: var(--q-citron);
  background: rgb(255 255 255 / 8%);
  color: #fffefa;
}
.cta-panel .copy-secondary:focus-visible {
  outline: 3px solid var(--q-citron);
  outline-offset: 3px;
}
.copy-fallback textarea { border-radius: 6px; }

button:focus-visible, input:focus-visible + .choice-card, a:focus-visible, textarea:focus-visible,
.feedback-option input:focus-visible + span {
  outline: 3px solid #718548;
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .intro-copy { min-height: 500px; }
  .intro-art { min-height: 460px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; }
  .app-frame { margin-top: 6px; }
  .site-footer { color: #c1cbbf; }
  .intro-view { border-radius: 8px; }
  .intro-copy { padding: 34px 23px 29px; }
  .intro-copy h1 { max-width: 560px; font-size: clamp(40px, 11.2vw, 48px); }
  .intro-details { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
  .intro-detail { display: grid; grid-template-columns: minmax(100px, .75fr) minmax(0, 1.25fr); align-items: start; gap: 10px; padding: 9px 0; }
  .intro-detail strong { margin: 0; font-size: 15px; line-height: 1.35; }
  .intro-detail span { font-size: 12px; }
  .intro-art { min-height: 370px; }
  .hero-paper { transform: none; }
  .question-panel { padding: 22px 17px; }
  .question-heading h1 { font-size: clamp(32px, 9vw, 38px); }
  .result-heading { border-radius: 8px; }
  .result-heading h1 { font-size: clamp(36px, 10vw, 44px); }
  .section-heading h2 { font-size: 24px; }
  .cta-panel { border-radius: 8px; }
}

/* Keep conditional branch actions clear and scannable on phones. */
@media (max-width: 700px) {
  #branch-form .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: stretch;
    gap: 10px;
  }

  #branch-form .nav-row > .quiet-button {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    min-width: 0;
  }

  #branch-form .nav-row > .nav-actions {
    display: contents;
  }

  #branch-form .nav-row [data-action="skip-branch"] {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 52px;
    white-space: nowrap;
  }

  #branch-form .nav-row .primary-button {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }
}


/* Contact submission */
.contact-form { display: grid; gap: 13px; margin-top: 18px; }
.contact-form[hidden] { display: none !important; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.contact-field { display: grid; min-width: 0; gap: 6px; }
.contact-field label { color: #edf0e8; font-size: 14px; font-weight: 650; }
.contact-field input {
  width: 100%;
  min-height: 49px;
  padding: 10px 12px;
  border: 1px solid #758377;
  border-radius: 6px;
  background: #fbfaf5;
  color: #202c24;
  font-size: 15px;
}
.contact-field input:focus-visible { outline: 3px solid var(--q-citron); outline-offset: 2px; }
.submission-privacy, .submission-privacy-detail {
  margin: 0 !important;
  color: #d3ddd1;
  font-size: 14px !important;
  line-height: 1.65;
}
.submission-privacy-detail:empty { display: none; }
.submission-privacy-details { margin: 0; border-top: 1px solid #46574a; }
.submission-privacy-details summary { padding: 12px 0; color: #e9efdf; font-size: 13px; font-weight: 600; cursor: pointer; }
.submission-privacy-details[open] summary { border-bottom: 1px solid #46574a; }
.submission-privacy-detail { padding: 14px 0 8px; white-space: pre-line; }
.submission-privacy-links { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0 !important; padding: 0 0 4px !important; list-style: none; }
.submission-privacy-links a { color: var(--q-citron); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.submission-confirmation { display: grid; grid-template-columns: 21px minmax(0, 1fr); gap: 11px; align-items: start; color: #eef1e8; font-size: 14px; line-height: 1.65; cursor: pointer; }
.submission-confirmation input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--q-citron); }
.submission-confirmation input:focus-visible { outline: 3px solid var(--q-citron); outline-offset: 3px; }
.submission-status { min-height: 24px; margin: 9px 0 0 !important; color: #dce5d8; font-size: 13px !important; }
.contact-form .primary-button { width: 100%; min-height: 54px; margin-top: 2px; }
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
}
.copy-actions { margin-top: 18px; padding-top: 15px; border-top: 1px solid #46574a; }
.copy-secondary { min-height: 44px; padding: 10px 14px; }
.copy-actions .copy-message { margin-top: 9px; }
.copy-actions .cta-disclosure { margin-top: 7px !important; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; gap: 11px; }
  .contact-field input { min-height: 52px; font-size: 16px; }
  .contact-form { gap: 12px; }
  .copy-actions { margin-top: 16px; }
}

/* Tablet reading rhythm: widen the text measure and give each decision room. */
@media (min-width: 701px) and (max-width: 1100px) {
  .site-header, .site-footer, .app-frame { width: min(980px, calc(100% - 56px)); }
  .site-header { min-height: 82px; }
  .app-frame { margin-top: 12px; }
  .intro-view { min-height: 0; }
  .intro-copy { max-width: 940px; min-height: 0; padding: clamp(46px, 6.5vw, 76px); }
  .intro-copy h1 { max-width: 800px; margin-block: 20px 18px; font-size: clamp(49px, 6.2vw, 70px); line-height: 1.02; }
  .intro-lede { max-width: 64ch; margin-bottom: 20px; font-size: 19px; line-height: 1.75; }
  .team-assurance { max-width: 66ch; margin-bottom: 25px; font-size: 16px; line-height: 1.75; }
  .intro-details { max-width: 780px; gap: 22px; margin-bottom: 28px; }
  .intro-detail { padding-top: 15px; }
  .intro-detail strong { font-size: 19px; line-height: 1.3; }
  .intro-detail span { font-size: 14px; line-height: 1.6; }

  .journey-view { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .question-aside { display: none; }
  .question-panel { min-height: 0; padding: clamp(38px, 5.4vw, 62px); }
  .progress-shell { margin-bottom: 52px; }
  .progress-top { margin-bottom: 13px; }
  .step-count { font-size: 14px; }
  .question-heading { max-width: 74ch; margin-bottom: 38px; }
  .question-heading h1 { max-width: 21ch; margin-bottom: 16px; font-size: clamp(42px, 4.8vw, 54px); line-height: 1.1; }
  .question-heading p { max-width: 66ch; font-size: 18px; line-height: 1.75; }
  .field-stack { gap: 35px; }
  .field-group + .field-group { padding-top: 30px; }
  .field-legend { margin-bottom: 16px; font-size: 17px; line-height: 1.5; }
  .field-help { max-width: 70ch; margin: -5px 0 15px; font-size: 15px; line-height: 1.7; }
  .choice-grid { gap: 12px; }
  .choice-card { min-height: 66px; gap: 14px; padding: 15px 17px; }
  .choice-label { font-size: 16px; line-height: 1.5; }
  .optional-prompt { margin-top: 34px; padding: 22px 24px; }
  .optional-prompt summary { font-size: 16px; }
  .nav-row { margin-top: 46px; padding-top: 26px; }

  .result-view { gap: 24px; }
  .result-heading { padding: clamp(38px, 5.5vw, 62px); }
  .result-heading h1 { max-width: 22ch; margin-block: 18px; font-size: clamp(48px, 5.8vw, 66px); line-height: 1.04; }
  .result-heading p { max-width: 66ch; font-size: 18px; line-height: 1.75; }
  .result-columns { gap: 24px; }
  .result-main, .result-side { gap: 22px; }
  .result-side { grid-template-columns: minmax(0, 1fr); }
  .cta-panel { grid-column: auto; }
  .result-section, .result-preview-panel, .feedback-panel, .cta-panel { padding: clamp(27px, 3.5vw, 38px); }
  .section-heading { margin-bottom: 23px; }
  .section-heading h2 { font-size: 31px; line-height: 1.22; }
  .summary-item { grid-template-columns: minmax(155px, .42fr) minmax(0, 1fr) auto; gap: 18px; padding-block: 17px; }
  .summary-item dt { font-size: 15px; line-height: 1.65; }
  .summary-item dd { font-size: 16px; line-height: 1.65; }
  .recommendation-list { gap: 16px; }
  .recommendation-card { padding: 24px; }
  .recommendation-card h3 { font-size: 26px; line-height: 1.25; }
  .recommendation-card p, .recommendation-card .proposed-use { font-size: 16px; line-height: 1.75; }
  .recommendation-meta { gap: 12px; margin-top: 18px; padding-top: 17px; }
  .recommendation-meta p { font-size: 15px; line-height: 1.7; }
  .meta-label { margin-bottom: 5px; font-size: 12px; }
  .evidence-chip { font-size: 12px; }
  .preview-disclosure { max-width: 68ch; margin-bottom: 20px; font-size: 15px; line-height: 1.7; }
  .feedback-panel > p, .cta-panel > p { max-width: 68ch; font-size: 16px; line-height: 1.75; }
  .feedback-note, .cta-disclosure { font-size: 14px !important; line-height: 1.7; }
  .feedback-option span { min-height: 48px; padding-inline: 16px; font-size: 15px; }
  .contact-form { gap: 18px; margin-top: 23px; }
  .contact-grid { gap: 17px 18px; }
  .contact-field { gap: 8px; }
  .contact-field input { min-height: 56px; padding-inline: 15px; font-size: 16px; }
  .submission-privacy, .submission-privacy-detail, .submission-confirmation { font-size: 15px !important; line-height: 1.75; }
  .submission-status { font-size: 14px !important; }
  .contact-form .primary-button { min-height: 60px; margin-top: 5px; }
  .copy-actions { margin-top: 23px; padding-top: 20px; }
}

@media (max-width: 700px) {
  .intro-lede, .team-assurance, .question-heading p, .field-help,
  .result-heading p, .recommendation-card p, .recommendation-card .proposed-use,
  .preview-disclosure, .feedback-panel > p, .cta-panel > p {
    line-height: 1.7;
  }
  .question-heading { margin-bottom: 28px; }
  .field-stack { gap: 27px; }
  .field-group + .field-group { padding-top: 22px; }
  .result-heading p, .preview-disclosure, .feedback-note, .cta-disclosure { font-size: 14px !important; }
  .submission-privacy, .submission-privacy-detail, .submission-confirmation { font-size: 14px !important; line-height: 1.7; }
}

@media (max-width: 420px) {
  .site-header { min-height: 66px; }
  .brand-lockup { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-family: var(--q-sans); font-size: 11px; font-weight: 750; letter-spacing: -.04em; }
  .brand-copy { gap: 1px; font-size: 10px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .prototype-pill { padding: 6px 9px; font-size: 10px; white-space: nowrap; }
}
