/* Venolith marketing site.
   Tokens come from the brand icon (graphite + gold mark) and the app itself.
   See DESIGN.md for the reasoning behind each choice. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Page */
  --ink: #0c0e12;
  --graphite: #111316;
  --slate: #1a1d23;
  --line: #262a31;
  --line-soft: rgba(237, 235, 230, 0.07);
  --paper: #edebe6;
  --paper-2: #b9b6ae;   /* secondary text, 8.9:1 on ink */
  --paper-3: #8a8780;   /* tertiary text, 5.4:1 on ink */

  /* Mark */
  --gold-1: #fbe0a0;
  --gold-2: #edba5c;
  --gold-3: #d99a3b;
  --gold-4: #a9691c;

  /* Product window: the app's own tokens */
  --app-bg: #0d0f12;
  --app-panel: #13161a;
  --app-head: #191c21;
  --app-line: #23272e;
  --app-text: #e6e8eb;
  --app-dim: #8b929c;
  --app-accent: #e8b54a;
  --app-up: #2fd05a;
  --app-down: #ff5454;

  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --col: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --chapter: clamp(96px, 14vw, 176px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.65 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(237, 186, 92, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--paper); color: var(--ink); font-weight: 500; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 14, 18, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-head.is-scrolled { border-bottom-color: var(--line-soft); }
.site-head .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand img { width: 26px; height: auto; }
.brand span { font-weight: 600; font-size: 17px; letter-spacing: 0.14em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--paper-2); text-decoration: none; font-size: 15px; transition: color 150ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--paper); color: #15130f; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 8px 24px -12px rgba(237,186,92,.45); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--paper); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: #3a3f48; background: rgba(255,255,255,0.05); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(72px, 11vw, 148px); overflow-x: clip; }
.hero-art {
  position: absolute; z-index: -1; pointer-events: none;
  top: -90px; right: max(-120px, -8vw); width: min(1000px, 78vw); aspect-ratio: 1;
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art .grain {
  position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: soft-light;
  -webkit-mask-image: radial-gradient(closest-side at 60% 55%, #000 30%, transparent); mask-image: radial-gradient(closest-side at 60% 55%, #000 30%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-art .fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(12,14,18,.4) 18%, rgba(12,14,18,0) 36%),
    linear-gradient(0deg, var(--ink) 2%, rgba(12,14,18,0) 30%);
}
.blades .b { transition: transform 900ms var(--ease); }

.hero-copy { max-width: 820px; }
.display {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: #f6f4ee;
  text-wrap: balance;
}
.lede {
  margin: 28px 0 0; max-width: 34em;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--paper-2);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--paper-3); }

