/* live.css: the page's own motion (2026-11-28, v3 "alive").
   One story everywhere: three dots appear, the fourth lands and becomes the square, like an email reaching the inbox.
   Everything here is off under prefers-reduced-motion; the page reads the same without it. */
:root { --red: #d92b21; --ivory: #f6f1e4; --navy: #1d2d5c; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; pointer-events: none; }

/* the logo mark, built from four pieces so it can move */
.lm { --lm: 22px; --u: calc(var(--lm) / 24); display: inline-grid; grid-template: 1fr 1fr / 1fr 1fr; gap: calc(var(--u) * 2); width: var(--lm); height: var(--lm); padding: calc(var(--u) * 2); box-sizing: border-box; flex: none; vertical-align: middle; }
.lm i { display: block; background: var(--red); border-radius: 50%; }
.lm i:nth-child(4) { border-radius: 16.7%; }
.nav__logo .lm { margin-right: 8px; }
.lm--xl { --lm: clamp(88px, 12vw, 148px); }
.lm.is-play i { animation: lm-pop .46s cubic-bezier(.34, 1.56, .64, 1) both; }
.lm.is-play i:nth-child(2) { animation-delay: .12s; }
.lm.is-play i:nth-child(3) { animation-delay: .24s; }
.lm.is-play i:nth-child(4) { animation: lm-land 1s cubic-bezier(.22, 1, .36, 1) .42s both; }
@keyframes lm-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes lm-land {
  0% { transform: translateX(320%) scale(1.2, .86); border-radius: 50%; opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translateX(-14%) scale(.94, 1.06); border-radius: 50%; }
  72% { transform: none; border-radius: 50%; }
  86% { transform: scale(1.1); }
  100% { transform: none; border-radius: 16.7%; }
}

/* hero: the 3D scene (hero3d.js), or the 2D dot floor */
.hero { position: relative; isolation: auto; }   /* not isolate: that stops the report's glass blur from seeing the 3D */
.hero > .wrap { position: relative; z-index: 1; }
.hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero3d.is-on { opacity: 1; }
/* the report is frosted glass over the 3D mark */
.hero .rep.ui-panel { background: rgb(255 255 255 / .58); -webkit-backdrop-filter: blur(13px) saturate(1.7); backdrop-filter: blur(13px) saturate(1.7); border-color: rgb(0 0 0 / .08); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 30px 60px -20px rgb(0 0 0 / .18); }
.hero .rep__top { background: rgb(240 240 240 / .45); }
.dotfloor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(150% 100% at 62% 100%, #000 45%, transparent 85%); mask-image: radial-gradient(150% 100% at 62% 100%, #000 45%, transparent 85%); }

/* "junk": the word that won't sit still */
.junk { color: var(--red); white-space: nowrap; }
.junk span { display: inline-block; transform-origin: 50% 90%; transition: transform .3s; }
.junk:hover span, h1:hover .junk span { animation: junk-fall .9s cubic-bezier(.5, 0, .5, 1.4) both; animation-delay: calc(var(--i) * .06s); }
@keyframes junk-fall { 0% { transform: none; } 45% { transform: translateY(.32em) rotate(calc(var(--r) * 3deg)); } 100% { transform: translateY(.06em) rotate(calc(var(--r) * 1.4deg)); } }

/* tilt with a glare, for the cards you can pick up */
[data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.22, 1, .36, 1); position: relative; }
[data-tilt].is-tilting { transition: transform .08s linear; }
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: var(--glare, 0); transition: opacity .4s;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgb(255 255 255 / .55), transparent 55%); mix-blend-mode: soft-light; z-index: 3; }

/* magnetic buttons */
.btn[data-magnet] { transition: transform .35s cubic-bezier(.22, 1, .36, 1), background-color .2s, box-shadow .2s; transform: translate(var(--mx, 0), var(--my, 0)); }

