/* Public landing page. Same tokens as the app; larger type; one accent.
   No gradients, blobs, badges, testimonials, or icon grids (DESIGN.md §12.2). */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-sunken: #f5f5f5;
  --text: #000000;
  --text-muted: #5c5c5c;
  --border: #c7c7c7;
  --border-control: #767676;
  --accent: #73000a;
  --accent-hover: #570008;
  --accent-text: #73000a;
  --on-accent: #ffffff;
  --danger: #cc2e40;
  --focus: #466a9f;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 64ch;
  --wide: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg-sunken: #1c1c1c;
    --text: #ececec;
    --text-muted: #a2a2a2;
    --border: #363636;
    --border-control: #8a8a8a;
    --accent: #a01c2a;
    --accent-hover: #b3242f;
    --accent-text: #f08a93;
    --danger: #f26b7a;
    --focus: #8fb0e0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/28px var(--font-ui); }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
code, pre { font-family: var(--font-mono); font-size: 15px; }
code { background: var(--bg-sunken); padding: 1px 5px; border-radius: 4px; }

.site-header, .site-footer {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--wide); margin: 0 auto; padding: 20px 24px;
}
.site-header { border-bottom: 1px solid var(--border); max-width: none; }
.site-header .header-link { margin-left: auto; font-weight: 600; }
.wordmark { font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.site-footer { border-top: 1px solid var(--border); color: var(--text-muted); font-size: 15px; }
.site-footer a:last-child { margin-left: auto; }

main > section { max-width: var(--wide); margin: 0 auto; padding: 72px 24px 0; }
main > section > p, main > section > h2 { max-width: var(--measure); }

.hero { padding-top: 64px; }
.hero h1 { font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; max-width: 22ch; }
.lede { margin-top: 20px; max-width: var(--measure); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--border-control); border-radius: 4px;
}
.button:hover { background: var(--bg-sunken); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

h2 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }

.shot { margin-top: 32px; }
.shot img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-sunken);
}
.shot figcaption { margin-top: 10px; color: var(--text-muted); font-size: 15px; line-height: 22px; }
.shot-hero { margin-top: 48px; }

/* A numbered week: the day sits in the margin, the step reads down the page. */
.steps { list-style: none; padding: 0; margin-top: 32px; border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.step-when { font-weight: 600; color: var(--text-muted); font-size: 16px; }
.step-body > p { margin-top: 6px; max-width: var(--measure); }
.step-shot .shot { margin-top: 20px; }
.step-shot:nth-of-type(3) .shot { max-width: 820px; }

.import-output {
  margin-top: 24px; padding: 20px 24px; max-width: 820px; overflow-x: auto;
  background: var(--bg-sunken); border-radius: 4px; line-height: 26px; white-space: pre;
}
.import-output .err { color: var(--danger); font-weight: 700; }
.import-output .dim { color: var(--text-muted); }
.imports > p { margin-top: 12px; }

.custody dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px 24px; margin-top: 24px; max-width: 860px; }
.custody dt { font-weight: 600; }
.custody dd { max-width: var(--measure); }

.not-yet ul { margin-top: 20px; padding-left: 22px; max-width: var(--measure); }
.not-yet li { margin-top: 8px; }

.closing { padding-bottom: 8px; }
.closing p { margin-top: 12px; }

main { padding-bottom: 72px; }

@media (max-width: 720px) {
  body { font-size: 17px; line-height: 27px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 30px; line-height: 36px; }
  h2 { font-size: 24px; line-height: 32px; }
  main > section { padding: 56px 16px 0; }
  .site-header, .site-footer { padding: 16px; }
  .step { grid-template-columns: 1fr; gap: 4px; }
  .custody dl { grid-template-columns: 1fr; gap: 4px; }
  .custody dd { margin-bottom: 12px; }
  .site-footer { flex-wrap: wrap; }
}
