/* Agent Call - Aether-layout tokens (light product over cinematic hero) */
:root {
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.78);
  --hero-dim: rgba(255, 255, 255, 0.5);

  --page: #f4f4f2;
  --page-soft: #ebebe8;
  --sheet: #ffffff;
  --ink: #121212;
  --ink-muted: #5c5c5c;
  --ink-dim: #8a8a8a;
  --line: rgba(18, 18, 18, 0.08);
  --line-strong: rgba(18, 18, 18, 0.14);

  --accent: #E07800;
  --accent-ink: #ffffff;
  --nav-glass: rgba(18, 22, 24, 0.55);
  --nav-border: rgba(255, 255, 255, 0.12);
  --focus: rgba(224, 120, 0, 0.45);

  --s-0: 0;
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-sheet: 40px;
  --r-full: 9999px;

  --font: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-copy: 640px;
  --max-page: 1120px;
  --shadow-sheet:
    0 -2px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 0 rgba(18, 18, 18, 0.04) inset,
    0 -24px 64px rgba(28, 12, 4, 0.18),
    0 -8px 28px rgba(224, 120, 0, 0.12),
    0 28px 80px rgba(18, 18, 18, 0.14);
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(18, 18, 18, 0.04),
    0 10px 28px rgba(18, 18, 18, 0.05);
  --shadow-lift:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 8px 24px rgba(18, 18, 18, 0.08),
    0 18px 48px rgba(224, 120, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body > main,
body > .app-main,
body > .err-main {
  flex: 1 0 auto;
}
body > .footer {
  flex-shrink: 0;
  margin-top: auto;
}
/* Home: hero is first; main+footer still fill remaining space after hero */
body:not(.app-body):not(.err-body) > main {
  flex: 1 0 auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: rgba(224, 120, 0, 0.28); color: #111; }
.mono { font-family: var(--font-mono); letter-spacing: 0.01em; }

.skip {
  position: absolute;
  left: var(--s-200);
  top: -100px;
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}
.skip:focus { top: var(--s-200); outline: 2px solid #111; }

.wrap {
  width: min(100% - var(--s-400), var(--max-page));
  margin-inline: auto;
}

/* --- Hero stage --- */
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--hero-ink);
  overflow: hidden;
  isolation: isolate;
  padding-top: 76px; /* room for fixed pill nav */
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  animation: hero-drift 28s var(--ease) infinite alternate;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(40, 16, 2, 0.45) 0%,
      rgba(48, 20, 4, 0.18) 28%,
      rgba(36, 14, 2, 0.34) 55%,
      rgba(28, 12, 4, 0.55) 78%,
      rgba(244, 244, 242, 0.96) 100%),
    radial-gradient(ellipse 70% 48% at 50% 28%, rgba(224, 120, 0, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 90% 55% at 50% 40%, transparent 0%, rgba(28, 10, 2, 0.38) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(920px, 92vw);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224, 120, 0, 0.34) 0%, rgba(224, 120, 0, 0.12) 38%, transparent 72%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}
@keyframes hero-drift {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.1) translateY(-1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: scale(1.02); }
}

/* Floating pill nav — fixed/sticky across scroll */
.nav-shell {
  position: relative;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--s-300) var(--s-200) 0;
  pointer-events: none;
}
.nav-shell.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: var(--s-200);
  padding-bottom: 0;
  z-index: 80;
}
.nav-shell.is-fixed.is-scrolled .nav {
  background: rgba(18, 14, 8, 0.82);
  box-shadow: 0 10px 36px rgba(18, 10, 4, 0.28);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: var(--nav-glass);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-full);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #fff;
}
.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
}
.nav-links {
  display: none;
  align-items: center;
  gap: var(--s-200);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 220ms var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: #fff;
  color: #121212;
  border-radius: var(--r-full);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-cta:hover { opacity: 0.92; }
.nav-cta:active { transform: scale(0.98); }
.nav-cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  color: #fff;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 12px;
  position: relative;
}
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 400ms var(--ease), opacity 220ms var(--ease), top 400ms var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav.is-open .nav-toggle-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}
.nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(18, 10, 4, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--s-800) + var(--s-200)) var(--s-400) var(--s-400);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 400ms var(--ease), visibility 400ms var(--ease);
}
.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-panel a {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.mobile-panel.is-open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-panel.is-open a:nth-child(1) { transition-delay: 0ms; }
.mobile-panel.is-open a:nth-child(2) { transition-delay: 50ms; }
.mobile-panel.is-open a:nth-child(3) { transition-delay: 100ms; }
.mobile-panel.is-open a:nth-child(4) { transition-delay: 150ms; }
.mobile-panel.is-open a:nth-child(5) { transition-delay: 200ms; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-panel { display: none; }
}

/* Hero copy */
.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-700) var(--s-300) var(--s-400);
  max-width: 820px;
  margin-inline: auto;
}
.h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.lead {
  margin: var(--s-200) 0 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 26px;
  color: var(--hero-muted);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-100);
  margin-top: var(--s-400);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  font-weight: 600;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease), background 220ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn-pill {
  padding: 14px 22px;
  border-radius: var(--r-full);
  background: #fff;
  color: #121212;
  font-size: 15px;
  line-height: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.btn-pill:hover { opacity: 0.94; }
.btn-pill.dark {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}
.btn-follow-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 9999px;
  background: #E07800;
  color: #0A0703;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(224, 120, 0, 0.35);
  transition: opacity 220ms ease, transform 220ms ease;
}
.btn-follow-x:hover { opacity: 0.92; }
.btn-follow-x:active { transform: scale(0.96); }
.btn-follow-x:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.btn-follow-x svg { flex: none; }
.trust-line {
  margin: var(--s-300) 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--hero-dim);
}
.venues {
  margin-top: var(--s-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-100);
}
.venues-label {
  margin: 0;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}