/* the report: a scan while it checks, a stamp when a row answers, a call when there's something to fix */
.rep { position: relative; }
.rep[data-state="busy"] .rep__list { position: relative; overflow: hidden; }
.rep[data-state="busy"] .rep__list::after { content: ""; position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(transparent, rgb(217 43 33 / .14) 70%, rgb(217 43 33 / .55) 98%, transparent); animation: scan 1s linear infinite; pointer-events: none; }
@keyframes scan { to { transform: translateY(calc(100% + 420px)); } }
.rep__s.pop { animation: stamp .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.btn.is-calling { animation: call 2.2s ease-out infinite; }
@keyframes call { 0% { box-shadow: 0 0 0 0 rgb(217 43 33 / .5); } 70%, 100% { box-shadow: 0 0 0 16px rgb(217 43 33 / 0); } }

/* the fix: drag between Shopify's default and the fixed email */
.compare__tags { display: flex; justify-content: space-between; margin: 0 0 var(--s-3); }
.compare__stage { position: relative; display: grid; border-radius: 14px; touch-action: pan-y; }
.compare__stage > .mail { grid-area: 1 / 1; }
.compare__stage > .mail--plain { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); z-index: 1; }
.compare__line { position: absolute; top: -6px; bottom: -6px; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--red); z-index: 2; pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgb(217 43 33 / .4); font: 600 15px/1 var(--font-text); letter-spacing: 2px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.compare__range:focus-visible + .compare__line .compare__knob, .compare__stage:has(.compare__range:focus-visible) .compare__knob { outline: 3px solid var(--ink, #0a0a0a); outline-offset: 3px; }
.mail--brand .mail__track span::before { background: linear-gradient(#b5532a, #b5532a) 0 0 / 0% 100% no-repeat #d6cfc2; }
.mail--brand .mail__track span.on::before { background-size: 100% 100%; }
.is-live .mail--brand .mail__track span::before { animation: track 6s cubic-bezier(.65, 0, .35, 1) infinite; animation-delay: calc(var(--i) * .7s); }
@keyframes track { 0% { background-size: 0 100%; } 14%, 80% { background-size: 100% 100%; } 92%, 100% { background-size: 0 100%; } }

/* why now: the order email that never lands, in the report's own style */
.why h2 { margin: var(--s-3) 0 0; font-size: var(--t-h2); line-height: 1.12; letter-spacing: -0.02em; }
.why__mark { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-7); }
.why__mark p { margin: 0; max-width: 30ch; font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.lm--missing { --lm: 64px; }
.lm--missing i:nth-child(4) { position: relative; background: transparent; border: 2px dashed rgb(217 43 33 / .55); border-radius: 16.7%; }
.lm--missing i:nth-child(4)::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: var(--red); opacity: 0; }
.lm--missing.is-live i:nth-child(4)::after { animation: lm-miss 1.6s cubic-bezier(.3, .7, .4, 1) 1.9s both; }
@keyframes lm-miss {
  0% { transform: translateX(320%); opacity: 0; }
  12% { opacity: 1; }
  42% { transform: translateX(0) scale(1.12, .88); opacity: 1; }
  60% { transform: translate(90%, 40%) rotate(40deg); opacity: 1; }
  100% { transform: translate(200%, 260%) rotate(120deg); opacity: 0; }
}
.why__visual { position: relative; display: grid; justify-items: end; padding-bottom: 56px; }
.phone { width: min(100%, 300px); margin-right: 8%; border-radius: 44px; padding: 10px; background: #0a0a0a; box-shadow: 0 2px 4px rgb(0 0 0 / .1), 0 40px 80px -30px rgb(0 0 0 / .4); }
.phone__screen { aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; border-radius: 34px; background: #fff; overflow: hidden; padding: 12px 0 8px; }
.phone__island { width: 84px; height: 24px; border-radius: 20px; background: #0a0a0a; }
.phone__home { flex: none; width: 108px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #0a0a0a; }
.phone__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 2px 22px 10px; font: 600 12px/1 var(--font-text); }
.phone__dots i { display: inline-block; width: 4px; height: 4px; margin-left: 3px; border-radius: 50%; background: #0a0a0a; }
.phone__head { display: grid; gap: 10px; padding: 6px 16px 10px; }
.phone__head b { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.01em; }
.phone__search { padding: 9px 14px; border-radius: 999px; background: #f1f1f1; font-size: 12px; color: #8a8a8a; }
.phone__list { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.phone__dots { justify-self: end; }
.phone__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-top: 1px solid #f0f0f0; font-size: 12px; overflow: hidden; }
.phone__list li div { display: grid; gap: 1px; min-width: 0; }
.phone__list li b { font-size: 13px; font-weight: 600; }
.phone__list li div span { color: #6b6b6b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__list time { align-self: start; font-size: 11px; color: #8a8a8a; }
.phone__av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #ececec; color: #555; font-weight: 600; font-size: 13px; }
.phone__ghost { background: rgb(217 43 33 / .04); }
.phone__ghost div { opacity: .4; }
.phone__av--ghost { background: transparent; border: 1.5px dashed rgb(217 43 33 / .6); }
.phone__tag { font: 600 10px/1.2 var(--font-text); color: var(--bad-ink); background: var(--bad-bg); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.ask { position: absolute; left: 0; bottom: 0; width: min(74%, 290px); padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e6e6e6; box-shadow: 0 24px 48px -18px rgb(0 0 0 / .3); transform: rotate(-2deg); }
.ask__head { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); }
.ask__head b { color: var(--ink); font-size: 13px; }
.ask p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; }
@media (max-width: 767px) { .why__visual { justify-items: center; padding-bottom: 0; margin-top: var(--s-6); } .phone { margin-right: 0; } .ask { position: relative; width: min(92%, 320px); margin-top: -36px; } }
.js-live .phone__mail--new { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
.is-live .phone__mail--new { animation: mail-in .6s cubic-bezier(.22, 1, .36, 1) var(--d) both; }
@keyframes mail-in { from { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; } to { max-height: 64px; opacity: 1; padding-top: 10px; padding-bottom: 10px; border-top-width: 1px; } }
.js-live .phone__tag { opacity: 0; }
.is-live .phone__tag { animation: stamp .5s cubic-bezier(.34, 1.56, .64, 1) .8s both; }
.js-live .ask { opacity: 0; }
.is-live .ask { animation: ask-in .7s cubic-bezier(.34, 1.56, .64, 1) 3.6s both; }
@keyframes ask-in { from { opacity: 0; transform: translateY(28px) rotate(-7deg) scale(.95); } to { opacity: 1; transform: rotate(-2deg); } }

/* one red button at a time */
.nav .btn--primary { transition: background-color .3s, color .3s, box-shadow .3s, transform .35s cubic-bezier(.22, 1, .36, 1); }
.nav .btn--primary.is-quiet { background: transparent; color: var(--ink, #0a0a0a); box-shadow: inset 0 0 0 1.5px rgb(10 10 10 / .85); }

/* how: each step plays when it scrolls in */
.js-live #how .card .rep__row, .js-live #how .ui-code__ln { opacity: 0; }
.js-live #how .is-live .rep__row { animation: row-in .5s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * .16s + .15s); }
.js-live #how .is-live .ui-code__ln { animation: type-in .55s steps(18) both; animation-delay: calc(var(--i) * .3s + .2s); }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes type-in { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.step-num { transition: background-color .3s, color .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.is-live .step-num { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.08); }

/* close: the big mark */
.close__mark { margin-bottom: var(--s-2); }

@media (prefers-reduced-motion: reduce) {
  .lm.is-play i, .lm--missing.is-live i::after, .is-live .phone__mail--new, .is-live .phone__tag, .is-live .ask, .junk span, .btn.is-calling, .rep__s.pop, .is-live .mail--brand .mail__track span::before, .js-live #how .is-live .rep__row, .js-live #how .is-live .ui-code__ln { animation: none !important; }
  .js-live #how .card .rep__row, .js-live #how .ui-code__ln, .js-live .phone__tag, .js-live .ask { opacity: 1; }
  .js-live .phone__mail--new { max-height: none; opacity: 1; padding-top: 10px; padding-bottom: 10px; border-top-width: 1px; }
  [data-tilt], .btn[data-magnet] { transform: none !important; }
  .rep[data-state="busy"] .rep__list::after { animation: none; display: none; }
}
