/* Cuttl marketing site v3: one connected loop. Tokens: tokens.css. Spec: DESIGN.md */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 500 var(--t-body)/1.375 var(--ui); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-block: var(--section-gap) 0; }
.center-text { text-align: center; }

/* Type */
.h1, .h3, .statement, .giant { font-family: var(--display); font-weight: 500; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--t-h1); line-height: 1.167; letter-spacing: -0.01em; }
.h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.02em; }
.statement { font-size: var(--t-statement); line-height: 1.11; letter-spacing: -0.02em; }
.giant { font-size: var(--t-giant); line-height: 1.05; letter-spacing: -0.02em; }
.sub { font-size: var(--t-sub); line-height: 1.33; color: var(--graphite); }
.small { font-size: var(--t-small); color: var(--graphite); }
.soft { color: var(--graphite); }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 32px; border-radius: var(--r-pill); background: var(--charcoal); color: #fff;
  font: 600 16px/1 var(--ui); letter-spacing: -0.01em; box-shadow: var(--shadow-pill);
  transition: background var(--d-1) var(--ease), transform var(--d-1) var(--ease);
}
.btn:hover { background: var(--charcoal-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 16px; border-radius: var(--r-btn-sm);
  background: var(--charcoal); color: #fff; font: 500 14px/1 var(--ui); transition: background var(--d-1) var(--ease); }
.btn-sm:hover { background: var(--charcoal-hover); }
.btn-sm-dark { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: var(--r-pill); background: var(--charcoal); color: #fff; font: 600 14px/1.4 var(--ui); }
.btn-ui { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: var(--charcoal); color: #fff;
  font: 600 13px/1.2 var(--ui); box-shadow: var(--shadow-pill); transition: transform .18s var(--ease); white-space: nowrap; }
.btn-ui.press { transform: scale(.92); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--sky); color: var(--graphite); font: 500 var(--t-micro)/1.4 var(--ui); white-space: nowrap; }
.chip-iris { color: var(--iris); }
.chip-hot { background: #ffe9e4; color: #c2412d; }
.chip-ok { background: var(--mint); color: #17784a; }
.tick { display: inline-block; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--iris-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.chip-ok .tick { background-color: #22a06b; width: 14px; height: 14px; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 1px var(--hairline); }
.nav-inner { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; gap: 7px; font: 500 20px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: var(--s-4); margin-right: auto; }
.nav-links a { font-size: 16px; color: var(--graphite); transition: color var(--d-1) var(--ease); }
.nav-links a:hover { color: var(--ink); }

/* 1 · Hero panel */
.hero { padding: 0 20px; }
.hero-panel {
  position: relative; background: var(--bone); border-radius: var(--r-panel);
  min-height: min(860px, calc(100svh - 92px)); display: grid; grid-template-rows: 1fr auto;
  justify-items: center; padding: var(--s-10) var(--gutter) var(--s-6); overflow: hidden;
  background-image: radial-gradient(60% 50% at 50% 100%, var(--sky), transparent 70%);
}
.hero-copy { align-self: center; display: grid; justify-items: center; gap: var(--s-3); text-align: center;
  translate: 0 calc(var(--p, 0) * -40px); opacity: calc(1 - var(--p, 0) * .6); }
.hero-title .line { display: flex; align-items: center; justify-content: center; gap: .28em; flex-wrap: wrap; }
.rotator { display: inline-grid; justify-items: start; transition: width .4s var(--ease); }
.rotator > span { grid-area: 1 / 1; justify-self: start; width: max-content; white-space: nowrap; opacity: 0; transform: translateY(.4em); filter: blur(4px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.rotator > span.on, html:not(.js) .rotator > span:first-child { opacity: 1; transform: none; filter: none; }
.rotator > span.out { opacity: 0; transform: translateY(-.4em); filter: blur(4px); }
.chips { display: inline-flex; }
.chips img { width: 1.25em; height: 1.25em; margin-left: -.3em;
  translate: calc(var(--k) * var(--p, 0) * 90px) calc(var(--p, 0) * -20px); opacity: calc(1 - var(--p, 0) * 1.5);
  animation: bob 3.4s ease-in-out var(--d) infinite; }
.chips img:first-child { margin-left: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-5deg); } }
.hero .btn { margin-top: var(--s-1); }
.hero-foot { display: grid; justify-items: center; gap: var(--s-3); }
.disc-row { display: flex; gap: var(--s-1); }
.disc-row img { width: 64px; height: 64px;
  translate: calc(var(--k) * var(--p, 0) * 150px) calc(var(--p, 0) * -70px); rotate: calc(var(--k) * var(--p, 0) * 14deg);
  transition: transform .45s var(--spring);
  animation: pop .9s var(--spring) calc(.25s + var(--i) * .08s) both; }
.disc-row img:hover { transform: translateY(-8px) rotate(-8deg) scale(1.08); }
@keyframes pop { from { scale: .2; opacity: 0; } to { scale: 1; opacity: 1; } }

/* Pinned scenes */
.scene { position: relative; }
.stage { position: sticky; top: 72px; height: calc(100svh - 72px); display: grid; place-items: center; overflow: hidden; }

/* 2 · Statement */
.scene-loop .statement { max-width: 1000px; padding: 0 var(--gutter); text-align: center; }
.slot { display: inline-block; width: 1em; height: 1em; vertical-align: -.16em; }
.flyers { position: absolute; inset: 0; pointer-events: none; }
.flyer { position: absolute; left: 0; top: 0; width: 72px; height: 72px; will-change: transform; transform-origin: 0 0; }

/* 3 · Live loop demo */
.steps { list-style: none; padding: 0; display: flex; justify-content: center; gap: var(--s-1); margin-bottom: var(--s-4); }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .55); color: var(--fog); font-size: 15px; transition: background var(--d-2) var(--ease), color var(--d-2) var(--ease); }
.steps li img { width: 32px; height: 32px; transition: transform .6s var(--spring); }
.steps li.on { background: var(--white); color: var(--ink); }
.steps li.on img { transform: scale(1.15) rotate(-8deg); }
.mock-frame { position: relative; max-width: 1200px; margin: 0 auto; background: var(--white); border-radius: var(--r-panel); box-shadow: var(--shadow-frame); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e6e8ec; }
.mock-url { margin: 0 auto; font-size: 13px; color: var(--fog); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 580px; }
.mock-side { display: grid; align-content: start; gap: 4px; padding: 20px 14px; border-right: 1px solid var(--hairline); font-size: 14px; color: var(--graphite); }
.mock-side span { padding: 8px 10px; border-radius: 10px; transition: background var(--d-1) var(--ease), color var(--d-1) var(--ease); }
.mock-side span.on { background: var(--sky); color: var(--ink); }
.mock-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.mock-brand svg { width: 22px; height: 22px; }
.mock-label { font-size: 12px; color: var(--fog); margin: 12px 10px 2px; }
.mock-label.flat { margin: 0 0 4px; }
.mock-main { display: grid; grid-template-rows: auto 1fr; background: var(--mist); min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--white); border-bottom: 1px solid var(--hairline); font-size: 14px; }
.mock-select { padding: 6px 12px; border-radius: 10px; background: var(--mist); font-family: var(--mono); font-size: 13px; }
.mock-crumb { color: var(--graphite); }
.mock-range { margin-left: auto; color: var(--fog); }
.views { position: relative; }
.view { position: absolute; inset: 0; padding: 24px; opacity: 0; translate: 0 14px; pointer-events: none;
  transition: opacity .55s var(--ease), translate .7s var(--ease); }
.view.on { opacity: 1; translate: 0 0; }

/* View 1: heatmap + issue */
.mock-canvas { position: relative; height: 100%; border-radius: 16px; background: var(--white); overflow: hidden; }
.page { position: absolute; inset: 0; padding: 24px 32px; display: grid; align-content: start; gap: 14px; }
.page b { display: block; border-radius: 8px; background: #eef0f3; }
.pg-nav { height: 14px; width: 100%; }
.pg-h { height: 28px; width: 52%; justify-self: center; margin-top: 18px; }
.pg-p { height: 12px; width: 36%; justify-self: center; }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 12px; }
.pg-cards b { height: 170px; border-radius: 14px; }
.pg-btn { height: 40px; width: 180px; justify-self: center; border-radius: var(--r-pill); background: #dfe3e8; margin-top: 8px; }
/* Heat blobs: radial gradients are allowed here because this is a heatmap (data, not decoration) */
.heat { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; mix-blend-mode: multiply; scale: 0; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 196, 0, .85), rgba(110, 210, 140, .55) 55%, rgba(80, 150, 255, .25) 80%, transparent);
  transition: scale 1s var(--spring) var(--w), opacity .6s ease var(--w), background .8s ease; }
.heat.hot { background: radial-gradient(closest-side, rgba(240, 60, 60, .9), rgba(255, 170, 0, .75) 40%, rgba(110, 210, 140, .45) 70%, transparent); }
.view-heat.bloom .heat { scale: 1; opacity: 1; }
.view-heat.fixed .heat.hot { scale: .55; background: radial-gradient(closest-side, rgba(255, 196, 0, .8), rgba(110, 210, 140, .5) 60%, transparent); }
.rage-ring { position: absolute; left: 50%; top: 87%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2px solid #e5484d; opacity: 0; }
.view-heat.rage .rage-ring { animation: ring 1.1s ease-out infinite; }
@keyframes ring { from { scale: .5; opacity: .9; } to { scale: 2.2; opacity: 0; } }
.issue-card { position: absolute; right: 44px; bottom: 44px; width: 300px; display: grid; gap: 8px; justify-items: start;
  padding: 18px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-frame), 0 0 0 1px var(--hairline);
  opacity: 0; translate: 0 18px; scale: .96; transition: opacity .5s var(--ease), translate .7s var(--spring), scale .7s var(--spring); }
.view-heat.issue .issue-card { opacity: 1; translate: 0 0; scale: 1; }
.ic-title { font: 500 17px/1.25 var(--display); }
.ic-meta { font-size: 13px; color: var(--graphite); }

/* View 2: experiment */
.exp { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; padding: 24px; border-radius: 16px; background: var(--white); }
.exp-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.exp-title { font: 500 22px/1.2 var(--display); }
.exp-split { display: flex; height: 26px; border-radius: var(--r-pill); overflow: hidden; font-size: 12px; }
.exp-split span { width: var(--w); display: grid; place-items: center; background: var(--powder); }
.exp-split span + span { background: var(--lavender); }
.variants { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 0; }
.variant { display: grid; grid-template-rows: 1fr auto auto auto; gap: 6px; padding: 14px; border-radius: 16px; background: var(--mist); transition: box-shadow .5s var(--ease); }
.v-thumb { display: grid; align-content: start; gap: 8px; padding: 14px; border-radius: 12px; background: var(--white); min-height: 120px; }
.v-thumb b { display: block; height: 10px; border-radius: 5px; background: #eef0f3; }
.v-thumb b:first-child { width: 60%; height: 14px; }
.v-thumb .v-btn { width: 40%; height: 18px; border-radius: var(--r-pill); background: #dfe3e8; margin-top: 10px; }
.v-thumb .v-btn.big { width: 64%; height: 26px; background: var(--charcoal); }
.v-name { font-size: 14px; color: var(--graphite); }
.v-val { font-size: 26px; }
.v-bar { display: block; height: 8px; border-radius: 8px; background: #e9ebef; overflow: hidden; }
.v-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--fog); transition: width 2s var(--ease); }
.variant.win .v-bar i { background: var(--iris-bright); }
.view-test.run .v-bar i { width: var(--v); }
.view-test.decided .variant.win { box-shadow: inset 0 0 0 2px var(--iris-bright); }
.exp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verdict { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--graphite); opacity: 0; translate: -8px 0; transition: opacity .5s var(--ease), translate .6s var(--ease); }
.verdict b { color: var(--ink); }
.view-test.decided .verdict { opacity: 1; translate: 0 0; }

/* View 3: receipt */
.view-receipt { display: grid; place-items: center; }
.receipt { position: relative; width: min(420px, 100%); display: grid; gap: 12px; padding: 32px; border-radius: 20px; background: var(--white);
  box-shadow: var(--shadow-frame); scale: .94; transition: scale .8s var(--spring); }
.view-receipt.on .receipt { scale: 1; }
.rc-icon { position: absolute; right: -28px; top: -34px; width: 96px; rotate: 10deg; }
.rc-title { font: 500 24px/1.2 var(--display); }
.rc-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--graphite); }
.rc-row .mono { color: var(--ink); }
.rc-bar { display: block; height: 10px; border-radius: 10px; background: var(--mist); overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #22a06b; transition: width 1.6s var(--ease); }
.view-receipt.fill .rc-bar i { width: 85%; }
.rc-verdict { justify-self: start; scale: 0; transition: scale .7s var(--spring); }
.view-receipt.fill .rc-verdict { scale: 1; transition-delay: 1.2s; }

.mock-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 26px; fill: var(--white); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
  transition: transform 1.1s var(--ease); filter: drop-shadow(0 2px 3px rgba(10, 13, 18, .18)); pointer-events: none; }
