﻿/* ========================================================
   TalkBot v2, Premium redesign layer
   Loaded AFTER styles.css/styles-extras.css/styles-mock.css
   Re-tokens the brand and adds new components + motion.
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ---------- Re-tokens ---------- */
:root,
[data-theme="dark"] {
  --bg:        #08090C;
  --bg-elev:   #0F1116;
  --bg-card:   #14161D;
  --ink:       #F4F2EE;
  --ink-2:     #B8B4AC;
  /* #6F6B62 fails WCAG AA for small text on --bg/--bg-card (3.69-3.75:1,
     needs 4.5:1 - caught by axe-core on .tb-story-eyebrow/.tb-footer h4).
     Swap in the lighter warm-gray already used as the light-theme value
     below: ~5.0-5.5:1 against the dark surfaces here. */
  --ink-3:     #8A867D;
  --line:      rgba(244, 242, 238, 0.08);
  --line-strong: rgba(244, 242, 238, 0.16);
  --grid:      rgba(244, 242, 238, 0.04);
  --code-bg:   #0B0D12;

  /* Brand */
  --coral:    oklch(0.72 0.18 30);   /* #FF6B5C-ish */
  --teal:     oklch(0.82 0.13 195);  /* electric mint */
  --plum:     oklch(0.55 0.18 320);
  --accent:   var(--coral);
  --accent-2: var(--teal);
  --accent-ink: #08090C;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 48px -28px rgba(0,0,0,0.7);
  --shadow-pop:  0 50px 120px -40px rgba(0,0,0,0.85);

  --radius-lg: 22px;
  --radius-md: 14px;
}

[data-theme="light"] {
  --bg:        #F6F4EE;
  --bg-elev:   #EFEDE5;
  --bg-card:   #FFFFFF;
  --ink:       #0B0D12;
  --ink-2:     #4A4A45;
  /* Swapped with the dark-theme value above: this darker warm-gray clears
     4.5:1 on light surfaces, where #8A867D previously did not. */
  --ink-3:     #6F6B62;
  --line:      rgba(11, 13, 18, 0.08);
  --line-strong: rgba(11, 13, 18, 0.16);
  --grid:      rgba(11, 13, 18, 0.05);
  --code-bg:   #F0EEE7;
  --accent-ink: #0B0D12;
}

/* Body type */
body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
}

.serif { font-family: 'Source Serif 4', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.015em; }
.mono  { font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace; }

.container { max-width: 1280px; padding: 0 28px; }
@media (min-width: 1100px) { .container { padding: 0 48px; } }
@media (max-width: 720px)  { .container { padding: 0 20px; } }

/* ============================================================
   NAV, premium glass nav with full menu
   ============================================================ */
.nav {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: 56px; }

#nav-root .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.tb-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Source Serif 4', serif;
  font-size: 22px; letter-spacing: -0.02em;
  color: var(--ink);
}
.tb-logo .tb-logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: inline-block; flex: 0 0 32px;
  background-image: url('assets/logo-mark.svg');
  background-size: cover;
  background-position: center;
}
@keyframes tb-blink { 0%,100% { opacity:1; } 50% { opacity:0.45; } }
.tb-logo b { font-weight: 500; }
.tb-logo i { font-style: italic; background: linear-gradient(120deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links {
  gap: 6px; font-size: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}
.nav-links a {
  padding: 7px 14px; border-radius: 999px;
  color: var(--ink-2); transition: color .2s, background .2s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav-links a[aria-current="page"] {
  color: var(--ink); background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* Floating scroll nav-links pill */
.tb-float-links {
  position: fixed; top: 14px; left: 50%; z-index: 200;
  transform: translateX(-50%) translateY(-10px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; align-items: center; gap: 0;
  background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 5px;
  box-shadow: 0 4px 24px -6px rgba(0,0,0,0.5);
}
.tb-float-links.visible {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tb-float-links a {
  padding: 6px 13px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.tb-float-links a:hover { color: var(--ink); background: color-mix(in oklab, var(--ink) 7%, transparent); }
.tb-float-links a[aria-current="page"] {
  color: var(--ink); background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
@media (max-width: 980px) { .tb-float-links { display: none; } }

/* Mobile drawer */
.nav-burger {
  display: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; }
.nav-burger span::before, .nav-burger span::after { content:""; position:absolute; left:0; right:0; height:1.5px; background:currentColor; }
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top:  5px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn:not(.btn-accent) { display: none; }
}

.nav-drawer {
  position: fixed; inset: 0; z-index: 80;
  background: color-mix(in oklab, var(--bg) 90%, black);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
}
.nav-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.nav-drawer .drawer-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 32px; }
.nav-drawer ul { list-style:none; padding:0; margin:0; display:grid; gap: 4px; }
.nav-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 8px; border-bottom: 1px solid var(--line);
  font-family: 'Source Serif 4', serif; font-size: 28px; letter-spacing: -0.015em;
  color: var(--ink);
}
.nav-drawer a span.idx { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); }
.drawer-footer { margin-top: auto; padding-top: 24px; }

/* ============================================================
   HERO, editorial layout
   ============================================================ */
.tb-hero {
  position: relative; padding: 0 0 72px;
  overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line);
}
body.v2 .tb-hero { padding-top: 0 !important; }
.tb-hero::before {
  /* gradient mesh */
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 70%;
  background:
    radial-gradient(50% 60% at 20% 30%, color-mix(in oklab, var(--coral) 35%, transparent) 0%, transparent 60%),
    radial-gradient(45% 55% at 80% 20%, color-mix(in oklab, var(--teal)  28%, transparent) 0%, transparent 60%),
    radial-gradient(70% 60% at 50% 90%, color-mix(in oklab, var(--plum)  22%, transparent) 0%, transparent 60%);
  filter: blur(80px); opacity: 0.85; z-index: -2;
}
.tb-hero::after {
  /* fine grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  z-index: -1; opacity: 0.6;
}

.tb-hero-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 28px; margin-bottom: 20px;
}
.tb-hero-meta .tag {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in oklab, var(--bg-card) 80%, transparent);
  color: var(--ink-2);
}
.tb-hero-meta .tag .dot { background: var(--coral); width:6px; height:6px; border-radius:50%; display:inline-block; margin-right:6px; box-shadow: 0 0 8px var(--coral); }

.tb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) { .tb-hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.tb-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: clamp(48px, 7.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.tb-hero h1 .it {
  font-style: italic; font-weight: 400;
  background: linear-gradient(110deg, var(--coral) 0%, var(--teal) 60%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.tb-hero h1 .stroke {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px var(--ink-2);
  font-style: italic; font-weight: 300;
}

.tb-hero p.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 36px;
}

.tb-hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* Premium buttons */
.tb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, border-color .25s, box-shadow .25s, color .25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.tb-btn:active { transform: translateY(1px); }
.tb-btn .arrow { transition: transform .3s cubic-bezier(.2,.8,.2,1); display:inline-flex; }
.tb-btn:hover .arrow { transform: translateX(4px); }
.tb-btn-primary {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.tb-btn-primary::before {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(110deg, var(--coral), var(--teal));
  transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.tb-btn-primary:hover { color: var(--accent-ink); border-color: transparent; }
.tb-btn-primary:hover::before { transform: translateY(0); }
.tb-btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.tb-btn-ghost:hover { background: var(--bg-elev); border-color: var(--ink-2); }
.tb-btn-accent {
  background: var(--coral); color: var(--accent-ink);
  border-color: var(--coral);
  box-shadow: 0 8px 32px -10px var(--coral), inset 0 1px 0 rgba(255,255,255,0.2);
}
.tb-btn-accent:hover { box-shadow: 0 14px 38px -10px var(--coral), inset 0 1px 0 rgba(255,255,255,0.25); transform: translateY(-1px); }

.tb-hero-trust {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.tb-hero-trust .pill {
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--bg-card) 70%, transparent);
}

/* ---- Right side: animated call orchestration ---- */
.tb-orchestra {
  position: relative;
  aspect-ratio: 5 / 6;
  max-height: 620px;
  margin-inline: auto;
  width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, color-mix(in oklab, var(--coral) 8%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elev) 100%);
  background-color: var(--bg-card);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 50%, color-mix(in oklab, var(--coral) 8%, transparent) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, color-mix(in oklab, white 7%, transparent) 1px, transparent 0);
  background-size: 100% 100%, 28px 28px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  box-shadow:
    var(--shadow-pop),
    0 0 0 1px color-mix(in oklab, var(--coral) 12%, transparent) inset;
}
/* glow halos behind orb */
.tb-orchestra .orb-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
}
.tb-orchestra .orb-glow.g1 {
  width: 40%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--coral) 55%, transparent) 0%, transparent 70%);
  filter: blur(28px);
  animation: orb-pulse 4s ease-in-out infinite;
}
.tb-orchestra .orb-glow.g2 {
  width: 56%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--teal) 30%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  animation: orb-pulse 6s ease-in-out infinite reverse;
}
.tb-orchestra .orb-glow.g3 {
  width: 72%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in oklab, var(--plum) 20%, transparent) 0%, transparent 70%);
  filter: blur(60px);
  animation: orb-pulse 8s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%,100% { opacity: 0.65; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%,-50%) scale(1.08); }
}

