/* Tiny Trade Desk — global styles. One typeface, achromatic palette, square corners. */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --font: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* page (dark default) */
  --bg: #0c0d0f;
  --text: #e8e8e5;
  --body: #9a9da3;
  --muted: #8a8d93;
  --label: #6b6f76;
  --faint: #585c63;

  --rule: #1f2125;
  --rule-2: #1a1c1f;
  --panel: #0a0b0c;

  --cta-bg: #e8e8e5;
  --cta-fg: #0c0d0f;
  --outline-bd: #2a2c30;
  --outline-fg: #9a9da3;
  --input-bg: #0c0d0f;
  --input-bd: #2a2c30;
  --step-numeral: #3a3d42;
  --accent: #e8e8e5;

  --promo-bg: #e8e8e5;
  --promo-fg: #0c0d0f;
  --promo-muted: #7a7c80;

  --shadow: rgba(0, 0, 0, .55);
  --tape-sym: #f2f2f0;

  --up: oklch(72% 0.12 150);
  --down: oklch(68% 0.12 25);
  --data-mono: #c9ccd1;

  /* device screen — theme-independent, always dark */
  --dev-enclosure: #0a0a0b;
  --dev-enclosure-bd: #2a2c30;
  --dev-screen: #070a14;
  --dev-screen-bd: #1c1e22;
  --dev-grid: #3a3f4c;
  --dev-label: #9a9da3;
  --dev-symbol: #b4b7bf;
  --dev-bright: #f2f2f0;
  --dev-dim: #8a8d93;

  /* layout */
  --page-width: 1120px;
  --page-pad-x: 48px;
  --section-pad-y: 88px;

  --tape-duration: 32s;
}

[data-theme="light"] {
  --bg: #f5f4f1;
  --text: #17181a;
  --body: #5c5e63;
  --muted: #75777c;
  --label: #8f9096;
  --faint: #8f9096;

  --rule: #e1dfd9;
  --rule-2: #e1dfd9;
  --panel: #eceae5;

  --cta-bg: #17181a;
  --cta-fg: #f5f4f1;
  --outline-bd: #d0cec7;
  --outline-fg: #5c5e63;
  --input-bg: #f5f4f1;
  --input-bd: #d0cec7;
  --step-numeral: #cfcdc6;
  --accent: #17181a;

  --promo-bg: #17181a;
  --promo-fg: #f5f4f1;
  --promo-muted: #8a8d93;

  --shadow: rgba(20, 20, 25, .28);
  --tape-sym: #17181a;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

input { font-family: var(--font); }

button { font-family: var(--font); cursor: pointer; }

/* ---------- keyframes ---------- */
@keyframes ttd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ttd-tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ttd-cursor { animation: none !important; opacity: 1; }
  .ttd-tape-track { animation: none !important; }
}

/* ---------- promo bar ---------- */
.promo-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 9px 48px;
  background: var(--promo-bg);
  color: var(--promo-fg);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}
.promo-bar .sep { color: var(--promo-muted); }
.promo-bar .rest { font-weight: 400; }

/* ---------- nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
}
.ttd-cursor {
  width: 9px;
  height: 16px;
  background: var(--text);
  display: inline-block;
  animation: ttd-blink 1.2s step-end infinite;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-divider {
  width: 1px;
  height: 14px;
  background: var(--rule);
  align-self: center;
}
.docs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px dashed var(--outline-bd);
  color: var(--text);
  padding: 5px 10px;
}
.theme-toggle {
  cursor: pointer;
  color: var(--text);
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 12px;
  padding: 0;
}
.btn-preorder-outline {
  border: 1px solid var(--text);
  color: var(--text);
  padding: 7px 16px;
  background: none;
  font-size: 12px;
  font-family: var(--font);
}
.docs-label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--label);
}
.back-link { font-size: 12px; }

/* ---------- buttons ---------- */
.btn-cta {
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  display: inline-block;
  font-family: var(--font);
}
.btn-outline {
  border: 1px solid var(--outline-bd);
  color: var(--outline-fg);
  padding: 13px 22px;
  font-size: 12px;
  background: none;
  font-family: var(--font);
  display: inline-block;
}

