/* LeadOcto - Explore page (2026 redesign).
 *
 * Ported from the design bundle's 09-explore.html <style> block. The
 * topnav / footer / proposal-link rules from the prototype are dropped
 * because the shared chrome (lo-chrome.css) owns them. Tokens, .btn,
 * .eyebrow and .dot come from lo-shared.css.
 *
 * The prototype shipped zero media queries (desktop-only). The
 * "Responsive" block at the bottom is new: it makes every section fold
 * down cleanly to phone widths so the page works on mobile.
 */

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 80px 0 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 78% 8%, rgba(27, 181, 168, 0.16) 0%, transparent 65%),
    radial-gradient(40% 40% at 0% 80%, rgba(27, 181, 168, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 0 var(--s7);
}
.eyebrow-row { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--turquoise-700); }
.hero p.sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0 0 32px;
  max-width: 600px;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Live ticker */
.ticker {
  margin-top: 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
}
.ticker-head {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turquoise-300);
}
.ticker-head .ind { display: inline-flex; align-items: center; gap: 8px; }
.ticker-head .ind::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--turquoise-500);
  animation: lo-blink 1.4s infinite;
  flex-shrink: 0;
}
@keyframes lo-blink { 50% { opacity: 0.4; } }
.ticker-feed {
  display: flex;
  padding: 18px 24px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.ticker-feed::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0; width: 80px;
  background: linear-gradient(90deg, transparent, var(--ink));
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: lo-ticker-scroll 50s linear infinite;
}
@keyframes lo-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-event {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 14px/1 var(--font-sans);
  color: rgba(250, 250, 247, 0.85);
}
.ticker-event b { color: var(--paper); font-weight: 700; }
.ticker-event .pill {
  background: rgba(125, 214, 205, 0.12);
  color: var(--turquoise-300);
  font: 700 10px/1 var(--font-mono);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-event .pill.book { background: rgba(47, 158, 85, 0.15); color: #7DD6CD; }
.ticker-event .pill.click { background: rgba(255, 255, 255, 0.08); color: rgba(250, 250, 247, 0.6); }
.ticker-event .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 250, 247, 0.45);
  margin-left: 4px;
  letter-spacing: 0.04em;
}

/* ============ Section head ============ */
.section-head {
  max-width: 1280px;
  margin: 0 auto 56px;
  padding: 0 var(--s7);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: end;
}
.section-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-head h2 .accent { color: var(--turquoise-700); }
.section-head .lede {
  color: var(--ink-700);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
  max-width: 540px;
}
.section-head.tour-head-centered,
.section-head.roles-head,
.section-head.reasons-stack-head {
  grid-template-columns: 1fr;
  gap: 0;
}
.section-head.tour-head-centered { text-align: center; margin-bottom: 16px; }
.section-head.tour-head-centered h2 { max-width: none; }
.section-head.roles-head { margin-bottom: 24px; }
.section-head.reasons-stack-head { margin-bottom: 36px; padding: 0; }

/* ============ Why now ============ */
.why-now {
  padding: 96px 0 80px;
  border-top: 1px solid var(--hairline);
}
.clock-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s7);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.clock-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.clock-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 100% 0%, rgba(27, 181, 168, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.clock-card > * { position: relative; z-index: 1; }
.clock-card .lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--turquoise-300);
}
.clock-card h3 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.clock-card h3 .accent { color: var(--turquoise-300); }