.mock-ripple { position: absolute; left: 0; top: 0; z-index: 4; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid var(--iris-bright); opacity: 0; pointer-events: none; }
.mock-ripple.go { animation: ripple .6s ease-out; }
@keyframes ripple { from { scale: .3; opacity: 1; } to { scale: 1.8; opacity: 0; } }

/* 4 · Replay scene */
.scene-replay { height: 280vh; }
.scene-replay .stage { background: var(--lilac-wash); }
.replay-line { position: absolute; left: 0; right: 0; top: 50%; translate: 0 calc(-50% - var(--lift, 0) * 30vh); scale: calc(1 - var(--lift, 0) * .22); z-index: 2; padding: 0 var(--gutter); }
.pill-inline {
  position: relative; display: inline-flex; align-items: center; gap: .22em; vertical-align: .08em;
  padding: .14em .42em .14em .34em; border-radius: var(--r-pill); background: var(--charcoal); color: #fff;
  font: 500 .5em/1 var(--ui); letter-spacing: -0.01em; box-shadow: var(--shadow-pill);
  scale: calc(1 - var(--press, 0) * .08);
}
.pill-inline svg { width: .8em; height: .8em; }
.pill-ring { position: absolute; inset: -8px; border-radius: var(--r-pill); border: 2px solid var(--iris-bright); opacity: var(--ring-o, 0); scale: var(--ring-s, 1); }
.thumbs i {
  position: absolute; left: var(--x); top: var(--y); width: 132px; height: 96px; border-radius: 16px; background: var(--lavender);
  opacity: calc(.75 - var(--lift, 0) * .6);
  transform: translateY(calc((var(--p, .5) - .5) * var(--d) * -200px));
}
.thumbs i::before { content: ""; position: absolute; inset: 14px 14px auto; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .8); }
.thumbs i::after { content: ""; position: absolute; left: 14px; right: 50px; bottom: 16px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .6); }
.player { position: absolute; left: 50%; top: 56%; z-index: 3; width: min(720px, 88vw); margin-left: calc(min(720px, 88vw) / -2); translate: 0 -50%;
  border-radius: var(--r-panel); background: var(--white); box-shadow: var(--shadow-frame); overflow: hidden;
  scale: var(--open, 0); opacity: clamp(0, calc(var(--open, 0) * 3), 1); transform-origin: var(--ox, 50%) var(--oy, 0%); }
.player-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--fog); }
.player-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e6e8ec; }
.player-bar span:first-of-type { margin-left: 8px; margin-right: auto; }
.player-screen { position: relative; aspect-ratio: 2 / 1; background: var(--mist); }
.ps-page { position: absolute; inset: 16px; display: grid; align-content: start; gap: 10px; padding: 20px; border-radius: 14px; background: var(--white); }
.ps-page b { display: block; border-radius: 6px; background: #eef0f3; }
.ps-h { height: 18px; width: 50%; }
.ps-p { height: 10px; width: 70%; }
.ps-page .ps-img { height: 90px; border-radius: 12px; }
.ps-page .ps-btn { position: absolute; left: 50%; top: 79%; width: 120px; height: 32px; margin-left: -60px; border-radius: var(--r-pill); background: var(--charcoal); }
.ps-trail { position: absolute; inset: 0; width: 100%; height: 100%; }
.ps-trail path { fill: none; stroke: var(--iris-bright); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--t, 0)); stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
.ps-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 24px; fill: var(--white); stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(10, 13, 18, .2)); }
.ps-burst { position: absolute; left: 50.4%; top: 81.5%; }
.ps-burst i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--iris-bright); opacity: 0; }
.player.clicked .ps-burst i { animation: ripple .8s ease-out both; }
.player.clicked .ps-burst i:nth-child(2) { animation-delay: .12s; }
.player.clicked .ps-burst i:nth-child(3) { animation-delay: .24s; }
.ps-tag { position: absolute; left: 50%; top: 58%; translate: -50% 0; padding: 4px 12px; border-radius: var(--r-pill); background: #22a06b; color: #fff; font-size: 12px;
  opacity: 0; scale: .6; transition: opacity .3s ease, scale .5s var(--spring); }
.player.clicked .ps-tag { opacity: 1; scale: 1; }
.player-controls { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink); }
.player-controls svg { width: 14px; height: 14px; }
.pc-track { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--mist); }
.pc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--t, 0) * 100%); border-radius: inherit; background: var(--ink); }
.pc-mark { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #22a06b; }
.pc-time { font-size: 13px; color: var(--graphite); }
.big-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 34px; height: 40px; fill: var(--white); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 4px 6px rgba(10, 13, 18, .18)); opacity: var(--co, 0); pointer-events: none; }

