/* ==========================================================================
   InfoBrandz · Sales Deck landing page
   Built on the Infobrandz (Huckleberry) design system: brand/tokens.css + brand/fonts.
   Component rules (ib-btn, ib-badge, step card, name tag) follow components/bundle.css.
   ========================================================================== */

:root {
  --gutter: clamp(16px, 4.4vw, 64px);
  --wrap: 1312px;
  --section-pad: clamp(96px, 11vw, 160px);
  --rise: var(--radius-section);
  --ease-out: cubic-bezier(.215, .61, .355, 1);   /* power3.out */
  --ease-io: cubic-bezier(.645, .045, .355, 1);   /* power3.inOut */
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.4; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type (fluid versions of the brand tokens) ---------- */
.t-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4.6vw, var(--fs-h2)); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.t-h2-sm { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, var(--fs-h2-sm)); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.t-h3 { font-family: var(--font-body); font-weight: 500; font-size: clamp(22px, 2vw, var(--fs-h3)); line-height: 1.1; letter-spacing: -.03em; text-transform: uppercase; }
.t-lead { font-size: clamp(19px, 1.7vw, var(--fs-lead)); line-height: 1.25; letter-spacing: .15px; }
.t-body { font-size: var(--fs-body); line-height: 1.4; letter-spacing: .17px; }
.t-label { font-family: var(--font-label); font-size: var(--fs-label); line-height: 1; letter-spacing: .15px; }

/* ---------- Brand components ---------- */
.ib-btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 24px; border: 0; border-radius: 32px; background: var(--grad-purple); color: var(--on-purple); font-family: var(--font-body); font-size: 18px; line-height: 22px; letter-spacing: .17px; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.ib-btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; transition: transform .2s var(--ease-out); }
.ib-btn:hover { box-shadow: 0 10px 24px -10px rgba(80, 40, 255, .6); }
.ib-btn:hover svg { transform: translateX(3px); }
.ib-btn:active { transform: translateY(1px); }
.ib-btn--outline { background: transparent; color: var(--ink); box-shadow: var(--shadow-hairline); border-radius: 73px; }
.ib-btn--outline:hover { box-shadow: inset 0 0 0 1.6px var(--ink); }
.ib-btn--light { background: var(--surface); color: var(--ink); }
.ib-btn--light:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.ib-btn--sm { padding: 10px 18px; font-size: 16px; font-weight: 500; line-height: 20px; }
.ib-badge { display: inline-flex; padding: 8px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-hairline); font-family: var(--font-label); font-size: 16px; line-height: 1; letter-spacing: .15px; white-space: nowrap; }
.ib-badge--on-purple { box-shadow: inset 0 0 0 .8px var(--on-purple); color: var(--on-purple); }
.ib-badge--on-dark { box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .9); color: #fff; }
.ib-nametag { display: inline-flex; padding: 6px 12px; border-radius: 6px; background: var(--grad-lime); color: var(--on-lime); font-family: var(--font-label); font-size: 14px; font-weight: 500; line-height: 1; }

