:root {
  color-scheme: dark;
  --ink: #f4f2ec;
  --muted: #a9afb3;
  --black: #080a0c;
  --panel: #11161a;
  --panel-2: #171d21;
  --line: #30383e;
  --orange: #ff5a1f;
  --yellow: #f3d24f;
  --green: #75d596;
  --danger: #ff4f4f;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header { max-width: var(--max); margin: 0 auto; min-height: 78px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; background: var(--orange); color: #0a0a0a; font: 900 .86rem/1 ui-monospace, monospace; transform: rotate(-3deg); }
.brand-mark.small { width: 30px; height: 30px; font-size: .72rem; }
.privacy-note { color: var(--muted); font-size: .86rem; margin: 0; }
.privacy-note span { color: var(--green); margin-right: 6px; }
main { max-width: var(--max); margin: 0 auto; padding: 0 24px 72px; }
.intro { padding: clamp(56px, 9vw, 112px) 0 56px; position: relative; overflow: hidden; }
.intro::after { content: "NEXT MOVE"; position: absolute; right: 0; bottom: 17px; color: transparent; -webkit-text-stroke: 1px #242b30; font: 900 clamp(3rem, 9vw, 8.5rem)/.8 ui-sans-serif, system-ui; letter-spacing: -.06em; z-index: -1; white-space: nowrap; }
.eyebrow, .step-label { margin: 0 0 12px; font: 800 .78rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; color: var(--orange); letter-spacing: .13em; }
h1 { margin: 0; max-width: 940px; font-size: clamp(3.35rem, 9vw, 7.4rem); line-height: .84; letter-spacing: -.075em; text-transform: uppercase; }
h1 em { color: var(--yellow); font-style: normal; }
.lede { margin: 30px 0 0; max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.32rem); }
h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.045em; }
.danger-panel { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; border: 2px solid var(--danger); padding: clamp(22px, 4vw, 36px); background: linear-gradient(110deg, rgba(255,79,79,.12), transparent 55%); }
.danger-panel p:not(.step-label) { margin: 14px 0 0; max-width: 720px; color: #c5c9cc; }
.danger-actions { display: flex; flex-direction: column; gap: 10px; min-width: 178px; }
.button, .build-button { border: 0; padding: 14px 18px; min-height: 52px; text-decoration: none; font-weight: 850; text-align: center; cursor: pointer; }
.button-danger { background: var(--danger); color: #090909; }
.button-safe { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button:focus-visible, .need-card:focus-visible, .build-button:focus-visible, .text-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.needs-section, .context-section, .national-help { padding: 74px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(250px, 390px); gap: 30px; align-items: end; margin-bottom: 28px; }
.section-heading > p { color: var(--muted); margin: 0; }
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.need-card { position: relative; min-height: 160px; padding: 22px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); background: var(--panel); text-align: left; text-decoration: none; cursor: pointer; transition: background .16s ease, color .16s ease; display: flex; flex-direction: column; justify-content: flex-end; }
.need-card:hover { background: var(--panel-2); }
.need-card[aria-pressed="true"] { background: var(--yellow); color: #090a0b; }
.need-card[aria-pressed="true"]::after { content: "SELECTED"; position: absolute; top: 20px; right: 20px; font: 900 .68rem/1 ui-monospace, monospace; letter-spacing: .08em; }
.need-number { position: absolute; top: 19px; left: 21px; font: 800 .75rem/1 ui-monospace, monospace; color: var(--orange); }
.need-card[aria-pressed="true"] .need-number { color: #692000; }
.need-card strong { display: block; font-size: 1.08rem; line-height: 1.2; }
.need-card > span:last-child { display: block; margin-top: 7px; color: var(--muted); font-size: .87rem; }
.need-card[aria-pressed="true"] > span:last-child { color: #42413c; }
.impossible-card { background: linear-gradient(135deg, #24150f, #11161a 65%); box-shadow: inset 0 0 0 1px var(--orange); }
.impossible-card strong { color: var(--yellow); }
.section-heading.compact { grid-template-columns: 1fr; }
.context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 9px; color: #d7dadc; font-weight: 700; }
.field small { color: var(--muted); font-weight: 500; }
.field.full { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 15px 16px; border-radius: 0; }
textarea { resize: vertical; min-height: 112px; }
.build-button { margin-top: 22px; width: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--orange); color: #0a0a0a; font-size: 1.05rem; }
.build-button span { font-size: 1.6rem; line-height: 1; }
.form-error { color: #ff8f8f; font-weight: 750; }
.plan-section { margin: 74px 0 0; padding: clamp(24px, 5vw, 46px); background: #eef0e9; color: #111415; box-shadow: 10px 10px 0 var(--orange); }
.plan-section .step-label { color: #9e2e08; }
.plan-topline { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-bottom: 2px solid #171a1b; padding-bottom: 24px; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.text-button { border: 1px solid #747878; background: transparent; color: #171a1b; padding: 9px 11px; cursor: pointer; font-weight: 750; }
.danger-text { color: #9f1b16; border-color: #b9706d; }
.plan-meta { padding: 17px 0; color: #515758; font: 700 .83rem/1.5 ui-monospace, monospace; text-transform: uppercase; }
.plan-list { list-style: none; margin: 0; padding: 0; counter-reset: plan; }
.plan-list li { counter-increment: plan; display: grid; grid-template-columns: 50px 1fr; gap: 15px; padding: 23px 0; border-top: 1px solid #b8bcb9; }
.plan-list li::before { content: counter(plan, decimal-leading-zero); font: 900 1rem/1 ui-monospace, monospace; color: #9e2e08; padding-top: 4px; }
.plan-list h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; }
.plan-list p { margin: 7px 0 0; color: #454b4c; }
.plan-list a { color: #78250a; font-weight: 800; }
.notes-output { margin-top: 22px; padding: 19px; border: 2px solid #202324; }
.notes-output p:last-child { margin: 0; white-space: pre-wrap; }
.location-tools { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.location-tools a { padding: 11px 13px; border: 1px solid #555b5b; color: #16191a; text-decoration: none; font-weight: 800; }
.national-help h2 { max-width: 620px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 28px; border: 1px solid var(--line); }
.help-grid a { display: grid; gap: 8px; padding: 25px; background: var(--panel); text-decoration: none; }
.help-grid a:hover { background: var(--panel-2); }
.help-grid strong { color: var(--yellow); font-size: 1.15rem; }
.help-grid span, .source-line { color: var(--muted); font-size: .9rem; }
.source-line { margin: 18px 0 0; }
footer { max-width: var(--max); margin: 0 auto; padding: 28px 24px 42px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); }
footer > div { display: flex; align-items: center; gap: 10px; color: var(--ink); }
footer p { margin: 0; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--yellow); color: #0a0a0a; padding: 13px 16px; font-weight: 850; transform: translateY(130%); transition: transform .2s ease; z-index: 20; }
.toast.show { transform: translateY(0); }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .danger-panel, .section-heading { grid-template-columns: 1fr; align-items: start; }
  .danger-actions { flex-direction: row; min-width: 0; }
  .danger-actions > * { flex: 1; }
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; }
  .plan-topline { align-items: start; flex-direction: column; }
  .plan-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-header { min-height: 68px; padding: 14px 16px; }
  .privacy-note { max-width: 125px; text-align: right; font-size: .73rem; }
  main { padding: 0 16px 52px; }
  .intro { padding-top: 56px; }
  h1 { font-size: clamp(3rem, 18vw, 4.8rem); }
  .danger-panel { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; }
  .danger-actions { flex-direction: column; }
  .needs-section, .context-section, .national-help { padding: 56px 0; }
  .needs-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 132px; }
  .context-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .plan-section { margin-left: -8px; margin-right: 2px; padding: 24px 18px; box-shadow: 7px 7px 0 var(--orange); }
  .plan-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .plan-actions .danger-text { grid-column: 1 / -1; }
  .plan-list li { grid-template-columns: 38px 1fr; }
  footer { align-items: flex-start; flex-direction: column; padding: 24px 16px 36px; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .intro, .danger-panel, .needs-section, .context-section, .national-help, footer, .plan-actions, .toast { display: none !important; }
  main { max-width: none; padding: 0; }
  .plan-section { display: block !important; margin: 0; box-shadow: none; background: white; padding: 0; }
}
