/* Landing page (docs/LANDING_PAGE_PLAN.md) — abe's canvas board "Option 3 · One centered column", accent Lime. */
:root {
  --bg: #f4f5f2; --ink: #0d120e; --ink-2: #3b423c; --muted: #5b635c;
  --rule: #d6d9d2; --rule-2: #c9cdc4; --rule-3: #e6e8e3; --band: #e9ece6;
  --dark: #0d120e; --d-rule: #2b342c; --d-muted: #8f9890; --d-ink-2: #b9c0ba; --d-ink: #f4f5f2;
  --acc: #9fe870; --acc-ink: #163300; --acc-soft: #e8f8dc; --acc-line: #c5e8ac;
  --up: #15803d; --up-d: #4ade80; --down: #dc2626; --down-d: #f87171;
  --side: clamp(16px, 15.6vw, 200px);
  --nav-side: clamp(16px, 5vw, 64px);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
}
html.auth-wait body { visibility: hidden; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif; font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
a:hover { opacity: .85; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--d-ink); }
.mono { font-family: var(--mono); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }
.sr { position: absolute; left: -9999px; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

/* buttons */
.btn { height: 50px; padding: 0 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-line { border: 1px solid var(--ink); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }

/* nav */
.nav { height: 60px; padding: 0 var(--nav-side); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; text-decoration: none; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-signin { display: none; white-space: nowrap; font-size: 15px; font-weight: 500; text-decoration: none; }

/* hero */
.hero { position: relative; padding: 80px var(--side) 72px; display: flex; flex-direction: column; gap: 48px; overflow: hidden; }
.hero-line { position: absolute; left: 0; top: 0; width: 100%; height: 840px; opacity: .06; pointer-events: none; }
.hero-text { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero h1 { font-size: 64px; line-height: 1.04; max-width: 16ch; }
.lede { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.note { font-size: 15px; color: var(--ink-2); }

/* demo */
.demo { position: relative; min-height: 560px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; display: flex; flex-direction: column; overflow: hidden; }
.demo-head { height: 44px; padding: 0 18px; border-bottom: 1px solid var(--rule-3); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.demo-head b { color: var(--ink); font-weight: 600; }
.demo-body { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.bubble { align-self: flex-end; max-width: 82%; padding: 12px 15px; background: var(--ink); color: #fff; border-radius: 6px; font-size: 15px; line-height: 1.45; }
.status { font-size: 14px; color: var(--muted); }
.result { border: 1px solid var(--rule); border-radius: 4px; }
.result-title { padding: 12px 16px; border-bottom: 1px solid var(--rule-3); font-weight: 600; font-size: 15px; }
.result-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-stats > div { padding: 14px 16px; }
.result-stats > div + div { border-left: 1px solid var(--rule-3); }
.k { font-size: 13px; color: var(--muted); }
.result-stats .v { font-family: var(--mono); font-size: 34px; font-weight: 600; margin-top: 2px; }
.up { color: var(--up); }
.result-link { display: block; padding: 11px 16px; border-top: 1px solid var(--rule-3); font-size: 14px; font-weight: 600; text-underline-offset: 3px; }
.demo-foot { padding: 14px 16px 16px; border-top: 1px solid var(--rule-3); display: flex; flex-direction: column; gap: 10px; background: #fafbf9; }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt { height: 34px; padding: 0 12px; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  background: #fff; color: var(--ink); border: 1px solid var(--rule); }
.prompt[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ask { display: flex; gap: 8px; align-items: center; padding: 5px 5px 5px 14px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--muted); }
.ask .btn { height: 36px; padding: 0 14px; border-radius: 4px; font-size: 14px; }

/* dark bands */
.dark { background: var(--dark); color: var(--d-ink); }
.replay { padding: 64px var(--side) 72px; }
.replay-head { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--d-rule); padding-bottom: 18px; }
.replay-head h2 { font-size: 28px; letter-spacing: -0.005em; }
.replay-head span { font-family: var(--mono); font-size: 14px; color: var(--d-muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--d-rule); }
.stats > div { padding: 28px 0 28px 28px; border-left: 1px solid var(--d-rule); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats .k { font-size: 14px; color: var(--d-muted); }
.stats .v { font-family: var(--mono); font-size: 44px; font-weight: 600; line-height: 1.1; }
.up-d { color: var(--up-d); } .down-d { color: var(--down-d); }
.replay-body { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
.cap { font-size: 14px; color: var(--d-muted); margin-bottom: 8px; }
.equity { display: block; width: 100%; height: 230px; }
.months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 24px; font-family: var(--mono); font-size: 14px; }
.months div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--d-rule); }
.months div:nth-child(6n) { border-bottom: 0; }
.tabs { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--d-ink-2); }

/* day chart */
.day { padding: 72px var(--side); }
.day-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.day-head h2 { font-size: 40px; }
.day-head span { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.day-card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 20px 24px; }
.day-svg { display: block; width: 100%; height: 380px; }
.day-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.day-legend i { display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; margin-right: 8px; vertical-align: 1px; }
.tri-up { border-bottom: 10px solid #16a34a; }
.tri-down { border-top: 10px solid #dc2626; }

/* data table */
.data { padding: 72px var(--side); border-top: 1px solid var(--d-rule); }
.data h2, .pricing h2 { font-size: 40px; margin-bottom: 28px; }
.table { border-top: 2px solid var(--d-ink); }
.row { display: grid; grid-template-columns: 3fr 2fr 6fr; padding: 18px 0; border-bottom: 1px solid var(--d-rule); font-size: 17px; align-items: baseline; }
.row > :first-child { font-weight: 600; }
.row > :nth-child(2) { font-family: var(--mono); font-size: 15px; color: var(--d-ink-2); }
.row.th { padding: 12px 0; font-size: 13px; font-weight: 600; color: var(--d-muted); }
.row.th > * { font-family: inherit; font-size: inherit; color: inherit; font-weight: 600; }

/* live */
.live { padding: 80px var(--side); background: var(--acc-soft); display: flex; flex-direction: column; gap: 32px; }
.live-text { display: flex; flex-direction: column; gap: 14px; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 4px; background: var(--acc); color: var(--acc-ink); }
.live h2 { font-size: 48px; line-height: 1.05; max-width: 15ch; }
.live p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.live-vis { display: flex; flex-direction: column; gap: 14px; }
.flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1fr; align-items: center; }
.box { background: #fff; border: 1px solid var(--acc-line); border-radius: 6px; padding: 18px 20px; }
.box .k { font-family: var(--mono); font-size: 12px; }
.box b { display: block; font-size: 17px; font-weight: 600; margin-top: 6px; }
.arrow { text-align: center; color: var(--muted); }
.robot { background: #fff; border: 1px solid var(--acc-line); border-radius: 6px; overflow: hidden; }
.robot-head { padding: 16px 20px; border-bottom: 1px solid #eceee9; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.robot-head b { font-size: 16px; font-weight: 600; }
.pills { display: flex; gap: 8px; }
.pill { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.pill-paper { background: #fef3c7; color: #78350f; }
.pill-run { background: #dcfce7; color: #14532d; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-right: 6px; }
.robot-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.robot-facts > div { padding: 16px 20px; }
.robot-facts > div + div { border-left: 1px solid #eceee9; }
.robot-facts .k { font-size: 12px; }
.robot-facts b { display: block; font-size: 16px; font-weight: 600; margin-top: 4px; }

/* connect */
.connect { padding: 72px var(--side); display: flex; flex-direction: column; gap: 28px; }
.connect h2 { font-size: 40px; line-height: 1.08; }
.steps { border-top: 2px solid var(--ink); }
.step { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.step-n { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.step-t { font-size: 17px; font-weight: 600; }
.copy-row { display: flex; gap: 10px; align-items: center; }
.url { flex: 1; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 4px; display: flex; align-items: center;
  font-family: var(--mono); font-size: 14px; background: #fff; overflow-x: auto; white-space: nowrap; }
.copy { height: 42px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 6px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.connect .btn { margin-top: 28px; align-self: flex-start; }

/* pricing */
.pricing { padding: 64px var(--side) 72px; background: var(--band); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.plan { padding: 28px 32px 0; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--rule-2); }
.plan:first-child { padding-left: 0; border-left: 0; }
.plan:last-child { padding-right: 0; }
.plan-name { font-size: 18px; font-weight: 700; }
.price { font-family: var(--mono); font-size: 40px; font-weight: 600; }
.price small { font-family: 'Inter Tight', sans-serif; font-size: 17px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.plan .btn { margin-top: auto; height: 48px; }
.plan ul + .btn { margin-top: 12px; }

/* close + footer */
.close { padding: 80px var(--side) 40px; display: flex; flex-direction: column; gap: 56px; }
.close-main { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.close h2 { font-size: 48px; }
.close-url { font-family: var(--mono); font-size: 16px; color: var(--d-ink-2); margin-top: -10px; }
.close-cta { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 15px; color: var(--d-ink-2); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--d-rule); padding-top: 22px; font-size: 14px; color: var(--d-muted); }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-signin { display: inline; }
}
@media (max-width: 760px) {
  :root { --side: 20px; --nav-side: 16px; }
  .hero { padding-top: 48px; gap: 36px; }
  .hero h1 { font-size: 40px; }
  .day-head h2, .data h2, .pricing h2, .connect h2, .live h2, .close h2 { font-size: 30px; }
  .replay-head h2 { font-size: 22px; }
  .demo { min-height: 0; }
  .result-stats .v { font-size: 24px; overflow-wrap: anywhere; }
  .ask input { font-size: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 20px 0 20px 16px; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--d-rule); }
  .stats .v { font-size: 32px; }
  .months { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .months div:nth-child(6) { border-bottom: 1px solid var(--d-rule); }
  .day-card { padding: 12px; }
  .day-svg { height: 260px; }
  .row { grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 4px; }
  .row > :nth-child(3) { grid-column: 1 / -1; }
  .row.th { display: none; }
  .flow { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); line-height: 1; padding: 4px 0; }
  .robot-facts { grid-template-columns: 1fr; }
  .robot-facts > div + div { border-left: 0; border-top: 1px solid #eceee9; }
  .step { grid-template-columns: 36px 1fr; }
  .copy-row { flex-wrap: wrap; }
  .copy-row .url { flex-basis: 100%; }
  .plans { grid-template-columns: 1fr; border-top: 0; }
  .plan, .plan:first-child { padding: 28px 0; border-left: 0; border-top: 2px solid var(--ink); }
  .plan .btn { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
