/* ═══════════════════════════════════════════
   MIGUEL: ajustes sobre o template base
   ═══════════════════════════════════════════ */

/* ── Tipografia: títulos sem linha órfã, parágrafos sem viúva ── */
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ── Logo: foto do Miguel + "Miguel, meu gestor de tráfego" ── */
.logo { position: relative; display: block; min-width: 190px; height: 36px; }
.gp-wordmark {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%);
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    font-family: var(--font-poppins), sans-serif; color: #ffffff; transition: opacity 0.4s ease;
}
.logo img.gp-logo-av, .gp-logo-av {
    position: static; transform: none; top: auto; left: auto;
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(188, 133, 248, 0.45), 0 0 16px rgba(124, 58, 237, 0.35);
}
.gp-logo-txt { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
.gp-logo-txt b { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; }
.gp-logo-txt small { font-size: 0.66rem; font-weight: 400; opacity: 0.72; letter-spacing: 0.01em; }
.gp-wordmark.logo-dark,
.gp-wordmark.gp-wordmark-dark { color: #1a1f36; }
.gp-mark {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff; -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, #bc85f8 0%, #7c3aed 100%);
}
.mobile-sidebar-header .gp-wordmark { position: static; transform: none; }
.gp-wordmark-footer { position: static; transform: none; }
.gp-wordmark-footer .gp-logo-av { width: 44px; height: 44px; }
.gp-wordmark-footer .gp-logo-txt b { font-size: 1.25rem; }
.gp-wordmark-footer .gp-logo-txt small { font-size: 0.78rem; }
.gp-invite-mark { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 1rem; }
.gp-invite-mark img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.nav-pill a { white-space: nowrap; }

/* ── Hero: três linhas limpas no desktop ── */
.headline.gp-headline { font-size: clamp(1.9rem, 2.75vw, 2.55rem); line-height: 1.14; letter-spacing: -0.01em; }
.gp-hl-line { display: block; white-space: nowrap; }
@media (max-width: 768px) {
    .headline.gp-headline { font-size: 2.05rem; }
    .gp-hl-line { display: inline; white-space: normal; }
}

/* ── Pílulas: textos que quebram continuam bonitos ── */
.feature-pill { max-width: 100%; border-radius: 22px; line-height: 1.35; text-align: left; }

/* ── Hero: o celular vira janela de computador (o Miguel roda no computador) ── */
.hero-phone-shell { width: 420px; }
.hero-phone-frame {
    height: 520px; padding: 0; border-radius: 18px; overflow: hidden;
    background: #15121c; border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(124, 58, 237, 0.10);
}
.hero-phone-frame::before, .hero-phone-frame::after { display: none; }
.gp-window-bar {
    height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
    background: #1d1926; border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: relative;
}
.gp-dot { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.gp-dot:nth-child(2) { background: #febc2e; }
.gp-dot:nth-child(3) { background: #28c840; }
.gp-window-bar em {
    position: absolute; left: 50%; transform: translateX(-50%);
    font-style: normal; font-size: 0.74rem; color: rgba(255, 255, 255, 0.55); white-space: nowrap;
}
.hero-whatsapp-app {
    height: calc(100% - 38px); border-radius: 0; -webkit-mask-image: none;
    background: #f6f3fb; font-family: var(--font-poppins), -apple-system, sans-serif;
}
.hero-whatsapp-app::before { display: none; }
.hero-wa-header { height: 62px; padding: 10px 16px; background: #ffffff; }
.hero-wa-header-left, .hero-wa-header-actions { display: none; }
.hero-wa-body { height: calc(100% - 120px); }
.hero-wa-input { height: 58px; padding: 10px 14px; background: #ffffff; }
.hero-wa-plus, .hero-wa-camera, .hero-wa-mic, .hero-wa-checks { display: none; }
.hero-wa-message.user { background: #ece2fd; }

@media (max-width: 1100px) { .hero-phone-shell { width: 390px; } }
@media (max-width: 768px) {
    .hero-demo-glass { width: 100% !important; min-height: 0; }
    .hero-phone-shell { width: min(88vw, 360px) !important; transform: none !important; margin: 0 auto !important; }
    .hero-phone-frame { height: 470px; }
    .hero-wa-header { height: 54px; padding: 8px 12px; }
    .hero-wa-body { height: calc(100% - 104px); }
    .hero-wa-input { height: 50px; padding: 8px 10px; }
}

/* ── Avatares do Miguel nos pontos que antes tinham a logo do WhatsApp ── */
.gp-center-avatar { width: 46px; height: 46px; border-radius: 50%; position: relative; z-index: 2; }
.gp-hub-avatar { width: 44px; opacity: 1; border-radius: 50%; }
.gp-gcal-icon { width: 20px; height: 20px; border-radius: 50%; }
.gp-notif-avatar { width: 100%; height: 100%; border-radius: 50%; display: block; }

/* ── O Miguel é por texto: esconde os players de áudio dos cards ── */
.task-audio-player, .notes-audio-player { display: none; }
.task-audio-transcript, .notes-audio-transcript { margin-top: 0; }

/* ── Bloco institucional ── */
.gp-orbital-mark {
    font-family: var(--font-poppins), sans-serif; font-weight: 700; font-size: 1.6rem;
    line-height: 1.05; letter-spacing: -0.02em; color: #fff; text-align: center;
}
.gp-orbital-mark span { font-weight: 300; }

/* ── Nota do custo de operação, abaixo do preço ── */
.gp-footnote {
    max-width: 720px; margin: 28px auto 0; padding: 0 20px; text-align: center;
    font-size: 0.82rem; line-height: 1.6; color: rgba(255, 255, 255, 0.5);
}


/* ═══════════════════════════════════════════
   SEÇÃO DO MIGUEL: invertida, e o cartão de texto em degradê rosa com texto claro
   (a seção mantém o fundo bege do template)
   ═══════════════════════════════════════════ */
#agenda-section .feature-split-text {
    background-color: #7c3aed;
    background-image: linear-gradient(145deg, #4c1d95 0%, #6d28d9 38%, #7c3aed 100%);
    border: none;
    box-shadow: 0 24px 60px rgba(76, 29, 149, .28);
}
#agenda-section .feature-split-text::before { background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); }
#agenda-section .feature-split-title { color: #ffffff; }
#agenda-section .feature-split-desc { color: rgba(255, 255, 255, .9); }
#agenda-section .feature-badge { background: #ffffff; color: #4c1d95; box-shadow: 0 4px 14px rgba(46, 16, 101, .25); }
#agenda-section .feature-badge svg { stroke: #4c1d95; }
#agenda-section .feature-pill { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); color: #ffffff; }
#agenda-section .feature-pill::before { background: #ffffff; box-shadow: none; }
#agenda-section .feature-pill::after { border-color: #6d28d9; }
#ma5-floating-canvas { background-color: #f3eefd; }
#ma5-eraser { background: #f3eefd; }
#ma5-blur-overlay { background: rgba(243, 238, 253, .55); }

/* ═══════════════════════════════════════════
   FOTOS DO FELIPE
   ═══════════════════════════════════════════ */
/* Quem instala o Miguel: retrato inteiro, com moldura fina no degradê da página */
.tittanium-logo-wrap:has(.gp-felipe-retrato) { width: 220px; }
.gp-felipe-retrato {
    width: 220px; height: 293px; border-radius: 22px; object-fit: cover; display: block;
    padding: 3px; background: linear-gradient(135deg, #bc85f8, #7c3aed);
    box-shadow: 0 20px 60px rgba(188, 133, 248, .30);
}
@media (max-width: 768px) {
    .tittanium-logo-wrap:has(.gp-felipe-retrato) { width: 200px; }
    .gp-felipe-retrato { width: 200px; height: 266px; }
}

/* ═══════════════════════════════════════════
   OS TRÊS CAMINHOS: uma cena em loop pra cada um
   ═══════════════════════════════════════════ */
.gp-scenes { position: relative; width: 100%; max-width: 460px; height: 330px; margin: 0 auto; }
.gp-scene { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.gp-scene.active { opacity: 1; transform: none; }

/* Contrato sendo assinado */
.gp-doc { position: relative; width: 100%; max-width: 340px; background: #fff; border-radius: 14px; padding: 18px 18px 16px; color: #1a1f36;
    box-shadow: 0 24px 60px rgba(0,0,0,.45); text-align: left; }
.gp-doc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.gp-doc-head strong { display: block; font-size: .82rem; }
.gp-doc-head small { display: block; font-size: .68rem; color: #6b7280; }
.gp-doc-icon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #bc85f8, #7c3aed); flex-shrink: 0; }
.gp-doc-lines i { display: block; height: 6px; border-radius: 3px; background: #eef0f3; margin-bottom: 6px; }
.gp-doc-clause { display: flex; justify-content: space-between; font-size: .74rem; padding: 7px 0; border-bottom: 1px dashed #e5e7eb; }
.gp-doc-clause span { color: #6b7280; }
.gp-doc-sign { margin-top: 10px; }
.gp-doc-sign svg { width: 100%; height: 44px; display: block; border-bottom: 1px solid #cbd5e1; }
.gp-doc-sign span { font-size: .62rem; color: #94a3b8; }
.gp-sig { fill: none; stroke: #1e3a8a; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: gpSign 6s ease-in-out infinite; }
@keyframes gpSign { 0%, 12% { stroke-dashoffset: 420; } 45%, 100% { stroke-dashoffset: 0; } }
.gp-doc-stamp { position: absolute; right: 16px; bottom: 30px; padding: 4px 10px; border: 2px solid #16a34a; color: #16a34a; border-radius: 6px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; transform: rotate(-8deg) scale(1.3); opacity: 0;
    animation: gpStamp 6s ease-in-out infinite; }
@keyframes gpStamp { 0%, 50% { opacity: 0; transform: rotate(-8deg) scale(1.4); } 56%, 92% { opacity: 1; transform: rotate(-8deg) scale(1); } 100% { opacity: 0; } }
.gp-months { width: 100%; max-width: 380px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.gp-months-track { display: flex; gap: 10px; width: max-content; animation: gpMarquee 18s linear infinite; }
.gp-months-track span { font-size: .72rem; color: rgba(255,255,255,.6); padding: 5px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,.14); white-space: nowrap; }
.gp-months-track b { color: #f87171; font-weight: 600; }
@keyframes gpMarquee { to { transform: translateX(-50%); } }

/* Botão impulsionar sendo apertado */
.gp-ig { position: relative; width: 100%; max-width: 280px; background: #fff; border-radius: 16px; overflow: hidden; color: #111; text-align: left; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.gp-ig-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: .74rem; }
.gp-ig-head em { margin-left: auto; font-style: normal; color: #999; }
.gp-ig-av { width: 24px; height: 24px; border-radius: 50%; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.gp-ig-img { height: 116px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f3e8ff, #e9ddfd); }
.gp-ig-img span { font-size: .78rem; font-weight: 600; color: #6d3fc4; }
.gp-ig-actions { display: flex; gap: 10px; padding: 8px 12px 2px; }
.gp-ig-actions i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #222; }
.gp-ig-boost { margin: 8px 12px; padding: 8px; border-radius: 8px; background: #0095f6; color: #fff; font-size: .74rem; font-weight: 600; text-align: center;
    animation: gpPress 6s ease-in-out infinite; }
@keyframes gpPress { 0%, 30% { transform: scale(1); filter: none; } 33% { transform: scale(.94); filter: brightness(.85); } 38%, 100% { transform: scale(1); filter: none; } }
.gp-ig-stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 4px 12px 12px; opacity: 0; animation: gpStats 6s ease-in-out infinite; }
.gp-ig-stats small { display: block; font-size: .58rem; color: #888; }
.gp-ig-stats b { font-size: .74rem; }
.gp-ig-stats div:nth-child(2) b { color: #dc2626; }
@keyframes gpStats { 0%, 40% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.gp-cursor { position: absolute; width: 18px; height: 18px; left: 80%; top: 30%; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center/contain;
    animation: gpCursorBoost 6s ease-in-out infinite; }
@keyframes gpCursorBoost { 0% { left: 85%; top: 25%; opacity: 0; } 10% { opacity: 1; } 30% { left: 55%; top: 66%; } 36% { left: 55%; top: 66%; transform: scale(.8); } 42% { transform: scale(1); } 90% { left: 55%; top: 66%; opacity: 1; } 100% { opacity: 0; } }

/* Painéis do Gerenciador de Anúncios e do Google Ads */
.gp-win { position: relative; width: 100%; max-width: 440px; height: 270px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); text-align: left; }
.gp-win-tabs { display: flex; gap: 2px; padding: 6px 8px 0; background: #e8eaed; }
.gp-tab { font-size: .62rem; padding: 6px 12px; border-radius: 8px 8px 0 0; color: #5f6368; background: #dadce0; white-space: nowrap; }
.gp-tab-meta { animation: gpTabA 10s steps(1) infinite; }
.gp-tab-google { animation: gpTabB 10s steps(1) infinite; }
@keyframes gpTabA { 0% { background: #fff; color: #1c1e21; } 50% { background: #dadce0; color: #5f6368; } }
@keyframes gpTabB { 0% { background: #dadce0; color: #5f6368; } 50% { background: #fff; color: #1c1e21; } }
.gp-panel { position: absolute; left: 0; right: 0; top: 28px; bottom: 0; display: flex; background: #fff; }
.gp-panel-meta { animation: gpPanelA 10s steps(1) infinite; }
.gp-panel-google { animation: gpPanelB 10s steps(1) infinite; }
@keyframes gpPanelA { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes gpPanelB { 0% { visibility: hidden; } 50% { visibility: visible; } }
.gp-panel-side { width: 38px; background: #f0f2f5; padding: 10px 9px; display: flex; flex-direction: column; gap: 9px; }
.gp-panel-side i { display: block; width: 20px; height: 20px; border-radius: 6px; background: #d8dde6; }
.gp-side-google { background: #f8f9fa; }
.gp-side-google i { border-radius: 50%; }
.gp-panel-main { flex: 1; padding: 10px; min-width: 0; }
.gp-panel-bar { display: flex; gap: 6px; align-items: center; margin-bottom: 9px; }
.gp-panel-bar i { display: block; width: 36px; height: 16px; border-radius: 5px; background: #eef0f3; }
.gp-btn-blue { font-size: .58rem; font-weight: 600; color: #fff; background: #1877f2; padding: 4px 8px; border-radius: 5px; white-space: nowrap; }
.gp-btn-gblue { font-size: .58rem; font-weight: 600; color: #fff; background: #1a73e8; padding: 4px 8px; border-radius: 16px; white-space: nowrap; }
.gp-chart { height: 38px; margin-bottom: 8px; border-bottom: 1px solid #eef0f3; }
.gp-chart svg { width: 100%; height: 100%; }
.gp-table { display: flex; flex-direction: column; gap: 5px; }
.gp-tr { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 5px; }
.gp-tr span { height: 9px; border-radius: 3px; background: #f1f3f4; }
.gp-th span { height: auto; background: none; font-size: .5rem; font-weight: 600; color: #5f6368; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-confused { position: absolute; right: 14px; bottom: 16px; padding: 7px 12px; border-radius: 12px 12px 2px 12px; font-size: .72rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, #bc85f8, #7c3aed); box-shadow: 0 8px 24px rgba(188, 133, 248, .45); animation: gpAsk 5s ease-in-out infinite; z-index: 3; }
@keyframes gpAsk { 0%, 25% { opacity: 0; transform: translateY(8px); } 35%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.gp-cursor-lost { z-index: 4; animation: gpLost 7s ease-in-out infinite; }
@keyframes gpLost { 0% { left: 20%; top: 30%; opacity: 1; } 25% { left: 70%; top: 45%; } 45% { left: 40%; top: 70%; } 65% { left: 82%; top: 25%; } 85% { left: 30%; top: 55%; } 100% { left: 20%; top: 30%; } }
@media (max-width: 768px) { .gp-scenes { height: 310px; } }

@media (prefers-reduced-motion: reduce) {
    .gp-g-ring, .gp-g-ring img, .gp-google-word span, .gp-sig, .gp-doc-stamp, .gp-months-track, .gp-ig-boost, .gp-ig-stats,
    .gp-cursor, .gp-tab, .gp-panel, .gp-confused, .gp-you { animation: none !important; }
    .gp-sig { stroke-dashoffset: 0; }
    .gp-doc-stamp, .gp-ig-stats, .gp-confused { opacity: 1; transform: none; }
    .gp-panel-google { visibility: hidden; }
}


/* ═══════════════════════════════════════════
   MIGUEL: blocos novos
   ═══════════════════════════════════════════ */

/* ── Problema: programa de edição cheio de botão ── */
.mg-ed {
    position: relative; width: 100%; max-width: 460px; margin: 0 auto; background: #14111c; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px rgba(30,10,70,.35); text-align: left; border: 1px solid rgba(255,255,255,.08);
}
.mg-ed-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #1d1926; border-bottom: 1px solid rgba(255,255,255,.08); position: relative; }
.mg-ed-bar em { position: absolute; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .68rem; color: rgba(255,255,255,.5); white-space: nowrap; }
.mg-ed-tools { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mg-ed-tools i { width: 20px; height: 20px; border-radius: 5px; background: #2a2538; animation: mgBlink 4.2s ease-in-out infinite; }
.mg-ed-tools i:nth-child(3n) { background: #3a2f55; animation-delay: .6s; }
.mg-ed-tools i:nth-child(4n) { animation-delay: 1.3s; }
.mg-ed-tools i:nth-child(5n) { background: #33294a; animation-delay: 2.1s; }
@keyframes mgBlink { 0%, 80%, 100% { opacity: 1; } 88% { opacity: .35; background: #7c3aed; } }
.mg-ed-main { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 10px; height: 170px; }
.mg-ed-bin { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.mg-ed-bin i { aspect-ratio: 16 / 10; border-radius: 5px; background: #2a2538; }
.mg-ed-bin i:nth-child(2n) { background: #33294a; }
.mg-ed-prev { border-radius: 8px; background: #0c0a12; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.06); }
.mg-ed-prev span { width: 0; height: 0; border-left: 16px solid rgba(255,255,255,.35); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.mg-ed-insp { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.mg-ed-insp i { position: relative; display: block; height: 6px; border-radius: 3px; background: #2a2538; }
.mg-ed-insp i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: #4b3a78; }
.mg-ed-insp i:nth-child(2n)::after { width: 65%; }
.mg-ed-insp i:nth-child(3n)::after { width: 25%; }
.mg-ed-tl { position: relative; padding: 6px 10px 14px; display: flex; flex-direction: column; gap: 5px; }
.mg-ed-track { position: relative; height: 15px; border-radius: 4px; background: #1d1926; }
.mg-ed-track b { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; background: #6d3fd8; }
.mg-ed-track b.a2 { background: #3b7f9c; }
.mg-ed-track b.a3 { background: #4a4a63; }
.mg-ed-track b.a4 { background: #8a5a2b; }
.mg-ed-head { position: absolute; top: 4px; bottom: 8px; width: 2px; background: #f87171; left: 10%; animation: mgHead 7s linear infinite; }
@keyframes mgHead { 0% { left: 4%; } 100% { left: 96%; } }
.mg-ed .gp-confused { right: 14px; bottom: 12px; }
.mg-ed .gp-cursor-lost { filter: invert(1); }
@media (max-width: 768px) { .mg-ed-main { height: 140px; } .mg-ed-tools i { width: 17px; height: 17px; } }

/* ── Cena: tutorial (você tentou aprender sozinho) ── */
.mg-tut { position: relative; width: 100%; max-width: 340px; background: #fff; border-radius: 14px; overflow: hidden; color: #1a1f36; text-align: left; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.mg-tut-screen { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d1433, #3b1d78); }
.mg-tut-screen em { position: absolute; left: 12px; top: 10px; font-style: normal; font-size: .64rem; font-weight: 600; color: rgba(255,255,255,.75); }
.mg-tut-play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.95); position: relative; }
.mg-tut-play::after { content: ""; position: absolute; left: 17px; top: 13px; border-left: 12px solid #3b1d78; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.mg-tut-bar { height: 4px; background: #e5e7eb; }
.mg-tut-bar i { display: block; height: 100%; width: 0; background: #7c3aed; animation: mgProg 8s ease-in-out infinite; }
@keyframes mgProg { 0% { width: 0; } 55% { width: 62%; } 70%, 100% { width: 62%; } }
.mg-tut-body { padding: 10px 12px 14px; }
.mg-tut-body strong { display: block; font-size: .8rem; }
.mg-tut-body small { display: block; font-size: .66rem; color: #6b7280; margin-top: 2px; }
.mg-tut-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.mg-tut-chips span { font-size: .6rem; padding: 3px 9px; border-radius: 100px; background: #f3f0ff; color: #5b21b6; }
.mg-tut .gp-confused { right: 12px; bottom: 56px; }
.gp-doc-stamp { border-color: #d97706; color: #d97706; }

/* ── Antes e depois ── */
.mg-ba { display: flex; align-items: center; justify-content: center; gap: 14px; }
.mg-frame { position: relative; margin: 0; width: 100%; max-width: 236px; border-radius: 22px; overflow: hidden; background: #0a0a0b;
    box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 24px 56px rgba(40,16,90,.28); }
.mg-frame img { display: block; width: 100%; height: auto; }
.mg-frame figcaption { position: absolute; left: 10px; top: 10px; padding: 5px 11px; border-radius: 100px; font-size: .68rem; font-weight: 600;
    background: rgba(255,255,255,.94); color: #1a1f36; font-family: var(--font-poppins), sans-serif; }
.mg-frame-after { box-shadow: 0 0 0 2px #7c3aed, 0 24px 56px rgba(76,29,149,.38); }
.mg-frame-after figcaption { background: #7c3aed; color: #fff; }
.mg-arrow { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: #7c3aed; box-shadow: 0 8px 24px rgba(76,29,149,.2); animation: mgNudge 2.4s ease-in-out infinite; }
@keyframes mgNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.mg-strip { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.mg-frame-sm { max-width: 92px; border-radius: 14px; box-shadow: 0 10px 30px rgba(40,16,90,.2); }
.mg-strip p { margin: 0; max-width: 220px; font-size: .78rem; line-height: 1.5; color: #4a5568; }
.mg-js .mg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.mg-js .mg-reveal.in { opacity: 1; transform: none; }
@media (max-width: 560px) {
    .mg-ba { gap: 8px; }
    .mg-frame { max-width: 150px; border-radius: 16px; }
    .mg-frame figcaption { left: 6px; top: 6px; padding: 4px 8px; font-size: .58rem; }
    .mg-arrow { width: 34px; height: 34px; }
    .mg-arrow svg { width: 18px; height: 18px; }
    .mg-strip { flex-wrap: wrap; }
    .mg-strip p { max-width: 100%; text-align: center; }
}

/* ── guard de movimento ── */
@media (prefers-reduced-motion: reduce) {
    .mg-ed-tools i, .mg-ed-head, .mg-tut-bar i, .mg-arrow { animation: none !important; }
    .mg-tut-bar i { width: 62%; }
    .mg-js .mg-reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto !important; }
}
