/* ═══════════════════════════════════════════
   /try page styles
   ═══════════════════════════════════════════ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --orange: #ea580c;
    --orange-dark: #c2410c;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #e2e8f0;
    --bg-alt: #f8fafc;
    --success: #22c55e;
    --danger: #ef4444;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Layout ── */
.try-wrap { max-width: 600px; margin: 0 auto; padding: 40px 20px 60px; min-height: 100vh; }
.try-step { display: none; animation: fadeUp 0.4s ease; }
.try-step.active { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Progress ── */
.try-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 32px; transition: opacity 0.3s; }
.try-progress-hidden { opacity: 0; height: 0; margin-bottom: 0; overflow: hidden; }
.try-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.3s ease; flex-shrink: 0; }
.try-progress-dot.done { background: var(--success); }
.try-progress-dot.current { background: var(--primary); width: 12px; height: 12px; }
.try-progress-line { flex: 1; height: 2px; background: var(--border); transition: background 0.3s; }
.try-progress-line.done { background: var(--success); }

/* ── Typography ── */
.try-badge { display: inline-block; background: var(--primary-bg); color: var(--primary); font-size: 13px; font-weight: 600; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; }
.try-h1 { font-size: 32px; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.try-h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.try-h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.try-qualifier { font-size: 15px; color: var(--orange); font-weight: 600; margin-bottom: 16px; }
.try-sub { font-size: 16px; color: var(--text-2); margin-bottom: 24px; }
.try-note { font-size: 13px; color: var(--text-3); margin-top: 8px; }

/* ── Buttons ── */
.try-btn {
    display: block; width: 100%; padding: 16px 24px; font-size: 17px; font-weight: 700;
    border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s;
    text-align: center; text-decoration: none;
}
.try-btn-primary { background: var(--primary); color: #fff; }
.try-btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.3); }
.try-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.try-btn-secondary { background: #fff; color: var(--text); border: 2px solid var(--border); }
.try-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.try-btn-ghost { background: none; color: var(--text-3); border: none; font-size: 14px; padding: 8px; cursor: pointer; }
.try-btn-ghost:hover { color: var(--text-2); }

/* ── Choice Cards ── */
.try-choices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.try-choice {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border: 2px solid var(--border); border-radius: 12px; cursor: pointer;
    transition: all 0.15s; background: #fff;
}
.try-choice:hover { border-color: var(--primary); background: var(--primary-bg); }
.try-choice.selected { border-color: var(--primary); background: var(--primary-bg); }
.try-choice-icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 20px;
}
.try-choice.selected .try-choice-icon { background: var(--primary); color: #fff; }
.try-choice-label { font-weight: 600; font-size: 15px; }
.try-choice-desc { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ── Form Elements ── */
.try-textarea {
    width: 100%; min-height: 180px; padding: 14px 16px; border: 2px solid var(--border);
    border-radius: 10px; font-family: var(--font); font-size: 15px; line-height: 1.6;
    resize: vertical; outline: none; transition: border-color 0.2s;
}
.try-textarea:focus { border-color: var(--primary); }
.try-textarea::placeholder { color: var(--text-3); }
.try-input {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border); border-radius: 10px;
    font-family: var(--font); font-size: 15px; outline: none; transition: border-color 0.2s;
}
.try-input:focus { border-color: var(--primary); }
.try-input::placeholder { color: var(--text-3); }
.try-char-count { font-size: 12px; color: var(--text-3); text-align: right; margin-top: 6px; }
.try-error { color: var(--danger); font-size: 13px; margin-top: 6px; display: none; }
.try-error.visible { display: block; }

/* ── File Drop ── */
.try-dropzone {
    border: 2px dashed var(--border); border-radius: 12px; padding: 40px 20px;
    text-align: center; cursor: pointer; transition: all 0.2s; background: var(--bg-alt);
}
.try-dropzone:hover, .try-dropzone.dragover { border-color: var(--primary); background: var(--primary-bg); }
.try-dropzone-label { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.try-dropzone-hint { font-size: 13px; color: var(--text-3); }
.try-file-info { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-alt); border-radius: 8px; margin-top: 12px; }
.try-file-name { font-weight: 600; font-size: 14px; flex: 1; }
.try-file-remove { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 18px; }

/* ── URL Input ── */
.try-url-row { display: flex; gap: 8px; margin-bottom: 8px; }
.try-url-row input { flex: 1; }

/* ── Loading / Analyzing ── */
.try-loader { text-align: center; padding: 40px 0; }
.try-spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.try-load-steps { text-align: left; max-width: 360px; margin: 0 auto; }
.try-load-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-3); transition: all 0.4s ease; max-height: 0; overflow: hidden; opacity: 0; }
.try-load-step.visible { max-height: 50px; opacity: 1; }
.try-load-step.active { color: var(--text); font-weight: 500; }
.try-load-step.done { color: var(--success); }
/* Progress bar under each step */
.try-load-step-progress { height: 2px; background: var(--border); border-radius: 1px; flex: 1; overflow: hidden; margin-left: 4px; }
.try-load-step-fill { height: 100%; background: var(--primary); border-radius: 1px; width: 0%; transition: width linear; }
.try-load-step.done .try-load-step-fill { background: var(--success); width: 100% !important; }
.try-load-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: background 0.3s; }
.try-load-step.active .try-load-step-dot { background: var(--primary); animation: pulse-dot 1s ease infinite; }
.try-load-step.done .try-load-step-dot { background: var(--success); animation: none; }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.4); } }
/* Coaching words — bounce word by word */
.try-coaching { font-size: 15px; color: var(--text-2); text-align: center; margin-top: 28px; min-height: 40px; line-height: 1.6; }
.try-coach-word { display: inline-block; opacity: 0.4; transition: all 0.25s ease; }
.try-coach-word.lit { opacity: 1; color: var(--primary); font-weight: 600; transform: translateY(-1px); }

