/* ==========================================================================
   Long/Short Terminal - landing page  [V2 "Tearsheet" restyle]
   Institutional research-note / quant-terminal look. Blueprint-grid texture,
   solid crisp type (no gradient fills), squared precise geometry, editorial
   index numerals, green used strictly as a FUNCTIONAL accent.
   Zero grey text (white / near-white only). Dark scrollbars. Self-hosted fonts.
   ========================================================================== */

/* ---- Self-hosted faces --------------------------------------------------- */
@font-face { font-family:"Geist"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-sans.woff2") format("woff2"); }
@font-face { font-family:"Geist Mono"; font-style:normal; font-weight:100 900; font-display:swap; src:url("/assets/fonts/geist-mono.woff2") format("woff2"); }

/* ---- Design tokens ------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Surfaces - a hair deeper than V1 for a more paper-ink terminal contrast */
  --bg:      #08080b;
  --bg-1:    #0d0e12;   /* raised surface */
  --bg-2:    #12141a;   /* deeper inset */
  --line:    #1b1d24;   /* hairline */
  --line-2:  #2b2e39;   /* stronger hairline */
  --grid:    rgba(122,142,176,0.05);   /* blueprint grid line (bg only, never text) */

  /* Text (never below these) */
  --head:    #f4f6fa;
  --body:    #c8ccd4;
  --data:    #e6e8ee;

  /* Accent + semantics (functional only) */
  --up:      #2a7a4d;
  --up-br:   #4db380;
  --up-lbl:  #63cf97;   /* brighter green for small mono labels (legibility on near-black) */
  --down:    #8a3333;
  --down-br: #c56a6a;

  --sans: "Geist", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 560ms;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 60px);
  --nav-h: 56px;
  --radius: 3px;        /* squared, precise - the anti-SaaS-card move */
}

/* ---- Reset / base -------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--line-2) var(--bg);
  overflow-x: hidden;
  position: relative;
}
/* Fixed blueprint grid: a fine 40px weave + a heavier 200px ledger rule.
   Extremely subtle (~5% slate), purely atmospheric, sits behind everything. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 200px 200px, 200px 200px, 40px 40px, 40px 40px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 92%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 40%, transparent 92%);
}
body > * { position: relative; z-index: 1; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { color: var(--head); margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.02; font-weight: 760; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.06; font-weight: 720; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.24; font-weight: 640; letter-spacing: -0.02em; }
p  { margin: 0; color: var(--body); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.up   { color: var(--up-br); }
.down { color: var(--down-br); }

/* ---- Shared layout ------------------------------------------------------- */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(76px, 11vh, 150px) var(--gutter);
}
.section--wide { max-width: 1300px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up-lbl);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--up-br); display: inline-block; }
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--body);
  max-width: 64ch;
  line-height: 1.55;
}

/* Editorial index divider between narrative beats: an oversized numeral, the
   label, and a full-width hairline - reads like a printed research-note rule. */
.coord {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-family: var(--mono);
}
.coord span:first-child {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--data);            /* legible near-white numeral (no opacity ghosting) */
  letter-spacing: -0.03em;
  line-height: 1;
}
.coord span:last-child {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--up-lbl);
  white-space: nowrap;
}
.coord::after { content: ""; flex: 1; height: 1px; align-self: center; background: var(--line-2); }

/* ---- Buttons: squared "terminal key" ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 580;
  letter-spacing: -0.01em;
  color: #06120c;
  background: var(--up-br);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { background: #5cc48f; transform: translateY(-1px); box-shadow: 0 6px 22px -12px rgba(77,179,128,0.65); }
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.secondary { color: var(--head); background: transparent; border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-1); border-color: #3a3e4d; box-shadow: none; }

/* ==========================================================================
   Top nav
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0;
  height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(8, 8, 11, 0.74);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  color: var(--head); letter-spacing: 0.02em;
}
/* The .dot slot draws the LST brand mark (owner 17-Oct-26: the mark from the emails, not a
   generic dot). Kept as .dot so every page, incl. the SHA-frozen content/_locked posts, picks it
   up from this one rule. Asset: scripts/build_web_brandmark.py. */
