/*
  CLIPPR landing page: page CSS.

  The look is the extension's own caption style carried onto the page: a cream ground, ink outlines,
  hard offset shadows (no blur) and caption yellow for the one action. Everything else is the kit's
  system; this file holds the brand layer, what sits inside a visual, and the app-frame recipe.
*/

/* -----------------------------------------------------------------------------
   Brand layer
   ----------------------------------------------------------------------------- */
:root {
  --ink-line: 2px solid var(--p-ink);
  --pop: 5px 5px 0 var(--p-ink);
  --pop-sm: 3px 3px 0 var(--p-ink);
  --blue: #2bb5f0;
  --blue-deep: #0b1626;
  --orange: #ff5b24;
}
body { background: var(--p-bg); }
h1, h2, .footer__lede { font-weight: 800; }
h1 { letter-spacing: -0.045em; line-height: .98; }
h2 { letter-spacing: -0.035em; }
.card h3, .mo-pc__step h3, .faq__item h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }

.brand-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; border: var(--ink-line); }
.nav__logo { gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
header.nav { border-bottom: var(--ink-line); }

/* the one action: caption yellow with an ink outline and a hard shadow that presses flat on click */
.btn.btn--primary { background: var(--blue); color: var(--blue-deep); border: var(--ink-line); box-shadow: var(--pop-sm); font-weight: 600; }
.btn.btn--primary:hover { box-shadow: 4px 4px 0 var(--p-ink); }
.btn.btn--primary:active { box-shadow: 0 0 0 var(--p-ink); }
.ground-inverse .btn.btn--primary, .footer--dark .btn.btn--primary { --p-ink: #15130f; box-shadow: 4px 4px 0 #f5f0e6; border-color: #f5f0e6; }

/* cards: white stickers with an ink outline */
#features .card { background: #fffdf8; border: var(--ink-line); box-shadow: var(--pop); --c-text: var(--p-ink); }
#features .card > p { color: #3a362f; }
#features .card > .panel { border-top: var(--ink-line); }

.link { font-weight: 600; text-decoration-thickness: 2px; }

/* -----------------------------------------------------------------------------
   Hero: the centred head and the launch film on its stage
   ----------------------------------------------------------------------------- */
/* NOTE: the client asked for this hero in place of the dealt one: the words centred, the film half on the
   first screen, widening from 84% to its full width as it scrolls up (editor.js sets --grow, 0 to 1). */
main > section.hero.hero--stage { height: auto; min-height: 0; padding-top: calc(var(--nav) + clamp(48px, 7vh, 88px)); padding-bottom: clamp(64px, 9vh, 120px); }
.stage-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stage-pill { margin: 0 0 var(--s-5); padding: 6px 14px; border: var(--ink-line); border-radius: 99px; background: #fffdf8; font: 600 14px/1.3 var(--font-text); box-shadow: var(--pop-sm); }
.hero--stage h1 { font-size: clamp(44px, 6.4vw, 96px); max-width: 14ch; margin: 0 auto; text-wrap: balance; }
.hero--stage .hero__lead { max-width: 56ch; margin: var(--s-5) auto 0; font-size: clamp(18px, 1.4vw, 21px); text-wrap: pretty; }
.hero--stage .btn-row { justify-content: center; margin-top: var(--s-6); }
.hero__proof { font-size: var(--t-small); color: var(--muted); margin: var(--s-4) 0 0; }

.reel { --grow: 0; width: min(100% - 48px, 1360px); margin: clamp(40px, 6vh, 72px) auto 0; }
.reel__frame { position: relative; width: calc(84% + 16% * var(--grow)); margin: 0 auto; aspect-ratio: 16 / 9; border-radius: calc(28px - 10px * var(--grow)); overflow: hidden;
  background: #05070b; padding: 0; border: 3px solid var(--p-ink); box-shadow: calc(10px - 4px * var(--grow)) calc(10px - 4px * var(--grow)) 0 var(--p-ink); }
.reel__frame > .reel__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.reel__frame > .reel__controls { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; max-width: none; }
.reel__controls > * { flex: none; }
.reel__btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0; border-radius: 99px; border: 2px solid #0b1626; background: var(--blue); color: var(--blue-deep); cursor: pointer; font: 600 14px/1 var(--font-text); }
.reel__btn--text { padding: 0 16px; background: #fffdf8; }
.reel__btn svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.reel__btn .i-play, .reel.is-paused .reel__btn .i-pause { display: none; }
.reel.is-paused .reel__btn .i-play { display: block; }
@media (max-width: 639px) {
  main > section.hero.hero--stage { padding-top: calc(var(--nav) + 32px); }
  .reel { width: calc(100% - 32px); }
  .reel__frame { width: 100%; border-radius: 16px; box-shadow: 5px 5px 0 var(--p-ink); }
  .reel__frame > .reel__controls { right: 10px; bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .reel { --grow: 1 !important; } }

/* the title column of a long section stays in view while its list scrolls past */
@media (min-width: 1024px) { .sticky-head { position: sticky; top: calc(var(--nav) + 48px); align-self: start; } }

/* -----------------------------------------------------------------------------
   Editor: the extension's editor as it really looks (top bar, rail, cues, preview, timeline, properties)
   ----------------------------------------------------------------------------- */
.ed-intro { margin: 0; }
.cx.ui {
  --fx-bg: #0b0d12; --fx-surface: #12151c; --fx-ink: #eef3f8; --fx-muted: #8b94a3; --fx-accent: #2bb5f0; --fx-accent-ink: #061018;
  margin-top: var(--s-7); display: flex; flex-direction: column; height: clamp(640px, 82vh, 820px); flex: none; min-height: 640px;
  background: var(--u-bg); color: var(--u-ink); border: 3px solid var(--p-ink); border-radius: 22px; box-shadow: 8px 8px 0 var(--p-ink);
  font: 400 13px/1.4 var(--font-text); overflow: hidden;
}
.cx svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-top { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--u-line); flex: none; }
.cx-back { display: grid; place-items: center; width: 28px; height: 28px; color: var(--u-muted); }
.cx-title { font: 700 14px/1 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--u-muted); white-space: nowrap; }
.cx-saved svg { width: 14px; height: 14px; color: #53d769; }
.cx-top__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cx-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--u-muted); }
.cx-export { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 99px; background: var(--u-accent); color: var(--u-accent-ink); font-weight: 700; font-size: 14px; }

.cx-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 64px 220px minmax(0, 1fr) 300px; }
/* the extension rail: 56px tools, Phosphor icons (filled when active), a 16% accent tint and a short glowing pill at the left */
.cx-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-right: 1px solid var(--u-line); }
.cx-tool { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 56px; height: 56px; border-radius: 12px; font: 500 10px/1 var(--font-text); color: var(--u-muted); }
.cx .cx-tool svg { width: 21px; height: 21px; fill: currentColor; stroke: none; }
.cx-tool.is-on { color: var(--u-ink); background: color-mix(in oklab, var(--u-accent) 16%, transparent); }
.cx-tool.is-on::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 22px; transform: translateY(-50%); border-radius: 99px; background: var(--u-accent); box-shadow: 0 0 8px var(--u-accent); }