/* 5 · Answers */
.answers { background: var(--peach-wash); padding: var(--section-gap) 0; overflow: hidden; }
.answers .h1 { margin-bottom: var(--s-8); }
.answer-row { --slide: clamp(0, calc((var(--p, 1) - .08) * 2.4), 1);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.answer-card { display: grid; align-content: start; gap: 12px; background: var(--white); border-radius: var(--r-panel); padding: var(--s-4);
  translate: calc((1 - var(--slide)) * (60vw + var(--n) * 12vw)) 0; rotate: calc((1 - var(--slide)) * 4deg); }
.answer-card:nth-child(1) { --n: 0; }
.answer-card:nth-child(2) { --n: 1; }
.answer-card:nth-child(3) { --n: 2; }
.answer-card .chip { justify-self: start; background: var(--peach-wash); }
.q { font: 500 20px/1.2 var(--display); letter-spacing: -0.01em; }
.a { color: var(--graphite); }
.a b { color: var(--ink); font-weight: 500; }
.prompt-box { max-width: 720px; margin: var(--s-6) auto 0; background: var(--white); border-radius: var(--r-panel); padding: var(--s-3); display: grid; gap: var(--s-4); }
.prompt-text { min-height: 48px; font-size: 18px; color: var(--ink); }
.caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -.2em; margin-left: 2px; background: var(--iris); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.prompt-foot { display: flex; align-items: center; justify-content: space-between; }

/* 6 · Giant words + living mascot */
.scene-words { height: 300vh; }
.scene-words .stage { background: radial-gradient(70% 60% at 50% 60%, var(--sky), var(--white) 70%); }
.words { position: relative; display: grid; place-items: center; text-align: center; margin-top: -20vh; }
.word { grid-area: 1 / 1; display: grid; justify-items: center; gap: var(--s-2);
  opacity: 0; transform: translateY(60px) scale(.96); filter: blur(8px);
  transition: opacity var(--d-2) var(--ease), transform .8s var(--ease), filter var(--d-2) var(--ease); }
.word.on { opacity: 1; transform: none; filter: none; }
.word.past { opacity: 0; transform: translateY(-60px) scale(.96); filter: blur(8px); }
html:not(.js) .word { position: static; opacity: 1; transform: none; filter: none; }
.mascot-mid { position: absolute; bottom: 4vh; left: 50%; width: clamp(220px, 24vw, 340px); translate: -50% calc((1 - var(--p, 1)) * 80px); }
.mascot-video { width: 100%; }
.mascot-mid, .mascot-foot { mix-blend-mode: multiply; }

/* 8 · Bento: one loop */
.sec-head { display: grid; gap: var(--s-2); justify-items: center; text-align: center; margin-bottom: var(--s-8); }
.bento { display: grid; grid-template-columns: 560px 560px; grid-template-rows: 360px 360px; gap: 24px; justify-content: center; }
.tile-big, .tile-small { position: relative; overflow: hidden; border-radius: var(--r-card); padding: var(--s-6) var(--s-6) 0; display: grid; align-content: start; gap: var(--s-2); }
.tile-big { grid-row: span 2; }
.powder { background: var(--powder); }
.lavender { background: var(--lavender); }
.mint { background: var(--mint); }
.tile-copy { display: grid; gap: var(--s-2); max-width: 420px; position: relative; z-index: 1; }
.tile-text { color: var(--graphite); }
.float-obj { position: absolute; width: 112px; animation: bob 4.2s ease-in-out infinite; }
.fo-1 { right: 56px; top: 210px; animation-delay: -.6s; }
.fo-2 { right: 180px; top: 270px; width: 84px; animation-delay: -2s; }
/* Fragments: white product panels that sit on the tile's bottom edge and bleed off it */
.frag { position: absolute; left: var(--s-6); right: var(--s-6); bottom: -24px; display: grid; gap: 14px; padding: 24px 24px 44px;
  border-radius: var(--r-panel); background: rgba(255, 255, 255, .92); border: 2px solid var(--white);
  translate: 0 40px; opacity: 0; transition: translate .9s var(--spring), opacity .6s var(--ease); }
[data-live].in .frag { translate: 0 0; opacity: 1; }
.tile-small .frag { left: var(--s-5); right: -24px; padding-right: 48px; }

/* Hypothesis fragment */
.frag-hypo .chip { justify-self: start; background: #fff3d6; color: #8a5a00; }
.hy-text { font-size: 16px; line-height: 1.4; color: var(--graphite); }
.hy-text b { color: var(--ink); font-weight: 500; }
.hy-evidence { display: flex; flex-wrap: wrap; gap: 8px; }
.ev { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; background: var(--mist); font: 500 12px var(--mono); color: var(--graphite);
  scale: .6; opacity: 0; transition: scale .5s var(--spring), opacity .3s ease; }
.ev:nth-child(2) { transition-delay: .1s; } .ev:nth-child(3) { transition-delay: .2s; } .ev:nth-child(4) { transition-delay: .3s; }
.frag-hypo.ev-on .ev { scale: 1; opacity: 1; }
.ev-play { width: 0; height: 0; border-left: 7px solid var(--iris-bright); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.ev-h { background: var(--sky); }
.hy-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hy-est { font-size: 14px; color: var(--graphite); }
.hy-est b { color: var(--ink); }
.hy-done { position: absolute; left: 24px; right: 24px; bottom: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--iris);
  opacity: 0; translate: 0 8px; transition: opacity .4s ease, translate .5s var(--spring); }
.frag-hypo.done .hy-done { opacity: 1; translate: 0 0; }

/* Variant heatmaps fragment */
.frag-variants { grid-template-columns: 1fr 1fr; gap: 12px; }
.vh { display: grid; gap: 6px; transition: opacity .5s var(--ease), scale .5s var(--spring); }
.vh-name { font: 500 13px var(--mono); color: var(--graphite); }
.vh-page { position: relative; display: grid; align-content: start; gap: 6px; height: 132px; padding: 12px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--hairline); overflow: hidden; }
.vh-page b { display: block; height: 8px; border-radius: 4px; background: #eef0f3; }
.vh-page b:first-child { width: 70%; height: 12px; }
.vh-page .vh-btn { width: 40%; height: 14px; margin-top: 30px; border-radius: var(--r-pill); background: #dfe3e8; }
.vh-page .vh-btn.big { width: 64%; height: 20px; background: var(--charcoal); margin-top: 26px; justify-self: center; }
.vh-heat { position: absolute; left: var(--x); top: var(--y); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(255, 196, 0, .8), rgba(110, 210, 140, .45) 60%, transparent); scale: 0; transition: scale .9s var(--spring); }
.vh-heat.hot { background: radial-gradient(closest-side, rgba(240, 60, 60, .85), rgba(255, 170, 0, .6) 45%, transparent); }
.vh-heat + .vh-heat { transition-delay: .25s; }
[data-live].in .vh-heat { scale: 1; }
.frag-variants.focus-a .vh:last-child, .frag-variants.focus-b .vh:first-child { opacity: .45; scale: .97; }

/* Receipt fragment */
.fr-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--graphite); }
.fr-row .mono { color: var(--ink); font-size: 18px; }
.fr-bar { display: block; height: 10px; border-radius: 10px; background: var(--mist); overflow: hidden; }
.fr-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #22a06b; transition: width 1.6s var(--ease); }
.frag-receipt.fill .fr-bar i { width: 85%; }
.fr-verdict { justify-self: start; scale: 0; transition: scale .7s var(--spring); }
.frag-receipt.fill .fr-verdict { scale: 1; transition-delay: 1.3s; }

/* 9 · Pricing */
.pricing { background: var(--wash-lilac); padding-block: var(--section-gap); margin-top: var(--section-gap); }
.pricing .h1 { margin-bottom: var(--s-6); }
.price-card { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--r-card); padding: var(--s-7); display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-6); }
.price-left { display: grid; align-content: space-between; gap: var(--s-3); }
.price { font: 500 48px/1 var(--display); letter-spacing: -0.02em; }
.price-note { color: var(--fog); margin-top: -12px; }
.price-left .btn { justify-self: stretch; }
.list-label { font-size: 14px; color: var(--fog); margin-bottom: var(--s-2); }
.includes { list-style: none; padding: 0; display: grid; gap: 14px; }
.includes li { display: flex; gap: 12px; color: var(--graphite); }
.includes li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 3px; background: var(--iris);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }

/* 10 · Uses marquee */
.uses-sec { overflow: hidden; }
.marquee { overflow: hidden; padding: 12px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: var(--s-3); width: max-content; animation: marquee 60s linear infinite; }
.marquee[data-dir="right"] .track { animation-direction: reverse; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(calc(-50% - var(--s-3) / 2), 0, 0); } }
.use { flex: none; width: 400px; background: var(--mist); border-radius: var(--r-card); padding: var(--s-5); min-height: 300px; display: grid; align-content: space-between; gap: var(--s-4);
  transition: background var(--d-1) var(--ease); }
