/* ============================================================
   Apresentação Interativa da Íris — Máquina de Leads
   Hospedada em apresentacao.maquinadeleads.online (Hostinger)
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #08080f;
    --frame: #0f0f15;
    --panel: #0c0c10;
    --card: #141421;
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.06);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --indigo: #6366f1;
    --violet: #8b5cf6;
    --green: #10b981;
    --lime: #39ff14;
    --danger: #f87171;
    --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
    --grad-accent: linear-gradient(135deg, #10b981, #059669);
    --radius: 16px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.12), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.08), transparent 50%);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Fundo decorativo animado (sem blur — otimizado) */
.orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
    animation: orbFloat 14s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; top: -160px; right: -120px; }
.orb-2 { width: 460px; height: 460px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%); animation-delay: 4s; }
.orb-3 { width: 300px; height: 300px; top: 45%; left: 12%; background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%); animation-delay: 8s; }
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -24px) scale(1.06); }
}

.frame {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1380px;
    height: min(90vh, 820px);
    background: var(--frame);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 84px;
    border-bottom: 1px solid var(--line);
}
.header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 30px 22px;
    background: var(--panel);
}
.header .kicker { display: block; color: #818cf8; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.header h1 { font-family: 'Outfit', sans-serif; font-size: 22px; line-height: 1.15; color: #fff; }
.header .progress-label { color: var(--muted); font-size: 11px; text-align: right; white-space: nowrap; }
.header .progress-label strong { color: #fff; font-family: 'Outfit', sans-serif; font-size: 16px; }
.header .bar { position: absolute; left: 30px; right: 30px; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 0; }
.header .bar .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--indigo), var(--violet), var(--green)); border-radius: 0; transition: width 0.4s var(--ease); }

/* ---------- Estágios ---------- */
.stage { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; }
.stage-view { position: absolute; inset: 0; display: none; }
.stage-view.active { display: flex; }
.stage-view.in { animation: stageIn 0.5s var(--ease); }
.stage-view.out { animation: stageOut 0.4s var(--ease); }
@keyframes stageIn { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: scale(1); } }
@keyframes stageOut { from { opacity: 1; } to { opacity: 0; } }

/* ============ COVER ============ */
.cover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.16), transparent 45%),
        var(--frame);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
}
.cover-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px clamp(34px, 5vw, 72px);
    overflow: hidden;
}
.cover-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}
.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin-bottom: 22px;
    padding: 6px 14px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(99, 102, 241, 0.1);
    color: #c7d2fe;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.cover-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
}
.cover-hero h1 .hl {
    color: var(--green);
    -webkit-text-fill-color: var(--green);
}
.cover-hero p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
    max-width: 560px;
    position: relative;
}
.cover-stats {
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
    position: relative;
}
.cover-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 13px 16px;
    min-width: 118px;
}
.cover-stat strong { display: block; font-family: 'Outfit', sans-serif; font-size: 22px; color: #fff; }
.cover-stat strong em { font-style: normal; }
.cover-stat:nth-child(1) strong { color: #a7f3d0; }
.cover-stat:nth-child(2) strong { color: #a5b4fc; }
.cover-stat:nth-child(3) strong { color: #fcd34d; }
.cover-stat span { color: var(--muted); font-size: 11.5px; line-height: 1.4; display: block; margin-top: 2px; }

/* Painel da Íris (capa) */
.iris-cover-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 40px clamp(24px, 3vw, 44px);
    background: radial-gradient(circle at 50% 15%, #171725, #08080d 75%);
    border-left: 1px solid var(--line);
}
.iris-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}
.iris-card-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 2px solid rgba(129, 140, 248, 0.7);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.08);
    margin-bottom: 14px;
}
.bubble {
    position: relative;
    padding: 13px 15px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
    color: #e0e7ff;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 10px;
}
.bubble::before {
    content: "";
    position: absolute;
    left: -5px; bottom: 10px;
    width: 8px; height: 8px;
    background: #171725;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(45deg);
}
.bubble b { color: #fff; }
.bubble .name-glow { color: #a7f3d0; }

/* Input de nome */
.name-form {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.name-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border-radius: 11px;
    background: #0d0d15;
    border: 1px solid var(--line);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.name-form input:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18); }
.name-form button {
    flex: 0 0 auto;
    padding: 13px 20px;
    border: none;
    border-radius: 11px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
    transition: transform 0.2s;
}
.name-form button:hover { transform: translateY(-2px); }
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 2px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: #a5b4fc; animation: typingBounce 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ============ SLIDES ============ */
.slides {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    background: var(--panel);
}
.slides.active { display: flex; }
.slides-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 30px;
    border-bottom: 1px solid var(--line);
}
.slides-head .count { color: var(--muted); font-size: 12px; letter-spacing: 0.5px; }
.slides-head .count b { color: #fff; font-family: 'Outfit', sans-serif; }
.slide-viewport { flex: 1 1 auto; min-height: 0; position: relative; overflow: hidden; }
.slide {
    position: absolute;
    inset: 0;
    display: none;
    grid-template-columns: 2fr 3fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
    align-items: safe center;
    padding: clamp(24px, 4vw, 56px);
    overflow-y: auto;
    background:
        radial-gradient(circle at 88% 12%, rgba(99, 102, 241, 0.14), transparent 46%),
        radial-gradient(circle at 10% 88%, rgba(139, 92, 246, 0.1), transparent 42%),
        radial-gradient(circle at 50% 110%, rgba(16, 185, 129, 0.06), transparent 55%),
        var(--panel);
}
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 82%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 82%);
    pointer-events: none;
}
.slide-details, .slide-visual { position: relative; }