.cx-panel { padding: 16px 14px; border-right: 1px solid var(--u-line); display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.cx-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cx-panel__title { margin: 0; font: 600 14px/1.2 var(--font-text); color: #c9d2de; }
.cx-panel__title span { margin-left: 8px; font: 400 12px/1 var(--font-text); color: var(--u-muted); }
.cx-add { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: rgb(255 255 255 / .12); color: var(--u-ink); }
.cx .cx-add svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.cx-cues { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; }
.cx-cues { gap: 8px; }
.cx-cues button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px; border-radius: 12px; border: 1px solid var(--u-line); background: var(--u-fill); color: var(--u-ink); font: 400 14px/1.2 var(--font-text); text-align: left; cursor: pointer; }
.cx-cues button small { flex: none; padding: 2px 6px; border-radius: 4px; background: rgb(255 255 255 / .08); color: var(--u-muted); font: 400 11px/1.3 var(--font-text); font-variant-numeric: tabular-nums; }
.cx-cues button span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.cx .cx-cues button svg { flex: none; width: 14px; height: 14px; fill: currentColor; stroke: none; color: var(--u-muted); opacity: .7; }
.cx-cues button.is-on { background: color-mix(in oklab, var(--u-accent) 12%, var(--u-fill)); border-color: color-mix(in oklab, var(--u-accent) 40%, transparent); }

.cx-center { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #07090d; }
.cx-center__head { display: flex; justify-content: space-between; padding: 10px 16px; color: var(--u-muted); font-size: 12px; flex: none; }
.cx-stagebox { flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 16px 12px; }
.ed-stage { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #000; container-type: inline-size; }
.ed-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cx-transport { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-top: 1px solid var(--u-line); flex: none; }
.cx-step { color: var(--u-muted); font-size: 11px; }
.ed-play { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--u-accent); color: var(--u-accent-ink); cursor: pointer; }
.ed-play svg { width: 14px; height: 14px; fill: currentColor; stroke-width: 2.2; }
.ed-play .ed-play__play, .cx.is-paused .ed-play .ed-play__pause { display: none; }
.cx.is-paused .ed-play .ed-play__play { display: block; }
.ed-time { font: 500 13px/1 var(--font-mono); color: var(--u-muted); } .ed-time b { color: var(--u-ink); font-weight: 500; }
.ed-sound { margin-left: auto; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--u-line-2); background: transparent; color: var(--u-ink); font: 500 12px/1 var(--font-text); cursor: pointer; }
.ed-sound[aria-pressed="true"] { background: var(--u-fill-3); }

.cx-timeline { flex: none; border-top: 1px solid var(--u-line); padding: 8px 16px 14px; background: var(--u-bg); }
.cx-tl__head { color: var(--u-muted); font: 600 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.cx-tl__grid { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); row-gap: 6px; align-items: center; }
.cx-tl__label { color: var(--u-muted); font-size: 11px; }
.cx-ruler { position: relative; height: 14px; }
.cx-ruler i { position: absolute; top: 0; font: 400 10px/1 var(--font-mono); font-style: normal; color: var(--u-muted); border-left: 1px solid var(--u-line-2); padding-left: 3px; }
.cx-track { position: relative; height: 26px; border-radius: 6px; overflow: hidden; }
.cx-track--video { background: url("media/stableronaldo-split.jpg") 0 30% / auto 260% repeat-x; outline: 2px solid var(--u-accent); outline-offset: -2px; }
.cx-track--audio { background: var(--u-fill-2); }
.cx-track--audio::before { content: ""; position: absolute; inset: 4px 2px; background: repeating-linear-gradient(90deg, var(--u-accent) 0 2px, transparent 2px 4px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 5 L4 4 L8 6 L12 5 L16 4 L18 1 L20 9 L22 2 L24 8 L26 1 L28 9 L30 2 L32 8 L34 1 L36 9 L38 3 L40 7 L42 1 L44 9 L46 2 L48 8 L50 1 L52 9 L54 3 L56 7 L58 2 L60 8 L62 1 L64 9 L66 2 L68 8 L70 1 L72 9 L74 3 L76 7 L78 2 L80 8 L82 1 L84 9 L86 3 L88 7 L90 2 L92 8 L94 3 L96 7 L100 5 L100 5 L0 5Z M0 5 L100 5'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.cx-track--cap { background: var(--u-fill); }
.cx-track--cap button { position: absolute; top: 2px; bottom: 2px; padding: 0 4px; border-radius: 4px; border: 0; background: #23415a; color: #d9eefb; font: 600 10px/1 var(--font-text); white-space: nowrap; overflow: hidden; cursor: pointer; }
.cx-track--cap button.is-on { background: var(--u-accent); color: var(--u-accent-ink); }
.cx-playhead { position: absolute; top: 0; bottom: 0; left: calc(64px + (100% - 64px) * var(--ph, 0)); width: 2px; background: var(--u-accent); pointer-events: none; }
.cx-playhead::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--u-accent); }

.cx-props { padding: 16px; border-left: 1px solid var(--u-line); display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.cx-props__title { margin: 0; font: 700 16px/1.2 var(--font-text); }
.cx-sel { display: flex; align-items: center; gap: 10px; }
.cx-sel__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--u-fill-2); font-weight: 600; }
.cx-sel b { display: block; font-size: 14px; } .cx-sel small { color: var(--u-muted); font-size: 12px; }
.cx-kv { display: flex; justify-content: space-between; } .cx-kv span { font-weight: 600; } .cx-kv b { font: 500 12px/1 var(--font-mono); color: var(--u-muted); }
.cx-card { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--u-fill); border: 1px solid var(--u-line); }
.ed-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.ed-row__label { font-size: 13px; font-weight: 600; }
.cx-card__sub { display: block; color: var(--u-muted); font-size: 11px; }
.ed-row--emoji { min-height: 36px; border-top: 1px solid var(--u-line); padding-top: 6px; }
.ed-switch { position: relative; width: 52px; height: 44px; border: 0; background: none; cursor: pointer; flex: none; }
.ed-switch::before { content: ""; position: absolute; left: 6px; top: 11px; width: 40px; height: 22px; border-radius: 99px; background: var(--u-fill-3); transition: background-color .15s; }
.ed-switch::after { content: ""; position: absolute; top: 14px; left: 9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s var(--u-ease); }
.ed-switch[aria-checked="true"]::before { background: var(--u-accent); }
.ed-switch[aria-checked="true"]::after { transform: translateX(18px); }
.ed-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ed-modes button { height: 32px; border: 1px solid var(--u-line); border-radius: 8px; background: transparent; color: var(--u-muted); font: 600 12px/1 var(--font-text); cursor: pointer; }
.ed-modes button[aria-checked="true"] { border-color: var(--u-accent); color: var(--u-ink); background: var(--u-tint); }
.cx-card[data-hl-off] .ed-modes, .cx-card[data-hl-off] .cx-swatches { opacity: .4; }
.cx-swatches { display: flex; gap: 8px; }
.cx-swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; background: var(--sw); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgb(0 0 0 / .25); }
.cx-swatches button[aria-checked="true"] { border-color: #fff; outline: 2px solid var(--u-accent); outline-offset: 1px; }
.cx-group { display: block; margin: 0; color: var(--u-muted); font: 600 11px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.ed-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-look { display: grid; gap: 4px; padding: 0; border: 0; background: none; color: var(--u-muted); cursor: pointer; font: 500 10px/1.2 var(--font-text); text-align: center; }
.ed-look__sample { display: grid; place-items: center; height: 44px; border-radius: 9px; background: var(--u-fill-2); border: 1px solid var(--u-line); font-size: 17px; line-height: 1; white-space: nowrap; overflow: hidden; }
.ed-look[aria-selected="true"] .ed-look__sample { border: 2px solid var(--u-accent); }
.ed-look__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-search { display: grid; gap: 6px; }
.ed-search input { height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--u-line); background: var(--u-fill); color: var(--u-ink); font: 400 16px/1 var(--font-text); outline: none; }
.ed-search input:focus { border-color: var(--u-accent); }
.ed-empty { margin: 0; color: var(--u-muted); font-size: 12px; }

.ed-cap {
  position: absolute; left: 5%; right: 5%; top: 55%; text-align: center; pointer-events: none;
  font-family: var(--cap-font, "Luckiest Guy"), var(--font-display), system-ui, sans-serif; font-weight: var(--cap-weight, 400);
  font-size: var(--cap-size, 11cqw); line-height: 1.1; color: var(--cap-fill, #fff); text-transform: var(--cap-case, none);
  -webkit-text-stroke: calc(var(--cap-sw, 6) * .22cqw) var(--cap-stroke, #000); paint-order: stroke fill;
  text-shadow: var(--cap-shadow, 0 .6cqw 0 rgb(0 0 0 / .9)); outline: 1.5px dashed rgb(43 181 240 / .8); outline-offset: 1.5cqw;
}
.ed-cap:empty { outline: 0; }
.ed-cap .w { display: inline-block; margin: 0 .1em; transition: transform .12s var(--u-ease), color .08s; border-radius: .16em; }
.ed-cap .w.is-emph { color: #ffe600; }
.ed-cap[data-bg="on"] .ed-cap__line { background: var(--cap-bg); padding: .12em .3em; border-radius: .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ed-cap[data-hl="on"][data-mode="fill"] .w.is-on { color: var(--cap-hl); }
.ed-cap[data-hl="on"][data-mode="box"] .w.is-on { background: var(--cap-hl); color: var(--cap-hl-ink, #000); -webkit-text-stroke: 0; padding: 0 .1em; }
.ed-cap[data-hl="on"][data-mode="scale"] .w.is-on { transform: scale(1.2); color: var(--cap-hl); }
.ed-cap[data-hl="on"][data-mode="underline"] .w.is-on { text-decoration: underline; text-decoration-color: var(--cap-hl); text-decoration-thickness: .14em; text-underline-offset: .12em; }
.ed-cap .w.is-in { animation: cap-pop .22s var(--u-ease) both; }
@keyframes cap-pop { from { transform: scale(.7); opacity: 0; } }
.ed-emoji { position: absolute; left: 50%; top: 40%; font-size: 17cqw; line-height: 1; transform: translate(-50%, 0) scale(0); opacity: 0; pointer-events: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ed-emoji.is-on { animation: emoji-pop .45s cubic-bezier(.34, 1.56, .64, 1) forwards; }
@keyframes emoji-pop { to { transform: translate(-50%, 0) scale(1); opacity: 1; } }

@media (max-width: 1279px) { .cx-body { grid-template-columns: 64px minmax(0, 1fr) 280px; } .cx-panel { display: none; } }
@media (max-width: 1023px) {
  .cx.ui { height: auto; min-height: 0; }
  .cx-body { grid-template-columns: minmax(0, 1fr); }
  .cx-rail { display: none; }
  .cx-stagebox { height: 520px; flex: none; }
  .cx-props { border-left: 0; border-top: 1px solid var(--u-line); display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .cx-props > .cx-props__title, .cx-props > .cx-sel, .cx-props > .cx-kv { display: none; }
  .cx-props > .cx-card { grid-row: span 3; }
}
@media (max-width: 639px) {
  .cx.ui { box-shadow: 5px 5px 0 var(--p-ink); border-radius: 16px; }
  .cx-saved, .cx-icon, .cx-center__head, .cx-timeline { display: none; }
  .cx-stagebox { height: 440px; }
  .cx-props { grid-template-columns: 1fr; }
  .cx-props > :not(.cx-card) { display: none; }
}

/* -----------------------------------------------------------------------------
   Features: the result of each feature, drawn or on frames of the clip
   ----------------------------------------------------------------------------- */
#features .panel { --p-h: 300px; }
#features .panel.ft-panel { background: #f1ead9; }
.ft-panel > div { position: absolute; inset: 0; }
@media (max-width: 1279px) { #features .panel { --p-h: 256px; } }
@media (max-width: 639px) { #features .panel { --p-h: 136px; } .ft-split { gap: 12px; padding: 16px; } }

.ft-cuts { display: grid; align-content: center; gap: 16px; padding: 0 32px; }
.ft-cuts__track { position: relative; height: 72px; }
.ft-cuts__wave { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #15130f 0 3px, transparent 3px 7px); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 6 L3 3 L6 7 L9 2 L12 8 L15 4 L18 1 L21 7 L24 3 L27 9 L30 4 L33 2 L36 8 L39 5 L42 3 L45 7 L48 1 L51 8 L54 4 L57 2 L60 7 L63 3 L66 9 L69 5 L72 2 L75 7 L78 3 L81 8 L84 4 L87 2 L90 7 L93 3 L96 6 L100 4 L100 10 L0 10Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.ft-cuts__track i { position: absolute; top: -6px; bottom: -6px; border-radius: 6px; border: 2px solid #15130f; background: repeating-linear-gradient(135deg, rgb(255 91 36 / .75) 0 6px, rgb(255 91 36 / .35) 6px 12px); }
.ft-cuts__words { display: flex; flex-wrap: wrap; gap: 6px; }
.ft-cuts__words > * { padding: 4px 10px; border-radius: 99px; font: 500 14px/1.2 var(--font-mono); background: #fffdf8; border: 1.5px solid #15130f; color: #15130f; text-decoration: none; }
.ft-cuts__words s { background: var(--orange); text-decoration: line-through 2px; }
.ft-cuts__sum { display: flex; align-items: baseline; gap: 12px; }
.ft-cuts__sum b { font: 800 26px/1 var(--font-display); }
.ft-cuts__sum span { font: 400 14px/1 var(--font-mono); color: #3a362f; }

.ft-split { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px; }
.ft-split__wide { position: relative; width: 58%; aspect-ratio: 16 / 9; border-radius: 10px; border: var(--ink-line); box-shadow: var(--pop-sm); }
.ft-split__wide > img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.ft-split__cam { position: absolute; left: 0; top: 34%; width: 30%; height: 30%; outline: 3px solid var(--blue); outline-offset: -1px; border-radius: 2px; }
.ft-split__tag { position: absolute; left: 0; top: calc(34% - 26px); white-space: nowrap; font: 600 12px/1 var(--font-mono); font-style: normal; background: var(--blue); color: #15130f; padding: 4px 6px; border-radius: 4px; border: 1.5px solid #15130f; }
.ft-split__arrow { width: 40px; height: 16px; fill: none; stroke: #15130f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ft-split__tall { width: 22%; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; border: var(--ink-line); box-shadow: var(--pop-sm); }
.ft-split__tall > img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ft-moments { padding: 0 32px; }
.ft-moments__bars { position: absolute; left: 32px; right: 32px; top: 30%; bottom: 22%; background: repeating-linear-gradient(90deg, #15130f 0 4px, transparent 4px 8px); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 V15 L4 13 L8 16 L12 9 L16 6 L20 11 L24 14 L28 16 L32 12 L36 14 L40 10 L44 6 L48 2 L52 1 L56 4 L60 7 L64 13 L68 15 L72 12 L76 9 L80 11 L84 8 L88 13 L92 15 L96 14 L100 16 V20Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.ft-moments__pick { position: absolute; top: 18%; bottom: 14%; border-radius: 10px; border: 2px dashed rgb(21 19 15 / .45); }
.ft-moments__pick b { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); padding: 4px 10px; border-radius: 99px; background: #fffdf8; border: 1.5px solid #15130f; color: #15130f; font: 600 14px/1 var(--font-mono); }
.ft-moments__pick.is-top { background: rgb(43 181 240 / .25); border: 2px solid #15130f; }
.ft-moments__pick.is-top b { background: var(--blue); }
@media (max-width: 639px) { .ft-moments, .ft-cuts { padding: 0 20px; } .ft-moments__bars { left: 20px; right: 20px; } }

.ft-hype { display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; overflow: hidden; }
.ft-hype > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.ft-hype__emoji, .ft-hype__cap { position: relative; }
.ft-hype__emoji { font-size: 60px; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.ft-hype__cap { margin: 0; font: 400 clamp(34px, 3.6vw, 52px)/1 "Luckiest Guy", var(--font-display); color: #fff; -webkit-text-stroke: 8px #000; paint-order: stroke fill; text-shadow: 0 5px 0 #000; }
.ft-hype__cap em { font-style: normal; color: #ffe600; }
@media (max-width: 639px) { .ft-hype__emoji { font-size: 40px; } }

/* features on a tablet: the words beside the panel, so two cards fill each screen of the section */
@media (min-width: 640px) and (max-width: 1023px) {
  #features .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-rows: min-content; column-gap: var(--s-6); align-content: start; }
  #features .card > :not(.panel) { grid-column: 1; }
  #features .card > .panel { --p-h: 236px; grid-column: 2; grid-row: 1 / span 4; border: var(--ink-line); margin: calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) calc(var(--c-gap) - var(--c-pad)) 0; border-radius: calc(var(--c-r) - var(--c-gap)); }
}

/* -----------------------------------------------------------------------------
   Steps: the screens the pinned chapters swap between
   ----------------------------------------------------------------------------- */
#how .mo-pc__visuals { border: var(--ink-line); box-shadow: var(--pop); border-radius: 20px; overflow: hidden; }
#how .mo-pc__step.is-on { border-left-color: var(--blue); }
.st { position: relative; width: 100%; height: 100%; min-height: 280px; display: grid; place-items: center; padding: 32px; border-radius: inherit;
      background: var(--p-surface); background-image: radial-gradient(rgb(21 19 15 / .14) 1.2px, transparent 1.3px); background-size: 18px 18px; font: 400 14px/1.4 var(--font-text); color: #f5f0e6; }
.st-pop, .st-magic, .st-export { background: #17140f; border: var(--ink-line); box-shadow: var(--pop); }
.st-pop { width: min(340px, 100%); border-radius: 18px; padding: 16px; display: grid; gap: 12px; }
.st-pop__head { display: flex; align-items: center; gap: 8px; } .st-pop__head img { border-radius: 6px; } .st-pop__head b { font-weight: 600; }
.st-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #ff8f70; }
.st-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 4px rgb(255 90 54 / .2); }
.st-pop__ch { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / .06); min-width: 0; }
.st-pop__ch > div { min-width: 0; }
.st-pop__ch small { display: block; color: #b3ab9d; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pop__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--blue); }
.st-pop__buf { display: flex; justify-content: space-between; font-size: 13px; color: #b3ab9d; } .st-pop__buf b { color: #fff; font-weight: 500; font-family: var(--font-mono); }
.st-pop__meter { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; } .st-pop__meter i { display: block; width: 99%; height: 100%; background: var(--blue); }
.st-pop__lens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st-pop__lens span { display: grid; place-items: center; height: 34px; border-radius: 9px; background: rgb(255 255 255 / .07); font-size: 13px; font-weight: 600; }
.st-pop__lens span.is-on { background: var(--blue); color: #15130f; }
.st-pop__key { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b3ab9d; }
.st-pop__key span { margin-left: 4px; }
.st-magic { width: min(380px, 100%); border-radius: 18px; padding: 18px; }
.st-magic__title { margin: 0; font: 700 17px/1.3 var(--font-display); }
.st-magic__sub { margin: 2px 0 14px; color: #b3ab9d; font-size: 13px; }
.st-magic__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-magic__steps li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #b3ab9d; font-size: 14px; }
.st-magic__steps li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; flex: none; box-sizing: border-box; }
.st-magic__steps li small { margin-left: auto; font-size: 12px; color: #b3ab9d; text-align: right; }
.st-magic__steps li.is-done { color: #f5f0e6; } .st-magic__steps li.is-done::before { background: #53d769; border-color: #53d769; }
.st-magic__steps li.is-on { color: #f5f0e6; background: rgb(43 181 240 / .16); } .st-magic__steps li.is-on::before { border-color: var(--blue); border-right-color: transparent; }
.st-magic__steps li.is-on small { color: var(--blue); font-family: var(--font-mono); }
.st-export { width: min(420px, 100%); display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; border-radius: 18px; padding: 18px; }
.st-export__thumb { width: 112px; aspect-ratio: 9 / 16; border-radius: 10px; object-fit: cover; border: 2px solid #f5f0e6; }
.st-export__info { display: grid; gap: 10px; } .st-export__info > b { font: 700 17px/1.2 var(--font-display); }
.st-export__info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; } .st-export__info dt { color: #b3ab9d; } .st-export__info dd { margin: 0; font-family: var(--font-mono); }
.st-export__path { font: 500 12px/1 var(--font-mono); padding: 7px 9px; border-radius: 8px; background: #53fc18; color: #15130f; justify-self: start; }
@media (max-width: 639px) {
  .st { min-height: 214px; padding: 16px; }
  .st-pop, .st-magic, .st-export { transform: scale(.86); transform-origin: center; }
  main > #how[data-moment]:not(.is-live) { min-height: calc(2 * 100lvh); }
}
/* the live chapters start their heading where every other section does, not centred in the screen */
main > #how[data-moment].is-live > .mo-pc__grid { align-content: center; padding-top: var(--nav); }
/* at rest on a tablet the three steps share one screen: each drawn screen shrinks into a short frame */
@media (min-width: 640px) and (max-width: 1023px) {
  main > #how[data-moment]:not(.is-live) .st { min-height: 0; height: 18svh; padding: 8px; overflow: hidden; }
  main > #how[data-moment]:not(.is-live) .st > * { zoom: .55; }
}

/* -----------------------------------------------------------------------------
   Privacy: the dark band, the text beside the hub diagram
   ----------------------------------------------------------------------------- */
.pv-text { display: grid; gap: var(--s-5); align-content: start; }
.pv-text h2, .pv-lead { margin: 0; }
.pv-lead { max-width: 46ch; }
.pv-rows { margin-top: var(--s-4); }
.pv-rows { counter-reset: pv; }
.pv-rows > li, .pv-rows > li:first-child { counter-increment: pv; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; column-gap: 16px; row-gap: 2px; padding: 16px 18px; border: 2px solid #f5f0e6; border-radius: 14px; background: #221f19; }
.pv-rows > li::before { content: counter(pv, decimal-leading-zero); grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue); color: var(--blue-deep); font: 800 15px/1 var(--font-display); }
.pv-rows .rows__name { grid-column: 2; grid-row: 1; font: 700 17px/1.3 var(--font-display); color: #f5f0e6; }
.pv-rows .rows__value { grid-column: 2; grid-row: 2; text-align: left; white-space: normal; color: #b3ab9d; }
.pv-frame { position: relative; min-height: 560px; border-radius: 22px; overflow: hidden; background: #221f19; border: 2px solid #f5f0e6; box-shadow: 6px 6px 0 var(--blue); }
.pv-frame .dg { position: absolute; inset: 0; --accent: var(--blue); }
@media (max-width: 1023px) { .pv-frame { min-height: 420px; } }

/* -----------------------------------------------------------------------------
   Questions and footer
   ----------------------------------------------------------------------------- */
.faq-works { display: flex; align-items: center; gap: var(--s-3); }
.faq-works .ic-tile { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #fff; border: var(--ink-line); box-shadow: var(--pop-sm); }
.faq-works .ic-tile img { width: 24px; height: 24px; }
@media (max-width: 400px) { .closing .btn--xl { font-size: 18px; padding-inline: 20px; } }
/* a phone keeps the band to one screen: the hub already shows the three rows' facts */
@media (max-width: 639px) { .pv-rows { display: none; } .pv-frame { min-height: 320px; } }

/* focus: an ink ring on the cream ground, a cream one on the dark band and footer (the kit's yellow ring is faint on cream) */
:focus-visible { outline: 3px solid var(--p-ink); outline-offset: 3px; }
.ground-inverse :focus-visible, .footer--dark :focus-visible { outline-color: #f5f0e6; }
#faq .faq__item h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }
.ed-look__sample { background: #2a2620; }
.ground-inverse .btn.btn--primary, .footer--dark .btn.btn--primary { border-color: #15130f; }
/* the close's button keeps one look from the first paint: its colours never transition in */
.footer--dark .btn.btn--primary, .ground-inverse .btn.btn--primary { color: var(--blue-deep); background: var(--blue); transition-property: transform, box-shadow; }

/* -----------------------------------------------------------------------------
   Rhythm: every section is as tall as its content, with one padding
   ----------------------------------------------------------------------------- */
/* NOTE: the client asked for this over the kit's one-or-two-screen sections, which left wide empty bands on
   tall screens. The pinned steps keep the moment's own height, now centred with larger screens. */
main > section.section--auto { height: auto; min-height: 0; padding-block: clamp(96px, 11vh, 144px); }
#features .wrap > .grid { margin-top: var(--s-5); }
#features .section-head { margin-bottom: var(--s-7); }
#how .mo-pc__step h3 { font-size: clamp(20px, 1.6vw, 26px); }
#how .mo-pc__step p { font-size: 17px; }
#how.is-live .mo-pc__visuals { aspect-ratio: auto; height: min(calc(100svh - var(--nav) - 96px), 640px); max-height: none; }
@media (min-width: 1280px) { #how.is-live .st > * { zoom: 1.2; } }

/* privacy: the text column and the diagram are one height; the rows become three tiles */
#private .grid { align-items: stretch; }
.pv-frame { min-height: 0; height: 100%; }
@media (min-width: 1024px) { #private .pv-frame { min-height: 520px; } }
.pv-rows { display: grid; gap: 12px; margin-top: var(--s-5); border: 0; }
@media (max-width: 639px) { .pv-rows { display: grid; } #private .pv-frame { min-height: 360px; } }

/* steps: the text column centres on the screen beside it, each step carries its number, and the
   mock inside the screen is drawn large enough to fill it */
#how .mo-pc__text { align-self: center; }
#how .mo-pc__steps { counter-reset: step; }
#how .mo-pc__step { counter-increment: step; position: relative; }
#how .mo-pc__step h3::before { content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; vertical-align: .12em; border: 2px solid var(--p-ink); border-radius: 10px; background: var(--bg); font: 800 13px/1 var(--font-display); letter-spacing: 0; }
#how .mo-pc__step.is-on h3::before { background: var(--blue); }
@media (min-width: 1280px) { #how.is-live .st > * { zoom: 1.45; } }
@media (min-width: 1024px) and (max-width: 1279px) { #how.is-live .st > * { zoom: 1.2; } }

/* hero head: tight enough that half the film shows on the first screen (the kit's hero spacing is
   made for a split hero, where the copy has the full height to itself) */
main > section.hero.hero--stage { padding-top: calc(var(--nav) + clamp(28px, 4.5vh, 56px)); }
.hero--stage .stage-head { gap: 0; }
.hero--stage .stage-head > * { margin-top: 0; margin-bottom: 0; }
.hero--stage .stage-head > .stage-pill { margin-bottom: clamp(16px, 2.4vh, 24px); }
.hero--stage .stage-head h1 { font-size: clamp(40px, 5.4vw, 80px); line-height: 1; }
.hero--stage .stage-head .hero__lead { margin-top: clamp(16px, 2.4vh, 24px); }
.hero--stage .stage-head .btn-row { margin-top: clamp(20px, 3vh, 28px); }
.hero--stage .stage-head > :last-child:not(.btn-row) { margin-top: 12px; }
.hero--stage .reel { margin-top: clamp(28px, 4vh, 44px); }
.reel__btn--text { white-space: nowrap; }
@media (max-width: 639px) {
  .stage-pill { font-size: 12px; padding: 5px 12px; white-space: nowrap; }
  .reel__frame > .reel__controls { right: 8px; bottom: 8px; gap: 6px; }
  .reel__btn { min-width: 32px; height: 32px; border-width: 1.5px; }
  .reel__btn--text { padding: 0 10px; font-size: 12px; }
  .reel__btn svg { width: 11px; height: 11px; }
}
.cx :focus-visible { outline: 2px solid var(--u-accent, #2bb5f0); outline-offset: 2px; }
@media (max-width: 639px) {
  .cx-title { display: none; }
  .reel { width: calc(100% - 48px); }
  .reel__btn--text { min-width: 0; width: auto; }
}
@media (max-width: 359px) { .stage-pill { white-space: normal; text-wrap: balance; } }

/* Download buttons ship hidden; the Publish workflow reveals them only once a release zip exists, so the
   page never links to a file that isn't there. !important beats the kit's display rules on .btn and .actionbar. */
[data-release][hidden] { display: none !important; }

/* -----------------------------------------------------------------------------
   Coming soon: the page every download button opens until the first release
   ----------------------------------------------------------------------------- */
/* main > section.soon beats the kit's one-screen section height: this page is as tall as its content */
main > section.soon { display: block; height: auto; min-height: 0; padding: calc(var(--nav) + clamp(32px, 6vh, 72px)) 0 clamp(64px, 10vh, 120px); }
.soon__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.soon__head h1 { margin: 0; font-size: clamp(44px, 6.6vw, 104px); line-height: 0.98; max-width: 12ch; text-wrap: balance; }
.soon__lead { max-width: 54ch; margin: clamp(16px, 2.4vh, 24px) auto 0; font-size: clamp(18px, 1.4vw, 21px); color: var(--p-muted); text-wrap: pretty; }
.soon__live { display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: #ff3b3b; vertical-align: 0.05em; animation: soon-pulse 1.6s infinite; }
@keyframes soon-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 59 59 / .55); } 70% { box-shadow: 0 0 0 8px rgb(255 59 59 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 59 59 / 0); } }

.soon__stage { width: min(100% - 48px, 1180px); margin: clamp(32px, 5vh, 56px) auto 0; }
.soon__frame { --grow: .4; width: 100%; }

.soon__frame > .soon__play { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 2px solid #0b1626; border-radius: 99px; background: var(--blue); color: var(--blue-deep); cursor: pointer; }
.soon__play svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.soon__play .i-play, .is-paused .soon__play .i-pause { display: none; }
.is-paused .soon__play .i-play { display: block; }

.soon__ships { margin-top: clamp(56px, 9vh, 104px); }
.soon__ships-h { margin: 0 0 var(--s-5); font-size: clamp(28px, 3vw, 40px); }
.soon__list { counter-reset: ship; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.soon__list li { counter-increment: ship; display: grid; align-content: start; gap: 8px; padding: 20px; border: var(--ink-line); border-radius: 18px; background: #fffdf8; box-shadow: var(--pop-sm); }
.soon__list li::before { content: counter(ship, decimal-leading-zero); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border: 2px solid var(--p-ink); border-radius: 10px; background: var(--blue); font: 800 13px/1 var(--font-display); }
.soon__list b { font: 700 18px/1.25 var(--font-display); }
.soon__list span { color: var(--p-muted); font-size: 15px; line-height: 1.45; }
.soon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: var(--s-6); }

.soon__foot { padding: 28px 0 40px; border-top: var(--ink-line); color: var(--p-muted); font-size: 14px; }
.soon__foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 1023px) { .soon__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) {
  .soon__stage { width: calc(100% - 32px); }
  .soon__list { grid-template-columns: 1fr; }
  .soon__frame > .soon__play { width: 34px; height: 34px; top: 8px; right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .soon__live { animation: none; } }