.venues-row {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(18, 12, 6, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.venues-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.venue-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.venue-mark.dark { background: #0a0914; }
.venue-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.venue-mark.dark img {
  width: 28px;
  height: 28px;
}
.venue-name {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: #fff;
}

/* Product sheet rising from bottom */
.sheet-stage {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, 1040px);
  margin: 0 auto;
  margin-bottom: -56px;
  --sheet-y: 0px;
}
.sheet-glow {
  position: absolute;
  left: 50%;
  top: -40px;
  width: 70%;
  height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224, 120, 0, 0.28) 0%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.product-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-bottom: none;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  min-height: 320px;
  transform: translate3d(0, var(--sheet-y), 0);
  will-change: transform;
  transition: box-shadow 280ms var(--ease);
}
.product-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  pointer-events: none;
  z-index: 3;
}
@media (min-width: 860px) {
  .sheet-stage { margin-bottom: -72px; }
  .product-sheet {
    grid-template-columns: 248px 1fr;
    min-height: 400px;
  }
}
.ps-side {
  padding: var(--s-300);
  background:
    linear-gradient(180deg, #fcfcfb 0%, #f5f5f2 100%);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
}
@media (min-width: 860px) {
  .ps-side {
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}
.ps-search {
  display: flex;
  align-items: center;
  gap: var(--s-75);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-dim);
  font-size: 13px;
}
.ps-search kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--page-soft);
  border: 1px solid var(--line);
}
.ps-seat {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s-100);
  align-items: center;
  padding: var(--s-100) var(--s-100) var(--s-100) var(--s-100);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
  border: 1px solid rgba(224, 120, 0, 0.22);
  border-radius: var(--r-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(224, 120, 0, 0.08),
    0 2px 6px rgba(18, 18, 18, 0.04);
  position: relative;
}
.ps-seat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.ps-seat img { border-radius: var(--r-sm); }
.ps-kicker {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink-dim);
}
.ps-title {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
.ps-badge {
  font-size: 11px;
  line-height: 14px;
  padding: 4px 8px;
  border-radius: var(--r-full);
  border: 1px solid rgba(224, 120, 0, 0.35);
  color: var(--accent);
  font-weight: 500;
}
.ps-side-note {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.ps-main {
  padding: var(--s-300) var(--s-400);
  display: flex;
  flex-direction: column;
  gap: var(--s-300);
  background:
    linear-gradient(180deg, #ffffff 0%, #fafaf8 100%);
  position: relative;
}
.ps-main::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 120, 0, 0.18), transparent);
  pointer-events: none;
}
.ps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-200);
}
.ps-h {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ps-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.ps-tools {
  display: flex;
  align-items: center;
  gap: var(--s-75);
}
.ps-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--page);
  border: 1px solid var(--line);
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
  font-weight: 500;
}
.ps-chip.ghost { background: #fff; }
.ps-chip.solid {
  background: rgba(224, 120, 0, 0.1);
  border-color: rgba(224, 120, 0, 0.28);
  color: #a85a00;
}
.ps-venues {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.ps-venues img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 2px;
  object-fit: contain;
}
.ps-venues img.on-dark {
  background: #0a0914;
  padding: 0;
  border-color: rgba(18, 18, 18, 0.2);
}
.ps-avatars {
  display: flex;
}
.ps-avatars span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  background: #d8d8d4;
}
.ps-avatars span:nth-child(1) { margin-left: 0; background: #c5c9c8; }
.ps-avatars span:nth-child(2) { background: #b7c4c2; }
.ps-avatars span:nth-child(3) { background: #9eb0ae; }

.ps-compose {
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
}
.ps-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
  font-weight: 500;
}
.ps-input,
.ps-area {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 1px 2px rgba(18,18,18,0.03);
}
.ps-area { min-height: 96px; }
.ps-actions {
  display: flex;
  gap: var(--s-100);
  justify-content: flex-end;
  flex-wrap: wrap;
}
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.ps-btn.ghost {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.ps-btn.solid {
  background: var(--ink);
  color: #fff;
}

/* Fade / unblur on load */
.fade-in {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  transition:
    opacity 400ms var(--ease-out),
    filter 400ms var(--ease-out),
    transform 400ms var(--ease-out);
}
.fade-in.is-ready {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.fade-delay { transition-delay: 140ms; }
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Below-the-fold light page */
.section {
  padding: calc(var(--s-800) + 48px) 0 var(--s-800);
}
.section.light { background: var(--page); }
.section.soft { background: var(--page-soft); }
.section-head {
  margin-bottom: var(--s-600);
  max-width: var(--max-copy);
}
.h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink);
}
.section-head p {
  margin: var(--s-200) 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.h3 {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.benefits {
  display: grid;
  gap: var(--s-200);
}
@media (min-width: 768px) {
  .benefits {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
  }
  .benefit-lead {
    grid-row: span 2;
    padding: var(--s-500);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    background:
      linear-gradient(165deg, #fff 0%, #fff8f0 58%, #fff 100%);
    border-color: rgba(224, 120, 0, 0.22);
    box-shadow: var(--shadow-lift);
  }
  .benefit-lead .h3 {
    font-size: 24px;
    line-height: 32px;
  }
  .benefit-wide { grid-column: 2; }
}
.benefit {
  padding: var(--s-400);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}
.benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(224, 120, 0, 0.18);
}
.benefit p {
  margin: var(--s-75) 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Flow: 4 cards, no numbered steps */
.flow {
  display: grid;
  gap: var(--s-200);
}
@media (min-width: 768px) {
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
  .flow-offset { transform: translateY(18px); }
  .flow-lift {
    transform: translateY(-10px);
    min-height: 200px;
  }
}
.flow-card {
  padding: var(--s-300);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  min-height: 160px;
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}
.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 1024px) {
  .flow-offset:hover { transform: translateY(14px); }
  .flow-lift:hover { transform: translateY(-14px); }
}
.flow-card.accent {
  border-color: rgba(224, 120, 0, 0.32);
  background: linear-gradient(180deg, #fff 0%, #fff7ec 100%);
  box-shadow: var(--shadow-lift);
}
.flow-card p {
  margin: var(--s-75) 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.faq {
  display: grid;
  gap: var(--s-100);
  max-width: 760px;
}
.faq details {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-200) var(--s-300);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 4px 14px rgba(18,18,18,0.03);
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.faq details:hover {
  border-color: rgba(224, 120, 0, 0.2);
  transform: translateY(-1px);
}
.faq details[open] {
  border-color: rgba(224, 120, 0, 0.28);
  box-shadow: var(--shadow-card);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: var(--s-200);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--ink-dim);
  font-weight: 500;
}
.faq details[open] summary::after { content: "-"; }
.faq details p {
  margin: var(--s-100) 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.final-cta {
  padding: var(--s-800) 0;
  background: var(--page);
}
.final-card {
  padding: var(--s-600);
  background:
    linear-gradient(145deg, #ffffff 0%, #fff8ef 55%, #ffffff 100%);
  border: 1px solid rgba(224, 120, 0, 0.18);
  border-radius: var(--r-2xl);
  display: grid;
  gap: var(--s-300);
  box-shadow: var(--shadow-lift);
  position: relative;
  overflow: hidden;
}
.final-card::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(224, 120, 0, 0.14) 0%, transparent 65%);
  pointer-events: none;
}
.final-card p {
  margin: 12px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .final-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.footer {
  padding: var(--s-400) 0 var(--s-600);
  border-top: 1px solid var(--line);
  background: var(--page);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-dim);
}
.footer-x {
  color: var(--ink-muted);
  font-weight: 500;
  transition: color 220ms var(--ease);
}
.footer-x:hover { color: var(--accent); }
.footer-x:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scroll reveal + stagger */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .sheet-glow { display: none; }
  .product-sheet { transform: none !important; }
  .benefit:hover,
  .flow-card:hover,
  .price-card:hover,
  .faq details:hover { transform: none; }
}


/* Free vs Premium strip */
.pricing {
  display: grid;
  gap: var(--s-200);
}
@media (min-width: 768px) {
  .pricing { grid-template-columns: 1fr 1fr; }
}
.price-card {
  padding: var(--s-400);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.price-card.featured {
  border-color: rgba(224, 120, 0, 0.38);
  background: linear-gradient(165deg, #fff 0%, #fff6ea 100%);
  box-shadow: var(--shadow-lift);
  position: relative;
}
.price-card.featured::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(224, 120, 0, 0.12), 0 18px 50px rgba(224, 120, 0, 0.12);
}
.price-label {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--accent);
}
.price-card .h3 { margin: 0; }
.price-card > p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s-75);
}
.price-list li {
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  padding-left: 1.1em;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.price-note {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-dim);
}
.upgrade-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-75);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--accent);
}
.upgrade-link:hover { text-decoration: underline; }