/* ---------- Media slots (until the real files are supplied) ---------- */
.slot { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-md); background: var(--stage); }
.slot__label { padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .85); color: var(--ink); font-family: var(--font-label); font-size: 13px; line-height: 1.2; text-align: center; max-width: 90%; }
.slot--slide { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, #f1f1f4 0 14px, #ececf0 14px 28px); }
.slot--muted { background: repeating-linear-gradient(135deg, #e4e4e9 0 14px, #dcdce2 14px 28px); }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo img { width: 124px; height: auto; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; font-size: 16px; }
.nav__links a { text-decoration: none; padding: 6px 0; background: linear-gradient(var(--purple), var(--purple)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { background-size: 100% 2px; }

/* ---------- Sections: each one rises over the last with rounded top corners ---------- */
main { position: relative; }
.panel { position: relative; margin-top: calc(-1 * var(--rise)); padding: calc(var(--section-pad) * .85) 0 calc(var(--section-pad) + var(--rise)); border-radius: var(--rise) var(--rise) 0 0; }
.panel--white { background: var(--surface); }
.panel--alt { background: var(--surface-alt); padding-bottom: clamp(56px, 6vw, 88px); }
.panel--purple { background: var(--purple); color: var(--on-purple); }
.panel--ink { background: var(--field-ink); color: #fff; }
.panel > .wrap > .ib-badge { margin-bottom: 28px; }
.split { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.split__head { max-width: 15em; }
.split__side { max-width: 34em; color: var(--ink-soft); }

/* ---------- 1. Hero ---------- */
.hero { padding: clamp(56px, 7vw, 104px) 0 calc(var(--rise) + clamp(64px, 7vw, 112px)); }
.hero .ib-badge { margin-bottom: 32px; }
@media (max-width: 360px) { .ib-badge { max-width: 100%; padding-inline: 14px; font-size: 14px; line-height: 1.2; white-space: normal; } }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 6.55vw, 100px); line-height: 1.01; letter-spacing: -.04em; text-transform: uppercase; }
.hero__line { display: block; white-space: nowrap; }
.hero__key { color: var(--purple-text); }
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); }
.hero__lead { max-width: 550px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }


/* ---------- 2. Video ---------- */
.video { z-index: 1; }
.video__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.video__title { max-width: 14em; }
.video__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.player__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 30px 60px -30px rgba(0, 0, 0, .45); background: #1a0f66; }
.player__video { width: 100%; height: 100%; object-fit: cover; }
.slot--video { position: absolute; inset: 0; border-radius: 0; background: radial-gradient(120% 90% at 30% 20%, #3b1ee0 0%, #241391 55%, #150b5c 100%); }
.slot--video .slot__label { position: absolute; left: 20px; bottom: 20px; }
.player__play { display: grid; place-items: center; width: 96px; height: 96px; border: 0; border-radius: 50%; background: var(--lime); color: var(--on-lime); cursor: pointer; transition: transform .3s var(--ease-out); }
.player__play svg { width: 40px; height: 40px; fill: currentColor; margin-left: 5px; }
.player__play:hover { transform: scale(1.06); }
.chapters { display: flex; flex-direction: column; gap: 12px; }
.chapters__label { color: rgba(255, 255, 255, .8); }
.chapters__list { display: grid; gap: 10px; counter-reset: ch; }
.chapter { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: var(--radius-md); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .45); color: #fff; text-align: left; cursor: pointer; transition: background .25s, transform .25s var(--ease-out); }
.chapter:hover { background: rgba(255, 255, 255, .18); transform: translateX(4px); }
.chapter.is-active { background: #fff; color: var(--ink); }
.chapter__time { font-family: var(--font-label); font-size: 14px; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--lime); color: var(--on-lime); }
.chapter__name { font-weight: 500; font-size: 19px; }
.chapter svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.chapters__note { min-height: 1.4em; font-size: 14px; color: rgba(255, 255, 255, .8); }
.feedback { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; margin-top: clamp(80px, 9vw, 128px); padding-top: clamp(48px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, .25); }
.feedback__title { margin-bottom: 20px; }
.feedback__act { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 16px; height: 16px; fill: var(--lime); }

/* ---------- 3. Trust ---------- */
.trust { z-index: 2; }
.trust .split { grid-template-columns: minmax(0, 1fr) auto; }
.trust__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: center; }
.portrait { position: relative; max-width: 460px; }
.slot--portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--purple); }
.slot--portrait::before { content: ""; position: absolute; right: -14%; bottom: -10%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); }
.slot--portrait .slot__label { position: relative; }
.portrait__tag { position: absolute; left: 24px; bottom: 24px; }
.trust__copy { display: grid; gap: 20px; }
.trust__copy .t-body { color: var(--ink-soft); max-width: 36em; }
.press { display: flex; flex-wrap: wrap; gap: 10px; }
.press li { padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-hairline); font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(56px, 7vw, 96px); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 28px 28px 26px; border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.stat dd { font-family: var(--font-display); font-weight: 500; font-size: clamp(44px, 4.6vw, 72px); line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 16px; color: var(--ink-soft); }
.stat--accent { background: var(--purple); color: #fff; }
.stat--accent dt { color: rgba(255, 255, 255, .85); }
.stat--accent svg { width: 30px; height: 30px; fill: var(--lime); align-self: center; margin-left: 8px; }
.clients { margin-top: clamp(56px, 7vw, 88px); }
.clients__label { color: var(--ink-soft); margin-bottom: 8px; }
/* Client logo marquee: slow right-to-left loop; the logo nearest the centre shows its own colours (--k, 0 to 1, from js/site.js). */
.marquee { position: relative; overflow: hidden; padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; align-items: center; width: max-content; gap: 0; will-change: transform; }
.marquee__item { --k: 0; flex: none; display: grid; place-items: center; height: 64px; padding: 0 clamp(26px, 3.4vw, 46px); }
.marquee__item img { display: block; height: var(--h); width: auto; max-width: none; filter: grayscale(calc(1 - var(--k))) contrast(calc(1 - .12 * (1 - var(--k)))); opacity: calc(.5 + .5 * var(--k)); }
.marquee.is-static .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
.marquee.is-static { -webkit-mask-image: none; mask-image: none; }
.marquee.is-static .marquee__item:hover { --k: 1; }

/* ---------- 4. Review checklist ---------- */
.review { z-index: 3; }
.review__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px 72px; align-items: start; }
.review__copy { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 48px); }
.review__copy .t-body, .review__copy .t-lead { color: rgba(255, 255, 255, .85); }
.sheet { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: #fff; color: var(--ink); }
.sheet__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--chart-grid); }
.sheet__count { font-size: 14px; color: var(--ink-soft); }
.sheet__count b { color: var(--purple); }
.sheet__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--chart-grid); font-size: 16px; line-height: 1.25; color: #6b6b75; }
.item b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f0f0f3; transition: background .35s var(--ease-out), transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.item svg { width: 15px; height: 15px; fill: #8c8c99; }
.item--open { color: var(--ink); font-weight: 500; }
.item--open.is-on b { background: var(--purple); transform: scale(1.08); }
.item--open.is-on svg { fill: var(--lime); }
.item--blur i { display: block; height: 10px; width: var(--w); border-radius: 5px; background: #cfcfd6; filter: blur(3px); }
.sheet__cta { width: 100%; margin-top: 28px; }

/* ---------- 5. Work ---------- */
.work { z-index: 4; }
.compare { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.compare__stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); user-select: none; touch-action: pan-y; }
.compare__img { position: absolute; inset: 0; border-radius: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__tag { position: absolute; top: 18px; z-index: 2; padding: 6px 14px; border-radius: var(--radius-pill); font-family: var(--font-label); font-size: 14px; }
.compare__tag--before { left: 18px; background: var(--ink); color: #fff; }
.compare__tag--after { right: 18px; background: var(--purple); color: #fff; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 2; width: 2px; background: #fff; pointer-events: none; }
.compare__handle svg { max-width: none; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; padding: 13px; translate: -50% -50%; border-radius: 50%; background: var(--purple); fill: #fff; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .4); }
.compare__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * , .compare__stage:has(.compare__range:focus-visible) { outline: 2px solid var(--purple); outline-offset: 4px; }
.compare__notes { display: grid; gap: 28px; }
.compare__notes .t-h3 { margin-bottom: 8px; }
.compare__notes .t-body { color: var(--ink-soft); }
.compare__img .slot__label { position: absolute; bottom: 16px; }
.compare__img--before .slot__label { left: 16px; }
.compare__img--after .slot__label { right: 16px; }
.compare__after { color: var(--purple-text); }
.samples__title { margin: clamp(80px, 9vw, 128px) 0 32px; }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sample .slot { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.sample:hover .slot { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.sample__name { margin-top: 14px; font-weight: 500; }

/* ---------- 6. Team + savings ---------- */
.team { z-index: 5; }
.team__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.team__title { max-width: 11em; }
.team__kicker { color: rgba(255, 255, 255, .9); max-width: 22em; }

/* The comparison: three separate specialists (left, muted) versus one integrated team (right, the focal point).
   --m (0 to 1, set from scroll by js/site.js) tangles the left and assembles the right. */
.versus { --m: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1.12fr); align-items: stretch; }
.vs-side { position: relative; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius-lg); }
.vs-side--apart { background: rgba(11, 11, 15, .2); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .28); color: #fff; margin-right: 14px; }
.vs-side--one { background: #fff; color: var(--ink); margin-left: 14px; box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .5); }
.vs-label { font-family: var(--font-label); font-size: 15px; line-height: 1.2; margin-bottom: 18px; }
.vs-side--apart .vs-label { color: rgba(255, 255, 255, .78); }
.vs-side--one .vs-label { color: var(--purple-text); }
.vs-mark { align-self: center; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin-left: -32px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; text-transform: uppercase; box-shadow: 0 0 0 6px var(--purple); }

/* Left: scattered specialists, handoff lines and revision loops around "You" */
.tangle { position: relative; aspect-ratio: 5 / 4; flex: 1; min-height: 240px; }
.tangle__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.tangle__lines path { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; opacity: calc(.15 + .85 * var(--m)); }
.spec, .loop, .tangle .node--you { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
.spec { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: var(--radius-pill); background: rgba(80, 40, 255, .55); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .6); font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; rotate: calc(var(--r) * var(--m)); transition: rotate .2s linear; }
.spec b, .layer b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.spec svg, .layer b svg { width: 16px; height: 16px; fill: var(--purple); }
.loop { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .5); opacity: var(--m); transform: rotate(calc(var(--m) * 220deg)); }
.loop svg { width: 15px; height: 15px; fill: rgba(255, 255, 255, .85); }
.costs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.costs li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 .8px rgba(255, 255, 255, .45); font-size: 15px; line-height: 1.1; }
.costs svg { width: 13px; height: 13px; fill: var(--lime); }

/* Right: the same capabilities, assembled into one deck, one line to you */
.flow { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.one-deck { --k: clamp(0, calc(var(--m) * 2.4), 1); position: relative; width: min(100%, 380px); display: grid; gap: 8px; padding: 46px 14px 14px; border-radius: 24px; background: var(--grad-purple); color: #fff;
  box-shadow: 0 calc(var(--k) * 10px) 0 -5px #b9aeff, 0 calc(var(--k) * 19px) 0 -10px #dcd5ff, 0 26px 40px -22px rgba(80, 40, 255, .7); }
.one-deck__tab { position: absolute; left: 16px; top: 15px; font-family: var(--font-label); font-size: 14px; color: rgba(255, 255, 255, .92); }
.layer { --j: clamp(0, calc((var(--m) - .14 * var(--i)) * 2.6), 1); display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 500; opacity: calc(.25 + .75 * var(--j)); transform: translateX(calc((1 - var(--j)) * -56px)); }
.layer i { margin-left: auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--purple); transform: scale(var(--j)); }
.layer i svg { width: 13px; height: 13px; fill: var(--lime); }
.flow__line { width: 3px; height: 26px; border-radius: 2px; background: var(--purple); transform-origin: 50% 0; transform: scaleY(clamp(0, calc((var(--m) - .45) * 3), 1)); }
.flow__line:first-of-type { margin-top: 14px; }
.node { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.node svg { width: 18px; height: 18px; }
.node--lead { background: var(--ink); color: #fff; }
.node--lead svg { fill: var(--lime); }
.flow .node--you { box-shadow: var(--shadow-hairline); }
.flow .node--you svg { fill: var(--purple); }
.tangle .node--you { background: #fff; color: var(--ink); }
.tangle .node--you svg { fill: var(--purple); }
.gains { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.gains li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); background: #efebff; font-size: 15px; line-height: 1.1; }
.gains svg { width: 14px; height: 14px; fill: var(--purple); }
.calc { margin-top: clamp(80px, 9vw, 120px); padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); background: #fff; color: var(--ink); }
.calc__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.calc__pending { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--ink); color: var(--lime); font-family: var(--font-label); font-size: 14px; }
.calc__inputs { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 32px; padding-bottom: 32px; border-bottom: 1px solid var(--chart-grid); }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend, .select > span { display: block; margin-bottom: 10px; font-family: var(--font-label); font-size: 15px; color: var(--ink-soft); padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-block; padding: 11px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-hairline); font-size: 15px; line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--purple); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 3px; }
.select { display: block; }
.select select { width: 100%; appearance: none; padding: 12px 44px 12px 18px; border: 0; border-radius: var(--radius-pill); box-shadow: var(--shadow-hairline); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216.49 104.49l-80 80a12 12 0 0 1-17 0l-80-80a12 12 0 0 1 17-17L128 159l71.51-71.52a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat right 18px center / 14px; font-size: 15px; cursor: pointer; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; padding: 32px 0; }
.result__title { font-family: var(--font-body); font-weight: 500; font-size: 20px; margin-bottom: 18px; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.bar__label { font-size: 15px; color: var(--ink-soft); }
.bar b { grid-column: 2; grid-row: 1 / 3; font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -.03em; min-width: 3.5em; text-align: right; font-variant-numeric: tabular-nums; }
.bar__label { grid-column: 1; grid-row: 1; }
.bar__track { grid-column: 1; grid-row: 2; display: block; height: 12px; border-radius: 6px; background: var(--chart-grid); overflow: hidden; }
.bar__track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--chart-muted); transition: width var(--t-chart-grow) var(--ease-out); }
.bar--us .bar__track i { background: var(--chart-mark); }
.bar--us .bar__label { color: var(--ink); font-weight: 500; }
.result__save { margin-top: 16px; font-weight: 600; color: var(--purple); }
.calc__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 28px; border-top: 1px solid var(--chart-grid); }
.calc__note { flex: 1 1 280px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 7. Approach ---------- */
.approach { z-index: 6; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 44px; --draw: 0; }
.steps__line { position: absolute; left: 28px; right: 28px; top: 0; height: 4px; z-index: 0; border-radius: 2px; background: var(--chart-grid); }
.steps__line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--purple); transform-origin: 0 0; transform: scaleX(var(--draw)); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 54px var(--radius-md) var(--radius-md); background: var(--card); box-shadow: var(--shadow-card); }
.step__no { font-family: var(--font-label); font-size: 15px; color: var(--ink-soft); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad-purple); }
.step__icon svg { width: 26px; height: 26px; fill: #fff; }
.step p { color: var(--ink-soft); font-size: 17px; line-height: 1.4; }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.8vw, 56px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.equation i { font-style: normal; color: var(--lime); }
.equation__key { padding: .06em .22em; border-radius: .2em; background: var(--grad-purple); }

/* ---------- 8. Session ---------- */
.session { z-index: 7; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); transition: transform .4s var(--ease-out); }
.path:hover { transform: translateY(-4px); }
.path__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-purple); }
.path__icon svg { width: 28px; height: 28px; fill: #fff; }
.path .t-body { color: var(--ink-soft); }
.path__label { margin-top: 8px; font-family: var(--font-label); font-size: 15px; color: var(--ink-soft); }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.35; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23fff' d='M232.49 80.49l-128 128a12 12 0 0 1-17 0l-56-56a12 12 0 1 1 17-17L96 183 215.51 63.51a12 12 0 0 1 17 17Z'/%3E%3C/svg%3E") no-repeat center / 11px; }

/* ---------- 9. Finale: the closing call to action, one screen tall, as the page's footer ---------- */
/* Fits the viewport at every size (sizes scale with screen height too). Purple field, white gain card;
   lime only on the kicker bar and the word "plan". The mascot stands on the button and taps it. */
.session { padding-bottom: calc(clamp(56px, 6vw, 88px) + var(--rise)); }
.finale { --gap: clamp(14px, 3.2svh, 40px); --head-gap: clamp(28px, 6.5svh, 72px); --pad: clamp(24px, 8svh, calc(var(--section-pad) * .85)); position: relative; z-index: 8; isolation: isolate; margin-top: calc(-1 * var(--rise)); padding: var(--pad) 0; border-radius: var(--rise) var(--rise) 0 0; background: var(--purple); color: var(--on-purple); overflow: clip; }
.finale::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(55% 60% at 90% 70%, rgba(140, 115, 255, .8), rgba(140, 115, 255, 0)); pointer-events: none; }
.finale__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head head" "flow cta"; align-items: end; gap: var(--gap) clamp(28px, 4vw, 64px); }

