/* =========================================================================
   Minha Canção — estilo base
   ========================================================================= */

:root {
    --gold:        #D4A85A;
    --gold-soft:   #E8C98A;
    --gold-deep:   #A9813C;
    --bg:          #0B0A0D;
    --bg-2:        #100E14;
    --surface:     #17141C;
    --surface-2:   #1F1B26;
    --line:        rgba(212, 168, 90, .18);
    --line-soft:   rgba(255, 255, 255, .07);
    --text:        #F4F1EC;
    --text-soft:   #B9B2AC;
    --text-dim:    #7E7873;
    --ok:          #4ADE80;
    --warn:        #FBBF24;
    --danger:      #F87171;
    --radius:      18px;
    --radius-sm:   12px;
    --shadow:      0 24px 60px -20px rgba(0, 0, 0, .8);
    --serif:       'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --wrap:        1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: #14100A; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--bg-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--gold); margin: 0 0 16px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5.6vw, 58px); }
h2 { font-size: clamp(27px, 3.8vw, 42px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }

.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--text-soft); max-width: 620px; margin: 0 auto 8px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .lead { margin-bottom: 0; }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }

.gold { color: var(--gold); }
.italic-gold { font-family: var(--serif); font-style: italic; color: var(--gold); }

/* ---------- Botões ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 15px; cursor: pointer; text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    line-height: 1.2;
}
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
    color: #17110A;
    box-shadow: 0 14px 34px -12px rgba(212, 168, 90, .65);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(212, 168, 90, .8); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }

.btn-soft { background: var(--surface-2); border-color: var(--line-soft); color: var(--text); }
.btn-soft:hover:not(:disabled) { border-color: var(--line); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ---------- Cabeçalho ---------- */

.site-header {
    position: sticky; top: 0; z-index: 60;
    background: rgba(11, 10, 13, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
    display: grid; place-items: center; font-size: 17px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
    color: #17110A;
}
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; color: var(--text-soft); transition: color .16s; }
.nav a:hover, .nav a.is-active { color: var(--gold); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 11px; cursor: pointer; }

@media (max-width: 900px) {
    .nav {
        position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 20px 24px; background: var(--bg-2);
        border-bottom: 1px solid var(--line-soft); display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
    .nav .btn { margin-top: 14px; }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */

.hero { position: relative; padding: 78px 0 72px; overflow: hidden; text-align: center; }
.hero::before {
    content: ''; position: absolute; inset: -40% 10% auto; height: 620px;
    background: radial-gradient(ellipse at center, rgba(212, 168, 90, .16), transparent 62%);
    pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 7px 16px; border-radius: 999px; font-size: 13px; color: var(--gold-soft);
    background: rgba(212, 168, 90, .09); border: 1px solid var(--line); margin-bottom: 26px;
}
.hero h1 { max-width: 880px; margin: 0 auto 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--text-dim); }

.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Cards genéricos ---------- */

.card {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 26px;
}
.card--gold { border-color: var(--line); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Passos ---------- */

.step { position: relative; text-align: center; padding: 34px 24px; }
.step-icon {
    width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
    display: grid; place-items: center; font-size: 26px;
    background: rgba(212, 168, 90, .1); border: 1px solid var(--line);
}
.step-num {
    position: absolute; top: 18px; right: 22px;
    font-family: var(--serif); font-size: 42px; line-height: 1;
    color: rgba(212, 168, 90, .14);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* ---------- Player de exemplo ---------- */

.player {
    display: flex; align-items: center; gap: 16px;
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 16px 18px;
}
.player-btn {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
    color: #17110A; font-size: 15px; display: grid; place-items: center;
    transition: transform .16s;
}
.player-btn:hover { transform: scale(1.06); }
.player-info { min-width: 0; flex: 1; }
.player-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-style { font-size: 12.5px; color: var(--text-dim); }
.player-bar { height: 4px; border-radius: 999px; background: var(--line-soft); margin-top: 9px; overflow: hidden; }
.player-bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width .15s linear; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
    padding: 9px 17px; border-radius: 999px; font-size: 14px;
    background: var(--surface); border: 1px solid var(--line-soft); color: var(--text-soft);
}

/* ---------- Depoimentos ---------- */

.testimonial { display: flex; flex-direction: column; gap: 14px; }
.testimonial-text { font-size: 15.5px; color: var(--text-soft); margin: 0; }
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(212, 168, 90, .12); border: 1px solid var(--line);
    color: var(--gold); font-weight: 600; font-size: 15px;
}
.testimonial-name { font-weight: 600; font-size: 14.5px; }
.testimonial-context { font-size: 12.5px; color: var(--text-dim); }

/* ---------- Entregáveis ---------- */

.deliver { display: flex; gap: 16px; align-items: flex-start; }
.deliver-icon {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(212, 168, 90, .1); border: 1px solid var(--line); font-size: 20px;
}
.deliver h3 { font-size: 17px; margin-bottom: 6px; }
.deliver p { margin: 0; font-size: 14.5px; color: var(--text-soft); }

/* ---------- FAQ ---------- */

.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer; text-align: left;
    padding: 22px 40px 22px 0; font-size: 16.5px; font-weight: 500; position: relative;
    font-family: var(--serif);
}
.faq-q::after {
    content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    color: var(--gold); font-size: 24px; font-family: var(--sans); transition: transform .2s;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a p { margin: 0 0 22px; color: var(--text-soft); font-size: 15px; padding-right: 40px; }

/* ---------- CTA final ---------- */

.final-cta { text-align: center; padding: 64px 28px; border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(212, 168, 90, .09), rgba(212, 168, 90, .02)); }