.nav-brand .dot { width: 44px; height: 16px; flex: none; background: url(/assets/brand/lst-mark-nav.png) left center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 13.5px; color: var(--body); transition: color 160ms var(--ease); }
.nav-links a.nav-hide { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.nav-links a:hover { color: var(--head); }
.nav-cta {
  font-size: 13px !important; font-weight: 560;
  color: var(--head) !important;
  padding: 8px 15px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color 160ms var(--ease), background 160ms var(--ease) !important;
}
.nav-cta:hover { border-color: var(--up-br); background: rgba(42,122,77,0.14); }
@media (max-width: 720px) { .nav-links .nav-hide { display: none; } }

/* ==========================================================================
   Scroll-progress rail (right edge)
   ========================================================================== */
.rail {
  position: fixed; top: 50%; right: 20px; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transition: opacity 400ms var(--ease);
  padding-right: 4px;
}
.rail.show { opacity: 1; }
.rail-item {
  display: flex; align-items: center; gap: 11px; justify-content: flex-end;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--body); cursor: pointer; padding: 4px 0;
  transition: color 260ms var(--ease);
}
.rail-item .tick { width: 20px; height: 2px; background: var(--line-2); transition: all 260ms var(--ease); }
.rail-item .txt { width: 68px; text-align: right; text-transform: uppercase; }
.rail-item.active { color: var(--head); }
.rail-item.active .tick { width: 36px; background: var(--up-br); box-shadow: 0 0 8px rgba(77,179,128,0.55); }
.rail-item:hover { color: var(--head); }
@media (max-width: 980px) { .rail { display: none; } }

/* ==========================================================================
   Reveal-on-enter
   ========================================================================== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Terminal chrome (squared, sharper header)
   ========================================================================== */
.term {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-1);
  overflow: hidden;
  box-shadow: 0 30px 90px -50px rgba(0,0,0,0.92);
}
.term-bar {
  display: flex; align-items: center; gap: 14px;
  height: 38px; padding: 0 14px;
  background: #0b0c11;
  border-bottom: 1px solid var(--line-2);
}
.term-dots { display: flex; gap: 7px; }
.term-dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--line-2); display: block; }
.term-dots i:nth-child(1){ background:#5a3b3b; }
.term-dots i:nth-child(2){ background:#5a533b; }
.term-dots i:nth-child(3){ background:#3b5a45; }
.term-tabs { display: flex; gap: 3px; overflow: hidden; }
.term-tab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--body); padding: 5px 11px; border-radius: 2px;
  transition: color 240ms var(--ease), background 240ms var(--ease);
  white-space: nowrap;
}
.term-tab.active { color: var(--head); background: rgba(77,179,128,0.15); box-shadow: inset 0 0 0 1px rgba(77,179,128,0.3); }
.term-status { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--body); display: flex; align-items: center; gap: 7px; }
.term-status .live { width: 6px; height: 6px; border-radius: 1px; background: var(--up-br); box-shadow: 0 0 8px var(--up-br); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.term-body { position: relative; background: var(--bg); }
.term-body img { width: 100%; display: block; }
@media (max-width: 640px) { .term-tab:nth-child(n+4) { display: none; } .term-status { display: none; } }

/* ==========================================================================
   1 - HERO (left-aligned editorial, no gradient fill, no glow blob)
   ========================================================================== */
.hero { position: relative; height: auto; }
/* A restrained top vignette instead of a floating radial blob. */
.hero-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 62vh; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(42,122,77,0.10), transparent 70%);
}
.hero-stage {
  position: static; height: auto;
  display: grid; align-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  max-width: var(--maxw); margin: 0 auto; z-index: 1;
}
.hero-copy { text-align: left; max-width: 900px; margin: 0 0 26px; }
/* Editorial kicker rule above the headline */
.hero-copy::before {
  content: "// LONG-SHORT OPERATING SYSTEM";
  display: block; font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; color: var(--up-lbl); margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
/* Kill the AI-slop gradient text-fill; solid crisp head white. */
.hero h1 .grad { background: none; -webkit-text-fill-color: currentColor; color: var(--head); }
.hero-sub { font-size: clamp(1rem, 1.35vw, 1.2rem); color: var(--body); max-width: 60ch; margin: 0 0 20px; }
.hero-sub .mono { color: var(--up-br); font-size: 0.9em; }
/* Spec strip - a bloomberg-style status line of hard numbers under the sub */
.hero-copy .hero-cta { margin-top: 24px; }
.hero-cta { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
/* Free-tier reassurance line under the hero CTAs (conversion). Uses the body text
   color (never grey) and a subtle muted-green accent lead-in dot via border. */
.hero-freenote { margin: 14px 0 0; font-size: 0.9rem; color: var(--body); opacity: 0.92; }

.hero-term-wrap { max-width: 1000px; width: 100%; margin: 0 auto; position: relative; }
.hero-term .term-body { min-height: 200px; }
.hero-frames { position: relative; }
.hero-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.012); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.hero-frame:first-child { position: relative; }
.hero-frame.on { opacity: 1; transform: none; z-index: 2; }
.hero-frame img { width: 100%; height: 40vh; object-fit: cover; object-position: top center; }

@media (max-width: 720px) {
  .hero { height: auto; }
  .hero-stage { position: static; height: auto; }
  .hero-frame img { height: auto; }
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--body); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .bar { width: 1px; height: 30px; background: linear-gradient(var(--up-br), transparent); animation: drop 2s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top;} 45%{transform:scaleY(1);transform-origin:top;} 55%{transform:scaleY(1);transform-origin:bottom;} 100%{transform:scaleY(0);transform-origin:bottom;} }

