/* ===========================================================
   radarTXT — Design System (Editorial / Papel Quente)
   Identidade editorial em papel quente: terracota + azul empoeirado.
   Issue #87 — sem roxo, sem glow, sem gradiente, sem dark mode.
   =========================================================== */

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

:root {
    /* ===== Backgrounds — papel quente ===== */
    --bg-main: #F3EFE8;
    --bg-secondary: #E8E1D7;

    /* ===== Surfaces — marfim ===== */
    --surface: #FCF9F4;
    --surface-muted: #F0E9DF;

    /* ===== Structure ===== */
    --grid: #D8D1C7;
    --border: #CBC3B8;
    --border-strong: #B8AFA3;

    /* ===== Text — tinta editorial (nunca #000) ===== */
    --text-primary: #18232D;
    --text-secondary: #667078;
    --text-muted: #8A918F;
    --text-inverse: #FCF9F4;
    --text-on-brand: #FFFDF9;

    /* ===== Brand — terracota ===== */
    --brand: #B96A47;
    --brand-hover: #A95837;
    --brand-active: #8E452C;
    --brand-soft: #E9C8B8;
    --brand-softer: #F2DED4;

    /* ===== Accent — azul empoeirado (apoio, nunca compete) ===== */
    --accent: #718997;
    --accent-hover: #5E7684;
    --accent-soft: #DCE4E7;
    --accent-softer: #EBF0F1;

    /* ===== Semantic ===== */
    --success: #4F735E;
    --success-soft: #DCE7DF;
    --warning: #A6783E;
    --warning-soft: #EFE3CD;
    --danger: #9E4A3E;
    --danger-soft: #EED8D3;
    --info: #5E7684;
    --info-soft: #DCE4E7;

    /* ===== Shadows — secas (offset puro, sem desfoaxe/glow) ===== */
    --shadow-xs: 0 1px 0 rgba(24, 35, 45, 0.08);
    --shadow-sm: 3px 3px 0 rgba(24, 35, 45, 0.08);
    --shadow-md: 6px 6px 0 rgba(24, 35, 45, 0.10);
    --shadow-lg: 10px 10px 0 rgba(24, 35, 45, 0.12);

    /* ===== Focus ===== */
    --focus-ring: 0 0 0 3px rgba(113, 137, 151, 0.22);

    /* ===== Radius — modestos (editorial, sem exagero) ===== */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --transition: .2s cubic-bezier(.4, 0, .2, 1);

    /* ===== Grid de fundo (discreto, opacity ~0.05) ===== */
    --grid-line: rgba(24, 35, 45, 0.05);

    /* ===== Compatibilidade (nomes do tema anterior) =====
       Páginas com <style> embutido (radar/admin-vips) e regras
       antigas ainda referenciam estes nomes. Todos resolvem para a paleta
       editorial — nenhum roxo, glow ou gradiente sobrevive. */
    --primary: var(--brand);
    --primary-dark: var(--brand-hover);
    --primary-light: var(--brand);
    --secondary: var(--brand-soft);
    --pink: var(--brand-soft);
    --bg: var(--bg-main);
    --surface-2: var(--surface-muted);
    --text: var(--text-primary);
    --ring: var(--focus-ring);
    --shadow: var(--shadow-md);
    --grad: var(--brand);          /* antes gradiente roxo → terracota sólida */
    --grad-vivid: var(--brand);
    --grad-soft: var(--brand-softer);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }

/* Foco visível consistente no teclado para elementos interativos sem estilo
   próprio de foco (inputs/select/textarea já têm borda + --focus-ring). */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible,
.modal-close:focus-visible, .radar-tab:focus-visible, .video-select-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--text-secondary); }
.small { font-size: 13px; }

/* Fundo com grid discreto — papel quente + linhas finas. Aplicado em seções;
   textos ficam sempre sobre --surface (cards), então o grid nunca fica atrás
   de texto pequeno com baixo contraste. */
.hero,
.pricing,
.dashboard,
.auth-page {
    background-color: var(--bg-main);
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* CTA principal — terracota escura com sombra seca, sem gradiente/brilho. */
.btn-primary {
    background: var(--brand-hover);
    color: var(--text-on-brand);
    box-shadow: 0 5px 0 #7D3E29;
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-active);
    transform: translateY(2px);
    box-shadow: 0 3px 0 #7D3E29;
}
.btn-primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #7D3E29; }