.finale__head { grid-area: head; margin-bottom: calc(var(--head-gap) - var(--gap)); display: grid; gap: clamp(10px, 1.8svh, 20px); }
.finale__kicker { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-label); font-size: 15px; line-height: 1; color: rgba(255, 255, 255, .85); }
.finale__kicker i { position: relative; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.finale__kicker i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lime); transform-origin: 0 50%; transition: transform 1.2s var(--ease-io) .2s; }
.js .finale__head:not(.is-in) .finale__kicker i::after { transform: scaleX(0); }
.finale__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, min(4.6vw, 7svh), 72px); line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.finale__title span { display: block; }
.finale__title em { font-style: normal; color: var(--lime); }

/* The deal: two small "gives" (it costs nothing) add up to one big gain */
.finale__flow { grid-area: flow; display: grid; grid-template-columns: minmax(150px, .7fr) auto minmax(0, 1.65fr); grid-template-rows: 1fr auto 1fr; gap: 10px clamp(12px, 1.6vw, 20px); align-items: center; }
.give { display: grid; gap: 6px; align-self: stretch; align-content: center; padding: clamp(12px, 2svh, 20px) 18px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.give:first-child { grid-area: 1 / 1; }
.give:nth-child(3) { grid-area: 3 / 1; }
.give__label { font-family: var(--font-label); font-size: 13px; letter-spacing: .3px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.give__value { font-size: clamp(15px, 2.1svh, 18px); font-weight: 500; line-height: 1.25; }
.flow__op { grid-area: 2 / 1; justify-self: center; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.flow__op svg { width: 14px; height: 14px; fill: #fff; }
.flow__op--to { grid-area: 1 / 2 / 4 / 3; width: 44px; height: 44px; background: #fff; }
.flow__op--to svg { width: 20px; height: 20px; fill: var(--purple); }
.gain { grid-area: 1 / 3 / 4 / 4; display: grid; gap: clamp(10px, 1.6svh, 16px); padding: clamp(16px, 2.8svh, 30px) clamp(18px, 2vw, 30px); border-radius: var(--radius-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow-float); }
.gain__label { font-family: var(--font-label); font-size: 13px; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; color: var(--purple); }
.gain__list { display: grid; gap: clamp(6px, 1.1svh, 10px); }
.gain__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: clamp(8px, 1.3svh, 12px) 14px clamp(8px, 1.3svh, 12px) 10px; border-radius: 16px; background: var(--surface-alt); font-size: clamp(14px, 2svh, 17px); line-height: 1.3; color: var(--ink-soft); }
.gain__list b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad-purple); color: #fff; font-family: var(--font-label); font-size: 13px; font-weight: 500; }
.gain__list .gain__hi { background: var(--grad-purple); color: #fff; font-weight: 500; }
.gain__list .gain__hi b { background: #fff; color: var(--purple); }

/* The call to action: the mascot stands on the button and taps it */
.finale__cta { grid-area: cta; display: grid; gap: 14px; justify-items: center; }
.finale__press { display: grid; justify-items: center; }
.finale__press .stop--final { width: var(--mw); height: calc(var(--mw) * 1.1); margin-bottom: calc(var(--mw) * -.07); }
.finale__btn { position: relative; display: inline-flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 8px 8px 28px; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-family: var(--font-body); font-size: clamp(17px, 2.3svh, 19px); font-weight: 500; text-decoration: none; white-space: nowrap; box-shadow: 0 18px 40px -16px rgba(20, 6, 90, .6); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); animation: finale-ring 1.4s var(--ease-out) infinite; }
.finale__btn b { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--grad-purple); transition: transform .25s var(--ease-out); }
.finale__btn svg { width: 20px; height: 20px; fill: #fff; }
.finale__btn:hover { transform: translateY(-2px); animation-play-state: paused; }
.finale__btn:hover b { transform: translateX(4px); }
.finale__btn:active { transform: translateY(1px) scale(.98); }
.finale__btn:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes finale-ring { 0%, 45% { box-shadow: 0 18px 40px -16px rgba(20, 6, 90, .6), 0 0 0 0 rgba(255, 255, 255, .55); } 100% { box-shadow: 0 18px 40px -16px rgba(20, 6, 90, .6), 0 0 0 16px rgba(255, 255, 255, 0); } }
.finale__note { font-family: var(--font-label); font-size: 14px; color: rgba(255, 255, 255, .8); text-align: center; }

/* The "press" pose: the screen leans forward over the button and its left hand, tucked under the frame's
   corner, pushes down on it. The whole upper body bobs with each tap, so the hand never looks detached. */
.m-top { transform-box: view-box; transform-origin: 100px 150px; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.mascot[data-hand="press"] .m-top { transform: translate(-6px, 24px) rotate(-14deg); animation: m-lean 1.4s ease-in-out .5s infinite; }
.mascot[data-hand="press"] .m-hand--l { transform: translate(10px, 36px) rotate(-76deg); }
.mascot[data-hand="press"] .m-hand--l .m-finger { opacity: 1; }
@keyframes m-lean { 0%, 40%, 100% { transform: translate(-6px, 24px) rotate(-14deg); } 55%, 64% { transform: translate(-6px, 33px) rotate(-17deg); } }

@media (min-width: 901px) and (max-height: 680px) { .finale__btn { min-height: 56px; } .finale__btn b { width: 42px; height: 42px; } }

@media (max-width: 1100px) and (min-width: 901px) {
  .finale__btn { white-space: normal; max-width: 280px; }
}
@media (max-width: 900px) {
  .finale { --gap: clamp(10px, 2svh, 28px); --head-gap: clamp(16px, 3svh, 40px); --pad: clamp(14px, 2.5svh, 48px); }
  .finale__in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "flow" "cta"; align-items: stretch; }
  .finale__title { font-size: clamp(28px, min(8vw, 5.4svh), 56px); }
  .finale__flow { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 8px; }
  .give:first-child { grid-area: 1 / 1; }
  .flow__op { grid-area: 1 / 2; }
  .give:nth-child(3) { grid-area: 1 / 3; }
  .flow__op--to { grid-area: 2 / 1 / 3 / 4; width: 34px; height: 34px; transform: rotate(90deg); }
  .gain { grid-area: 3 / 1 / 4 / 4; }
  .give { padding: 10px 14px; }
  /* The mascot (a still copy here) stands at the right end of the button and taps it */
  .finale__cta { justify-items: stretch; gap: 10px; }
  .finale__press { grid-template-columns: auto auto; justify-content: center; align-items: end; gap: 6px; }
  .finale__press .stop--final { display: block; order: 2; margin: 0 0 -4px; }
  .finale__btn { order: 1; justify-content: space-between; white-space: normal; min-height: 58px; padding-left: 22px; }
}
/* Small screens: the still copy stands beside the button, so it leans sideways and pushes it from the right */
@media (max-width: 900px) {
  .finale .mascot--static[data-hand="press"] .m-top { transform: translate(-4px, 8px) rotate(-10deg); animation-name: m-lean-side; }
  .finale .mascot--static[data-hand="press"] .m-hand--l { transform: translate(-4px, 10px); }
}
@keyframes m-lean-side { 0%, 40%, 100% { transform: translate(-4px, 8px) rotate(-10deg); } 55%, 64% { transform: translate(-12px, 8px) rotate(-13deg); } }
@media (max-width: 640px) {
  .finale__press { grid-template-columns: minmax(0, 1fr) auto; }
}
/* The note repeats "Free, no obligation" from the flow, so it gives way first on shorter phones */
@media (max-width: 900px) and (max-height: 780px) { .finale__note { display: none; } }
@media (max-width: 900px) and (max-height: 700px) {
  .finale { --pad: 10px; }
  .gain__list li { padding-block: 6px; }
  .gain__list b { width: 28px; height: 28px; }
}
/* Very short phones (e.g. 375 x 600 visible): tighten everything so the slide still fits */
@media (max-width: 900px) and (max-height: 640px) {
  .finale { --gap: 8px; --head-gap: 14px; --pad: 10px; }
  .finale__kicker { display: none; }
  .finale__title { font-size: clamp(24px, 4.6svh, 30px); }
  .give { padding: 7px 12px; gap: 2px; }
  .give__label { font-size: 11px; }
  .give__value { font-size: 14px; }
  .flow__op--to { width: 28px; height: 28px; }
  .flow__op--to svg { width: 16px; height: 16px; }
  .gain { gap: 8px; padding: 12px 14px; }
  .gain__list li { gap: 10px; font-size: 13.5px; padding: 5px 10px 5px 6px; }
  .finale__btn { min-height: 52px; font-size: 16px; }
  .finale__btn b { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .finale__kicker i::after, .finale__btn, .finale__btn b { transition: none; }
  .finale__btn, .mascot[data-hand="press"] .m-top { animation: none; }
  .js .finale__head .finale__kicker i::after { transform: none; }
}

/* ---------- Sticky call to action ---------- */
.dock-bar { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .96); box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .35), var(--shadow-hairline); transition: transform .45s var(--ease-out), opacity .3s; }
.dock-bar[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; }
.dock-bar__text { font-size: 15px; white-space: nowrap; }

/* ---------- The mascot: a presentation screen with a face ----------
   Stops ([data-stop]) are empty boxes in the layout where the mascot settles; each one sets
   its mood, gaze, hand pose and message. The fixed .mascot travels between them (js/site.js). */
:root { --mw: 168px; }
.stop { display: block; flex: none; width: var(--mw); height: calc(var(--mw) * 1.1); pointer-events: none; position: relative; }
.stop--hero { display: inline-block; width: 1.6em; height: 1.76em; vertical-align: baseline; margin: -1.4em .02em -.04em .1em; }
.stop--cta { align-self: flex-end; margin: -24px 0 -12px; }
.stop--final { width: min(100%, 210px); height: auto; aspect-ratio: 200 / 220; }

.mascot { --lx: 0; --ly: 0; --p: 0; --s: 1; position: fixed; left: 0; top: 0; z-index: 30; width: var(--mw); height: calc(var(--mw) * 1.1); pointer-events: none; opacity: 0; transition: opacity .4s; will-change: transform; }
.mascot.is-ready { opacity: 1; }
.mascot__body { width: 100%; height: 100%; transform: scale(var(--s)); transform-origin: 50% 100%; transition: transform .25s var(--ease-out); filter: drop-shadow(0 14px 16px rgba(24, 10, 90, .2)); }
.mascot__svg { width: 100%; height: 100%; overflow: visible; }

/* Body: purple screen, white face, stand and hands outlined in white so it reads on every ground */
.m-bezel { fill: var(--purple); stroke: #fff; stroke-width: 6; paint-order: stroke; }
.m-screen { fill: #fff; }
.m-track { fill: rgba(255, 255, 255, .35); }
.m-progress { fill: var(--lime); transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(var(--p)); }
.m-stand path { fill: none; stroke: var(--purple); stroke-width: 7; stroke-linecap: round; }
.m-stand--halo path { stroke: #fff; stroke-width: 13; }
.m-hand circle { fill: var(--purple); stroke: #fff; stroke-width: 5; paint-order: stroke; }
.m-finger { fill: var(--purple); stroke: #fff; stroke-width: 5; paint-order: stroke; opacity: 0; transition: opacity .2s; }
.mascot[data-hand="point-left"] .m-hand--l .m-finger, .mascot[data-hand="point-down"] .m-hand--l .m-finger, .mascot[data-hand="point-right"] .m-hand--r .m-finger { opacity: 1; }
.m-hand { transform-box: view-box; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }

/* Face parts, each moved on its own */
.m-face { transform-box: fill-box; transform-origin: 50% 70%; transition: transform .4s var(--ease-out); }
.m-pupil { fill: var(--field-ink); transform: translate(calc(var(--lx) * 4px), calc(var(--ly) * 3px)); transition: transform .35s var(--ease-out); }
.m-shine { fill: #fff; }
.m-eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .3s var(--ease-out); }
.m-eye__open { transform-box: fill-box; transform-origin: 50% 50%; transition: opacity .15s; animation: m-blink 6s infinite; }
.m-eye--r .m-eye__open { animation-delay: .02s; }
.m-lid { fill: #fff; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform .3s var(--ease-out); }
.m-eye__happy { fill: none; stroke: var(--field-ink); stroke-width: 5.5; stroke-linecap: round; opacity: 0; transition: opacity .15s; }
.m-brow { fill: none; stroke: var(--field-ink); stroke-width: 5.5; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 50%; transition: transform .35s var(--ease-out); }
.m-cheek { fill: #cbc1ff; }
.m-mouth { fill: var(--field-ink); opacity: 0; transition: opacity .18s; }
.m-stroke { fill: none; stroke: var(--field-ink); stroke-width: 5.5; stroke-linecap: round; }
.m-tongue { fill: var(--purple-tint); }
.m-lines path { fill: none; stroke: var(--purple); stroke-width: 5; stroke-linecap: round; }
.m-lines { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease-out); }
.mascot[data-ground="purple"] .m-lines path, .mascot[data-ground="dark"] .m-lines path { stroke: var(--lime); }
@keyframes m-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
@keyframes m-wave { 0%, 100% { transform: translate(6px, -52px) rotate(0); } 50% { transform: translate(14px, -56px) rotate(18deg); } }

/* Moods */
.mascot[data-mood="hello"] .m-mouth--smile,
.mascot[data-mood="playful"] .m-mouth--smile,
.mascot[data-mood="excited"] .m-mouth--grin,
.mascot[data-mood="encourage"] .m-mouth--grin,
.mascot[data-mood="curious"] .m-mouth--o,
.mascot[data-mood="confident"] .m-mouth--smirk,
.mascot[data-mood="travel"] .m-mouth--soft { opacity: 1; }
.mascot[data-mood="hello"] .m-brow { transform: translateY(-3px); }
.mascot[data-mood="curious"] .m-brow--r { transform: translateY(-8px) rotate(-12deg); }
.mascot[data-mood="curious"] .m-face { transform: rotate(-5deg); }
.mascot[data-mood="excited"] .m-eye { transform: scale(1.14); }
.mascot[data-mood="excited"] .m-brow { transform: translateY(-8px); }
.mascot[data-mood="excited"] .m-lines { opacity: 1; transform: none; }
.mascot[data-mood="confident"] .m-lid { transform: scaleY(.62); }
.mascot[data-mood="confident"] .m-brow--l { transform: translateY(3px) rotate(9deg); }
.mascot[data-mood="confident"] .m-brow--r { transform: translateY(1px) rotate(-4deg); }
.mascot[data-mood="encourage"] .m-eye__open { opacity: 0; }
.mascot[data-mood="encourage"] .m-eye__happy { opacity: 1; }
.mascot[data-mood="encourage"] .m-brow { transform: translateY(-6px); }
.mascot[data-mood="playful"] .m-eye--l .m-eye__open { opacity: 0; }
.mascot[data-mood="playful"] .m-eye--l .m-eye__happy { opacity: 1; }
.mascot[data-mood="playful"] .m-brow--r { transform: translateY(-7px) rotate(-10deg); }
.mascot[data-mood="playful"] .m-face { transform: rotate(4deg); }

/* Hands */
.m-hand--l { transform-origin: 14px 122px; }
.m-hand--r { transform-origin: 186px 122px; }
.mascot[data-hand="wave"] .m-hand--r { transform: translate(6px, -52px); animation: m-wave .5s ease-in-out .3s 4; }
.mascot[data-hand="point-left"] .m-hand--l { transform: translate(-16px, -20px); }
.mascot[data-hand="point-right"] .m-hand--r { transform: translate(16px, -20px); }
.mascot[data-hand="point-down"] .m-hand--l { transform: translate(2px, 30px) rotate(-90deg); }

/* Speech bubble */
.mascot__bubble { position: absolute; top: 14%; z-index: 1; width: max-content; max-width: 250px; padding: 13px 17px; border-radius: var(--radius-md); background: #fff; color: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: .1px; text-wrap: balance; text-transform: none; white-space: normal; text-align: left;
  box-shadow: 0 16px 34px -14px rgba(20, 10, 80, .45), inset 0 0 0 .8px rgba(0, 0, 0, .1); opacity: 0; transform: translateY(6px) scale(.94); transition: opacity .22s, transform .3s var(--ease-out); }
.mascot__bubble::after { content: ""; position: absolute; top: 22px; width: 14px; height: 14px; background: #fff; box-shadow: inset .8px -.8px 0 rgba(0, 0, 0, .1); border-radius: 0 3px 0 0; }
.mascot[data-side="right"] .mascot__bubble { left: calc(100% + 12px); transform-origin: 0 50%; }
.mascot[data-side="right"] .mascot__bubble::after { left: -6px; transform: rotate(-135deg); }
.mascot[data-side="left"] .mascot__bubble { right: calc(100% + 12px); transform-origin: 100% 50%; }
.mascot[data-side="left"] .mascot__bubble::after { right: -6px; transform: rotate(45deg); }
.mascot[data-side="top"] .mascot__bubble { top: auto; bottom: calc(100% + 6px); right: 30%; transform-origin: 80% 100%; }
.mascot[data-side="top"] .mascot__bubble::after { top: auto; bottom: -6px; right: 28px; transform: rotate(135deg); }
.mascot.is-talking .mascot__bubble { opacity: 1; transform: none; }

/* Still copies (reduced motion, and the hero on small screens) */
.mascot--static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; transform: none !important; will-change: auto; }

/* Small screens: the mascot rides on the sticky bar and speaks above it */
@media (max-width: 900px) {
  :root { --mw: 74px; }
  .stop:not(.stop--hero):not(.stop--final) { display: none; }
  .stop--hero { width: 1.3em; height: 1.43em; margin: -1.1em 0 -.04em .06em; }
  .mascot:not(.mascot--static) { left: 16px; top: auto; bottom: 16px; transform: none !important; opacity: 0; }
  .mascot.on-bar:not(.mascot--static) { opacity: 1; z-index: 46; }
  .mascot:not(.mascot--static) { bottom: 22px; }
  .mascot:not(.mascot--static) .mascot__bubble { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; max-width: min(270px, calc(100vw - 48px)); font-size: 15px; transform-origin: 20% 100%; }
  .mascot:not(.mascot--static) .mascot__bubble::after { top: auto; bottom: -6px; left: 26px; right: auto; transform: rotate(135deg); }
  .mascot--static .mascot__bubble { display: none; }
  .dock-bar.has-mascot { padding-left: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .m-eye__open, .m-hand { animation: none !important; }
  .mascot, .mascot__body, .mascot__bubble, .m-hand, .m-face, .m-pupil, .m-eye, .m-lid, .m-brow, .m-mouth, .m-lines { transition: none; }
}

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav nav { margin-left: auto; }
  .video__grid { grid-template-columns: 1fr; }
  .chapters__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter { grid-template-columns: 1fr auto; }
  .chapter__time { grid-column: 1 / -1; justify-self: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --rise: 40px; --nav-h: 64px; }
  .split, .trust .split, .feedback, .trust__grid, .review__grid, .compare, .calc__inputs, .calc__out, .paths { grid-template-columns: minmax(0, 1fr); }
  .review__copy { position: static; }
  .portrait { max-width: 420px; }
  .team__head { grid-template-columns: minmax(0, 1fr); }
  .versus { grid-template-columns: minmax(0, 1fr); }
  .vs-side--apart { margin: 0 0 12px; }
  .vs-side--one { margin: 12px 0 0; }
  .vs-mark { justify-self: center; margin: -44px 0 -44px; width: 56px; height: 56px; font-size: 19px; }
  .tangle { min-height: 0; }
  .spec { font-size: 13px; gap: 7px; padding: 5px 10px 5px 5px; }
  .spec b { width: 24px; height: 24px; }
  .spec svg { width: 13px; height: 13px; }
  .loop { width: 24px; height: 24px; }
  .layer { transform: translateY(calc((1 - var(--j)) * -18px)); }
  .node { white-space: normal; text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps { padding-top: 0; padding-left: 28px; }
  .steps__line { left: 0; right: auto; top: 28px; bottom: 28px; width: 4px; height: auto; }
  .steps__line::after { transform: scaleY(var(--draw)); }
  .compare__notes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero__title { font-size: clamp(32px, 10.2vw, 60px); }
  .hero__line { white-space: normal; }
  .hero__line--1 { white-space: nowrap; }
  .hero__line { text-wrap: balance; }
  .slot--video .slot__label { left: 12px; right: 12px; top: 12px; bottom: auto; font-size: 12px; }
  .player__play { margin-top: 28px; }
  .hero__btns, .hero__btns .ib-btn { width: 100%; }
  .chapters__list { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: auto 1fr auto; }
  .chapter__time { grid-column: auto; }
  .player__play { width: 72px; height: 72px; }
  .stats { gap: 12px; }
  .marquee__item { height: 52px; }
  .marquee__item img { height: calc(var(--h) * .78); }
  .stat { padding: 20px; }
  .sheet__list { grid-template-columns: 1fr; }
  .samples { grid-template-columns: 1fr; }
  .compare__notes { grid-template-columns: 1fr; }
  .feedback__act .ib-btn, .sheet__cta, .calc__foot .ib-btn { width: 100%; white-space: normal; text-align: center; }
  .equation { font-size: 30px; }
  .dock-bar { left: 12px; right: 12px; bottom: 12px; padding: 8px 8px 8px 8px; gap: 10px; }
  .dock-bar__text { display: none; }
  .dock-bar .ib-btn { flex: none; }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar__track i, .dock-bar, .ib-btn, .chapter, .sample .slot, .path { transition: none; }
}