/* ---------- Rodapé ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 34px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; margin-bottom: 40px; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--gold); margin: 14px 0 0; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; font-weight: 600; font-family: var(--sans); }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-soft); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   QUIZ
   ========================================================================= */

.quiz-shell { max-width: 700px; margin: 0 auto; padding: 40px 0 80px; }

.progress { margin-bottom: 30px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); margin-bottom: 9px; }
.progress-track { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); transition: width .35s cubic-bezier(.4,0,.2,1); }

.quiz-step { display: none; animation: fadeUp .34s ease; }
.quiz-step.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.quiz-step h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 8px; }
.quiz-step .step-sub { color: var(--text-soft); margin: 0 0 28px; font-size: 15px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--text-dim); margin-top: 7px; }

.input, .textarea, .select {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
    transition: border-color .16s, box-shadow .16s; font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 90, .14);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }

.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.option {
    padding: 13px 15px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14.5px;
    background: var(--surface); border: 1px solid var(--line-soft); text-align: left;
    transition: border-color .16s, background .16s, transform .12s;
}
.option:hover { border-color: var(--line); transform: translateY(-1px); }
.option.is-selected { border-color: var(--gold); background: rgba(212, 168, 90, .09); color: var(--gold-soft); }

.char-count { text-align: right; font-size: 12px; color: var(--text-dim); margin-top: 6px; }

.quiz-nav { display: flex; gap: 12px; margin-top: 34px; }
.quiz-nav .btn-primary { flex: 1; }

.field-error { color: var(--danger); font-size: 13px; margin-top: 8px; display: none; }
.field-error.is-visible { display: block; }

.summary-list { display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.summary-row { display: flex; gap: 14px; padding: 13px 16px; background: var(--surface); font-size: 14.5px; }
.summary-row dt { color: var(--text-dim); flex: 0 0 140px; margin: 0; }
.summary-row dd { margin: 0; flex: 1; }

/* =========================================================================
   PÁGINA DA LETRA
   ========================================================================= */

.page-shell { max-width: 780px; margin: 0 auto; padding: 44px 0 90px; }
.page-shell--wide { max-width: 900px; }

.order-tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    border-radius: 999px; font-size: 12.5px; background: var(--surface-2);
    border: 1px solid var(--line-soft); color: var(--text-soft); margin-bottom: 18px;
}