/* --- App page (light product sheet language) --- */
.app-body { background: var(--page); color: var(--ink); }
.app-main {
  flex: 1 0 auto;
  padding: calc(var(--s-900) + var(--s-200)) 0 var(--s-800);
}
.app-grid {
  display: grid;
  gap: var(--s-300);
}
@media (min-width: 960px) {
  .app-grid {
    grid-template-columns: 300px 1fr;
    align-items: start;
  }
}
.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-300);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.panel + .panel { margin-top: var(--s-200); }
.panel-title {
  margin: 0 0 var(--s-200);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink-muted);
}
.agent-card { display: grid; gap: var(--s-200); }
.agent-top {
  display: flex;
  align-items: center;
  gap: var(--s-100);
}
.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--page-soft);
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-name {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.agent-meta {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-full);
  background: rgba(224, 120, 0, 0.08);
  border: 1px solid rgba(224, 120, 0, 0.28);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--accent);
  width: fit-content;
}

.field {
  display: grid;
  gap: var(--s-75);
  margin-bottom: var(--s-200);
}
.field label {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--ink-muted);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  outline: none;
  color: var(--ink);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}
.field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 24px;
}
.field-hint {
  font-size: 12px;
  line-height: 16px;
  color: var(--ink-dim);
}
.compose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-100);
  margin-top: var(--s-100);
}
.app-body .btn-ghost {
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}
.app-body .btn-primary {
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.app-body .btn[disabled],
.app-body .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.calm-note {
  margin-top: var(--s-200);
  padding: var(--s-200);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
}
.empty {
  display: grid;
  gap: var(--s-75);
  place-items: start;
  padding: var(--s-300);
  background: var(--page);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
}
.empty strong {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}
.empty p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* App nav: dark glass still works over light page */
.app-body .nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: var(--s-200);
  z-index: 50;
}
.app-body .nav {
  background: rgba(18, 22, 24, 0.82);
}
.app-body .footer {
  background: var(--page);
}



/* ===== v4 additions: flow stage, splits, pricing 3-up, app token, shimmer, 404 ===== */

.section-tight { padding-top: calc(var(--s-700) + 40px); }

.eyebrow {
  margin: 0 0 var(--s-75);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.split {
  display: grid;
  gap: var(--s-500);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; gap: var(--s-700); }
  .split-flip { grid-template-columns: 0.95fr 1.05fr; }
  .split-flip .split-copy { order: 2; }
  .split-flip .split-media { order: 1; }
}
.split-copy .h2 { margin-bottom: var(--s-200); }
.split-copy > p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink-muted);
  text-wrap: pretty;
  max-width: 34em;
}
.check-list {
  list-style: none;
  margin: var(--s-300) 0;
  padding: 0;
  display: grid;
  gap: var(--s-100);
}
.check-list li {
  position: relative;
  padding-left: 1.35em;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,120,0,0.18);
}

.feature-rail {
  display: grid;
  gap: var(--s-200);
  margin-top: var(--s-400);
}
.feature-rail article {
  padding: var(--s-200) var(--s-300);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.feature-rail p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
}