.tb-orchestra .orb {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 36%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 32% 28%, color-mix(in oklab, white 22%, var(--coral)), var(--coral) 42%, var(--plum) 78%);
  filter: blur(0.3px);
  box-shadow:
    0 0 0 1px color-mix(in oklab, white 30%, transparent),
    0 0 0 3px color-mix(in oklab, var(--coral) 25%, transparent),
    0 30px 100px -6px color-mix(in oklab, var(--coral) 70%, transparent),
    0 0 60px -5px color-mix(in oklab, var(--coral) 45%, transparent),
    inset 0 0 40px color-mix(in oklab, var(--teal) 35%, transparent),
    inset 0 -20px 40px -10px rgba(0,0,0,0.3);
  z-index: 3;
  animation: orb-breathe 6s ease-in-out infinite;
}
@keyframes orb-breathe {
  0%,100% { transform: translate(-50%, -50%) scale(1); }
  50%     { transform: translate(-50%, -50%) scale(1.04); }
}
.tb-orchestra .orb::before {
  content: ""; position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,0.45), transparent 60%);
  mix-blend-mode: screen;
}
.tb-orchestra .orb-icon {
  width: 82%; height: 82%;
  position: relative; z-index: 2;
  opacity: 0.97;
  filter: drop-shadow(0 0 10px rgba(255,107,92,0.6)) drop-shadow(0 0 20px rgba(63,224,201,0.3));
}
.tb-orchestra .ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.tb-orchestra .ring.r1 {
  width: 52%; aspect-ratio: 1;
  border: 1px solid color-mix(in oklab, var(--coral) 45%, var(--line-strong));
  box-shadow: 0 0 18px -6px color-mix(in oklab, var(--coral) 35%, transparent) inset,
              0 0 18px -6px color-mix(in oklab, var(--coral) 20%, transparent);
  animation: ring-spin 22s linear infinite;
}
.tb-orchestra .ring.r2 {
  width: 70%; aspect-ratio: 1;
  border: 1px dashed color-mix(in oklab, var(--teal) 40%, var(--line));
  box-shadow: 0 0 22px -8px color-mix(in oklab, var(--teal) 25%, transparent) inset;
  animation: ring-spin 36s linear infinite reverse;
}
.tb-orchestra .ring.r3 {
  width: 88%; aspect-ratio: 1;
  border: 1px solid var(--line);
  opacity: 0.5;
  animation: ring-spin 60s linear infinite;
}
/* satellite dots on rings */
.tb-orchestra .ring::before,
.tb-orchestra .ring::after {
  content: "";
  position: absolute; border-radius: 50%;
}
.tb-orchestra .ring.r1::before {
  width: 8px; height: 8px; top: -4px; left: 50%; transform: translateX(-50%);
  background: var(--coral);
  box-shadow: 0 0 10px 2px color-mix(in oklab, var(--coral) 60%, transparent);
}
.tb-orchestra .ring.r1::after {
  width: 6px; height: 6px; bottom: -3px; left: 50%; transform: translateX(-50%);
  background: color-mix(in oklab, var(--coral) 70%, var(--teal));
  box-shadow: 0 0 8px color-mix(in oklab, var(--coral) 50%, transparent);
}
.tb-orchestra .ring.r2::before {
  width: 7px; height: 7px; top: -3.5px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  box-shadow: 0 0 10px 2px color-mix(in oklab, var(--teal) 60%, transparent);
}
@keyframes ring-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.tb-orchestra .node {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: color-mix(in oklab, var(--bg-card) 90%, var(--bg-elev));
  border: 1px solid var(--line-strong);
  padding: 9px 14px; border-radius: 999px;
  font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--ink);
  white-space: nowrap; z-index: 4;
  box-shadow:
    0 12px 32px -10px rgba(0,0,0,0.7),
    0 0 0 1px color-mix(in oklab, white 6%, transparent) inset;
  animation: node-float 6s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.tb-orchestra .node .nd { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.tb-orchestra .node.n1 { top: 17%;  left: 8%;  animation-delay: -1.2s; }
.tb-orchestra .node.n2 { top: 10%; right: 6%; animation-delay: -2.6s; }
.tb-orchestra .node.n3 { top: 50%; right: 2%; animation-delay: -3.8s; }
.tb-orchestra .node.n4 { bottom: 14%; right: 10%; animation-delay: -0.4s; }
.tb-orchestra .node.n5 { bottom: 17%;  left: 14%; animation-delay: -1.8s; }
.tb-orchestra .node.n6 { top: 46%;  left: 2%;  animation-delay: -3s; }
@keyframes node-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}
.tb-orchestra .node.n1 .nd { background: var(--coral); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--coral) 70%, transparent); }
.tb-orchestra .node.n1 { border-color: color-mix(in oklab, var(--coral) 35%, var(--line-strong)); }
.tb-orchestra .node.n2 .nd { background: var(--teal); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--teal) 70%, transparent); }
.tb-orchestra .node.n2 { border-color: color-mix(in oklab, var(--teal) 35%, var(--line-strong)); }
.tb-orchestra .node.n3 .nd { background: var(--plum); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--plum) 70%, transparent); }
.tb-orchestra .node.n3 { border-color: color-mix(in oklab, var(--plum) 35%, var(--line-strong)); }
.tb-orchestra .node.n4 .nd { background: var(--coral); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--coral) 70%, transparent); }
.tb-orchestra .node.n4 { border-color: color-mix(in oklab, var(--coral) 35%, var(--line-strong)); }
.tb-orchestra .node.n5 .nd { background: var(--teal); box-shadow: 0 0 8px 1px color-mix(in oklab, var(--teal) 70%, transparent); }
.tb-orchestra .node.n5 { border-color: color-mix(in oklab, var(--teal) 35%, var(--line-strong)); }
.tb-orchestra .node.n6 .nd { background: #FFD27A; box-shadow: 0 0 8px 1px rgba(255,210,122,0.7); }
.tb-orchestra .node.n6 { border-color: color-mix(in oklab, #FFD27A 35%, var(--line-strong)); }

.tb-orchestra svg.connections {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}
.tb-orchestra .grain {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.4; mix-blend-mode: overlay;
  background-image:
    radial-gradient(ellipse at 20% 80%, color-mix(in oklab, var(--teal) 35%, transparent), transparent 50%),
    radial-gradient(ellipse at 80% 10%, color-mix(in oklab, var(--coral) 35%, transparent), transparent 50%);
}
.tb-orchestra .stage-label {
  position: absolute; top: 18px; left: 18px; right: 18px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase;
  z-index: 5;
}
.tb-orchestra .stage-label .ld {
  width:6px; height:6px; border-radius:50%; background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
  animation: tb-blink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.tb-orchestra .stage-label .sl-spacer { flex: 1; }
.tb-orchestra .stage-label .sl-badge {
  font-size: 9.5px; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--teal) 15%, var(--bg-card));
  border: 1px solid color-mix(in oklab, var(--teal) 35%, var(--line));
  color: var(--teal);
}
/* bottom metrics strip */
.tb-orchestra .orch-metrics {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; align-items: stretch;
  border-top: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  z-index: 5;
}
.tb-orchestra .orch-metric {
  flex: 1; padding: 10px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  border-right: 1px solid var(--line);
  font-family: 'Geist Mono', monospace;
}
.tb-orchestra .orch-metric:last-child { border-right: none; }
.tb-orchestra .orch-metric-val {
  font-size: 14px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.tb-orchestra .orch-metric-val.coral { color: var(--coral); }
.tb-orchestra .orch-metric-val.teal  { color: var(--teal); }
.tb-orchestra .orch-metric-label {
  font-size: 8.5px; color: var(--ink-3);
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
}

/* ============================================================
   MARQUEE, built on
   ============================================================ */
.tb-marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.tb-marquee::before, .tb-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.tb-marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.tb-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.tb-marquee-track {
  display: flex; gap: 48px; align-items: center;
  white-space: nowrap;
  animation: tb-marq 38s linear infinite;
}
.tb-marquee-track > * { flex: 0 0 auto; }
@keyframes tb-marq {
  to { transform: translateX(-50%); }
}
.tb-marquee .item {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}
.tb-marquee .sep {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral);
}

/* ============================================================
   STORY SECTION, bold split with editorial type
   ============================================================ */
.tb-story {
  padding: 120px 0;
  position: relative;
}
.tb-story-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.tb-story-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink-3); }

