:root {
  color-scheme: light;
  --ink: #10151f;
  --muted: #68707d;
  --paper: #f3f0e8;
  --white: #fffdf7;
  --line: #cfd0c9;
  --orange: #ff5c35;
  --lime: #c9ff62;
  --blue: #2946ff;
  --mono: "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --sans: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
select { font: inherit; }

button { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font: 500 .72rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 50%;
  font: 500 1rem/1 var(--mono);
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: .68rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.privacy-note i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2cac69;
  box-shadow: 0 0 0 4px rgb(44 172 105 / 13%);
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 80px;
  align-items: center;
  padding: 70px 0 82px;
}

.kicker,
.section-number {
  margin: 0 0 28px;
  color: var(--orange);
  font: 500 .7rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}

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

h1 {
  margin-bottom: 28px;
  max-width: 760px;
  font-size: clamp(4.6rem, 9.2vw, 8.9rem);
  line-height: .82;
  letter-spacing: -.085em;
  font-weight: 600;
}

h1 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
}

.lede {
  max-width: 620px;
  color: #3f4651;
  font-size: 1.18rem;
  line-height: 1.7;
}

.text-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 10px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font: 500 .76rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hero-card {
  position: relative;
  min-height: 390px;
  padding: 50px 44px 40px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink);
  color: var(--white);
}

.hero-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.45rem, 2.1vw, 2.2rem);
  letter-spacing: -.04em;
}

.hero-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0;
  color: var(--lime);
  font: 400 3rem/1 var(--mono);
}