/* Route diagram: one agent → venues */
.route {
  display: grid;
  gap: var(--s-400);
  padding: var(--s-400);
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(224,120,0,0.1), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafaf7 100%);
  border: 1px solid rgba(224,120,0,0.16);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lift);
}
@media (min-width: 900px) {
  .route {
    grid-template-columns: 220px 48px 1fr;
    align-items: center;
  }
}
.route-hub { text-align: center; }
.route-agent {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(224,120,0,0.28);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.route-agent img { border-radius: 10px; }
.route-kicker { margin: 0; font-size: 11px; color: var(--ink-dim); }
.route-title { margin: 0; font-size: 15px; font-weight: 600; }
.route-pulse {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(224,120,0,0.35);
  animation: pulse-ring 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
.route-line-label {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.route-spokes {
  display: none;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
@media (min-width: 900px) {
  .route-spokes { display: flex; }
}
.route-spoke {
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(224,120,0,0.15), var(--accent));
  border-radius: 2px;
  position: relative;
}
.route-spoke::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.route-venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-100);
}
.route-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.route-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.route-card strong { font-size: 15px; }
.route-card p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-muted);
}
.venue-mark.lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.venue-mark.lg img { width: 32px; height: 32px; }
.venue-mark.lg.dark img { width: 44px; height: 44px; }
.venue-mark.sm {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.venue-mark.sm img { width: 16px; height: 16px; }
.venue-mark.sm.dark img { width: 22px; height: 22px; }

/* Mini desk preview */
.mini-desk {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transform: rotate(-0.6deg);
}
.mini-desk-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0efec;
  border-bottom: 1px solid var(--line);
}
.mini-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d0cfc9;
}
.mini-url {
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-dim);
  font-family: var(--font-mono);
}
.mini-desk-body {
  padding: 18px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fff, #fafaf8);
}
.mini-seat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(224,120,0,0.22);
  border-radius: 12px;
  background: #fffaf3;
}
.mini-seat img { border-radius: 8px; }
.mini-seat p { margin: 0; font-size: 13px; font-weight: 600; }
.mini-seat span {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}
.mini-field, .mini-area {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-dim);
  background: #fff;
}
.mini-area { min-height: 64px; }
.mini-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.mini-btns span {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.mini-btns .ghost { border: 1px solid var(--line-strong); }
.mini-btns .solid { background: var(--ink); color: #fff; }
.mini-venues {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-dim);
}
.mini-venues img {
  width: 18px; height: 18px; border-radius: 4px;
  background: #fff; border: 1px solid var(--line); padding: 1px;
}
.mini-venues img.on-dark { background: #0a0914; padding: 0; }

/* Depth stack cards */
.depth-stack {
  position: relative;
  min-height: 320px;
  max-width: 420px;
}
.depth-card {
  position: absolute;
  left: 0; right: 40px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}
.depth-back { top: 0; transform: rotate(-3deg) translate(8px, 0); opacity: 0.7; }
.depth-mid { top: 48px; transform: rotate(1.5deg) translate(18px, 0); opacity: 0.88; }
.depth-front {
  top: 96px;
  right: 0;
  left: 24px;
  transform: none;
  border-color: rgba(224,120,0,0.28);
  box-shadow: var(--shadow-lift);
  background: linear-gradient(165deg, #fff, #fff8ef);
}
.depth-label { margin: 0; font-size: 11px; font-weight: 600; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.depth-empty, .depth-mono { margin: 8px 0 0; font-size: 14px; color: var(--ink-muted); }
.depth-mono { font-family: var(--font-mono); font-size: 12px; }
.depth-front-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.depth-front-top img { border-radius: 8px; }
.depth-front-top strong { display: block; font-size: 15px; }
.depth-front-top p { margin: 0; font-size: 12px; color: var(--ink-muted); }
.depth-front-copy { margin: 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.depth-front-venues { display: flex; gap: 8px; margin-top: 14px; }
.depth-front-venues img {
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff; border: 1px solid var(--line); padding: 2px;
}
.depth-front-venues img.on-dark { background: #0a0914; padding: 0; }

/* Pricing 3-up */
.pricing-3 {
  display: grid;
  gap: var(--s-200);
}
@media (min-width: 900px) {
  .pricing-3 { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-amount {
  margin: 0;
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}
.price-tier {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ===== Live callout flow stage (replaces static product sheet) ===== */
.flow-stage {
  position: relative;
  z-index: 2;
  width: min(100% - 24px, 1040px);
  margin: 0 auto -56px;
}
@media (min-width: 860px) {
  .flow-stage { margin-bottom: -72px; }
}
.flow-stage-glow {
  position: absolute;
  left: 50%;
  top: -36px;
  width: 70%;
  height: 110px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(224,120,0,0.28), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.call-flow {
  position: relative;
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  border: 1px solid rgba(18,18,18,0.08);
  border-bottom: none;
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
  min-height: 360px;
}
.call-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
  pointer-events: none;
  z-index: 3;
}
.call-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .call-flow-grid { grid-template-columns: 240px 1fr; min-height: 400px; }
}
.cf-side {
  padding: var(--s-300);
  background: linear-gradient(180deg, #fcfcfb, #f5f5f2);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
}
@media (min-width: 860px) {
  .cf-side { border-bottom: none; border-right: 1px solid var(--line); }
}
.cf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cf-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.cf-step.is-active {
  background: rgba(224,120,0,0.1);
  border-color: rgba(224,120,0,0.28);
  color: #a85a00;
}
.cf-step.is-done { color: var(--ink); }
.cf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d0cfc9;
  flex-shrink: 0;
}
.cf-step.is-active .cf-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224,120,0,0.2);
}
.cf-step.is-done .cf-dot { background: var(--ink); }
.cf-main {
  padding: var(--s-300) var(--s-400);
  display: flex;
  flex-direction: column;
  gap: var(--s-200);
  background: linear-gradient(180deg, #fff, #fafaf8);
  position: relative;
  min-height: 300px;
}
.cf-scene {
  position: absolute;
  inset: var(--s-300) var(--s-400);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
}
.cf-scene.is-on {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  inset: auto;
}
.cf-h {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.cf-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--ink-muted);
}
.cf-fake-input {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-dim);
  min-height: 44px;
  overflow: hidden;
}
.cf-fake-input .cf-type {
  color: var(--ink);
  border-right: 2px solid var(--accent);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  max-width: 0;
}
.call-flow[data-step="0"] .cf-type {
  animation: cf-type 2.2s steps(40, end) forwards;
}
@keyframes cf-type {
  from { max-width: 0; }
  to { max-width: 100%; }
}
.cf-token {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(224,120,0,0.22);
  border-radius: 14px;
  background: #fffaf3;
}
.cf-token-img {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #E07800, #f0b060);
}
.cf-token strong { display: block; font-size: 15px; }
.cf-token span { font-size: 12px; color: var(--ink-muted); }
.cf-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.cf-metric {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cf-metric b {
  display: block;
  font-size: 11px;
  color: var(--ink-dim);
  font-weight: 500;
}
.cf-metric i {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
}
.cf-shimmer {
  position: relative;
  overflow: hidden;
  background: #f0efec;
  border-radius: 8px;
  height: 14px;
}
.cf-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  100% { transform: translateX(100%); }
}
.cf-thesis {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  min-height: 96px;
}
.cf-thesis .cf-line {
  opacity: 0;
  transform: translateY(6px);
}
.call-flow[data-step="2"] .cf-line {
  animation: cf-fade-up 500ms var(--ease-out) forwards;
}
.call-flow[data-step="2"] .cf-line:nth-child(2) { animation-delay: 180ms; }
.call-flow[data-step="2"] .cf-line:nth-child(3) { animation-delay: 320ms; }
@keyframes cf-fade-up {
  to { opacity: 1; transform: none; }
}
.cf-post-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.cf-btn {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: #fff;
}
.cf-btn.solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.call-flow[data-step="3"] .cf-btn.solid {
  animation: cf-pulse-btn 1s var(--ease) infinite;
}
@keyframes cf-pulse-btn {
  50% { box-shadow: 0 0 0 6px rgba(224,120,0,0.18); }
}
.cf-venues-out {
  display: grid;
  gap: 10px;
}
.cf-venue-out {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-8px);
}
.call-flow[data-step="4"] .cf-venue-out {
  animation: cf-slide-in 500ms var(--ease-out) forwards;
}
.call-flow[data-step="4"] .cf-venue-out:nth-child(2) { animation-delay: 160ms; }
.call-flow[data-step="4"] .cf-venue-out:nth-child(3) { animation-delay: 300ms; }
@keyframes cf-slide-in {
  to { opacity: 1; transform: none; }
}
.cf-venue-out strong { font-size: 14px; }
.cf-venue-out span { font-size: 12px; color: var(--ink-muted); display: block; }
.cf-live-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(224,120,0,0.1);
  border: 1px solid rgba(224,120,0,0.25);
}

@media (prefers-reduced-motion: reduce) {
  .route-pulse, .cf-shimmer::after, .call-flow[data-step="0"] .cf-type,
  .call-flow[data-step="2"] .cf-line, .call-flow[data-step="3"] .cf-btn.solid,
  .call-flow[data-step="4"] .cf-venue-out {
    animation: none !important;
  }
  .cf-type { max-width: 100%; border-right: none; color: var(--ink); }
  .cf-line, .cf-venue-out { opacity: 1; transform: none; }
}

/* App: token card, shimmer, write thesis */
.compose-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--s-200);
}
.compose-head .panel-title { margin-bottom: 4px; }
.compose-sub { margin: 0; font-size: 12px; color: var(--ink-dim); }
.compose-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(224,120,0,0.08);
  border: 1px solid rgba(224,120,0,0.22);
  color: var(--accent);
  white-space: nowrap;
}
.agent-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.seat-meter { display: grid; gap: 6px; }
.seat-meter-track {
  height: 6px;
  border-radius: 999px;
  background: var(--page-soft);
  overflow: hidden;
}
.seat-meter-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}
.seat-meter-label { margin: 0; font-size: 11px; color: var(--ink-dim); }
.app-venue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.app-venue-cap { font-size: 12px; color: var(--ink-muted); }
.premium-tease .prem-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
.token-card {
  margin-bottom: var(--s-200);
  padding: 14px 16px;
  border: 1px solid rgba(224,120,0,0.22);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, #fff, #fff8ef);
  display: grid;
  gap: 10px;
}
.token-card[hidden] { display: none !important; }

