/* Estilo do site de vendas e do painel. Cores em variáveis, com tema claro e escuro. */
:root {
  /* Marca Vodek: azul-marinho #0B1F3A, verde-água #0E9F8E / #19C2A8, vermelho do ponto #E01E2E (brand/README.md) */
  --bg: #f7f9fa;
  --surface: #ffffff;
  --surface-2: #eef3f4;
  --text: #0b1f3a;
  --muted: #4a5a6e;
  --border: #dce3e6;
  --accent: #0b1f3a;
  --accent-text: #ffffff;
  --accent-soft: #e3f5f2;
  --link: #0b7a6e;
  --brand-teal: #0e9f8e;
  --ok: #0b7a6e;
  --warn: #a35f00;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 8px 24px rgba(11, 31, 58, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1628; --surface: #102441; --surface-2: #16304f; --text: #eaf2f5; --muted: #a7b6c6;
    --border: #22406a; --accent: #19c2a8; --accent-text: #0b1f3a; --accent-soft: #123b45;
    --link: #19c2a8; --brand-teal: #19c2a8; --ok: #4ade80; --warn: #fbbf24; --danger: #f87171; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #0a1628; --surface: #102441; --surface-2: #16304f; --text: #eaf2f5; --muted: #a7b6c6;
    --border: #22406a; --accent: #19c2a8; --accent-text: #0b1f3a; --accent-soft: #123b45;
    --link: #19c2a8; --brand-teal: #19c2a8; --ok: #4ade80; --warn: #fbbf24; --danger: #f87171; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1, h2 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-text);
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.55; cursor: default; filter: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--border); }
input, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 1px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }

/* Cabeçalho do site */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; font-size: 17px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex: none; background: url("/assets/favicon.svg") center / contain no-repeat; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a.link { color: var(--muted); text-decoration: none; padding: 6px 10px; }
@media (max-width: 640px) { .nav a.link { display: none; } }

/* Site de vendas */
.hero { padding: 72px 0 48px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
section { padding: 48px 0; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.feature h3 { margin-top: 4px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border: 2px solid var(--brand-teal); }
.plan .price { font-size: 2.2rem; font-weight: 800; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.plan li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--link); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }
footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }

/* Entrar */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.auth .card { width: 100%; max-width: 420px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 8px; }
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); margin: 12px 0; }
.notice.error { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }

/* Painel */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--border); background: var(--surface); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.side .logo { margin-bottom: 16px; }
.side a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.side a.on, .side a:hover { background: var(--surface-2); color: var(--text); }
.side .bottom { margin-top: auto; font-size: 13px; color: var(--muted); display: grid; gap: 8px; }
.main { padding: 24px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.main-head h1 { font-size: 1.6rem; margin: 0; }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .logo { margin: 0 12px 0 0; }
  .side .bottom { margin: 0 0 0 auto; }
  .main { padding: 16px; }
}
.folders { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.drop { border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); background: var(--surface); cursor: pointer; margin-bottom: 16px; }
.drop.over { border-color: var(--brand-teal); background: var(--accent-soft); }
.list { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.row .title { font-weight: 600; overflow-wrap: anywhere; }
.row .meta { font-size: 13px; color: var(--muted); }
.row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .row .actions { justify-content: flex-start; } }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.status.ready { color: var(--ok); }
.status.failed { color: var(--danger); }
.status.processing, .status.queued, .status.uploading { color: var(--warn); }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--brand-teal); width: 0; transition: width 0.3s; }
.meter { margin: 10px 0 18px; }
.meter .top { display: flex; justify-content: space-between; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; overflow-wrap: anywhere; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 50; }

/* Contador de uso compacto (tela de vídeos) */
.usage-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.usage-chip { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: center; min-width: 170px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; }
.usage-chip span:first-child { color: var(--muted); }
.usage-chip strong { justify-self: end; }
.usage-chip .bar { grid-column: 1 / -1; margin-top: 2px; }
.usage-chip:hover { border-color: var(--brand-teal); }

/* Páginas legais e rodapé */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin-top: 28px; }
.legal li { margin-bottom: 6px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 24px; line-height: 1.9; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-legal { margin-top: 24px; font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.4; }
label.check input { width: auto; margin-top: 2px; }