.use:hover { background: var(--sky); }
.use-text { font-size: 18px; line-height: 1.33; color: var(--graphite); }
.who { display: flex; align-items: center; gap: 12px; padding-top: var(--s-3); border-top: 1px solid #eceef1; }
.who img { width: 44px; height: 44px; }
.who-name { font: 500 20px/1.2 var(--display); }
.who-role { font-size: 14px; color: var(--fog); }

/* 11 · Install + FAQ */
.install { display: grid; justify-items: center; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); }
.snippet { width: min(720px, 100%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 20px; border-radius: var(--r-btn-sm); background: var(--mist); margin-top: var(--s-1); }
.snippet code { flex: 1; min-width: 0; font: 500 14px/1.4 var(--mono); white-space: nowrap; overflow-x: auto; }
.copy { flex: none; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 12px; background: var(--white); cursor: pointer; font-size: 14px; }
.faq { position: relative; display: grid; grid-template-columns: 1fr 600px; gap: var(--s-6); max-width: 1000px; padding-bottom: var(--section-gap); }
.faq > .h1, .faq-list { position: relative; z-index: 1; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--fog-card); border-radius: var(--r-card); }
.faq-q { width: 100%; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 32px; border: 0; background: none; cursor: pointer; text-align: left; font-size: 18px; }
.faq-q i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--fog); transition: transform var(--d-2) var(--ease); }
.faq-q i::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] i::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-2) ease; }
.faq-a > p { overflow: hidden; padding: 0 32px; color: var(--fog); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
.faq-q[aria-expanded="true"] + .faq-a > p { padding-bottom: 24px; }
.trail { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.trail-img { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; object-fit: contain; animation: trail .9s var(--ease) forwards; }
@keyframes trail {
  0% { opacity: 0; transform: scale(.3) rotate(var(--r)); }
  20% { opacity: 1; transform: scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: scale(.85) translateY(24px) rotate(calc(var(--r) * 2)); }
}

/* 12 · Footer */
.footer { background: var(--wash-footer); padding-top: var(--section-gap); overflow: hidden; }
.foot-cta { display: grid; justify-items: center; gap: var(--s-3); text-align: center; padding: 0 var(--gutter); }
.sea { position: relative; height: clamp(260px, 30vw, 420px); margin-top: var(--s-6); overflow: clip; }
.mascot-foot { position: absolute; left: 50%; bottom: 40px; width: clamp(240px, 30vw, 440px); translate: -50% calc((1 - var(--p, 1)) * 160px); }
.bob { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.waves { position: absolute; left: -5%; bottom: 0; width: 110%; height: 55%; }
.waves path { animation: wave 7s ease-in-out infinite alternate; }
.waves .w2 { animation-duration: 9s; animation-delay: -2s; }
.waves .w3 { animation-duration: 6s; animation-delay: -4s; }
@keyframes wave { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
.foot-base { padding: var(--s-8) 0 88px; background: var(--white); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.foot-brand { display: grid; align-content: start; gap: var(--s-2); max-width: 340px; }
.foot-brand .brand { color: var(--ink); }
.foot-about { font-size: 15px; line-height: 1.55; color: var(--graphite); }
.foot-col { display: grid; align-content: start; gap: 12px; }
.foot-h { font-size: 13px; font-weight: 500; color: var(--fog); margin-bottom: 4px; }
.foot-col a { font-size: 15px; color: var(--charcoal); width: fit-content; transition: color var(--d-1) var(--ease); }
.foot-col a:hover { color: var(--iris); }
.foot-legal { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--hairline); }
.tag { font-size: 14px; color: var(--graphite); }
.copy-note { font-size: 13px; color: var(--fog); }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .foot-brand { grid-column: 1 / -1; }
}

/* ============ Animated icons (Rive-style: layered 3D parts, each on its own loop) ============ */
.ai { position: relative; display: inline-block; flex: none; width: var(--ai, 72px); height: var(--ai, 72px); vertical-align: middle; }
.ai > * { position: absolute; display: block; pointer-events: none; }
.ai .d { inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Parts are trimmed to their visible edges, so each is placed by its centre point on the disc. */
.ai > img:not(.d) { left: var(--cx); top: var(--cy); width: var(--w); height: auto; translate: -50% -50%; }
/* Spot: heat blob pulses, cursor glides in and taps, ripple spreads */
.ai-spot .heat-p { --cx: 50%; --cy: 50%; --w: 58%; animation: ai-pulse 2.6s ease-in-out infinite; }
.ai-spot .cur { --cx: 66%; --cy: 70%; --w: 32%; animation: ai-tap 2.6s var(--ease) infinite; }
.ai-spot .rip { left: 50%; top: 50%; width: 40%; height: 40%; margin: -20% 0 0 -20%; border-radius: 50%; border: 2px solid var(--iris-bright); animation: ai-rip 2.6s ease-out infinite; }
@keyframes ai-pulse { 0%, 100% { transform: scale(.88) rotate(-4deg); } 42% { transform: scale(.88); } 56% { transform: scale(1.08) rotate(3deg); } 75% { transform: scale(1); } }
@keyframes ai-tap { 0% { transform: translate(34%, 34%) rotate(8deg); opacity: 0; } 18% { opacity: 1; } 34% { transform: translate(0, 0) rotate(0); } 42% { transform: scale(.82); } 50% { transform: scale(1); } 80% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(34%, 34%) rotate(8deg); opacity: 0; } }
@keyframes ai-rip { 0%, 40% { transform: scale(.2); opacity: 0; } 44% { opacity: 1; } 72%, 100% { transform: scale(1.9); opacity: 0; } }
/* Replay: play presses, progress fills */
.ai-replay .play { --cx: 53%; --cy: 45%; --w: 36%; animation: ai-press 2.6s var(--spring) infinite; }
.ai-replay .prog { left: 28%; right: 28%; top: 70%; height: 7%; border-radius: 99px; background: rgba(255, 255, 255, .75); overflow: hidden; }
.ai-replay .prog b { display: block; height: 100%; border-radius: inherit; background: var(--iris-bright); animation: ai-fill 2.6s linear infinite; }
@keyframes ai-press { 0%, 100% { transform: scale(1); } 10% { transform: scale(.86); } 22% { transform: scale(1.04); } 34% { transform: scale(1); } }
@keyframes ai-fill { 0%, 12% { width: 0; } 92% { width: 100%; } 100% { width: 100%; opacity: 0; } }
/* Idea: bulb swings and glows, sparkle pops */
.ai-idea .bulb { --cx: 50%; --cy: 50%; --w: 34%; transform-origin: 50% 0; animation: ai-swing 2.8s ease-in-out infinite; }
.ai-idea .spark { --cx: 75%; --cy: 27%; --w: 18%; animation: ai-spark 2.8s var(--spring) infinite; }
@keyframes ai-swing { 0%, 100% { transform: rotate(-7deg); filter: brightness(1); } 50% { transform: rotate(7deg); filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 214, 90, .8)); } }
@keyframes ai-spark { 0%, 20% { transform: scale(0) rotate(-40deg); } 38% { transform: scale(1) rotate(0); } 70% { transform: scale(1) rotate(25deg); } 86%, 100% { transform: scale(0) rotate(60deg); } }
/* Test: A and B shuffle, B lifts, check pops */
.ai-test .ca { --cx: 36%; --cy: 50%; --w: 30%; animation: ai-card-a 3.2s var(--ease) infinite; }
.ai-test .cb { --cx: 64%; --cy: 50%; --w: 30%; animation: ai-card-b 3.2s var(--ease) infinite; }
.ai-test .ck { --cx: 73%; --cy: 30%; --w: 19%; animation: ai-check 3.2s var(--spring) infinite; }
@keyframes ai-card-a { 0%, 100% { transform: rotate(-8deg); } 30% { transform: translate(8%, -4%) rotate(4deg); } 45%, 80% { transform: translate(-4%, 8%) rotate(-14deg) scale(.9); opacity: .85; } }
@keyframes ai-card-b { 0%, 100% { transform: rotate(8deg); } 30% { transform: translate(-8%, 4%) rotate(-4deg); } 45%, 80% { transform: translate(2%, -12%) rotate(4deg) scale(1.1); } }
@keyframes ai-check { 0%, 44% { transform: scale(0); } 56% { transform: scale(1); } 82% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
/* Prove: an impact report whose bars grow, then a check stamps */
.ai-prove .rpt { --cx: 50%; --cy: 50%; --w: 42%; }
.ai-prove .bar { --cy: 54%; --w: 7%; clip-path: inset(var(--hide, 0%) 0 0 0); }
.ai-prove .b1 { --cx: 40%; --hide: 55%; }
.ai-prove .b2 { --cx: 50%; --hide: 32%; }
.ai-prove .b3 { --cx: 60%; --hide: 8%; }
.ai-prove .ck { --cx: 69%; --cy: 30%; --w: 24%; }

/* Hero v4: phrase-specific icon + living mascot under the CTA */
.hero-panel { grid-template-rows: 1fr; padding-bottom: 0; }
.hero-copy { padding-bottom: 180px; }
.hero-title .line { min-height: 1.3em; }
.hero-icon { position: relative; display: inline-block; width: 1.45em; height: 1.45em; vertical-align: middle; }
.hero-icon .ai { position: absolute; inset: 0; --ai: 1.45em; opacity: 0; transform: scale(.4) rotate(-25deg);
  transition: opacity .35s var(--ease), transform .7s var(--spring); }
.hero-icon .ai.on { opacity: 1; transform: none; }
html:not(.js) .hero-icon .ai:first-child { opacity: 1; transform: none; }
.hero-mascot { position: absolute; left: 50%; bottom: -70px; width: clamp(220px, 22vw, 300px); translate: -50% calc(var(--p, 0) * 60px); }
.hero-mascot { mix-blend-mode: multiply; }
.hero-mascot .mascot-video { width: 100%; }

/* Statement v4: row → sentence → gather → frame */
.st-label { position: absolute; left: 0; right: 0; top: 30%; text-align: center; z-index: 1; translate: 0 calc(var(--lab, 0) * -14vh); opacity: var(--lab-o, 1); }
.scene-loop .statement { opacity: var(--txt, 0); translate: 0 calc((1 - var(--txt, 0)) * 24px); }
.flyer { width: 72px; height: 72px; transform-origin: 0 0; }
.flyer .ai { --ai: 72px; }
.morph { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; translate: -50% -50%; display: grid; place-items: center;
  border-radius: 28px; opacity: 0; }
.morph img { width: 76px; height: 76px; transition: opacity .2s; }

/* Words scene: drifting live icons */
.drift { position: absolute; inset: 0; pointer-events: none; }
.dr { position: absolute; left: var(--x); top: var(--y); --ai: clamp(48px, 5vw, 72px);
  translate: 0 calc((var(--p, .5) - .5) * var(--k) * -220px); rotate: calc((var(--p, .5) - .5) * var(--k) * 30deg); }

/* Bento: live floats */
.float-obj { width: auto; }
.fo-1 .ai { --ai: 112px; }
.fo-2 .ai { --ai: 84px; }

/* Pricing sparkles */
.pricing-inner { position: relative; }
.pricing { overflow: clip; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles img { position: absolute; left: var(--x); top: var(--y); width: var(--s); animation: twinkle var(--t) ease-in-out infinite; }
.sparkles img:nth-child(2n) { animation-delay: -2s; }
@keyframes twinkle { 0%, 100% { transform: translateY(0) rotate(0) scale(1); } 50% { transform: translateY(-14px) rotate(20deg) scale(1.15); } }

/* Footer video mascot */
.mascot-foot .mascot-video { width: 100%; }
.mascot-mid, .mascot-foot { mix-blend-mode: multiply; }

@media (max-width: 640px) {
  .hero-copy { padding-bottom: 150px; }
  .hero-mascot { bottom: -50px; width: 190px; }
  .flyer, .flyer .ai { width: 48px; height: 48px; --ai: 48px; }
  .st-label { top: 24%; padding: 0 var(--gutter); }
  .dr { --ai: 44px; }
  .fo-1 .ai { --ai: 84px; }
  .fo-2 .ai { --ai: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai *, .sparkles img { animation: none !important; }
  .ai-spot .cur, .ai-test .ck, .ai-prove .ck, .ai-idea .spark { transform: none; opacity: 1; }
  .ai-spot .rip { display: none; }
  .ai-replay .prog b { width: 70%; }
  .scene-loop .statement { opacity: 1; translate: none; }
  .st-label { position: static; margin-bottom: var(--s-4); translate: none; }
  .flyers, .morph { display: none; }
  .hero-mascot { translate: -50% 0; }
}

/* ============ v5: our own layer on top of the reference system ============ */
/* Your visit, as a heatmap */
.visit-heat { position: fixed; inset: 0; z-index: 30; width: 100vw; height: 100vh; pointer-events: none; opacity: 0; mix-blend-mode: multiply; }
.visit-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 31; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 10px;
  border: 0; border-radius: var(--r-pill); background: var(--white); color: var(--ink); font: 500 14px/1 var(--ui); cursor: pointer;
  box-shadow: var(--shadow-frame), 0 0 0 1px var(--hairline); }
.vt-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, #ef4444, #ffb340 55%, #ffe066 80%, transparent); }
.visit-toggle[aria-pressed="true"] { background: var(--charcoal); color: #fff; }

/* Hero background: bubbles and parts drifting around the edges */
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hb { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: auto; opacity: .9; }
.hero-copy, .hero-mascot { z-index: 1; }

/* The loop scene: statement → frame → scroll-driven demo */
.scene-loop { height: 760vh; }
.demo { position: absolute; left: 50%; top: 50%; width: min(1200px, calc(100% - 48px)); height: min(640px, 78%); opacity: 0; z-index: 2; }
.demo .mock-frame { height: 100%; display: flex; flex-direction: column; }
.demo .mock-body { flex: 1; min-height: 0; }
.demo .views { min-height: 0; }
.view-impact { display: grid; place-items: center; }
.view-impact.fill .rc-bar i { width: 85%; }
.view-impact.fill .rc-verdict { scale: 1; transition-delay: 1.2s; }
.view-impact.on .receipt { scale: 1; }
.heat { transition: none; }

/* Replay: the player grows out of the pill to fill the screen */
.scene-replay { height: 320vh; }
.player { inset: 0; left: 0; top: 0; width: auto; margin: 0; translate: none; transform-origin: 0 0; border-radius: var(--pr, 24px);
  display: flex; flex-direction: column; scale: none; opacity: 0; }
.player > * { opacity: var(--inner, 0); }
.player-screen { flex: 1; aspect-ratio: auto; }
.ps-page { inset: 24px max(24px, calc(50% - 460px)); }

/* Two tools → one loop */
.scene-fuse { height: 300vh; }
.scene-fuse .stage { grid-template-rows: auto 1fr; place-items: center; padding-top: var(--s-10); background: linear-gradient(#fff, var(--sky)); }
.fuse-head { text-align: center; padding: 0 var(--gutter); }
.fuse-wins { position: relative; width: min(1100px, calc(100% - 48px)); height: min(440px, 56vh); }
.fwin { position: absolute; top: 50%; width: min(440px, 42%); translate: 0 -50%; border-radius: var(--r-panel); background: var(--white); box-shadow: var(--shadow-frame); overflow: hidden; }
.win-a { left: 0; }
.win-b { right: 0; }
.win-one { left: 50%; width: min(620px, 64%); translate: -50% -50%; opacity: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--fog); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e6e8ec; }
.win-bar span { margin-left: 6px; }
.win-body { position: relative; display: grid; align-content: start; gap: 10px; height: 200px; padding: 20px; background: var(--mist); }
.win-body b { display: block; height: 12px; border-radius: 6px; background: #e9ebef; }
.win-body b:first-of-type { width: 60%; }
.win-body.one { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 16px; }
.one-col { position: relative; display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 14px; background: var(--white); }
.one-arrow { align-self: center; width: 44px; height: 4px; border-radius: 4px; background: var(--iris-bright); position: relative; }
.one-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border-left: 10px solid var(--iris-bright); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.mini-heat { position: absolute; left: var(--x); top: var(--y); width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; mix-blend-mode: multiply;
  background: radial-gradient(closest-side, rgba(255, 196, 0, .8), rgba(110, 210, 140, .45) 60%, transparent); }
.mini-heat.hot { background: radial-gradient(closest-side, rgba(240, 60, 60, .85), rgba(255, 170, 0, .6) 45%, transparent); }
.mini-bar { display: flex; align-items: center; justify-content: flex-end; height: 26px; width: var(--v); padding-right: 8px; border-radius: 8px; background: #dfe3e8; font: 500 12px var(--mono); color: var(--graphite); }
.mini-bar.won { position: static; translate: none; background: var(--iris-bright); color: #fff; box-shadow: none; }
.win-note { padding: 12px 16px; font-size: 14px; color: var(--graphite); }
.pains { position: absolute; inset: -40px 0; pointer-events: none; }
.pain { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; padding: 8px 14px; border-radius: var(--r-pill); background: #fff1ee; color: #c2412d; font-size: 14px; white-space: nowrap;
  box-shadow: 0 0 0 1px #ffd9d1; }

/* Feature heat grid */
.heatgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hg { position: relative; display: grid; justify-items: center; gap: 12px; padding: 28px 16px; border-radius: var(--r-panel); background: var(--mist); overflow: hidden; }
.hg img { width: 84px; height: 84px; position: relative; z-index: 1; }
.hg span { position: relative; z-index: 1; font-size: 15px; color: var(--graphite); }
.hg::before { content: ""; position: absolute; inset: 0; background: var(--heat, transparent); opacity: var(--h, 0); }

/* Works with your stack: horizontal track */
.scene-stack { height: 320vh; }
.scene-stack .stage { grid-template-rows: auto auto; justify-items: start; align-content: center; gap: var(--s-6); padding-top: 40px; }
.stack-head { padding: 0 max(var(--gutter), calc(50% - 600px)); display: grid; gap: var(--s-2); }
.stack-track { display: flex; gap: 24px; padding: 0 max(var(--gutter), calc(50% - 600px)); width: max-content; }
.sc { flex: none; width: 360px; min-height: 300px; display: grid; align-content: start; gap: 12px; padding: 32px; border-radius: var(--r-card); background: var(--mist); }
.sc img { width: 76px; height: 76px; }
.sc h3 { margin: 4px 0 0; font: 500 24px/1.2 var(--display); letter-spacing: -0.01em; }
.sc p { color: var(--graphite); }
.sc .chip { justify-self: start; margin-top: 8px; }

/* Privacy band (dark) */
.privacy { margin-top: var(--section-gap); background: var(--charcoal); color: #fff; padding-block: var(--section-gap); overflow: clip; }
.privacy-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6); align-items: center; position: relative; }
.privacy .h1 { color: #fff; }
.privacy .sub { color: #aeb4bf; margin-top: var(--s-2); }
.pv-shield { position: absolute; right: 2%; top: -40px; width: 120px; opacity: .95; }
.pv-list { list-style: none; padding: 0; display: grid; gap: 18px; font-size: 18px; }
.pv-list li { display: flex; align-items: center; gap: 14px; }
.pv-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #3a4150; position: relative; }
.pv-tick::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--iris-bright) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; scale: var(--on, 1); }
.pricing { margin-top: 0; }

/* Heat headings: SplitText chars */
.heat-text .char { display: inline-block; }
.heat-text .word { display: inline-block; }

@media (max-width: 1000px) {
  .heatgrid { grid-template-columns: repeat(3, 1fr); }
  .privacy-inner { grid-template-columns: 1fr; }
  .pv-shield { width: 84px; top: -20px; }
}
@media (max-width: 640px) {
  .scene-loop { height: 620vh; }
  .demo { width: calc(100% - 24px); height: 70%; }
  .heatgrid { grid-template-columns: repeat(2, 1fr); }
  .hg img { width: 64px; height: 64px; }
  .sc { width: 280px; padding: 24px; }
  .fwin { width: 46%; }
  .win-body { height: 150px; padding: 12px; }
  .win-one { width: 92%; }
  .pain { font-size: 12px; padding: 6px 10px; }
  .hb { width: calc(var(--s) * .6); }
  .visit-toggle .vt-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-loop, .scene-fuse, .scene-stack { height: auto; }
  .demo { position: relative; left: auto; top: auto; translate: none; opacity: 1; margin: var(--s-10) auto 0; height: 640px; }
  .player { position: relative; inset: auto; height: 520px; margin: var(--s-6) var(--gutter) 0; opacity: 1; }
  .player > * { opacity: 1; }
  .win-one { position: relative; left: auto; top: auto; translate: none; opacity: 1; margin: var(--s-6) auto 0; }
  .win-a, .win-b, .pains { display: none; }
  .fuse-wins { height: auto; }
  .stack-track { flex-wrap: wrap; width: auto; }
  .visit-toggle { display: none; }
}

/* ============ v6 refinements ============ */
/* Hero: a headline that leads */
.hero-title { font-size: clamp(40px, 4.8vw, 68px); font-weight: 550; line-height: 1.25; letter-spacing: -0.028em; }
.hero-title .line { min-height: 1.25em; align-items: baseline; }
.hero-title .line + .line { margin-top: .18em; }
/* Letter-sized icon on the text baseline; JS fine-tunes --icon-nudge so its centre meets the letters' optical centre */
.hero-icon { position: relative; width: .95em; height: .95em; top: var(--icon-nudge, .12em); margin-left: .08em; }
.hero-icon .ai { --ai: .95em; }
/* quieter background: small, translucent, at the edges */
.hb { opacity: .55; }
.hb.bub { opacity: .38; }

/* Demo: designed at one size, scaled to fit any screen (JS sets --dw/--dh and the scale) */
.demo { width: var(--dw, 1200px); height: var(--dh, 640px); }

/* Replay pill: the height of the line it sits in */
.pill-inline { height: 2em; padding: 0 1em 0 .8em; gap: .45em; vertical-align: middle; translate: 0 -.06em; font-size: .46em; }
.pill-inline svg { width: 1.05em; height: 1.05em; }

/* Two tools → one loop */
.fuse-wins { perspective: 1200px; }
.win-one { box-shadow: var(--shadow-frame); }
.shock { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 50%;
  border: 3px solid var(--iris-bright); opacity: 0; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.burst > * { position: absolute; left: 0; top: 0; will-change: transform; }
.confetti { width: 10px; height: 16px; border-radius: 3px; }

/* Bento: the hypothesis card stays fully inside its tile; idea → test on one row */
.tile-big .frag { bottom: 24px; padding-bottom: 48px; }
.idea-row { position: absolute; left: 0; right: 0; top: 232px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.ir-icon .ai { --ai: 104px; }
.ir-link { position: relative; width: 120px; height: 4px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--iris-bright) 0 10px, transparent 10px 18px); opacity: .7; }
.ir-dot { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--iris-bright);
  box-shadow: 0 0 0 5px rgba(47, 139, 255, .18); }

/* Spacing before the integrations track */
.scene-stack { margin-top: var(--section-gap); }

@media (max-width: 640px) {
  .tile-big { min-height: 760px; }
  .idea-row { top: 250px; gap: 12px; }
  .ir-icon .ai { --ai: 80px; }
  .ir-link { width: 70px; }
}

/* ============ GSAP hand-off: when GSAP runs (html.gsap), it drives these and the CSS fallbacks switch off ============ */
.gsap .ai, .gsap .ai * { animation: none !important; }
.gsap .ai-replay .prog b { width: 100%; transform-origin: 0 50%; }
.gsap .rotator, .gsap .rotator > span, .gsap .hero-icon .ai { transition: none; }
.gsap .scene-loop .statement { opacity: 0; translate: none; }
.gsap .st-label { translate: none; opacity: 1; }
.gsap .word { transition: none; }
.gsap .mock-cursor { transition: none; }
.gsap [data-reveal] { opacity: 0; translate: none; transition: none; }
.gsap .frag { translate: none; opacity: 1; transition: none; }
.gsap .ev, .gsap .hy-done, .gsap .vh, .gsap .vh-heat, .gsap .fr-verdict, .gsap .fr-bar i { transition: none; }
.gsap .ev { scale: 1; opacity: 1; }
.gsap .hy-done { opacity: 0; translate: none; }
.gsap .vh-heat { scale: 1; }
.gsap .fr-verdict { scale: 1; }
.gsap .answer-card { translate: none; rotate: none; }
.gsap .hero-copy { translate: none; opacity: 1; }
.gsap .demo, .gsap .fwin, .gsap .win-one, .gsap .pain { translate: none; }
.gsap .v-bar i, .gsap .rc-bar i { transition: none; }
.gsap .view-impact.fill .rc-verdict { transition-delay: 0s; }
.gsap .pv-tick { --on: 0; }
.gsap .ai > img:not(.d), .gsap .hero-mascot, .gsap .mascot-mid, .gsap .mascot-foot, .gsap .morph { translate: none; }

/* Reveal on enter (JS only; content stays visible without JS) */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity var(--d-2) var(--ease), translate .9s var(--ease); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* Tablet */
@media (max-width: 1180px) {
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 360px 360px; }
}
@media (max-width: 1000px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .answer-row { grid-template-columns: 1fr; }
  .answer-card { translate: calc((1 - var(--slide)) * 90vw) 0; }
  .faq { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 0 8px; }
  .hero-panel { padding-top: var(--s-8); }
  .hero-title .line { gap: .2em; }
  .hero .sub br { display: none; }
  .disc-row img { width: 52px; height: 52px; }
  .flyer { width: 48px; height: 48px; }
  .steps li { padding: 4px 12px 4px 4px; font-size: 14px; }
  .steps li img { width: 26px; height: 26px; }
  .mock-body { min-height: 520px; }
  .mock-top { gap: 8px; }
  .mock-range { display: none; }
  .view { padding: 12px; }
  .pg-cards b { height: 80px; }
  .issue-card { left: 20px; right: 20px; bottom: 20px; width: auto; }
  .variants { gap: 8px; }
  .v-thumb { min-height: 80px; }
  .exp { padding: 16px; gap: 12px; }
  .exp-head .chip { display: none; }
  .exp-foot { flex-direction: column; align-items: start; }
  .rc-icon { width: 72px; right: -10px; top: -26px; }
  .scene-replay { height: 220vh; }
  .thumbs i { width: 88px; height: 64px; }
  .scene-words { height: 240vh; }
  .words { margin-top: -24vh; }
  .words .sub { font-size: 16px; padding: 0 var(--gutter); }
  .scene-arc { height: 200vh; }
  .scene-arc .stage { --R: 520px; }
  .tile { left: -52px; top: -52px; width: 104px; }
  .tile img { width: 88px; height: 88px; padding: 10px; }
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .tile-big { grid-row: auto; min-height: 640px; padding: var(--s-4) var(--s-4) 0; }
  .tile-small { min-height: 360px; padding: var(--s-4) var(--s-4) 0; }
  .frag { left: var(--s-3); right: var(--s-3); }
  .tile-small .frag { left: var(--s-3); }
  .fo-1 { top: auto; bottom: 330px; right: 24px; width: 84px; }
  .fo-2 { top: auto; bottom: 360px; right: 120px; width: 64px; }
  .hy-foot { flex-direction: column; align-items: start; }
  .price-card { grid-template-columns: 1fr; padding: var(--s-4); }
  .use { width: 300px; }
  .faq-q { padding: 18px 24px; font-size: 16px; }
  .faq-a > p { padding: 0 24px; }
}

/* Reduced motion: final states, nothing pinned, no loops */
@media (prefers-reduced-motion: reduce) {
  .scene-loop, .scene-words, .scene-replay { height: auto; }
  .stage { position: relative; top: 0; height: auto; min-height: 80vh; padding-block: var(--section-gap); }
  .chips img, .disc-row img, .bob, .waves path, .float-obj, .spin, .caret { animation: none; }
  .words { margin-top: 0; gap: var(--s-6); }
  .word { position: static; grid-area: auto; opacity: 1; transform: none; filter: none; }
  .mascot-mid { position: static; translate: none; margin: var(--s-6) auto 0; }
  .replay-line { position: static; translate: none; scale: 1; }
  .player { position: relative; left: auto; top: auto; margin: var(--s-6) auto 0; translate: none; scale: 1; opacity: 1; }
  .big-cursor { display: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* Menu bar hides while scrolling down, returns on scroll up; pinned scenes use the full screen */
.nav { transition: transform .45s var(--ease), box-shadow .3s ease; will-change: transform; }
.nav.nav-hidden { transform: translateY(-100%); }
.stage { top: 0; height: 100svh; }
html { scroll-padding-top: 16px; }

/* Replay player: a believable pricing page and an events log */
.player-screen .ps-page { position: absolute; left: 2%; top: 5%; right: auto; bottom: auto; inset: 5% auto auto 2%; width: 68%; height: 90%; padding: 0; display: block; border-radius: 14px; background: #fff; overflow: hidden; }
.ps-page > b, .ps-page b { display: block; border-radius: 6px; background: #eef0f3; }
.ps-nav { position: absolute; left: 4%; right: 4%; top: 5%; display: flex; align-items: center; gap: 3%; }
.ps-nav b { width: 9%; height: 8px; }
.ps-logo { width: 22px; height: 22px; border-radius: 7px; background: var(--charcoal); margin-right: auto; }
.ps-cart { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9ced6; margin-left: auto; }
.ps-page .ps-h { position: absolute; left: 32%; width: 36%; top: 17%; height: 18px; }
.ps-page .ps-p { position: absolute; left: 38%; width: 24%; top: 25%; height: 9px; }
.ps-plans { position: absolute; left: 6%; right: 6%; top: 34%; bottom: 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ps-plan { position: relative; display: grid; align-content: start; gap: 8px; padding: 10% 9%; border-radius: 12px; background: var(--mist); }
.ps-plan.pop { background: #fff; box-shadow: 0 0 0 2px var(--iris-bright), var(--shadow-frame); }
.ps-plan .pn { width: 50%; height: 10px; }
.ps-plan > b { height: 6px; }
.ps-plan > b:nth-of-type(3) { width: 80%; }
.pp { font-size: clamp(14px, 1.6vw, 22px); color: var(--ink); margin: 2px 0 4px; }
.pb { position: absolute; left: 9%; right: 9%; bottom: 9%; height: 14%; min-height: 16px; border-radius: var(--r-pill); background: #dfe3e8; }
.pb.dark { background: var(--charcoal); }
.ps-chip { position: absolute; right: 8%; top: 7%; padding: 2px 8px; border-radius: var(--r-pill); background: var(--sky); color: var(--iris); font-size: 11px; }
.ps-events { position: absolute; left: 72%; top: 5%; width: 26%; height: 90%; display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 14px; background: #fff; }
.pe-title { font-size: 12px; color: var(--fog); margin-bottom: 2px; }
.pe { display: grid; grid-template-columns: 10px auto 1fr; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); opacity: .25; translate: 0 6px; transition: opacity .35s ease, translate .45s var(--ease); }
.pe.on { opacity: 1; translate: 0 0; }
.pe i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.pe .mono { font-size: 11px; color: var(--fog); }
.player-screen .ps-burst { left: 37%; top: 78.5%; }
.player-screen .ps-tag { left: 37%; top: 63%; }
.pc-m { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff; }
.pc-total { font-size: 13px; color: var(--fog); }
@media (max-width: 640px) {
  .player-screen .ps-page { width: 96%; }
  .ps-events { display: none; }
  .ps-nav b { display: none; }
  .ps-plan { padding: 8%; gap: 5px; }
  .pp { font-size: 13px; }
}



/* Product frame: a floating white panel instead of a blue outline.
   The morph that grows into it uses the identical look so the hand-off stays seamless. */
:root { --shadow-float: 0 0 0 1px rgba(10, 13, 18, .06), 0 2px 4px rgba(10, 13, 18, .04), 0 24px 48px -16px rgba(4, 69, 144, .22), 0 48px 96px -32px rgba(4, 69, 144, .18); }
.morph { border: 0; background: #fff; box-shadow: var(--shadow-float); }
.demo .mock-frame { box-shadow: var(--shadow-float); }

/* Answers: pinned; cards sweep in, then the prompt types, then the section moves on */
.scene-answers { height: 280vh; padding: 0; overflow: visible; }
.scene-answers .stage { overflow: hidden; }
.scene-answers .stage { background: var(--peach-wash); align-content: center; }
.answers-inner { width: 100%; min-width: 0; }
/* Keep wide horizontal rows from stretching the stage's grid column (it threw headings off-centre) */
.scene-answers .stage, .scene-stack .stage { grid-template-columns: minmax(0, 1fr); }
.scene-answers .h1 { margin-bottom: var(--s-6); }
.scene-answers .prompt-box { margin-top: var(--s-5); }
@media (max-width: 1000px) {
  .scene-answers .answer-row { display: flex; width: max-content; gap: 16px; grid-template-columns: none; }
  .scene-answers .answer-card { width: min(78vw, 420px); flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-answers { height: auto; }
  .scene-answers .answer-row { flex-wrap: wrap; width: auto; }
}

/* Steps live inside the player's top bar, like a tab switcher; a white highlight slides to the active step */
.demo .mock-bar { position: relative; min-height: 64px; padding: 10px 18px; }
.demo .mock-bar .chip { margin-left: auto; }
.demo .steps { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; gap: 2px; margin: 0; padding: 4px;
  list-style: none; border-radius: var(--r-pill); background: var(--mist); }
.demo .steps li[data-step] { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 4px 18px 4px 4px;
  border-radius: var(--r-pill); background: transparent; color: var(--fog); font-size: 16px; transition: color .4s var(--ease); }
.demo .steps li[data-step].on { background: transparent; color: var(--ink); }
.demo .steps li img { width: 38px; height: 38px; filter: grayscale(1); opacity: .45; transition: filter .45s ease, opacity .45s ease, transform .7s var(--spring); }
.demo .steps li.on img { filter: none; opacity: 1; transform: scale(1.12) rotate(-8deg); }
.demo .steps .steps-ind { padding: 0; position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r-pill); background: #fff;
  box-shadow: 0 1px 2px rgba(10, 13, 18, .08), 0 4px 10px -4px rgba(10, 13, 18, .12); }
@media (max-width: 640px) {
  .demo .mock-bar { min-height: 52px; padding: 8px 12px; }
  .demo .mock-bar .chip { display: none; }
  .demo .steps li[data-step] { gap: 6px; padding: 3px 12px 3px 3px; font-size: 13px; }
  .demo .steps li img { width: 28px; height: 28px; }
}

/* Pinned scenes stay visually centred with and without the menu bar.
   --nav-off is 72px while the bar shows and 0 while it's hidden, and it glides in step with the bar.
   Sizes are always computed for the smaller space, so content only moves and never rescales. */
@property --nav-off { syntax: '<length>'; inherits: true; initial-value: 72px; }
:root { --nav-h: 72px; --nav-off: var(--nav-h); transition: --nav-off .45s var(--ease); }
:root.nav-up { --nav-off: 0px; }
.stage { padding-top: var(--nav-off); }
.scene-loop .demo, .scene-loop .morph { top: calc(50% + var(--nav-off) / 2); }
.st-label { top: calc(var(--nav-off) + 20%); }
.scene-fuse .stage { padding-top: var(--nav-off); grid-template-rows: auto auto; align-content: center; gap: var(--s-6); }
.scene-stack .stage { padding-top: var(--nav-off); }
.scene-words .words { margin-top: -14vh; }
@media (prefers-reduced-motion: reduce) { :root { transition: none; } .stage { padding-top: var(--section-gap); } }

/* the window area is exactly as tall as the windows, so the scene centres on what you actually see */
.fuse-wins { height: 290px; }
@media (max-width: 640px) { .fuse-wins { height: 236px; } }

/* ============ Replay player: contained size; inside, a shop session with a journey panel ============ */
.scene-replay { height: 320vh; }
.player { box-shadow: var(--shadow-float); }
.player-bar .pb-title { margin: 0 auto 0 10px; font-size: 13px; color: var(--fog); }
.rx-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 240px; gap: 14px; padding: 14px; background: var(--mist); }
.rx-screen { position: relative; min-height: 0; border-radius: 16px; background: #fff; overflow: hidden; }
.rx-page { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr; padding: 18px 22px; gap: 16px; }
.rx-page b, .rx-drawer b, .rx-done b { display: block; border-radius: 6px; background: #eef0f3; }
.rx-nav { display: flex; align-items: center; gap: 18px; }
.rx-nav b { width: 54px; height: 9px; }
.rx-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--charcoal); margin-right: auto; }
.rx-cart { position: relative; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c9ced6; margin-left: 8px; }
.rx-count { position: absolute; right: -8px; top: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--iris-bright); color: #fff; font: 600 11px/1 var(--ui); font-style: normal; scale: 0; }
.rx-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; min-height: 0; }
.rx-img { display: grid; place-items: center; border-radius: 14px; background: linear-gradient(160deg, #eef6ff, #f4ecff); min-height: 0; overflow: hidden; }
.rx-img img { width: 78%; max-height: 92%; object-fit: contain; }
.rx-info { display: grid; align-content: center; gap: 12px; }
.rx-t1 { width: 80%; height: 16px; }
.rx-t2 { width: 55%; height: 10px; }
.rx-price { font-size: 24px; color: var(--ink); margin-top: 4px; }
.rx-swatches { display: flex; gap: 10px; }
.rx-swatches i { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; transition: box-shadow .3s ease; }
.rx-swatches i.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.rx-l { height: 7px; }
.rx-l.s { width: 70%; }
.rx-add { justify-self: start; margin-top: 6px; padding: 11px 24px; border-radius: 99px; background: var(--charcoal); color: #fff; font: 600 14px/1 var(--ui); }
.rx-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 20px;
  background: #fff; box-shadow: -12px 0 32px -12px rgba(10, 13, 18, .18); transform: translateX(105%); }
.rx-dt { font: 500 16px/1.2 var(--display); }
.rx-item { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: var(--mist); }
.rx-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; }
.rx-item div { display: grid; gap: 7px; }
.rx-item b { height: 8px; }
.rx-item b.s { width: 60%; }
.rx-item .mono, .rx-sum .mono { font-size: 14px; color: var(--ink); }
.rx-sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--graphite); padding: 0 4px; }
.rx-checkout { display: grid; place-items: center; height: 42px; border-radius: 99px; background: var(--charcoal); color: #fff; font: 600 14px/1 var(--ui); }
.rx-done { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: #fff; opacity: 0; }
.rx-done img { width: 64px; }
.rx-done p { font: 500 22px/1.2 var(--display); }
.rx-done b { width: 160px; height: 8px; }
.rx-ripple { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid var(--iris-bright); opacity: 0; pointer-events: none; }
.rx-cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 20px; height: 24px; fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(10, 13, 18, .2)); }
.rx-journey { display: grid; align-content: start; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; }
.rj-title { font-size: 12px; color: var(--fog); margin-bottom: 8px; }
.rj { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; font-size: 14px; color: var(--fog); transition: background .3s ease, color .3s ease; }
.rj i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px #d5d9e0; transition: box-shadow .3s ease, background .3s ease; }
.rj .mono { font-size: 11px; }
.rj.on { color: var(--ink); }
.rj.on i { background: var(--iris-bright); box-shadow: none; }
.rj.cur { background: var(--sky); }
.rj:last-child.on i { background: #22a06b; }
.player-controls .chip { margin-left: 4px; }
.pc-total { font-size: 13px; color: var(--fog); }
.pc-m { position: absolute; top: -3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--iris-bright); box-shadow: 0 0 0 2px #fff; }
.pc-m.good { background: #22a06b; }
@media (max-width: 760px) {
  .rx-body { grid-template-columns: 1fr; padding: 10px; }
  .rx-journey { display: none; }
  .rx-page { padding: 12px 14px; gap: 10px; }
  .rx-nav b { display: none; }
  .rx-product { gap: 12px; }
  .rx-price { font-size: 18px; }
  .rx-swatches i { width: 18px; height: 18px; }
  .rx-add { padding: 9px 14px; font-size: 12px; }
  .rx-drawer { width: 70%; padding: 14px; }
  .player-bar .pb-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-replay { height: auto; }
}

/* the player's origin is the stage's top-left; GSAP positions and sizes it from there */
.scene-replay .player { inset: 0 auto auto 0; margin: 0; }

/* ==========================================================================
   Mobile pass (2026-10-13). Last in the file on purpose: earlier phone rules
   were being overridden by base rules written further down.
   ========================================================================== */
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The visit heatmap follows a mouse pointer; on touch screens it only covers content */
@media (hover: none), (max-width: 640px) {
  .visit-toggle, .visit-heat { display: none; }
}

@media (max-width: 640px) {
  /* Shorter pinned scenes: same animations, about a third less thumb travel */
  .scene-loop { height: 470vh; }
  .scene-replay { height: 240vh; }
  .scene-fuse { height: 220vh; }
  .scene-answers { height: 230vh; }
  .scene-words { height: 210vh; }
  .scene-stack { height: 270vh; }

  /* Hero: the phrase and its icon always share one line */
  .hero-title { font-size: clamp(28px, 9.1vw, 40px); }
  .hero-title .line:has(.rotator) { flex-wrap: nowrap; }
  .hb:not(.bub) { display: none; }
  .hb.bub { opacity: .28; }

  /* Loop statement: a little air between each icon and its word */
  .scene-loop .slot { margin: 0 .08em; }

  /* Experiment verdict reads as one sentence, not three flex columns */
  .verdict { display: block; line-height: 1.45; }
  .verdict .tick { display: inline-block; vertical-align: -3px; margin-right: 6px; }

  /* Two-tools windows: keep the address on one line */
  .win-bar span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Ask AI: fits one screen */
  .scene-answers .h1 { font-size: 28px; line-height: 1.2; margin-bottom: 20px; }
  .scene-answers .prompt-box { margin-top: 20px; padding: 16px; gap: 16px; }
  .scene-answers .prompt-text { min-height: 0; font-size: 16px; }
  .scene-answers .answer-card { padding: 20px; }

  /* Feature grid: three compact columns instead of six tall rows */
  .heatgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hg { padding: 16px 6px 14px; gap: 8px; border-radius: 18px; }
  .hg img { width: 48px; height: 48px; }
  .hg span { font-size: 13px; line-height: 1.25; text-align: center; }

  /* Bento: stack the idea row and the card in normal flow so nothing overlaps */
  .tile-big { min-height: 0; padding-bottom: 24px; }
  .tile-big .idea-row { position: relative; top: auto; margin: 8px 0 4px; }
  .tile-big .frag { position: relative; left: auto; right: auto; bottom: auto; padding-bottom: 24px; }

  /* Use-case cards: compact */
  .use { width: 280px; min-height: 0; padding: 24px; gap: 20px; }
  .use-text { font-size: 16px; }
  .who-name { font-size: 18px; }

  /* Install snippet: show the whole line */
  .snippet { align-items: flex-start; padding: 12px 8px 12px 16px; }
  .snippet code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }

  /* Pricing sparkles stay inside the screen */
  .sparkles img { width: calc(var(--s) * .6); }

  /* Footer: no floating pill any more, so no extra bottom room needed */
  .foot-base { padding-bottom: var(--s-6); }
}

/* Hero bubbles: idle drift as a CSS animation. It composes with GSAP's transform (intro, parallax),
   because it animates the separate translate/rotate properties. */
@keyframes hb-drift { to { translate: 0 var(--dy, 14px); rotate: var(--dr, 0deg); } }
.hb { animation: hb-drift var(--dd, 5s) ease-in-out var(--dl, 0s) infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hb { animation: none; } }

/* Phones (html.phone, set by site.js): only the loop demo stays pinned; these scenes are normal sections */
html.phone .scene-replay, html.phone .scene-fuse, html.phone .scene-answers, html.phone .scene-words, html.phone .scene-stack { height: auto; margin-top: 0; }
html.phone .scene-replay .stage { position: relative; top: auto; height: 100svh; padding-top: 0; }
html.phone .scene-fuse .stage, html.phone .scene-answers .stage, html.phone .scene-words .stage, html.phone .scene-stack .stage {
  position: relative; top: auto; height: auto; min-height: 0; padding: 80px 0; }
html.phone .scene-words .words { margin-top: 0; gap: 56px; }
html.phone .scene-words .word { position: static; grid-area: auto; opacity: 1; transform: none; filter: none; }
html.phone .mascot-mid { position: static; translate: none; margin: 40px auto 0; }
/* swipeable rows */
html.phone .scene-answers .answer-row, html.phone .stack-track {
  width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
html.phone .scene-answers .answer-row::-webkit-scrollbar, html.phone .stack-track::-webkit-scrollbar { display: none; }
html.phone .scene-answers .answer-card, html.phone .sc { scroll-snap-align: start; }
html.phone .scene-answers .answer-card { width: 82vw; }
html.phone .sc { width: 82vw; min-height: 0; }
html.phone .scene-words .drift { display: none; }
html.phone .stack-track { width: 100%; max-width: 100vw; justify-self: stretch; box-sizing: border-box; }
