/* =========================================================================
   The Money Finders · Masterclass deck
   1280x720 stage, scaled to fit any viewport (letterboxed). System B tokens
   come from /assets/brand.css; everything here is deck-specific.
   ========================================================================= */
html, body { height: 100%; margin: 0; overflow: hidden; background: #050506; }
body::before, body::after { display: none; }
body { cursor: default; user-select: none; -webkit-user-select: none; touch-action: pan-y; }

#viewport { position: fixed; inset: 0; background: #050506; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px;
  transform: translate(-50%, -50%) scale(var(--k, 1)); transform-origin: center;
  overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 120px -40px rgba(0,0,0,.9);
}
#stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 50% -10%, rgba(231,228,220,.10), transparent 62%),
    radial-gradient(40% 40% at 100% 70%, rgba(231,228,220,.04), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #0e0e0f 0%, #0b0b0c 45%, #09090a 100%); }
.slide { position: absolute; inset: 0; overflow: hidden; z-index: 1; }

/* chrome */
#bar { position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 5; background: var(--accent); opacity: .55; transition: width .4s var(--ease); }
#counter { position: fixed; right: 16px; bottom: 12px; z-index: 5; font: 600 13px/1 var(--sans); letter-spacing: .12em; color: var(--faint); font-variant-numeric: tabular-nums; }
#hint { display: none; position: fixed; left: 0; right: 0; bottom: 40px; z-index: 5; text-align: center; font: 500 14px/1.4 var(--sans); color: var(--faint); letter-spacing: .02em; }
@media (orientation: portrait) and (max-width: 820px) { #hint { display: block; } }

/* ---------- type ---------- */
.k { margin: 0 0 22px; font: 600 20px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.k.line { display: inline-flex; align-items: center; gap: 16px; }
.k.line::before, .k.line::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6; }
.h { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }
.hxl { font-size: 104px; line-height: .98; }
.hl { font-size: 76px; }
.hm { font-size: 60px; line-height: 1.06; }
.hs { font-size: 46px; line-height: 1.1; }
.p { margin: 26px 0 0; font-size: 30px; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.p.sm { font-size: 26px; }
.i { font-family: var(--display); font-style: italic; font-weight: 500; }
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.c { text-align: center; }
.mut { color: var(--muted); }

/* ---------- layout primitives ---------- */
.fill { position: absolute; inset: 0; }
.center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 120px; }
.pad { position: absolute; inset: 0; padding: 72px 96px; }
.glow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; transform: translate(-50%,-50%); pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, rgba(231,228,220,.09), transparent); }
.logo { position: absolute; left: 64px; top: 52px; height: 46px; width: auto; opacity: .9; }
.logo.c { left: 50%; transform: translateX(-50%); }

/* full-bleed photo */
.bleed { position: absolute; inset: 0; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.scrim-l { background: linear-gradient(90deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.82) 32%, rgba(11,11,12,.25) 62%, rgba(11,11,12,0) 80%); }
.scrim-r { background: linear-gradient(270deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.82) 32%, rgba(11,11,12,.25) 62%, rgba(11,11,12,0) 80%); }
.scrim-b { background: linear-gradient(0deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.75) 30%, rgba(11,11,12,0) 62%); }
.scrim-all { background: rgba(11,11,12,.72); }
.txt-l { position: absolute; left: 88px; top: 50%; transform: translateY(-50%); width: 560px; }
.txt-r { position: absolute; right: 88px; top: 50%; transform: translateY(-50%); width: 560px; }
.txt-b { position: absolute; left: 88px; right: 88px; bottom: 72px; }

/* split */
.half { position: absolute; top: 0; bottom: 0; width: 46%; overflow: hidden; }
.half.l { left: 0; } .half.r { right: 0; }
.half img { width: 100%; height: 100%; object-fit: cover; }
.half.l::after, .half.r::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.half.l::after { background: linear-gradient(90deg, transparent 70%, rgba(11,11,12,.9)); }
.half.r::after { background: linear-gradient(270deg, transparent 70%, rgba(11,11,12,.9)); }
.side { position: absolute; top: 0; bottom: 0; width: 54%; display: flex; flex-direction: column; justify-content: center; padding: 0 88px 0 72px; }
.side.r { right: 0; } .side.l { left: 0; padding: 0 64px 0 96px; }