/* ---------- section anatomy ---------- */
.section {
  padding: var(--section-pad-y) var(--page-pad-x);
  border-bottom: 1px solid var(--rule);
  max-width: var(--page-width);
  margin: 0 auto;
  box-sizing: border-box;
}
.section-full { max-width: none; }
.section-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.badge {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid var(--outline-bd);
  color: var(--label);
}
.section-label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--label);
}
.section-h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
}
.section-sub {
  margin: 0 0 48px;
  font-size: 13px;
  color: var(--body);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  padding: 100px 48px 88px;
  perspective: 1200px;
  max-width: var(--page-width);
  margin: 0 auto;
}
.hero-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin-bottom: 26px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
}
.hero p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ---------- device render ---------- */
.device-card {
  background: var(--dev-enclosure);
  border: 1px solid var(--dev-enclosure-bd);
  border-radius: 16px;
  padding: 24px 30px;
  box-shadow: 0 24px 60px var(--shadow);
  will-change: transform;
}
.device-card.static { box-shadow: 0 20px 44px var(--shadow); }
.device-screen {
  width: 470px;
  height: 250px;
  background: var(--dev-screen);
  border-radius: 6px;
  border: 1px solid var(--dev-screen-bd);
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  color: var(--dev-bright);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
.device-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.device-symbol-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.device-symbol {
  font-size: 13px;
  color: var(--dev-symbol);
  font-weight: 700;
  letter-spacing: .14em;
}
.device-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.device-curr {
  font-size: 15px;
  color: var(--dev-dim);
  font-weight: 700;
}
.device-price {
  font-size: 27px;
  color: var(--dev-bright);
  font-weight: 700;
  letter-spacing: .02em;
}
.device-today-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.device-today-label {
  font-size: 11px;
  color: var(--dev-label);
  letter-spacing: .16em;
  font-weight: 700;
}
.device-pct {
  font-size: 21px;
  font-weight: 700;
}
.device-chart {
  position: relative;
  flex: 1;
  margin: 12px 0 8px;
}
.device-gridline {
  position: absolute;
  left: 0;
  right: 0;
}
.device-gridline .line {
  position: absolute;
  left: 0;
  right: 44px;
  border-top: 1px solid var(--dev-grid);
}
.device-gridline .label {
  position: absolute;
  right: 0;
  transform: translateY(-45%);
  font-size: 11px;
  font-weight: 600;
  color: var(--dev-label);
}
.device-candles {
  position: absolute;
  left: 0;
  right: 52px;
  top: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
}
.candle { position: relative; flex: 1; }
.candle .wick {
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.candle .body {
  position: absolute;
  left: 12%;
  right: 12%;
}
.device-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--dev-label);
  font-weight: 600;
}
.device-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.device-dots span {
  width: 22px;
  height: 5px;
  background: #26282c;
  border-radius: 3px;
}

/* ---------- ticker tape ---------- */
.tape-wrap {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}
.tape-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ttd-tape var(--tape-duration) linear infinite;
  padding: 11px 0;
}
.tape-item {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
  white-space: nowrap;
}
.tape-item .sym { color: var(--tape-sym); font-weight: 600; }
.tape-item .price { color: var(--muted); }

/* ---------- simulator ---------- */
.sim-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}
.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sim-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sim-group-label {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--label);
}
.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  cursor: pointer;
  padding: 8px 16px;
  font-size: 12px;
  border: 1px solid var(--outline-bd);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
}
.chip.active {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-color: var(--cta-bg);
}
.sim-range {
  width: 280px;
  accent-color: var(--accent);
}
.sim-note {
  font-size: 11px;
  color: var(--label);
  line-height: 1.7;
}

/* ---------- features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin: 0 -48px;
}
.feature-cell {
  padding: 48px 44px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-cell:nth-child(3n) { border-right: none; }
.feature-cell:nth-child(n+4) { border-bottom: none; }
.feature-title { font-size: 15px; font-weight: 600; }
.feature-desc { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--body); }

/* ---------- setup steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 72px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num { font-size: 28px; font-weight: 600; color: var(--step-numeral); }
.step-title { font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--body); }

/* ---------- order / waitlist ---------- */
.order-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
  max-width: var(--page-width);
  margin: 0 auto;
}
.order-col {
  padding: 64px 48px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.waitlist-col {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--panel);
}
.price-row { display: flex; align-items: baseline; gap: 14px; }
.price-big { font-size: 40px; font-weight: 600; }
.price-note { font-size: 12px; color: var(--label); }
.bullets { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--body); }
.ship-note { font-size: 11px; color: var(--faint); }
.waitlist-title { font-size: 18px; font-weight: 600; }
.waitlist-desc { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--body); }
.waitlist-form { display: flex; gap: 10px; margin-top: 6px; }
.waitlist-form input {
  background: var(--input-bg);
  border: 1px solid var(--input-bd);
  color: var(--text);
  padding: 12px 16px;
  font-size: 12.5px;
  width: 240px;
  outline: none;
}
.btn-join {
  border: 1px solid var(--text);
  color: var(--text);
  padding: 12px 20px;
  font-size: 12px;
  background: none;
  font-family: var(--font);
}
.form-confirm { font-size: 12.5px; color: var(--body); margin-top: 6px; }

