/* landing V2: the hero (rotating saving headline, the card with two buttons) and the agent chat visualizer beside it.
 * Builds on tokens.css, base.css (.lp-btn, .lp-accent) and hero.css (.lp-hero, .lp-top). agent.js drives it.
 * Class prefixes: .lp-hero2, .lp-viz. No inline styles (CSP): agent.js only toggles classes and sets custom properties. */

/* ───────────────────────── the hero's two columns ───────────────────────── */
.lp-hero2 {
  padding: 72px 0 104px;
  /* a faint white halo behind the window, the only light on the black */
  background: radial-gradient(50% 70% at 76% 46%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 72%), var(--lp-hero-bg);
  /* owner 2026-11-07: the hero is the whole first screen on any monitor (the window less the announcement bar and the
     nav above it), its two columns centred in it; content taller than the window just makes it taller. */
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--lp-nav-h) - var(--lp-announce-h));
  min-height: calc(100svh - var(--lp-nav-h) - var(--lp-announce-h));
}
.lp-hero2__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 580px);
  align-items: center;
  column-gap: 36px;
}
.lp-hero2__copy { min-width: 0; }
.lp-hero2__title {
  margin: 0;
  position: relative;
  font-family: var(--lp-font-body);
  font-weight: 600;
  /* agent.js shrinks it further when the longest model name in the rotation would not fit on one line */
  font-size: min(56px, calc((100vw - 644px) * .094));
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--lp-ink);
}
.lp-hero2__line { display: block; }
/* "Same" sits on its own line, so the longest model name gets the whole column and the headline can stay large */
.lp-hero2__same { display: block; }
.lp-js .lp-hero2__line { white-space: nowrap; }
/* the whole headline is pure white; only the word "cheaper." is orange (owner 2026-11-02: it was better orange) */
.lp-hero2__muted { color: var(--lp-orange); }
.lp-hero2__upto { color: var(--lp-ink); }
/* only the model name and the number move: agent.js adds .is-out, swaps the words, then takes it away */
.lp-hero2__model,
.lp-hero2__num {
  display: inline-block;
  white-space: nowrap;
  transition: opacity 240ms var(--lp-ease), transform 240ms var(--lp-ease);
}
.lp-hero2__title.is-out .lp-hero2__model,
.lp-hero2__title.is-out .lp-hero2__num { opacity: 0; transform: translateY(.22em); }
.lp-hero2__num { font-variant-numeric: tabular-nums; }
/* agent.js measures the longest first line with this */
.lp-hero2__probe { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; pointer-events: none; }

