:root {
  --paper: #f7f4ee;
  --paper-2: #fffdf8;
  --ink: #111111;
  --soft: #5e5b55;
  --blue: #1e5eff;
  --line: #d7d1c7;
  --max: 1160px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
button, textarea { font: inherit; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: .08rem; font-weight: 900; letter-spacing: -.04em; }
.brand-oob { font-size: 2rem; }
.brand-it { font-size: 2rem; color: var(--blue); }
.brand-by { margin-left: .5rem; font-weight: 500; letter-spacing: 0; font-size: .78rem; color: var(--soft); }
.quiet-link { font-size: .9rem; color: var(--soft); text-underline-offset: 4px; }

main { overflow: hidden; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 3rem;
  align-items: center;
}
.eyebrow { margin: 0 0 .8rem; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--blue); }
h1, h2, h3 { line-height: 1.02; letter-spacing: -.04em; margin-top: 0; }
h1 { font-size: clamp(3.2rem, 8vw, 7.1rem); max-width: 900px; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: 1.15rem; }
.lede { max-width: 760px; font-size: clamp(1.12rem, 2vw, 1.45rem); color: var(--soft); margin: 0; }
.robot-hero { display: flex; justify-content: center; align-items: end; min-height: 300px; }
.robot-hero img { width: min(100%, 300px); height: auto; display: block; mix-blend-mode: multiply; }
.heading-lockup { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 1rem; align-items: start; }
.heading-robot { width: 80px; height: auto; display: block; mix-blend-mode: multiply; margin-top: -.35rem; }
.rough-rule { width: 110%; height: 9px; margin-left: -5%; border-top: 2px solid var(--ink); transform: rotate(-.15deg); opacity: .85; }

.conversation-shell { max-width: 980px; margin: 0 auto; padding: 5rem 1.25rem 6rem; }
.conversation-heading { max-width: 720px; margin-bottom: 2rem; }
.conversation-heading p:last-child { color: var(--soft); font-size: 1rem; }
.app-card, .result-card {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.conversation-log { display: grid; gap: .85rem; margin-bottom: 1.7rem; }
.message { max-width: 80%; padding: .8rem 1rem; border-radius: 14px; }
.message.assistant { background: #ece8df; justify-self: start; }
.message.user { background: var(--ink); color: white; justify-self: end; }
.message p { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .text-wrap label { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; display: block; }
.choice-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: flex;
  align-items: center;
  min-height: 100%;
  border: 1px solid var(--ink);
  padding: 1rem;
  cursor: pointer;
  background: white;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.choice label:hover { transform: translateY(-2px); }
.choice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice input:checked + label { background: var(--blue); color: white; box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
textarea { width: 100%; min-height: 120px; border: 1px solid var(--ink); background: white; padding: 1rem; resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-actions, .result-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.button { appearance: none; border: 1px solid var(--ink); min-height: 46px; padding: .75rem 1rem; cursor: pointer; font-weight: 800; }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: var(--blue); }
.button-quiet { background: transparent; color: var(--ink); }
.form-status { min-height: 1.5em; color: #8b2b1a; margin-bottom: 0; }

.result-card { margin-top: 2rem; }
.result-label { display: inline-block; background: var(--blue); color: white; font-weight: 900; padding: .4rem .6rem; letter-spacing: .08em; }
.result-summary { font-size: 1.25rem; max-width: 760px; color: var(--soft); }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.result-grid > div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.result-grid p { color: var(--soft); }
.disclosure { color: var(--soft); font-size: .85rem; margin-top: 1.5rem; }

.principles { background: var(--ink); color: white; padding: 5rem max(1.25rem, calc((100vw - var(--max)) / 2)); }
.principles .eyebrow { color: #90adff; }
.principles > div:first-child { max-width: 720px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #444; margin-top: 2rem; border: 1px solid #444; }
.principle-grid article { background: var(--ink); padding: 1.4rem; min-height: 150px; }
.principle-grid strong { color: #90adff; letter-spacing: .08em; }
.principle-grid p { color: #d3d3d3; margin-bottom: 0; }
.future-note { max-width: var(--max); margin: 0 auto; padding: 5rem 1.25rem; }
.future-note p:last-child { max-width: 800px; color: var(--soft); font-size: 1.1rem; }
footer { max-width: var(--max); margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; color: var(--soft); }
footer p { margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .robot-hero { min-height: 0; justify-content: flex-start; }
  .robot-hero img { width: min(55vw, 220px); }
  .heading-lockup { grid-template-columns: 64px minmax(0, 1fr); gap: .75rem; }
  .heading-robot { width: 58px; }
  .choice-list, .result-grid, .principle-grid { grid-template-columns: 1fr; }
  .message { max-width: 92%; }
  footer { flex-direction: column; }
}
@media (max-width: 520px) {
  .brand-by, .quiet-link { display: none; }
  h1 { font-size: clamp(2.8rem, 16vw, 4.2rem); }
  .site-header { padding-top: 1rem; }
}