/* ---------- key/value rows (specs, tables) ---------- */
.kv-list { display: flex; flex-direction: column; font-size: 12.5px; }
.kv-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-2);
}
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); }
.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  font-size: 12.5px;
}

/* ---------- what live means ---------- */
.honesty-block { display: flex; flex-direction: column; gap: 32px; max-width: 820px; }
.honesty-intro { margin: 0; font-size: 13px; line-height: 1.7; color: var(--body); max-width: 64ch; }
.disclaimers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.disclaimers p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--body); }
.disclaimers strong { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; max-width: 960px; }
.faq-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-2);
}
.faq-row:last-child { border-bottom: none; }
.faq-q { font-size: 13px; font-weight: 600; }
.faq-a { font-size: 12.5px; line-height: 1.7; color: var(--body); }

/* ---------- final CTA strip ---------- */
.cta-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 64px 48px;
  border-bottom: 1px solid var(--rule);
  max-width: var(--page-width);
  margin: 0 auto;
}
.cta-strip-title { font-size: 18px; font-weight: 600; }
.cta-strip-sub { font-size: 12px; color: var(--label); }

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 48px;
  font-size: 11px;
  color: var(--faint);
  max-width: var(--page-width);
  margin: 0 auto;
}
.footer-links { display: flex; gap: 24px; }

/* ---------- docs layout ---------- */
.docs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--rule);
}
.docs-header-left { display: flex; align-items: center; gap: 20px; }
.docs-header-right { display: flex; gap: 20px; align-items: center; font-size: 12px; }
.docs-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 600px;
}
.docs-sidebar {
  border-right: 1px solid var(--rule);
  background: var(--panel);
  padding-bottom: 24px;
}
.sidebar-group {
  padding: 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.sidebar-group:first-child { margin-top: 40px; }
.sidebar-group-label {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--label);
}
.sidebar-items { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.sidebar-item {
  padding: 8px 12px;
  border-left: 2px solid transparent;
  color: var(--muted);
}
.sidebar-item:hover { color: var(--text); }
.sidebar-item.active {
  color: var(--text);
  background: var(--panel-active, var(--rule-2));
  border-left-color: var(--text);
  font-weight: 600;
}
[data-theme="light"] .sidebar-item.active { background: #e1dfd9; }
.docs-content {
  padding: 56px 64px;
  max-width: 720px;
  box-sizing: border-box;
}
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--label);
  margin-bottom: 20px;
}
.docs-breadcrumb .current { color: var(--text); }
.docs-content h1 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.docs-intro {
  margin: 0 0 44px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--body);
}
.docs-content h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}
.docs-content p.body-p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--body);
}
.docs-content p.body-p-last { margin: 0 0 44px; }
.kv-list.docs-kv { margin-bottom: 44px; max-width: 520px; }
.kv-list.docs-kv-wide { max-width: 560px; }
.kv-list.docs-kv-x { max-width: 620px; }
.panel-block {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 18px 22px;
  font-size: 12.5px;
  line-height: 1.9;
  margin-bottom: 16px;
}
.panel-block.mb-44 { margin-bottom: 44px; }
.panel-block code {
  font-family: var(--font);
}
.step-box {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  gap: 16px;
}
.step-box .num {
  font-size: 20px;
  font-weight: 600;
  color: var(--step-numeral);
}
.step-box .desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--body);
}
.step-box .desc strong { color: var(--text); }
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--outline-bd);
  padding: 14px 16px;
  margin-bottom: 32px;
}
.callout.mb-44 { margin-bottom: 44px; }
.callout .callout-badge {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--label);
  padding: 3px 8px;
  border: 1px solid var(--outline-bd);
  flex-shrink: 0;
}
.callout .callout-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--body);
  margin: 0;
}
.callout .callout-text strong { color: var(--text); font-weight: 600; }
.troubleshoot-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-2);
}
.troubleshoot-row:last-child { border-bottom: none; }
.troubleshoot-row .q { font-weight: 600; }
.troubleshoot-row .a { color: var(--body); line-height: 1.7; }
.contact-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule-2);
}
.contact-row:last-child { border-bottom: none; }
.contact-row .who { font-weight: 600; }
.contact-row .what { color: var(--muted); }
.docs-pagination {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  font-size: 12.5px;
}
.docs-pagination a { color: var(--text); font-weight: 600; }
.docs-pagination a:hover { color: var(--muted); }
.docs-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 48px;
  font-size: 11px;
  color: var(--faint);
  border-top: 1px solid var(--rule);
}
