/* FunnelKit — base.css : theme tokens, layout, phone frame, shared primitives.
 * Everything themable lives in :root vars so a builder can repaint it. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --accent: #7f1d1d;          /* deep cinematic red */
  --accent-bright: #b91c1c;
  --accent-glow: rgba(127, 29, 29, 0.6);
  --bg: #000000;
  --panel: #0b0b0c;
  --text: #ffffff;
  --muted: #9ca3af;
  --muted-2: #6b7280;
  --line: rgba(255, 255, 255, 0.08);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --frame-w: 440px;
  --wa-green: #25d366;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050505; color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* viewport: a centered "phone" column on desktop, full-bleed on small screens */
#fk-app { position: relative; width: 100%; min-height: 100dvh; display: flex; justify-content: center; background:
  radial-gradient(ellipse at center, #0d0d0f 0%, #050505 70%); }
.fk-stage { position: relative; width: 100%; max-width: var(--frame-w); min-height: 100dvh; background: var(--bg);
  overflow: hidden; opacity: 0; transform: scale(0.995); transition: opacity .5s ease, transform .5s ease;
  box-shadow: 0 0 60px rgba(0,0,0,.8); }
.fk-stage.fk-in { opacity: 1; transform: none; }
@media (min-width: 480px) { .fk-stage:not(.fk-layout-full) { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

/* Fullscreen ("cinema") mode — config.fullscreen + the hero CTA gesture.
   The phone column stops being pinned at --frame-w and scales with the viewport
   height instead, so the funnel genuinely fills the screen. Portrait 9:16 is
   preserved so no step's phone UI (TikTok / WhatsApp / lock screen) is ever
   stretched — every step's media is object-fit:cover, so it just gets bigger. */
:fullscreen .fk-stage:not(.fk-layout-full) { max-width: min(100%, calc(100dvh * 9 / 16)); }
:fullscreen #fk-app { background: #000; }

/* full-width responsive layout (sales page): break out of the phone frame */
.fk-stage.fk-layout-full { max-width: 100%; box-shadow: none; }
#fk-app:has(.fk-layout-full) { display: block; }

.fk-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.fk-sp.fk-screen { position: relative; inset: auto; min-height: 100dvh; overflow-y: auto; }

/* shared bits */
.fk-corner-brand { position: absolute; top: 18px; left: 18px; z-index: 30; font-family: var(--font-display);
  font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--accent); }
.fk-eyebrow { font-family: var(--font-display); font-size: 10px; letter-spacing: .45em; text-transform: uppercase; color: var(--accent-bright); text-align: center; margin-bottom: 14px; }
.fk-icon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }

.fk-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; padding: 16px 28px; font-family: var(--font-display); font-weight: 700;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; min-height: 50px; transition: background .3s, transform .2s; }
.fk-btn-primary { background: var(--accent); color: #fff; border-color: rgba(0,0,0,.3); }
.fk-btn-primary:hover { background: var(--accent-bright); }
.fk-btn-primary:active { transform: scale(.98); }
.fk-btn-ghost { background: transparent; color: var(--muted-2); border-color: var(--line); cursor: default; }
.fk-corners::before, .fk-corners::after { content: ''; position: absolute; width: 8px; height: 8px; border: 1px solid rgba(255,255,255,.3); }
.fk-corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.fk-corners::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.fk-link { background: none; border: 0; color: var(--muted-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; margin-top: 8px; font-family: var(--font-display); }
.fk-link:hover { color: var(--muted); }

/* full-screen transition video overlay */
.fk-fullvideo { position: absolute; inset: 0; z-index: 50; width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .3s; }
.fk-fullvideo.show { opacity: 1; }

/* voice-note waveform */
.fk-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.fk-wave span { width: 3px; background: currentColor; border-radius: 2px; opacity: .55; height: 40%; }
.fk-wave.is-playing span { animation: fk-bar .9s ease-in-out infinite; opacity: 1; }
@keyframes fk-bar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

/* dev step-jumper (?dev=1) */
.fk-devbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; display: flex; flex-wrap: wrap; gap: 4px;
  padding: 6px; background: rgba(0,0,0,.85); border-top: 1px solid var(--line); }
.fk-devbar button { font: 600 11px var(--font-body); color: var(--muted); background: #16161a; border: 1px solid var(--line); border-radius: 5px; padding: 4px 8px; }
.fk-devbar button.active { color: #fff; background: var(--accent); border-color: var(--accent); }
.fk-shake { animation: fk-shake .35s; }
@keyframes fk-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }
