/* Shares its tokens with the dashboard (web/app/globals.css). */
:root {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #161615; --surface-2: #1f1f1e; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #98968f;
  --grid: #2c2c2a; --axis: #383835; --border: rgba(255, 255, 255, 0.1); --blue: #3987e5; --orange: #d95926; --good: #0ca30c; --bad: #e66767;
  --blue-soft: rgba(57, 135, 229, 0.16); --orange-soft: rgba(217, 89, 38, 0.14); --orange-ink: #ec835a; --warn: #fab219; --warn-ink: #fab219;
  --bad-fill: #d03b3b; --good-ink: #2fbf2f; --dot: rgba(255, 255, 255, 0.14);
}
@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; --axis: #c3c2b7; --border: rgba(11, 11, 11, 0.12); --blue: #2a78d6; --orange: #c4501f; --good: #006300; --bad: #b02a2a;
    --blue-soft: rgba(42, 120, 214, 0.1); --orange-soft: rgba(235, 104, 52, 0.1); --orange-ink: #a8410f; --warn: #fab219; --warn-ink: #8a5a00;
    --bad-fill: #d03b3b; --good-ink: #006300; --dot: rgba(11, 11, 11, 0.12); --muted: #6b6a64;
  }
}
* { 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: minmax(0, 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; }
}

