body { min-width: 0; }

/* ── Page chrome ── */
.page { max-width: 1280px; margin: 0 auto; padding: 0 64px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  display: flex; align-items: center; gap: 18px;
}
.nav-brand .mark { width: 56px; height: 56px; display:flex; align-items:center; justify-content:center; }
.nav-brand .word {
  font-family: var(--sans); font-weight: 400;
  font-size: 13px; letter-spacing: 0.42em; text-transform: uppercase;
  opacity: 0.85;
}
.nav-links {
  display: flex; gap: 48px; justify-content: center;
  flex: 1;
}
.nav-links a {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  opacity: 0.75; transition: opacity 200ms;
}
.nav-links a:hover { opacity: 1; }
.nav-cta { flex-shrink: 0; }
.nav-brand { flex-shrink: 0; }

.btn {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; padding: 14px 22px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone); cursor: pointer; text-decoration: none;
  display: inline-block; transition: background 200ms, color 200ms, border-color 200ms;
  white-space: nowrap;
}
.btn:hover { background: var(--brass); border-color: var(--brass); }
.btn-ghost {
  background: transparent; color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 96px 0 120px;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 32px;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: 58px; line-height: 1.05; letter-spacing: -0.015em;
  margin: 0 0 28px;
  white-space: nowrap;
}
.hero-body {
  font-size: 16px; line-height: 1.75; max-width: 440px;
  opacity: 0.78; margin: 0 0 40px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; }

.feature-row {
  display: flex; gap: 8px; align-items: stretch;
}
.feature {
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  border-right: 1px solid var(--rule);
}
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brass);
  flex-shrink: 0;
}
.feature-label {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; line-height: 1.5;
}

/* ── Hero conversation column ── */
.convo-col {
  position: relative;
  display: flex; flex-direction: column;
  padding-left: 40px;
}
.convo-thread-line {
  position: absolute;
  left: 0; top: 64px; bottom: 0;
  width: 1px;
  background: var(--rule);
}
.convo-eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; opacity: 0.55; margin-bottom: 28px;
  align-self: flex-end;
}
.convo-mark {
  position: absolute; left: -28px; top: 60px;
  width: 56px; height: 56px;
  background: var(--bone);
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.convo-mark svg { width: 36px; height: 36px; }

.bubble {
  max-width: 320px;
  padding: 20px 24px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.bubble.from-bot {
  background: var(--bone-soft);
  border-radius: 4px 16px 16px 16px;
  align-self: flex-start;
  margin-left: 32px;
}
.bubble.from-user {
  background: var(--brass);
  color: var(--accent-on);
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end;
  margin-right: 64px;
  position: relative;
}
.bubble-from {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; margin-bottom: 14px;
  color: var(--brass);
}
.bubble.from-user .bubble-from { color: color-mix(in srgb, var(--accent-on) 85%, transparent); }
.bubble p { margin: 0 0 12px; }
.bubble p:last-of-type { margin-bottom: 0; }
.bubble-meta {
  font-family: var(--mono); font-size: 10px;
  opacity: 0.5; text-align: right;
  margin-top: 14px; letter-spacing: 0.08em;
}
.bubble.from-user .bubble-meta { color: color-mix(in srgb, var(--accent-on) 70%, transparent); opacity: 1; }
.avatar {
  position: absolute;
  right: -56px; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brass-light) 0%, var(--brass-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-on);
  font-family: var(--sans); font-weight: 400; font-size: 13px;
  letter-spacing: 0.08em;
  border: 2px solid var(--bone);
}

/* ───── LIVE CHAT MODULE ───── */
.convo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; margin-bottom: 22px;
  align-self: stretch;
}
.convo-tabs {
  display: flex; gap: 2px;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bone) 60%, transparent);
  backdrop-filter: blur(6px);
}
.convo-tab {
  position: relative;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 9px 18px 8px;
  border: 0; background: transparent;
  color: var(--ink); opacity: 0.5;
  cursor: pointer;
  border-radius: 999px;
  transition: opacity 280ms var(--ease-standard), color 280ms var(--ease-standard), background 280ms var(--ease-standard);
  overflow: hidden;
}
.convo-tab:hover { opacity: 0.85; }
.convo-tab.is-active {
  opacity: 1;
  color: var(--brass);
  background: color-mix(in srgb, var(--brass) 10%, transparent);
}
.convo-tab .tab-bar {
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 1px;
  background: color-mix(in srgb, var(--brass) 24%, transparent);
  transform: scaleX(0); transform-origin: left center;
}
.convo-tab.is-active .tab-bar {
  animation: tabFill var(--thread-dur, 9000ms) cubic-bezier(0.32, 0.08, 0.24, 1) forwards;
}
@keyframes tabFill {
  from { transform: scaleX(0); background: color-mix(in srgb, var(--brass) 18%, transparent); }
  to   { transform: scaleX(1); background: color-mix(in srgb, var(--brass) 70%, transparent); }
}