/* ==========================================================================
   2 - THE PROBLEM (scatter -> resolve)
   ========================================================================== */
.problem { text-align: center; }
.problem h2 { max-width: 26ch; margin: 0 auto 22px; }
.problem-tag {
  max-width: 42ch; margin: 46px auto 0;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  color: var(--head); font-weight: 560; line-height: 1.4;
}
.chaos { position: relative; height: 400px; max-width: 800px; margin: 50px auto 0; }
.chaos-win {
  position: absolute;
  font-family: var(--mono); font-size: 12px; color: var(--body);
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 9px 13px;
  cursor: pointer; user-select: none;
  opacity: 0;
  transform: translate(var(--dx,0), var(--dy,0)) rotate(var(--rot,0deg)) scale(0.96);
  transition: opacity 700ms var(--ease), transform 800ms var(--ease), filter 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
  transition-delay: calc(var(--i,0) * 55ms);
  white-space: nowrap;
}
.chaos-win::after {
  content: "×";
  position: absolute; top: 50%; left: 50%;
  color: #f04444;
  font-family: var(--sans); font-size: 42px; font-weight: 800; line-height: 1;
  text-shadow: 0 0 14px rgba(240,68,68,0.55);
  opacity: 0; transform: scale(0.7);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease);
  pointer-events: none;
}
.chaos.in .chaos-win { opacity: 0.5; transform: translate(0,0) rotate(0) scale(1); }
.chaos.in .chaos-win.scatter { opacity: 0.4; }
.chaos.in .chaos-win:hover {
  opacity: 1 !important; z-index: 8;
  transform: translate(0,0) rotate(0) scale(1.08);
  filter: none; border-color: currentColor;
  box-shadow: 0 10px 28px -14px currentColor;
}
.chaos.in .chaos-win:hover::after { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.chaos:has(.chaos-core:hover) .chaos-win:not(.dismissed) {
  opacity: 0.16 !important; filter: grayscale(1);
}
.chaos.in .chaos-win.dismissed {
  opacity: 0 !important; pointer-events: none;
  transform: translate(var(--dismiss-x, 80px), var(--dismiss-y, 460px)) rotate(var(--dismiss-rot, 28deg)) scale(0.22) !important;
  transition-delay: 0ms;
}
.chaos.in .chaos-win.dismissed::after { opacity: 0; }
.chaos.in .chaos-win.vanished { display: none; }
.chaos-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.9); opacity: 0;
  background: var(--bg-1); border: 1px solid var(--up); border-radius: var(--radius);
  padding: 18px 28px;
  display: block; color: inherit; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(42,122,77,0.25), 0 24px 70px -30px rgba(42,122,77,0.5);
  transition: opacity 700ms var(--ease) 500ms, transform 700ms var(--ease) 500ms, border-color 180ms var(--ease), box-shadow 180ms var(--ease);
  text-align: center;
}
.chaos.in .chaos-core { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.chaos.in .chaos-core:hover {
  transform: translate(-50%,-50%) scale(1.06);
  border-color: var(--up-br);
  box-shadow: 0 0 0 1px rgba(77,179,128,0.5), 0 0 38px rgba(77,179,128,0.34), 0 24px 70px -30px rgba(42,122,77,0.7);
}
.chaos-core .t { font-family: var(--mono); font-size: 13px; color: var(--head); letter-spacing: 0.08em; font-weight: 600; }
.chaos-core .s { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--up-lbl); margin-top: 5px; }
@media (max-width: 680px) {
  .chaos { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .chaos-win { position: static !important; transform: none !important; opacity: 0.5 !important; transition-delay: 0ms !important; }
  .chaos.in .chaos-win, .chaos.in .chaos-win.scatter { opacity: 0.5 !important; }
  .chaos.in .chaos-win:hover { opacity: 1 !important; transform: scale(1.06); }
  .chaos:has(.chaos-core:hover) .chaos-win:not(.dismissed) { opacity: 0.16 !important; filter: grayscale(1); }
  .chaos.in .chaos-win.dismissed { transform: translateY(90px) rotate(20deg) scale(0.22) !important; }
  .chaos-core { position: static; transform: none !important; order: 99; width: 100%; margin-top: 18px; }
  .chaos.in .chaos-core { transform: none !important; }
}

/* ==========================================================================
   3 - PRODUCT SHOWCASE (alternating rows)
   ========================================================================== */
.showcase { display: grid; gap: clamp(70px, 11vh, 140px); }
.show-row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.show-row.flip .show-text { order: 2; }
.portfolio-showcase { grid-template-columns: 1fr; gap: 28px; align-items: start; }
.portfolio-showcase .show-text { max-width: 760px; }
.portfolio-showcase .show-media, .portfolio-showcase .term { width: 100%; }
.show-text .num { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--up-lbl); letter-spacing: 0.12em; }
.show-text h3 { margin: 12px 0 12px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 680; }
.show-text p { color: var(--body); font-size: 15.5px; }
.show-text .pts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.show-text .pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.show-text .pts li::before { content: "+"; color: var(--up-br); font-family: var(--mono); font-weight: 700; }
.show-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--up-lbl);
  background: rgba(42,122,77,0.12);
  border: 1px solid rgba(42,122,77,0.34); border-radius: var(--radius);
  padding: 4px 10px; margin-top: 16px;
}
@media (max-width: 860px) {
  .show-row, .show-row.flip { grid-template-columns: 1fr; }
  .show-row.flip .show-text { order: 0; }
}

