/* ============================================================
   Mapa de Estudo LMS — Landing "Sinal ao vivo"
   Paleta: indigo profundo + ciano-sinal + ambar CTA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

.mel-landing {
    --bg: #141B2E;
    --surface: #1E2942;
    --surface-2: #26324f;
    --ink: #EEF2FB;
    --ink-dim: #9aa7c7;
    --signal: #3DD6C4;
    --amber: #F5A524;
    --amber-hover: #ffb63f;
    --line: rgba(255,255,255,.08);

    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 1180px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.mel-landing * { box-sizing: border-box; }

/* ---------- HERO ---------- */
.mel-hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    padding: 64px 56px 56px;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(61,214,196,.10), transparent 60%),
        radial-gradient(900px 500px at 0% 120%, rgba(245,165,36,.08), transparent 55%);
}

.mel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 20px;
}
.mel-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 0 rgba(61,214,196,.6);
    animation: mel-pulse 1.8s infinite;
}
@keyframes mel-pulse {
    0% { box-shadow: 0 0 0 0 rgba(61,214,196,.55); }
    70% { box-shadow: 0 0 0 10px rgba(61,214,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,214,196,0); }
}

.mel-h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    color: var(--ink);
}
.mel-h1 em { color: var(--signal); font-style: normal; }

.mel-lead {
    font-size: 17px;
    color: var(--ink-dim);
    margin: 0 0 28px;
    max-width: 46ch;
}

/* ---------- FORM DE LEAD ---------- */
.mel-lead-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.mel-lead-form input {
    flex: 1 1 160px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.mel-lead-form input::placeholder { color: #6b7799; }
.mel-lead-form input:focus {
    outline: none;
    border-color: var(--signal);
    box-shadow: 0 0 0 3px rgba(61,214,196,.18);
}

.mel-cta {
    padding: 14px 26px;
    border: none;
    border-radius: 12px;
    background: var(--amber);
    color: #241a04;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s, background .15s, box-shadow .15s;
    box-shadow: 0 8px 24px rgba(245,165,36,.28);
}
.mel-cta:hover { background: var(--amber-hover); transform: translateY(-1px); }
.mel-cta:active { transform: translateY(0); }
.mel-cta:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.mel-lead-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; font-weight: 500; }
.mel-lead-msg.ok { color: var(--signal); }
.mel-lead-msg.err { color: #ff8080; }

.mel-trust { font-size: 13px; color: #6b7799; margin: 14px 0 0; }

/* ---------- DEMO AO VIVO ---------- */
.mel-hero-demo {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 50px rgba(0,0,0,.3);
}
.mel-demo-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.mel-rec {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px; font-weight: 500;
    color: #ff6b6b; letter-spacing: .1em;
}
.mel-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5252; animation: mel-blink 1.2s infinite; }
@keyframes mel-blink { 0%,100%{opacity:1;} 50%{opacity:.25;} }
.mel-demo-time { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-dim); }

.mel-wave {
    display: flex; align-items: center; gap: 3px;
    height: 44px; margin-bottom: 16px;
}
.mel-wave span {
    flex: 1;
    background: linear-gradient(180deg, var(--signal), #2ba597);
    border-radius: 3px;
    height: 20%;
    animation: mel-eq 1.1s ease-in-out infinite;
}
@keyframes mel-eq { 0%,100%{ height: 15%; } 50%{ height: 90%; } }

.mel-demo-transcript {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13.5px;
    line-height: 1.7;
    color: #cdd6ef;
    min-height: 108px;
    background: #161f36;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--line);
}
.mel-cursor {
    display: inline-block; width: 8px; height: 16px;
    background: var(--signal); vertical-align: middle;
    margin-left: 2px; animation: mel-blink .9s step-end infinite;
}
.mel-demo-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.mel-chip {
    font-size: 12px; font-weight: 500;
    color: var(--signal);
    background: rgba(61,214,196,.10);
    border: 1px solid rgba(61,214,196,.25);
    padding: 5px 12px; border-radius: 20px;
}

/* ---------- STEPS ---------- */
.mel-steps { padding: 56px; border-top: 1px solid var(--line); }
.mel-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.01em; margin: 0 0 32px; text-align: center;
    color: var(--ink);
}
.mel-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mel-step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .18s, border-color .18s;
}
.mel-step:hover { transform: translateY(-3px); border-color: rgba(61,214,196,.4); }
.mel-step-n {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px; color: var(--signal); letter-spacing: .1em;
}
.mel-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin: 10px 0 6px; color: var(--ink); }
.mel-step p { font-size: 14.5px; color: var(--ink-dim); margin: 0; }

/* ---------- CTA BAND ---------- */
.mel-cta-band {
    margin: 0 56px 56px;
    padding: 44px 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid var(--line);
    border-radius: 20px;
}
.mel-cta-band p { color: var(--ink-dim); margin: 0 0 22px; }
.mel-lead-form--band { max-width: 480px; margin: 0 auto; }