/* Token holdings gate ($2 bag check) */
.token-holdings {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
}
.token-holdings[hidden] { display: none !important; }
.token-holdings.is-checking {
  color: var(--ink-muted);
  border-style: dashed;
}
.token-holdings.is-ok {
  color: #1a6b3c;
  background: #f0faf3;
  border-color: rgba(26, 107, 60, 0.22);
}
.token-holdings.is-warn {
  color: #8a5a00;
  background: #fff8ef;
  border-color: rgba(224, 120, 0, 0.28);
}

.token-card-top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.token-card-top img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover;
  background: var(--page-soft);
}
.token-card-top > div { min-width: 0; }
.token-card-top strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.token-card-top span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.token-source {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: start;
  padding-top: 2px;
}
.token-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  .token-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.token-metric {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.token-metric b {
  display: block;
  font-size: 10px;
  color: var(--ink-dim);
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.token-metric i {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  line-height: 1.2;
  word-break: break-all;
}
.token-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.token-links a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224,120,0,0.22);
  background: #fff;
  line-height: 1.3;
}
.token-links a:hover { background: rgba(224,120,0,0.08); }
.token-empty, .token-error {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
}
.token-error { color: #a33; }
.shimmer-block {
  display: grid;
  gap: 8px;
}
.shimmer-block[hidden],
#token-loading[hidden],
#token-body[hidden],
#token-error[hidden] {
  display: none !important;
}
.shimmer-line {
  height: 14px;
  border-radius: 6px;
  background: #eceae6;
  position: relative;
  overflow: hidden;
}
.shimmer-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.75), transparent);
  animation: shimmer 1.1s infinite;
}
.shimmer-line.w40 { width: 40%; }
.shimmer-line.w70 { width: 70%; }
.shimmer-line.w90 { width: 90%; }
.draft-box {
  margin: 0 0 var(--s-200);
  padding: var(--s-200);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--page);
}
.draft-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.linkish {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.draft-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 18px;
  color: var(--ink);
}
.app-body .btn-accent {
  padding: 10px 16px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.app-body .btn-accent.is-disabled,
.app-body .btn-accent[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-ghost-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--r-full);
  border: 1px solid var(--line-strong);
  background: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* 404 */
.err-body .err-main {
  display: flex;
  align-items: center;
  padding: calc(var(--s-900) + var(--s-200)) 0 var(--s-800);
}
.err-card {
  max-width: 560px;
  padding: var(--s-600);
  background: linear-gradient(145deg, #fff, #fff8ef);
  border: 1px solid rgba(224,120,0,0.18);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lift);
}
.err-code {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.err-copy {
  margin: 12px 0 var(--s-300);
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}
.err-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* App aside spacing */
.app-aside .panel + .panel { margin-top: var(--s-200); }
.empty .btn { margin-top: 8px; }

/* ===== v4b: more life — ken burns, pulse, signal motif, richer flow, app idle ===== */

/* Stronger Ken Burns on hero */
.hero-img {
  animation: hero-ken 36s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes hero-ken {
  0%   { transform: scale(1.05) translate3d(0, 0, 0); object-position: 48% 38%; }
  50%  { transform: scale(1.12) translate3d(-1.2%, -1%, 0); object-position: 52% 42%; }
  100% { transform: scale(1.08) translate3d(1%, -1.6%, 0); object-position: 46% 36%; }
}
.hero-glow {
  animation: glow-breathe 5.5s var(--ease) infinite alternate;
}
@keyframes glow-breathe {
  from { opacity: 0.7; transform: translateX(-50%) scale(0.96); }
  to   { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* Orange signal motif over hero (CSS-only loops) */
.hero-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sig {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(224, 120, 0, 0.35);
  box-shadow: 0 0 24px rgba(224, 120, 0, 0.18);
  animation: sig-expand 7s var(--ease) infinite;
}
.sig-a { width: 120px; height: 120px; left: 12%; top: 28%; animation-delay: 0s; }
.sig-b { width: 180px; height: 180px; right: 14%; top: 18%; animation-delay: 2.2s; }
.sig-c { width: 90px; height: 90px; left: 42%; bottom: 32%; animation-delay: 4.1s; }
@keyframes sig-expand {
  0%   { opacity: 0; transform: scale(0.55); }
  25%  { opacity: 0.55; }
  70%  { opacity: 0.15; }
  100% { opacity: 0; transform: scale(1.55); }
}

/* Follow X warmer ambient pulse */
.btn-follow-x {
  position: relative;
  box-shadow:
    0 8px 24px rgba(224, 120, 0, 0.4),
    0 0 0 0 rgba(224, 120, 0, 0.45);
  animation: follow-pulse 2.4s var(--ease) infinite;
}
.btn-follow-x::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(255, 200, 120, 0.45);
  animation: follow-ring 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes follow-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(224,120,0,0.35), 0 0 0 0 rgba(224,120,0,0.4); }
  50% { box-shadow: 0 10px 32px rgba(224,120,0,0.55), 0 0 0 8px rgba(224,120,0,0); }
}
@keyframes follow-ring {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.12); }
}

/* Flow stage: stronger presence + subtle float */
.flow-stage {
  transform: translateY(var(--flow-y, 0px));
  transition: transform 80ms linear;
}
.call-flow {
  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.9) inset,
    0 -28px 72px rgba(28, 12, 4, 0.22),
    0 -10px 36px rgba(224, 120, 0, 0.16),
    0 28px 80px rgba(18, 18, 18, 0.16);
}
.call-flow::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(224,120,0,0.55), transparent);
  opacity: 0.7;
  z-index: 4;
  pointer-events: none;
}