/* ── Script Cards ── */
.try-plan-flow { display: flex; align-items: center; gap: 4px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.try-plan-chip {
    padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    white-space: nowrap; background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border);
}
.try-plan-chip.story { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.try-plan-chip.cta { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.try-plan-chip.hook { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }
.try-plan-arrow { color: var(--text-3); font-size: 14px; flex-shrink: 0; }
.try-script-card {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; margin-bottom: 16px;
}
.try-script-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.try-script-label.story { color: #1d4ed8; }
.try-script-label.cta { color: #92400e; }
.try-script-label.hook { color: #6d28d9; }
.try-script-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; margin-left: 8px; }
.try-script-badge.first { background: #dbeafe; color: #1d4ed8; }
.try-script-text { font-size: 15px; line-height: 1.7; color: var(--text); }
.try-script-meta { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.try-hooks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 480px) { .try-hooks-grid { grid-template-columns: 1fr; } }
.try-hook-card {
    padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
    background: #faf5ff;
}
.try-hook-num { font-size: 11px; font-weight: 700; color: #6d28d9; margin-bottom: 8px; }
.try-hook-text { font-size: 14px; font-weight: 500; line-height: 1.4; }
.try-hook-dur { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.try-field-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--text-3); margin-bottom: 4px;
}
.try-field-overlay {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text);
    background: rgba(99, 102, 241, 0.06); border: 1px solid transparent; border-radius: 6px;
    padding: 6px 8px; cursor: text; outline: none; transition: border-color 0.2s;
}
.try-field-overlay:focus { border-color: var(--primary); }
.try-hook-spoken {
    font-size: 14px; line-height: 1.6; color: var(--text);
    border: 1px solid transparent; border-radius: 6px; padding: 6px 8px;
    cursor: text; outline: none; transition: border-color 0.2s;
}
.try-hook-spoken:focus { border-color: var(--primary); }

/* ── Recording Phase ── */
.try-rec-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.try-rec-seg {
    padding: 5px 10px; border-radius: 16px; font-size: 12px; font-weight: 600;
    background: var(--bg-alt); color: var(--text-3); border: 1px solid var(--border); transition: all 0.2s; cursor: pointer;
}
.try-rec-seg.done { background: #dcfce7; color: #166534; border-color: #86efac; cursor: pointer; }
.try-rec-seg.done:hover { background: #bbf7d0; border-color: #4ade80; }
.try-rec-seg.active { background: var(--primary); color: #fff; border-color: var(--primary); cursor: default; }
/* Future segments are clickable too (to skip ahead) */
.try-rec-seg:not(.active):not(.done):hover { border-color: var(--text-3); color: var(--text-2); }
.try-rec-viewport {
    position: relative; width: 100%; max-width: 340px; margin: 0 auto 12px;
    aspect-ratio: 9/16; background: #000; border-radius: 16px; overflow: hidden;
}
.try-rec-viewport.is-recording { box-shadow: 0 0 0 3px var(--danger); animation: rec-pulse 1.5s ease-in-out infinite; }
@keyframes rec-pulse { 0%,100% { box-shadow: 0 0 0 3px var(--danger); } 50% { box-shadow: 0 0 0 3px rgba(239,68,68,0.4); } }
.try-rec-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
/* Teleprompter: top-aligned for hooks/CTA, full-cover for story */
.try-rec-teleprompter {
    position: absolute; top: 0; left: 0; right: 0; padding: 14px 12px 50px;
    background: linear-gradient(rgba(0,0,0,0.75) 50%, transparent);
    color: #fff; font-size: 20px; line-height: 1.45; font-weight: 600;
    z-index: 2; pointer-events: none;
}
.try-rec-teleprompter.story-mode {
    bottom: 0; padding: 14px 12px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
    font-size: 16px; line-height: 1.55; font-weight: 600; overflow-y: auto; pointer-events: auto;
    display: flex; align-items: flex-start;
}
.try-rec-teleprompter.story-mode .try-tp-text { max-height: 100%; }
/* Recording timer — overlay top-right of viewport */
.try-rec-timer {
    position: absolute; top: 8px; right: 10px; z-index: 5;
    font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
    color: #fff; background: rgba(239,68,68,0.85); padding: 3px 10px; border-radius: 20px;
    display: none;
}
.try-rec-timer.active { display: block; }
/* Audio level bars — shows during recording next to timer */
.try-rec-levels {
    position: absolute; top: 10px; left: 10px; z-index: 5;
    display: none; align-items: flex-end; gap: 2px; height: 20px;
}
.try-rec-levels.active { display: flex; }
.try-rec-bar {
    width: 4px; border-radius: 2px; background: #22c55e;
    transition: height 0.08s ease;
    min-height: 3px;
}
/* Action area below viewport */
.try-rec-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.try-rec-action-row { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 340px; }
.try-rec-action-row.review { gap: 10px; }
/* Record button — pulses to draw attention */
.try-rec-record-btn {
    display: flex; align-items: center; gap: 10px; padding: 14px 32px; font-size: 16px; font-weight: 700;
    background: var(--danger); color: #fff; border: none; border-radius: 40px; cursor: pointer;
    transition: all 0.15s; font-family: var(--font);
    animation: btn-pulse 2s ease-in-out infinite;
}
.try-rec-record-btn:hover { background: #dc2626; transform: scale(1.03); animation: none; }
@keyframes btn-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); } 50% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } }
.try-rec-record-dot { width: 14px; height: 14px; background: #fff; border-radius: 50%; flex-shrink: 0; }
/* Stop button */
.try-rec-stop-btn {
    display: flex; align-items: center; gap: 10px; padding: 14px 32px; font-size: 16px; font-weight: 700;
    background: var(--danger); color: #fff; border: none; border-radius: 40px; cursor: pointer;
    transition: all 0.15s; font-family: var(--font); animation: stop-breathe 1.5s ease-in-out infinite;
}
@keyframes stop-breathe { 0%,100% { opacity: 1; } 50% { opacity: 0.8; } }
.try-rec-stop-btn:hover { background: #dc2626; }
.try-rec-stop-square { width: 14px; height: 14px; background: #fff; border-radius: 2px; flex-shrink: 0; }
/* Redo button (subtle) */
.try-rec-redo-btn {
    padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-2);
    background: none; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer;
    transition: all 0.15s; font-family: var(--font); flex-shrink: 0;
}
.try-rec-redo-btn:hover { border-color: var(--text-3); color: var(--text); }
/* Next button (primary action — big and green, pulses to guide) */
.try-rec-next-btn {
    flex: 1; padding: 14px 24px; font-size: 16px; font-weight: 700; color: #fff;
    background: var(--success); border: none; border-radius: 10px; cursor: pointer;
    transition: all 0.15s; font-family: var(--font);
    animation: btn-pulse-green 2s ease-in-out infinite;
}
.try-rec-next-btn:hover { background: #16a34a; transform: translateY(-1px); animation: none; }
@keyframes btn-pulse-green { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); } 50% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
/* Device selectors */
.try-device-row {
    display: flex; gap: 10px; max-width: 340px; margin: 0 auto 10px;
}
.try-device-group { flex: 1; }
.try-device-group label { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); margin-bottom: 3px; }
.try-device-group select {
    width: 100%; padding: 6px 8px; font-size: 12px; font-family: var(--font);
    border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text);
    outline: none; cursor: pointer;
}
.try-device-group select:focus { border-color: var(--primary); }
/* Coaching tip */
.try-rec-coaching {
    text-align: center; font-size: 13px; color: var(--text-2); font-style: italic;
    max-width: 340px; margin: 6px auto 8px; line-height: 1.4;
}
/* Countdown overlay */
.try-rec-countdown {
    position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.55); border-radius: 16px;
}
.try-rec-countdown-num {
    font-size: 96px; font-weight: 800; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: countdown-pop 0.8s ease;
}
@keyframes countdown-pop { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0.3; } }

/* ── Reel Showcase ── */
.try-reels-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.try-reel-card {
    border-radius: 12px; overflow: hidden;
    border: 2px solid var(--border); background: #000; cursor: pointer; transition: all 0.2s;
}
@media (max-width: 480px) { .try-reels-grid { grid-template-columns: repeat(5, 1fr); gap: 5px; } }
.try-reel-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.try-reel-card.playing { border-color: var(--primary); box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
.try-reel-thumb { width: 100%; aspect-ratio: 9/16; background: #0f172a; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.try-reel-play-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; position: absolute; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.try-reel-play-icon::after { content: ''; width: 0; height: 0; border-left: 12px solid var(--primary); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.try-reel-card.ready .try-reel-play-icon { opacity: 1; }
/* Rendering spinner on card */
.try-reel-spinner { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,0.2); border-top-color: #fff; border-radius: 50%; animation: try-spin 0.8s linear infinite; position: absolute; z-index: 6; }
@keyframes try-spin { to { transform: rotate(360deg); } }
.try-reel-card.ready .try-reel-spinner { display: none; }
/* Video in card */
.try-reel-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0; transition: opacity 0.4s; }
.try-reel-card.ready .try-reel-thumb video { opacity: 1; }
.try-reel-card.active { border-color: var(--primary); box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
/* Overlay text on reel cards (matches app DEFAULT_OVERLAY_CONFIG values) */
.try-reel-overlay { position: absolute; left: 0; right: 0; z-index: 4; pointer-events: none; padding: 0 6px; opacity: 0; transition: opacity 0.4s; }
.try-reel-card.ready .try-reel-overlay { opacity: 1; }
/* Card overlays — scaled from 1080px canvas to ~160px card (0.148 ratio) */
/* Hook: 56px * 0.148 = 8px, max 2 lines, 82% width */
.try-reel-overlay-hook { top: 5%; left: 50%; transform: translateX(-50%); position: absolute; text-align: center; font-size: 8px; font-weight: 700; font-family: 'Georgia', serif; color: #000; background: rgba(255,255,255,0.85); padding: 2px 4px; border-radius: 2px; line-height: 1.25; max-width: 82%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
/* CTA: 40px * 0.148 = 6px, max 1 line, below hook */
.try-reel-overlay-cta { top: calc(5% + 30px); left: 50%; transform: translateX(-50%); position: absolute; text-align: center; font-size: 6px; font-weight: 700; color: #fff; background: rgba(239,68,68,0.9); padding: 2px 5px; border-radius: 2px; line-height: 1.2; max-width: 82%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 2px rgba(0,0,0,0.15); }
/* Caption: scaled, bottom */
.try-reel-overlay-caption { bottom: 6%; text-align: center; font-size: 7px; font-weight: 700; color: #fff; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; padding: 1px 4px; margin: 0 4px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-reel-info { padding: 6px 8px; background: #fff; }
.try-reel-label { font-size: 10px; font-weight: 700; color: #6d28d9; }
.try-reel-dur { font-size: 10px; color: var(--text-3); }
.try-reel-hook { font-size: 11px; font-weight: 500; color: var(--text); margin-top: 2px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Expanded Reel Preview ── */
.try-preview { margin-bottom: 24px; animation: fadeUp 0.3s ease; }
.try-preview-header {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 320px; margin: 0 auto 8px; padding: 0 4px;
}
@media (min-width: 481px) { .try-preview-header { max-width: 360px; } }
.try-preview-reel-name { font-size: 15px; font-weight: 700; color: var(--text); }
.try-preview-close {
    background: none; border: none; font-size: 22px; color: var(--text-3); cursor: pointer;
    padding: 2px 8px; line-height: 1; border-radius: 6px; transition: all 0.15s;
}
.try-preview-close:hover { color: var(--text); background: var(--bg-alt); }
.try-preview-viewport {
    position: relative; width: 280px; max-width: 100%; aspect-ratio: 9/16;
    margin: 0 auto; background: #000; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2); cursor: pointer;
}
@media (min-width: 481px) { .try-preview-viewport { width: 340px; } }
.try-preview-viewport video { width: 100%; height: 100%; object-fit: cover; }
/* Preview overlay stack — matches app DEFAULT_OVERLAY_CONFIG */
.try-preview-overlay-stack {
    position: absolute; top: 6%; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90%;
}
/* Hook: wide box, Merriweather, matches app render */
.try-preview-overlay-hook {
    font-size: 18px; font-weight: 700; font-family: 'Georgia', 'Merriweather', serif;
    color: #000; background: rgba(255,255,255,0.85);
    padding: 6px 12px; border-radius: 4px; line-height: 1.25; text-align: center;
    width: 100%;
}
/* CTA: wide red bar */
.try-preview-overlay-cta {
    font-size: 13px; font-weight: 700; color: #fff; background: rgba(239,68,68,0.9);
    padding: 5px 12px; border-radius: 4px; line-height: 1.2; text-align: center;
    width: 85%;
}
/* Overlay: Caption — Poppins bold, #FFF with black stroke, yellow highlight #FFFF00 (matches app) */
.try-preview-overlay-caption {
    position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); z-index: 2; pointer-events: none;
    font-size: 18px; font-weight: 700; color: #fff;
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
    max-width: 88%; text-align: center; line-height: 1.4; min-height: 30px;
}
/* Caption word highlighting: white default, yellow (#FFFF00) on active word */
.try-cap-w { color: #fff; transition: color 0.15s ease; }
.try-cap-w.try-cap-active { color: #FFFF00; }
.try-cap-w.try-cap-static { color: rgba(255,255,255,0.7); font-size: 16px; }
.try-preview-seg-label {
    position: absolute; top: 10px; left: 12px; z-index: 3;
    font-size: 11px; font-weight: 700; color: #fff; background: rgba(99,102,241,0.85);
    padding: 3px 10px; border-radius: 12px; pointer-events: none;
}
/* Done state — replay indicator */
.try-preview.done .try-preview-seg-label { background: rgba(34,197,94,0.85); }
/* Mute button */
.try-preview-mute { background: none; border: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.2s; flex-shrink: 0; }
.try-preview-mute:hover { color: var(--text); }
/* (Old watermark replaced by .try-watermark diagonal overlay) */
/* Controls bar */
.try-preview-bar {
    display: flex; align-items: center; gap: 10px;
    max-width: 320px; margin: 10px auto 0; padding: 0 4px;
}
@media (min-width: 481px) { .try-preview-bar { max-width: 360px; } }
.try-preview-playpause {
    background: none; border: none; color: var(--text); cursor: pointer;
    padding: 4px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; transition: background 0.15s; flex-shrink: 0;
}
.try-preview-playpause:hover { background: var(--bg-alt); }
.try-preview-progress {
    flex: 1; height: 5px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.try-preview-progress-bar {
    height: 100%; background: var(--primary); border-radius: 3px;
    width: 0%; transition: width 0.15s linear;
}
.try-preview.done .try-preview-progress-bar { background: var(--success); }
.try-preview-time {
    font-size: 12px; font-weight: 600; color: var(--text-3);
    font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0;
}

/* ── Build Progress ── */
.try-build-list { max-width: 400px; margin: 0 auto 24px; }
.try-build-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; }
.try-build-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.try-build-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.3s; }
.try-build-row.done .try-build-fill { background: var(--success); }
.try-build-label { width: 180px; flex-shrink: 0; }
.try-build-status { width: 50px; text-align: right; font-size: 12px; color: var(--text-3); flex-shrink: 0; }
.try-build-row.done .try-build-status { color: var(--success); }

/* ── Watermark Overlay — above captions, horizontal ── */
.try-watermark {
    position: absolute; left: 0; right: 0; bottom: 28%;
    z-index: 7; pointer-events: none; text-align: center;
    font-size: 20px; font-weight: 800; letter-spacing: 3px;
    color: rgba(255,255,255,0.5);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.4), -1px -1px 0 rgba(0,0,0,0.4), 1px -1px 0 rgba(0,0,0,0.4), -1px 1px 0 rgba(0,0,0,0.4);
    user-select: none; white-space: nowrap;
}
.try-watermark::before { content: '1MinuteReel.com'; }
/* Smaller watermark for card thumbnails */
.try-reel-thumb .try-watermark { font-size: 6px; letter-spacing: 0.5px; bottom: 22%; }

/* ── Feature List ── */
.try-features { text-align: left; max-width: 420px; margin: 12px auto 24px; display: flex; flex-direction: column; gap: 6px; }
.try-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.try-feat-icon { color: var(--primary); font-size: 14px; flex-shrink: 0; width: 18px; text-align: center; }

/* ── Conversion Gate ── */
.try-gate { text-align: center; padding: 32px 24px; background: var(--bg-alt); border-radius: 16px; border: 2px solid var(--border); }

/* ── Pricing Grid (3 tiers) ── */
.try-pricing-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; max-width: none; margin: 0 auto; align-items: start; }
@media (min-width: 768px) {
    .try-gate { margin-left: -90px; margin-right: -90px; padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 767px) { .try-pricing-grid { grid-template-columns: 1fr; max-width: 400px; } }
.try-pricing-card { padding: 20px 18px; border-radius: 12px; background: #fff; border: 1.5px solid var(--border); transition: border-color 0.2s; text-align: center; position: relative; }
.try-pricing-card:hover { border-color: var(--text-3); }
.try-pricing-hero { border-color: var(--orange); border-width: 2px; background: rgba(234,88,12,0.03); padding-top: 32px; box-shadow: 0 4px 20px rgba(234,88,12,0.12); }
.try-pricing-hero:hover { border-color: var(--orange); }
.try-pricing-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 16px; border-radius: 10px; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.try-btn-orange { display: block; width: 100%; padding: 14px 24px; font-size: 16px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: center; background: var(--orange); color: #fff; font-family: var(--font); }
.try-btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(234,88,12,0.3); }
.try-pricing-name { font-size: 14px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.try-pricing-price { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1.1; }
.try-pricing-per { font-size: 14px; font-weight: 500; color: var(--text-3); }
.try-pricing-math { font-size: 13px; color: var(--text-3); margin: 4px 0 12px; }
.try-pricing-math s { color: var(--danger); }
.try-pricing-list { list-style: none; text-align: left; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--text-2); }
.try-pricing-list li { padding: 3px 0; padding-left: 20px; position: relative; }
.try-pricing-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.try-btn-tier { padding: 10px 16px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; color: var(--text); font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.try-btn-tier:hover { border-color: var(--text-3); }
.try-btn-tier-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.try-btn-tier-outline:hover { background: rgba(99,102,241,0.08); }

/* ── Saved Notice ── */
.try-saved-notice { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 8px; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.try-saved-notice svg { color: var(--success); }

/* ── Fork Grid (self-qualifying gate) ── */
.try-fork-grid { display: flex; flex-direction: column; gap: 12px; max-width: 500px; margin: 0 auto; }
.try-fork-tier { padding: 20px; border-radius: 12px; background: var(--bg); border: 1.5px solid var(--border); transition: border-color 0.2s; text-align: left; }
.try-fork-tier:hover { border-color: var(--text-3); }
.try-fork-highlight { border-color: var(--primary); background: rgba(99,102,241,0.04); padding-top: 28px; position: relative; }
.try-fork-highlight:hover { border-color: var(--primary); }
.try-fork-title { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.try-fork-sub { font-size: 13px; color: var(--text-3); line-height: 1.5; margin-bottom: 8px; }
.try-share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.try-share-btn { padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); font-size: 12px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.try-share-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── More Angles ── */
.try-more-angles { margin-top: 32px; padding: 24px; background: var(--bg-alt); border-radius: 16px; border: 1.5px solid var(--border); text-align: center; }
.try-angle-card { padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); margin-bottom: 8px; text-align: left; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.try-angle-card:hover { border-color: var(--primary); background: rgba(99,102,241,0.04); }
.try-angle-card-info { flex: 1; }
.try-angle-card-label { font-weight: 600; font-size: 14px; color: var(--text); }
.try-angle-card-desc { font-size: 13px; color: var(--text-3); line-height: 1.4; margin-top: 2px; }
.try-angle-card-btn { padding: 6px 14px; border-radius: 6px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.try-angle-card-btn:hover { background: #4f46e5; }
.try-angle-card-btn:disabled { opacity: 0.5; cursor: default; }
.try-angle-done { color: var(--success); font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }

/* ── Stats Line ── */
.try-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.try-stat { text-align: center; }
.try-stat-num { font-size: 28px; font-weight: 800; color: var(--primary); line-height: 1; }
.try-stat-label { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ── Footer ── */
.try-footer { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.try-footer a { color: var(--text-3); text-decoration: none; }
.try-footer a:hover { color: var(--text-2); }

/* ── OTO Modal ── */
.oto-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99999;background:rgba(0,0,0,0.6);display:flex;align-items:center;justify-content:center;padding:16px}
.oto-modal{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,0.3);position:relative}
.oto-modal-header{background:#6366f1;color:#fff;text-align:center;padding:20px 24px 16px;border-radius:16px 16px 0 0}
.oto-modal-header h3{font-size:1.125rem;font-weight:700;margin-bottom:4px}
.oto-modal-header p{font-size:0.8125rem;opacity:0.85}
.oto-modal-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:24px;line-height:1;cursor:pointer;color:rgba(255,255,255,0.7);padding:4px 8px}
.oto-modal-close:hover{color:#fff}
.oto-modal-body{padding:24px}
.oto-modal .form-field{margin-bottom:14px}
.oto-modal .form-field label{display:block;font-size:0.8125rem;font-weight:600;margin-bottom:4px;color:#0f172a}
.oto-modal .form-field input,.oto-modal .form-field select{width:100%;padding:10px 14px;font-size:0.9375rem;font-family:inherit;border:1px solid #e2e8f0;border-radius:8px;outline:none;background:#fff}
.oto-modal .form-field input:focus,.oto-modal .form-field select:focus{border-color:#6366f1;box-shadow:0 0 0 3px rgba(99,102,241,0.1)}
.oto-modal-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.oto-modal-submit{width:100%;padding:14px 24px;background:#6366f1;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;font-family:inherit;cursor:pointer;margin-top:8px;transition:all .15s}
.oto-modal-submit:hover{background:#4f46e5;transform:translateY(-1px);box-shadow:0 4px 12px rgba(99,102,241,0.3)}
.oto-modal-submit:disabled{opacity:.6;cursor:default;transform:none;box-shadow:none}
.oto-modal-step{display:none}
.oto-modal-step.active{display:block}
.oto-payment-note{text-align:center;font-size:0.75rem;color:#64748b;margin-top:12px}
@media(max-width:480px){.oto-modal-grid{grid-template-columns:1fr}.oto-modal{max-width:100%;margin:0 8px}}

/* ── Responsive ── */
@media (max-width: 480px) {
    .try-h1 { font-size: 26px; }
    .try-h2 { font-size: 20px; }
    .try-wrap { padding: 24px 16px 60px; }
    .try-rec-viewport { max-width: 280px; }
}