/* Transições variadas (estilo PowerPoint) */
.slide.active { display: grid; animation: transIn 0.55s var(--ease); }
.slide.exit-left { display: grid; animation: transOut 0.4s var(--ease); }
@keyframes transIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes transOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-34px); } }

.slide[data-trans="fade"].active { animation: fadeInT 0.5s ease; }
.slide[data-trans="fade"].exit-left { animation: fadeOutT 0.35s ease; }
@keyframes fadeInT { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOutT { from { opacity: 1; } to { opacity: 0; } }

.slide[data-trans="zoom"].active { animation: zoomIn 0.55s var(--ease); }
.slide[data-trans="zoom"].exit-left { animation: zoomOut 0.4s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }
@keyframes zoomOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }

.slide[data-trans="rise"].active { animation: riseIn 0.5s var(--ease); }
.slide[data-trans="rise"].exit-left { animation: riseOut 0.4s var(--ease); }
@keyframes riseIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
@keyframes riseOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-30px); } }

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.slide h2 { font-family: 'Outfit', sans-serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; color: #fff; margin-bottom: 14px; }
.slide h2 .hl { color: #a7f3d0; }
.slide .lead { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; max-width: 560px; }
.slide ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.slide ul li { display: flex; gap: 11px; align-items: flex-start; color: var(--soft); font-size: 14px; line-height: 1.5; }
.slide ul li .ico { flex: 0 0 auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: rgba(16, 185, 129, 0.12); color: #34d399; font-size: 12px; font-weight: 800; margin-top: 1px; }
.slide ul li.danger .ico { background: rgba(239, 68, 68, 0.12); color: var(--danger); }

/* Visual do slide */
.slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
}
.slide-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.13), transparent 62%);
}
.slide-visual::after {
    content: "";
    position: absolute;
    inset: 6% 8%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 65%);
    pointer-events: none;
}
.slide-visual svg { width: 100%; max-width: 520px; height: auto; position: relative; z-index: 1; }