/* Richer typing: restartable via .is-typing */
.cf-fake-input {
  position: relative;
  overflow: hidden;
}
.cf-fake-input::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 2px;
  height: 1em;
  margin-top: -0.5em;
  background: var(--accent);
  opacity: 0;
}
.call-flow[data-step="0"] .cf-fake-input::after {
  opacity: 1;
  animation: caret-blink 0.9s steps(1) infinite;
}
.call-flow[data-step="0"] .cf-type {
  animation: none;
  max-width: 0;
  color: transparent;
  border-right: none;
}
.call-flow[data-step="0"].is-typing .cf-type {
  color: var(--ink);
  animation: cf-type 2.1s steps(44, end) forwards;
}
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Demo numbers shimmer in */
.cf-num {
  display: inline-block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, var(--ink) 30%, #E07800 50%, var(--ink) 70%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(4px);
}
.call-flow[data-step="1"] .cf-num {
  animation: num-in 700ms var(--ease-out) forwards, num-shine 2.2s linear 700ms infinite;
}
.call-flow[data-step="1"] .cf-metric:nth-child(1) .cf-num { animation-delay: 120ms, 820ms; }
.call-flow[data-step="1"] .cf-metric:nth-child(2) .cf-num { animation-delay: 260ms, 960ms; }
.call-flow[data-step="1"] .cf-metric:nth-child(3) .cf-num { animation-delay: 400ms, 1100ms; }
@keyframes num-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes num-shine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.cf-demo-tag {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(224,120,0,0.12);
  padding: 1px 6px;
  border-radius: 999px;
}
.cf-token-img {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff3e0, #ffe0b0);
}
.cf-token-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 40% 40%, rgba(224,120,0,0.45), transparent 60%);
  animation: token-pulse 1.8s var(--ease) infinite;
}
@keyframes token-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.cf-name-in {
  display: inline-block;
}
.call-flow[data-step="1"] .cf-name-in {
  animation: cf-fade-up 450ms var(--ease-out) forwards;
}
.cf-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.cf-soc {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224,120,0,0.22);
  background: #fff;
  color: var(--accent);
  opacity: 0;
  transform: translateY(6px);
}
.call-flow[data-step="1"] .cf-soc {
  animation: cf-fade-up 480ms var(--ease-out) forwards;
}
.call-flow[data-step="1"] .cf-soc:nth-child(1) { animation-delay: 480ms; }
.call-flow[data-step="1"] .cf-soc:nth-child(2) { animation-delay: 600ms; }
.call-flow[data-step="1"] .cf-soc:nth-child(3) { animation-delay: 720ms; }

/* Thesis caret */
.cf-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: var(--accent);
  vertical-align: -2px;
  animation: caret-blink 0.85s steps(1) infinite;
}

/* Venue light-up sequence */
.cf-venue-out {
  position: relative;
  overflow: hidden;
}
.cf-venue-out::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(224,120,0,0.12), transparent);
  transform: translateX(-100%);
}
.call-flow[data-step="4"] .cf-venue-out::before {
  animation: venue-sweep 700ms var(--ease-out) forwards;
}
.call-flow[data-step="4"] .cf-venue-out:nth-child(2)::before { animation-delay: 160ms; }
.call-flow[data-step="4"] .cf-venue-out:nth-child(3)::before { animation-delay: 300ms; }
@keyframes venue-sweep {
  to { transform: translateX(100%); }
}
.call-flow[data-step="4"] .cf-venue-out .venue-mark {
  animation: venue-glow 600ms var(--ease-out) forwards;
  box-shadow: 0 0 0 0 rgba(224,120,0,0.4);
}
.call-flow[data-step="4"] .cf-venue-out:nth-child(2) .venue-mark { animation-delay: 160ms; }
.call-flow[data-step="4"] .cf-venue-out:nth-child(3) .venue-mark { animation-delay: 300ms; }
@keyframes venue-glow {
  0% { box-shadow: 0 0 0 0 rgba(224,120,0,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(224,120,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,120,0,0); }
}
.cf-v-lit {
  opacity: 0.35;
  filter: grayscale(0.6);
  transition: opacity 400ms var(--ease), filter 400ms var(--ease), transform 400ms var(--ease);
  border-radius: 4px;
}
.call-flow[data-step="4"] .cf-v-lit.is-on,
.call-flow[data-step="4"] .cf-v-lit {
  opacity: 1;
  filter: none;
}
.call-flow[data-step="4"] .cf-v-lit[data-v="0"] { transition-delay: 80ms; }
.call-flow[data-step="4"] .cf-v-lit[data-v="1"] { transition-delay: 220ms; }
.call-flow[data-step="4"] .cf-v-lit[data-v="2"] { transition-delay: 360ms; }

/* Section micro-interactions + depth */
.route-card,
.price-card,
.feature-rail article,
.mini-desk,
.depth-front {
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(224,120,0,0.28);
}
.price-card.featured:hover {
  transform: translateY(-6px);
}
.feature-rail article:hover {
  transform: translateY(-2px);
  border-color: rgba(224,120,0,0.22);
  box-shadow: var(--shadow-lift);
}
.mini-desk:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.depth-stack:hover .depth-front {
  transform: translateY(-6px);
}
.depth-stack:hover .depth-mid {
  transform: rotate(1.5deg) translate(18px, -4px);
}
.depth-stack:hover .depth-back {
  transform: rotate(-3deg) translate(8px, -2px);
}

/* Soft parallax layer on soft sections */
.section.soft {
  background-image:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(224,120,0,0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 8% 80%, rgba(224,120,0,0.05), transparent 55%);
}
.section.light {
  background-image:
    radial-gradient(ellipse 45% 30% at 10% 0%, rgba(224,120,0,0.05), transparent 55%);
}

/* Route spoke dash motion */
.route-spoke {
  overflow: hidden;
}
.route-spoke::before {
  content: "";
  position: absolute;
  left: -20%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  animation: spoke-run 2.2s var(--ease) infinite;
}
@keyframes spoke-run {
  0% { left: -40%; }
  100% { left: 120%; }
}

/* Final CTA warmth */
.final-card {
  position: relative;
  overflow: hidden;
}
.final-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -60px;
  background: radial-gradient(circle, rgba(224,120,0,0.22), transparent 65%);
  pointer-events: none;
  animation: glow-breathe 6s var(--ease) infinite alternate;
}