.convo-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.convo-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-error);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal-error) 60%, transparent);
  animation: livePulse 1800ms ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal-error) 50%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in srgb, var(--signal-error) 0%,  transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal-error) 0%,  transparent); }
}

.convo-eyebrow.is-dynamic {
  align-self: flex-start;
  margin-bottom: 24px;
  transition: opacity 320ms var(--ease-standard);
}

.convo-stage {
  position: relative;
  /* Locked to fit the tallest thread so no message-arrival shifts page layout. */
  min-height: 620px;
  display: flex; flex-direction: column;
  will-change: contents;
}

/* Motion handles entrance — only declare initial states needed for hydration */
.convo-stage .bubble,
.convo-stage .typing {
  will-change: transform, opacity;
}
.convo-stage .bubble > * { will-change: transform, opacity; }

/* typing indicator (visual only — Motion drives entrance/exit) */
.typing {
  width: 76px;
  padding: 16px 18px;
  margin-bottom: 28px;
  border-radius: 4px 16px 16px 16px;
  background: var(--bone-soft);
  align-self: flex-start; margin-left: 32px;
  display: flex; gap: 6px; align-items: center;
  box-sizing: border-box;
}
.typing.from-user {
  background: var(--brass);
  border-radius: 16px 4px 16px 16px;
  align-self: flex-end; margin-left: 0; margin-right: 64px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  animation: typingBounce 1200ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.typing.from-user span { background: color-mix(in srgb, var(--accent-on) 75%, transparent); }
.typing span:nth-child(2) { animation-delay: 200ms; }
.typing span:nth-child(3) { animation-delay: 400ms; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0) scale(0.85); opacity: 0.4; }
  40%           { transform: translateY(-4px) scale(1);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .convo-tab.is-active .tab-bar { animation: none; transform: scaleX(1); background: var(--brass); }
  .convo-live .dot { animation: none; }
  .typing span { animation: none; opacity: 0.7; }
}

/* ── Centerpiece banner ── */
.banner {
  background: var(--bone-soft);
  padding: 88px 0;
  text-align: center;
  position: relative;
}
.banner-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px;
}
.banner-rule {
  flex: 0 0 80px; height: 1px; background: var(--rule);
}
.banner-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }
.banner h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: 44px; line-height: 1.25; letter-spacing: -0.005em;
  margin: 0;
  max-width: 720px;
}

/* ── Built for strip ── */
.builtfor {
  padding: 64px 0 80px;
  background: var(--bone-mute);
}
.builtfor-label {
  text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: 22px; line-height: 1.4; letter-spacing: -0.005em;
  max-width: 640px; margin: 0 auto 44px;
  opacity: 0.85;
}
.builtfor-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  align-items: stretch;
}
.bf-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 14px;
  padding: 24px 12px;
  text-align: center;
  font-family: var(--sans); font-weight: 400; font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0.78;
  border-left: 1px solid var(--rule);
}
.bf-item:first-child { border-left: 0; }
.bf-item svg { width: 28px; height: 28px; color: var(--brass); }

