/* The homepage film and the scroll explainer. Scenes pin (sticky) while scrolling drives their animation: the benefit on
   the left, a 640-wide drawing stage on the right. The drawings keep the old ink-on-paper look of the film, and every rule
   is scoped under .xpl or x-, because v2.css has its own .card, .row and .tile. */

/* ── the film ───────────────────────────────────────────────────── */
.xfilm { position: relative; background: #fff; border: 1px solid rgba(20, 20, 20, .10); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-3); line-height: 0; }
.xfilm video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--c-paper); }
.xfilm .play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; background: transparent; border: 0; cursor: pointer; }
.xfilm .play span { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 20px; border-radius: 999px; background: var(--c-ink); color: #fff; font: 600 17px var(--f-body); transition: box-shadow .15s; }
.xfilm .play:hover span { box-shadow: 0 0 0 6px rgba(88, 186, 235, .4); }
.xfilm .play:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -6px; border-radius: var(--r-md); }
.xfilm .play svg { width: 24px; height: 24px; }
.xfilm .play[hidden] { display: none; }
@media (max-width: 560px) { .xfilm .play span { height: 48px; padding: 0 20px 0 14px; font-size: 15px; } }

/* ── the explainer ──────────────────────────────────────────────── */
.xpl { position: relative; background: var(--c-paper); border-top: 1px solid var(--c-rule); }
.xpl-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 104px); }
@media (max-width: 960px) { .xpl-head { grid-template-columns: minmax(0, 1fr); } }
.xpl-skip { margin: 18px 0 0; font-size: 15px; }
.xpl .scene { position: relative; border-top: 1px solid var(--c-rule); }
.xpl .pin { position: sticky; top: var(--gn-h); box-sizing: border-box; height: calc(100svh - var(--gn-h)); display: grid; grid-template-columns: minmax(300px, 500px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-inline: clamp(16px, 5vw, 72px); padding-block: clamp(14px, 3vh, 32px); }

/* the benefit, with today and with Mnemio under it */
.xcopy { min-width: 0; }
.xcopy .kick { margin-bottom: clamp(10px, 1.6vh, 18px); }
.xben { margin: 0; font: 700 clamp(32px, 3.9vw, 56px)/1.04 var(--f-display); letter-spacing: -0.032em; text-wrap: balance; }
.xben .hl, .xben .nb { white-space: nowrap; }
.xsays { display: grid; margin-top: clamp(14px, 2.4vh, 26px); }
.xsay { grid-area: 1 / 1; margin: 0; max-width: 46ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--c-muted); text-wrap: pretty; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.xsay.on { opacity: 1; transform: none; }
.xsay.off { transform: translateY(-12px); }
.xtag { display: table; margin-bottom: 9px; padding: 2px 11px; border-radius: 999px; background: #E9E8E2; color: var(--c-ink-2); font: 600 13.5px/1.6 var(--f-body); white-space: nowrap; }
.xtag.now { background: var(--c-blue); color: var(--c-ink); }
.xpl .stagebox { position: relative; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.xpl .stage { position: relative; width: 640px; height: 480px; flex: none; transform-origin: 50% 50%; color: var(--c-ink); font: 500 20px/1.35 var(--f-body); }
.xpl .stage b { font-weight: 700; }
/* phones and narrow windows: words above the drawing, like the old explainer */
@media (max-width: 860px) {
  .xpl .pin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 8px; }
  .xcopy .kick { margin-bottom: 8px; font-size: 11px; }
  .xcopy .kick::before { width: 20px; height: 6px; }
  .xben { font-size: clamp(27px, 7.4vw, 40px); }
  .xsays { margin-top: 10px; }
  .xsay { font-size: 15.5px; line-height: 1.42; }
  .xtag { margin-bottom: 5px; font-size: 12.5px; }
  .xpl .stagebox { height: auto; align-self: stretch; }
}
/* phones on their side keep the two columns */
@media (max-width: 860px) and (max-height: 540px) {
  .xpl .pin { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 24px; }
  .xben { font-size: clamp(22px, 3.4vw, 30px); }
}

/* drawing kit inside stages */
.xpl .s-abs { position: absolute; }
.xpl .face { position: absolute; }
.xpl .bar { display: inline-block; width: 34px; height: 11px; border-radius: 4px; background: var(--c-blue); flex: none; }
.xpl .chead { display: flex; align-items: center; gap: 12px; font: 700 20px/1.2 var(--f-body); }
.xpl .chead .r { margin-left: auto; font: 600 16.5px/1.2 var(--f-body); color: #6F6F6A; }
.xpl .chead .tl { font: 700 20px/1.2 var(--f-body); color: var(--c-ink); }
.x-card { position: absolute; box-sizing: border-box; background: #fff; border: 3px solid var(--c-ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--c-ink); padding: 18px 22px 22px; }
.x-big { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.x-hl { box-shadow: inset 0 -.34em 0 var(--c-blue); }
.x-b { box-sizing: border-box; padding: 12px 17px; border-radius: 20px; font-size: 20px; line-height: 1.3; font-weight: 500; }
.x-b small { display: block; margin-bottom: 4px; font: 700 13.5px var(--f-body); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.x-b.me { background: var(--c-ink); color: #FAFAF7; border-bottom-right-radius: 5px; }
.x-b.ag { background: #fff; border: 3px solid var(--c-ink); border-bottom-left-radius: 5px; box-shadow: 6px 6px 0 var(--c-ink); }
.x-b .who { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font: 700 16.5px var(--f-body); }
.x-b .who .bar { width: 28px; height: 9px; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 17px; box-sizing: border-box; border: 3px solid var(--c-ink); border-radius: 13px; background: #fff; font: 700 17px var(--f-body); white-space: nowrap; }
.x-btn.k { background: var(--c-ink); color: #fff; }
.x-row { display: flex; align-items: center; gap: 10px; box-sizing: border-box; padding: 7px 12px; border: 2.5px solid var(--c-ink); border-radius: 11px; background: #fff; font: 600 18.5px var(--f-body); transition: background .25s; }
.x-row.lit { background: var(--c-blue); }
.x-tick { display: inline-grid; width: 20px; height: 20px; flex: none; }
.x-tick svg { width: 20px; height: 20px; }
.x-hire { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-sizing: border-box; width: 80px; height: 106px; border: 3px dashed var(--c-ink); border-radius: 15px; background: #fff; font: 700 14.5px/1.15 var(--f-body); text-align: center; }
.x-pill { padding: 5px 13px; border: 2.5px solid var(--c-ink); border-radius: 999px; background: var(--c-blue); font: 700 17px var(--f-body); white-space: nowrap; rotate: 4deg; }
.x-stamp { padding: 6px 18px; border: 4px solid var(--c-ink); border-radius: 12px; background: var(--c-blue); font: 700 30px var(--f-display); letter-spacing: -.02em; white-space: nowrap; transform: rotate(-6deg); }
.x-slot { box-sizing: border-box; width: 19px; height: 46px; border: 1.5px solid #D9D8D1; border-radius: 6px; background: #F3F2EC; color: var(--c-ink); }
.x-slot.busy { border: 2px solid var(--c-ink); background: repeating-linear-gradient(45deg, var(--c-ink) 0 2.5px, #fff 2.5px 7px); }
.x-slot.done { border: 2px solid var(--c-ink); background: var(--c-blue); }
.x-slot svg { display: none; width: 15px; height: 15px; margin-top: 13px; }
.x-slot.done svg { display: block; }
.x-legend { display: flex; gap: 22px; font: 600 17px var(--f-body); white-space: nowrap; }
.x-legend span { display: inline-flex; align-items: center; gap: 8px; }
.x-legend .x-slot { display: inline-block; width: 16px; height: 18px; border-radius: 4px; }
.x-ad { margin-top: 8px; padding: 5px 8px; border-radius: 10px; transition: background .25s, opacity .25s; }
.x-ad .t { display: flex; align-items: baseline; gap: 10px; }
.x-ad .sp { font: 500 16.5px var(--f-body); color: #6F6F6A; font-variant-numeric: tabular-nums; }
.x-ad .v { margin-left: auto; font-size: 22px; font-variant-numeric: tabular-nums; }
.x-ad .tr { height: 16px; margin-top: 4px; box-sizing: border-box; border: 2.5px solid var(--c-ink); border-radius: 7px; overflow: hidden; }
.x-ad .fill { height: 100%; background: var(--c-ink); transform: scaleX(0); transform-origin: left; }
.x-ad.lit { background: rgba(88, 186, 235, .28); }
.x-ad.off { opacity: .45; }
.x-reply { box-sizing: border-box; border: 2.5px solid var(--c-ink); border-radius: 9px; overflow: hidden; }
.x-reply .b, .x-reply .u { position: absolute; top: 0; bottom: 0; }
.x-reply .b { left: 0; width: 33.34%; background: var(--c-ink); }
.x-reply .u { left: 33.34%; width: 58.33%; background: var(--c-blue); transform: scaleX(0); transform-origin: left; }

/* after the last scene */
.xend { background: var(--c-blue); color: var(--c-ink); }
.xend-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: clamp(36px, 4.5vw, 56px); }
.xend .h-lg { max-width: none; font-size: clamp(30px, 3.6vw, 48px); }
.xend p { margin: 8px 0 0; max-width: 56ch; font-size: 17px; line-height: 1.5; color: #123A50; }