.hero-card small {
  position: absolute;
  z-index: 1;
  left: 44px;
  bottom: 38px;
  color: #b1b8c5;
  font: .67rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.orbit {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -70px;
  bottom: -55px;
  border: 1px solid #3a4350;
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border: 1px solid #3a4350;
  border-radius: 50%;
}

.orbit::before { inset: 42px; }
.orbit::after { inset: 84px; background: #1b2430; }

.orbit span {
  position: absolute;
  z-index: 2;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.orbit-one { top: 8px; left: 70px; background: var(--orange); }
.orbit-two { top: 105px; left: 35px; background: var(--lime); }
.orbit-three { top: 83px; right: 55px; background: var(--blue); }

.workspace {
  margin: 0;
  padding: 82px 0 92px;
  background: var(--white);
  box-shadow: 0 0 0 100vmax var(--white);
  clip-path: inset(0 -100vmax);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workspace-head,
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 52px;
}

.workspace h2,
.output h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.06em;
}

.workspace-note {
  width: 280px;
  margin-bottom: 4px;
  color: var(--muted);
  font: .72rem/1.6 var(--mono);
}

.field-row {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 10px;
}

.field > span,
fieldset legend {
  font: 500 .68rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.field input {
  width: 100%;
  height: 64px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgb(41 70 255 / 12%);
}

.field input::placeholder { color: #9a9da3; }

fieldset {
  margin: 36px 0 0;
  padding: 0;
  border: 0;
}

fieldset legend { margin-bottom: 12px; }

.kind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.kind-card {
  position: relative;
  min-height: 92px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: .86rem;
  line-height: 1.35;
}

.kind-card input {
  position: absolute;
  opacity: 0;
}

.kind-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border: 1px solid #9b9da2;
  border-radius: 50%;
}

.kind-card:has(input:checked) {
  background: var(--ink);
  color: var(--white);
}

.kind-card input:checked + .kind-dot {
  border: 3px solid var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}

.urgency-row { display: flex; gap: 8px; flex-wrap: wrap; }

.urgency-row label { cursor: pointer; }
.urgency-row input { position: absolute; opacity: 0; }
.urgency-row span {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: .72rem/1 var(--mono);
}
.urgency-row input:checked + span {
  border-color: var(--ink);
  background: var(--lime);
}

.primary-button {
  width: 100%;
  min-height: 76px;
  margin-top: 42px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: var(--orange);
  color: #140a05;
  cursor: pointer;
  font-weight: 700;
}

.primary-button:hover,
.primary-button:focus-visible { background: #ff6d49; }

.primary-button span { font-size: 1.5rem; }

.output { padding: 90px 0 110px; }

.empty-state {
  min-height: 270px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 45px;
  border: 1px dashed #aeb0aa;
  color: var(--muted);
}

.empty-state > span {
  color: var(--orange);
  font: 500 .75rem/1 var(--mono);
}

.empty-state h2 { color: var(--ink); }
.empty-state p { margin: 14px 0 0; }

.result-head { align-items: flex-start; }
.result-head .section-number { margin-bottom: 20px; }
.result-head > div > p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  font: .72rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.reset-button {
  flex: 0 0 auto;
  padding: 10px 0 6px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font: .7rem/1 var(--mono);
  text-transform: uppercase;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.route-step {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.step-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}

.step-number {
  color: var(--orange);
  font: 500 .72rem/1 var(--mono);
}

.freshness {
  padding: 6px 8px;
  border-radius: 2px;
  background: #e7e8e3;
  font: .62rem/1 var(--mono);
  text-transform: uppercase;
}

.route-step h3 {
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.route-step > p {
  min-height: 78px;
  margin-bottom: 18px;
  color: #4e5560;
  font-size: .88rem;
  line-height: 1.6;
}

.route-step > small {
  display: block;
  min-height: 62px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: .66rem/1.5 var(--mono);
}

.check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 25px;
}

.check-row label {
  color: var(--muted);
  font: .61rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.check-row select {
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: .68rem/1 var(--mono);
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  margin-top: 28px;
}

.decision,
.stop-rule {
  min-height: 188px;
  padding: 30px;
}

.decision {
  background: var(--ink);
  color: var(--white);
}

.decision[data-state="ready"] { background: #155f42; }
.decision[data-state="stop"] { background: #912e25; }
.decision[data-state="conflict"] { background: #7b4518; }

.decision span,
.stop-rule span {
  display: block;
  margin-bottom: 20px;
  color: var(--lime);
  font: .65rem/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.decision strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.decision p,
.stop-rule p {
  margin: 12px 0 0;
  color: #c7cbd2;
  font-size: .86rem;
  line-height: 1.6;
}

.stop-rule {
  border: 1px solid var(--line);
  background: var(--white);
}

.stop-rule span { color: var(--orange); }
.stop-rule p { color: #4e5560; }

footer {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
  font: .64rem/1.5 var(--mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

footer p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

footer span:last-child { text-align: right; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 55px; }
  .hero-card { min-height: 300px; }
  .kind-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .route-step > p,
  .route-step > small { min-height: auto; }
  .decision-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1240px); }
  .site-header { height: 70px; }
  .brand { font-size: .62rem; }
  .privacy-note { font-size: .62rem; }
  .hero { min-height: auto; padding: 48px 0 60px; }
  h1 { font-size: clamp(4.1rem, 22vw, 6rem); }
  .lede { font-size: 1rem; }
  .hero-card { min-height: 270px; padding: 35px 28px; }
  .hero-card small { left: 28px; bottom: 28px; }
  .workspace { padding-top: 60px; padding-bottom: 65px; }
  .workspace-head,
  .result-head { display: block; margin-bottom: 36px; }
  .workspace-note { width: auto; margin-top: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .field input { height: 58px; }
  .kind-grid { grid-template-columns: 1fr; }
  .kind-card { min-height: 62px; align-items: center; padding: 16px; }
  .primary-button { min-height: 66px; font-size: .88rem; }
  .output { padding: 60px 0 80px; }
  .empty-state { min-height: 230px; padding: 28px; gap: 20px; align-items: flex-start; }
  .reset-button { margin-top: 22px; }
  .route-step { padding: 22px 18px; }
  .step-topline { margin-bottom: 30px; }
  .check-row { grid-template-columns: 1fr; }
  .decision,
  .stop-rule { min-height: auto; padding: 25px 22px; }
  footer { min-height: 160px; grid-template-columns: 1fr; gap: 5px; padding: 30px 0; }
  footer p,
  footer span:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
