/* Hero v5 (h2): 1 = band with rich cards (beige outcomes, yellow pixel particles), 2 = Arc, 3 = v3 clean cards. Tokens from css/tokens.css, kit from css/kit.css. */
.hero { position: relative; overflow: hidden; padding: 78px 0 48px; } /* v6: +48px, the headline no longer sticks to the top */
:where(.hero) p { margin: 0; }
.hero-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* calm warm background that fades into the page (G2): blobs only as an accent, soft bottom edge */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 46% at 12% 22%, rgba(255, 222, 196, .75) 0%, rgba(255, 222, 196, 0) 70%),
    radial-gradient(36% 42% at 88% 16%, rgba(255, 214, 230, .7) 0%, rgba(255, 214, 230, 0) 70%),
    radial-gradient(42% 40% at 70% 78%, rgba(227, 217, 255, .45) 0%, rgba(227, 217, 255, 0) 70%),
    radial-gradient(40% 40% at 24% 82%, rgba(255, 240, 196, .5) 0%, rgba(255, 240, 196, 0) 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0, #000 62%, transparent 100%); }
.hero > .wrap, .hero-band { position: relative; z-index: 1; }

/* text */
.hero-band-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-h1 { margin: 0; max-width: 980px; font: 620 clamp(34px, 3.7vw, 54px)/1.04 var(--font); letter-spacing: -0.04em;
  color: var(--ink); text-wrap: balance; }
.hero-lead { max-width: 820px; margin-top: 14px; font-size: clamp(16px, 1.2vw, 18px); }

/* v7: CTA as in final 4: one site field + the black "Book a demo" (.tb-btn-cta keeps the edge glow) */
.hero-form { display: flex; align-items: center; gap: 6px; width: 100%; max-width: 520px; margin-top: 24px; padding: 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 10px 30px -18px rgba(60, 30, 10, .35);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.hero-form:focus-within { border-color: var(--ink-2); }
.hero-form.is-bad { border-color: #D9805F; }
.hero-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: 16px; cursor: text; color: var(--muted); }
.hero-field-ic { flex: none; display: grid; }
.hero-field-ic svg { width: 18px; height: 18px; }
.hero-field input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: 400 17px/1 var(--font); color: var(--ink); }
.hero-field input::placeholder { color: var(--faint); }
.hero-submit { flex: none; height: 48px; }
.hero-note { margin: 10px 0 0; font: 400 14px/1.4 var(--font); color: var(--muted); }
.hero-err:empty { min-height: 0; margin: 0; }
.hero-err { min-height: 18px; margin: 6px 0 0; font: 400 13.5px/1.4 var(--font); color: #B8553A; }
.hero-err:empty + .hero-trust { margin-top: 14px; }

.hero-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; font: 500 13.5px/1.2 var(--font); color: var(--ink-2); }
.hero-trust .hero-ic { width: 16px; height: 16px; color: var(--ink-2); flex: none; }
.hero-hint { text-align: center; margin-top: 4px; font: 500 12px/1 var(--font); color: var(--faint); }

/* stage */
.hero-band { margin-top: 18px; }
.hero-stage { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  height: 384px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hero-stage.is-drag { cursor: grabbing; }
.hero-stage:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; border-radius: 20px; }
.hero-lanes { position: absolute; inset: 0; z-index: 1; }
.hero-lane { position: absolute; left: 0; right: 0; }
.hero-card { position: absolute; left: 0; top: 0; will-change: transform; }
.hero-fx { position: absolute; z-index: 2; pointer-events: none; }
.hero-beam-line { position: absolute; z-index: 3; top: 28px; bottom: 12px; left: 50%; width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 196, 20, .55) 14%, #FFC414 50%, rgba(255, 196, 20, .55) 86%, transparent); }

/* cards: v4 style, clean white, small pastel square for the outcome */
.hero-in, .hero-out { position: absolute; inset: 0; display: flex; border-radius: 18px; background: var(--sheet);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(27, 23, 19, .04), 0 16px 34px -22px rgba(80, 40, 20, .28); }
.hero-in { flex-direction: column; gap: 10px; padding: 14px 16px; }
.hero-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-who .hero-src { width: 32px; height: 32px; }
.hero-who .tb-logo.hero-src { border-radius: 10px; }
.hero-who .tb-logo.hero-src img { width: 17px; height: 17px; }
.hero-who-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hero-who-t b { font: 600 14px/1.1 var(--font); color: var(--ink); letter-spacing: -0.01em; }
.hero-who-t small { font: 400 12.5px/1.2 var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-msg { font: 400 14.5px/1.38 var(--font); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-voice { display: flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font); color: var(--muted); }
.hero-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; }
.hero-play .hero-ic { width: 14px; height: 14px; }
.hero-wave { width: 86px; height: 20px; color: var(--ink-2); opacity: .7; }
.hero-file { display: inline-flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 11px; background: var(--soft-2);
  border: 1px solid var(--line); font: 500 13px/1.2 var(--font); color: var(--ink); min-width: 0; align-self: flex-start; max-width: 100%; }
.hero-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-file-ic { display: grid; place-items: center; width: 24px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #FFD7F0, #FFE2C2); color: var(--ink-2); flex: none; }
.hero-file-ic .hero-ic { width: 14px; height: 14px; }

.hero-out { align-items: center; gap: 14px; padding: 16px 16px 16px 18px; }
.hero-sq { flex: none; width: 34px; height: 34px; border-radius: 9px; }
.hero-sq--a { background: linear-gradient(135deg, #FFD7F0, #FFE2C2 60%, #FFF0B8); }
.hero-sq--b { background: linear-gradient(135deg, #E2DDFD, #D8F5D3 60%, #FFF0B8); }
.hero-sq--d { background: linear-gradient(135deg, #D8F5D3, #FFF0B8 55%, #FFD7C2); }
.hero-out-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hero-out-t { font: 600 15.5px/1.25 var(--font); color: var(--ink); letter-spacing: -0.012em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-out-s { font: 400 13px/1.3 var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-out-side { align-self: flex-start; flex: none; }

.hero-fb { display: inline-grid; place-items: center; font: 650 12px/1 var(--font); color: var(--ink-2); background: var(--brand-grad); border-radius: 7px;
  width: 100%; height: 100%; }
.hero-fb.tb-avatar { border-radius: 50%; }
.tb-logo .hero-fb { width: 100%; height: 100%; border-radius: inherit; background: var(--soft); color: var(--ink-2); }
.hero-torii { width: 16px; height: 16px; flex: none; }

/* row labels sit in the gaps, never on top of cards */
.hero-rowlabel { position: absolute; z-index: 4; font: 600 11.5px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-rowlabel--ai, .hero-rowlabel--people { left: max(8%, calc(50% - 600px)); }
.hero-rowlabel--out { right: max(8%, calc(50% - 600px)); }

/* agent pill: calm, white, on the beam; top is set by JS so it overlaps the edges of both rows */
.hero-pill { position: absolute; z-index: 5; left: 50%; top: 192px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: var(--r-pill); background: var(--sheet); color: var(--ink); white-space: nowrap;
  border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(255, 232, 160, .45), 0 14px 30px -16px rgba(80, 40, 20, .35); }
.hero-pill-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; }
.hero-pill b { display: block; font: 600 14px/1.1 var(--font); letter-spacing: -0.01em; }
.hero-pill small { display: block; margin-top: 2px; font: 400 12px/1.1 var(--font); color: var(--muted); }
.hero-pill .tb-dot-live { margin-left: 2px; }

/* rich cards (variant 1, ample-v6): soft ring + shadow instead of a border (G8), no coloured stripe */
.hero--rich .hero-in, .hero--rich .hero-out { border: 0; box-shadow: 0 0 0 1px rgba(27, 23, 19, .06), 0 18px 40px -26px rgba(60, 30, 10, .3), 0 8px 18px -14px rgba(27, 23, 19, .08); }
.hero-in--rich { gap: 11px; padding: 14px 16px 14px 14px; }
.hero-ava { position: relative; flex: none; width: 46px; height: 46px; }
.hero-ava-img { display: block; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--soft); box-shadow: 0 0 0 1px rgba(27, 23, 19, .06); }
.hero-prov { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 6px; background: var(--ink);
  display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.hero-prov img { width: 11px; height: 11px; filter: invert(1); }
.hero-in--rich .hero-who-t b { font-size: 14.5px; }
.hero-in--rich .hero-msg { font-size: 14px; color: var(--ink-2); }
.hero-in--rich .hero-msg::before { content: '“'; }
.hero-in--rich .hero-msg::after { content: '”'; }

.hero-out--rich { flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 14px 16px; }
.hero-oh { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
/* h3: family and weight come from the global heading switch (k2); only size here */
.hero-ot { flex: 1; min-width: 0; margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -0.025em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-corner { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #fff; display: grid; place-items: center; color: var(--ink); }
.hero-corner img { width: 15px; height: 15px; }
.hero-corner .hero-torii { width: 14px; height: 14px; }
.hero-oby { margin-top: 4px; font: 400 12.5px/1.3 var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-ofoot { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.hero-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: var(--r-pill);
  font: 600 11.5px/1 var(--font); color: var(--ink); }
.hero-chip--demo { background: #E6F4EA; color: #2E6B48; }
.hero-chip--trial { background: #EEEAFD; color: #4F4290; }
.hero-chip--lead { background: #FCEEE3; color: #8E5235; }
.hero-orow { display: flex; align-items: center; gap: 8px; max-width: 100%; font: 400 12.5px/1.3 var(--font); color: #4B4540;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-orow::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 2px; background: #E9A87F; }
.hero-card--static .hero-out--rich, .hero-card--static .hero-in--rich { position: absolute; }
.hero--rich .hero-card.hero-card--static { height: 142px; }

/* v5: outcome = very light beige, no ring/border, so the card visibly turns into something else at the beam */
.hero--rich .hero-out--rich { background: #FAF4EA; box-shadow: 0 14px 30px -24px rgba(90, 60, 20, .32); }
.hero--rich .hero-out--rich .hero-chip { background: #fff; }
.hero--rich .hero-out--rich .hero-orow { color: #4B4540; }

/* Arc (variant 2): one stream on a curve, larger pill that the cards pass through */
.hero--arc .hero-stage { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.hero--arc .hero-card { transform-origin: 50% 50%; }
.hero--arc .hero-pill { gap: 12px; padding: 10px 24px 10px 10px; box-shadow: 0 0 0 8px rgba(255, 232, 160, .4), 0 22px 40px -20px rgba(80, 40, 20, .4); }
.hero--arc .hero-pill-ic { width: 46px; height: 46px; }
.hero--arc .hero-pill-ic .hero-torii { width: 20px; height: 20px; }
.hero--arc .hero-pill b { font-size: 16px; }
.hero--arc .hero-pill small { font-size: 13px; margin-top: 3px; }
.hero--arc .hero-hint { margin-top: 0; }
.hero--arc .hero-band-text { z-index: 2; pointer-events: none; }
.hero--arc .hero-band-text > * { pointer-events: auto; }
@media (min-width: 701px) { .hero--arc .hero-band { margin-top: -230px; } }

/* static fallback (reduced motion) */
.hero-static { display: grid; gap: 14px; padding: 18px 0; max-width: 760px; margin: 0 auto; }
.hero-static-row { display: grid; grid-template-columns: 1fr 20px 1fr; align-items: center; gap: 10px; }
.hero-card.hero-card--static { position: relative; height: 124px; }
.hero-static-dot { width: 9px; height: 9px; justify-self: center; border-radius: 50%; background: #F5A9CB; box-shadow: 0 0 0 4px rgba(245, 169, 203, .25); }
.is-static .hero-stage, .is-static .hero-hint { display: none; }

/* responsive */
@media (max-width: 640px) {
  .hero { padding-top: 48px; padding-bottom: 36px; }
  body:not(.clean) .hero { padding-top: 84px; } /* room for the prototype variant switcher */
  .hero .wrap { padding: 0 16px; }
  .hero-h1 { font-size: 32px; line-height: 1.07; }
  .hero-lead { font-size: 15.5px; }
  .hero-form { flex-direction: column; align-items: stretch; margin-top: 20px; border-radius: 20px; }
  .hero-field { padding: 0 8px 0 12px; }
  .hero-submit { width: 100%; border-radius: 14px; font-size: 15px; }
  .hero-trust { display: none; } /* phone: keep the band closer to the fold; guarantee is repeated in pricing */
  .hero-band { margin-top: 22px; }
  .hero-rowlabel--ai, .hero-rowlabel--people { left: 16px; }
  .hero-rowlabel--out { right: 16px; }
  .hero-pill { padding: 5px 13px 5px 5px; } .hero-pill-ic { width: 28px; height: 28px; }
  .hero-pill small { display: none; }
  .hero--arc .hero-pill { padding: 7px 16px 7px 7px; } .hero--arc .hero-pill-ic { width: 36px; height: 36px; }
  .hero-ot { font-size: 19px; }
  .hero-out { padding: 14px; gap: 12px; }
  .hero-sq { width: 28px; height: 28px; border-radius: 8px; }
  .hero-static-row { grid-template-columns: 1fr; }
  .hero-static-dot { display: none; }
}

/* lead 02.10 (L-61), phones: no site field or button in the hero (Book a demo sits in the nav, the widget at the bottom),
   straight band; the cut is two overflow boxes moved by transforms (js placeFlat), no per-frame clip-path. */
.hero-clip { position: absolute; left: 0; top: -24px; bottom: -24px; width: 100%; overflow: hidden; will-change: transform; pointer-events: none; }
.hero-clip-i { position: absolute; left: 0; right: 0; top: 24px; bottom: 24px; will-change: transform; }
@media (max-width: 700px) {
  .hero-form, .hero-note, .hero-err, .hero-trust { display: none; }
  .hero--arc .hero-band { margin-top: 18px; }
  .hero--rich .hero-clip .hero-in, .hero--rich .hero-clip .hero-out { box-shadow: 0 0 0 1px rgba(27, 23, 19, .07), 0 10px 22px -16px rgba(60, 30, 10, .3); }
}

/* lead 02.10: on phones keep air between the agent pill and the drag hint */
@media (max-width: 700px) { .hero--arc .hero-hint, .hero-hint { margin-top: 26px; } }