/* ---------- FERRAMENTA (autores) ---------- */
.mel-tool { padding: 56px; border-top: 1px solid var(--line); }
.mel-tool-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    max-width: 760px; margin-left: auto; margin-right: auto;
}
.mel-tool-h3 { font-family: 'Space Grotesk', sans-serif; margin: 0 0 12px; color: var(--ink); font-size: 18px; }
.mel-field { display: block; margin-bottom: 16px; }
.mel-field > span { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--ink); }
.mel-field input[type="text"] {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    font-size: 15px; font-family: inherit;
}
.mel-field input[type="text"]:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(61,214,196,.15); }
.mel-radios { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-dim); }
.mel-radios label { cursor: pointer; font-size: 14.5px; }
#mel-preview, #mel-gravado { width: 100%; max-height: 360px; background: #0c1220; border-radius: 12px; margin: 12px 0; display: block; }
.mel-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mel-btn-ghost {
    padding: 12px 22px; border-radius: 10px; cursor: pointer;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line); font-weight: 600; font-size: 14px;
    text-decoration: none; font-family: inherit;
}
.mel-btn-ghost:hover { border-color: var(--signal); }
.mel-btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.mel-timer { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 16px; color: #ff6b6b; }
.mel-status { margin: 12px 0 0; font-size: 14px; min-height: 20px; }
.mel-status-rec { color: #ff6b6b; font-weight: 600; }
.mel-status-ok { color: var(--signal); }
.mel-status-error { color: #ff8080; }
.mel-status-warn { color: var(--amber); }
.mel-hint { font-size: 13.5px; color: var(--ink-dim); margin: 0 0 10px; }
#mel-transcricao {
    width: 100%; padding: 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    font-size: 14px; font-family: 'JetBrains Mono', monospace; line-height: 1.6;
}
.mel-resultado { margin-top: 14px; }
.mel-resultado .mel-ok { color: var(--signal); font-weight: 600; margin-bottom: 10px; }
.mel-resultado .mel-err { color: #ff8080; font-weight: 600; }
.mel-resultado a.mel-cta { display: inline-block; text-decoration: none; margin-top: 4px; }
#mel-download-video { margin-top: 8px; display: inline-block; }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 860px) {
    /* Prova antes do pedido: a demo sobe acima do texto/formulário no mobile. */
    .mel-hero { display: flex; flex-direction: column; gap: 32px; padding: 40px 28px; }
    .mel-hero-demo { order: -1; }
    .mel-steps, .mel-tool { padding: 40px 28px; }
    .mel-steps-grid { grid-template-columns: 1fr; }
    .mel-cta-band { margin: 0 28px 40px; padding: 36px 24px; }
    .mel-landing { border-radius: 0; }
}
@media (max-width: 480px) {
    .mel-lead-form { flex-direction: column; }
    .mel-lead-form input, .mel-cta { width: 100%; }
}

/* ---------- ACESSIBILIDADE: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
    .mel-live-dot, .mel-rec-dot, .mel-wave span, .mel-cursor { animation: none !important; }
    .mel-step:hover, .mel-cta:hover { transform: none; }
}

/* ---------- CASOS DE USO (hero chips + seção) ---------- */
.mel-usecases { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.mel-uc {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 500; color: var(--ink);
    background: var(--surface); border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 22px;
}
.mel-uc-i { font-size: 15px; }

.mel-cases { padding: 56px; border-top: 1px solid var(--line); }
.mel-cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mel-case {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 28px 24px;
    transition: transform .18s, border-color .18s;
}
.mel-case:hover { transform: translateY(-3px); border-color: rgba(61,214,196,.4); }
.mel-case-i { font-size: 30px; display: block; margin-bottom: 12px; }
.mel-case h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin: 0 0 6px; color: var(--ink); }
.mel-case p { font-size: 14.5px; color: var(--ink-dim); margin: 0; }

/* ---------- SELETOR DE TIPO DE SESSÃO ---------- */
.mel-tipos { display: flex; gap: 10px; flex-wrap: wrap; }
.mel-tipo {
    position: relative; cursor: pointer;
    flex: 1 1 130px;
}
.mel-tipo input { position: absolute; opacity: 0; }
.mel-tipo span {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg);
    color: var(--ink-dim); font-size: 14.5px; font-weight: 500;
    transition: border-color .15s, color .15s, background .15s;
}
.mel-tipo input:checked + span {
    border-color: var(--signal); color: var(--ink);
    background: rgba(61,214,196,.10);
}
.mel-tipo:hover span { border-color: rgba(61,214,196,.5); }

@media (max-width: 860px) {
    .mel-cases { padding: 40px 28px; }
    .mel-cases-grid { grid-template-columns: 1fr; }
}

/* ---------- BARRA DE USO + PAYWALL ---------- */
.mel-uso-bar {
    max-width: 760px; margin: 0 auto 20px;
    padding: 12px 18px; border-radius: 12px;
    background: rgba(61,214,196,.10); border: 1px solid rgba(61,214,196,.3);
    color: var(--signal); font-size: 14px; font-weight: 600;
    text-align: center;
}
.mel-uso-bar.mel-uso-premium { background: rgba(245,165,36,.12); border-color: rgba(245,165,36,.4); color: var(--amber); }
.mel-uso-bar.mel-uso-esgotado { background: rgba(255,107,107,.10); border-color: rgba(255,107,107,.35); color: #ff8080; }

.mel-paywall {
    max-width: 760px; margin: 0 auto;
    padding: 36px 28px; border-radius: 16px; text-align: center;
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px solid rgba(245,165,36,.35);
}
.mel-paywall h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.mel-paywall p { color: var(--ink-dim); margin: 0 0 20px; }
.mel-paywall .mel-cta { text-decoration: none; display: inline-block; }
