/* ============================================================
   TradeCowboy landing v2 — "the journal file that writes itself"
   Glass Sharpened tokens (mirrored from the app) + the redesign
   from design_handoff_landing_redesign. sRGB fallbacks first;
   exact oklch brand colors override under @supports.
   ============================================================ */

:root {
  --bg-base: #04081a;
  --bg-base-2: #060d24;
  --bg-band-top: #030616;
  --glass-card: rgba(255, 255, 255, 0.038);
  --glass-card-hi: rgba(255, 255, 255, 0.075);
  --jcard-bg: rgba(8, 14, 36, 0.72);
  /* sRGB fallbacks — exact oklch overrides below */
  --accent: #8f6ff2;
  --accent-soft: #c3b1fa;
  --accent-deep: #7a58e8;
  --accent-line: #b79df8;
  --accent-dim: rgba(143, 111, 242, 0.16);
  --accent-glow: rgba(143, 111, 242, 0.55);
  --accent-ring: rgba(143, 111, 242, 0.5);
  --accent-stroke: rgba(143, 111, 242, 0.2);
  --accent-idx: rgba(143, 111, 242, 0.7);
  --accent-grad: linear-gradient(180deg, #8f6ff2 0%, #7a58e8 100%);
  --accent-text-grad: linear-gradient(115deg, #c3b1fa 10%, #8f6ff2 70%);
  --pos: #2fe6a5;
  --pos-dim: rgba(47, 230, 165, 0.14);
  --pos-line: rgba(47, 230, 165, 0.3);
  --pos-stroke: rgba(47, 230, 165, 0.22);
  --neg: #f4564a;
  --neg-dim: rgba(244, 86, 74, 0.16);
  --warn: #f2c14e;
  --accent-pill-line: rgba(183, 157, 248, 0.35);
  --accent-glow-25: rgba(143, 111, 242, 0.25);
  --accent-line-12: rgba(143, 111, 242, 0.12);
  --text-96: rgba(255, 255, 255, 0.95);
  --text-78: rgba(255, 255, 255, 0.76);
  --text-62: rgba(255, 255, 255, 0.6);
  --text-46: rgba(255, 255, 255, 0.52);
  --text-44: rgba(255, 255, 255, 0.44);
  --hairline: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --border-hover: rgba(255, 255, 255, 0.2);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 18px 48px rgba(0, 0, 0, 0.5);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max-w: 1240px;
  --gutter: 28px;
}

@supports (color: oklch(70% 0.19 290)) {
  :root {
    --accent: oklch(70% 0.19 290);
    --accent-soft: oklch(83% 0.145 290);
    --accent-deep: oklch(62% 0.19 290);
    --accent-line: oklch(80% 0.185 290);
    --accent-dim: oklch(70% 0.19 290 / 0.16);
    --accent-glow: oklch(72% 0.19 290 / 0.55);
    --accent-ring: oklch(72% 0.19 290 / 0.5);
    --accent-stroke: oklch(70% 0.19 290 / 0.2);
    --accent-idx: oklch(70% 0.19 290 / 0.7);
    --accent-grad: linear-gradient(180deg, oklch(70% 0.19 290) 0%, oklch(62% 0.19 290) 100%);
    --accent-text-grad: linear-gradient(115deg, oklch(83% 0.145 290) 10%, oklch(70% 0.19 290) 70%);
    --pos: oklch(82% 0.21 158);
    --pos-dim: oklch(82% 0.21 158 / 0.14);
    --pos-line: oklch(82% 0.21 158 / 0.3);
    --pos-stroke: oklch(82% 0.21 158 / 0.22);
    --neg: oklch(67% 0.24 25);
    --neg-dim: oklch(67% 0.24 25 / 0.16);
    --warn: oklch(84% 0.17 82);
    --accent-pill-line: oklch(80% 0.185 290 / 0.35);
    --accent-glow-25: oklch(70% 0.19 290 / 0.25);
    --accent-line-12: oklch(70% 0.19 290 / 0.12);
  }
}

/* ── Reset & base ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--bg-base);
  color: var(--text-96);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-soft); }
a:hover { color: var(--text-96); }
::selection { background: var(--accent-dim); }
::placeholder { color: rgba(255, 255, 255, 0.5); }
summary::-webkit-details-marker { display: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }
.hairline { height: 1px; background: var(--hairline); }

/* ── Motion ── */
@keyframes tn-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tn-scan { 0%, 100% { top: 18%; } 50% { top: 78%; } }
@keyframes tn-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes tn-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── Aurora & page ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 18% -8%, rgba(90, 70, 190, 0.26), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(60, 90, 190, 0.15), transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 108%, rgba(90, 70, 190, 0.11), transparent 60%),
    linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
}
@supports (color: oklch(70% 0.19 290)) {
  .aurora {
    background:
      radial-gradient(ellipse 70% 45% at 18% -8%, oklch(45% 0.16 290 / 0.28), transparent 60%),
      radial-gradient(ellipse 55% 40% at 85% 8%, oklch(50% 0.14 250 / 0.16), transparent 60%),
      radial-gradient(ellipse 65% 50% at 50% 108%, oklch(45% 0.15 290 / 0.12), transparent 60%),
      linear-gradient(180deg, var(--bg-base) 0%, var(--bg-base-2) 100%);
  }
}
.page { position: relative; z-index: 1; overflow-x: clip; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Nav ── */
.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-96); }
.brand-mark { display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 22px; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-dim), 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 32px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, 0.25) inset; }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost {
  padding: 10px 20px;
  border-color: var(--border);
  background: var(--glass-card);
  color: var(--text-96);
}
.btn-ghost:hover { border-color: var(--border-hover); background: var(--glass-card-hi); }

/* ── Type ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.eyebrow-mb { margin-bottom: 28px; }
h1 {
  text-wrap: balance;
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.99;
  margin-bottom: 26px;
}
.accent-text {
  background: var(--accent-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin-bottom: 20px;
  text-wrap: balance;
}
.h2-dim { color: var(--text-62); }
.h2-mb-lg { margin-bottom: 54px; }
.h2-max { max-width: 760px; margin-bottom: 44px; }
.section-lede strong { color: var(--text-96); }
.section-lede {
  color: var(--text-78);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 620px;
  margin-bottom: 42px;
}
.section-lede em, .spec-row p em { color: var(--text-96); }
.pos-strong { color: var(--pos) !important; }

/* ── Waitlist forms ── */
.waitlist-form { max-width: 640px; }
.waitlist-form--center { max-width: 500px; margin: 0 auto; }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form--center .form-row { justify-content: center; }
.waitlist-form input[type="email"],
.waitlist-form select {
  font-family: var(--font-sans);
  font-size: 16px; /* ≥16px prevents iOS zoom-on-focus */
  color: var(--text-96);
  background: var(--glass-card-hi);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  min-width: 0;
  transition: border-color 0.12s ease;
}
.waitlist-form input[type="email"] { flex: 1 1 210px; }
.waitlist-form select {
  flex: 0 1 auto;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.waitlist-form select option { background: var(--bg-base-2); color: var(--text-96); }
.waitlist-form input:focus, .waitlist-form select:focus {
  outline: none;
  border-color: var(--accent-ring);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-note { font-size: 13px; color: var(--text-62); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--pos); }
.form-status.err { color: var(--neg); font-weight: 400; }


/* ── Watermark sections ── */
.wm-section { position: relative; overflow: clip; }
.wm-section .container { padding-top: 80px; }
#faq .faq-inner { padding-top: 80px; }

/* ── Split layouts ── */
.tn-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}
.tn-split2 {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.tn-split-phone { display: flex; position: sticky; top: 60px; }
.phone-right { justify-content: flex-end; }
.phone-left { justify-content: flex-start; }

/* ── Spec lists ── */
.spec-list { border-top: 1px solid var(--hairline); }
.spec-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-idx { font-family: var(--font-mono); font-size: 13px; color: var(--accent-idx); padding-top: 4px; }
.spec-row h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.spec-row p { font-size: 15px; color: var(--text-78); line-height: 1.65; max-width: 560px; }
.spec-row p + .tn-cal, .spec-row p + .scan-piece { margin-top: 18px; }

/* ── P&L calendar set piece ── */
.tn-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 430px; }
.tn-cal span {
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
}
.tn-cal .cal-pos { background: var(--pos-dim); }
.tn-cal .cal-pos-13 { background: rgba(47, 230, 165, 0.13); }
.tn-cal .cal-pos-20 { background: rgba(47, 230, 165, 0.2); }
.tn-cal .cal-pos-24 { background: rgba(47, 230, 165, 0.24); }
.tn-cal .cal-neg { background: var(--neg-dim); }
.tn-cal .cal-neg-13 { background: rgba(244, 86, 74, 0.13); }
.tn-cal .cal-lbl { color: var(--pos); }
.tn-cal .cal-lbl-neg { color: var(--neg); }

/* ── Phone frames (real app screenshots) ── */
.phone {
  position: relative;
  width: 300px;
  height: 624px; /* explicit — aspect-ratio fallback for old Safari */
  aspect-ratio: 300 / 624;
  background: linear-gradient(155deg, #191b22, #0b0c12 60%);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06), 0 30px 60px -18px rgba(0, 0, 0, 0.7), 0 8px 20px rgba(0, 0, 0, 0.4);
}
.phone-rot-r { transform: rotate(1.6deg); }
.phone-rot-l { transform: rotate(-1.6deg); }
.phone-screen {
  position: relative;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-base-2), var(--bg-base));
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 20;
}
.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px 4px;
  height: 34px;
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-96);
}
.phone-status-icons { display: flex; gap: 5px; align-items: center; opacity: 0.92; }
.phone-home { height: 24px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.phone-home span { width: 110px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.55); }

/* ── Tax band ── */
.tax-band {
  position: relative;
  overflow: clip;
  margin-top: 130px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--bg-band-top) 0%, var(--bg-base) 100%);
}
.tax-band .container { padding-top: 88px; padding-bottom: 120px; }
.compliance-note {
  margin-top: 30px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-62);
  border-left: 2px solid rgba(242, 193, 78, 0.7);
  padding: 2px 0 2px 16px;
  max-width: 620px;
}

/* ── Receipt scan set piece ── */
.scan-piece {
  position: relative;
  height: 140px;
  max-width: 430px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16161c, #0c0c10);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
}
.scan-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent-soft); }
.scan-corner-tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.scan-corner-br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.scan-receipt {
  width: 88px;
  height: 110px;
  background: linear-gradient(180deg, #f4f2ec, #e8e5da);
  border-radius: 4px;
  transform: rotate(-4deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  padding: 9px 8px;
}
.rl { height: 3px; border-radius: 2px; background: #b9b3a4; margin-bottom: 4px; }
.rl-title { height: 5px; width: 60%; background: #6b6455; }
.rl-40 { width: 40%; }
.rl-75 { width: 75%; margin-bottom: 0; }
.scan-line {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  top: 40%;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: tn-scan 2.6s ease-in-out infinite;
}
.scan-caption {
  position: absolute;
  bottom: 10px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-soft);
}

/* ── Steps ── */
.tn-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.tn-steps-line {
  position: absolute;
  top: 31px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-ring), var(--accent-line-12) 50%, var(--accent-ring));
  pointer-events: none;
}
.tn-steps li { position: relative; text-align: center; }
.step-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 22px;
  color: var(--accent-soft);
  background: linear-gradient(180deg, #17171d, var(--bg-base-2));
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-glow-25);
  margin: 0 auto;
}
.tn-steps h3 { font-size: 20px; font-weight: 700; margin: 22px 0 8px; letter-spacing: -0.015em; }
.tn-steps p { font-size: 15px; color: var(--text-78); line-height: 1.65; }
.tn-steps p strong { color: var(--text-96); }

/* ── Venues marquee ── */
.venues { padding-top: 130px; overflow: hidden; }
.venues .eyebrow { margin-bottom: 22px; }
.marquee-band {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  display: grid;
  gap: 14px;
  mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 7%, black 93%, transparent);
}
.marquee-row { display: flex; gap: 12px; width: max-content; }
.marquee-row span {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-78);
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 22px;
  white-space: nowrap;
}
.marquee-a { animation: tn-marquee 46s linear infinite; }
.marquee-b { animation: tn-marquee 58s linear infinite reverse; }
.marquee-band:hover .marquee-row { animation-play-state: paused; } /* WCAG 2.2.2 pause */
.venue-note { margin-top: 20px; font-size: 14px; color: var(--text-62); max-width: 640px; line-height: 1.6; }

/* ── Security ── */
.tn-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.sec-card {
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sec-card:hover { border-color: var(--border); background: var(--glass-card-hi); }
.sec-tag { font-family: var(--font-mono); font-size: 11px; color: var(--accent-soft); margin-bottom: 14px; }
.sec-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.015em; }
.sec-card p { font-size: 15px; color: var(--text-78); line-height: 1.65; }
.sec-card p em { color: var(--text-96); }

/* ── Access ── */
.access { position: relative; overflow: clip; text-align: center; }
.access-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 100%, rgba(255, 255, 255, 0.16), transparent 65%);
  pointer-events: none;
}
@supports (color: oklch(70% 0.19 290)) {
  .access-glow { background: radial-gradient(ellipse 55% 65% at 50% 100%, rgba(255, 255, 255, 0.16), transparent 65%); }
}
.access-inner { max-width: 900px; margin: 0 auto; padding: 150px var(--gutter) 0; position: relative; }
.access .eyebrow { margin-bottom: 20px; }
.access-h2 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}
.access-lede { max-width: 680px; margin: 0 auto 40px; line-height: 1.7; }

/* ── FAQ ── */
.faq-inner { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--glass-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.faq details[open] { background: var(--glass-card-hi); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 19px 48px 19px 24px;
  list-style: none;
  position: relative;
}
.faq .tn-plus {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  color: var(--accent-soft);
  font-size: 18px;
}
.faq details:not([open]) .tn-plus::after { content: "+"; }
.faq details[open] .tn-plus::after { content: "–"; }
.faq details p { padding: 0 24px 20px; font-size: 15px; color: var(--text-78); line-height: 1.65; }

/* ── Footer ── */
.footer {
  max-width: var(--max-w);
  margin: 110px auto 0;
  padding: 0 var(--gutter) 64px;
  text-align: center;
}
.eof {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 40px;
}
.hairline-flex { flex: 1; height: 1px; background: var(--hairline); }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; margin-bottom: 16px; }
.footer-disclaimer { font-size: 13px; color: var(--text-62); max-width: 560px; margin: 0 auto 18px; line-height: 1.6; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--text-78); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text-96); }
.footer-fine { font-size: 12.5px; color: var(--text-44); }
.footer-fine a { color: inherit; }

/* ── Legal pages (privacy.html / terms.html) ── */
.legal { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: -0.03em; }
.legal .updated { font-size: 13px; color: var(--text-46); margin-bottom: 30px; font-family: var(--font-mono); }
.legal h2 { font-size: 20px; margin: 30px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text-78); font-size: 15px; margin-bottom: 12px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-soft); }

/* ── Focus ── */
.btn:focus-visible, a:focus-visible, .faq summary:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

/* ── Responsive ── */
@media (max-width: 1020px) {
  .tn-split, .tn-split2 { grid-template-columns: 1fr; }
  .tn-split-phone { position: static; justify-content: center; order: 5; }
}
@media (max-width: 720px) {
  .tn-grid2, .tn-steps { grid-template-columns: 1fr; }
  .tn-steps-line { display: none; }
  .form-row { flex-direction: column; }
  .waitlist-form input[type="email"] { flex: 0 0 auto; }
  .waitlist-form input[type="email"], .waitlist-form select, .form-row .btn { width: 100%; }
  .tn-cal { display: none; }
}

/* ════════════════════════════════════════════════════════════════════
   ONYX — flat near-black, monochrome white accent, NO shine (2026-07-13)
   Matches the TradeCowboy app. Overrides the purple/aurora/glass tokens
   above (last :root wins). Depth = flat lightness steps + hairlines only.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --bg-base: #0A0A0C;
  --bg-base-2: #0E0E11;
  --bg-band-top: #08080A;
  --glass-card: #111114;
  --glass-card-hi: #18181C;
  --jcard-bg: #111114;
  /* Accent → monochrome WHITE (no purple); glows off; grads flattened */
  --accent: #FFFFFF;
  --accent-soft: #FFFFFF;
  --accent-deep: #E7E7EC;
  --accent-line: rgba(255, 255, 255, 0.55);
  --accent-dim: rgba(255, 255, 255, 0.10);
  --accent-glow: transparent;
  --accent-ring: rgba(255, 255, 255, 0.45);
  --accent-stroke: rgba(255, 255, 255, 0.20);
  --accent-idx: rgba(255, 255, 255, 0.70);
  --accent-grad: #F7F7F8;
  --accent-text-grad: linear-gradient(#FFFFFF, #FFFFFF);
  --accent-pill-line: rgba(255, 255, 255, 0.30);
  --accent-glow-25: transparent;
  --accent-line-12: rgba(255, 255, 255, 0.10);
  /* Semantic — desaturated onyx (only colour left) */
  --pos: #34D399;  --pos-dim: rgba(52, 211, 153, 0.13);  --pos-line: rgba(52, 211, 153, 0.3);  --pos-stroke: rgba(52, 211, 153, 0.22);
  --neg: #F0655A;  --neg-dim: rgba(240, 101, 90, 0.13);  --neg-stroke: rgba(240, 101, 90, 0.22);
  --warn: #E3B25C;
  --hairline: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-hover: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
/* Kill the aurora; white CTA. The access-glow is kept, recoloured white. */
.aurora { display: none !important; }
.btn-primary { background: #F7F7F8; color: #0A0A0C; box-shadow: none; }
.btn-primary:hover { background: #FFFFFF; opacity: 0.9; }

/* ════════════════════════════════════════════════════════════════════
   HERO — Concept C: hover slide-out stage (2026-07-14)
   Replaces the old .hero. The nav becomes a reveal-on-scroll header.
   Every device-mock rule is scoped under .tc-stage so it cannot collide
   with the journal/tax sections' own .phone / .jrow / etc.
   NB: the white glow under the devices (.tc-slide-inner::after) is a
   deliberate exception to the Onyx "no shine" rule — under review.
   ════════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  max-width: none; margin: 0;
  padding: 14px max(var(--gutter), calc((100% - var(--max-w)) / 2));
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav.show { transform: none; opacity: 1; }

.tc-stage {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 24px 80px;
}
.tc-lockup { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.tc-hat { width: clamp(92px, 11vw, 148px); height: auto; display: block; margin-bottom: 26px; }
.tc-lockup h1 { font-size: clamp(40px, 4.6vw, 66px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 0; }
.tc-slogan { font-family: var(--font-mono); font-size: clamp(12.5px, 1.5vw, 15.5px); letter-spacing: 0.02em; color: var(--text-62); margin-top: 20px; }
.tc-slogan b { color: var(--text-78); font-weight: 500; }
.tc-lockup .waitlist-form { margin-top: 34px; }
.chips { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.chips li { font-size: 13.5px; color: var(--text-78); background: var(--glass-card); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 16px; }
.tc-chips { justify-content: center; max-width: 520px; margin-top: 26px; }

.tc-slide { position: absolute; top: 50%; z-index: 2; transition: transform 0.62s cubic-bezier(0.22, 0.9, 0.26, 1); }
.tc-slide-left { left: 0; width: 440px; transform: translate(calc(-100% + 58px), -50%); }
.tc-slide-right { right: 0; width: 272px; transform: translate(calc(100% - 58px), -50%); }
.tc-stage.reveal .tc-slide-left { transform: translate(var(--rvx-l, 300px), -50%); }
.tc-stage.reveal .tc-slide-right { transform: translate(var(--rvx-r, -380px), -50%); }
.tc-slide-inner { position: relative; }
.tc-peek {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; pointer-events: none;
  color: var(--text-44); font-family: var(--font-mono); font-size: 30px; line-height: 1; transition: opacity 0.35s ease;
}
.tc-peek-left { left: 22px; } .tc-peek-right { right: 22px; }
.tc-stage.reveal .tc-peek { opacity: 0; }
@keyframes tc-wiggleL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(9px); } }
@keyframes tc-wiggleR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-9px); } }
@keyframes tc-wigArrowL { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(5px); } }
@keyframes tc-wigArrowR { 0%, 100% { transform: translateY(-50%) translateX(0); } 50% { transform: translateY(-50%) translateX(-5px); } }
.tc-stage:not(.reveal) .tc-slide-left .tc-slide-inner { animation: tc-wiggleL 3.4s ease-in-out infinite; }
.tc-stage:not(.reveal) .tc-slide-right .tc-slide-inner { animation: tc-wiggleR 3.4s ease-in-out infinite; }
.tc-stage:not(.reveal) .tc-peek-left { animation: tc-wigArrowL 3.4s ease-in-out infinite; }
.tc-stage:not(.reveal) .tc-peek-right { animation: tc-wigArrowR 3.4s ease-in-out infinite; }

/* desktop app mock */
.tc-stage .desk { width: 100%; max-width: 440px; border-radius: 15px; border: 1px solid var(--border); background: var(--bg-base-2); overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.tc-stage .desk-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-bottom: 1px solid var(--hairline); background: var(--glass-card); }
.tc-stage .desk-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.tc-stage .desk-bar .title { font-family: var(--font-mono); font-size: 11px; color: var(--text-62); margin-left: 6px; }
.tc-stage .desk-bar .sync { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--pos); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); padding: 3px 9px; border-radius: 999px; }
.tc-stage .desk-bar .sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--pos); animation: tc-pulse 2s ease-in-out infinite; }
@keyframes tc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.tc-stage .desk-body { display: grid; grid-template-columns: 120px 1fr; }
.tc-stage .desk-rail { border-right: 1px solid var(--hairline); padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.tc-stage .desk-rail a { font-size: 12.5px; color: var(--text-62); padding: 8px 10px; border-radius: 8px; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.tc-stage .desk-rail a .gd { width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.tc-stage .desk-rail a.act { background: var(--glass-card-hi); color: var(--text-96); font-weight: 500; }
.tc-stage .desk-rail a.act .gd { background: var(--text-96); }
.tc-stage .desk-main { padding: 16px 18px; }
.tc-stage .jcard { border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass-card); padding: 14px 15px; }
.tc-stage .jhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; }
.tc-stage .jhead .gt { color: var(--text-44); } .tc-stage .jhead .tag { color: var(--text-78); font-weight: 600; }
.tc-stage .jhead .sym { color: var(--text-96); font-weight: 700; } .tc-stage .jhead .venue { color: var(--text-44); font-size: 11px; }
.tc-stage .jhead .lng { font-size: 9.5px; font-weight: 600; color: var(--pos); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 999px; padding: 2px 7px; }
.tc-stage .jrows { margin-top: 12px; display: grid; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; }
.tc-stage .jrow { display: flex; justify-content: space-between; align-items: baseline; }
.tc-stage .jrow .k { color: var(--text-44); } .tc-stage .jrow .dts { flex: 1; margin: 0 9px; border-bottom: 1px dotted rgba(255, 255, 255, 0.12); }
.tc-stage .jrow .v { color: rgba(255, 255, 255, 0.86); } .tc-stage .jrow .v.pos { color: var(--pos); font-weight: 700; }
.tc-stage .jpill { margin-top: 9px; display: inline-block; font-size: 9.5px; font-weight: 600; color: var(--text-78); background: var(--glass-card-hi); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.tc-stage .jwhy { margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--hairline); font-size: 12.5px; font-style: italic; color: var(--text-78); min-height: 34px; font-family: var(--font-sans); }
.tc-stage .cursor { display: inline-block; width: 7px; height: 1em; background: var(--text-78); vertical-align: -2px; margin-left: 2px; animation: tc-blink 1.1s steps(1) infinite; }
@keyframes tc-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.tc-stage .desk-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.tc-stage .panel { border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass-card); padding: 12px 13px; }
.tc-stage .plabel { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-44); margin-bottom: 10px; }
.tc-stage .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.tc-stage .cal span { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, 0.045); }
.tc-stage .cal .p1 { background: rgba(52, 211, 153, 0.16); } .tc-stage .cal .p2 { background: rgba(52, 211, 153, 0.3); } .tc-stage .cal .p3 { background: rgba(52, 211, 153, 0.5); }
.tc-stage .cal .n1 { background: rgba(240, 101, 90, 0.16); } .tc-stage .cal .n2 { background: rgba(240, 101, 90, 0.32); }
.tc-stage .eqwrap { height: 74px; }
.tc-stage .eqline { fill: none; stroke: var(--pos); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: tc-draw 2.4s ease forwards; }
@keyframes tc-draw { to { stroke-dashoffset: 0; } }
.tc-stage .eqval { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text-96); }
.tc-stage .eqval small { color: var(--pos); font-size: 11px; margin-left: 6px; }