/* ---------- Product window (rebuild of the app) ---------- */
.stage { position: relative; margin-top: clamp(64px, 9vw, 112px); }
.stage::before { /* gold floor light under the window */
  content: ""; position: absolute; left: 8%; right: 8%; top: 12%; bottom: -6%; z-index: -1;
  background: radial-gradient(60% 50% at 50% 60%, rgba(237,186,92,.14), rgba(237,186,92,0) 70%);
  filter: blur(30px);
}
.app {
  --r: 14px;
  position: relative;
  border-radius: var(--r);
  background: var(--app-bg);
  border: 1px solid #2b2f37;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 50px 100px -40px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.06) inset;
  overflow: hidden;
  font: 500 12.5px/1.35 var(--sans);
  color: var(--app-text);
  font-variant-numeric: tabular-nums;
}
.app-bar {
  display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 14px;
  background: linear-gradient(#1b1e23, #15181c); border-bottom: 1px solid var(--app-line);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #3a3e45; }
.lights i:nth-child(1) { background: #ec6a5e; } .lights i:nth-child(2) { background: #f4bf4f; } .lights i:nth-child(3) { background: #61c554; }
.app-tabs { display: flex; gap: 2px; margin-left: 8px; }
.app-tabs span { padding: 5px 10px; border-radius: 6px; color: var(--app-dim); }
.app-tabs span.on { color: var(--app-text); background: #24282f; }
.app-cmd {
  margin-left: auto; display: flex; align-items: center; gap: 10px;
  width: 260px; height: 26px; padding: 0 10px; border-radius: 6px;
  background: #0f1114; border: 1px solid var(--app-line); color: var(--app-dim);
}
.app-cmd kbd { margin-left: auto; font: 500 11px var(--mono); color: var(--app-dim); }

.tape { position: relative; height: 30px; border-bottom: 1px solid var(--app-line); overflow: hidden; background: #0f1114; }
.tape-track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 60s linear infinite; }
.tape:hover .tape-track, .tape.paused .tape-track { animation-play-state: paused; }
.tape-pause { position: absolute; right: 0; top: 0; bottom: 0; width: 34px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--app-line); background: #0f1114; color: var(--app-dim); cursor: pointer; }
.tape-pause:hover { color: var(--app-text); }
.tape-pause svg { width: 12px; height: 12px; }
.tape-item { display: inline-flex; gap: 8px; padding: 0 18px; border-right: 1px solid #1d2026; font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.tape-item b { font-weight: 500; color: var(--app-text); }
@keyframes tape { to { transform: translateX(-50%); } }

.up { color: var(--app-up); } .down { color: var(--app-down); } .dim { color: var(--app-dim); }

.app-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 300px;
  gap: 1px; background: var(--app-line);
  min-height: 470px;
}
.pane { background: var(--app-panel); display: flex; flex-direction: column; min-width: 0; }
.pane-head {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  background: var(--app-head); border-bottom: 1px solid var(--app-line); font-weight: 600; font-size: 12.5px;
}
.pane-head .meta { margin-left: auto; font: 400 11px var(--mono); color: var(--app-dim); font-weight: 400; }
.pane-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--app-up); box-shadow: 0 0 0 3px rgba(47,208,90,.15); }

.watch { list-style: none; margin: 0; padding: 4px 0; }
.watch button {
  display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; width: 100%;
  padding: 8px 12px; border: 0; background: transparent; text-align: left; cursor: pointer;
  border-left: 2px solid transparent;
}
.watch button:hover { background: #181b20; }
.watch button[aria-pressed="true"] { background: #1c1a14; border-left-color: var(--app-accent); }
.watch .sym { font-weight: 600; }
.watch .px { font-family: var(--mono); text-align: right; }
.watch .nm { font-size: 11px; color: var(--app-dim); font-weight: 400; }
.watch .ch { font: 400 11px var(--mono); text-align: right; }

.chart-pane { position: relative; }
.chart-top { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 0; }
.chart-top .big { font: 500 22px var(--mono); letter-spacing: -0.02em; }
.chart-top .ch { font: 400 12px var(--mono); white-space: nowrap; }
.ranges { margin-left: auto; display: flex; gap: 2px; }
.ranges span { padding: 3px 8px; border-radius: 5px; color: var(--app-dim); font-size: 11.5px; }
.ranges span.on { color: #1a1206; background: var(--app-accent); }
.chart { position: relative; flex: 1; min-height: 300px; margin: 6px 4px 0 0; cursor: crosshair; touch-action: pan-y; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .grid line { stroke: #1f232a; }
.chart .axis text { fill: var(--app-dim); font: 400 10.5px var(--mono); }
.chart .line { fill: none; stroke: var(--app-accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.chart .area { fill: url(#area); }
.chart .event line { stroke: #5a471f; stroke-dasharray: 3 3; }
.chart .event rect { fill: #2c2414; stroke: #5a471f; }
.chart .event text { fill: var(--app-accent); font: 500 10px var(--sans); }
.cross { pointer-events: none; opacity: 0; transition: opacity 120ms; }
.chart:hover .cross, .chart.is-touch .cross, .chart:focus-visible .cross { opacity: 1; }
.cross line { stroke: #4b515b; stroke-dasharray: 2 3; }
.cross circle { fill: var(--app-bg); stroke: var(--app-accent); stroke-width: 2; }
.tip {
  position: absolute; pointer-events: none; padding: 6px 9px; border-radius: 6px;
  background: #20242b; border: 1px solid #343944; font: 400 11px/1.4 var(--mono); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -120%); transition: opacity 120ms;
}
.chart:hover .tip, .chart.is-touch .tip, .chart:focus-visible .tip { opacity: 1; }

.side { display: grid; grid-template-rows: auto 1fr; gap: 1px; background: var(--app-line); }
.side > .pane { min-height: 0; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font: 400 10.5px var(--sans); color: var(--app-dim); text-align: right; padding: 7px 10px 5px; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td { padding: 7px 10px; border-top: 1px solid #1c1f25; text-align: right; font-family: var(--mono); font-weight: 400; font-size: 11.5px; }
.tbl td:first-child { font-family: var(--sans); font-weight: 500; font-size: 12px; }
.tbl .flag { display: inline-block; width: 22px; color: var(--app-dim); font: 400 10px var(--mono); }
.tbl tr.fresh td { animation: print 1.6s var(--ease) 1; }
@keyframes print { 0% { background: rgba(232,181,74,.22); } 100% { background: transparent; } }
.surp { display: inline-block; min-width: 46px; padding: 1px 6px; border-radius: 4px; text-align: center; }
.surp.up { background: rgba(47,208,90,.12); } .surp.down { background: rgba(255,84,84,.12); }

.odds { padding: 10px 12px 14px; display: grid; gap: 10px; }
.odds .row { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 10px; font-size: 11.5px; }
.odds .bar { height: 8px; border-radius: 2px; background: #1e2228; overflow: hidden; display: flex; }
.odds .bar i { display: block; height: 100%; }
.odds .bar .hold { background: #6d7480; } .odds .bar .cut { background: var(--app-accent); }
.odds .pct { font-family: var(--mono); text-align: right; font-weight: 400; }
.odds .legend { display: flex; gap: 14px; font-size: 10.5px; color: var(--app-dim); font-weight: 400; }
.odds .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.app-status {
  display: flex; gap: 18px; align-items: center; height: 26px; padding: 0 12px;
  border-top: 1px solid var(--app-line); background: #0f1114; font: 400 10.5px var(--mono); color: var(--app-dim);
}
.app-status .ok::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--app-up); margin-right: 6px; }
.app-status .illus { margin-left: auto; color: #a08a5c; }

/* ---------- Chapters ---------- */
.chapter { padding-top: var(--chapter); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: start; }
.h2 {
  margin: 0; font-weight: 600; font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance;
}
.h3 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.prose { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--paper-2); max-width: 34em; }
.prose + .prose { margin-top: 1em; }
.textlink { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(237,235,230,.3); text-underline-offset: 4px; }
.textlink:hover { text-decoration-color: var(--gold-2); }

/* ---------- Dock (switch large views) ---------- */
.dock-stage { margin-top: 56px; display: flex; flex-direction: column; }
.dock-stage .dock { order: 2; }
.dock-stage .dock-view { order: 1; }
.dock-stage .caption { order: 3; }
.dock-view { position: relative; }
.dock-panel .app { display: flex; flex-direction: column; min-height: 460px; }
.dock-panel .app > :not(.app-bar):not(.app-status) { flex: 1; }
.dock-panel { display: none; }
.dock-panel.on { display: block; animation: swap 320ms var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px) scale(.995); } to { opacity: 1; transform: none; } }
.dock {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
  width: max-content; max-width: 100%; margin: 28px auto 0; padding: 6px;
  border-radius: 18px; background: var(--graphite); border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
}
.dock button {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px;
  border-radius: 12px; border: 1px solid transparent; background: transparent;
  color: var(--paper-2); font-size: 14.5px; cursor: pointer;
  transition: background-color 150ms, color 150ms;
}
.dock button:hover { color: var(--paper); background: rgba(255,255,255,.04); }
.dock button[aria-selected="true"] { color: var(--paper); background: var(--slate); border-color: #30353e; }
.dock button svg { width: 17px; height: 17px; }
.dock button[aria-selected="true"] svg { color: var(--gold-2); }
.caption { margin: 28px auto 0; max-width: 40em; text-align: center; font-size: 18px; line-height: 1.6; color: var(--paper-3); }
.caption strong { color: var(--paper); font-weight: 500; }

/* Panels inside the dock reuse .app; these are their bodies */
.win-body { padding: 0; }
.cal { width: 100%; border-collapse: collapse; }
.cal th { text-align: left; font: 400 11px var(--sans); color: var(--app-dim); padding: 10px 14px 8px; border-bottom: 1px solid var(--app-line); }
.cal td { padding: 11px 14px; border-bottom: 1px solid #1a1d22; font-size: 12.5px; vertical-align: middle; }
.cal td.n { font-family: var(--mono); font-weight: 400; text-align: right; }
.cal th.n { text-align: right; }
.cal tr.next td { background: #17150f; }
.cal .tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font: 500 10.5px var(--sans); }
.cal .tag.out { background: #1d2a20; color: #7fdc97; }
.cal .tag.next { background: #2c2414; color: var(--app-accent); }
.cal .tag.later { background: #1f2329; color: var(--app-dim); }
.imp { display: inline-flex; gap: 2px; vertical-align: middle; }
.imp i { width: 4px; height: 10px; border-radius: 1px; background: #2e333b; }
.imp i.on { background: var(--app-accent); }

.surp-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--app-line); }
.surp-cell { background: var(--app-panel); padding: 16px 14px 14px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.surp-cell .cc { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; }
.surp-cell .cc span { font: 400 11px var(--mono); }
.surp-cell svg { width: 100%; height: 100%; min-height: 120px; }
.surp-cell .zero { stroke: #2b3038; }
.surp-cell .ln { fill: none; stroke-width: 1.5; }
.surp-cell .lbl { font: 400 10.5px var(--sans); color: var(--app-dim); }

.odds-big { padding: 22px 24px; display: grid; gap: 18px; }
.odds-big .mtg { display: grid; grid-template-columns: 120px 1fr 160px; align-items: center; gap: 18px; }
.odds-big .mtg b { font-weight: 600; font-size: 13px; }
.odds-big .mtg .when { display: block; font: 400 11px var(--mono); color: var(--app-dim); margin-top: 2px; }
.stack { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: #1e2228; }
.stack i { display: flex; align-items: center; justify-content: center; font: 500 10.5px var(--mono); color: #0d0f12; font-style: normal; }
.stack .s-hike { background: #ff8a6a; } .stack .s-hold { background: #8c939e; } .stack .s-cut { background: var(--app-accent); } .stack .s-cut2 { background: #b98a2c; }
.odds-big .move { font: 400 11.5px var(--mono); text-align: right; }

.cot { padding: 18px 22px 22px; display: grid; gap: 12px; }
.cot .r { display: grid; grid-template-columns: 110px 1fr 60px 90px; gap: 16px; align-items: center; font-size: 12.5px; }
.cot .meter { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #3d1b1b, #1e2228 35%, #1e2228 65%, #173322); }
.cot .meter i { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--app-text); transform: translateX(-50%); }
.cot .v { font: 400 11.5px var(--mono); text-align: right; }
.cot .crowd { font: 500 10.5px var(--sans); padding: 2px 7px; border-radius: 4px; justify-self: end; }
.cot .crowd.l { background: #173322; color: #7fdc97; } .cot .crowd.s { background: #3d1b1b; color: #ff9a9a; } .cot .crowd.n { color: var(--app-dim); }

.note-win { display: grid; grid-template-columns: 1fr 340px; }
.note-doc { padding: 26px 30px; border-right: 1px solid var(--app-line); background: var(--app-panel); }
.note-doc h4 { margin: 0 0 4px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.note-doc .when { font: 400 11px var(--mono); color: var(--app-dim); }
.note-doc p { font: 400 13.5px/1.65 var(--sans); color: #c9cdd3; margin: 16px 0 0; max-width: 46em; }
.note-doc mark { background: #2c2414; color: var(--app-accent); padding: 0 3px; border-radius: 3px; }
.note-ai { padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #101215; }
.note-ai .who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--app-dim); }
.note-ai .who b { color: var(--app-text); font-weight: 600; }
.note-ai .chip { margin-left: auto; padding: 2px 7px; border-radius: 4px; background: #1d2a20; color: #7fdc97; font: 500 10.5px var(--sans); }
.bubble { padding: 11px 13px; border-radius: 10px; font: 400 12.5px/1.55 var(--sans); }
.bubble.q { background: #1f2329; align-self: flex-end; max-width: 85%; }
.bubble.a { background: #15181c; border: 1px solid var(--app-line); color: #d3d7dc; }
.bubble.a .src { display: block; margin-top: 8px; font: 400 10.5px var(--mono); color: var(--app-dim); }

/* ---------- Detail rows (Linear-style) ---------- */
.detail { padding-top: var(--chapter); }
.detail .split { align-items: start; }
.detail .frame { margin-top: 56px; }
.crop { max-height: 360px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 56px; }
.trio > div { background: var(--ink); padding: 32px 30px 34px; }
.trio h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.trio p { margin: 0; color: var(--paper-2); font-size: 16px; line-height: 1.6; }
.trio .ico { width: 36px; height: 36px; margin-bottom: 22px; border-radius: 9px; display: grid; place-items: center; background: var(--graphite); border: 1px solid var(--line); color: var(--gold-2); }
.trio .ico svg { width: 18px; height: 18px; }

/* ---------- Closing ---------- */
.closing { position: relative; isolation: isolate; margin-top: var(--chapter); padding: clamp(120px, 14vw, 200px) 0 clamp(160px, 22vw, 320px); text-align: center; overflow: hidden; }
.closing .mark { width: 72px; margin: 0 auto 36px; filter: drop-shadow(0 10px 40px rgba(237,186,92,.35)); }
.closing .h2 { max-width: 14em; margin-inline: auto; }
.closing .prose { margin: 22px auto 0; }
.closing .hero-actions { justify-content: center; }
.closing-art {
  position: absolute; z-index: -1; left: 50%; bottom: -52%; width: min(1100px, 160vw); transform: translateX(-50%);
  opacity: .5; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side at 50% 60%, #000 55%, transparent); mask-image: radial-gradient(closest-side at 50% 60%, #000 55%, transparent);
}
.closing-art svg { width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 56px 0 48px; color: var(--paper-3); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--paper); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: var(--paper-3); }
.foot-grid a:hover { color: var(--paper); }
.foot-brand img { width: 150px; margin-bottom: 18px; }
.foot-brand p { margin: 0; max-width: 26em; line-height: 1.6; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; font-size: 13px; }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 5vw, 64px); }
.page-head .display { font-size: clamp(40px, 6vw, 76px); }
.page-head .lede { max-width: 36em; }

.todo {
  display: inline-block; padding: 1px 7px; border-radius: 4px; vertical-align: 1px;
  background: rgba(237,186,92,.12); color: var(--gold-2); border: 1px dashed rgba(237,186,92,.45);
  font: 500 12px/1.6 var(--sans);
}
.shot {
  display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 14px;
  border: 1px dashed #3a3f48; background: repeating-linear-gradient(135deg, #101216 0 12px, #0e1013 12px 24px);
  color: var(--paper-3); font-size: 14px; text-align: center; padding: 24px;
}

.feature-list { display: grid; gap: var(--chapter); padding-bottom: 32px; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature:nth-child(even) > :first-child { order: 2; }
.feature .h3 + .prose { margin-top: 16px; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--paper-2); font-size: 16px; }
.feature li { padding-left: 22px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-3); transform: rotate(45deg); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform { padding: 36px 34px; border-radius: 18px; background: var(--graphite); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.platform svg.os { width: 34px; height: 34px; color: var(--paper); }
.platform h2 { margin: 6px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.platform p { margin: 0; color: var(--paper-2); }
.platform .btn { align-self: flex-start; margin-top: 10px; }
.platform dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14px; }
.platform dt { color: var(--paper-3); } .platform dd { margin: 0; color: var(--paper-2); }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.steps li { list-style: none; padding: 28px; border-radius: 16px; border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--slate); color: var(--gold-2); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.steps p { margin: 0; color: var(--paper-2); font-size: 15.5px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.plan { padding: 36px 34px 38px; border-radius: 20px; background: var(--graphite); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.pro { background: linear-gradient(180deg, #17150f, var(--graphite) 55%); border-color: #4a3c1f; }
.plan h2 { margin: 0; font-size: 22px; font-weight: 600; }
.plan .price { margin: 18px 0 4px; color: var(--paper); min-height: 1.2em; display: flex; align-items: baseline; gap: 10px; font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--paper-3); letter-spacing: 0; }
.plan > p { margin: 0; color: var(--paper-2); }
.plan ul { margin: 26px 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--paper-2); font-size: 15.5px; }
.plan li { display: flex; gap: 12px; }
.plan li svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--gold-2); }
.plan .btn { margin-top: auto; align-self: flex-start; }

.faq { margin-top: var(--chapter); max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--paper-3); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--paper-2); max-width: 40em; }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-bottom: 40px; }
.legal nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; font-size: 14px; }
.legal nav a { color: var(--paper-3); text-decoration: none; }
.legal nav a:hover { color: var(--paper); }
.legal article { max-width: 680px; }
.legal section { padding-top: 8px; margin-bottom: 48px; scroll-margin-top: 96px; }
.legal h2 { margin: 0 0 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--paper-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal .meta { color: var(--paper-3); font-size: 14px; margin-top: 18px; }
.callout { padding: 18px 20px; border-radius: 12px; background: var(--graphite); border: 1px solid var(--line); color: var(--paper-2); font-size: 15.5px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-grid > section { padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: var(--graphite); }
.contact-grid h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.contact-grid p { margin: 0 0 16px; color: var(--paper-2); font-size: 15.5px; }

.lost { min-height: 70vh; display: grid; align-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .app-grid { grid-template-columns: 200px minmax(0, 1fr); }
  .app-grid .side { display: none; }
  .surp-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .surp-board .surp-cell:nth-child(n+5) { display: none; }
}
@media (max-width: 880px) {
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: rgba(12,14,18,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .nav-toggle svg { width: 18px; height: 18px; }
  .head-cta { display: none; }
  .split, .feature, .platforms, .plans, .legal { grid-template-columns: 1fr; }
  .feature:nth-child(even) > :first-child { order: 0; }
  .feature { gap: 32px; }
  .trio, .contact-grid, .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .legal nav { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .note-win { grid-template-columns: 1fr; }
  .note-ai { border-top: 1px solid var(--app-line); }
  .odds-big .mtg { grid-template-columns: 1fr; gap: 8px; }
  .odds-big .move { text-align: left; }
  .hero-art { right: -38vw; width: 120vw; top: -60px; opacity: .55; }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-grid .watch-pane { order: 2; }
  .watch { display: grid; grid-template-columns: 1fr 1fr; }
  .app-cmd, .app-tabs span:nth-child(n+3) { display: none; }
  .chart { min-height: 240px; }
  .ranges { display: none; }
  .app-status { gap: 12px; }
  .app-status span { white-space: nowrap; }
  .app-status span:not(.ok):not(.illus) { display: none; }
  .app-status .ok + .ok { display: none; }
  .surp-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .surp-board .surp-cell:nth-child(n+5) { display: none; }
  .cal .hide-s { display: none; }
  .cal th, .cal td { padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .cot .r { grid-template-columns: 80px 1fr 56px; }
  .cot .crowd { display: none; }
  .dock button { padding: 0 12px; font-size: 14px; }
  .dock button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock button { width: 46px; justify-content: center; padding: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .tape-track { animation: none !important; }
}

/* Inner-page details */
.feature li strong { color: var(--paper); font-weight: 500; }
.page-head .meta { margin: 20px 0 0; font-size: 14px; color: var(--paper-3); }
.feature { align-items: start; }
.feature .shot {
  position: sticky; top: 108px; aspect-ratio: 16 / 11; padding-top: 52px;
  border: 1px solid #2b2f37; background: var(--app-bg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  background-image: radial-gradient(circle at 22px 20px, #ec6a5e 5px, transparent 5.5px), radial-gradient(circle at 42px 20px, #f4bf4f 5px, transparent 5.5px), radial-gradient(circle at 62px 20px, #61c554 5px, transparent 5.5px), linear-gradient(#1b1e23, #15181c 40px, var(--line) 40px, var(--line) 41px, var(--app-bg) 41px);
}
@media (max-width: 880px) { .feature .shot { position: static; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
