/* VidPulsar Free Trial Funnel */

body.vpft-fullscreen { margin: 0; background: #121214; }

.vpft-root {
    --vp-bg: #121214;
    --vp-bg-2: #1b1b1f;
    --vp-ink: #ffffff;
    --vp-ink-2: #c7c7d1;
    --vp-ink-3: #8d8d99;
    --vp-line: rgba(255, 255, 255, .14);
    --vp-accent: #4f5bff;
    --vp-accent-2: #3a45e6;
    --vp-accent-soft: rgba(79, 91, 255, .16);
    --vp-violet: #8b7cf6;
    --vp-ok: #1f9d55;
    --vp-err: #ff6b6b;
    --vp-light: #f3f3f5;
    --vp-light-2: #e6e6ea;
    --vp-dark-ink: #17171a;
    --vp-dark-ink-2: #5d5d68;
    --vp-radius: 18px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--vp-ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
.vpft-root *, .vpft-root *::before, .vpft-root *::after { box-sizing: border-box; }
.vpft-root [hidden] { display: none !important; }
/* Low-specificity resets (:where) so component rules below always win, and theme styles do not leak in. */
:where(.vpft-root) a { color: inherit; }
:where(.vpft-root) svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:where(.vpft-root) :is(button, input, textarea, select) { font-family: inherit; font-size: inherit; line-height: inherit; letter-spacing: normal; text-transform: none; cursor: pointer; }
:where(.vpft-root) :is(input, textarea) { cursor: text; }
.vpft-root :is(h1, h2, h3, p) { font-family: inherit; text-transform: none; }
.vpft-root :focus-visible { outline: 2px solid var(--vp-violet); outline-offset: 2px; }
.vpft-root .vpft-composer textarea:focus-visible, .vpft-root .vpft-input input:focus-visible, .vpft-root .vpft-director textarea:focus-visible, .vpft-root .vpft-share-field input:focus-visible { outline: none; }
.vpft-root .vpft-input input, .vpft-root .vpft-share-field input { border: 0; box-shadow: none; padding: 0; margin: 0; min-height: 0; border-radius: 0; }

/* ---------- Buttons ---------- */
.vpft-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.vpft-btn:active { transform: translateY(1px); }
.vpft-btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.vpft-btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.vpft-btn-block { width: 100%; }
.vpft-btn-primary { background: var(--vp-accent); color: #fff !important; }
.vpft-btn-primary:hover { background: var(--vp-accent-2); }
.vpft-btn-primary[disabled] { opacity: .55; cursor: default; }
.vpft-btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.vpft-btn-ghost { background: rgba(255,255,255,.92); color: var(--vp-dark-ink); }
.vpft-btn-ghost:hover { background: #fff; }
.vpft-btn-dark { background: #5d5d64; color: #fff; }
.vpft-btn-social { background: #fff; color: var(--vp-dark-ink); border-color: #d8d8de; font-weight: 600; }
.vpft-btn-social:hover { border-color: #a9a9b3; }
.vpft-btn-social svg { width: 20px; height: 20px; stroke: none; }
.vpft-icon-btn {
    width: 44px; height: 44px; display: grid; place-items: center; flex: none;
    border-radius: 10px; border: 1px solid #d8d8de; background: #fff; color: var(--vp-dark-ink);
}

/* ---------- Brand + nav ---------- */
.vpft-nav {
    position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; max-width: 1280px; margin: 0 auto;
}
.vpft-nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.vpft-nav-links a { text-decoration: none; color: var(--vp-ink-2); }
.vpft-nav-links a:hover { color: #fff; }
.vpft-nav-links a.vpft-nav-account { color: #fff; padding: 7px 14px; border: 1px solid var(--vp-line); border-radius: 999px; }
.vpft-nav-links a.vpft-btn { color: #fff; }

/* ---------- Landing / hero ---------- */
.vpft-landing { background: var(--vp-bg); }
.vpft-hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 16px 96px;
}
.vpft-hero-bg { position: absolute; inset: -20% -10% 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 35% at 30% 30%, rgba(98, 76, 196, .30), transparent 70%),
        radial-gradient(38% 34% at 72% 62%, rgba(150, 52, 60, .26), transparent 70%),
        var(--vp-bg);
}
.vpft-hero-bg span { position: absolute; left: -20%; right: -20%; border-radius: 50%; border-top: 1px solid rgba(255,255,255,.05);
    background: linear-gradient(180deg, rgba(255,255,255,.028), transparent 40%); }
.vpft-hero-bg span:nth-child(1) { top: 8%; height: 90%; }
.vpft-hero-bg span:nth-child(2) { top: 62%; height: 80%; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 50%); }
.vpft-hero-bg span:nth-child(3) { top: 80%; height: 70%; background: linear-gradient(180deg, rgba(0,0,0,.35), #0d0d0f 40%); }

.vpft-hero-inner { width: 100%; max-width: 680px; text-align: center; }
.vpft-h1 { margin: 0 0 10px; font-size: clamp(34px, 6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.vpft-sub { margin: 0 auto 28px; max-width: 560px; font-size: clamp(16px, 2.2vw, 20px); color: var(--vp-ink-2); }

.vpft-banner { margin: 0 auto 22px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 16px;
    border-radius: 12px; background: var(--vp-accent-soft); border: 1px solid rgba(139,124,246,.4); font-size: 14px; color: #e6e4ff; }
.vpft-banner a { font-weight: 700; color: #fff; }

.vpft-composer {
    position: relative; text-align: left;
    background: rgba(70, 70, 76, .55); border: 1px solid var(--vp-line); border-radius: var(--vp-radius);
    padding: 12px 12px 12px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transition: border-color .15s, box-shadow .15s;
}
.vpft-composer:focus-within { border-color: rgba(255,255,255,.28); }
.vpft-composer.is-dragging { border-color: var(--vp-violet); box-shadow: 0 0 0 4px rgba(139,124,246,.25); }
.vpft-attach-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vpft-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; max-width: 220px;
    padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid transparent;
    background: #232327; color: #fff; font-size: 13px; font-weight: 600;
}
.vpft-chip:hover { background: #2c2c31; }
.vpft-chip.is-set { border-color: rgba(139,124,246,.6); background: #26243a; }
.vpft-chip-static { background: transparent; border: 1px dashed rgba(255,255,255,.18); color: var(--vp-ink-3); cursor: default; }
.vpft-chip-static:hover { background: transparent; }
.vpft-chip-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpft-chip-thumb { width: 24px; height: 24px; border-radius: 50%; background-size: cover; background-position: center; margin-left: -4px; }
.vpft-chip-thumb:not([hidden]) + .vpft-chip-ico { display: none; }
.vpft-drop-veil { position: absolute; inset: 0; border-radius: inherit; display: none; place-items: center;
    background: rgba(40, 34, 80, .85); font-weight: 700; font-size: 16px; }
.vpft-composer.is-dragging .vpft-drop-veil { display: grid; }
.vpft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vpft-trust { margin: 14px 0 0; font-size: 13px; color: var(--vp-ink-3); }
.vpft-error { margin: 12px 0 0; font-size: 14px; color: var(--vp-err); }
.vpft-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.7); display: grid; place-items: center; color: #fff; }
.vpft-scroll svg { width: 16px; height: 16px; }

.vpft-section { max-width: 1040px; margin: 0 auto; padding: 80px 16px; text-align: center; }
.vpft-section h2 { color: #fff; margin: 0 0 32px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.vpft-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.vpft-steps li { padding: 24px; border-radius: 16px; background: var(--vp-bg-2); border: 1px solid rgba(255,255,255,.06); }
.vpft-steps h3 { color: #fff; margin: 14px 0 6px; font-size: 18px; }
.vpft-steps p { margin: 0; color: var(--vp-ink-2); font-size: 15px; }
.vpft-step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--vp-accent-soft); color: #c9c4ff; font-weight: 800; }
.vpft-example-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vpft-example-video { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; background: #000; }
.vpft-faq { max-width: 720px; text-align: left; }
.vpft-faq h2 { text-align: center; }
.vpft-faq details { border-bottom: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.vpft-faq summary { color: #fff; cursor: pointer; font-weight: 700; font-size: 16px; }
.vpft-faq p { margin: 10px 0 0; color: var(--vp-ink-2); }
.vpft-final { padding-bottom: 120px; }

/* ---------- Modals ---------- */
.vpft-modal { position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px;
    background: rgba(10, 10, 12, .62); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: vpftFade .18s ease; }
.vpft-modal-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto;
    background: #f4f4f5; color: var(--vp-dark-ink); border-radius: 14px; padding: 36px 40px 32px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: vpftPop .22s cubic-bezier(.2,.9,.3,1.2); }
.vpft-modal-card h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.01em; text-align: center; color: var(--vp-dark-ink); }
.vpft-modal-sub { margin: 0 0 22px; text-align: center; color: var(--vp-dark-ink-2); font-size: 15px; }
.vpft-modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--vp-dark-ink); display: grid; place-items: center; }
.vpft-modal-x:hover { background: rgba(0,0,0,.06); }
.vpft-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #d3d3da; background: #fff; margin-bottom: 12px; color: #9a9aa5; }
.vpft-input:focus-within { border-color: var(--vp-accent); box-shadow: 0 0 0 3px rgba(79,91,255,.15); }
.vpft-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--vp-dark-ink); }
.vpft-fineprint { margin: 14px 0 0; font-size: 12.5px; color: var(--vp-dark-ink-2); text-align: center; }
.vpft-fineprint a { color: var(--vp-accent); text-decoration: none; }
.vpft-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: #9a9aa5; font-size: 13px; }
.vpft-or::before, .vpft-or::after { content: ""; flex: 1; height: 1px; background: #dadae0; }
.vpft-modal .vpft-error { text-align: center; color: #d33a3a; }

.vpft-email-status { display: flex; align-items: center; gap: 12px; margin: -6px 0 22px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e3e3e8; }
.vpft-email-thumb { width: 44px; height: 44px; border-radius: 10px; background: #ddd center / cover; flex: none; }
.vpft-email-status-text { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.vpft-mini-bar { height: 5px; border-radius: 5px; background: #e6e6ea; overflow: hidden; }
.vpft-mini-bar span { display: block; height: 100%; width: 3%; border-radius: inherit; background: linear-gradient(90deg, var(--vp-violet), var(--vp-accent)); transition: width .6s ease; }

.vpft-share-card { max-width: 460px; padding: 28px 22px 24px; }
.vpft-share-card h2 { text-align: left; font-size: 24px; }
.vpft-share-card .vpft-modal-sub { text-align: left; margin-bottom: 18px; }
.vpft-share-perm { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vpft-share-perm-ico { width: 34px; height: 34px; border-radius: 50%; background: #d9d9de; display: grid; place-items: center; }
.vpft-share-perm strong { display: block; font-size: 15px; }
.vpft-share-perm small { color: var(--vp-dark-ink-2); font-size: 12px; }
.vpft-share-row { display: flex; gap: 10px; }
.vpft-share-field { flex: 1; min-width: 0; display: flex; align-items: center; height: 44px; border: 1px solid #d3d3da; border-radius: 10px; background: #fff; overflow: hidden; }
.vpft-share-field input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: inherit; font-size: 14px; color: var(--vp-dark-ink); background: transparent; }
.vpft-share-copy { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; border: 0; border-left: 1px solid #d3d3da; background: #fff; font-weight: 700; color: var(--vp-dark-ink); }
.vpft-share-copy.is-copied { color: var(--vp-ok); }
.vpft-share-social-title { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding-top: 16px; border-top: 1px solid #dcdce2; font-weight: 700; font-size: 14px; }
.vpft-share-social-title svg { width: 15px; height: 15px; }
.vpft-share-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vpft-share-social .vpft-btn { padding: 0 10px; font-size: 14px; }

.vpft-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 99999;
    padding: 12px 18px; border-radius: 10px; background: #1d1d22; color: #fff; font-size: 14px; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: vpftUp .2s ease; max-width: calc(100vw - 32px); }
.vpft-toast.is-error { background: #b3261e; }

/* ---------- Viewer (Design-page2) ---------- */
.vpft-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--vp-light-2); color: var(--vp-dark-ink); }
.vpft-appbar { display: flex; align-items: center; gap: 18px; padding: 10px 16px; background: #141416; color: #fff; border-bottom: 2px solid #7c4dff; }
.vpft-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; font-size: 15px; color: #fff; }
.vpft-appbar-actions { margin-left: auto; display: flex; gap: 10px; }
.vpft-appbar .vpft-btn-outline { color: #fff; border-color: rgba(255,255,255,.8); }
.vpft-paid-banner { padding: 12px 16px; text-align: center; font-weight: 600; background: #e8f7ee; color: #155c35; border-bottom: 1px solid #bfe6cf; }

.vpft-workspace { flex: 1; display: grid; grid-template-columns: 1fr 340px; min-height: 0; }
.vpft-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 16px; }
.vpft-player { position: relative; height: min(calc(100vh - 200px), 820px); min-height: 360px; aspect-ratio: 2 / 3; max-width: 100%;
    border-radius: 14px; overflow: hidden; background: #0e0e10; box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.vpft-player video, .vpft-player-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vpft-player video { object-fit: contain; }
.vpft-player-poster { filter: blur(3px) brightness(.55); transform: scale(1.05); }
.vpft-wm { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 4px 9px; border-radius: 6px;
    background: rgba(0,0,0,.42); color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.vpft-wm:hover { background: rgba(0,0,0,.65); }


.vpft-render { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #fff; }
.vpft-render-ring { position: relative; width: 120px; height: 120px; }
.vpft-render-ring svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.vpft-render-ring circle { fill: none; stroke-width: 7; }
.vpft-render-ring .bg { stroke: rgba(255,255,255,.18); }
.vpft-render-ring .fg { stroke: #fff; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .8s ease; }
.vpft-render-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.vpft-render-title { margin: 6px 0 0; font-size: 18px; font-weight: 800; }
.vpft-render-sub { margin: 0; max-width: 300px; font-size: 13px; color: rgba(255,255,255,.8); }
.vpft-render.is-error .vpft-render-ring { display: none; }

.vpft-stage-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.vpft-stage-actions .vpft-btn { min-width: 132px; }
.vpft-stage-actions .vpft-btn-outline { background: #fff; color: var(--vp-dark-ink); border-color: #55555e; }

.vpft-side { background: var(--vp-light); border-left: 1px solid #d9d9df; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.vpft-side-card { padding: 18px; border-radius: 12px; background: #fff; border: 1px solid #c9c7f5; box-shadow: 0 4px 14px rgba(79,91,255,.08); }
.vpft-side-kicker { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.vpft-side-kicker svg { color: var(--vp-accent); fill: var(--vp-accent); stroke: none; }
.vpft-side-card p { margin: 0 0 14px; font-size: 14px; color: var(--vp-dark-ink-2); }
.vpft-director { margin-top: auto; position: relative; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid #dcdce2; }
.vpft-director-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.vpft-director textarea { width: 100%; border: 0; outline: 0; resize: none; font: inherit; font-size: 14px; color: var(--vp-dark-ink); background: transparent; padding-right: 40px; }
.vpft-director-send { position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #c8c8d0; color: #fff; display: grid; place-items: center; }
.vpft-director-send:hover { background: var(--vp-accent); }

/* ---------- Paywall (Design-page3) ---------- */
.vpft-paywall { position: fixed; inset: 0; z-index: 99995; overflow: auto; background: #f6f6f8; color: var(--vp-dark-ink); animation: vpftFade .18s ease; }
.vpft-paywall-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #141416; color: #fff; }
.vpft-paywall-x { position: static; color: #fff; }
.vpft-paywall-x:hover { background: rgba(255,255,255,.1); }
.vpft-paywall-inner { max-width: 1040px; margin: 0 auto; padding: 36px 16px 64px; }
.vpft-paywall h2 { color: var(--vp-dark-ink); margin: 0; text-align: center; font-size: clamp(28px, 4vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.vpft-pw-sub { margin: 10px auto 30px; max-width: 560px; text-align: center; color: var(--vp-dark-ink-2); font-size: 15px; }
.vpft-pw-sub strong { color: var(--vp-dark-ink); font-size: 19px; }
.vpft-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.vpft-plan { position: relative; display: flex; flex-direction: column; text-align: left; padding: 24px 22px; border-radius: 12px; background: #fff; border: 1.5px solid #e1e1e6; color: var(--vp-dark-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.vpft-plan:hover { border-color: #b9b9c4; }
.vpft-plan.is-selected { border-color: var(--vp-accent); box-shadow: 0 10px 28px rgba(79,91,255,.16); }
.vpft-plan.is-recommended { margin-top: -10px; padding-top: 44px; }
.vpft-plan-badge { position: absolute; top: 0; left: 0; right: 0; padding: 7px; border-radius: 10px 10px 0 0; background: var(--vp-accent); color: #fff; font-size: 13px; font-weight: 700; text-align: center; }
.vpft-plan h3 { color: var(--vp-dark-ink); margin: 0; font-size: 20px; font-weight: 800; }
.vpft-plan-tag { margin: 2px 0 14px; font-size: 13px; color: #9a9aa5; }
.vpft-plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.vpft-plan-price b { font-size: 36px; font-weight: 800; color: var(--vp-ok); letter-spacing: -.02em; }
.vpft-plan-price span { font-size: 13px; color: var(--vp-dark-ink-2); line-height: 1.2; }
.vpft-plan-pick { display: flex; align-items: center; justify-content: center; height: 42px; border-radius: 8px; border: 1.5px solid var(--vp-accent); color: var(--vp-accent); font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.vpft-plan.is-selected .vpft-plan-pick { background: var(--vp-accent); color: #fff; }
.vpft-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.vpft-plan li { display: flex; gap: 8px; align-items: flex-start; }
.vpft-plan li svg { width: 16px; height: 16px; color: var(--vp-ok); margin-top: 3px; stroke-width: 2.6; }
.vpft-summary { max-width: 520px; margin: 0 auto; padding: 0; background: transparent; border: 0; }
.vpft-summary-rows { display: grid; gap: 10px; margin-bottom: 18px; font-size: 14px; }
.vpft-summary-rows div { display: flex; justify-content: space-between; gap: 12px; }
.vpft-summary-rows span { color: var(--vp-dark-ink-2); }
.vpft-summary-total { padding-top: 10px; border-top: 1px solid #ececf0; font-size: 16px; }
.vpft-summary .vpft-btn svg { width: 17px; height: 17px; }
.vpft-summary .vpft-error { text-align: center; color: #d33a3a; }

/* ---------- Share page ---------- */
.vpft-sharepage { background: var(--vp-bg); min-height: 100vh; }
.vpft-share-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px 80px; }
.vpft-player-share { height: min(70vh, 680px); margin-bottom: 26px; }
.vpft-share-title { color: #fff; margin: 0 0 8px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; }

/* ---------- Motion ---------- */
@keyframes vpftFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vpftPop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes vpftUp { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) {
    .vpft-root *, .vpft-modal, .vpft-modal-card, .vpft-toast { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .vpft-workspace { grid-template-columns: 1fr; }
    .vpft-side { border-left: 0; border-top: 1px solid #d9d9df; }
    .vpft-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .vpft-plan.is-recommended { margin-top: 0; order: -1; }
}
@media (max-width: 700px) {
    .vpft-nav { padding: 12px 16px; }
    .vpft-nav-links a:not(.vpft-nav-account):not(.vpft-btn) { display: none; }
    .vpft-steps, .vpft-example-grid { grid-template-columns: 1fr; }
    .vpft-appbar { gap: 10px; }
    .vpft-appbar-actions { display: none; }
    .vpft-player { height: min(calc(100vh - 230px), 640px); min-height: 300px; }
    .vpft-modal-card { padding: 30px 20px 24px; }
    .vpft-modal-card h2 { font-size: 25px; }
    .vpft-share-social { grid-template-columns: 1fr; }
    .vpft-chip { max-width: 100%; }
    .vpft-chip-static { display: none; }
}
#vpft-pw-title:focus { outline: none; }

/* ---------- v1.1: logo ---------- */
.vpft-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.vpft-logo img { display: block; height: 30px; width: auto; max-width: none; }
.vpft-logo .vpft-logo-mark { display: none; height: 32px; }
.vpft-paywall-top .vpft-logo img { height: 26px; }

/* ---------- v1.1: example prompt in the box ---------- */
.vpft-example { padding: 4px 4px 12px; }
.vpft-example-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.vpft-example-tag { padding: 2px 9px; border-radius: 999px; background: rgba(139,124,246,.22); color: #d9d4ff; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vpft-example-note { font-size: 12px; color: var(--vp-ink-3); }
.vpft-root .vpft-example-text { margin: 0; color: #f1f1f5; font-size: 15px; line-height: 1.55; }
.vpft-root .vpft-example-lock { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--vp-ink-3); }
.vpft-example-lock svg { width: 14px; height: 14px; }

/* ---------- v1.1: Start Here button ---------- */
.vpft-start {
    position: relative; overflow: hidden; margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 10px;
    height: 52px; padding: 0 26px 0 30px; border: 0; border-radius: 999px;
    background: linear-gradient(90deg, #4f5bff, #8b5cf6); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 10px 30px rgba(99, 91, 255, .45); transition: transform .15s, box-shadow .15s, filter .15s;
}
.vpft-start:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(99, 91, 255, .55); }
.vpft-start[disabled] { background: #3b3b44; color: #9a9aa6; box-shadow: none; cursor: default; }
.vpft-start.is-uploading { background: #2b2d6e; color: #fff; }
.vpft-start-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #4f5bff, #8b5cf6); transition: width .2s; }
.vpft-start-label, .vpft-start-arrow { position: relative; }
.vpft-root .vpft-start-arrow { width: 20px; height: 20px; stroke-width: 2.6; }

/* ---------- v1.1: controls, matching the paid AI Director panel (.vpag-controls) ---------- */
.vpft-trim { margin-top: 14px; padding: 16px 14px 14px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); }
.vpft-control-row { margin-bottom: 16px; }
.vpft-control-row:last-of-type { margin-bottom: 0; }
.vpft-control-row > label { display: block; margin-bottom: 8px; font-size: 13.5px; opacity: .85; color: #fff; }
.vpft-duration-options { display: flex; gap: 8px; }
.vpft-dur-opt { flex: 1; cursor: pointer; }
.vpft-dur-opt input { display: none; }
.vpft-dur-card { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px; border-radius: 8px;
    border: 2px solid rgba(255,255,255,.25); font-size: 13.5px; font-weight: 600; color: #fff; transition: .2s; }
.vpft-dur-opt input:checked + .vpft-dur-card { border-color: #8e44ad; background: rgba(142,68,173,.35); }
.vpft-dur-opt.is-locked .vpft-dur-card { opacity: .5; }
.vpft-root .vpft-dur-card svg { width: 13px; height: 13px; }
.vpft-dur-note { display: block; margin-top: 8px; opacity: .55; font-size: 12px; color: #fff; }
.vpft-audio-start-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vpft-root .vpft-audio-start-wrap input[type=number] { width: 60px; padding: 8px; border-radius: 6px; border: none; text-align: center; font-size: 14.5px; background: #fff; color: #17171a; }
.vpft-unit-label { font-size: 13px; opacity: .7; color: #fff; }
.vpft-trim-play { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 12.5px; font-weight: 700; }
.vpft-trim-play:hover { background: rgba(255,255,255,.08); }
.vpft-root .vpft-trim-play svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* ---------- v1.1: features ---------- */
.vpft-kicker { margin: 0 0 8px; color: #c9c4ff; font-weight: 700; font-size: 14px; }
.vpft-root .vpft-section-sub { max-width: 640px; margin: -18px auto 36px; color: var(--vp-ink-2); font-size: 16px; }
.vpft-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: left; }
.vpft-feature { padding: 22px; border-radius: 16px; background: var(--vp-bg-2); border: 1px solid rgba(255,255,255,.07); transition: border-color .15s, transform .15s; }
.vpft-feature:hover { border-color: rgba(139,124,246,.45); transform: translateY(-2px); }
.vpft-feature-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(79,91,255,.25), rgba(139,92,246,.25)); color: #d9d4ff; }
.vpft-root .vpft-feature-ico svg { width: 22px; height: 22px; }
.vpft-root .vpft-feature h3 { margin: 14px 0 6px; font-size: 16.5px; color: #fff; }
.vpft-root .vpft-feature p { margin: 0; color: var(--vp-ink-2); font-size: 14px; }
.vpft-features-cta { margin-top: 32px; color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- v1.1: viewer side ---------- */
.vpft-side-why { border-color: #e1e1e6; box-shadow: none; }
.vpft-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.vpft-side-list li { position: relative; padding-left: 18px; }
.vpft-side-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--vp-accent); }
.vpft-side-card-paid { border-color: #bfe6cf; }

@media (max-width: 1000px) { .vpft-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .vpft-feature-grid { grid-template-columns: 1fr; }
    .vpft-start { margin-left: 0; width: 100%; justify-content: center; }
    .vpft-appbar .vpft-logo .vpft-logo-full, .vpft-nav .vpft-logo .vpft-logo-full { display: none; }
    .vpft-appbar .vpft-logo .vpft-logo-mark, .vpft-nav .vpft-logo .vpft-logo-mark { display: block; }
    .vpft-trim-play { margin-left: 0; }
}

.vpft-go-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.vpft-go-note { font-size: 12.5px; color: var(--vp-ink-3); }
@media (max-width: 700px) {
    .vpft-go-row { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}

/* ---------- v1.2: phones ---------- */
/* iPhone Safari zooms the page when a focused input's text is under 16px. */
.vpft-root .vpft-audio-start-wrap input[type=number], .vpft-root .vpft-input input, .vpft-root .vpft-director textarea, .vpft-root .vpft-share-field input { font-size: 16px; }
.vpft-share-native { margin-top: 14px; }
.vpft-root .vpft-share-native svg { width: 18px; height: 18px; }
.vpft-toast { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
@supports (height: 100svh) {
    .vpft-player { height: min(calc(100svh - 200px), 820px); }
}
@media (max-width: 700px) {
    .vpft-chip { height: 44px; }                       /* comfortable tap targets */
    .vpft-trim-play { height: 44px; }
    @supports (height: 100svh) { .vpft-player { height: min(calc(100svh - 230px), 640px); } }
    .vpft-stage-actions { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@media (max-width: 700px) {
    /* Size the player by the screen width on phones so it never runs off the side. */
    .vpft-root .vpft-player:not(.vpft-player-share) { width: 100%; height: auto; min-height: 0; max-width: 420px; }
    .vpft-root .vpft-player-share { width: 100%; height: auto; max-width: 420px; }
    .vpft-stage { padding: 20px 16px; }
    .vpft-stage-actions { width: 100%; flex-wrap: nowrap; gap: 8px; }
    .vpft-stage-actions .vpft-btn { flex: 1; min-width: 0; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 380px) {
    .vpft-stage-actions .vpft-btn { font-size: 13px; padding: 0 6px; }
}

/* ---------- Tap for sound (iPhones start videos muted) ---------- */
.vpft-sound {
    position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 4;
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
    border: 0; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff;
    font-size: 15px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: vpftPulse 2s ease-in-out infinite;
}
.vpft-root .vpft-sound svg { width: 20px; height: 20px; }
.vpft-sound:hover { background: rgba(0,0,0,.85); }
@keyframes vpftPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,124,246,.55); } 50% { box-shadow: 0 0 0 8px rgba(139,124,246,0); } }
@media (prefers-reduced-motion: reduce) { .vpft-sound { animation: none; } }

/* ---------- Music Snippet hint ---------- */
.vpft-root .vpft-snippet-hint { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--vp-ink-2); }
.vpft-root .vpft-snippet-hint svg { width: 16px; height: 16px; margin-top: 1px; color: #a5b4fc; }
.vpft-root .vpft-snippet-hint a, .vpft-root .vpft-faq a { color: #a5b4fc; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Notice overlay ---------- */
.vpft-notice-card { max-width: 440px; text-align: center; }
.vpft-notice-card .vpft-btn { margin-top: 10px; }
.vpft-notice-secondary { color: var(--vp-dark-ink) !important; border-color: #b9b9c4; }

/* ---------- Video buttons on phones: smaller text so "Save Progress" fits ---------- */
@media (max-width: 700px) {
    .vpft-root .vpft-stage-actions .vpft-btn { font-size: 12.5px; padding: 0 6px; min-height: 42px; letter-spacing: -0.01em; }
    .vpft-root .vpft-stage-actions [data-act="save"] { flex-grow: 1.35; }
}
@media (max-width: 380px) {
    .vpft-root .vpft-stage-actions .vpft-btn { font-size: 11.5px; padding: 0 4px; }
}

/* 1.4.1 checkout popup (above the plans screen) */
.vpft-modal.vpft-modal-top { z-index: 99997; }
.vpft-checkout-card { max-width: 440px; }
.vpft-checkout-card .vpft-modal-sub { margin-bottom: 18px; }
.vpft-co-change { display: block; margin: 12px auto 0; padding: 6px 10px; border: 0; background: transparent; color: var(--vp-dark-ink-2); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.vpft-back { white-space: nowrap; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; }
.vpft-back:hover { background: rgba(255,255,255,.08); }

/* 1.4.2 Go to VidPulsar + Exit, always one line */
.vpft-appbar { flex-wrap: nowrap; }
.vpft-appbar-nav { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; min-width: 0; }
.vpft-appbar .vpft-logo { flex: 0 0 auto; }
.vpft-exit { color: rgba(255,255,255,.85); }
@media (max-width: 380px) {
    .vpft-appbar { gap: 8px; padding: 10px 12px; }
    .vpft-appbar-nav { gap: 6px; }
    .vpft-back { font-size: 13px; padding: 6px 10px; }
}

/* 1.5.0 thank-you plans page (free members) */
.vpft-paywall.vpft-paywall-page { position: relative; inset: auto; z-index: auto; overflow: visible; min-height: 100vh; animation: none; }
.vpft-exit-top { display: inline-flex; align-items: center; padding: 7px 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vpft-exit-top:hover { background: rgba(255,255,255,.1); }
.vpft-thanks-foot { max-width: 560px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid #e1e1e6; text-align: center; color: var(--vp-dark-ink-2); font-size: 15px; }
.vpft-thanks-foot p { margin: 0 0 10px; }
.vpft-thanks-foot a { color: var(--vp-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.vpft-thanks-again { font-weight: 600; color: var(--vp-dark-ink); }

/* ---------- 1.5.4: locked render screen, Share first, download needs a plan ---------- */
html.vpft-scroll-lock, html.vpft-scroll-lock body { overflow: hidden !important; overscroll-behavior: none; }
.vpft-app.is-locked .vpft-render { position: fixed; inset: 0; z-index: 99996; padding: 24px 20px; background: radial-gradient(120% 80% at 50% 30%, #1d1638 0%, #0b0b10 70%); touch-action: none; }
.vpft-app.is-locked .vpft-render-sub { max-width: 340px; font-size: 14px; }
.vpft-app.is-locked .vpft-appbar, .vpft-app.is-locked .vpft-stage-actions, .vpft-app.is-locked .vpft-side { pointer-events: none; user-select: none; }

.vpft-root .vpft-btn-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #7c4dff 0%, #4f5bff 55%, #19c3ff 100%); color: #fff !important; border: 0; font-weight: 800; box-shadow: 0 10px 26px rgba(79,91,255,.38); }
.vpft-root .vpft-btn-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vpft-root .vpft-btn-share:hover { filter: brightness(1.07); }
.vpft-root .vpft-btn-share.is-ready { animation: vpftSharePulse 1.8s ease-out 3; }
@keyframes vpftSharePulse { 0% { box-shadow: 0 0 0 0 rgba(124,77,255,.6), 0 10px 26px rgba(79,91,255,.38); } 70% { box-shadow: 0 0 0 16px rgba(124,77,255,0), 0 10px 26px rgba(79,91,255,.38); } 100% { box-shadow: 0 0 0 0 rgba(124,77,255,0), 0 10px 26px rgba(79,91,255,.38); } }
@media (prefers-reduced-motion: reduce) { .vpft-root .vpft-btn-share.is-ready { animation: none; } }
.vpft-root .vpft-stage-actions [data-act="share"] { flex: 1.6 1 0; min-height: 56px; font-size: 18px; }
.vpft-root .vpft-stage-actions [data-act="download"] { flex: 1 1 0; }
.vpft-share-callout { margin: 0; text-align: center; font-size: 16px; font-weight: 800; color: var(--vp-dark-ink); }
.vpft-root .vpft-sound { white-space: nowrap; }
@media (max-width: 700px) {
    .vpft-root .vpft-stage-actions [data-act="share"] { font-size: 16px; min-height: 52px; }
    .vpft-root .vpft-stage-actions [data-act="download"] { font-size: 14px; }
    .vpft-root .vpft-app .vpft-player:not(.vpft-player-share) { width: min(100%, 420px, calc((100vh - 270px) * 0.6667)); }
    @supports (height: 100svh) { .vpft-root .vpft-app .vpft-player:not(.vpft-player-share) { width: min(100%, 420px, calc((100svh - 270px) * 0.6667)); } }
    .vpft-root .vpft-app .vpft-stage { gap: 14px; }
    .vpft-share-callout { font-size: 15px; }
}
@media (min-width: 701px) {
    .vpft-root .vpft-app .vpft-player { height: min(calc(100vh - 250px), 820px); }
    @supports (height: 100svh) { .vpft-root .vpft-app .vpft-player { height: min(calc(100svh - 250px), 820px); } }
}
#vpft-dl-modal .vpft-btn { margin-top: 10px; }
#vpft-dl-modal .vpft-btn-share { min-height: 52px; font-size: 17px; }

/* Check-your-inbox step: sharing first, plans second */
.vpft-check-share { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 14px; border-radius: 12px; text-align: left;
    background: linear-gradient(135deg, rgba(124,77,255,.10), rgba(25,195,255,.10)); border: 1px solid rgba(79,91,255,.30); color: var(--vp-dark-ink); }
.vpft-check-share svg { flex: none; width: 26px; height: 26px; margin-top: 2px; fill: none; stroke: #4f5bff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vpft-check-share p { margin: 0; font-size: 15px; line-height: 1.45; }
.vpft-root .vpft-check-plans-link { display: block; text-align: center; font-size: 13.5px; color: var(--vp-dark-ink-2); text-decoration: underline; text-underline-offset: 2px; }
#vpft-dl-modal h2 { font-size: 24px; padding: 0 30px; }