/* phone mock — fully overrides the sections' .phone frame */
.tc-stage .phone { position: relative; width: 272px; height: 566px; flex: 0 0 auto; aspect-ratio: auto; background: linear-gradient(155deg, #191b22, #0b0c12 60%); border-radius: 42px; padding: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.05), 0 30px 60px -18px rgba(0, 0, 0, 0.6); }
.tc-stage .pscreen { position: relative; height: 100%; background: var(--bg-base-2); border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; }
.tc-stage .island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 74px; height: 21px; background: #000; border-radius: 999px; z-index: 5; }
.tc-stage .pstat { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px 4px; font-size: 12px; font-weight: 600; color: var(--text-96); }
.tc-stage .pstat .bars { display: flex; gap: 3px; align-items: flex-end; height: 11px; }
.tc-stage .pstat .bars i { width: 3px; background: #fff; border-radius: 1px; }
.tc-stage .phead { padding: 6px 18px 12px; border-bottom: 1px solid var(--hairline); }
.tc-stage .phead .ttl { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; color: var(--text-96); }
.tc-stage .phead .au { font-size: 9.5px; font-weight: 600; color: var(--text-78); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.tc-stage .phead .sub { font-size: 11.5px; color: var(--text-44); margin-top: 2px; }
.tc-stage .pbody { flex: 1; padding: 14px 16px; overflow: hidden; }
.tc-stage .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.tc-stage .pcell { background: var(--glass-card); padding: 11px 12px; }
.tc-stage .pcell .l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-44); }
.tc-stage .pcell .n { font-size: 19px; font-weight: 700; margin-top: 3px; letter-spacing: -0.02em; color: var(--text-96); }
.tc-stage .pcell .m { font-size: 10px; color: var(--text-44); margin-top: 1px; }
.tc-stage .prealised { margin-top: 13px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass-card); padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; }
.tc-stage .prealised .l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-44); }
.tc-stage .prealised .l2 { font-size: 12.5px; color: var(--text-78); margin-top: 3px; }
.tc-stage .prealised .amt { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--pos); }
.tc-stage .pexport { margin-top: 13px; width: 100%; background: #F7F7F8; color: #0A0A0C; border: 0; border-radius: 11px; padding: 13px; font-size: 13.5px; font-weight: 600; font-family: var(--font-sans); }
.tc-stage .pdisc { margin-top: 10px; font-size: 9.5px; line-height: 1.5; color: var(--text-44); border-left: 2px solid var(--warn); padding-left: 9px; }
.tc-stage .pnav { display: flex; justify-content: space-around; align-items: center; padding: 9px 8px 13px; border-top: 1px solid var(--hairline); }
.tc-stage .pnav .it { font-size: 8.5px; color: var(--text-44); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tc-stage .pnav .it .gd { width: 15px; height: 15px; border-radius: 4px; border: 1.4px solid var(--text-44); }
.tc-stage .pnav .it.act { color: var(--text-96); } .tc-stage .pnav .it.act .gd { border-color: var(--text-96); }
.tc-stage .pnav .plus { width: 38px; height: 38px; border-radius: 50%; background: #F7F7F8; color: #0A0A0C; font-size: 22px; display: flex; align-items: center; justify-content: center; margin-top: -14px; }

/* mobile: no slide-out — stack & scroll */
@media (max-width: 1024px) {
  .tc-stage { flex-direction: column; min-height: auto; gap: 44px; padding: 100px 20px 60px; overflow: visible; }
  .tc-slide { position: static; transform: none !important; width: 100%; max-width: 480px; animation: none !important; display: flex; justify-content: center; }
  .tc-slide-inner { animation: none !important; transform: none !important; width: 100%; }
  .tc-lockup { order: 1; } .tc-slide-left { order: 2; } .tc-slide-right { order: 3; }
  .tc-peek { display: none; }
  .tc-stage .desk { width: 100%; max-width: 440px; margin: 0 auto; } .tc-stage .phone { margin: 0 auto; }
}

/* ════════════════════════════════════════════════════════════════════
   Onyx in-phone screens for content sections — replace the old purple
   .png screenshots (phone-taxes / phone-review) that clashed with Onyx.
   Reuses the existing .phone frame + .phone-status + .phone-home; only
   the <img> is swapped for .oshot content. Scoped so it can't touch the
   hero stage (.tc-stage) mocks.
   ════════════════════════════════════════════════════════════════════ */
.phone-screen .oshot { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.oshot .ohead { padding: 6px 18px 12px; border-bottom: 1px solid var(--hairline); }
.oshot .ott { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.oshot .obadge { font-size: 9.5px; font-weight: 600; color: var(--text-78); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.oshot .osub { font-size: 11.5px; color: var(--text-44); margin-top: 3px; }
.oshot .obody { flex: 1; padding: 14px 16px; overflow: hidden; }
.oshot .ogrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.oshot .ocell { background: var(--glass-card); padding: 11px 12px; }
.oshot .ocell .l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-44); }
.oshot .ocell .n { font-size: 19px; font-weight: 700; margin-top: 3px; letter-spacing: -0.02em; color: var(--text-96); }
.oshot .ocell .m { font-size: 10px; color: var(--text-44); margin-top: 1px; }
.oshot .orow { margin-top: 13px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass-card); padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; }
.oshot .orow .l { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-44); }
.oshot .orow .l2 { font-size: 12.5px; color: var(--text-78); margin-top: 3px; }
.oshot .orow .amt { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--pos); }
.oshot .obtn { margin-top: 13px; width: 100%; background: #F7F7F8; color: #0A0A0C; border: 0; border-radius: 11px; padding: 13px; font-size: 13.5px; font-weight: 600; font-family: var(--font-sans); }
.oshot .odisc { margin-top: 10px; font-size: 9.5px; line-height: 1.5; color: var(--text-44); border-left: 2px solid var(--warn); padding-left: 9px; }
.oshot .olist { display: flex; flex-direction: column; gap: 9px; }
.oshot .oimp { border: 1px solid var(--hairline); border-radius: 12px; background: var(--glass-card); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.oshot .oimp .iv { flex: 1; min-width: 0; }
.oshot .oimp .ivenue { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-44); }
.oshot .oimp .isym { font-size: 12.5px; font-weight: 600; margin-top: 2px; color: var(--text-96); }
.oshot .oimp .side { font-family: var(--font-mono); font-size: 9px; font-weight: 600; padding: 1px 6px; border-radius: 999px; margin-left: 5px; }
.oshot .oimp .side.long { color: var(--pos); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.oshot .oimp .side.short { color: var(--neg); background: rgba(240, 101, 90, 0.12); border: 1px solid rgba(240, 101, 90, 0.3); }
.oshot .oimp .ipnl { font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; }
.oshot .oimp .iadd { font-size: 10px; font-weight: 600; color: #0A0A0C; background: #F7F7F8; border-radius: 8px; padding: 6px 11px; white-space: nowrap; }
.oshot .pos { color: var(--pos); } .oshot .neg { color: var(--neg); }
.oshot .onav { display: flex; justify-content: space-around; align-items: center; padding: 9px 8px 6px; border-top: 1px solid var(--hairline); }
.oshot .onav .it { font-size: 8.5px; color: var(--text-44); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.oshot .onav .it .gd { width: 15px; height: 15px; border-radius: 4px; border: 1.4px solid var(--text-44); }
.oshot .onav .it.act { color: var(--text-96); } .oshot .onav .it.act .gd { border-color: var(--text-96); }
.oshot .onav .plus { width: 34px; height: 34px; border-radius: 50%; background: #F7F7F8; color: #0A0A0C; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.oshot .onav .ticon, .tc-stage .pnav .ticon { width: 19px; height: 19px; display: block; }

/* Centre the How-it-works + Local-first section headers (grids stay left) */
#how .container, #security .container { text-align: center; }
#security .h2-max { margin-left: auto; margin-right: auto; }
#security .tn-grid2 { text-align: left; }
.venues .eyebrow { text-align: center; }
.venue-note { text-align: center; margin-left: auto; margin-right: auto; }
