/* Landing, direction C: a first screen with the line and sign-in, three short beats that each show one real piece of the console, then sign-in again. */
.sprite { position: absolute; }
body { background: var(--color-bg); }

.hero, .story, .close { width: min(100% - 2 * var(--space-sm), 1120px); margin-inline: auto; }

/* First screen: one centred column over a faint plum-magenta glow */
.hero {
  position: relative; isolation: isolate; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-md);
  padding-block: var(--space-xl); text-align: center;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 10% -20%;
  pointer-events: none; /* no glow: the dark landing is flat */
}
/* Behind the centre: two real console screens, tilted, blurred and darkened so the copy stays the only thing you read */
.hero-bg { position: absolute; z-index: -2; inset: 0 calc(50% - 50vw); overflow: clip; pointer-events: none; }
.shot {
  position: absolute; top: 50%; width: min(64vw, 1080px); height: auto; border-radius: var(--radius-card);
  opacity: .6; filter: blur(6px) brightness(3.4) contrast(1.15) saturate(1.3);
}
.shot.home { left: 50%; translate: -88% -58%; rotate: -6deg; }
.shot.convs { left: 50%; translate: -12% -40%; rotate: 5deg; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 38% at 50% 50%, color-mix(in oklch, var(--color-bg) 90%, transparent) 35%, transparent 100%),
    radial-gradient(ellipse 90% 90% at 50% 50%, transparent 60%, color-mix(in oklch, var(--color-bg) 80%, transparent) 100%);
}
.logo { display: block; height: 44px; width: auto; }
.headline {
  margin: 0; max-width: 14ch;
  font: 500 clamp(2.5rem, 1.4rem + 4vw, 4.5rem)/1.04 var(--font-display);
  letter-spacing: -0.02em; color: var(--color-ink); text-wrap: balance;
}
.headline span { color: var(--color-muted); }
.lede { margin: 0; max-width: 44ch; font-size: var(--text-md); color: var(--color-ink-2); text-wrap: balance; }
.next {
  position: absolute; bottom: var(--space-md); left: 50%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 44px;
  color: var(--color-muted); font-size: var(--text-xs); text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}
.next::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; translate: 0 -2px; }
.next:hover { color: var(--color-ink); }

.signin { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: 64px; min-width: 280px; padding: 0 var(--space-md);
  font-size: 1.125rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none;
  border-radius: var(--radius-control); border: 1px solid transparent;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn.primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn.primary:hover { background: color-mix(in oklch, var(--color-accent) 86%, var(--color-ink)); }
.btn.secondary { border-color: var(--color-rule); background: var(--color-surface); color: var(--color-ink-2); }
.btn.secondary:hover { background: var(--color-raised); }
.tmark { width: 28px; height: 28px; fill: currentColor; flex: none; }

/* The story: three beats, copy on the left and the product on the right */
.story { display: flex; flex-direction: column; gap: clamp(var(--space-xl), 10vw, 8rem); padding-block: var(--space-xl); }
.beat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--space-xl); }
.beat-copy { display: flex; flex-direction: column; gap: var(--space-xs); }
.beat-n { font: 500 var(--text-xs)/1 var(--font-mono); color: var(--color-violet); }
.beat h2 { margin: 0; font: 500 var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }
.beat-copy p { margin: 0; max-width: 34ch; font-size: var(--text-md); color: var(--color-muted); }

/* Panels reuse the console's surfaces, chips, bubbles and timeline */
.panel { margin: 0; background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); overflow: clip; }
.panel-head { display: flex; flex-direction: column; gap: 2px; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-rule); }
.panel-head b { font: 500 1.0625rem/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--color-ink); }
.panel-head span { font-size: var(--text-xs); color: var(--color-muted); }

.chat { list-style: none; margin: 0; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-2xs); }
.msg { max-width: 85%; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-card); color: var(--color-ink); }
.msg.customer { align-self: flex-start; background: var(--color-raised); border: 1px solid var(--color-rule); }
.msg.agent { align-self: flex-end; background: var(--color-violet-wash); }

.timeline { list-style: none; margin: 0; padding: var(--space-md); display: flex; flex-direction: column; }
.tl-step { position: relative; display: flex; gap: var(--space-xs); padding-bottom: var(--space-md); }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 1px; background: var(--color-violet); opacity: .5; }
.tl-step:last-child::before { display: none; }
.tl-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; background: var(--color-surface); color: var(--color-violet); }
.tl-step.ok .tl-mark { color: var(--color-save); }
.tl-mark .icon { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-step > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3xs); }
.tl-step p { margin: 0; }
.label { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); text-transform: uppercase; letter-spacing: .04em; }
.t { font-weight: 500; color: var(--color-ink); }
.t.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.money { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.note { font-size: var(--text-xs); color: var(--color-muted); }
.note b { font-weight: 500; color: var(--color-ink); }
.why { margin: var(--space-3xs) 0 0; padding-left: var(--space-sm); color: var(--color-ink-2); }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-2xs); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); }

/* Close: sign in again, then the demo note */
.close { display: flex; flex-direction: column; align-items: center; gap: var(--space-md); padding-block: var(--space-xl); margin-top: var(--space-xl); border-top: 1px solid var(--color-rule); text-align: center; }
.close h2 { margin: var(--space-lg) 0 0; max-width: 20ch; font: 500 var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); text-wrap: balance; }
.note-demo { margin: var(--space-lg) 0 0; font-size: var(--text-xs); color: var(--color-muted); }

/* Beats rise in as they scroll into view. Plain CSS, only where scroll timelines exist and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .beat-copy, .panel { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
    .panel { animation-range: entry 20% cover 40%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 899px) {
  .beat { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .beat h2, .close h2 { font-size: var(--text-xl); }
}
@media (max-width: 599px) {
  .logo { height: 36px; }
  .lede { font-size: var(--text-sm); }
  .signin { flex-direction: column; align-items: stretch; width: 100%; }
  .btn { min-width: 0; padding-inline: var(--space-sm); }
  .shot { width: 130vw; }
  .hero-bg::after {
    background:
      radial-gradient(ellipse 60% 34% at 50% 50%, color-mix(in oklch, var(--color-bg) 88%, transparent) 40%, transparent 100%),
      radial-gradient(ellipse 130% 100% at 50% 50%, transparent 65%, color-mix(in oklch, var(--color-bg) 70%, transparent) 100%);
  }
  .shot.home { translate: -70% -75%; }
  .shot.convs { translate: -30% -15%; }
  .panel-head, .chat, .timeline { padding-inline: var(--space-sm); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .next { transition: none; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