.tb-story-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .tb-story-grid { grid-template-columns: 1fr; gap: 32px; } }

.tb-display {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  color: var(--ink);
  text-wrap: balance;
}
.tb-display .it { font-style: italic; }
.tb-display .accent { color: var(--coral); font-style: italic; font-weight: 400; }
.tb-display .teal { color: var(--teal); font-style: italic; font-weight: 400; }

.tb-body {
  font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 18px;
  text-wrap: pretty;
}
.tb-body strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   FLOW DIAGRAM, animated pipeline
   ============================================================ */
.tb-flow {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in oklab, var(--coral) 8%, transparent), transparent 50%),
    radial-gradient(ellipse at 100% 100%, color-mix(in oklab, var(--teal) 8%, transparent), transparent 50%),
    var(--bg-card);
  padding: 32px;
  overflow: hidden;
}
.tb-flow-header {
  display:flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px dashed var(--line);
}
.tb-flow-header .title { font-family: 'Source Serif 4', serif; font-size: 20px; letter-spacing: -0.01em; }
.tb-flow-header .meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }

.tb-flow-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
@media (max-width: 720px) { .tb-flow-stages { grid-template-columns: 1fr 1fr; } }

.tb-stage {
  position: relative;
  padding: 18px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tb-stage:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 40px -16px rgba(0,0,0,0.5); }
.tb-stage .ix { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; }
.tb-stage h4 { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 400; font-size: 18px; margin: 8px 0 6px; letter-spacing: -0.015em; }
.tb-stage p { font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.tb-stage .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
  margin-bottom: 10px;
}
.tb-stage:nth-child(2) .dot { background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.tb-stage:nth-child(3) .dot { background: #FFD27A; box-shadow: 0 0 12px #FFD27A; }
.tb-stage:nth-child(4) .dot { background: var(--plum); box-shadow: 0 0 12px var(--plum); }
.tb-stage:nth-child(5) .dot { background: var(--teal); box-shadow: 0 0 12px var(--teal); }

/* animated traveling pulse line at bottom of flow */
.tb-flow-pulse {
  margin-top: 28px;
  height: 2px; border-radius: 2px;
  background: var(--line);
  position: relative; overflow: hidden;
}
.tb-flow-pulse::before {
  content: ""; position: absolute; inset: 0; width: 30%;
  background: linear-gradient(90deg, transparent, var(--coral) 30%, var(--teal) 70%, transparent);
  animation: tb-pulse 3.4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes tb-pulse {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(330%); }
}

/* ============================================================
   FEATURE CARDS, overlapping editorial
   ============================================================ */
.tb-feat-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px;
  margin-top: 32px;
}
.tb-feat {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 28px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.tb-feat:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tb-feat::before {
  content: ""; position: absolute; inset: -1px;
  background: linear-gradient(120deg, transparent 30%, color-mix(in oklab, var(--coral) 30%, transparent), transparent 70%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.tb-feat:hover::before { opacity: 1; }
.tb-feat .ix { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; margin-bottom: 16px; }
.tb-feat h3 { font-family: 'Source Serif 4', serif; font-weight: 400; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 10px; }
.tb-feat h3 .it { font-style: italic; color: var(--coral); }
.tb-feat p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

.tb-feat.span-7 { grid-column: span 7; }
.tb-feat.span-5 { grid-column: span 5; }
.tb-feat.span-6 { grid-column: span 6; }
.tb-feat.span-4 { grid-column: span 4; }
.tb-feat.span-8 { grid-column: span 8; }
.tb-feat.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .tb-feat-grid { grid-template-columns: 1fr; }
  .tb-feat[class*="span-"] { grid-column: 1 / -1; }
}

/* feature media slot */
.tb-feat-media {
  margin-top: 22px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  aspect-ratio: 16/9;
  position: relative;
}
.tb-feat-media.tall { aspect-ratio: 9/16; max-width: 280px; margin-inline: auto; }

/* ============================================================
   WAVEFORM CARD (audio teaser hero)
   ============================================================ */
.tb-wave-card {
  position: relative; padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}
.tb-wave-card .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.tb-wave-card .who {
  display: flex; align-items: center; gap: 12px;
}
.tb-wave-card .who .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  display: grid; place-items: center;
  color: var(--bg); font-family: 'Source Serif 4', serif; font-style: italic;
  font-weight: 500; font-size: 18px;
}
.tb-wave-bars {
  display: flex; align-items: center; gap: 3px; height: 64px;
}
.tb-wave-bars span {
  flex: 1 1 0; min-width: 2px; max-width: 4px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
  border-radius: 2px;
  animation: tb-wb 1.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes tb-wb {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1); }
}

/* ============================================================
   SPLIT SHOWCASE, left panel + right panel
   ============================================================ */
.tb-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-card);
  overflow: hidden;
}
.tb-split > * { padding: 32px; }
.tb-split > * + * { border-left: 1px solid var(--line); }
@media (max-width: 900px) { .tb-split { grid-template-columns: 1fr; } .tb-split > * + * { border-left: none; border-top: 1px solid var(--line); } }

/* ============================================================
   FOOTER, editorial mega
   ============================================================ */