/* Secundário — marfim + borda forte. */
.btn-outline {
    background: var(--surface);
    color: var(--brand-hover);
    border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-active); background: var(--brand-softer); }

/* Ghost — transparente, hover→ brand-softer. */
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--brand-softer); color: var(--brand-hover); }

.btn-large { padding: 15px 30px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
    padding: 0 24px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-wordmark {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-primary);
    transition: transform var(--transition);
}
.logo:hover .logo-wordmark { transform: translateX(1px); }

/* Logo mark — chip suave de terracota (sem gradiente/glow). */
.logo-mark {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    font-size: 21px; line-height: 1;
    background: var(--brand-softer);
    box-shadow: inset 0 0 0 1px var(--brand-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}
.logo:hover .logo-mark { transform: rotate(-4deg); box-shadow: inset 0 0 0 1px var(--brand); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.nav-link:hover { color: var(--brand-hover); }
.nav-link:hover::after { transform: scaleX(1); }
.user-name { color: var(--text-primary); font-weight: 600; }
.locale-menu { position: relative; display: inline-flex; white-space: nowrap; z-index: 20; }
.locale-menu__trigger {
    min-height: 38px; display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 11px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); color: var(--text-primary); font: inherit;
    font-size: 12px; font-weight: 800; letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 1px 3px rgb(15 23 42 / 8%);
}
.locale-menu__code { color: var(--brand); }
.locale-menu__trigger:hover { border-color: var(--brand); }
.locale-menu__trigger:focus-visible,
.locale-menu__option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.locale-menu__options {
    position: absolute; inset-block-start: calc(100% + 7px); inset-inline-end: 0;
    min-width: 175px; padding: 6px; border: 1px solid var(--border);
    border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-lg);
}
.locale-menu__options[hidden] { display: none; }
.locale-menu__option {
    width: 100%; min-height: 40px; display: flex; align-items: center;
    justify-content: space-between; gap: 16px; padding: 8px 10px; border: 0;
    border-radius: 8px; background: transparent; color: var(--text-primary);
    font: inherit; font-size: 13px; text-align: start; cursor: pointer;
}
.locale-menu__option small { color: var(--text-muted); font-size: 11px; font-weight: 700; }
.locale-menu__option:hover { background: color-mix(in srgb, var(--surface) 88%, var(--brand)); color: var(--brand-hover); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 24px 104px;
    overflow: hidden;
}
.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.hero-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.06;
    margin-bottom: 22px;
    color: var(--text-primary);
}
.hero-title span { color: var(--brand); }      /* destaque em terracota sólida (sem gradiente) */
.hero-eyebrow, .eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand-hover); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.hero-subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-note { font-size: 14px; color: var(--text-secondary); }

/* Hero entrance */
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-content { animation: heroIn .7s cubic-bezier(.4,0,.2,1) both; }
.hero-image { animation: heroIn .7s cubic-bezier(.4,0,.2,1) .12s both; }

.mockup-header { background: var(--surface-muted); padding: 14px 16px; display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: var(--danger); } .dot.yellow { background: var(--warning); } .dot.green { background: var(--success); }
.mockup-body { padding: 24px; }