/* App idle + write thesis feedback */
.agent-avatar {
  position: relative;
}
.agent-avatar.is-idle .agent-idle-ring {
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  border: 1px solid rgba(224,120,0,0.4);
  animation: pulse-ring 2.6s var(--ease) infinite;
  pointer-events: none;
}
.compose-status.is-live {
  animation: status-flash 1.2s var(--ease);
}
@keyframes status-flash {
  0% { background: rgba(224,120,0,0.28); }
  100% { background: rgba(224,120,0,0.08); }
}
.btn-write-spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-accent.is-busy .btn-write-label { opacity: 0.7; }
.btn-accent.is-busy .btn-write-spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.token-card.is-loading {
  box-shadow: 0 0 0 1px rgba(224,120,0,0.25), 0 12px 32px rgba(224,120,0,0.08);
}
.calm-note.is-ok {
  border-color: rgba(224,120,0,0.3);
  background: #fff8ef;
}
.calm-note.is-warn {
  border-color: rgba(160, 90, 20, 0.35);
  background: #fff6ea;
}

@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-glow, .sig, .btn-follow-x, .btn-follow-x::after,
  .cf-num, .cf-token-pulse, .cf-soc, .cf-caret, .cf-venue-out::before,
  .route-spoke::before, .final-card::after, .agent-idle-ring, .btn-write-spin {
    animation: none !important;
  }
  .btn-follow-x::after { display: none; }
  .cf-num { opacity: 1; transform: none; color: var(--ink); background: none; -webkit-text-fill-color: unset; }
  .cf-soc { opacity: 1; transform: none; }
}

/* ===== v4c: hero stack balance + premium card polish ===== */

/* Hero: tighter, grounded hierarchy */
.hero-copy {
  justify-content: flex-end;
  padding: clamp(48px, 10vh, 96px) var(--s-300) clamp(28px, 5vh, 48px);
  max-width: 760px;
  width: 100%;
}
.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}
.hero-stack .h1 {
  margin: 0;
}
.hero-stack .lead {
  margin: 14px 0 0;
  max-width: 480px;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.5;
  color: rgba(255, 247, 236, 0.88);
}
.hero-stack .hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-stack .venues {
  margin-top: 28px;
  gap: 12px;
  padding-top: 4px;
}
.hero-stack .venues-label {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: rgba(255, 247, 236, 0.7);
}
.hero-stack .venues-row {
  padding: 6px 8px;
  gap: 6px;
  background: rgba(18, 12, 6, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
}
.hero-stack .venues-row li {
  padding: 5px 12px 5px 5px;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
}
@media (max-width: 560px) {
  .hero-copy {
    justify-content: center;
    padding-top: 36px;
    padding-bottom: 20px;
  }
  .hero-stack .hero-actions {
    width: 100%;
  }
  .hero-stack .hero-actions .btn-pill,
  .hero-stack .hero-actions .btn-follow-x {
    flex: 1 1 auto;
    min-width: 140px;
    justify-content: center;
  }
  .hero-stack .venues-row {
    width: 100%;
    justify-content: center;
  }
}

/* Premium section: warm depth + equal cards */
#premium.section.soft {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse 58% 48% at 50% 42%, rgba(224, 120, 0, 0.13), transparent 68%),
    radial-gradient(ellipse 40% 35% at 12% 88%, rgba(224, 120, 0, 0.06), transparent 60%),
    radial-gradient(ellipse 36% 30% at 90% 12%, rgba(224, 120, 0, 0.07), transparent 55%);
}
#premium .pricing-3 {
  align-items: stretch;
}
#premium .price-card {
  gap: 12px;
  height: 100%;
  position: relative;
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.08);
  box-shadow: 0 10px 28px rgba(18, 12, 6, 0.05);
}
#premium .price-card > .price-list {
  flex: 1 1 auto;
}
#premium .price-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 24px;
}
.tier-chip,
.popular-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tier-chip {
  background: rgba(18, 18, 18, 0.06);
  color: var(--ink-dim);
  border: 1px solid rgba(18, 18, 18, 0.06);
}
.popular-chip {
  background: rgba(224, 120, 0, 0.14);
  color: #a85a00;
  border: 1px solid rgba(224, 120, 0, 0.28);
}
#premium .price-label {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--ink);
}
#premium .price-amount {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
#premium .price-amount span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
#premium .price-seats {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--accent);
}
#premium .seat-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 2px;
}
#premium .seat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.1);
  border: 1px solid rgba(18, 18, 18, 0.06);
}
#premium .seat-dot.is-on {
  background: var(--accent);
  border-color: rgba(224, 120, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(224, 120, 0, 0.12);
}
#premium .price-blurb {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-muted);
  text-wrap: pretty;
}
#premium .price-note {
  margin: 0;
}
#premium .price-cta {
  align-self: stretch;
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-align: center;
}
#premium .price-card.featured {
  background: linear-gradient(165deg, #ffffff 0%, #fff7ec 55%, #ffefd8 100%);
  border-color: rgba(224, 120, 0, 0.34);
  box-shadow:
    0 16px 40px rgba(224, 120, 0, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  z-index: 1;
}
#premium .price-card.featured::after {
  box-shadow:
    0 0 0 1px rgba(224, 120, 0, 0.18),
    0 22px 54px rgba(224, 120, 0, 0.16);
}
@media (min-width: 900px) {
  #premium .price-card.featured {
    transform: scale(1.02);
  }
  #premium .price-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
  }
  #premium .price-card:not(.featured):hover {
    transform: translateY(-4px);
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  #premium .pricing.pricing-3 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 899px) {
  #premium .price-card.featured {
    order: -1;
    box-shadow:
      0 14px 36px rgba(224, 120, 0, 0.14),
      0 1px 0 rgba(255, 255, 255, 0.8) inset;
  }
}
@media (prefers-reduced-motion: reduce) {
  #premium .price-card,
  #premium .price-card.featured,
  #premium .price-card:hover,
  #premium .price-card.featured:hover {
    transform: none !important;
    transition: none;
  }
}