/* ============ Mockups de tela real (screenshots) ============ */
.shot,
.phone {
    position: relative;
    z-index: 1;
    background: #0d0d16;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.shot {
    width: 100%;
    max-width: 540px;
    border-radius: 14px;
    overflow: hidden;
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.035);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.shot-bar .r { background: #f87171; }
.shot-bar .y { background: #fbbf24; }
.shot-bar .g { background: #34d399; }
.shot-bar span {
    flex: 1;
    margin-left: 8px;
    font-size: 10px;
    font-family: ui-monospace, monospace;
    color: #7c8db5;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 3px 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shot img { width: 100%; height: auto; display: block; }

/* Dupla: browser + celular lado a lado */
.shot-duo {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    max-width: 620px;
    position: relative;
    z-index: 1;
}
.phone {
    width: 100%;
    max-width: 180px;
    justify-self: center;
    border-radius: 22px;
    border-width: 2px;
    border-color: rgba(255,255,255,0.14);
    overflow: hidden;
}
.phone img { width: 100%; height: auto; display: block; }

/* Shots clicáveis (abrem o lightbox) */
.shot[data-gallery], .phone[data-gallery] { cursor: zoom-in; }
.shot-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============ Lightbox de imagens ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 6, 12, 0.94);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lb-fig {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 92vw;
    max-height: 88vh;
    margin: 0;
    animation: lbZoom 0.28s var(--ease);
}
.lb-fig img {
    max-width: 92vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.lb-fig figcaption { color: #94a3b8; font-size: 12.5px; text-align: center; max-width: 70vw; }
@keyframes lbZoom { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.16); }
.lb-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.2s;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-count {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}



/* Fala da Íris dentro do slide */
.iris-speech {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 14px;
    max-width: 620px;
}
.iris-speech img { width: 38px; height: 38px; flex: 0 0 auto; object-fit: cover; object-position: center top; border-radius: 50%; border: 1.5px solid rgba(129, 140, 248, 0.65); }
.iris-speech .body { flex: 1; }
.iris-speech .name { font-weight: 700; font-size: 12px; color: #fff; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.iris-speech .name i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.iris-speech .msg { color: #dbeafe; font-size: 13px; line-height: 1.5; }
.iris-speech .msg .name-glow { color: #a7f3d0; font-weight: 700; }

/* Navegação */
.slides-foot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 30px;
    border-top: 1px solid var(--line);
    background: #101018;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--soft);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: #fff; transform: translateY(-1px); }
.nav-btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3); }
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.dots { display: flex; gap: 7px; align-items: center; }
.dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.16); cursor: pointer; transition: background 0.2s, transform 0.2s; padding: 0; }
.dots button.active { background: var(--indigo); transform: scale(1.25); }

/* Autoplay, tela cheia, montagem de peças e flutuação */
.foot-left, .foot-right { display: flex; align-items: center; gap: 8px; }

.frame:fullscreen, .frame:-webkit-full-screen {
    width: 100%;
    max-width: 1380px;
    height: 90vh;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid var(--line);
}

/* Peças entram e montam a figura (slides 1, 4 e 7) */
.slide .asm { opacity: 0; }
.slide.active .asm { animation: asmPop 0.6s var(--ease) both; }
@keyframes asmPop {
    from { opacity: 0; transform: translateY(18px) scale(0.86); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Flutuação sutil */
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.iris-card-avatar { animation: floaty 6s ease-in-out infinite; }
.slide .slide-visual { animation: floaty 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
    .slide .asm { opacity: 1; }
    .slide .slide-visual, .iris-card-avatar, .final-logo { animation: none; }
}

/* ============ FINAL / CTA ============ */
.final {
    position: absolute;
    inset: 0;
    display: none;
    padding: 28px clamp(18px, 4vw, 52px);
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.18), transparent 50%),
        var(--panel);
    overflow-y: auto;
}
.final.active { display: flex; align-items: center; }
.stage-view.active > .final { display: flex; align-items: center; }

.final-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: clamp(18px, 3vw, 40px);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    align-items: stretch;
}

/* ===== Coluna da Íris ===== */
.iris-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 18px;
}
.iris-top { display: flex; align-items: center; gap: 12px; }
.iris-top img {
    width: 58px; height: 58px; flex: 0 0 auto;
    object-fit: cover; object-position: center top;
    border-radius: 50%;
    border: 2px solid rgba(129, 140, 248, 0.65);
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.06), 0 7px 18px rgba(0, 0, 0, 0.35);
}
.iris-name { color: #fff; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 700; }
.iris-name span { display: inline-flex; align-items: center; gap: 5px; color: #86efac; font-size: 9px; font-weight: 700; margin-left: 6px; }
.iris-name .dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); }
.iris-role { color: #94a3b8; font-size: 10px; margin-top: 4px; }
.iris-bubbles { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.iris-bubble {
    position: relative;
    padding: 12px 14px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px 12px 12px 4px;
    font-size: 13.5px;
    line-height: 1.55;
}
.iris-bubble::before {
    content: '';
    position: absolute;
    left: -5px; bottom: 8px;
    width: 8px; height: 8px;
    background: #12121a;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    transform: rotate(45deg);
}
.iris-actions { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.iris-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.iris-btn:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, 0.5); }
.iris-btn.primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35);
}
.iris-btn.primary:hover { box-shadow: 0 10px 26px rgba(99, 102, 241, 0.45); }
.iris-actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.iris-btn.ghost { padding: 10px 12px; font-size: 12.5px; }