.lyrics-sheet {
    background: linear-gradient(170deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 34px 30px; box-shadow: var(--shadow);
}
.lyrics-title { font-family: var(--serif); font-size: clamp(23px, 3vw, 30px); text-align: center; margin: 0 0 6px; }
.lyrics-sub { text-align: center; color: var(--text-dim); font-size: 13px; margin: 0 0 26px; }
.lyrics-body {
    white-space: pre-wrap; font-size: 16px; line-height: 2; text-align: center;
    color: var(--text); font-family: var(--serif);
    max-height: 460px; overflow-y: auto; padding-right: 6px;
}
.lyrics-body::-webkit-scrollbar { width: 5px; }
.lyrics-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.action-row .btn { flex: 1; min-width: 190px; }

.revise-box { margin-top: 20px; display: none; }
.revise-box.is-open { display: block; }

/* =========================================================================
   PÁGINA DA MÚSICA (PRÉVIA)
   ========================================================================= */

.status-banner {
    display: flex; gap: 14px; align-items: center; padding: 16px 20px;
    border-radius: var(--radius-sm); border: 1px solid var(--line-soft);
    background: var(--surface); margin-bottom: 26px; font-size: 14.5px;
}
.status-banner.is-ok { border-color: rgba(74, 222, 128, .3); background: rgba(74, 222, 128, .07); }
.status-banner.is-warn { border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .07); }
.status-banner.is-error { border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .07); }

.spinner {
    width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%;
    border: 2px solid var(--line-soft); border-top-color: var(--gold);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.track-card {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
}
.track-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.track-badge {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(212,168,90,.24), rgba(212,168,90,.07));
    border: 1px solid var(--line); font-size: 21px;
}
.track-name { font-weight: 600; font-size: 16px; }
.track-meta { font-size: 12.5px; color: var(--text-dim); }
.track-card audio { width: 100%; margin-top: 4px; border-radius: 10px; }

.locked-note {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
    font-size: 13px; color: var(--text-dim);
}

/* Oferta */
.offer {
    border-radius: 22px; padding: 34px 28px; margin-top: 34px;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(212, 168, 90, .13), rgba(212, 168, 90, .03));
}
.offer-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; background: var(--gold); color: #17110A; margin-bottom: 16px;
}
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; flex-wrap: wrap; }
.price-old { color: var(--text-dim); text-decoration: line-through; font-size: 17px; }
.price-now { font-family: var(--serif); font-size: clamp(38px, 6vw, 52px); color: var(--gold); line-height: 1; }
.price-note { color: var(--text-soft); font-size: 14px; }

.benefits { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 11px; }
.benefits li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.benefits li::before { content: '✓'; color: var(--gold); font-weight: 700; flex: 0 0 auto; }

.countdown { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gold); }

/* Modal PIX */
.modal {
    position: fixed; inset: 0; z-index: 200; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(4, 3, 6, .82); backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal-card {
    width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; padding: 30px 26px; text-align: center;
    animation: fadeUp .26s ease;
}
.modal-close { position: absolute; top: 16px; right: 18px; background: none; border: none; color: var(--text-dim); font-size: 26px; cursor: pointer; line-height: 1; }
.qr-holder { background: #fff; border-radius: 16px; padding: 14px; display: inline-block; margin: 18px 0; }
.qr-holder img, .qr-holder canvas { width: 208px; height: 208px; display: block; }

.copy-box { display: flex; gap: 8px; margin: 14px 0 6px; }
.copy-box input {
    flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--radius-sm);
    background: var(--bg-2); border: 1px solid var(--line-soft); font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-soft);
}

.pay-waiting { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--text-dim); margin-top: 16px; }

/* =========================================================================
   MEUS PEDIDOS
   ========================================================================= */

.order-row {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
    transition: border-color .16s;
}
.order-row:hover { border-color: var(--line); }
.order-row-main { flex: 1; min-width: 200px; }
.order-row-title { font-family: var(--serif); font-size: 18px; margin: 0 0 4px; }
.order-row-meta { font-size: 13px; color: var(--text-dim); }