.lp-hero2__lead {
  margin: 24px 0 0;
  max-width: 470px;
  font: 400 17px/26px var(--lp-font-body);
  letter-spacing: .003em;
  color: rgba(255, 255, 255, .8);
  text-wrap: pretty;
}
/* the card: two full-width pill buttons in one hairline panel */
/* the two buttons, no panel around them */
.lp-hero2__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.lp-hero2__cta .lp-btn { height: 50px; padding: 0 26px; font-size: 15px; font-weight: 500; }
/* Under the Copy prompt pill once copied (landing/copy-prompt.js): the prompt with your own key is one step away. */
.lp-cp-hint { margin: 12px 0 0; max-width: 44ch; color: var(--lp-ink-2); font-size: 14px; line-height: 1.55; }
.lp-cp-hint a { color: var(--lp-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.lp-cp-hint a:hover { text-decoration-color: currentColor; }
.lp-hero2__docs { background: #111; border-color: rgba(255, 255, 255, .1); color: #fff; }
.lp-hero2__docs:hover { background: var(--lp-hover-2); }
/* connect (R9): the pill under the two buttons, to /connect: the agents' icons overlapping, one line, an arrow */
.lp-agents { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-top: 16px; padding: 6px 14px 6px 7px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; background: #111; color: #fff; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.lp-agents:hover { background: var(--lp-hover-2); border-color: rgba(255, 255, 255, .16); }
.lp-agents:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-agents__stack { display: inline-flex; flex: none; }
.lp-agents__stack img { display: block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #111; background: #fff; object-fit: cover; }
.lp-agents__stack img + img { margin-left: -7px; }
.lp-agents__stack--sm img { width: 18px; height: 18px; border-color: #050505; border-width: 1.5px; }
.lp-agents__stack--sm img + img { margin-left: -6px; }
/* Hover: the agents slide past one by one in the window of three (as the old app's "Bring VidLab into your agent" pill) */
.lp-agents__stack--cycle { width: 52px; overflow: hidden; border-radius: 999px; }
.lp-agents__row { display: inline-flex; flex: none; will-change: transform; }
.lp-agents:hover .lp-agents__row,
.lp-agents:focus-visible .lp-agents__row { animation: lp-agents-cycle 4.5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes lp-agents-cycle { 0.0%, 14.0% { transform: translateX(-0px); } 20.0%, 34.0% { transform: translateX(-15px); } 40.0%, 54.0% { transform: translateX(-30px); } 60.0%, 74.0% { transform: translateX(-45px); } 80.0%, 94.0% { transform: translateX(-60px); } 100.0% { transform: translateX(-75px); } }
@media (prefers-reduced-motion: reduce) { .lp-agents:hover .lp-agents__row, .lp-agents:focus-visible .lp-agents__row { animation: none; } }
.lp-agents__t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-agents__arrow { display: block; flex: none; color: var(--lp-ink-2, #a8a8a8); transition: transform 150ms ease; }
.lp-agents:hover .lp-agents__arrow { transform: translateX(2px); }

/* ───────────────────────── the visualizer: a Claude desktop window ─────────────────────────
   A copy of Claude's own dark chat window (home screen, then the thread) asking for an ad with VidLab.
   The markup is the finished thread (no JavaScript, reduced motion); agent.js arms it and plays it: the home screen
   types the request, it sends, each part of the thread drops in and pushes the older ones up, replies stream word by
   word. Parts not reached yet are display:none so the thread grows from the bottom like the real one. */
.lp-hero2__side { min-width: 0; }
.lp-viz { position: relative; }
.cl-win {
  --cl-bg: #141414;
  --cl-ink: #ecebe8;
  --cl-ink-2: #a8a7a3;
  --cl-ink-3: #75746f;
  --cl-line: rgba(255, 255, 255, .08);
  --cl-field: #1d1d1d;
  --cl-hot: #ffffff;   /* the progress bar and the lit send button: white, the page's accent */
  --cl-serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --cl-sans: -apple-system, BlinkMacSystemFont, "Inter", var(--lp-font-body), system-ui, sans-serif;
  position: relative;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  height: 540px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cl-bg);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 50px 110px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .7), 0 0 120px -30px rgba(255, 255, 255, .08);
  font-family: var(--cl-sans);
  color: var(--cl-ink);
  cursor: default;
}
.cl-win svg { display: block; flex: none; }

/* title bar */
.cl-bar { display: flex; align-items: center; gap: 14px; padding: 0 16px; color: var(--cl-ink-2); }
.cl-lights { display: flex; gap: 8px; margin-right: 6px; }
/* the window's three dots, plain grey: the page has no other colour */
.cl-lights i { width: 12px; height: 12px; border-radius: 50%; background: #3b3b3b; }
.cl-ico { width: 16px; height: 16px; }
.cl-ico--off { opacity: .4; }
.cl-ico--end { margin-left: auto; }
.cl-title { display: flex; align-items: center; gap: 5px; margin-left: 14px; font-size: 13.5px; color: var(--cl-ink); white-space: nowrap; overflow: hidden; }
.cl-caret { width: 10px; height: 10px; opacity: .8; }

/* both screens sit in the same cell */
.cl-home, .cl-thread { grid-row: 2; grid-column: 1; min-height: 0; }

/* home screen */
.cl-home { display: flex; flex-direction: column; justify-content: center; padding: 0 28px 44px; }
.cl-hello { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; font: 400 28px/1.2 var(--cl-serif); letter-spacing: -.01em; color: var(--cl-ink); }
.cl-spark { width: 28px; height: 28px; }
.cl-box { padding: 14px 14px 10px 16px; border-radius: 14px; background: var(--cl-field); border: 1px solid var(--cl-line); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .7); }
.cl-box__text { min-height: 34px; margin: 0; font-size: 15px; line-height: 22px; color: var(--cl-ink); }
.cl-box__ph { color: var(--cl-ink-3); }
.cl-cursor { display: none; width: 1.5px; height: 17px; margin-left: 1px; vertical-align: -3px; background: var(--cl-ink); }
.cl-box__row { display: flex; align-items: center; justify-content: space-between; color: var(--cl-ink-2); }
.cl-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #2e2e2e; color: #8d8c88; transition: background 160ms linear, color 160ms linear; }
.cl-send svg { width: 15px; height: 15px; }
.cl-meta { display: flex; align-items: center; gap: 22px; padding: 12px 14px 0; font-size: 13px; color: var(--cl-ink-2); white-space: nowrap; }
.cl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cl-meta b { font-weight: 400; color: var(--cl-ink); }
.cl-meta__end { margin-left: auto; gap: 10px !important; }

/* thread */
.cl-thread { display: flex; flex-direction: column; }
/* short threads start at the top; once full, the newest part stays in view and the oldest goes off the top */
.cl-flow { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 24px 10px; overflow: hidden; }
.cl-flow__in { flex: 1 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cl-user { align-self: flex-end; max-width: 82%; margin: 0 0 2px; padding: 8px 14px; border-radius: 14px; background: #232323; font-size: 14.5px; line-height: 21px; color: var(--cl-ink); }
.cl-say { margin: 0; font: 400 15px/1.5 var(--cl-serif); color: var(--cl-ink); text-wrap: pretty; }
.cl-strong { font-weight: 600; }
.cl-tools { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cl-tool { display: flex; flex-wrap: wrap; align-items: center; column-gap: 9px; row-gap: 5px; padding: 4px 0; font-size: 13.5px; line-height: 18px; color: var(--cl-ink-2); }
.cl-tool__logo { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.cl-tool__t { color: var(--cl-ink-2); }
.cl-tool:has(.cl-quote) .cl-tool__t { flex: 1 1 0; min-width: 0; }
.cl-tool__sub { color: var(--cl-ink-3); font-variant-numeric: tabular-nums; }
.cl-quote { display: flex; flex-basis: 100%; gap: 8px; padding-left: 25px; }
.cl-ours, .cl-list { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.cl-ours { background: #fff; color: #0a0a0a; }
.cl-list { border: 1px solid var(--cl-line); color: var(--cl-ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .55); }
.cl-meter { width: 72px; height: 3px; border-radius: 3px; background: #2a2a2a; overflow: hidden; }
.cl-meter i { display: block; height: 100%; width: calc(var(--p, 1) * 100%); background: var(--cl-hot); }
.cl-file { width: fit-content; }
.cl-clip { position: relative; height: 310px; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: #111; }
.cl-clip img, .cl-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cl-clip video { opacity: 0; transition: opacity 300ms linear; }
.cl-clip video.on { opacity: 1; }
.cl-acts { display: flex; gap: 14px; margin-top: -2px; color: var(--cl-ink-3); }
.cl-acts svg { width: 16px; height: 16px; }
.cl-win .cl-spark--work { display: none; width: 18px; height: 18px; }
.cl-reply { padding: 2px 24px 12px; }
.cl-reply__box { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--cl-field); border: 1px solid var(--cl-line); font-size: 15px; color: var(--cl-ink-3); }
.cl-reply__box svg { width: 15px; height: 15px; }
.cl-meta--reply { gap: 16px; padding: 8px 8px 0; }
.cl-ring { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #333; border-top-color: #fff; }

/* not armed (no JavaScript, reduced motion): the finished thread only */
.lp-viz:not(.is-armed) .cl-home { display: none; }

/* armed (JavaScript plays it) */
.lp-viz.is-armed .cl-home { transition: opacity 260ms linear; }
.lp-viz.is-armed:not(.is-home) .cl-home { opacity: 0; pointer-events: none; }
.lp-viz.is-armed.is-home .cl-thread { visibility: hidden; }
.lp-viz.is-armed .cl-title { opacity: 0; transition: opacity 300ms linear; }
.lp-viz.is-armed.is-titled .cl-title { opacity: 1; }
.lp-viz.is-armed.is-typed .cl-box__ph { display: none; }
.lp-viz.is-armed.is-typing .cl-cursor { display: inline-block; animation: lp-viz-blink 900ms steps(1) infinite; }
.lp-viz.is-armed.is-typed .cl-send { background: var(--cl-hot); color: #050505; }
.lp-viz.is-armed [data-viz-ask],
.lp-viz.is-armed [data-viz-say],
.lp-viz.is-armed [data-viz-step],
.lp-viz.is-armed [data-viz-quote],
.lp-viz.is-armed [data-viz-file],
.lp-viz.is-armed [data-viz-acts] { display: none; }
.lp-viz.is-armed .is-shown { display: revert; animation: cl-in 320ms var(--lp-ease) both; }
.lp-viz.is-armed .cl-tool.is-shown,
.lp-viz.is-armed .cl-quote.is-shown,
.lp-viz.is-armed .cl-file.is-shown,
.lp-viz.is-armed .cl-acts.is-shown { display: flex; }
.lp-viz.is-armed .cl-w { opacity: 0; transition: opacity 220ms linear; }
.lp-viz.is-armed .cl-w.on { opacity: 1; }
.lp-viz.is-armed .cl-tool.is-busy .cl-tool__t { background: linear-gradient(90deg, var(--cl-ink-3) 0%, var(--cl-ink) 50%, var(--cl-ink-3) 100%) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cl-shimmer 1.2s linear infinite; }
.lp-viz.is-armed.is-working .cl-win .cl-spark--work { display: block; animation: cl-spin 2.4s linear infinite; }
.lp-viz.is-armed .cl-clip img { opacity: 0; transition: opacity 300ms linear; }
.lp-viz.is-armed .cl-file.is-done .cl-clip img { opacity: 1; }
.lp-viz.is-armed .cl-win > * { transition: opacity 400ms linear; }
.lp-viz.is-armed.is-fading .cl-win > * { opacity: 0; }
@keyframes cl-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cl-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes cl-spin { 50% { transform: rotate(180deg) scale(.82); } to { transform: rotate(360deg) scale(1); } }
@keyframes lp-viz-blink { 50% { opacity: 0; } }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1180px) {
  .lp-hero2__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); column-gap: 40px; }
  .lp-hero2__title { font-size: min(52px, calc((100vw - 544px) * .094)); }
}
@media (max-width: 1100px) {
  .lp-hero2 { padding: 56px 0 72px; }
  .lp-hero2__inner { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .lp-hero2__title { font-size: min(60px, calc((100vw - 64px) * .09)); }
  .lp-hero2__side { max-width: 640px; }
}
@media (max-width: 640px) {
  .lp-hero2 { padding: 40px 0 56px; }
  /* on a phone "Same" sits on its own line, so the longest model name fits and nothing jumps when it rotates */
  .lp-hero2__title { font-size: 40px; line-height: 1.08; }
  .lp-hero2__lead { margin-top: 18px; font-size: 16px; line-height: 25px; }
  .lp-hero2__cta { margin-top: 26px; }
  .lp-hero2__cta .lp-btn { height: 48px; flex: 1 1 auto; justify-content: center; }
  .cl-win { height: 600px; border-radius: 14px; }
  .cl-bar { gap: 11px; padding: 0 12px; }
  .cl-bar .cl-ico:not(.cl-ico--end) { display: none; }
  .cl-title { margin-left: 4px; }
  .cl-home { padding: 0 14px 60px; }
  .cl-hello { font-size: 25px; }
  .cl-meta { gap: 14px; padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .cl-meta > span:nth-child(2) { display: none; }
  .cl-flow { padding: 12px 14px 8px; }
  .cl-say { font-size: 15px; }
  .cl-tool { font-size: 13px; }
  .cl-reply { padding: 4px 14px 12px; }
}
@media (max-width: 380px) {
  .lp-hero2__title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero2__model, .lp-hero2__num { transition: none; }
}
