/* Shares its tokens with the dashboard (web/app/globals.css). */
:root {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #242423; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --grid: #2c2c2a; --border: rgba(255, 255, 255, 0.1); --blue: #3987e5; --orange: #d95926; --good: #0ca30c; --bad: #e66767;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #f9f9f7; --surface: #fcfcfb; --surface-2: #f1f0ec; --ink: #0b0b0b; --ink-2: #52514e; --muted: #898781;
    --grid: #e1e0d9; --border: rgba(11, 11, 11, 0.1); --blue: #2a78d6; --orange: #eb6834; --good: #006300; --bad: #b02a2a;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
header.top nav { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); }
header.top nav a { text-decoration: none; }
header.top nav a:hover { color: var(--ink); }

.hero { padding: 56px 0 40px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 700; }
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; max-width: 34em; }
h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 0 0 4px; }
section { padding: 48px 0; border-top: 1px solid var(--grid); }
.sub { color: var(--ink-2); margin: 0 0 28px; max-width: 44em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); margin-bottom: 10px; }
pre { margin: 10px 0 0; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; color: var(--ink-2); }
ul.plain { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
ul.plain li { margin: 4px 0; }

/* Waitlist form */
form.join { display: grid; gap: 10px; max-width: 460px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type="email"], input[type="text"], select, textarea { flex: 1; min-width: 0; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
button.primary { background: var(--ink); color: var(--page); border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; white-space: nowrap; }
button.primary:hover { opacity: 0.88; }
button.primary:disabled { opacity: 0.5; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 14px; min-height: 1.4em; }
.msg.ok { color: var(--good); }
.msg.err { color: var(--bad); }
label.opt { font-size: 13px; color: var(--ink-2); display: grid; gap: 4px; flex: 1; min-width: 150px; }

/* The product picture: drawn in HTML so it stays sharp and themes with the page. */
.shot { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 13px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.shot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.shot-head strong { font-size: 15px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile { background: var(--surface-2); border-radius: 8px; padding: 10px; }
.tile .k { color: var(--muted); font-size: 11px; }
.tile .v { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.up { color: var(--bad); } .down { color: var(--good); }
.issue { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--grid); }
.issue code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; color: var(--ink-2); white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 70px; margin-top: 8px; }
.bars i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; display: block; }
.bars i.b { background: var(--orange); opacity: 0.85; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--blue); }
.legend span.b::before { background: var(--orange); }
.flame { display: grid; gap: 2px; margin-top: 10px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.flame div { background: var(--blue); color: #fff; border-radius: 3px; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.flame div.sys { background: var(--surface-2); color: var(--ink-2); }

table.price { width: 100%; border-collapse: collapse; font-size: 15px; }
table.price th, table.price td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
table.price th { color: var(--muted); font-weight: 500; font-size: 13px; }
footer { border-top: 1px solid var(--grid); padding: 28px 0 48px; color: var(--muted); font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* Survey */
.survey { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; }
.q { padding: 18px 0; border-top: 1px solid var(--grid); }
.q legend, .q > label.title { font-weight: 600; padding: 0; margin-bottom: 8px; display: block; }
fieldset.q { border: 0; border-top: 1px solid var(--grid); margin: 0; padding: 18px 0; min-width: 0; }
.choice { display: flex; gap: 8px; align-items: center; padding: 4px 0; color: var(--ink-2); }
.scale { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.scale label { border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.scale input { position: absolute; opacity: 0; }
.scale input:checked + span { font-weight: 700; }
.scale label:has(input:checked) { background: var(--ink); color: var(--page); }
.scale label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .grid3, .grid2 { grid-template-columns: 1fr; }
  header.top nav a:not(.keep) { display: none; }
  table.price { font-size: 14px; }
  table.price th:nth-child(3), table.price td:nth-child(3) { display: none; }
}