.visitor-stream {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
}
.vs-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  animation: lo-vs-in 480ms ease-out;
  transition: opacity 400ms, background 400ms, border-color 400ms;
}
@keyframes lo-vs-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.vs-row.lost {
  opacity: 0.45;
  border-left-color: var(--err-500);
  background: rgba(217, 68, 68, 0.06);
}
.vs-row.won {
  border-left-color: var(--turquoise-500);
  background: rgba(27, 181, 168, 0.08);
}
.vs-row .when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(250, 250, 247, 0.45);
  letter-spacing: 0.04em;
}
.vs-row .desc {
  font: 500 13.5px/1.3 var(--font-sans);
  color: rgba(250, 250, 247, 0.88);
}
.vs-row .desc small {
  display: block;
  font: 400 11.5px/1.3 var(--font-mono);
  color: rgba(250, 250, 247, 0.45);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.vs-row .verdict {
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-pill);
}
.vs-row.lost .verdict { background: rgba(217, 68, 68, 0.15); color: #ffb4b4; }
.vs-row.won .verdict { background: rgba(125, 214, 205, 0.18); color: var(--turquoise-300); }

.toggle-on-off {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  padding: 4px;
  align-self: flex-start;
}
.toggle-on-off button {
  appearance: none;
  border: 0; background: transparent;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.toggle-on-off button.active { background: var(--turquoise-500); color: var(--ink); }
.toggle-on-off button.lost.active { background: var(--err-500); color: var(--paper); }

.clock-footer {
  display: flex; gap: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.clock-footer .cf-cell {
  flex: 1;
  display: flex; flex-direction: column; gap: 4px;
}
.clock-footer .cf-cell .lbl {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(250, 250, 247, 0.5);
}
.clock-footer .cf-cell .v {
  font: 700 28px/1 var(--font-sans);
  letter-spacing: -0.02em;
}
.clock-footer .cf-cell .v.bad { color: #ff9b9b; }
.clock-footer .cf-cell .v.good { color: var(--turquoise-300); }

.reasons { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.reason {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  transition: border-color 160ms, transform 160ms, box-shadow 160ms;
}
.reason:hover {
  border-color: var(--turquoise-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.reason .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--turquoise-100);
  color: var(--turquoise-900);
  display: grid; place-items: center;
}
.reason h4 {
  margin: 4px 0 6px;
  font: 600 18px/1.25 var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.reason p { margin: 0; color: var(--ink-700); font-size: 14px; line-height: 1.5; }
.reason .stat {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--turquoise-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.reason .stat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--turquoise-500);
}

/* ============ Interactive product tour ============ */
.tour {
  padding: 96px 0;
  background: var(--surface-sunken);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.tour-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--s7); }
.tour-lede {
  text-align: center; color: var(--ink-700); font-size: 17px;
  max-width: 580px; margin: 0 auto 48px;
}
.tour-stage {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}
.step-list { display: flex; flex-direction: column; gap: 8px; }
.step-card {
  appearance: none;
  font-family: var(--font-sans);
  text-align: left;
  width: 100%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, transform 160ms;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.step-card:hover { border-color: var(--turquoise-300); }
.step-card.active {
  border-color: var(--turquoise-500);
  background: linear-gradient(180deg, #fff 0%, var(--turquoise-50) 100%);
  box-shadow: 0 0 0 3px rgba(27, 181, 168, 0.10);
}
.step-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--turquoise-700);
  font-weight: 700;
}
.step-card .title {
  font: 600 17px/1.25 var(--font-sans);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.step-card .desc {
  font: 400 13px/1.5 var(--font-sans);
  color: var(--ink-700);
  margin-top: 2px;
}
.step-card.active .desc { color: var(--ink); }
.step-card .value-tag {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--turquoise-700);
  letter-spacing: 0.04em;
}
.step-card .value-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--turquoise-500);
}

.player {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: sticky; top: 88px;
}
.player-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: #FBFAF6;
  border-bottom: 1px solid var(--hairline);
}
.player-bar .lights span {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-100);
  margin-right: 5px;
}
.player-bar .filename,
.player-bar .duration {
  font: 400 11.5px/1 var(--font-mono);
  color: var(--ink-500);
  letter-spacing: 0.04em;
}

.player-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #F5F1E6 0%, #E8E2D2 100%);
  overflow: hidden;
}
.player-canvas .scene { position: absolute; inset: 0; display: none; padding: 40px; }
.player-canvas .scene.active { display: block; }