/* ===== Coluna Logo + Planos ===== */
.plans-col { display: flex; flex-direction: column; gap: 16px; }
.plans-head { display: flex; align-items: center; gap: 16px; }
.final-logo {
    width: 64px; height: 64px; flex: 0 0 auto;
    object-fit: contain;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.16), transparent 72%);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.10), 0 10px 30px rgba(99, 102, 241, 0.25);
    animation: popIn 0.6s var(--ease), floaty 7s ease-in-out infinite;
}
@keyframes popIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.plans-head h2 { font-family: 'Outfit', sans-serif; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; color: #fff; margin: 0; }
.plans-head h2 span { color: #a7f3d0; }

.final-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; flex: 1; }
.plan-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 18px;
    border-radius: 16px;
    text-decoration: none;
    background: rgba(18, 18, 26, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.plan-card.featured { background: rgba(18, 18, 26, 0.95); border: 2px solid #6366f1; box-shadow: 0 15px 35px rgba(99, 102, 241, 0.18); position: relative; }
.plan-flag {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ef4444, #f97316);
    color: #fff; font-size: 9px; font-weight: 700;
    padding: 5px 12px; border-radius: 20px;
    white-space: nowrap; text-transform: uppercase; letter-spacing: 0.4px;
}
.plan-chip {
    width: max-content;
    font-size: 9px; font-weight: 700; color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.plan-name { font-family: 'Outfit', sans-serif; font-size: 19px; font-weight: 700; color: #fff; }
.plan-price { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; color: #fff; }
.plan-price span { font-size: 12px; color: #94a3b8; font-weight: 500; }
.plan-total { font-size: 10.5px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.plan-total b { color: #a5b4fc; }
.plan-feature { font-size: 11.5px; color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.plan-feature::before { content: '●'; color: #6366f1; }
.plan-btn {
    margin-top: auto;
    text-align: center;
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: background 0.2s;
}
.plan-btn:hover { background: rgba(255, 255, 255, 0.09); }
.plan-card.featured .plan-btn { background: #6366f1; border: none; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); }
.plan-card.featured .plan-btn:hover { background: #4f46e5; }
.plan-note { margin: 6px 0 0; font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.5; }

/* CTA intermediário (mini) */
.mini-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 11px 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #a7f3d0;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.mini-cta:hover { transform: translateY(-2px); border-color: rgba(16, 185, 129, 0.6); box-shadow: 0 10px 26px rgba(16, 185, 129, 0.18); }

/* Foco visível (acessibilidade / teclado) */
.nav-btn:focus-visible, .name-form button:focus-visible, .name-form input:focus-visible,
.mini-cta:focus-visible, .iris-btn:focus-visible, .plan-card:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 2px;
}

/* ============ Responsivo ============ */
@media (max-width: 900px) {
    body { padding: 0; }
    .frame { height: 100dvh; max-height: none; border-radius: 0; border: none; }
    .topbar { grid-template-columns: 1fr; }
    .header { padding: 14px 18px 20px; align-items: flex-start; flex-direction: column; gap: 10px; }
    .header .progress-label { text-align: left; }
    .header .bar { left: 18px; right: 18px; }
    .cover { grid-template-columns: 1fr; grid-template-rows: 1fr auto; overflow-y: auto; }
    .cover-hero { padding: 30px 22px 16px; }
    .cover-hero h1 { font-size: 28px; }
    .cover-stats { gap: 12px; margin-top: 20px; }
    .cover-stat { min-width: 0; padding: 10px 12px; }
    .cover-stats strong { font-size: 19px; }
    .iris-cover-panel { padding: 20px 22px 24px; border-left: 0; border-top: 1px solid var(--line); }
    .name-form { flex-direction: column; gap: 10px; }
    .name-form button { width: 100%; padding: 13px; }
    .slide { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px 44px; align-items: start; align-content: start; }
    .slide h2 { font-size: 23px; }
    .slide .lead { font-size: 13.5px; }
    .slide-visual { min-height: 0; order: 2; }
    .slide-visual svg { max-width: 280px; }
    .slide-visual::after { inset: 4% 4%; }
    .shot, .shot-duo { max-width: 300px; }
    .shot-bar { padding: 6px 10px; }
    .shot-bar span { font-size: 9px; }
    .phone { max-width: 120px; }
    .slides-head { padding: 12px 16px; }
    .slides-foot { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
    .foot-left, .foot-right { gap: 6px; }
    .nav-btn { padding: 9px 12px; font-size: 12px; }
    .dots { gap: 5px; }
    .dots button { width: 7px; height: 7px; }
    .final { padding: 22px 16px; }
    .final-grid { grid-template-columns: 1fr; }
    .final.active { align-items: flex-start; align-content: flex-start; }
    .final-grid { margin: 0 auto; }
    .plans-col { order: 1; }
    .iris-col { order: 2; }
    .final-plans { grid-template-columns: 1fr; }
    .plans-head { justify-content: center; text-align: center; }
    .lb-arrow { width: 38px; height: 38px; font-size: 22px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 10px; right: 12px; width: 36px; height: 36px; font-size: 15px; }
    .lb-fig figcaption { max-width: 90vw; font-size: 11.5px; }
}