.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--line-soft); color: var(--text-soft);
}
.badge.is-paid   { background: rgba(74, 222, 128, .12);  border-color: rgba(74, 222, 128, .3);  color: #86EFAC; }
.badge.is-ready  { background: rgba(212, 168, 90, .12);  border-color: var(--line);             color: var(--gold-soft); }
.badge.is-wait   { background: rgba(251, 191, 36, .1);   border-color: rgba(251, 191, 36, .26); color: #FCD34D; }
.badge.is-error  { background: rgba(248, 113, 113, .1);  border-color: rgba(248, 113, 113, .28);color: #FCA5A5; }

.empty-state { text-align: center; padding: 60px 24px; color: var(--text-dim); }
.empty-state .icon { font-size: 44px; margin-bottom: 14px; }

/* ---------- Toast ---------- */

.toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
    background: var(--surface-2); border: 1px solid var(--line);
    padding: 13px 22px; border-radius: 999px; font-size: 14px;
    opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s; z-index: 300;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Conteúdo legal ---------- */

.legal { max-width: 760px; margin: 0 auto; padding: 44px 0 80px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text-soft); font-size: 15.5px; }

@media (max-width: 620px) {
    .section { padding: 62px 0; }
    .lyrics-sheet { padding: 26px 20px; }
    .offer { padding: 26px 20px; }
    .action-row .btn { min-width: 100%; }
    .summary-row { flex-direction: column; gap: 3px; }
    .summary-row dt { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   BALÕES — depoimentos em prints de WhatsApp
   ========================================================================= */

.wa-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }

.wa-phone {
    background: #0E1418;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.wa-topbar {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 15px; background: #1F2C33;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.wa-avatar {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 600; font-size: 15px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep)); color: #17110A;
}
.wa-who { min-width: 0; flex: 1; }
.wa-name { font-size: 14.5px; font-weight: 600; color: #E9EDEF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-status { font-size: 11.5px; color: #8696A0; }

.wa-body {
    padding: 16px 13px 18px;
    display: flex; flex-direction: column; gap: 9px;
    background-color: #0B141A;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 168, 90, .04) 0 2px, transparent 2px),
        radial-gradient(circle at 70% 65%, rgba(212, 168, 90, .04) 0 2px, transparent 2px);
    background-size: 130px 130px;
    min-height: 150px;
}

.wa-msg {
    max-width: 82%; padding: 8px 11px 6px; border-radius: 9px;
    font-size: 14.2px; line-height: 1.5; position: relative;
    color: #E9EDEF; word-wrap: break-word;
}
.wa-msg.them { align-self: flex-start; background: #202C33; border-top-left-radius: 2px; }
.wa-msg.me   { align-self: flex-end;   background: #005C4B; border-top-right-radius: 2px; }

.wa-meta {
    display: block; text-align: right; font-size: 10.5px;
    color: rgba(233, 237, 239, .55); margin-top: 3px;
}
.wa-check { color: #53BDEB; letter-spacing: -2px; margin-left: 3px; }

.wa-audio {
    display: flex; align-items: center; gap: 9px;
    min-width: 190px; padding-top: 2px;
}
.wa-audio-btn {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 11px;
    background: rgba(255, 255, 255, .12); color: #E9EDEF;
}
.wa-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 22px; }
.wa-wave i { flex: 1; background: rgba(233, 237, 239, .4); border-radius: 1px; display: block; }
.wa-time { font-size: 11px; color: rgba(233, 237, 239, .6); }

.wa-caption { padding: 11px 15px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 12.5px; color: var(--text-dim); background: #0E1418; }

/* =========================================================================
   BALÕES — formulário em estilo conversa
   ========================================================================= */

.chat-shell { max-width: 680px; margin: 0 auto; padding: 26px 0 0; }

.chat-window {
    display: flex; flex-direction: column; gap: 12px;
    padding: 22px 4px 12px;
    min-height: 340px;
}

.chat-row { display: flex; animation: bubbleIn .32s cubic-bezier(.2, .8, .3, 1); }
.chat-row.them { justify-content: flex-start; }
.chat-row.me   { justify-content: flex-end; }

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.bubble {
    max-width: 78%; padding: 13px 17px; border-radius: 18px;
    font-size: 15.5px; line-height: 1.55;
}
.chat-row.them .bubble {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-bottom-left-radius: 5px; color: var(--text);
}
.chat-row.me .bubble {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #17110A; border-bottom-right-radius: 5px; font-weight: 500;
}
.bubble small { display: block; margin-top: 5px; font-size: 13px; opacity: .72; font-weight: 400; }

.chat-avatar {
    width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
    display: grid; place-items: center; font-size: 15px; margin-right: 9px;
    background: rgba(212, 168, 90, .12); border: 1px solid var(--line); align-self: flex-end;
}

.typing { display: flex; gap: 4px; padding: 4px 2px; }
.typing i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim);
    animation: typingDot 1.3s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typingDot {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30%           { opacity: 1;  transform: translateY(-4px); }
}

.chat-answer {
    position: sticky; bottom: 0; z-index: 5;
    background: linear-gradient(to top, var(--bg) 74%, transparent);
    padding: 16px 0 24px;
}
.chat-answer[hidden] { display: none; }

.chat-options { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.chat-chip {
    padding: 11px 18px; border-radius: 999px; cursor: pointer; font-size: 14.5px;
    background: var(--surface); border: 1px solid var(--line-soft); color: var(--text);
    transition: border-color .15s, background .15s, transform .12s;
}
.chat-chip:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-1px); }
.chat-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row .input, .chat-input-row .textarea { flex: 1; border-radius: 16px; }
.chat-send {
    width: 50px; height: 50px; flex: 0 0 50px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
    color: #17110A; font-size: 19px; display: grid; place-items: center;
    transition: transform .15s;
}
.chat-send:hover:not(:disabled) { transform: scale(1.06); }
.chat-send:disabled { opacity: .45; cursor: not-allowed; }

.chat-back {
    background: none; border: none; color: var(--text-dim); cursor: pointer;
    font-size: 13px; padding: 6px 0; text-align: left;
}
.chat-back:hover { color: var(--gold); }

.chat-error { color: var(--danger); font-size: 13.5px; margin: 0 0 10px; display: none; }
.chat-error.is-visible { display: block; }

/* =========================================================================
   BALÕES — status durante a gravação
   ========================================================================= */

.progress-chat { display: flex; flex-direction: column; gap: 11px; margin: 8px 0 4px; }

.progress-bubble {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 17px; border-radius: 16px; border-bottom-left-radius: 5px;
    background: var(--surface); border: 1px solid var(--line-soft);
    font-size: 14.5px; align-self: flex-start; max-width: 92%;
    animation: bubbleIn .34s cubic-bezier(.2, .8, .3, 1);
}
.progress-bubble.is-done { border-color: var(--line); color: var(--text-soft); }
.progress-bubble.is-done .progress-icon { background: rgba(74, 222, 128, .14); border-color: rgba(74, 222, 128, .3); }
.progress-bubble.is-current { border-color: var(--line); background: rgba(212, 168, 90, .07); }

.progress-icon {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 14px;
    background: rgba(212, 168, 90, .1); border: 1px solid var(--line-soft);
}

@media (max-width: 620px) {
    .bubble { max-width: 88%; }
    .wa-msg { max-width: 88%; }
    .chat-shell { padding-top: 14px; }
}

/* =========================================================================
   FUNIL — tela limpa, uma pergunta por vez, sem rolagem
   ========================================================================= */

body.funnel {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;                 /* nada de rolar até o rodapé */
}

.funnel-top {
    flex: 0 0 auto;
    padding: 18px 20px 0;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
}

.funnel-brand {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--serif); font-size: 17px; font-weight: 600;
    margin-bottom: 16px; color: var(--text);
}
.funnel-brand .brand-mark { width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; font-size: 14px; }

.funnel-progress { display: flex; align-items: center; gap: 12px; }
.funnel-progress .progress-track { flex: 1; height: 4px; }
.funnel-count { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Miolo: a pergunta ocupa o espaço disponível e centraliza */
.funnel-main {
    flex: 1 1 auto;
    min-height: 0;                    /* deixa o filho rolar sozinho */
    display: flex;
    flex-direction: column;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.funnel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px 0 8px;
    scrollbar-width: thin;
}
.funnel-scroll::-webkit-scrollbar { width: 4px; }
.funnel-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.funnel-step { animation: stepIn .3s cubic-bezier(.2, .8, .3, 1); }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.funnel-q {
    font-family: var(--serif);
    font-size: clamp(23px, 5.4vw, 31px);
    line-height: 1.25;
    margin: 0 0 10px;
    text-align: center;
}
.funnel-sub {
    color: var(--text-soft); font-size: 14.5px; line-height: 1.55;
    margin: 0 auto 26px; text-align: center; max-width: 440px;
}

/* Opções */
.funnel-options { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.funnel-options.is-wide { grid-template-columns: 1fr; }

.funnel-option {
    padding: 15px 18px; border-radius: 14px; cursor: pointer;
    font-size: 15px; text-align: center; color: var(--text);
    background: var(--surface); border: 1px solid var(--line-soft);
    transition: border-color .15s, background .15s, transform .1s;
}
.funnel-option:hover { border-color: var(--gold); background: rgba(212, 168, 90, .07); }
.funnel-option:active { transform: scale(.98); }
.funnel-option.is-selected { border-color: var(--gold); background: rgba(212, 168, 90, .11); color: var(--gold-soft); }
.funnel-option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.funnel-field .input,
.funnel-field .textarea {
    text-align: center; font-size: 17px; padding: 16px 18px; border-radius: 14px;
}
.funnel-field .textarea { text-align: left; font-size: 15.5px; min-height: 128px; }

/* Base: botão e voltar sempre visíveis, nunca precisam de rolagem */
.funnel-bottom {
    flex: 0 0 auto;
    max-width: 620px; width: 100%; margin: 0 auto;
    padding: 12px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 68%, transparent);
}
.funnel-error { color: var(--danger); font-size: 13.5px; text-align: center; margin: 0 0 10px; display: none; }
.funnel-error.is-visible { display: block; }

.funnel-actions { display: flex; align-items: center; gap: 12px; }
.funnel-actions .btn { flex: 1; }

.funnel-back {
    background: none; border: none; cursor: pointer; color: var(--text-dim);
    font-size: 22px; line-height: 1; padding: 14px 8px; flex: 0 0 auto;
}
.funnel-back:hover { color: var(--gold); }
.funnel-back[hidden] { display: none; }

.funnel-skip {
    display: block; margin: 12px auto 0; background: none; border: none;
    color: var(--text-dim); font-size: 13.5px; cursor: pointer; text-decoration: underline;
}
.funnel-skip:hover { color: var(--gold); }

.funnel-hint { font-size: 12.5px; color: var(--text-dim); text-align: center; margin: 10px 0 0; }
.funnel-counter { text-align: right; font-size: 12px; color: var(--text-dim); margin-top: 7px; }

/* Resumo final */
.funnel-summary {
    display: grid; gap: 1px; background: var(--line-soft);
    border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft);
    margin-bottom: 4px; text-align: left;
}
.funnel-summary-row { display: flex; gap: 14px; padding: 12px 16px; background: var(--surface); font-size: 14px; }
.funnel-summary-row dt { color: var(--text-dim); flex: 0 0 110px; margin: 0; }
.funnel-summary-row dd { margin: 0; flex: 1; }

/* Tela de "escrevendo sua letra" */
.funnel-working { text-align: center; padding: 20px 0; }
.funnel-working .spinner { width: 34px; height: 34px; border-width: 3px; margin: 0 auto 20px; }

@media (max-height: 680px) {
    .funnel-q { font-size: clamp(20px, 5vw, 25px); }
    .funnel-sub { margin-bottom: 18px; font-size: 13.5px; }
    .funnel-option { padding: 12px 15px; font-size: 14.5px; }
    .funnel-scroll { padding-top: 16px; }
}
