/* Landing page. Same tokens as the desk (PR #7): Inter 500, IBM Plex Mono,
   ink buttons, blue only for links, hairlines, 8px paper. */

:root {
  color-scheme: light;
  --canvas: #f4f5f6;
  --paper: #ffffff;
  --elev: #f3f4f6;
  --ink: #08090a;
  --secondary: #3c4149;
  --muted: #4c5563;
  --line: #e6e7ea;
  --line-strong: #d5d7dc;
  --mark: #fff3b0;
  --accent: #1d4ed8;
  --fill: #08090a;
  --fill-ink: #f7f8f8;
  --fill-hover: #24262b;
  --danger: #8f2d2d;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --canvas: #08090a;
    --paper: #101113;
    --elev: #141516;
    --ink: #f7f8f8;
    --secondary: #d0d6e0;
    --muted: #8a8f98;
    --line: #23252a;
    --line-strong: #34343a;
    --mark: #4a3f12;
    --accent: #8aabf5;
    --fill: #f7f8f8;
    --fill-ink: #08090a;
    --fill-hover: #e4e5e9;
    --danger: #f0b4a8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  letter-spacing: -0.011em;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--fill);
  color: var(--fill-ink);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  z-index: 5;
}
.skip:focus { top: 12px; }

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); max-width: 14ch; }
h2 { font-size: clamp(28px, 4vw, 40px); max-width: 18ch; }
h3 { font-size: 20px; }
p { margin: 0; }
.lede { max-width: var(--measure); color: var(--secondary); font-size: 19px; margin-top: 18px; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 500; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.92em; }

.btn, button, .ghost {
  font: inherit;
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn { background: var(--fill); color: var(--fill-ink); }
.btn:hover { background: var(--fill-hover); }
.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ghost:hover { border-color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; padding: 28px 0 72px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.slip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.slip header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.slip .who { font-size: 14px; }
.slip .who span { display: block; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--mark);
  color: #08090a;
  border-radius: 999px;
  padding: 4px 8px;
  align-self: flex-start;
}
.gist { color: var(--secondary); font-size: 15px; }
.human {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.human q { quotes: "“" "”"; }

.band { padding: 72px 0; border-top: 1px solid var(--line); }
.problem { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.problem ul { margin: 18px 0 0; padding: 0; list-style: none; }
.problem li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--secondary);
}
.problem li strong { color: var(--ink); font-weight: 500; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.step { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.step:nth-child(odd) { padding-right: 32px; }
.step:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
.num { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.step p { margin-top: 8px; color: var(--secondary); max-width: 42ch; }

.features { margin-top: 28px; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.feature h3 { font-size: 18px; }
.feature p { color: var(--secondary); max-width: 62ch; }

.faq { margin-top: 28px; }
details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
summary { cursor: pointer; font-weight: 500; }
summary:hover { color: var(--accent); }
details p { margin-top: 8px; color: var(--secondary); max-width: var(--measure); }

.wait {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.login-form { max-width: 420px; margin-top: 28px; }
input[name="code"] { font-family: var(--mono); letter-spacing: 0.28em; font-size: 24px; }
input {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 44px;
}
table { width: 100%; border-collapse: collapse; margin-top: 28px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 400; }
th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
td { color: var(--secondary); }
td:first-child, th:first-child { padding-left: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.fine { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); font-size: 14px; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}
.foot a { color: var(--muted); }

@media (max-width: 800px) {
  .wrap { width: min(1080px, calc(100% - 32px)); }
  .hero, .problem, .wait, .feature { grid-template-columns: 1fr; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  td { padding-left: 0; }
  td:first-child { color: var(--ink); font-weight: 500; padding-bottom: 0; }
  td:last-child::before { content: "Never: "; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(even) { padding-left: 0; border-left: 0; }
  .step:nth-child(odd) { padding-right: 0; }
  .nav .quiet { display: none; }
  .brand small { display: none; }
  .top { align-items: center; }
  h1 { max-width: none; }
}
