/* =====================================================================
   FIX TEMPLATES · shared base (every template from #2 on uses it).
   v7.1: client colours. The whole template wears the creator's colours (--cb --ca --cai --cink); --r/--r2/--rt
   follow their accent. --bad is the one problem red. Real apps look like the real apps.
   ===================================================================== */
@font-face { font-family: "FXDisplay"; src: url("../../cfonts/display.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "FXSans"; src: url("../../cfonts/sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "FXSans"; src: url("../../cfonts/sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "FXSans"; src: url("../../cfonts/sans-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
.fx, .fx-sec { --r: var(--ca); --r2: color-mix(in srgb, var(--ca) 78%, white); --rt: color-mix(in srgb, var(--ca) 72%, white); --bad: #ff5d70; --badbg: var(--pg2, #17181b); --t2: #b9bec9; --t3: #858b97; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --cb: #111; --ca: #e33; --cai: #fff; --cink: #f4f4f4; --cs: color-mix(in srgb, var(--cb) 90%, white); --cs2: color-mix(in srgb, var(--cb) 84%, white);
  position: relative; color: #fff; }
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx img { display: block; max-width: 100%; }
.fx-sec { padding-top: clamp(72px, 9vw, 120px); }
.fx-head { text-align: center; max-width: 900px; margin: 0 auto 30px; }
.fx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 .74rem/1 var(--mono, ui-monospace); letter-spacing: .2em; text-transform: uppercase; color: var(--rt); }
.fx-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--r); border-radius: 2px; }
.fx-h { margin: 0; font: 800 clamp(2rem, 4.2vw, 3.4rem)/1.04 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.fx-h em { font-style: normal; color: var(--rt); }
.fx-sub { margin: 16px auto 0; max-width: 660px; color: var(--t2); font-size: 1.06rem; line-height: 1.55; }
.fx-stat { display: flex; justify-content: center; align-items: baseline; gap: .4em; flex-wrap: wrap; margin: 18px auto 38px; font: 700 clamp(1.15rem, 2.1vw, 1.55rem)/1.2 var(--display); letter-spacing: -.02em; color: var(--t2); text-align: center; }
.fx-stat b { color: #fff; font-weight: 800; }
.fx-stat .fx-zero { color: var(--bad); text-shadow: 0 0 28px rgba(255,93,112,.4); }
.fx-lab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font: 600 .7rem/1 var(--mono, ui-monospace); letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }
.fx-lab b { color: var(--rt); font-weight: 600; }
.fx-fixhead { text-align: center; max-width: 840px; margin: 90px auto 26px; }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; max-width: 1140px; margin: 0 auto; }
.fx-col { min-width: 0; }

/* tags, chips, flags */
.fx-tag { display: inline-block; font: 700 10.5px/1 var(--font); letter-spacing: .02em; padding: 6px 8px; border-radius: 999px; white-space: nowrap; background: rgba(255,255,255,.08); color: #d7d7d7; border: 1px solid rgba(255,255,255,.1); }
.fx-tag--bad { background: var(--badbg); color: #ff9aab; border-color: rgba(255,93,112,.45); }
.fx-tag--good { background: color-mix(in srgb, var(--ca) 16%, transparent); color: var(--ca); border-color: color-mix(in srgb, var(--ca) 55%, transparent); }
.fx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fx-chip { font: 600 .74rem/1 var(--font); padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: var(--t2); font-variant-numeric: tabular-nums; }
.fx-chip b { color: #fff; }
.fx-flag { display: inline-block; font: 700 10px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--r); padding: 5px 7px; border-radius: 6px; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--r) 80%, transparent); white-space: nowrap; }
.fx-ex { display: inline-block; font: 800 9px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: inherit; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); padding: 3px 5px; border-radius: 4px; vertical-align: 1px; }
.fx-meter { display: flex; align-items: center; gap: 14px; }
.fx-meter__lab { font: 600 .7rem/1 var(--mono, ui-monospace); letter-spacing: .18em; text-transform: uppercase; color: var(--t3); }
.fx-meter__val { font: 800 clamp(1.5rem, 2.5vw, 2.1rem)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fx-meter__val i { font-style: normal; color: var(--rt); }

/* real-app frames */
.fx-win { background: #1b1d22; border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.fx-win__bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #24262c; border-bottom: 1px solid rgba(255,255,255,.06); }
.fx-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .fx-win__bar i:nth-child(2) { background: #febc2e; } .fx-win__bar i:nth-child(3) { background: #28c840; }
.fx-win__url { margin-left: 10px; flex: 1; min-width: 0; background: #15171b; border-radius: 7px; padding: 5px 10px; font: 500 11px/1.2 var(--mono, ui-monospace); color: #9aa0ab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-yt { background: #0f0f0f; border: 1px solid #272727; border-radius: 16px; font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif; color: #f1f1f1; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.fx-ig { background: #000; border: 1px solid #262626; border-radius: 16px; font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: #f5f5f5; }
.fx-phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300/620; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b2d33, #0d0e11); box-shadow: 0 0 0 1.5px #3a3c42, 0 50px 90px -40px rgba(0,0,0,.95); margin: 0 auto; }
.fx-phone__scr { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; }
.fx-phone__island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 9; }
.fx-phone__status { position: absolute; top: 0; left: 0; right: 0; height: 44px; display: flex; justify-content: space-between; align-items: center; padding: 6px 26px 0; font: 700 13px/1 -apple-system, "SF Pro Text", sans-serif; z-index: 8; }

/* the scroll stage (desktop pins, phones stack) */
.fx-stage { position: relative; height: var(--len, 300vh); }
.fx-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 20px 0; }

/* result + open */
.fx-after { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 30px; }
.fx-open { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem/1 var(--font); color: #fff; background: rgba(255,255,255,.04); border: 1px solid var(--line2); padding: 14px 20px; border-radius: 999px; cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.fx-open:hover { border-color: var(--r2); background: color-mix(in srgb, var(--r) 14%, transparent); transform: translateY(-2px); }
.fx-open svg { width: 16px; height: 16px; }

.fx-in { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.fx-in.is-in { opacity: 1; transform: none; }

@media (max-width: 979px) {
  .fx-cols { grid-template-columns: 1fr; }
  .fx-stage { height: auto; }
  .fx-pin { position: relative; height: auto; padding: 0; }
  .fx-fixhead { margin-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .fx *, .fx *::before { animation: none !important; transition: none !important; } .fx-in { opacity: 1; transform: none; } }

/* STILL PREVIEW (floor B28). A fix that is really a thing to look at (program, link page, landing page, profile,
   thumbnails, a plan) is a still preview that opens the full thing on click, like the VSL page card.
   Scroll stays only where it makes something happen. The 3 fixes on a page never all use the same format. */
.pcard.fx-still, .fx-still { all: unset; box-sizing: border-box; display: block; position: relative; width: 100%; max-width: 1180px; margin: 0 auto; cursor: pointer; border-radius: 24px; border: 1px solid rgba(255,255,255,.09); background: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.055), rgba(255,255,255,.012) 62%), #0d0e11; box-shadow: 0 50px 100px -50px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.05); overflow: hidden; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s, border-color .45s; -webkit-tap-highlight-color: transparent; text-align: left; color: inherit; font: inherit; }
.fx-still:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--r2) 45%, transparent); box-shadow: 0 60px 120px -50px rgba(0,0,0,.95), 0 0 0 1px color-mix(in srgb, var(--r2) 16%, transparent), 0 30px 90px -40px color-mix(in srgb, var(--r) 55%, transparent); }
.fx-still:focus-visible { outline: 2px solid var(--rt); outline-offset: 4px; }
.fx-still__in { position: relative; padding: clamp(16px, 3vw, 38px); }
.fx-still__in, .fx-still__in * { pointer-events: none; }
.fx-still__bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(18px, 3vw, 30px); border-top: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.022); }
.fx-still__bar small { display: block; font: 600 .66rem/1 var(--mono, ui-monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); margin-bottom: 7px; }
.fx-still__bar b { display: block; font: 700 1.05rem/1.25 var(--font); color: #fff; }
.fx-still__go { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 12px 18px; border-radius: 999px; background: var(--r); color: #fff; font: 700 .9rem/1 var(--font); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--r) 80%, transparent); transition: gap .3s, background .3s; white-space: nowrap; }
.fx-still__go svg { width: 15px; height: 15px; }
.fx-still:hover .fx-still__go { gap: 13px; background: color-mix(in srgb, var(--r) 85%, white); }
.fx-still__tag { position: absolute; z-index: 3; left: clamp(16px, 3vw, 30px); top: clamp(14px, 2vw, 20px); font: 700 .62rem/1 var(--mono, ui-monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.fx-ba { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.fx-ba__arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--r); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--r) 14%, transparent), 0 14px 30px -10px color-mix(in srgb, var(--r) 80%, transparent); }
.fx-ba__arrow svg { width: 22px; height: 22px; }
.fx-ba__lab { display: block; text-align: center; margin-bottom: 12px; font: 700 .66rem/1 var(--mono, ui-monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); }
.fx-ba__lab.is-new { color: var(--ca); }
.fx-ba__was { opacity: .78; filter: saturate(.75); transform: scale(.94); transform-origin: center right; }
@media (max-width: 979px) { .fx-still__bar { flex-direction: column; align-items: flex-start; } .fx-ba { grid-template-columns: minmax(0, 1fr); } .fx-ba__arrow { margin: 0 auto; transform: rotate(90deg); } .fx-ba__was { transform: none; } }

/* ===================== v7.1 shared pieces (Nov 24, round 1 notes) ===================== */
/* client colours on the whole section; light brands get a deep tint of their accent so phones and shots still pop */
/* v7.2 (round 2): every template sits on the pitch page's own black (--pg), never a tint of their colour, a grey
   or a darker box. Our panels use --pg2/--pg3 (the page's own surfaces). Their colours stay inside their things. */
.fx, .fx-sec { --pg: var(--bg, #0e0f11); --pg2: var(--surface, #17181b); --pg3: #1d1f24; --fxbg: var(--pg); }
.fx-sec.fx-themed { background: none; }
.fx-sec .fixres { border-color: color-mix(in srgb, var(--ca) 40%, transparent) !important; }
.fx-sec .fixres span { color: var(--rt) !important; }
/* v7.2 round 2 (floor B33): no tinted boxes on our side. The result is a clean centered line, problem boxes are
   the page's own surface with a red edge (no red fill), and creator colours stay inside their own stuff. */
.fx-sec .fixres { display: grid !important; justify-items: center; gap: 10px; max-width: 760px; margin: clamp(46px, 6vw, 80px) auto 0; padding: 0 !important; border: 0 !important; border-radius: 0; background: none !important; text-align: center; }
.fx-sec .fixres p { font: 700 clamp(1.12rem, 1.8vw, 1.36rem)/1.42 var(--display, var(--font)); letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.fx-h em, .fx-em { font-style: normal; color: var(--rt); }
.fx-bad { color: var(--bad); }
/* picture book: one short line under each picture */
.fx-cap { margin: 14px auto 0; max-width: 560px; text-align: center; font: 600 1rem/1.45 var(--font); color: var(--t2); text-wrap: balance; }
.fx-cap b { color: #fff; }
.fx-big { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.08 var(--display); letter-spacing: -.03em; text-align: center; margin: 0 auto; max-width: 820px; text-wrap: balance; }
.fx-big em { font-style: normal; color: var(--rt); }
.fx-rule { display: inline-block; font: 800 9px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--t3); border: 1px solid var(--line2); padding: 4px 6px; border-radius: 5px; vertical-align: 2px; }

/* v7.2 "Scroll slowly" cue (floor B30): a mouse with a glowing wheel that pulses, at the bottom of the pinned scene.
   It stays until they scroll steadily, and comes back at every hold. */
.fx-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 999px; background: rgba(14,15,17,.78); border: 1px solid rgba(255,255,255,.16); color: #f1f2f4; font: 700 .84rem/1 var(--font); letter-spacing: .01em; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -18px rgba(0,0,0,.9); transition: opacity .6s, transform .6s; pointer-events: none; white-space: nowrap; }
.fx-hint__m { position: relative; flex: none; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.9); border-radius: 12px; }
.fx-hint__m::after { content: ""; position: absolute; inset: -7px; border-radius: 17px; border: 2px solid color-mix(in srgb, var(--rt) 70%, transparent); animation: fxring 1.6s ease-out infinite; }
.fx-hint__m i { position: absolute; left: 50%; top: 6px; width: 4px; height: 9px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 6px 2px color-mix(in srgb, var(--rt) 90%, transparent), 0 0 16px 5px color-mix(in srgb, var(--r) 60%, transparent); animation: fxwheel 1.6s ease-in-out infinite; }
@keyframes fxwheel { 0% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(10px); opacity: .2; } 56% { transform: translateY(0); opacity: 0; } 75%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes fxring { 0% { transform: scale(.85); opacity: .85; } 100% { transform: scale(1.45); opacity: 0; } }
.fx-hint.is-gone { opacity: 0; transform: translate(-50%, 10px); }
.fx-hint--flow { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto 18px; display: flex; width: max-content; }
.fx-hint--flow.is-gone { transform: none; }
@media (max-width: 700px) { .fx-hint { bottom: 16px; gap: 10px; padding: 8px 14px 8px 10px; font-size: .78rem; } .fx-hint__m { width: 18px; height: 28px; border-radius: 10px; } .fx-hint__m i { top: 5px; height: 7px; } }
@media (prefers-reduced-motion: reduce) { .fx-hint__m i, .fx-hint__m::after { animation: none; } }

/* v7.2 every template ends the same way (floor B38): we build it and run it, they keep doing what they do */
.fx-end { margin: clamp(40px, 6vw, 72px) auto 0; max-width: 760px; text-align: center; padding: 0 12px; }
.fx-end__h { margin: 0; font: 800 clamp(1.5rem, 2.8vw, 2.25rem)/1.12 var(--display, var(--font)); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.fx-end__h em { font-style: normal; color: var(--rt); }
.fx-end__s { margin: 12px 0 0; font: 600 1.05rem/1.45 var(--font); color: var(--t2); }

/* real device frames. Screens hold a real screenshot (img) or live HTML */
.fx-iph { position: relative; width: min(300px, 100%); aspect-ratio: 9/19.5; border-radius: 48px; padding: 10px; background: linear-gradient(150deg, #34363c, #0c0d10 60%, #24262b); box-shadow: 0 0 0 1.5px #44464d, inset 0 0 0 1.5px #000, 0 50px 90px -40px rgba(0,0,0,.95); margin: 0 auto; }
.fx-iph::before { content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2a2c31; }
.fx-iph__scr { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; isolation: isolate; }
.fx-iph__scr > img.fx-shot { width: 100%; height: auto; display: block; }
.fx-iph__isl { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 30%; height: 25px; border-radius: 20px; background: #000; z-index: 20; }
.fx-iph--sm { width: min(230px, 100%); border-radius: 38px; padding: 8px; } .fx-iph--sm .fx-iph__scr { border-radius: 31px; } .fx-iph--sm .fx-iph__isl { top: 15px; height: 20px; }
.fx-mac { position: relative; width: min(760px, 100%); margin: 0 auto; }
.fx-mac__lid { position: relative; padding: 2.2% 2.2% 3%; border-radius: 22px 22px 8px 8px; background: linear-gradient(#2b2d32, #18191c); box-shadow: 0 0 0 1.5px #4a4c52, 0 50px 100px -50px rgba(0,0,0,.95); }
.fx-mac__lid::before { content: ""; position: absolute; top: 1%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #0a0b0c; box-shadow: inset 0 0 0 1px #333; }
.fx-mac__scr { position: relative; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; background: #fff; }
.fx-mac__scr > img.fx-shot { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; }
.fx-mac__base { position: relative; height: 16px; margin: 0 -6.5%; border-radius: 2px 2px 14px 14px; background: linear-gradient(#d7d9de, #9a9da4 60%, #6f7279); box-shadow: 0 20px 40px -14px rgba(0,0,0,.9); }
.fx-mac__base::before { content: ""; position: absolute; top: 0; left: 50%; width: 16%; height: 6px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #8c8f96; }
.fx-scrollshot { will-change: transform; transition: transform .12s linear; }

/* lines from a spot on a device to a box that says what it is */
.fx-co { position: relative; }
.fx-co__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 15; }
.fx-co__svg path { fill: none; stroke: var(--rt); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: 0; transition: opacity .4s; }
.fx-co__svg circle { fill: var(--rt); opacity: 0; transition: opacity .4s; }
.fx-co__svg .is-on { opacity: 1; }
.fx-co__svg.is-bad path { stroke: var(--bad); } .fx-co__svg.is-bad circle { fill: var(--bad); }
.fx-box { position: relative; z-index: 16; max-width: 270px; padding: 13px 15px; border-radius: 14px; background: rgba(18,19,22,.92); border: 1px solid var(--line2); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); opacity: .14; transform: translateY(8px); transition: opacity .45s, transform .45s, border-color .45s; }
.fx-box b { display: block; font: 700 .92rem/1.3 var(--font); color: #fff; margin-bottom: 3px; }
.fx-box p { margin: 0; font: 500 .84rem/1.4 var(--font); color: var(--t2); }
.fx-box.is-on { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--rt) 55%, transparent); }
.fx-box.is-bad.is-on { border-color: rgba(255,93,112,.55); }
.fx-box.is-bad b::before { content: "✕ "; color: var(--bad); } .fx-box.is-good b::before { content: "✓ "; color: var(--rt); }

/* know, like, trust */
.fx-klt { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 auto; }
.fx-klt span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: color-mix(in srgb, var(--ca) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ca) 40%, transparent); font: 700 .9rem/1 var(--font); color: #fff; }
.fx-klt span i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ca); color: var(--cai); font-size: 12px; }
@media (max-width: 979px) { .fx-hint { display: none; } .fx-box { opacity: 1; transform: none; max-width: none; } }
.fx-h em.fx-bad, .fx-h .fx-bad { color: var(--bad); }
