/* Brand colours come from build/icon.svg (ink + sun) and the app's drift orange. */
:root {
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --ink: #16181d;
  --ink-2: #23262e;
  --paper: #fbf6ec;
  --sun: #f97316;
  --sun-deep: #ea580c;
  --yolk: #ffd23f;
  --drift: #c2410c;
  --blue: #2457c5;
  --green: #16a34a;
  --amber: #d97706;
  --grey: #8a909c;

  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.6 var(--sans); letter-spacing: 0.005em; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 900; font-stretch: 88%; letter-spacing: -0.01em; word-spacing: 0.04em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.mono { font-family: var(--mono); }
.muted { opacity: 0.55; }
main > section { padding: 110px max(24px, calc((100% - var(--max)) / 2)); }

/* Header sits on the orange hero */
.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px max(24px, calc((100% - var(--max)) / 2));
  background: var(--sun);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.3rem var(--display); letter-spacing: -0.01em; color: inherit; text-decoration: none; }
.top-meta { font-size: 0.85rem; font-weight: 600; }

/* Hero */
.hero { background: var(--sun); padding-top: 64px !important; padding-bottom: 0 !important; overflow: hidden; }
.hero h1 { font-size: clamp(3.2rem, 9.5vw, 8.4rem); max-width: 12ch; }
.hero mark { background: none; color: #fff; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 40em; margin: 36px 0 32px; }
.lede strong { background: var(--ink); color: #fff; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.inline-form input[type=email] {
  flex: 1 1 260px; font: 500 1.1rem var(--sans); padding: 18px 20px;
  border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink);
}
button {
  font: 800 1.15rem var(--display); letter-spacing: -0.01em; cursor: pointer;
  padding: 18px 28px; border: 3px solid var(--ink); border-radius: 12px;
  background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--yolk);
  transition: transform .08s, box-shadow .08s;
}
button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--yolk); }
button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--yolk); }
button:disabled { opacity: .6; cursor: default; }
input:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fine { font-size: 0.85rem; margin: 14px 0 0; }
.form-status { flex-basis: 100%; margin: 4px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--ink); }
.hero .form-status.ok { color: #fff; }
.hp { position: absolute; left: -9999px; }

/* Product shot */
.window {
  margin-top: 72px; background: var(--ink); color: #e7e9ee; border-radius: 16px 16px 0 0;
  border: 3px solid var(--ink); border-bottom: 0; box-shadow: 0 -2px 0 rgba(0,0,0,.05), 0 30px 80px rgba(0,0,0,.35);
  transform: rotate(-1deg) translateY(12px); transform-origin: bottom left;
}
.win-bar { display: flex; align-items: center; gap: 4px; padding: 12px 14px 0; overflow: hidden; font-size: 0.8rem; }
.lights { display: inline-flex; gap: 7px; margin-right: 14px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #3a3e48; }
.lights i:first-child { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.tab { white-space: nowrap; padding: 9px 14px; border-radius: 8px 8px 0 0; color: #8f95a3; display: inline-flex; align-items: center; gap: 7px; }
.tab-active { background: var(--ink-2); color: #fff; font-weight: 600; }
.tab-drift { color: #fdba74; }
.tab.more { color: #5f6574; }
.win-body { position: relative; background: var(--ink-2); padding: 28px 30px 60px; min-height: 340px; }
.term { margin: 0; font-size: 0.92rem; line-height: 1.6; white-space: pre-wrap; max-width: 62ch; }
.t-dim { color: #6b7180; } .t-prompt { color: var(--sun); font-weight: 600; }
.t-claude { color: #d4a27f; } .t-hi { color: #fdba74; }
.caret { color: var(--sun); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.drift-card {
  position: absolute; right: 28px; top: 34px; width: min(400px, 46%);
  background: #fff; color: var(--ink); border-radius: 14px; padding: 20px 22px;
  border: 3px solid var(--sun); box-shadow: 8px 8px 0 var(--sun);
  animation: pop .5s cubic-bezier(.2,1.6,.4,1) 1.2s both;
}
@keyframes pop { from { opacity: 0; transform: scale(.85) rotate(3deg); } }
.dc-flag { margin: 0 0 12px; font: 800 1.25rem var(--display); color: var(--drift); display: flex; align-items: center; gap: 10px; letter-spacing: -0.005em; }
.dc-flag .dot { width: 12px; height: 12px; box-shadow: 0 0 0 4px #ffedd5; }
.dc-row { margin: 0 0 6px; font-size: 0.95rem; display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.dc-row span { color: var(--grey); }
.dc-now { color: var(--drift); font-weight: 600; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b { font-size: 0.82rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; border: 2px solid var(--ink); }
.b-dark { background: var(--ink); color: #fff; }

/* Beliefs */
.beliefs { background: var(--ink); color: #fff; }
.beliefs h2 { color: var(--sun); margin-bottom: 64px; }
.beliefs ol { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 72px; }
.beliefs li { counter-increment: b; position: relative; padding-top: 86px; min-width: 0; }
.beliefs li::before {
  content: counter(b, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font: 900 4.4rem/1 var(--display); font-stretch: 88%; color: var(--sun); letter-spacing: -0.01em;
}
.beliefs li:last-child { grid-column: 1 / -1; max-width: 640px; }
.beliefs h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; margin-bottom: 14px; }
.beliefs p { color: #b9bec9; margin: 0; font-size: 1.08rem; }

/* Founder note + board */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; background: var(--yolk); }
.why > * { min-width: 0; }
.kicker { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 18px; }
.note h2 { margin-bottom: 28px; font-size: clamp(2.4rem, 4.2vw, 3.7rem); }
.note p { font-size: 1.12rem; margin: 0 0 16px; }
.sign { display: flex; align-items: center; gap: 12px; font: 800 1.4rem var(--display) !important; margin-top: 28px !important; }
.avatar {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink); color: var(--yolk); font: 800 1.2rem var(--display);
}
.board {
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 22px;
  box-shadow: 10px 10px 0 var(--ink); transform: rotate(1.2deg);
}
.board-head { font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project { min-width: 0; background: #f3f0e8; border-radius: 12px; padding: 14px 12px; }
.repo { margin: 0 0 2px; font-size: 0.72rem; color: var(--grey); }
.project h3 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 10px; }
.project ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.project li {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #e4dfd3;
  border-radius: 8px; padding: 7px 9px; font-size: 0.8rem; line-height: 1.3;
}
.n { margin-left: auto; font: 600 0.72rem var(--mono); color: var(--grey); }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot.on { background: var(--blue); }
.dot.drift { background: var(--sun-deep); }
.dot.wait { background: var(--amber); }
.dot.met { background: var(--green); }
.dot.idle { border: 2px solid var(--grey); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; font-size: 0.8rem; color: #4b5160; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.board-foot { margin: 12px 0 0; font-size: 0.95rem; }

/* Waitlist */
.join { background: var(--sun); }
.join h2 { font-size: clamp(3.4rem, 10vw, 8rem); }
.join-lede { font-size: 1.3rem; max-width: 34em; margin: 20px 0 48px; }
.form {
  background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 36px;
  max-width: 760px; display: grid; gap: 28px; box-shadow: 12px 12px 0 var(--ink);
}
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.field > span, .field legend { font: 800 1.35rem var(--display); letter-spacing: 0; padding: 0; margin-bottom: 12px; }
.field em { font: italic 400 0.95rem var(--sans); color: var(--grey); letter-spacing: 0; }
.field input[type=email] { font: 500 1.1rem var(--sans); padding: 16px 18px; border: 3px solid var(--ink); border-radius: 12px; }
.field input[type=email]:focus-visible { outline: 3px solid var(--sun); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label {
  cursor: pointer; border: 2px solid var(--ink); border-radius: 999px; padding: 10px 18px;
  font-weight: 600; font-size: 0.98rem; transition: background .1s;
}
.chips label:hover { background: #fff1e6; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--ink); color: #fff; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.form button { justify-self: start; }
.form.done .field, .form.done button { display: none; }
.form .form-status.err { color: var(--drift); }

/* Footer */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 36px max(24px, calc((100% - var(--max)) / 2)); background: var(--ink); color: #fff; font-size: 0.85rem;
}

@media (max-width: 900px) {
  main > section { padding-top: 80px; padding-bottom: 80px; }
  .beliefs ol, .why { grid-template-columns: 1fr; }
  .beliefs li:last-child { grid-column: auto; }
  .projects { grid-template-columns: 1fr; }
  .drift-card { position: relative; right: auto; top: auto; width: auto; margin-top: 24px; }
  .window { transform: none; }
  .board { transform: none; }
  .top-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
.inline-form.done input, .inline-form.done button { display: none; }
.form-status a { color: inherit; }