.tb-footer {
  padding: 96px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.tb-footer-mega {
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  font-size: clamp(56px, 12vw, 200px);
  letter-spacing: -0.04em; line-height: 0.9;
  color: var(--ink);
  margin: 0 0 48px;
  text-wrap: balance;
}
.tb-footer-mega .it { font-style: italic; background: linear-gradient(120deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .tb-footer-grid { grid-template-columns: 1fr 1fr; } }
.tb-footer h4 { font-family:'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.tb-footer ul { list-style: none; padding: 0; margin: 0; }
.tb-footer li { padding: 5px 0; color: var(--ink-2); }
.tb-footer li a:hover { color: var(--ink); }
.tb-footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3);
}

/* ============================================================
   CUSTOMIZE FAB, move to LEFT
   ============================================================ */
.cx-fab { left: 24px !important; right: auto !important; bottom: 24px !important; }
/* Auto-collapse the FAB to icon-only on tablet/mobile so it doesn't sit on top of hero CTAs */
@media (max-width: 980px) {
  .cx-fab .cx-fab-label { display: none !important; }
  .cx-fab { left: 14px !important; right: auto !important; bottom: 14px !important; padding: 10px !important; }
}

/* Chatbot launcher (right), align to same baseline as Customize FAB */
.chatbot-launcher,
[data-chatbot-launcher],
.cb-fab {
  right: 24px !important; left: auto !important;
  bottom: 24px !important;
}
@media (max-width: 980px) {
  .cb-fab { right: 14px !important; bottom: 14px !important; }
}

/* ============================================================
   REVEAL utilities (extra)
   Uses html.tb-reveal-ready as a gate so SSR-like initial paint
   shows everything fully visible if JS hasn't loaded yet.
   ============================================================ */
html.tb-reveal-ready .tb-reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
html.tb-reveal-ready .tb-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.tb-reveal-ready .tb-reveal { opacity: 1; transform: none; transition: none; }
}

/* Hide legacy hero so v2 hero takes over */
body.v2 .hero { display: none; }

/* ============================================================
   PAGE HERO, shared chrome for non-home pages
   ============================================================ */
body.v2 .page-hero { display: none; } /* hide legacy page-hero */