/* ── How it works ── */
.how {
  padding: 128px 0;
}
.how-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
}
.how-eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 16px;
}
.how h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: 56px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 0;
}
.how-lede {
  font-size: 16px; line-height: 1.75; opacity: 0.75; max-width: 520px; margin: 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.step {
  background: var(--bone);
  padding: 56px 40px;
  display: flex; flex-direction: column;
  min-height: 360px;
}
.step-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 32px;
}
.step h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.005em;
  margin: 0 0 16px;
}
.step p {
  font-size: 14px; line-height: 1.7; opacity: 0.72;
  margin: 0 0 auto;
}
.step-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.5;
  padding-top: 32px; margin-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ── Outcome stats ── */
.outcomes {
  padding: 96px 0;
  background: var(--surface-inverse);
  color: var(--on-surface-inverse);
}
.outcomes-head {
  text-align: center; margin-bottom: 64px;
}
.outcomes-head .eyebrow {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent-inverse); margin-bottom: 16px;
}
.outcomes-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: 44px; line-height: 1.2; margin: 0; letter-spacing: -0.005em;
}
.outcomes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
}
.stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid color-mix(in srgb, var(--on-surface-inverse) 12%, transparent);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--serif); font-weight: 300;
  font-size: 88px; line-height: 1; letter-spacing: -0.02em;
  color: var(--accent-inverse); margin-bottom: 16px;
}
.stat-num sup { font-size: 32px; vertical-align: super; opacity: 0.7; }
.stat-label {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; opacity: 0.7;
  margin-bottom: 12px;
}
.stat-desc {
  font-size: 13px; line-height: 1.65; opacity: 0.55;
}
.stat-source {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-inverse);
  text-decoration: none;
  opacity: 0.75;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-inverse) 28%, transparent);
  padding-bottom: 3px;
  transition: opacity 200ms, border-color 200ms;
}
.stat-source:hover {
  opacity: 1;
  border-bottom-color: var(--accent-inverse);
}

/* ── Principles ── */
.principles {
  padding: 128px 0;
}
.principles-eyebrow {
  text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--brass); margin-bottom: 20px;
}
.principles-title {
  text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: 48px; line-height: 1.2; letter-spacing: -0.005em;
  max-width: 760px; margin: 0 auto 80px;
}
.principles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.principle {
  background: var(--bone);
  padding: 48px 40px;
}
.principle .p-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em;
  color: var(--brass); margin-bottom: 20px;
}
.principle h4 {
  font-family: var(--serif); font-weight: 300;
  font-size: 24px; line-height: 1.25; letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.principle p {
  font-size: 14px; line-height: 1.7; opacity: 0.72;
  margin: 0;
}

/* ── CTA ── */
.cta-band {
  background: var(--brass);
  color: var(--accent-on);
  padding: 96px 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: 56px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.cta-band p {
  font-size: 16px; line-height: 1.6; opacity: 0.85;
  max-width: 540px; margin: 0 auto 40px;
}
.cta-band .btn {
  background: var(--accent-on); color: var(--brass); border-color: var(--accent-on);
}
.cta-band .btn:hover { background: transparent; color: var(--accent-on); border-color: var(--accent-on); }

/* ── Footer ── */
.foot {
  padding: 80px 0 56px;
  background: var(--surface-inverse);
  color: var(--on-surface-inverse);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--on-surface-inverse) 12%, transparent);
}
.foot-brand .mark { margin-bottom: 24px; }
.foot-brand .word {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.42em;
  text-transform: uppercase; margin-bottom: 24px;
}
.foot-brand p {
  font-size: 13px; line-height: 1.7; opacity: 0.6;
  max-width: 320px; margin: 0;
}
.foot-col-title {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; opacity: 0.6; margin-bottom: 24px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.foot-col a {
  color: var(--on-surface-inverse); text-decoration: none; font-size: 14px;
  opacity: 0.78; transition: opacity 200ms;
}
.foot-col a:hover { opacity: 1; color: var(--accent-inverse); }
.foot-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  opacity: 0.5;
}