/* framed / polaroid / cluster */
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--hair); background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0,0,0,.95); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.pol { position: absolute; background: #efede7; padding: 14px 14px 58px; border-radius: 4px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.2); }
.pol img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.pol figcaption { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: italic 500 26px/1 var(--display); color: #2a2926; }
.cold img { filter: grayscale(.75) contrast(1.05) brightness(.85); }
.warm img { filter: saturate(1.05) contrast(1.02); }

/* cards / chips */
.card { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--hair); border-radius: 18px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--hair); font: 600 20px/1 var(--sans); letter-spacing: .04em; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 20px 40px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 26px/1 var(--sans); box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 18px 40px -18px rgba(231,228,220,.45); position: relative; overflow: hidden; }
.pill::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%); animation: sheen 2.8s 1.2s var(--ease) infinite; }
@keyframes sheen { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.hair { height: 1px; background: var(--hair); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- entrance motion (plays on every mount) ---------- */
.a { opacity: 0; animation: up .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
.af { opacity: 0; animation: fade 1.1s ease forwards; animation-delay: var(--d, 0s); }
.az { opacity: 0; animation: zoom 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
.kb img { animation: kb 14s ease-out forwards; }
@keyframes up { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
@keyframes kb { from { transform: scale(1.06); } to { transform: scale(1); } }
html.reduced .a, html.reduced .af, html.reduced .az { opacity: 1; animation: none; }
html.reduced .kb img, html.reduced .pill::after { animation: none; }

/* ---------- dividers ---------- */
.div-n { position: absolute; right: 70px; bottom: -60px; font: 600 400px/1 var(--display); letter-spacing: -.04em; opacity: .09; }
.div-rule { width: 64px; height: 1px; background: var(--accent); opacity: .6; margin: 34px 0 0; }

/* ---------- quiz ---------- */
.quiz { display: flex; gap: 28px; margin-top: 56px; }
.opt { width: 300px; padding: 30px 0; text-align: center; font: 600 30px/1 var(--sans); border-radius: 18px; border: 1px solid var(--hair); color: var(--ink); background: rgba(255,255,255,.03); }
.opt.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(231,228,220,.5); }
.opt.off { opacity: .32; text-decoration: line-through; }

/* ---------- WhatsApp (dark mode) ---------- */
.phone { position: absolute; width: 340px; height: 640px; border-radius: 48px; background: #0b141a; border: 10px solid #1c1c1e; box-shadow: 0 0 0 1px #3a3a3c, 0 50px 100px -40px rgba(0,0,0,.95); overflow: hidden; font-family: -apple-system, "SF Pro Text", var(--sans); }
.phone .notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.wa-top { height: 104px; background: #1f2c34; display: flex; align-items: flex-end; gap: 10px; padding: 0 14px 12px; color: #e9edef; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: #6a7175; display: grid; place-items: center; font: 600 15px/1 var(--sans); color: #fff; flex: none; overflow: hidden; }
.wa-av img { width: 100%; height: 100%; object-fit: cover; }
.wa-name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.wa-st { font-size: 13px; color: #8696a0; }
.wa-back { font-size: 26px; color: #00a884; margin-right: 2px; line-height: 1; padding-bottom: 6px; }
.wa-body { position: absolute; top: 104px; bottom: 58px; left: 0; right: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
  background-color: #0b141a; background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px); background-size: 18px 18px; }
.wa-day { align-self: center; font-size: 12px; padding: 5px 10px; border-radius: 8px; background: #182229; color: #8696a0; margin-bottom: 4px; }
.b { max-width: 84%; padding: 7px 9px 18px; border-radius: 9px; font-size: 15.5px; line-height: 1.35; color: #e9edef; position: relative; }
.b.in { align-self: flex-start; background: #1f2c34; border-top-left-radius: 2px; }
.b.out { align-self: flex-end; background: #005c4b; border-top-right-radius: 2px; }
.b .t { position: absolute; right: 8px; bottom: 4px; font-size: 11px; color: rgba(233,237,239,.6); }
.b.out .t::after { content: " ✓✓"; color: #53bdeb; letter-spacing: -3px; }
.wa-in { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: #0b141a; display: flex; align-items: center; gap: 8px; padding: 0 10px; }
.wa-field { flex: 1; height: 40px; border-radius: 20px; background: #1f2c34; color: #8696a0; font-size: 15px; display: flex; align-items: center; padding: 0 16px; }
.wa-mic { width: 40px; height: 40px; border-radius: 50%; background: #00a884; }
.pop { opacity: 0; translate: 0 10px; scale: .98; animation: pop .5s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes pop { to { opacity: 1; translate: 0 0; scale: 1; } }
html.reduced .pop { opacity: 1; translate: 0 0; scale: 1; animation: none; }

/* ---------- iOS lock screen ---------- */
.lock { background: linear-gradient(180deg, #1d2430 0%, #0d1016 100%); }
.lock-time { position: absolute; top: 70px; left: 0; right: 0; text-align: center; color: #fff; font: 600 76px/1 -apple-system, var(--sans); letter-spacing: -.02em; }
.lock-date { position: absolute; top: 46px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font: 500 17px/1 -apple-system, var(--sans); }
.ntf { position: absolute; left: 12px; right: 12px; padding: 12px 14px; border-radius: 20px; background: rgba(60,60,67,.55); backdrop-filter: blur(12px); color: #fff; display: flex; gap: 10px; font-size: 14px; line-height: 1.3; }
.ntf .ic { width: 34px; height: 34px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.ntf b { display: block; font-size: 14px; margin-bottom: 2px; }
.ntf .tm { position: absolute; right: 14px; top: 12px; font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- misc demos ---------- */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.factor { padding: 28px 22px 26px; text-align: left; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.factor .n { font: 600 22px/1 var(--sans); color: var(--faint); letter-spacing: .1em; }
.factor .tt { font: 600 34px/1.08 var(--display); }
.check { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; }
.check svg { width: 20px; height: 20px; stroke: var(--accent-ink); stroke-width: 3; fill: none; }
.check.on { background: var(--accent); border-color: transparent; animation: chk .5s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes chk { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px dashed rgba(243,242,238,.35); display: grid; place-items: center; color: var(--faint); font: 600 18px/1 var(--sans); }
html.reduced .check.on { animation: none; }

.nodes { position: relative; display: flex; justify-content: space-between; align-items: flex-start; }
.nodes .ln { position: absolute; left: 60px; right: 60px; top: 44px; height: 1px; background: var(--hair); }
.nodes .ln i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); animation: grow 1.8s .3s var(--ease) forwards; }
@keyframes grow { to { transform: scaleX(1); } }
html.reduced .nodes .ln i { transform: none; animation: none; }
.node { position: relative; width: 240px; text-align: center; }
.node .o { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid rgba(243,242,238,.3); font: 600 34px/1 var(--display); color: var(--ink); }
.node.lit .o { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 0 0 10px rgba(231,228,220,.06), 0 20px 50px -20px rgba(231,228,220,.6); }
.node .tt { font: 600 30px/1.12 var(--display); }
.node .ss { margin-top: 10px; font-size: 20px; line-height: 1.35; color: var(--muted); }

.stack-row { display: flex; align-items: center; gap: 22px; padding: 16px 26px; border-radius: 16px; border: 1px solid var(--hair); background: rgba(255,255,255,.025); }
.stack-row .ix { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(243,242,238,.3); font: 600 22px/1 var(--display); }
.stack-row .tx { font-size: 24px; line-height: 1.3; }
.stack-row.new { border-color: rgba(231,228,220,.55); background: rgba(231,228,220,.07); }
.stack-row.new .ix { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stack-row.dim { opacity: .55; }
.badge { flex: none; margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 15px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

.mt-col { position: absolute; top: 0; bottom: 0; width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 0 72px; }
.mt-col.l { left: 0; } .mt-col.r { right: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(231,228,220,.07), transparent); }
.mt-tag { font: 600 20px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 26px; }
.strike { position: relative; display: inline; color: var(--faint); }
.mt-mid { position: absolute; left: 50%; top: 120px; bottom: 120px; width: 1px; background: var(--hair); }

.ring { transform: rotate(-90deg); transform-origin: center; }

.dim img { filter: brightness(.7); }
.scrim-r { background: linear-gradient(270deg, rgba(11,11,12,.96) 0%, rgba(11,11,12,.88) 38%, rgba(11,11,12,.3) 66%, rgba(11,11,12,0) 82%); }