/* ===== v4d: compose token card + skeleton hide ===== */
.field-hint[hidden] { display: none !important; }
.token-card.is-loading .token-card-top,
.token-card.is-loading .token-metrics,
.token-card.is-loading .token-links { display: none; }

/* ===== v4e: token card containment (no overlap / crush) ===== */
.app-grid > * { min-width: 0; }
.compose-panel, #compose-form { min-width: 0; position: relative; overflow: visible; }
#compose-form > * { position: relative; z-index: auto; margin-left: 0; margin-right: 0; }
.token-card {
  position: relative; z-index: 0; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 100%; box-sizing: border-box;
  max-height: 340px; overflow: hidden auto;
  margin: 12px 0 20px; transform: none;
}
.token-card > *, #token-body { min-width: 0; margin: 0; position: static; }
#token-body { display: flex; flex-direction: column; gap: 10px; }
.token-card.is-loading #token-body, .token-card:not(.is-loading) #token-loading { display: none !important; }
.token-card-top { grid-template-columns: 36px minmax(0,1fr) auto; gap: 10px; }
.token-card-top img { width: 36px; height: 36px; }
.token-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
@media (min-width: 720px) { .token-metrics { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.token-metric { min-height: 48px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.token-metric i { word-break: normal; overflow-wrap: anywhere; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.token-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.token-links::-webkit-scrollbar { display: none; }
.token-links a { flex: 0 0 auto; white-space: nowrap; }
.compose-actions { position: relative; z-index: 1; clear: both; margin-top: 16px; }

/* ===== v4f: wallet box + token card no-overlap (absolute skeleton) ===== */
.wallet-box {
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wallet-line {
  margin: 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink);
  word-break: break-all;
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wallet-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  padding: 8px 12px;
}
.btn.is-quiet {
  flex: 0 0 auto;
  opacity: 0.75;
}
.btn-primary.is-busy,
.btn-accent.is-busy {
  position: relative;
}
.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.history-item a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.history-meta {
  font-size: 11px;
  color: var(--ink-dim);
}

/* Token card: single layer — skeleton OR body, never both in flow */
.token-card {
  position: relative;
  z-index: 0;
  isolation: isolate;
  contain: layout paint;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  max-height: none;
  overflow: hidden;
  margin: 12px 0 20px;
  transform: none;
}
.token-card.is-loading {
  min-height: 96px;
}
#token-loading.shimmer-block {
  position: absolute;
  inset: 14px 16px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
.token-card:not(.is-loading) #token-loading,
#token-loading[hidden],
.token-card.is-loading #token-body,
#token-body[hidden],
.token-card.is-loading .token-error,
#token-error[hidden] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
#token-body:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.token-card-top {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.token-card-top img { width: 36px; height: 36px; }
.token-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 720px) {
  .token-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.compose-panel, #compose-form {
  min-width: 0;
  overflow: visible;
}
#compose-form > .field,
#compose-form > .token-card,
#compose-form > .draft-box,
#compose-form > .compose-actions {
  position: relative;
  z-index: 0;
  clear: both;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.compose-actions { z-index: 1; margin-top: 16px; }


/* ===== v4g: live-ready toast, post busy, token/source polish ===== */

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 80;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 12px 36px rgba(18, 12, 6, 0.14),
    0 4px 12px rgba(224, 120, 0, 0.08);
  opacity: 0;
  pointer-events: none;
  text-wrap: pretty;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.app-toast[hidden] { display: none !important; }
.app-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.app-toast.is-ok {
  border-color: rgba(224, 120, 0, 0.35);
  background: linear-gradient(165deg, #fff, #fff8ef);
  color: #6a3a00;
}
.app-toast.is-warn {
  border-color: rgba(160, 70, 20, 0.4);
  background: #fff6ea;
  color: #7a2e00;
}
.app-toast.is-info {
  border-color: rgba(18, 18, 18, 0.12);
  background: #fff;
  color: var(--ink);
}

.btn-post-spin {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: -2px;
}
.btn-primary.is-busy .btn-post-label { opacity: 0.75; }
.btn-primary.is-busy .btn-post-spin { display: inline-block; }
.btn-primary.is-busy,
.btn-accent.is-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Token source chip: quieter, not all-caps shout */
.token-source {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-dim);
  background: rgba(18, 18, 18, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* Calm note: keep below actions, never float over token card */
.compose-panel .calm-note {
  position: relative;
  z-index: 0;
  margin-top: 18px;
  clear: both;
}
.compose-panel .calm-note.is-ok {
  border-color: rgba(224, 120, 0, 0.28);
  background: #fff8ef;
  color: #5c3a12;
}
.compose-panel .calm-note.is-warn {
  border-color: rgba(160, 90, 20, 0.35);
  background: #fff6ea;
  color: #6b3210;
}

/* Wallet actions: keep claim visible as secondary accent when enabled */
#btn-claim:not([disabled]):not(.is-disabled) {
  border-color: rgba(224, 120, 0, 0.4);
  color: #a85a00;
  background: #fff8ef;
}
#btn-claim:not([disabled]):not(.is-disabled):hover {
  background: rgba(224, 120, 0, 0.12);
}

/* History empty: avoid clipped copy */
.app-aside .empty p {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Token card final containment (no absolute skeleton bleeding) */
.token-card {
  position: relative;
  z-index: 0;
  isolation: isolate;
  contain: layout paint;
  overflow: hidden;
  max-height: none;
}
#token-loading.shimmer-block {
  position: relative;
  inset: auto;
  z-index: 1;
  padding: 2px 0;
}
.token-card.is-loading {
  min-height: 0;
}
.token-card.is-loading #token-loading.shimmer-block {
  position: relative;
}

/* Status flash quieter under reduced motion already covered by global * rule */
@media (prefers-reduced-motion: reduce) {
  .app-toast {
    transition: none;
    transform: translateX(-50%) translateY(0);
  }
  .app-toast.is-in { opacity: 1; }
  .btn-post-spin, .btn-write-spin { animation: none !important; border-top-color: #fff; opacity: 0.85; }
  .compose-status.is-live { animation: none !important; }
}

@media (max-width: 560px) {
  .app-toast {
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: none;
    transform: translateX(0) translateY(12px);
    width: auto;
  }
  .app-toast.is-in {
    transform: translateX(0) translateY(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .app-toast { transform: none; }
    .app-toast.is-in { transform: none; }
  }
}