/* ==========================================================================
   5 - FEATURE 2x2 (squared, top-accent on hover)
   ========================================================================== */
.feats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 46px; }
.fcard {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; overflow: hidden;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.fcard::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--up-br); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms var(--ease);
}
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fcard:hover::before { transform: scaleX(1); }
.fcard .ic { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--up-lbl); letter-spacing: 0.1em; margin-bottom: 12px; }
.fcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fcard p { font-size: 14px; color: var(--body); }
.fcard .thumb { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
/* Zoom-crop: dense dashboard shots are shown at 180% anchored top-left and clipped
   to the 16:10 window, so the content is legible at thumbnail size instead of
   shrinking a whole page into an illegible mush. */
.fcard .thumb img { width: 180%; height: auto; max-width: none; display: block; }
@media (max-width: 720px) { .feats-grid { grid-template-columns: 1fr; } }

/* Inline "NEW" pill for a freshly shipped showcase row */
.num-new {
  display: inline-block; margin-left: 9px; vertical-align: 1px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: #06120c; background: var(--up-br);
  padding: 2px 7px; border-radius: 2px;
}

/* Full-width feature card (spans the 2x2 grid) - insider activity highlight */
.fcard.wide {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.fcard.wide .fcard-copy h3 { font-size: 1.3rem; }
.fcard.wide .pts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.fcard.wide .pts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.fcard.wide .pts li::before { content: "+"; color: var(--up-br); font-family: var(--mono); font-weight: 700; }

/* Insider activity mock (SEC Form 4 buys & sells) */
.ins-mock {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); overflow: hidden; font-family: var(--mono);
}
.ins-mock .ins-head {
  display: grid; grid-template-columns: 62px 1fr 78px 96px 70px;
  gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.08em; color: var(--up-lbl); background: var(--bg-1);
}
.ins-mock .ins-r {
  display: grid; grid-template-columns: 62px 1fr 78px 96px 70px;
  gap: 10px; padding: 9px 14px; align-items: center; font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.ins-mock .ins-r:last-child { border-bottom: none; }
.ins-mock .ins-r:nth-child(even) { background: rgba(255,255,255,0.015); }
.ins-mock .sym { font-weight: 700; color: var(--head); }
.ins-mock .role { color: var(--body); }
.ins-mock .num { text-align: right; color: var(--data); }
.ins-mock .when { text-align: right; color: var(--data); }
.ins-mock .act { font-weight: 700; letter-spacing: 0.05em; }
.ins-mock .act.buy { color: var(--up-lbl); }
.ins-mock .act.sell { color: var(--down-br); }
@media (max-width: 720px) {
  .fcard.wide { grid-template-columns: 1fr; }
  .ins-mock .ins-head, .ins-mock .ins-r { grid-template-columns: 50px 1fr 62px 78px; }
  .ins-mock .role { display: none; }
}

/* ==========================================================================
   6 - PRICING (squared cards; Pro = solid green top rule, not a glow)
   ========================================================================== */
.pricing { text-align: center; }
.pricing h2 { margin-bottom: 14px; }
.pricing .lead { margin: 0 auto 8px; }
.price-toggle-note { font-family: var(--mono); font-size: 12px; color: var(--body); letter-spacing: 0.06em; margin-bottom: 40px; }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; align-items: stretch; max-width: 840px; margin: 0 auto; }
.price-card {
  position: relative;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.price-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.price-card.pro {
  border-color: var(--line-2);
  background: var(--bg-1);
  box-shadow: inset 0 2px 0 0 var(--up-br), 0 24px 70px -50px rgba(42,122,77,0.6);
}
.price-badge {
  position: absolute; top: -10px; left: 26px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #06120c; background: var(--up-br);
  padding: 4px 11px; border-radius: 2px; font-weight: 600;
}
.price-name { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--data); }
.price-card.pro .price-name { color: var(--up-lbl); }
.price-tag { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; }
.price-tag .amt { font-size: 2.7rem; font-weight: 720; color: var(--head); letter-spacing: -0.04em; }
.price-tag .per { font-family: var(--mono); font-size: 13px; color: var(--body); }
.price-desc { font-size: 13.5px; color: var(--body); min-height: 40px; margin-bottom: 20px; }
.price-feats { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body); }
.price-feats li::before { content: "\2713"; color: var(--up-br); font-family: var(--mono); font-weight: 700; }
.price-feats li.off { text-decoration: line-through; text-decoration-color: var(--line-2); }
.price-feats li.off::before { content: "\2013"; color: var(--line-2); text-decoration: none; }
.price-why { font-size: 12.5px; line-height: 1.5; color: var(--body); border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 22px; }
.price-why b { color: var(--data); font-weight: 600; }
.price-card .btn { width: 100%; justify-content: center; }
.price-card:not(.pro) .btn { color: var(--head); background: transparent; border-color: var(--line-2); }
.price-card:not(.pro) .btn:hover { background: var(--bg-2); border-color: var(--up-br); box-shadow: none; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }

/* ==========================================================================
   7 - FINAL CTA + footer
   ========================================================================== */
.final { text-align: center; }
.final h2 { max-width: 22ch; margin: 0 auto 22px; }
.final .lead { margin: 0 auto 32px; }
.final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.video {
  position: relative; max-width: 900px; margin: 60px auto 0;
  aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; background: #000;
  box-shadow: 0 30px 90px -60px rgba(0,0,0,0.9);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.footer { border-top: 1px solid var(--line-2); margin-top: 40px; }
.footer-in { max-width: var(--maxw); margin: 0 auto; padding: 34px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .nav-brand { font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12.5px; }
.footer-links a { color: var(--body); transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--head); }
.footer-copy { font-family: var(--mono); font-size: 11.5px; color: var(--body); }
.footer-disclaimer { flex-basis: 100%; margin-top: 6px; font-size: 11px; line-height: 1.55; color: var(--body); }
.footer-disclaimer a { color: var(--up-br); }

.portfolio-term .term-embed { height: 1100px; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero { height: auto !important; }
  .hero-stage { position: static !important; height: auto !important; }
  .hero-frame { position: relative !important; opacity: 1 !important; transform: none !important; }
  .hero-frame:nth-child(n+2) { display: none; }
  .chaos-win { opacity: 1 !important; transform: none !important; }
  .chaos-core { opacity: 1 !important; transform: translate(-50%,-50%) !important; }
  .term-status .live, .scroll-hint .bar { animation: none !important; }
  .lightbox { transition: none !important; }
}

/* ==========================================================================
   Click-to-enlarge lightbox
   ========================================================================== */
.term-body img, .thumb img { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(3, 3, 5, 0.93); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
  cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.22s var(--ease); }
.lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.98); transition: transform 0.22s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; line-height: 1; color: var(--head);
  background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius);
  cursor: pointer; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.lightbox-close:hover { border-color: var(--head); background: var(--line); }

/* ==========================================================================
   Compare-plans deep link
   ========================================================================== */