/* Scene 1: install */
.scene-install {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.scene-install:not(.active) { display: none !important; }
.install-snippet {
  background: var(--ink);
  color: #d6ece8;
  border-radius: var(--r-sm);
  padding: 24px 28px;
  font: 400 13px/1.7 var(--font-mono);
  box-shadow: var(--shadow-pop);
  max-width: 560px;
  width: 100%;
  position: relative;
  word-break: break-word;
}
.install-snippet .tk { color: #7DD6CD; }
.install-snippet .at { color: #C9B994; }
.install-snippet .st { color: #E4E4DE; }
.install-snippet .cm { color: rgba(255, 255, 255, 0.4); }
.install-snippet .typing-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--turquoise-300);
  vertical-align: middle;
  animation: lo-caret 1s steps(2) infinite;
}
@keyframes lo-caret { 50% { opacity: 0; } }
.install-meta {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-700);
}
.install-meta .ok { color: var(--turquoise-700); }
.install-meta .ok::before { content: "\2713 "; font-family: var(--font-sans); }
.install-secs { color: var(--turquoise-700); font-weight: 700; }

/* Scene 2: visitor flow */
.scene-visitor { padding: 24px !important; }
.flow-site {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  padding: 20px 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.flow-site .fnav {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}
.flow-site .fnav .b { font: 700 13px/1 var(--font-sans); color: var(--ink); }
.flow-site .fnav .lk { display: flex; gap: 18px; font: 400 11px/1 var(--font-sans); color: var(--ink-500); }
.flow-site h5 {
  font: 700 26px/1.1 var(--font-sans);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  max-width: 320px;
  color: var(--ink);
}
.flow-site .copy { font-size: 12px; color: var(--ink-500); margin: 0; max-width: 320px; }
.flow-site .ph {
  margin-top: 18px;
  height: 100px;
  background: repeating-linear-gradient(45deg, #F5F1E6 0 2px, #E8E2D2 2px 6px);
  border-radius: 6px;
}
.flow-fab {
  position: absolute;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(27, 181, 168, 0.4);
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 200ms;
  z-index: 3;
}
.flow-fab img { height: 30px; width: auto; }
.flow-fab::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--turquoise-500);
  animation: lo-fab-pulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes lo-fab-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}
.flow-fab:hover { transform: scale(1.05); }
.flow-widget {
  position: absolute;
  right: 20px; bottom: 88px;
  width: 280px;
  max-width: calc(100% - 40px);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(10, 18, 20, 0.14);
  overflow: hidden;
  z-index: 4;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 280ms ease-out, transform 280ms ease-out;
  pointer-events: none;
}
.flow-widget.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.flow-widget .wh {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 10px;
}
.flow-widget .wh .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--turquoise-100);
  display: grid; place-items: center;
  overflow: hidden;
}
.flow-widget .wh .av img { height: 24px; width: auto; }
.flow-widget .wh-title { font: 700 13px/1.3 var(--font-sans); color: var(--ink); }
.flow-widget .wh-sub { font: 400 11px/1.3 var(--font-mono); color: var(--ink-500); margin-top: 2px; letter-spacing: 0.02em; }
.flow-widget .greet { padding: 10px 14px 6px; font: 400 12.5px/1.4 var(--font-sans); color: var(--ink-700); }
.flow-widget .channels { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.flow-channel {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: #fff;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 100ms;
}
.flow-channel:hover { background: var(--turquoise-50); border-color: var(--turquoise-300); }
.flow-channel:active { transform: scale(0.98); }
.flow-channel.primary { background: var(--turquoise-50); border-color: var(--turquoise-300); }
.flow-channel.clicked { background: var(--turquoise-500); border-color: var(--turquoise-500); }
.flow-channel.clicked .nm { color: var(--ink); font-weight: 700; }
.flow-channel .ic {
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.flow-channel .ic.wa { background: #DCF8C6; color: #075E54; }
.flow-channel .ic.cal { background: #E5E5FF; color: #3F3FCB; }
.flow-channel .ic.mail { background: var(--ink-50); color: var(--ink-700); }
.flow-channel .nm { flex: 1; font: 600 12px/1.2 var(--font-sans); color: var(--ink); }
.flow-channel .pill {
  font: 700 9px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
}
.demo-cursor {
  position: absolute;
  width: 22px; height: 28px;
  z-index: 5;
  pointer-events: none;
  transition: transform 700ms cubic-bezier(.4, .14, .3, 1);
  transform: translate3d(60%, 60%, 0);
}
.demo-cursor svg { filter: drop-shadow(0 2px 4px rgba(10, 18, 20, 0.3)); }
.demo-cursor.click::before {
  content: "";
  position: absolute;
  left: -10px; top: -2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--turquoise-500);
  background: rgba(27, 181, 168, 0.15);
  animation: lo-click-pulse 700ms ease-out;
}
@keyframes lo-click-pulse {
  from { transform: scale(0.4); opacity: 1; }
  to { transform: scale(1.3); opacity: 0; }
}

/* Scene 3: incoming WhatsApp */
.scene-phone {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px !important;
}
.scene-phone:not(.active) { display: none !important; }
.phone {
  background: var(--ink);
  width: 280px;
  max-width: 100%;
  height: 100%;
  max-height: 460px;
  border-radius: 32px;
  padding: 14px 12px 18px;
  box-shadow: 0 20px 50px rgba(10, 18, 20, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 12px;
  z-index: 2;
}
.phone-screen {
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  background-image: linear-gradient(135deg, #efe1c8 0%, #d8c8a0 100%);
}
.phone-bar {
  background: #075E54;
  color: #fff;
  padding: 32px 14px 12px;
  display: flex; align-items: center; gap: 10px;
}
.phone-bar .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--turquoise-100);
  display: grid; place-items: center;
  overflow: hidden;
}
.phone-bar .avatar img { height: 22px; }
.phone-bar .who { display: flex; flex-direction: column; gap: 2px; }
.phone-bar .who .name { font: 600 13px/1 var(--font-sans); }
.phone-bar .who .status { font: 400 10.5px/1 var(--font-sans); color: rgba(255, 255, 255, 0.7); }
.phone-msgs {
  flex: 1;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.msg {
  max-width: 80%;
  padding: 8px 11px;
  border-radius: 12px;
  font: 400 12.5px/1.4 var(--font-sans);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  position: relative;
  animation: lo-msg-in 360ms ease-out both;
}
@keyframes lo-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg .time {
  display: block;
  font: 400 9.5px/1 var(--font-mono);
  color: var(--ink-500);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.msg.in { background: #fff; border-top-left-radius: 4px; align-self: flex-start; }
.msg.out { background: #DCF8C6; border-top-right-radius: 4px; align-self: flex-end; }
.msg.out .time { color: #4a6b3a; }

/* Scene 4: dashboard */
.scene-dash { padding: 24px !important; }
.scene-dash:not(.active) { display: none !important; }
.dash {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  height: 100%;
  display: flex; flex-direction: column; gap: 16px;
}
.dash h6 { font: 600 18px/1 var(--font-sans); margin: 0; letter-spacing: -0.01em; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-kpi { border: 1px solid var(--hairline); border-radius: 6px; padding: 14px 16px; }
.dash-kpi .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.dash-kpi .big {
  font: 700 28px/1 var(--font-sans);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: 6px;
}
.dash-kpi .big .unit { color: var(--turquoise-700); font-size: 18px; }
.dash-kpi .bar {
  height: 4px; background: var(--ink-50);
  border-radius: 999px; overflow: hidden;
  margin-top: 10px;
}
.dash-kpi .bar div {
  height: 100%; background: var(--turquoise-500);
  width: 82%;
  animation: lo-bar-fill 1200ms ease-out both;
}
@keyframes lo-bar-fill { from { width: 0; } }
.dash-octo {
  background: linear-gradient(135deg, #073F3B 0%, #0E7A72 100%);
  color: var(--paper);
  border-radius: 6px;
  padding: 16px 18px;
  display: flex; gap: 12px;
  align-items: flex-start;
}
.dash-octo .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid; place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(125, 214, 205, 0.3);
}
.dash-octo .av img { height: 22px; }
.dash-octo .label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise-300);
  margin-bottom: 4px;
}
.dash-octo .body-text { font: 500 12.5px/1.35 var(--font-sans); color: var(--paper); }
.dash-octo .body-text b { color: var(--turquoise-300); font-weight: 700; }
.dash-octo .btn-apply {
  margin-top: 10px;
  background: var(--turquoise-500);
  color: var(--ink);
  border: 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Player toolbar */
.player-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid var(--hairline);
}
.play-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  flex-shrink: 0;
  transition: background 120ms;
}
.play-btn:hover { background: #1a2326; }
.play-btn svg { margin-left: 2px; }
.play-btn.playing svg { margin: 0; }
.scrub {
  flex: 1;
  height: 4px;
  background: var(--ink-50);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
}
.scrub-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--turquoise-500);
  border-radius: 999px;
  transition: width 280ms ease-out;
}
.scrub-dots {
  position: absolute;
  inset: -3px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}
.scrub-dot {
  appearance: none; padding: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink-300);
  cursor: pointer;
  transition: border-color 160ms, transform 160ms, background 160ms;
}
.scrub-dot.done { border-color: var(--turquoise-500); }
.scrub-dot.current { border-color: var(--turquoise-500); background: var(--turquoise-500); transform: scale(1.4); }
.player-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.player-time b { color: var(--ink); font-weight: 700; }

/* ============ Role selector ============ */
.roles { padding: 96px 0; }
.roles-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--s7); }
.roles-lede { color: var(--ink-700); font-size: 17px; max-width: 580px; margin: 0 0 32px; }
.role-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 32px;
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}
.role-tabs::-webkit-scrollbar { display: none; }
.role-tab {
  appearance: none; border: 0; background: transparent;
  padding: 14px 4px;
  margin-right: 18px;
  font: 500 15px/1 var(--font-sans);
  color: var(--ink-500);
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.role-tab .role-ic { width: 18px; height: 18px; flex-shrink: 0; }
.role-tab:hover { color: var(--ink); }
.role-tab.active { color: var(--ink); font-weight: 600; }
.role-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 18px; bottom: 0;
  height: 2px;
  background: var(--turquoise-500);
}
.role-pane { display: none; }
.role-pane.active {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.role-copy h3 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.role-copy h3 .accent { color: var(--turquoise-700); }
.role-copy p {
  margin: 0 0 28px;
  color: var(--ink-700);
  font-size: 17px;
  line-height: 1.55;
  max-width: 520px;
}
.role-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.role-outcome {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.role-outcome .big {
  font: 700 26px/1 var(--font-sans);
  letter-spacing: -0.025em;
  color: var(--turquoise-700);
}
.role-outcome .lbl {
  margin-top: 6px;
  font: 400 11.5px/1.35 var(--font-mono);
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.role-viz {
  background: var(--surface-sunken);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 28px;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.role-viz .ph {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, rgba(10, 18, 20, 0.04) 0 2px, rgba(10, 18, 20, 0.02) 2px 14px);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
  padding: 24px;
}

/* ============ Cost of waiting ============ */
.cost {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.cost::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(217, 68, 68, 0.18) 0%, transparent 55%),
    radial-gradient(50% 60% at 0% 100%, rgba(27, 181, 168, 0.12) 0%, transparent 65%);
}
.cost-inner { max-width: 1280px; margin: 0 auto; padding: 0 var(--s7); position: relative; }
.cost-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 56px;
}
.cost-head .eyebrow { color: var(--turquoise-300); }
.cost-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 0;
  text-wrap: balance;
}
.cost-head h2 .accent { color: var(--turquoise-300); }
.cost-head h2 .strike {
  color: rgba(250, 250, 247, 0.4);
  text-decoration: line-through;
  text-decoration-color: var(--err-500);
  text-decoration-thickness: 3px;
}
.cost-head .lede {
  color: rgba(250, 250, 247, 0.7);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}
.calc {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.calc-head {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
}
.calc-head h4 { color: var(--paper); font-weight: 700; margin: 0; letter-spacing: 0.14em; }
.calc-body { display: grid; grid-template-columns: 1.05fr 1fr 1fr; }
.calc-cell {
  padding: 32px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; flex-direction: column; gap: 12px;
}
.calc-cell:last-child { border-right: 0; }
.calc-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
}
.calc-cell .label.calc-label-gap { margin-top: 12px; }
.calc-cell.input { background: rgba(255, 255, 255, 0.02); }
.calc-input-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.calc-input-row input[type="range"] {
  flex: 1;
  height: 4px;
  background: rgba(125, 214, 205, 0.2);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  outline: none;
}
.calc-input-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--turquoise-500);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(125, 214, 205, 0.4);
  cursor: pointer;
}
.calc-input-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--turquoise-500);
  border: 3px solid var(--paper);
  cursor: pointer;
}
.calc-input-row .val {
  min-width: 110px; text-align: right;
  font: 700 22px/1 var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--paper);
}
.calc-input-row .val small {
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(250, 250, 247, 0.5);
  margin-left: 4px;
}
.calc-result { margin-top: 4px; }
.calc-result .v { font: 700 48px/1 var(--font-sans); letter-spacing: -0.03em; color: var(--paper); }
.calc-result.bad .v { color: #ff9b9b; }
.calc-result.good .v { color: var(--turquoise-300); }
.calc-result .desc { margin-top: 8px; color: rgba(250, 250, 247, 0.65); font-size: 13px; line-height: 1.5; }
.calc-result .desc b { color: var(--paper); }
.calc-foot {
  padding: 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.calc-foot .note {
  font: 400 12px/1.5 var(--font-mono);
  color: rgba(250, 250, 247, 0.5);
  letter-spacing: 0.04em;
  max-width: 540px;
}
.calc-foot .cta {
  background: var(--turquoise-500);
  color: var(--ink);
  border: 0;
  padding: 0 22px;
  height: 46px;
  border-radius: var(--r-pill);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.calc-foot .cta:hover { background: #20cdbf; }

/* ============ Reasons stack ============ */
.reasons-stack { padding: 96px 0; border-top: 1px solid var(--hairline); }
.reasons-stack-inner { max-width: 1080px; margin: 0 auto; padding: 0 var(--s7); }
.reasons-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.rstack-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 28px;
  align-items: center;
}
.rstack-item .nm {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--turquoise-700);
  letter-spacing: 0.04em;
}
.rstack-item .text {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;
}
.rstack-item .badge {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--r-pill);
  background: var(--turquoise-100);
  color: var(--turquoise-900);
  white-space: nowrap;
}

/* ============ Final CTA ============ */
.final-cta {
  padding: 96px 0 120px;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 75% 30%, rgba(27, 181, 168, 0.22) 0%, transparent 60%),
    radial-gradient(40% 40% at 12% 80%, rgba(27, 181, 168, 0.10) 0%, transparent 70%);
}
.final-cta-inner {
  position: relative;
  max-width: 1080px; margin: 0 auto; padding: 0 var(--s7);
  text-align: center;
}
.final-cta .eyebrow { color: var(--turquoise-300); }
.final-cta h2 {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 16px 0 20px;
  text-wrap: balance;
}
.final-cta h2 .accent { color: var(--turquoise-300); }
.final-cta p {
  font-size: 18px;
  color: rgba(250, 250, 247, 0.7);
  max-width: 520px;
  margin: 0 auto 36px;
}
.final-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-on-ink {
  background: transparent; color: var(--paper);
  border-color: rgba(250, 250, 247, 0.24);
}
.btn-on-ink:hover { background: rgba(250, 250, 247, 0.06); }

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .hero-inner,
  .section-head,
  .clock-grid,
  .tour-inner,
  .roles-inner,
  .cost-inner,
  .reasons-stack-inner { padding-left: var(--s5); padding-right: var(--s5); }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
  }
  .section-head .lede { max-width: 640px; }
  .clock-grid { grid-template-columns: 1fr; }
  .cost-head { grid-template-columns: 1fr; gap: 20px; }
  .tour-stage { grid-template-columns: 1fr; gap: 20px; }
  .player { position: static; }
  .role-pane.active { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .hero { padding: 56px 0 44px; }
  .ticker { margin-top: 36px; }
  .why-now,
  .tour,
  .roles,
  .cost,
  .reasons-stack { padding-top: 64px; padding-bottom: 64px; }
  .final-cta { padding: 64px 0 80px; }
  .clock-card { padding: 28px; }
  .player-canvas { aspect-ratio: auto; min-height: 440px; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-cell { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .calc-cell:last-child { border-bottom: 0; }
  .role-viz { aspect-ratio: 16 / 10; }
}

@media (max-width: 600px) {
  .hero-inner,
  .section-head,
  .clock-grid,
  .tour-inner,
  .roles-inner,
  .cost-inner,
  .reasons-stack-inner { padding-left: var(--s4); padding-right: var(--s4); }
  .hero h1 { max-width: 100%; }
  .hero p.sub { font-size: 17px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .ticker-head { font-size: 10.5px; }
  .clock-card { padding: 22px; }
  .clock-footer { gap: 16px; }
  .clock-footer .cf-cell .v { font-size: 22px; }
  .vs-row { grid-template-columns: 44px 1fr auto; gap: 8px; padding: 8px 10px; }
  .reason { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px; }
  .reason .icon { width: 40px; height: 40px; }
  .tour-lede,
  .roles-lede { font-size: 15px; }
  .player-canvas { min-height: 400px; }
  .player-canvas .scene { padding: 20px; }
  .scene-install { padding: 20px !important; gap: 16px; }
  .install-snippet { padding: 18px 18px; font-size: 12px; }
  .role-outcomes { gap: 8px; }
  .role-outcome { padding: 12px; }
  .role-outcome .big { font-size: 21px; }
  .role-outcome .lbl { font-size: 10.5px; }
  .role-tab { font-size: 14px; margin-right: 14px; }
  .calc-cell { padding: 24px 20px; }
  .calc-result .v { font-size: 38px; }
  .calc-foot { padding: 18px 20px; }
  .calc-foot .cta { width: 100%; justify-content: center; }
  .rstack-item {
    grid-template-columns: 36px 1fr;
    gap: 8px 14px;
    padding: 24px 0;
    align-items: start;
  }
  /* Pin all three children to explicit cells. A row-locked item with
   * no explicit grid-column auto-places into column 1, so `.text`
   * would otherwise land in the 36px number column (one word per
   * line) and bump `.nm` into the wide column. */
  .rstack-item .nm { grid-column: 1; grid-row: 1; }
  .rstack-item .text { font-size: 18px; grid-column: 2; grid-row: 1; }
  .rstack-item .badge { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .final-cta-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .vs-row { grid-template-columns: 1fr auto; }
  .vs-row .when:first-child { display: none; }
  .role-outcomes { grid-template-columns: 1fr; }
}

/* Respect reduced-motion: stop the looping ambient animations. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .ticker-head .ind::before,
  .flow-fab::after,
  .install-snippet .typing-cursor,
  .dash-kpi .bar div { animation: none; }
  .ticker-track { transform: none; }
}
