/* Lockstep landing page. Same palette and type as the app (frontend/src/styles.css). */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #dde1e7;
  --text: #1b1f24;
  --text-2: #5b6470;
  --text-3: #8a929d;
  --left: #3b5bdb;
  --left-soft: #e7ecfd;
  --right: #c8661f;
  --right-soft: #fcefe4;
  --equal: #4a8a5c;
  --btn: #1b1f24;
  --btn-text: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1e232b;
    --border: #2a313b;
    --text: #e6e9ee;
    --text-2: #a3abb7;
    --text-3: #707a87;
    --left: #7c93f5;
    --left-soft: #1d2540;
    --right: #f0a066;
    --right-soft: #3a2616;
    --equal: #6fbf86;
    --btn: #e6e9ee;
    --btn-text: #0f1216;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--left); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 17px; }
:focus-visible { outline: 2px solid var(--left); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: var(--surface); padding: 6px 10px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--text-2); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand.small { font-size: inherit; gap: 6px; }
.mark { display: inline-flex; gap: 3px; }
.mark i { width: 8px; height: 18px; border-radius: 2px; display: block; }
.brand.small .mark i { width: 5px; height: 12px; }
.mark i:first-child { background: var(--left); }
.mark i:last-child { background: var(--right); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--text-3); }
.btn.primary { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.btn.primary:hover { opacity: .9; }
.btn.small { height: 34px; padding: 0 12px; font-size: 14px; }
.btn.big { height: 50px; padding: 0 26px; font-size: 17px; }

/* hero */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.eyebrow { color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); max-width: 880px; margin: 0 auto 18px; }
.hero h1 .l { color: var(--left); }
.hero h1 .r { color: var(--right); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); max-width: 720px; margin: 0 auto 28px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hint { font-size: 14px; color: var(--text-3); margin: 16px 0 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.hero-shot { margin-top: 48px; }
.hero-shot img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

/* features */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.features h2 { text-align: center; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.grid article { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; background: var(--bg); }
.grid article:nth-child(odd) { border-top: 3px solid var(--left); }
.grid article:nth-child(even) { border-top: 3px solid var(--right); }
.grid p { margin: 0; color: var(--text-2); font-size: 15px; }

/* tour */
.tour { padding: 72px 0 24px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; margin-bottom: 72px; }
.row.flip .copy { order: 2; }
.row.cli-row { grid-template-columns: 7fr 5fr; }
.row .copy p { color: var(--text-2); margin: 0; }

/* production */
.built { padding: 24px 0 72px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px 32px; }
.checks li { position: relative; padding-left: 28px; color: var(--text-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--equal); font-weight: 700; }
.checks strong { color: var(--text); }

/* install */
.install { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 72px 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.two .span { grid-column: 1 / -1; }
pre { margin: 0; padding: 16px 18px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; font-size: 14px; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.more { color: var(--text-2); margin: 20px 0 0; }
.term { background: #16181d; color: #d7dae0; border-color: #2a2e36; box-shadow: var(--shadow); font-size: 13px; }
.term .prompt { color: #7f8ea3; user-select: none; }

/* demo */
.demo { padding: 72px 0; }
.demo-box { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.demo-box > div { max-width: 700px; }
.demo-box p { color: var(--text-2); margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 32px 0 48px; font-size: 14px; color: var(--text-2); }
.foot p { margin: 0 0 8px; }
.foot .fine { font-size: 13px; color: var(--text-3); max-width: 820px; }

@media (max-width: 800px) {
  .top nav a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .row, .row.flip { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .row.flip .copy { order: 0; }
  .demo-box { flex-direction: column; align-items: flex-start; }
  .grid, .two, .checks { grid-template-columns: 1fr; }
}

/* Grid and flex children may shrink below their content (long code lines scroll inside <pre>). */
.grid > *, .two > *, .row > *, .checks > *, .demo-box > * { min-width: 0; }

/* ---- Docs and guide pages (generated by scripts/build_site.py) ---- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
.doc { max-width: 780px; min-width: 0; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 20px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc pre { margin: 16px 0; }
.doc img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.doc th { color: var(--text); font-weight: 600; }
.doc td { color: var(--text-2); }
.doc-edit { margin-top: 48px; font-size: 14px; }
.doc-nav { position: sticky; top: 84px; align-self: start; font-size: 15px; }
.doc-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 8px; }
.doc-nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.doc-nav li { margin: 6px 0; }
.doc-nav a { color: var(--text-2); text-decoration: none; }
.doc-nav a:hover, .doc-nav a[aria-current] { color: var(--text); }
.doc-nav a[aria-current] { font-weight: 600; }
.doc-index { padding-top: 40px; padding-bottom: 72px; }
.doc-index h2 { margin: 36px 0 16px; }
.doc-index .grid h3 a { color: var(--text); text-decoration: none; }
.guides { padding: 0 0 72px; }
.guides h2 { margin-bottom: 20px; }
.grid h3 a { color: var(--text); text-decoration: none; }
.grid h3 a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .doc-nav { position: static; border-top: 1px solid var(--border); padding-top: 20px; }
}
.doc > *, .doc-layout > * { min-width: 0; }