.compare-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 34px auto 0;
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--up-lbl);
  transition: gap 200ms var(--ease), color 200ms var(--ease);
}
.compare-link:hover { color: #7fdcaa; gap: 12px; }
.compare-link .arrow { transition: transform 220ms var(--ease); }
.compare-link:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   LEGAL PAGES (/privacy.html, /terms.html) - reuses landing tokens
   (restored 2026-08-29: the Tearsheet restyle in 85e620c7d8 dropped this block,
   leaving privacy/terms unstyled -- Polishing "Business/pages" item 4.)
   ========================================================================== */
.legal {
  max-width: 780px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 84px)) var(--gutter) clamp(60px, 10vh, 120px);
}
.legal-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 12px; }
.legal-head .updated { font-family: var(--mono); font-size: 12.5px; color: var(--body); letter-spacing: 0.03em; }
.legal-note {
  margin: 22px 0 8px;
  background: var(--bg-1); border: 1px solid var(--line-2); border-left: 2px solid var(--up);
  border-radius: 9px; padding: 16px 18px;
  font-size: 14px; color: var(--body);
}
.legal-note strong { color: var(--head); font-weight: 600; }

/* imprint / operator block */
.legal-imprint {
  margin: 22px 0 8px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 9px; padding: 16px 18px;
  font-size: 14px; color: var(--body);
}
.legal-imprint .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body); }
.legal-imprint .v { color: var(--head); font-weight: 500; margin: 2px 0 12px; }
.legal-imprint .v:last-child { margin-bottom: 0; }
.legal-imprint .fill { color: var(--up-br); }

/* table of contents */
.legal-toc {
  margin: 26px 0 40px;
  columns: 2; column-gap: 34px;
  font-family: var(--mono); font-size: 13px;
}
.legal-toc a { color: var(--body); display: block; padding: 4px 0; transition: color 150ms var(--ease); break-inside: avoid; }
.legal-toc a:hover { color: var(--up-br); }
.legal-toc a .n { color: var(--up-br); margin-right: 8px; }
@media (max-width: 560px) { .legal-toc { columns: 1; } }

.legal section { scroll-margin-top: calc(var(--nav-h) + 20px); margin-bottom: 34px; }
.legal h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal h2 .n { font-family: var(--mono); font-size: 0.72em; color: var(--up-br); }
.legal h3 { font-size: 1.05rem; color: var(--head); margin: 20px 0 8px; }
.legal p { color: var(--body); margin-bottom: 12px; line-height: 1.7; }
.legal a.inl { color: var(--up-br); text-decoration: underline; text-underline-offset: 2px; }
.legal a.inl:hover { color: #5cc48f; }
.legal ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.legal ul li { position: relative; padding-left: 20px; color: var(--body); line-height: 1.6; }
.legal ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--up-br); font-family: var(--mono); }
.legal strong { color: var(--head); font-weight: 600; }

/* subprocessor table */
.legal-tbl-wrap { overflow-x: auto; margin: 8px 0 16px; scrollbar-color: var(--line-2) var(--bg); }
.legal-tbl { width: 100%; min-width: 520px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.legal-tbl th, .legal-tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-tbl th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); background: var(--bg-1); }
.legal-tbl td { color: var(--body); }
.legal-tbl td strong { color: var(--head); }

/* ==========================================================================
   PLANS & PRICING PAGE (/pricing.html, was /compare.html) - reuses landing tokens
   (restored 2026-08-29: also dropped by the Tearsheet restyle 85e620c7d8,
   which left the compare table as an unstyled squished grid on mobile.)
   ========================================================================== */
.cmp-hero {
  max-width: 900px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(48px, 9vh, 96px)) var(--gutter) clamp(20px, 5vh, 48px);
  text-align: center;
}
.cmp-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 18px; }
.cmp-hero .lead { margin: 0 auto 26px; }
.cmp-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* -- data-breadth band -- */
/* The compare sections no longer carry the // 00 coordinate dividers (owner 17-Oct-26), so the
   section padding alone separates them: tighter than the landing's, and the free block's
   button sits under its (left-aligned) text instead of floating centered. */
.cmp-free { padding-top: clamp(40px, 7vh, 90px); padding-bottom: clamp(30px, 5vh, 60px); }
.cmp-free .lead { margin-bottom: 22px; }
.cmp-free .cmp-actions { justify-content: flex-start; }
.cmp-breadth { text-align: center; padding-top: clamp(40px, 7vh, 90px); }
.cmp-breadth h2 { max-width: 24ch; margin: 0 auto 16px; }
.cmp-breadth .lead { margin: 0 auto; }
.stat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 42px;
}
.stat {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 18px; text-align: left;
}
.stat .v { font-size: 1.5rem; color: var(--head); font-weight: 600; letter-spacing: -0.02em; }
.stat .k { font-size: 13px; color: var(--body); margin-top: 6px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } }

/* -- the feature matrix -- */
.cmp-matrix-wrap { padding-top: clamp(30px, 5vh, 60px); }
.cmp-scroll {
  overflow-x: auto;
  scrollbar-color: var(--line-2) var(--bg);
}
.cmp-scroll::-webkit-scrollbar { height: 10px; }
.cmp-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.cmp-scroll::-webkit-scrollbar-track { background: var(--bg); }

.cmp {
  width: 100%; min-width: 720px;
  border-collapse: separate; border-spacing: 0;
  font-size: 14px;
}
.cmp th, .cmp td { text-align: left; vertical-align: middle; }

/* sticky plan header row (offset by the fixed nav height) */
.cmp thead th {
  position: sticky; top: var(--nav-h); z-index: 3;
  background: #0a0a0e;
  padding: 18px 16px 20px;
  vertical-align: bottom;
  box-shadow: 0 1px 0 var(--line-2);
}
.cmp thead th.cmp-feat { font-family: var(--mono); font-size: 12px; color: var(--body); letter-spacing: 0.06em; }
.cmp-plan { text-align: center !important; }
.cmp-plan .pn { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--head); }
.cmp-plan .pp { display: block; font-size: 13px; color: var(--body); margin: 4px 0 2px; }
.cmp-plan .pp-annual { display: block; font-size: 11px; color: var(--up-lbl); letter-spacing: 0.02em; margin: 0 0 12px; }
.cmp-plan .badge {
  display: inline-block; margin-bottom: 8px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #06120c; background: var(--up-br);
  padding: 3px 9px; border-radius: 20px; font-weight: 600;
}
.cmp-plan .pcta {
  display: inline-block;
  font-family: var(--sans); font-size: 12.5px; font-weight: 550;
  color: var(--head);
  border: 1px solid var(--line-2); border-radius: 7px;
  padding: 7px 14px;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.cmp-plan .pcta:hover { border-color: var(--up-br); background: rgba(42,122,77,0.14); }
.cmp-plan .pcta.pro { color: #06120c; background: var(--up-br); border-color: transparent; }
.cmp-plan .pcta.pro:hover { background: #5cc48f; }

/* Pro column emphasis (last cell of every row) */
.cmp th:last-child { background: #0c130f; border-left: 1px solid rgba(77,179,128,0.3); border-right: 1px solid rgba(77,179,128,0.3); }
.cmp td:last-child { background: #0b0f0c; border-left: 1px solid rgba(77,179,128,0.22); border-right: 1px solid rgba(77,179,128,0.22); }

/* category divider rows */
.cmp tr.cat td {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--up-br);
  padding: 26px 16px 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg);
}
.cmp tr.cat td:last-child { background: var(--bg); border-left: 0; border-right: 0; }

/* feature + value cells */
.cmp tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line); transition: background 120ms var(--ease); }
.cmp tbody tr:not(.cat):not(.cmp-foot):hover td { background: var(--bg-2); }
.cmp tbody tr:not(.cat):not(.cmp-foot):hover td:last-child { background: #12271c; }
.cmp td.f { color: var(--body); font-weight: 500; max-width: 42ch; }
.cmp td.f .sub { display: block; font-size: 12px; color: var(--body); margin-top: 2px; }
.cmp td.y, .cmp td.n, .cmp td.val, .cmp td.lim { text-align: center; }
.cmp td.y::before { content: "\2713"; color: var(--up-br); font-family: var(--mono); font-weight: 700; font-size: 15px; }
.cmp td.n::before { content: "\2013"; color: var(--line-2); font-family: var(--mono); font-weight: 700; font-size: 15px; }
.cmp td.val { font-family: var(--mono); color: var(--data); font-weight: 500; }
.cmp td.lim {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--data);
}

/* trailing CTA row inside the table */
.cmp tr.cmp-foot td { padding: 22px 16px; border-bottom: 0; text-align: center; }
.cmp tr.cmp-foot .btn { width: 100%; justify-content: center; }
.cmp tr.cmp-foot td:not(:last-child) .btn { color: var(--head); background: transparent; border-color: var(--line-2); }
.cmp tr.cmp-foot td:not(:last-child) .btn:hover { background: var(--bg-2); border-color: var(--up-br); box-shadow: none; }

/* ==========================================================================
   v4 - TESTIMONIALS (social proof; 1-5 cards, auto-fit grid)
   Muted OLED cards; centers gracefully with a single card, flows to a row as
   more land. Zero grey text - all copy on --body/--data/--head tokens.
   ========================================================================== */
.testimonials { text-align: center; }
.testimonials h2 { margin-bottom: 14px; }
.testimonials .lead { margin: 0 auto 40px; }
.tst-grid {
  display: grid; gap: 16px; text-align: left;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 760px; margin: 0 auto;
  justify-content: center;
}
/* With 3+ cards let the grid breathe to the full content width. */
.tst-grid:has(.tst-card:nth-child(3)) { max-width: var(--maxw); }
.tst-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 28px 24px;
  transition: border-color 260ms var(--ease), transform 260ms var(--ease);
}
.tst-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tst-mark {
  font-family: var(--mono); font-size: 46px; line-height: 0.6; color: var(--up-br);
  opacity: 0.55; margin-bottom: 6px; user-select: none;
}
.tst-quote {
  margin: 0 0 20px; padding: 0; border: 0;
  font-size: 16px; line-height: 1.62; color: var(--data); font-weight: 450;
}
.tst-feats { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.tst-chip {
  font-size: 10.5px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
  color: var(--up-lbl); background: rgba(77,179,128,0.10);
  border: 1px solid rgba(77,179,128,0.28); border-radius: 999px; padding: 3px 10px;
}
.tst-who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
.tst-av {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line-2); flex: 0 0 auto; background: var(--bg-2);
}
.tst-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tst-name { color: var(--head); font-weight: 600; font-size: 14.5px; }
.tst-role { color: var(--body); font-size: 12.5px; font-family: var(--mono); letter-spacing: 0.02em; }
@media (max-width: 860px) {
  .tst-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* ==========================================================================
   v4 - BILLING TOGGLE (Monthly / Annual; drives the price cards via landing.js)
   Mirrors the paywall's segmented control, on the shared landing.css tokens.
   ========================================================================== */
.bill-toggle {
  display: inline-flex; gap: 4px; margin: 4px auto 14px; padding: 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2);
}
.bt-opt {
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--body); background: transparent; border: 0; cursor: pointer;
  padding: 7px 18px; border-radius: 999px; transition: background 150ms var(--ease), color 150ms var(--ease);
}
.bt-opt:hover { color: var(--head); }
.bt-opt.is-active { background: var(--up-br); color: #06120c; }
.bt-save { font-size: 11px; font-weight: 700; margin-left: 4px; }
.bt-opt.is-active .bt-save { color: #06120c; }
.bt-opt:not(.is-active) .bt-save { color: var(--up-lbl); }
.price-annual-note {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--up-lbl); margin: 2px 0 2px; min-height: 15px;
}

/* ==========================================================================
   v4 - live terminal embed (ported from v3) + colored chaos plot
   The hero centerpiece is now the REAL interactive quant peer table
   (/demo/quant-peers.html) instead of a static screenshot, and the "problem"
   scatter marks the competing tools we replace in their own brand colors.
   ========================================================================== */
/* Small mono caption beside the active tab (e.g. the peer group name) */
.term-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--head); align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Live embedded terminal component: the REAL dashboard engine rendered inside an
   iframe (see /demo/quant-peers.html). The hero frame is auto-sized to its rendered
   content by landing.js (no inner scrollbar); these heights are the pre-JS / no-JS
   fallback only, so they must comfortably fit the QSR peer table. */
.term-embed { display: block; width: 100%; border: 0; background: var(--bg); height: 640px; }
.hero-term .term-embed { height: 640px; }
.term-embed--tall { height: 760px; }
/* Colored "problem" scatter chips: each competing tool in its own brand hue so the
   chaos reads as "all the paid tools you juggle today". */
.chaos-win.brand { color: var(--brand-c); border-color: var(--brand-c); }
.chaos.in .chaos-win.brand.scatter { opacity: 0.82; }
.chaos-win.c-orange { --brand-c: #e8883c; }
.chaos-win.c-blue   { --brand-c: #4a9edb; }
.chaos-win.c-teal   { --brand-c: #2fb0a0; }
.chaos-win.c-indigo { --brand-c: #7f8cf0; }
.chaos-win.c-amber  { --brand-c: #e0a942; }
.chaos-win.c-green  { --brand-c: #43a373; }
@media (max-width: 640px) {
  .term-label { display: none; }
  /* Fallback only; JS auto-sizes the hero frame to its rendered content. */
  .term-embed, .hero-term .term-embed { height: 640px; }
  .term-embed--tall { height: 700px; }
  .portfolio-term .term-embed { height: 1200px; }
}