/* --- the landing page (2026-10 design): one grammar of marks, told as a story --- */
.home .dots { position: absolute; inset: 0 0 auto 0; height: 900px; background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.5px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); pointer-events: none; }
.home .wrap { position: relative; max-width: 1180px; padding: 0 28px; }
.home header.top { height: 68px; padding: 0; gap: 28px; }
.home .logo { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.home header.top nav { align-items: center; gap: 24px; }
.cta { display: inline-block; background: var(--ink); color: var(--page) !important; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; text-decoration: none; }
.cta:hover { opacity: 0.88; }
.ghost { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 10px 6px; }
.eyebrow { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: inline-block; margin-bottom: 8px; }
.home .hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding: 56px 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; font-size: 13px; color: var(--ink-2); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.home h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; max-width: 940px; margin: 0; }
.home .lede { font-size: 19px; line-height: 1.5; max-width: 700px; margin: 0; }
.home form.join { max-width: 560px; width: 100%; justify-items: center; }
.home form.join .row { justify-content: center; width: 100%; }
.home form.join input[type="email"] { max-width: 340px; border-radius: 10px; padding: 12px 14px; border-color: var(--axis); }
.home form.join button.primary { border-radius: 10px; padding: 12px 18px; }
details.more { font-size: 13px; color: var(--muted); width: 100%; }
details.more summary { cursor: pointer; }
details.more .row { margin-top: 10px; text-align: left; }
.micro { font-size: 13px; color: var(--muted); max-width: 520px; }
.proofrow { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--ink-2); }
.proofrow span { display: inline-flex; gap: 8px; align-items: center; }
.proofrow svg { color: var(--blue); flex: none; }
.stage { position: relative; margin: 44px auto 0; max-width: 1100px; }
.stage .shot { position: relative; padding: 18px 20px 120px; border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45); overflow: hidden; text-align: left; }
.stage .shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: linear-gradient(to bottom, transparent, var(--page) 85%); }
.sh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--ink-2); }
.lens { display: flex; gap: 6px; margin-bottom: 14px; }
.rel { border-radius: 8px; padding: 8px 10px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rel b { font: 600 13px ui-monospace, Menlo, monospace; color: var(--ink); }
.rel.sel { border-color: var(--blue); background: var(--blue-soft); }
.rel.cmp { border: 1px dashed var(--orange); background: var(--orange-soft); }
.rel.thin { background-image: radial-gradient(circle, var(--axis) 1px, transparent 1.4px); background-size: 6px 6px; border: 1px dotted var(--axis); min-width: 64px; }
.stage .tiles { gap: 10px; margin-bottom: 14px; }
.stage .tile { background: var(--page); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.stage .tile .v { font-size: 24px; }
.stage .tile .d { font-size: 12px; font-weight: 600; color: var(--bad); }
.brow { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(160px, 1.4fr) 90px; gap: 12px; align-items: center; border-top: 1px solid var(--border); min-height: 46px; }
.mono { font: 600 12.5px ui-monospace, "SF Mono", Menlo, monospace; }
.brow .sub { font-size: 11.5px; color: var(--muted); margin: 0; }
.rib { width: 100%; height: 40px; display: block; opacity: 0.9; }
.badge { font-size: 11.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.reg { color: var(--bad); } .badge.reg::before { background: var(--bad-fill); }
.badge.new { color: var(--warn-ink); } .badge.new::before { background: var(--warn); }
.badge.imp { color: var(--good-ink); } .badge.imp::before { background: var(--good); }
.field { position: absolute; right: -8px; top: 150px; width: 340px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); z-index: 2; }
.sf { display: flex; flex-direction: column; gap: 7px; margin: 10px 0; }
.sf div { height: 10px; background-image: radial-gradient(circle, var(--blue) 2.6px, transparent 3px); background-size: 7px 10px; }
.sf .o { opacity: 0.45; }
.sf .s { background-image: radial-gradient(circle, var(--muted) 2.6px, transparent 3px); }
.cap { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12px; color: var(--muted); z-index: 3; }
.home section { border-top: 0; padding: 72px 0 0; }
.home section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; letter-spacing: -0.025em; max-width: 820px; }
.mark { display: flex; flex-direction: column; gap: 8px; }
.mark h3 { font-size: 18px; }
.mark .never { color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.spec { height: 64px; display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--axis); margin-bottom: 8px; }
.spec.needles i { width: 6px; height: 44px; border-radius: 2px; background: var(--blue); }
.spec.needles i.dot { background: none; border: 1px dotted var(--muted); }
.spec.field-spec { position: relative; align-items: center; border-bottom: 0; background: radial-gradient(circle, var(--axis) 3px, transparent 3.4px) 0 0 / 12px 12px; }
.spec.field-spec .hot { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; background: radial-gradient(circle, var(--blue) 3.4px, transparent 3.8px) 0 0 / 12px 12px; }
.spec.field-spec .end { position: absolute; left: 60%; top: 0; bottom: 0; width: 15%; background: radial-gradient(circle, var(--ink) 3.4px, transparent 3.8px) 0 0 / 12px 12px; }
.spec.ridge i { flex: 1; background: var(--blue); border-radius: 2px 2px 0 0; }
.lensbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: center; margin-top: 16px; }
.lensbox .lens { margin: 0; }
.ladder { display: flex; flex-direction: column; gap: 12px; }
.rung { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(300px, 1.4fr) minmax(220px, 1.2fr); gap: 20px; align-items: center; }
.rung p { margin: 4px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.steps li { border-top: 4px solid var(--grid); padding-top: 6px; }
.steps li.on { border-top-color: var(--blue); color: var(--ink-2); }
.steps li.part { border-top: 4px dashed var(--blue); color: var(--ink-2); }
.state { font-size: 12px; font-weight: 600; color: var(--warn-ink); }
.state.ok { color: var(--good-ink); }
.adds { color: var(--ink) !important; margin-top: 10px !important; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan .price { font-size: 14px; color: var(--muted); margin: 6px 0 4px; }
.plan .price b { font-size: 28px; color: var(--ink); letter-spacing: -0.02em; }
.plan ul.plain { margin-top: 10px; }
.closing { text-align: center; padding-bottom: 72px !important; }
.closing h2, .closing .sub { margin-left: auto; margin-right: auto; }
@media (max-width: 960px) {
  .field { display: none; }
  .rung, .lensbox { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .home header.top nav a.cta { padding: 8px 12px; }
  .stage .tiles { grid-template-columns: 1fr 1fr 1fr; }
  .brow { grid-template-columns: minmax(0, 1fr) 90px; }
  .brow .rib { display: none; }
  .lens .rel:not(.sel):not(.cmp) { display: none; }
}
@media (max-width: 520px) {
  .home .wrap { padding: 0 16px; }
  .plans { grid-template-columns: 1fr; }
  .stage .tiles { grid-template-columns: 1fr; }
  .proofrow { gap: 10px; flex-direction: column; align-items: flex-start; }
}
.proofline { text-align: center; max-width: 760px; }
.home #why .card p, .home #more .card ul { color: var(--ink-2); }
.adds::before { content: "+ "; }