/* ---------- Free trial widget (hero) ---------- */
.free-trial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: heroIn .7s cubic-bezier(.4,0,.2,1) .12s both;
}
.free-trial-card .mockup-header { align-items: center; }
.mockup-title { margin-left: 6px; font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.free-trial-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.free-trial-note { margin-top: 12px; text-align: center; }
/* Mensagens = callouts editoriais (fundo soft + barra lateral semântica). */
.free-trial-msg { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--text-secondary); border-radius: 10px; font-size: 13px; line-height: 1.55; background: var(--surface-muted); color: var(--text-primary); }
.free-trial-msg a { font-weight: 700; text-decoration: underline; }
.free-trial-msg--success { background: var(--success-soft); color: var(--success); border-left-color: var(--success); }
.free-trial-msg--error   { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.free-trial-msg--warning { background: var(--warning-soft); color: var(--warning); border-left-color: var(--warning); }
.free-trial-msg--warning a { color: var(--warning); }
.ft-spinner {
    width: 14px; height: 14px; border: 2px solid var(--border-strong);
    border-top-color: var(--brand); border-radius: 50%; display: inline-block;
    vertical-align: -2px; margin-right: 6px; animation: ftSpin .7s linear infinite;
}
@keyframes ftSpin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.pricing, .comparison, .product-proof, .value-cases, .faq, .final-cta { padding: 88px 24px; }
.section-title {
    text-align: center; font-size: clamp(28px, 4vw, 38px); font-weight: 800;
    letter-spacing: -.02em; margin-bottom: 12px; color: var(--text-primary);
}
.section-lead {
    text-align: center; font-size: 17px; color: var(--text-secondary);
    max-width: 560px; margin: 0 auto;
}
/* ---------- Pricing ---------- */
.pricing-card {
    position: relative;
    max-width: 420px; margin: 48px auto 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1120px; margin: 48px auto 0; align-items: stretch; }
.pricing-grid .pricing-card { width: 100%; max-width: none; margin: 0; position: relative; }
.pricing-card-featured { border: 2px solid var(--brand); box-shadow: 0 18px 45px rgba(181, 86, 54, .16); }
.pricing-card-featured .pricing-header { background: linear-gradient(145deg, var(--brand-softer), var(--surface)); }
.plan-heading { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.plan-tag { padding: 5px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 750; letter-spacing: .01em; }
.pricing-header p { margin-top: 8px; color: var(--text-secondary); }
.pricing-note { max-width: 920px; margin: 18px auto 0; text-align: center; color: var(--text-secondary); font-size: 14px; }
.channel-dump-proof { background: var(--surface); }
.channel-dump-shell { max-width: 1100px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.channel-dump-copy .eyebrow { color: var(--brand-hover); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.channel-dump-copy h2 { margin-top: 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.channel-dump-copy > p { margin-top: 18px; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.channel-dump-steps { margin: 24px 0; padding: 0; list-style: none; counter-reset: dump-step; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel-dump-steps li { counter-increment: dump-step; display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; font-size: 14px; }
.channel-dump-steps li::before { content: counter(dump-step); display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%; background: var(--brand); color: white; font-size: 12px; }
.channel-dump-visual { margin: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-muted); box-shadow: var(--shadow-lg); }
.channel-dump-visual img { width: 100%; height: auto; display: block; border-radius: 12px; }
.channel-dump-visual figcaption { margin-top: 10px; color: var(--text-muted); font-size: 12px; line-height: 1.45; }
@media (max-width: 800px) {
.channel-dump-shell { grid-template-columns: 1fr; gap: 30px; }
.channel-dump-steps { grid-template-columns: 1fr; }
}

.comparison { background: var(--surface-muted); }
.comparison-shell { max-width: 980px; }
.comparison-intro { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.comparison-intro .eyebrow { display: inline-block; margin-bottom: 12px; color: var(--brand-hover); font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.comparison-intro h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.comparison-intro p { margin-top: 18px; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.comparison-table { width: 100%; min-width: 600px; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table thead th { background: var(--surface-muted); font-size: 14px; color: var(--text-secondary); }
.comparison-table tbody th { width: 38%; font-size: 14px; }
.comparison-table tbody td { color: var(--text-secondary); font-size: 14px; }
.comparison-table .comparison-radar, .comparison-table td:last-child { background: var(--brand-softer); color: var(--text-primary); }
.comparison-table tr:last-child th, .comparison-table tr:last-child td { border-bottom: 0; }
.product-proof { background: var(--text-primary); color: var(--surface); }
.proof-shell { max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.proof-copy .eyebrow { color: #E8A88F; }
.proof-copy h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.proof-copy > p { margin-top: 18px; color: #D8D3CD; font-size: 17px; line-height: 1.7; }
.proof-list { list-style: none; display: grid; gap: 15px; margin-top: 26px; }
.proof-list li { display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--brand); }
.proof-list strong { color: #fff; }.proof-list span { color: #BEB8B1; font-size: 14px; }
.proof-steps li { grid-template-columns: 32px 1fr; gap: 12px; padding-left: 0; border-left: 0; align-items: start; }
.proof-steps li > b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--brand); border-radius: 50%; color: #fff; font-size: 13px; }
.proof-steps li > div { display: grid; gap: 3px; }
.result-preview { padding: 30px; color: var(--text-primary); background: var(--surface); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.28); transform: none; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .result-preview { transition: transform .25s ease, box-shadow .25s ease; }
    .result-preview:hover { transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.01); box-shadow: 0 30px 72px rgba(0,0,0,.34); }
}
.result-preview__top { display: flex; justify-content: space-between; color: var(--brand-hover); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.result-preview__source { margin-top: 28px; color: var(--text-muted); font-size: 13px; }.result-preview h3 { margin-top: 7px; font-size: 25px; line-height: 1.2; }
.result-preview__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }.result-preview__chips span { padding: 6px 9px; background: var(--brand-softer); border-radius: 7px; font-size: 12px; font-weight: 750; color: var(--brand-hover); }
.result-preview__summary { margin-top: 20px; color: var(--text-secondary); line-height: 1.7; }
.result-preview__actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--brand-hover); font-size: 13px; font-weight: 750; }
.value-cases { overflow: hidden; background: var(--surface-muted); }
.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { margin-top: 16px; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.use-case-card { min-height: 220px; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.use-case-card > span { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.use-case-card h3 { margin-top: 24px; font-size: 21px; }
.use-case-card p { margin-top: 11px; color: var(--text-secondary); line-height: 1.65; }
.faq { background: var(--surface-muted); }.faq-shell { max-width: 980px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }.faq-heading h2 { font-size: clamp(30px, 4vw, 42px); }.faq-heading p { margin-top: 14px; color: var(--text-secondary); line-height: 1.65; }
.faq-list { border-top: 1px solid var(--border); }.faq-list details { border-bottom: 1px solid var(--border); }.faq-list summary { position: relative; padding: 20px 38px 20px 0; cursor: pointer; list-style: none; font-weight: 750; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary::after { content: "+"; position: absolute; right: 5px; top: 17px; color: var(--brand); font-size: 24px; font-weight: 500; }.faq-list details[open] summary::after { content: "−"; }.faq-list details p { padding: 0 38px 20px 0; color: var(--text-secondary); line-height: 1.65; }
/* Header neutro (marfim) — o CTA é o único elemento terracota da seção. */
.pricing-header { height: 206px; display: flex; flex-direction: column; justify-content: center; background: var(--surface-muted); color: var(--text-primary); padding: 36px; text-align: center; border-bottom: 1px solid var(--border); }
.pricing-header h3 { font-weight: 600; color: var(--text-secondary); }
.price { font-size: 50px; font-weight: 900; margin-top: 10px; letter-spacing: -.02em; color: var(--brand-hover); }
.price span { font-size: 17px; font-weight: 500; color: var(--text-secondary); }
.pricing-body { padding: 32px; }
.pricing-features { list-style: none; margin-bottom: 24px; }
.pricing-features li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px dashed var(--border); color: var(--text-primary); }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 850; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-trial {
    text-align: center; padding: 14px; background: var(--brand-softer);
    border-radius: 12px; margin-bottom: 24px; font-size: 15px; color: var(--text-primary);
}
/* Center the CTA button within the pricing card (scoped — hero/nav untouched) */
.pricing-body .btn {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

.final-cta { background: var(--brand-softer); text-align: center; }
.final-cta__shell { max-width: 850px; }
.final-cta h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.035em; }
.final-cta .btn { margin-top: 28px; }
.final-cta p { margin-top: 16px; color: var(--text-secondary); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-secondary); color: var(--text-secondary); padding: 56px 24px 28px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-section h4 { color: var(--text-primary); margin-bottom: 16px; font-size: 15px; }
.footer-section p { color: var(--text-secondary); margin-bottom: 16px; }

/* ---------- Abas pill (atividade unificada #54 / RADAR) ---------- */
.radar-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.radar-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
.radar-tab.active {
    background: var(--brand);
    color: var(--text-on-brand);
    border-color: transparent;
}
.activity-origin { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.activity-preview { max-width: 760px; margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.time-saved { display: inline-flex; margin-top: 9px; padding: 4px 8px; border-radius: 7px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 750; }
.activity-pagination {
    display: flex; justify-content: space-between; align-items: center; gap: 18px;
    margin-top: 20px; padding: 16px 18px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--surface);
}
.activity-pagination[hidden] { display: none; }
.activity-pagination__summary { display: grid; gap: 3px; color: var(--text-secondary); font-size: 13px; }
.activity-pagination__summary strong { color: var(--text-primary); font-size: 14px; }
.activity-pagination__controls, .activity-pagination__pages { display: flex; align-items: center; gap: 7px; }
.activity-page-number {
    width: 36px; height: 36px; display: inline-grid; place-items: center;
    border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
    color: var(--text-secondary); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.activity-page-number:hover { border-color: var(--brand); color: var(--brand-active); }
.activity-page-number.active { border-color: var(--brand); background: var(--brand); color: var(--text-on-brand); }
.activity-page-number:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.activity-page-number:disabled { cursor: default; opacity: 1; }
.activity-pagination__ellipsis { min-width: 18px; text-align: center; color: var(--text-muted); }
.activity-loading { min-height: 140px; display: grid; place-items: center; padding: 32px 24px; }
.activity-loading p { margin: 0; }
.footer-section a { display: block; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; transition: color var(--transition), transform var(--transition); }
.footer-section a:hover { color: var(--brand-hover); transform: translateX(3px); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Auth pages ---------- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
    position: relative; overflow: hidden;
}
.auth-container { width: 100%; max-width: 420px; position: relative; z-index: 1; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 36px;
    box-shadow: var(--shadow-lg);
    animation: heroIn .6s cubic-bezier(.4,0,.2,1) both;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 24px; margin-bottom: 8px; color: var(--brand);
}
.auth-header p { color: var(--text-secondary); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.form-group input, .form-group textarea {
    padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
    font-size: 14px; font-family: inherit; color: var(--text-primary); background: var(--surface-muted);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: var(--surface); box-shadow: var(--focus-ring);
}
.form-group small { color: var(--text-secondary); font-size: 12px; }

/* Callouts semânticos (callout editorial: fundo soft + barra lateral). */
.error-message { padding: 12px 14px; background: var(--danger-soft); color: var(--danger); border: 1px solid var(--border); border-left: 3px solid var(--danger); border-radius: 10px; font-size: 14px; }
.success-message { padding: 16px; background: var(--success-soft); color: var(--success); border: 1px solid var(--border); border-left: 3px solid var(--success); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.info-message { padding: 16px; background: var(--info-soft); color: var(--info); border: 1px solid var(--border); border-left: 3px solid var(--info); border-radius: 12px; font-size: 14px; line-height: 1.6; }
.loading-message { display: flex; align-items: center; gap: 10px; padding: 16px; color: var(--text-secondary); font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-box { display: none; }
.state-box.active { display: block; animation: riseIn .4s cubic-bezier(.4,0,.2,1) both; }
.auth-footer { text-align: center; margin-top: 24px; color: var(--text-secondary); font-size: 14px; }
.auth-footer p { margin-top: 6px; }
.auth-footer a { color: var(--brand-hover); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ---------- Fale Conosco (contact) ---------- */
.auth-container--wide { max-width: 560px; }
.form-group select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text-primary);
    background: var(--surface-muted); transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667078' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 38px; cursor: pointer;
}
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
/* Honeypot anti-spam: oculto de humanos, acessível a bots. */
.hp-field {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.contact-msg { margin-top: 4px; padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--text-secondary); border-radius: 10px; font-size: 13px; line-height: 1.55; background: var(--surface-muted); color: var(--text-primary); }
.contact-msg a { font-weight: 700; text-decoration: underline; }
.contact-msg--success { background: var(--success-soft); color: var(--success); border-left-color: var(--success); }
.contact-msg--error   { background: var(--danger-soft); color: var(--danger); border-left-color: var(--danger); }
.contact-msg--warning { background: var(--warning-soft); color: var(--warning); border-left-color: var(--warning); }

/* ---------- Dashboard ---------- */
.header-dashboard { background: var(--surface); }
.dashboard {
    position: relative;
    padding: 36px 24px 64px;
    min-height: calc(100vh - 68px);
}
.dashboard .container { position: relative; z-index: 1; }

/* Generic entrance for cards (also fires for JS-injected nodes).
   fill-mode: backwards keeps hover transforms working after entrance. */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Banner de assinatura — callout semântico (sem gradiente/sombra colorida). */
.subscription-banner {
    background: var(--success-soft); color: var(--success);
    border: 1px solid var(--border); border-left: 3px solid var(--success);
    padding: 18px 24px; border-radius: var(--radius); margin-bottom: 28px;
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    animation: riseIn .5s cubic-bezier(.4,0,.2,1) backwards;
}
.subscription-banner.warning { background: var(--warning-soft); color: var(--warning); border-left-color: var(--warning); }

/* Card de destaque do módulo RADAR no dashboard (CTA p/ /radar). */
.radar-promo {
    background: var(--brand-softer);
    border: 1px solid var(--brand-soft);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    animation: riseIn .5s ease backwards;
}
.radar-promo-content { display: flex; align-items: center; gap: 18px; flex: 1 1 320px; min-width: 0; }
.radar-promo-icon {
    font-size: 34px;
    line-height: 1;
    flex-shrink: 0;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand);
    color: var(--text-on-brand);
    border-radius: 16px;
    box-shadow: 0 4px 0 var(--brand-active);
}
.radar-promo-text { min-width: 0; }
.radar-promo-text h3 { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary); }
.radar-promo-text p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin: 0; }
.radar-promo-text strong { color: var(--brand-active); font-weight: 700; }
.radar-promo .btn { flex-shrink: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }
.stat-card {
    position: relative; overflow: hidden;
    background: var(--surface); padding: 22px; border-radius: var(--radius);
    border: 1px solid var(--border); display: flex; gap: 16px; align-items: center;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: riseIn .5s cubic-bezier(.4,0,.2,1) backwards;
}
.stat-card::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--brand); opacity: 0; transition: opacity var(--transition);
}
.stat-card:nth-child(1) { animation-delay: .04s; }
.stat-card:nth-child(2) { animation-delay: .10s; }
.stat-card:nth-child(3) { animation-delay: .16s; }
.stat-card:nth-child(4) { animation-delay: .22s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.stat-card:hover::after { opacity: 1; }
.stat-icon {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--brand-softer);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: inset 0 0 0 1px var(--brand-soft);
}
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dashboard-header h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); }

.queues-list { display: grid; gap: 14px; }
.queue-card {
    background: var(--surface); padding: 20px 22px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-xs);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: riseIn .5s cubic-bezier(.4,0,.2,1) backwards;
}
.queue-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.queue-info h3 { font-size: 17px; margin-bottom: 6px; color: var(--text-primary); }
.queue-meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-secondary); flex-wrap: wrap; }
.queue-actions { display: flex; gap: 10px; align-items: center; }

/* Status pills (shared) — pastéis semânticos. */
.queue-status { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.queue-status.draft { background: var(--surface-muted); color: var(--text-secondary); }
.queue-status.pending { background: var(--info-soft); color: var(--info); }
.queue-status.processing { background: var(--warning-soft); color: var(--warning); }
.queue-status.completed { background: var(--success-soft); color: var(--success); }
.queue-status.failed { background: var(--danger-soft); color: var(--danger); }
.queue-status.cancelled { background: var(--surface-muted); color: var(--text-secondary); }

.empty-state {
    text-align: center; padding: 72px 24px; color: var(--text-secondary);
    background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
    animation: riseIn .5s cubic-bezier(.4,0,.2,1) backwards;
}
.empty-state h3 { color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ---------- Queue Detail ---------- */
.loading-state { text-align: center; padding: 80px 0; color: var(--text-secondary); }
.loading-state .spinner {
    width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%;
    border: 4px solid var(--surface-muted); border-top-color: var(--brand); animation: spin 1s linear infinite;
}

.breadcrumb { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.breadcrumb:hover { color: var(--brand-hover); }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.detail-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; color: var(--text-primary); }
.detail-header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 36px; max-width: 560px; }
.detail-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}
.detail-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.detail-stat-label { display: block; font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.detail-stat-value { font-size: 24px; font-weight: 800; color: var(--text-primary); }

.section-subtitle { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.videos-detail-list { display: grid; gap: 14px; }
.video-detail-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 22px; box-shadow: var(--shadow-xs);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    animation: riseIn .5s cubic-bezier(.4,0,.2,1) backwards;
    /* grid item: sem min-width:0 o conteúdo (título/transcrição longa) estoura a coluna */
    min-width: 0;
}
.video-detail-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.video-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.video-detail-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-primary); min-width: 0; overflow-wrap: anywhere; }
.vd-icon { font-size: 18px; flex-shrink: 0; }
.video-tag { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.video-tag.pending { background: var(--info-soft); color: var(--info); }
.video-tag.processing { background: var(--warning-soft); color: var(--warning); }
.video-tag.completed { background: var(--success-soft); color: var(--success); }
.video-tag.failed { background: var(--danger-soft); color: var(--danger); }

.transcription-box {
    background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px 20px; font-size: 15px; line-height: 1.75; color: var(--text-primary);
    max-height: 420px; overflow-y: auto; font-family: Inter, system-ui, sans-serif;
    overflow-wrap: anywhere; word-break: break-word;
}

.transcription-paragraphs { max-width: 78ch; margin: 0 auto; }
.transcription-paragraphs p { margin: 0 0 1.15em; white-space: normal; }
.transcription-paragraphs p:last-child { margin-bottom: 0; }
.transcription-raw { max-width: 78ch; margin: 0 auto; white-space: pre-wrap; }
.transcription-box:focus-within { outline: 3px solid var(--brand-soft); outline-offset: 2px; }
.transcription-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal {
    display: none; position: fixed; inset: 0; background: rgba(24, 35, 45, 0.45);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.modal.active { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 520px; width: 100%;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: popIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes popIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-large { max-width: 720px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 18px; color: var(--text-primary); }
.modal-close { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text-secondary); }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); gap: 16px; }
.price-summary { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-secondary); }
#pricePreview { font-weight: 800; font-size: 18px; color: var(--text-primary); }

/* Video selection */
.video-selection-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.video-select-item {
    display: flex; gap: 12px; padding: 12px; background: var(--surface-muted);
    border: 2px solid transparent; border-radius: 12px; cursor: pointer; transition: background var(--transition), border-color var(--transition);
}
.video-select-item:hover { background: var(--surface-muted); border-color: var(--border); }
.video-select-item.selected { background: var(--brand-softer); border-color: var(--brand); }
.video-select-item input[type="checkbox"] { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--brand); }
.video-select-thumb {
    width: 72px; height: 54px; background: var(--brand-softer); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.video-select-info { flex: 1; }
.video-select-title { font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }
.video-select-meta { font-size: 12px; color: var(--text-secondary); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--text-primary); color: var(--text-inverse); padding: 12px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 500; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition); z-index: 2000;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Scroll reveal (landing) ---------- */
.reveal-ready .reveal {
    opacity: 1;
    transform: none;
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .reveal.delay-1 { transition-delay: .08s; }
.reveal-ready .reveal.delay-2 { transition-delay: .16s; }
.reveal-ready .reveal.delay-3 { transition-delay: .24s; }
.reveal-ready .reveal.delay-4 { transition-delay: .32s; }

/* ---------- Hamburger menu (mobile) ---------- */
/* Botão hambúrguer — escondido no desktop, visível abaixo de 820px. */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 40px; height: 40px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.nav-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Headers autenticados carregam mais ações. Em tablets e notebooks estreitos,
   antecipa o drawer para impedir que ações à direita sejam apenas recortadas
   pelo overflow horizontal bloqueado do documento. */
@media (min-width: 821px) and (max-width: 1500px) {
    .header-dashboard .nav-toggle { display: inline-flex; }
    .header-dashboard .container { position: relative; flex-wrap: nowrap; }
    .header-dashboard .locale-menu { margin-left: auto; }
    .header-dashboard .nav {
        position: absolute;
        top: 100%; right: 16px; left: 16px;
        z-index: 200;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
        margin-top: 8px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.98);
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear .2s;
    }
    .header-dashboard .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition-delay: 0s;
    }
    .header-dashboard .nav .btn,
    .header-dashboard .nav .nav-link,
    .header-dashboard .nav .user-name {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        text-align: center;
    }
}

/* ---------- Responsive ---------- */
/* Tablet portrait e abaixo (900px): hero em uma coluna. */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; gap: 32px; }
    .hero-image { max-width: 480px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
}
/* Tablet estreito (820px): menu hambúrguer e conteúdo que pede uma coluna. */
@media (max-width: 820px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-header { height: auto; min-height: 180px; }
    .comparison-intro { margin-bottom: 26px; }
    .proof-shell, .faq-shell { grid-template-columns: 1fr; gap: 36px; }
    .result-preview { transform: none; padding: 24px; }
    .use-case-grid { grid-template-columns: 1fr; }
    .comparison-table-wrap { margin-inline: 0; overflow: visible; border-radius: 14px; }
    .comparison-table { display: block; min-width: 0; }
    .comparison-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .comparison-table tbody { display: grid; }
    .comparison-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
    .comparison-table tbody th { grid-column: 1 / -1; width: auto; padding: 14px 16px 9px; border: 0; background: var(--surface-muted); }
    .comparison-table tbody td { min-width: 0; padding: 10px 16px 15px; border: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
    .comparison-table tbody td::before { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .comparison-table tbody td:nth-child(2)::before { content: "YouTube"; text-transform: uppercase; }
    .comparison-table tbody td:nth-child(3)::before { content: var(--brand-wordmark, "radarTXT"); text-transform: none; letter-spacing: .02em; }
    .comparison-table tbody td:last-child { border-left: 1px solid var(--border); }
    /* Grid um pouco mais denso no mobile (20px). */
    .hero, .pricing, .dashboard, .auth-page { background-size: 20px 20px; }
    /* Mostra o hambúrguer. O toggle é colocado no header como sibling do .nav
       (ver HTML: <button class="nav-toggle"> fora do <nav>), e o .nav vira drawer
       dropdown que abre/fecha ao clicar no toggle. */
    .nav-toggle { display: inline-flex; }
    .header .container { position: relative; flex-wrap: nowrap; }
    .locale-menu { margin-left: auto; }
    .nav {
        position: absolute;
        top: 100%; right: 16px; left: 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        margin-top: 8px;
        z-index: 200;
        /* Escondido por padrão: escala + translucidez. */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(.98);
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition), visibility 0s linear .2s;
    }
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
        transition-delay: 0s;
    }
    /* Cada item do nav vira bloco full-width (empilhado). */
    .nav .btn, .nav .nav-link, .nav .user-name {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        justify-content: center;
    }
    .nav .user-name {
        color: var(--text-secondary);
        font-size: 13px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
        margin-bottom: 4px;
    }
}
/* Mobile grande (560px): hero, cards e modais compactos. */
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .header .container { padding: 0 12px; gap: 8px; }
    .dashboard { padding-inline: 0; }
    .header .logo { gap: 0; }
    .header .logo-mark { display: none; }
    .header .logo-wordmark { font-size: 19px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .detail-stats { grid-template-columns: 1fr; }
    .queue-card { flex-direction: column; align-items: flex-start; }
    .detail-header, .video-detail-head { flex-direction: column; }
    .video-detail-head { align-items: flex-start; }
    .video-detail-title { width: 100%; }
    /* Hero mais compacto no mobile. */
    .hero { padding: 48px 16px 56px; }
    .hero-title { font-size: 26px !important; line-height: 1.25; }
    .hero-subtitle { font-size: 15px; }
    .hero-content, .hero-image { min-width: 0; width: 100%; }
    .hero-cta, .hero-cta .btn { width: 100%; min-width: 0; }
    .hero-cta .btn, .free-trial-card .btn { white-space: normal; text-align: center; }
    /* Modal ocupa quase toda a tela no mobile. */
    .modal-content { margin: 8px; width: calc(100% - 16px); max-height: 92vh; overflow-y: auto; }
    /* Cards com padding menor. */
    .stat-card, .queue-card, .history-item, .channel-card { padding: 14px 16px; }
    .activity-pagination { align-items: stretch; flex-direction: column; padding: 14px; }
    .activity-pagination__summary { grid-template-columns: 1fr auto; align-items: center; }
    .activity-pagination__controls { justify-content: space-between; flex-wrap: wrap; }
    .activity-pagination__controls > .btn { min-height: 44px; flex: 1; justify-content: center; }
    .activity-pagination__pages { order: 3; width: 100%; justify-content: center; }
    .activity-page-number { width: 40px; height: 40px; }
    /* Card "Ative o RADAR" (#171): empilha conteúdo e CTA em largura total,
       evitando texto comprimido a uma palavra por linha. */
    .radar-promo { align-items: stretch; }
    .radar-promo-content { flex: 1 1 100%; width: 100%; }
    .radar-promo .btn { width: 100%; justify-content: center; }
}
/* Mobile pequeno (480px) — celulares menores e landscape apertado. */
@media (max-width: 480px) {
    .hero { padding: 36px 14px 44px; }
    .hero-title { font-size: 22px !important; }
    .hero-subtitle { font-size: 14px; }
    .stats-grid { grid-template-columns: 1fr; }
    .btn-large { padding: 12px 18px; font-size: 15px; }
    .pricing-card { margin: 0 -4px; }
}
/* Mobile muito pequeno (360px) — iPhone SE e equivalentes. */
@media (max-width: 360px) {
    .hero-title { font-size: 20px !important; }
    .logo-wordmark { font-size: 18px; }
    .container { padding: 0 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
}
.package-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.package-options .package-btn {
    min-width: 0;
    padding-inline: 8px;
}

/* O preço é um <small> dentro de .form-group. No pacote selecionado ele deve
   acompanhar o texto branco do botão, não o cinza secundário do formulário. */
.package-options .package-btn small {
    color: var(--text-secondary);
    font-weight: 700;
}

.package-options .package-btn.btn-primary small {
    color: var(--text-on-brand);
}

@media (max-width: 420px) {
    .package-options {
        gap: 6px;
    }

    .package-options .package-btn {
        padding-inline: 4px;
        font-size: 13px;
    }

    .package-options .package-btn small {
        font-size: 10px;
        white-space: nowrap;
    }
}