.tb-page-hero {
  position: relative; padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.tb-page-hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 60%;
  background:
    radial-gradient(45% 60% at 18% 30%, color-mix(in oklab, var(--coral) 28%, transparent), transparent 60%),
    radial-gradient(40% 55% at 82% 20%, color-mix(in oklab, var(--teal) 22%, transparent), transparent 60%);
  filter: blur(70px); z-index: -2; opacity: 0.85;
}
.tb-page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  z-index: -1; opacity: 0.55;
}
.tb-page-hero h1 {
  font-family: 'Source Serif 4', serif; font-weight: 300;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.0;
  letter-spacing: -0.03em; margin: 24px 0 24px;
  text-wrap: balance; max-width: 18ch;
}
.tb-page-hero h1 .it { font-style: italic; background: linear-gradient(110deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tb-page-hero p.lede { font-size: 18px; color: var(--ink-2); max-width: 56ch; line-height: 1.55; margin: 0 0 28px; }
.tb-ph-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 980px) { .tb-ph-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ============================================================
   SECTION wrapper with editorial padding
   ============================================================ */
.tb-section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.tb-section.alt { background: var(--bg-elev); }

.tb-h2 { font-family: 'Source Serif 4', serif; font-weight: 300; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.tb-h2 .it { font-style: italic; background: linear-gradient(110deg, var(--coral), var(--teal)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tb-eyebrow { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.tb-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink-3); }

/* ============================================================
   PAGE-SPECIFIC HERO VISUALS
   ============================================================ */

/* Platform, architecture stack */
.tb-arch {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong);
  overflow: hidden; padding: 24px;
  box-shadow: var(--shadow-pop);
}
.tb-arch .layer {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 0;
  background: color-mix(in oklab, var(--bg-elev) 90%, transparent);
  border: 1px solid var(--line); border-radius: 10px;
  font-family: 'Geist Mono', monospace; font-size: 10.5px;
  color: var(--ink); letter-spacing: 0.04em;
  position: relative;
  animation: tb-arch-glow 4s ease-in-out infinite;
}
/* nth-child counts both .layer and .conn-line, layers are at odd positions */
.tb-arch .layer:nth-child(3)  { animation-delay: 0.6s; }
.tb-arch .layer:nth-child(5)  { animation-delay: 1.2s; }
.tb-arch .layer:nth-child(7)  { animation-delay: 1.8s; }
.tb-arch .layer:nth-child(9)  { animation-delay: 2.4s; }
.tb-arch .layer:nth-child(11) { animation-delay: 3.0s; }
.tb-arch .layer:nth-child(13) { animation-delay: 3.6s; }
.tb-arch .layer:nth-child(15) { animation-delay: 4.2s; }
.tb-arch .layer:nth-child(17) { animation-delay: 4.8s; }
.tb-arch .layer .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 8px var(--coral); flex-shrink: 0; }
.tb-arch .layer:nth-child(3)  .dot { background: var(--teal);  box-shadow: 0 0 8px var(--teal); }
.tb-arch .layer:nth-child(5)  .dot { background: #FFD27A; box-shadow: 0 0 8px #FFD27A; }
.tb-arch .layer:nth-child(7)  .dot { background: var(--plum);  box-shadow: 0 0 8px var(--plum); }
.tb-arch .layer:nth-child(9)  .dot { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.tb-arch .layer:nth-child(11) .dot { background: var(--teal);  box-shadow: 0 0 8px var(--teal); }
.tb-arch .layer:nth-child(13) .dot { background: #FFD27A; box-shadow: 0 0 8px #FFD27A; }
.tb-arch .layer:nth-child(15) .dot { background: var(--plum);  box-shadow: 0 0 8px var(--plum); }
.tb-arch .layer:nth-child(17) .dot { background: var(--teal);  box-shadow: 0 0 8px var(--teal); animation: tb-dot-pulse 1.4s ease-in-out infinite; }
.tb-arch .layer-terminal { border-color: color-mix(in oklch, var(--teal) 50%, var(--line)) !important; }
.tb-arch .layer .dot.active { animation: tb-dot-pulse 1.4s ease-in-out infinite; }
@keyframes tb-dot-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.5); opacity: 0.7; }
}
.tb-arch .layer .meta { margin-left: auto; color: var(--ink-3); flex-shrink: 0; }
@keyframes tb-arch-glow {
  0%,100% { border-color: var(--line); }
  50%     { border-color: var(--line-strong); }
}
.tb-arch .conn-line {
  margin-left: 16px; width: 2px; height: 10px;
  background: linear-gradient(var(--coral), var(--teal)); opacity: 0.4;
}

/* Demo, waveform card */
.tb-demo-hero-vis {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  padding: 28px; display: flex; flex-direction: column; gap: 22px;
  box-shadow: var(--shadow-pop);
}
.tb-demo-hero-vis .wf {
  flex: 1; display: flex; align-items: center; gap: 3px;
}
.tb-demo-hero-vis .wf span {
  flex: 1 1 0; min-width: 2px; max-width: 5px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
  border-radius: 2px;
  animation: tb-wb 1.4s ease-in-out infinite;
}
.tb-demo-hero-vis .tx {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 13px; color: var(--ink-2); line-height: 1.5;
}
.tb-demo-hero-vis .tx .tag { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--coral); letter-spacing: 0.1em; }

/* Solutions, rotating industry cards */
.tb-ind-stack {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.tb-ind-stack .icard {
  position: absolute; left: 50%; top: 50%;
  width: 70%; aspect-ratio: 4/3; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  padding: 22px;
  transform: translate(-50%, -50%) rotate(0deg);
  transition: all .8s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
}
.tb-ind-stack .icard h4 { font-family: 'Source Serif 4', serif; font-style: italic; font-weight: 400; font-size: 22px; margin: 8px 0; }
.tb-ind-stack .icard p { font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }
.tb-ind-stack .icard .ix { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--coral); letter-spacing: 0.1em; }

/* Pricing, value stack */
.tb-pricetower {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  padding: 26px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  box-shadow: var(--shadow-pop);
}
.tb-pricetower .bar {
  border-radius: 10px; padding: 14px 16px;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Geist Mono', monospace; font-size: 11px;
  transform: translateX(-20%); opacity: 0;
  animation: tb-bar-in 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.tb-pricetower .bar.b1 { animation-delay: 0.1s; height: 48px; }
.tb-pricetower .bar.b2 { animation-delay: 0.25s; height: 56px; background: linear-gradient(90deg, color-mix(in oklab, var(--coral) 12%, var(--bg-elev)), var(--bg-elev)); }
.tb-pricetower .bar.b3 { animation-delay: 0.4s; height: 68px; background: linear-gradient(90deg, color-mix(in oklab, var(--coral) 24%, var(--bg-elev)), var(--bg-elev)); border-color: var(--coral); }
.tb-pricetower .bar.b4 { animation-delay: 0.55s; height: 56px; background: linear-gradient(90deg, color-mix(in oklab, var(--teal) 12%, var(--bg-elev)), var(--bg-elev)); }
.tb-pricetower .bar.b5 { animation-delay: 0.7s; height: 48px; }
.tb-pricetower .bar .v { color: var(--ink); font-family: 'Source Serif 4', serif; font-style: italic; font-size: 18px; }
@keyframes tb-bar-in { to { transform: translateX(0); opacity: 1; } }

/* Managed Growth, content calendar */
.tb-calendar {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  padding: 24px;
  box-shadow: var(--shadow-pop);
}
.tb-calendar .grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.tb-calendar .cell {
  aspect-ratio: 1; border-radius: 6px;
  background: var(--bg-elev); border: 1px solid var(--line);
  position: relative;
}
.tb-calendar .cell.r { background: linear-gradient(135deg, var(--coral), color-mix(in oklab, var(--coral) 50%, var(--plum))); border: none; }
.tb-calendar .cell.s { background: linear-gradient(135deg, var(--teal), color-mix(in oklab, var(--teal) 50%, var(--bg))); border: none; }
.tb-calendar .cell.p { background: linear-gradient(135deg, #FFD27A, color-mix(in oklab, #FFD27A 50%, var(--coral))); border: none; }
.tb-calendar .legend { display: flex; gap: 18px; margin-top: 18px; font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.tb-calendar .legend span { display: flex; align-items: center; gap: 6px; }
.tb-calendar .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tb-calendar h4 { font-family:'Source Serif 4', serif; font-style: italic; font-weight: 400; font-size: 22px; margin: 0 0 18px; }

/* Investors, graph */
.tb-graph {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow-pop);
}
.tb-graph .axes { position: absolute; inset: 60px 28px 70px 28px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-graph svg { position: absolute; inset: 0; }
.tb-graph .label { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.tb-graph .label.tl { position: absolute; top: 26px; left: 28px; }
.tb-graph .label.tr { position: absolute; top: 26px; right: 28px; color: var(--coral); }
.tb-graph .stat { position: absolute; bottom: 28px; left: 28px; }
.tb-graph .stat .v { font-family: 'Source Serif 4', serif; font-size: 38px; font-style: italic; color: var(--ink); display: block; line-height: 1; }
.tb-graph .stat .l { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* Contact, pilot timeline */
.tb-timeline {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--line-strong); overflow: hidden;
  padding: 28px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; gap: 14px;
  justify-content: center;
}
.tb-timeline .step {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  padding: 14px 0; position: relative;
}
.tb-timeline .step::before {
  content: ""; position: absolute; left: 26px; top: 38px; bottom: -14px;
  width: 1px; background: linear-gradient(var(--coral), var(--teal)); opacity: 0.4;
}
.tb-timeline .step:last-child::before { display: none; }
.tb-timeline .step .day { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; padding-top: 14px; }
.tb-timeline .step .marker {
  position: absolute; left: 22px; top: 22px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); box-shadow: 0 0 10px var(--coral);
}
.tb-timeline .step:nth-child(2) .marker { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.tb-timeline .step:nth-child(3) .marker { background: #FFD27A; box-shadow: 0 0 10px #FFD27A; }
.tb-timeline .step:nth-child(4) .marker { background: var(--plum); box-shadow: 0 0 10px var(--plum); }
.tb-timeline .step h5 { font-family:'Source Serif 4', serif; font-style: italic; font-weight: 400; font-size: 18px; margin: 0 0 4px; }
.tb-timeline .step p { font-size: 12.5px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* Generic v2 cards / lists */
.tb-cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tb-cardgrid.c2 { grid-template-columns: repeat(2, 1fr); }
.tb-cardgrid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .tb-cardgrid, .tb-cardgrid.c4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tb-cardgrid, .tb-cardgrid.c2, .tb-cardgrid.c4 { grid-template-columns: 1fr; } }
.tb-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s;
}
.tb-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.tb-card .ix { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; margin-bottom: 14px; }
.tb-card h3 { font-family: 'Source Serif 4', serif; font-weight: 400; font-size: 22px; letter-spacing: -0.015em; margin: 0 0 8px; }
.tb-card h3 .it { font-style: italic; color: var(--coral); }
.tb-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.tb-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.tb-card li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 8px; }
.tb-card li:first-child { border-top: 0; }
.tb-card li::before { content: "→"; color: var(--coral); }

/* Pricing plan cards (v2) */
.tb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .tb-plans { grid-template-columns: 1fr; } }
.tb-plan {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .35s, border-color .35s;
}
.tb-plan:hover { transform: translateY(-3px); }
.tb-plan.feat { border-color: var(--coral); background: radial-gradient(ellipse at top right, color-mix(in oklab, var(--coral) 10%, transparent), transparent 60%), var(--bg-card); position: relative; box-shadow: 0 0 0 1px var(--coral), var(--shadow-pop); }
.tb-plan .name { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.tb-plan .price { font-family: 'Source Serif 4', serif; font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.03em; margin: 14px 0 4px; }
.tb-plan .price .it { font-style: italic; }
.tb-plan .price .alt { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.tb-plan .meta { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.06em; margin-bottom: 22px; }
.tb-plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.tb-plan li { padding: 9px 0; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; }
.tb-plan li:first-child { border-top: 0; }
.tb-plan li::before { content: "+"; color: var(--coral); font-weight: 600; }
.tb-plan .badge { position: absolute; top: -10px; left: 28px; background: var(--coral); color: var(--accent-ink); padding: 4px 10px; border-radius: 999px; font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

/* FAQ */
.tb-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.tb-faq details:last-child { border-bottom: 1px solid var(--line); }
.tb-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Source Serif 4', serif; font-size: 22px; letter-spacing: -0.01em; color: var(--ink); }
.tb-faq summary::after { content: "+"; color: var(--coral); font-size: 24px; transition: transform .3s; }
.tb-faq details[open] summary::after { transform: rotate(45deg); }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq p { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 12px 0 0; }

/* Form */
.tb-form { display: grid; gap: 18px; }
.tb-form label { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.tb-form input, .tb-form textarea, .tb-form select {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
  color: var(--ink); font: inherit; font-size: 15px;
  transition: border-color .25s, background .25s;
  width: 100%;
}
.tb-form input:focus, .tb-form textarea:focus, .tb-form select:focus { outline: none; border-color: var(--coral); background: var(--bg-card); }
.tb-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .tb-form .row { grid-template-columns: 1fr; } }
.tb-form .group { display: flex; flex-direction: column; gap: 6px; }

/* CTA band */
.tb-cta-band {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  background: radial-gradient(ellipse at 0% 0%, color-mix(in oklab, var(--coral) 18%, transparent), transparent 60%), radial-gradient(ellipse at 100% 100%, color-mix(in oklab, var(--teal) 14%, transparent), transparent 60%), var(--bg-card);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 800px) { .tb-cta-band { grid-template-columns: 1fr; } }
.tb-cta-band h3 { font-family:'Source Serif 4', serif; font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.05; }
.tb-cta-band h3 .it { font-style: italic; color: var(--coral); }
.tb-cta-band p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* Hide legacy nav/footer when v2 chrome is in use */
body.v2 nav.nav.legacy { display: none; }
body.v2 footer.footer.legacy { display: none; }

/* Mobile spacing tweaks */
@media (max-width: 720px) {
  .tb-story { padding: 72px 0; }
  .tb-flow { padding: 22px; }
  .tb-flow-stages { gap: 10px; }
  .tb-footer-mega { letter-spacing: -0.03em; }
}


/* ============================================================
   Pixila-style scroll dynamism (v2 landing)
   ============================================================ */

/* ----- Sticky stage section ----- */
.tb-stage-section {
  position: relative;
  background: var(--bg);
}
.tb-stage-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex; align-items: center;
}
.tb-stage-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  position: relative; z-index: 2;
}
@media (max-width: 1100px) {
  .tb-stage-grid { gap: 36px; grid-template-columns: 0.9fr 1fr; }
}
@media (max-width: 760px) {
  .tb-stage-grid { grid-template-columns: 1fr; gap: 36px; }
  .tb-stage-section { height: auto !important; }
  .tb-stage-sticky { position: relative; height: auto; padding: 80px 0; }
  .tb-stage-megaword { display: none; }
}

.tb-stage-left { position: relative; padding-left: 60px; }
@media (max-width: 760px) { .tb-stage-left { padding-left: 0; } }

.tb-stage-counter {
  position: absolute; top: 0; left: 0;
  display: flex; flex-direction: column; align-items: flex-start;
  font: 500 12px 'Geist Mono', monospace; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.tb-stage-counter span:first-child { font-size: 22px; color: var(--ink); line-height: 1; }
.tb-stage-counter .sep {
  width: 1px; height: 28px; background: var(--line);
  margin: 6px 0;
}
.tb-stage-counter .total { font-size: 12px; }

.tb-stage-progress {
  position: absolute; top: 0; left: 24px;
  width: 1px; height: 100%;
  background: var(--line);
}
.tb-stage-progress .bar {
  position: absolute; top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--coral), var(--teal));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform .15s linear;
}

.tb-stage-text { position: relative; }
.tb-stage-text .tb-display { font-size: clamp(36px, 4vw, 64px); margin: 14px 0 24px; }
.tb-stage-text .tb-display i {
  font-style: italic; font-weight: 300;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tb-stage-text .tb-body { max-width: 46ch; }
.tb-stage-text {
  animation: tbStageIn .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes tbStageIn {
  from { opacity: 0; transform: translateY(14px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.tb-stage-rail {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tb-stage-rail .step {
  display: grid; grid-template-columns: 40px 1fr;
  align-items: center; gap: 12px;
  padding: 10px 0;
  color: var(--ink-3);
  font-size: 12.5px;
  border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
  transition: color .25s, transform .25s;
}
.tb-stage-rail .step .num {
  font-size: 11px; letter-spacing: 0.1em;
}
.tb-stage-rail .step .lbl { font-weight: 500; }
.tb-stage-rail .step.done { color: var(--ink-2); }
.tb-stage-rail .step.active {
  color: var(--ink);
  transform: translateX(4px);
}
.tb-stage-rail .step.active .num { color: var(--coral); }

/* Right panel — stack of cards, only active is visible */
.tb-stage-right {
  position: relative;
  height: clamp(440px, 60vh, 620px);
}
.tb-stage-panel {
  position: absolute; inset: 0;
  transition: opacity .55s cubic-bezier(.2,.8,.2,1), transform .65s cubic-bezier(.2,.8,.2,1), filter .55s;
}
.tb-stage-panel.in { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.tb-stage-panel.future {
  opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(8px);
  pointer-events: none;
}
.tb-stage-panel.past {
  opacity: 0; transform: translateY(-40px) scale(1.04); filter: blur(8px);
  pointer-events: none;
}

/* Mega watermark word behind the stage */
.tb-stage-megaword {
  position: absolute;
  left: 50%; bottom: -8%;
  transform: translateX(-50%);
  font-family: 'Source Serif 4', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(180px, 26vw, 380px);
  line-height: 0.85; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--ink) 12%, transparent);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}

/* Stage panel cards (shared) */
.sp-card {
  width: 100%; height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.sp-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 100% 0%, color-mix(in oklch, var(--coral) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.sp-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  position: relative; z-index: 2;
}
.sp-head .live { color: var(--coral); display: inline-flex; align-items: center; gap: 6px; }
.sp-dots { display: inline-flex; gap: 5px; }
.sp-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.sp-dots span:first-child { background: #ff6055; }
.sp-dots span:nth-child(2) { background: #ffbe2e; }
.sp-dots span:nth-child(3) { background: #28cd41; }
.sp-body {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding-top: 18px; position: relative; z-index: 2;
}

/* Call panel */
.sp-call .sp-wave {
  display: flex; gap: 3px; align-items: flex-end; height: 60px;
}
.sp-call .sp-wave span {
  flex: 1; background: linear-gradient(180deg, var(--coral), color-mix(in oklch, var(--coral) 30%, transparent));
  border-radius: 2px; min-height: 4px;
  animation: sp-wave 1.4s ease-in-out infinite alternate;
  transform-origin: bottom;
}
@keyframes sp-wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
.sp-trans {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1; overflow: hidden;
}
.sp-line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; font-size: 14px; line-height: 1.5; }
.sp-line .who { font-size: 10px; color: var(--ink-3); padding-top: 3px; letter-spacing: 0.1em; }
.sp-line.ai .who { color: var(--coral); }
.sp-line.typing span:nth-child(2) { color: var(--ink-2); }
.sp-line .cursor { color: var(--coral); animation: sp-blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes sp-blink { 50% { opacity: 0; } }

/* WhatsApp panel */
.sp-wa { background: linear-gradient(180deg, color-mix(in oklch, #25D366 4%, var(--bg-card)), var(--bg-card)); }
.sp-wa .wa-msg { display: flex; flex-direction: column; gap: 10px; }
.sp-wa .wa-bubble {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 16px;
  max-width: 92%;
  align-self: flex-start;
}
.sp-wa .wa-bubble .lbl { font-size: 9.5px; color: #25D366; letter-spacing: 0.12em; margin-bottom: 4px; }
.sp-wa .wa-bubble .ttl { font-family: 'Source Serif 4', serif; font-size: 18px; font-style: italic; font-weight: 400; margin-bottom: 12px; }
.sp-wa .wa-bubble .thumb {
  height: 88px; border-radius: 8px;
  background:
    linear-gradient(135deg, #f4a261, #e76f51),
    radial-gradient(circle at 30% 40%, #fff5, transparent);
  background-blend-mode: overlay;
  margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.sp-wa .wa-bubble .thumb::after {
  content: "🪔"; position: absolute; right: 12px; bottom: 8px;
  font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.sp-wa .wa-bubble .row { display: flex; gap: 12px; font-size: 11px; color: var(--ink-3); margin-bottom: 12px; }
.sp-wa .wa-bubble .row span { padding: 4px 8px; background: var(--bg-card); border-radius: 999px; }
.sp-wa .wa-bubble .cta { font-size: 12px; color: #25D366; letter-spacing: 0.06em; font-weight: 500; }
.sp-wa .wa-bubble.small { font-size: 13.5px; padding: 10px 14px; border-radius: 14px 14px 14px 4px; }
.sp-wa .wa-bubble.small.reply {
  align-self: flex-end; background: color-mix(in oklch, #25D366 18%, var(--bg-elev));
  border-color: color-mix(in oklch, #25D366 30%, var(--line));
  border-radius: 14px 14px 4px 14px;
}
.sp-wa .wa-bubble .ts { font-size: 9.5px; color: var(--ink-3); margin-left: 8px; letter-spacing: 0.06em; }

/* CRM panel */
.sp-crm .crm-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
  font-size: 13.5px; align-items: baseline;
}
.sp-crm .crm-row:last-child { border-bottom: none; }
.sp-crm .crm-row .k { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.1em; }
.sp-crm .crm-row .v { color: var(--ink); }
.sp-crm .crm-row .v em { color: var(--ink-3); font-style: normal; font-size: 12.5px; }
.sp-crm .crm-row .pill {
  display: inline-block; padding: 3px 10px;
  background: color-mix(in oklch, var(--teal) 18%, transparent);
  color: var(--teal);
  border-radius: 999px; font-size: 11.5px;
  letter-spacing: 0.04em;
}

/* Growth panel */
.sp-growth .grw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.sp-growth .grw-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.sp-growth .grw-card .ph {
  height: 130px; border-radius: 8px;
  position: relative; overflow: hidden;
}
.sp-growth .grw-card .ph.reel { background: linear-gradient(135deg, #f4a261 0%, #e76f51 50%, #2a9d8f 100%); }
.sp-growth .grw-card .ph.story { background: linear-gradient(180deg, #2a9d8f 0%, #264653 100%); }
.sp-growth .grw-card .ph.post { background: linear-gradient(45deg, #e9c46a 0%, #f4a261 100%); }
.sp-growth .grw-card .ph::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%);
}
.sp-growth .grw-card .lbl { font-size: 9.5px; color: var(--coral); letter-spacing: 0.1em; }
.sp-growth .grw-card .ttl { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.sp-growth .grw-card .meta { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.06em; margin-top: auto; }

/* ----- Manifesto sticky reveal ----- */
.tb-manifesto {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.tb-manifesto-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.tb-manifesto-sticky .lbl {
  font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3);
  margin-bottom: 36px;
}
.tb-manifesto-stack {
  display: flex; flex-direction: column;
  gap: clamp(8px, 1.4vh, 18px);
}
.mw-line {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; align-items: baseline;
  font-style: italic; font-weight: 300;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.95; letter-spacing: -0.04em;
  transition: opacity .5s, color .5s, transform .5s;
}
.mw-line .mw-num {
  font-family: 'Geist Mono', monospace;
  font-style: normal; font-weight: 500;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.12em;
  color: var(--ink-3);
  padding-top: clamp(20px, 3vw, 50px);
}
.mw-line.future { opacity: 0.18; color: var(--ink-3); }
.mw-line.past { opacity: 0.32; color: var(--ink-3); }
.mw-line.active {
  opacity: 1;
  color: transparent;
  background: linear-gradient(120deg, var(--coral) 30%, var(--teal) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  transform: translateX(8px);
}
.mw-line.active .mw-num { color: var(--coral); }
.tb-manifesto-tag {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
.tb-manifesto-tag p {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300; color: var(--ink-2);
  margin: 0; max-width: 30ch; text-align: right;
}
.tb-manifesto-tag p i { color: var(--ink); }

@media (max-width: 760px) {
  .tb-manifesto { height: auto !important; }
  .tb-manifesto-sticky { position: relative; height: auto; padding: 80px 0; }
}

/* ----- Horizontal customer rail ----- */
.tb-rail {
  position: relative;
  padding: 100px 0 120px;
  background: var(--bg);
  overflow-y: hidden;
  overflow-x: visible;
}
.tb-rail-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 48px;
}
.tb-rail-head .tb-display { font-size: clamp(40px, 5vw, 72px); margin: 8px 0 0; }
.tb-rail-head .tb-display .it {
  font-style: italic; font-weight: 300;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tb-rail-actions { display: flex; gap: 10px; }

.tb-rail-track {
  display: flex; gap: 18px;
  padding: 0 48px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.tb-rail-track::-webkit-scrollbar { height: 6px; }
.tb-rail-track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.tb-rail-card {
  flex: 0 0 clamp(300px, 32vw, 440px);
  height: clamp(380px, 46vw, 480px);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.tb-rail-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in oklch, var(--coral) 14%, transparent), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, color-mix(in oklch, var(--teal) 12%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}
.tb-rail-card:hover {
  transform: translateY(-6px);
  border-color: var(--coral);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.6);
}
.tb-rail-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3);
  position: relative; z-index: 2;
}
.tb-rail-meta .idx { color: var(--coral); }
.tb-rail-card h3 {
  font-family: 'Source Serif 4', serif; font-weight: 400;
  font-size: clamp(28px, 2.4vw, 36px);
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 24px 0 14px; position: relative; z-index: 2;
}
.tb-rail-stat {
  font-family: 'Source Serif 4', serif; font-weight: 300;
  font-size: clamp(40px, 3.6vw, 56px);
  letter-spacing: -0.03em; line-height: 1;
  position: relative; z-index: 2;
}
.tb-rail-stat i {
  font-style: italic;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tb-rail-card p {
  color: var(--ink-2); font-size: 14px; line-height: 1.55;
  margin: 18px 0; max-width: 36ch;
  position: relative; z-index: 2;
}
.tb-rail-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 11px; letter-spacing: 0.1em; color: var(--ink-3);
  position: relative; z-index: 2;
}
.tb-rail-foot .arrow {
  font-size: 18px; color: var(--coral);
  transition: transform .3s;
}
.tb-rail-card:hover .tb-rail-foot .arrow { transform: translateX(6px); }

@media (max-width: 720px) {
  .tb-rail-track { padding: 0 20px 24px; }
  .tb-rail-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ============================================================
   Journey: static 4-step layout
   ============================================================ */
.tb-journey {
  padding: 80px 0 100px;
  background: var(--bg);
}
.tb-journey .tb-story-eyebrow { margin-bottom: 48px; }

.tb-journey-tag {
  font-size: 11px; letter-spacing: 0.14em; color: var(--coral);
  margin-bottom: 14px; text-transform: uppercase;
}

/* Stage 1: hero row */
.tb-journey-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: radial-gradient(60% 80% at 0% 50%, color-mix(in oklab, var(--coral) 8%, transparent), transparent 70%), var(--bg-card);
}
.tb-journey-hero-text .tb-display {
  font-size: clamp(36px, 4vw, 60px);
  margin: 0 0 20px;
}
.tb-journey-hero-text .tb-display i {
  font-style: italic; font-weight: 300;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tb-journey-hero-text .tb-body { max-width: 48ch; }

/* Stages 2-4: 3-col grid */
.tb-journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tb-journey-card {
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.tb-journey-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 40% at 100% 0%, color-mix(in oklab, var(--teal) 10%, transparent), transparent 70%);
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.tb-journey-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.tb-journey-card:hover::before { opacity: 1; }
.tb-journey-card-title {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25; margin: 0;
}
.tb-journey-card-title i { color: var(--coral); }
.tb-journey-card .tb-body { color: var(--ink-2); font-size: 13.5px; margin: 0; }

.tb-journey-panel-mini {
  margin-top: 20px;
  transform: scale(0.72);
  transform-origin: top left;
  width: calc(100% / 0.72);
  pointer-events: none;
  max-height: 200px;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .tb-journey-hero { grid-template-columns: 1fr; gap: 40px; }
  .tb-journey-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .tb-journey { padding: 56px 0 72px; }
  .tb-journey-hero { padding: 28px; }
  .tb-journey-grid { grid-template-columns: 1fr; }
  .tb-journey-panel-mini { display: none; }
}

/* ============================================================
   Feature cards: 4-col grid with glow
   ============================================================ */
.tb-feat-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.tb-feat-section .tb-display {
  font-size: clamp(36px, 4vw, 56px);
  margin: 12px 0 48px;
}
.tb-feat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tb-feat-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg-card);
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
  cursor: default;
}
.tb-feat-card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  transition: opacity .35s;
  opacity: 0;
}
.tb-feat-card.accent-coral::before {
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in oklab, var(--coral) 22%, transparent), transparent 70%);
}
.tb-feat-card.accent-teal::before {
  background: radial-gradient(60% 60% at 50% 0%, color-mix(in oklab, var(--teal) 18%, transparent), transparent 70%);
}
.tb-feat-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.55); }
.tb-feat-card:hover { border-color: var(--line-strong); }
.tb-feat-card.accent-coral:hover { border-color: color-mix(in oklab, var(--coral) 50%, var(--line)); }
.tb-feat-card.accent-teal:hover  { border-color: color-mix(in oklab, var(--teal)  50%, var(--line)); }
.tb-feat-card:hover::before { opacity: 1; }
.tb-feat-card-ix {
  font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3);
  margin-bottom: 20px; position: relative; z-index: 2;
}
.tb-feat-card h3 {
  font-family: 'Source Serif 4', serif; font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.02em; margin: 0 0 14px;
  position: relative; z-index: 2;
}
.tb-feat-card p {
  font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 0;
  position: relative; z-index: 2;
}
@media (max-width: 1100px) {
  .tb-feat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .tb-feat-section { padding: 56px 0 72px; }
  .tb-feat-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Global mobile responsiveness
   ============================================================ */
@media (max-width: 720px) {
  /* Orchestra: smaller, keep aspect ratio */
  .tb-orchestra { max-height: 360px; }
  .tb-orchestra .node { font-size: 9px; padding: 7px 10px; gap: 5px; }
  .tb-orchestra .stage-label { font-size: 10px; }

  /* Hero: tighter padding */
  .tb-hero { padding: 56px 0 52px; }
  .tb-hero h1 { font-size: clamp(38px, 10vw, 64px); }
  .tb-hero p.lede { font-size: 16px; }
  .tb-hero-trust { flex-wrap: wrap; gap: 8px; }

  /* Counters: single column */
  .tb-counters { grid-template-columns: 1fr 1fr; }

  /* Pilot form: stack on mobile */
  .tb-pilot-grid { grid-template-columns: 1fr !important; }
  .tb-pilot-form { padding: 28px 20px !important; }

  /* Footer grid: single column */
  .tb-footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .tb-footer-mega { font-size: clamp(60px, 18vw, 100px) !important; }

  /* Marquee text */
  .tb-marquee { font-size: 13px; }

  /* Section headings */
  .tb-display { font-size: clamp(32px, 9vw, 56px) !important; }

  /* General container padding */
  .container { padding-inline: 16px; }

  /* Section padding reduce */
  .tb-rail { padding: 64px 0 80px; }
  .tb-journey { padding: 48px 0 64px; }
}

@media (max-width: 480px) {
  .tb-hero-cta { flex-direction: column; align-items: stretch; }
  .tb-hero-cta .tb-btn { text-align: center; justify-content: center; }
  .tb-counters { grid-template-columns: 1fr; }
  .tb-orchestra .node.n3,
  .tb-orchestra .node.n4 { display: none; }
}

/* ============================================================
   Auto-scroll ticker — feature cards + customer rail
   ============================================================ */
@keyframes tb-ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Feature cards ticker */
.tb-ticker-wrap {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 24px;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.tb-ticker-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: tb-ticker-scroll 32s linear infinite;
}
.tb-ticker-inner:hover { animation-play-state: paused; }
.tb-ticker-inner .tb-feat-card {
  width: 300px;
  flex-shrink: 0;
}
:root[data-motion="calm"] .tb-ticker-inner { animation: none; }

/* Customer rail ticker */
.tb-rail-ticker {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 0;
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.tb-rail-ticker-inner {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: tb-ticker-scroll 48s linear infinite;
}
.tb-rail-ticker-inner:hover { animation-play-state: paused; }
.tb-rail-ticker-inner .tb-rail-card {
  width: 320px;
  flex-shrink: 0;
  scroll-snap-align: unset;
}
:root[data-motion="calm"] .tb-rail-ticker-inner { animation: none; }

/* ============================================================
   Improved footer
   ============================================================ */
.tb-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
}
.tb-footer-brand p {
  color: var(--ink-2); font-size: 14px; margin: 14px 0 20px;
  max-width: 32ch; line-height: 1.6;
}
.tb-footer-social {
  display: flex; gap: 10px;
}
.tb-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-2);
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.tb-social-link:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-card);
  transform: translateY(-2px);
}
.tb-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tb-footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin-bottom: 40px;
}
.tb-footer-nl-text p {
  font-size: 14px; color: var(--ink-2); margin: 0; max-width: 40ch;
}
.tb-footer-nl-form {
  display: flex; gap: 8px; flex-shrink: 0;
}
.tb-footer-nl-form input {
  appearance: none; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--ink);
  padding: 10px 14px; border-radius: 10px;
  font: 400 13.5px 'Geist', sans-serif; width: 220px;
  transition: border-color .15s, box-shadow .15s;
}
.tb-footer-nl-form input:focus {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--coral) 20%, transparent);
}
.tb-footer-nl-form button {
  appearance: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  color: #fff; font: 600 13px 'Geist', sans-serif;
  padding: 10px 18px; border-radius: 10px;
  transition: transform .15s, box-shadow .15s;
}
.tb-footer-nl-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.3); }
.tb-footer-nl-success {
  font: 500 14px 'Geist', sans-serif; color: var(--ink-2);
}
.tb-footer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}
.tb-footer-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px;
  background: var(--bg-card);
}
.tb-footer-stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: 28px; letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--coral), var(--teal));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tb-footer-stat-label {
  font-size: 12px; color: var(--ink-3); line-height: 1.4;
}
.tb-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--ink-3);
}
.tb-footer-bottom-left {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tb-footer-bottom-left a { color: var(--ink-3); }
.tb-footer-bottom-left a:hover { color: var(--ink); }
.tb-footer-divider { color: var(--line-strong); }
.tb-footer-bottom-right {
  display: flex; align-items: center; gap: 12px;
}
.tb-footer-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--teal) 40%, var(--line));
  background: color-mix(in oklch, var(--teal) 8%, var(--bg-elev));
  color: var(--teal); font-size: 10px; letter-spacing: 0.06em;
}
.tb-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  animation: tb-status-pulse 2s ease-in-out infinite;
}
@keyframes tb-status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
:root[data-motion="calm"] .tb-status-dot { animation: none; }

@media (max-width: 1100px) {
  .tb-footer-links-grid { grid-template-columns: 1fr 1fr; }
  .tb-footer-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .tb-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .tb-footer-newsletter { flex-direction: column; align-items: flex-start; }
  .tb-footer-nl-form { width: 100%; }
  .tb-footer-nl-form input { flex: 1; width: auto; }
}
@media (max-width: 600px) {
  .tb-footer-links-grid { grid-template-columns: 1fr 1fr; }
  .tb-footer-stats { grid-template-columns: 1fr 1fr; }
  .tb-footer-bottom { flex-direction: column; align-items: flex-start; }
  .tb-ticker-inner .tb-feat-card { width: 260px; }
  .tb-rail-ticker-inner .tb-rail-card { width: 260px; }
}
