/* ===== MetaRemover — estilos =====
   Sem dependências externas, fontes do sistema (rápido e privado). */

:root {
  --bg: #f5f6fa;
  --card: #ffffff;
  --text: #1c1f2b;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-soft: #eef0ff;
  --border: #e5e7eb;
  --ok: #10b981;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(28, 31, 43, 0.08);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1rem;
}
.nav { display: flex; gap: 20px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }

/* Usuário logado no cabeçalho */
.header-user { display: flex; align-items: center; gap: 10px; }
.user-email { color: var(--muted); font-size: 0.85rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-logout:hover { background: #f3f4f6; color: var(--text); }
.header-auth { display: flex; align-items: center; gap: 10px; }
.btn-login {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-login:hover { background: var(--accent-2); }
.btn-pro {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Tela de login/cadastro */
/* Modal de login */
.auth-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  overflow-y: auto;
}
.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.auth-box {
  position: relative;
  z-index: 1;
  margin: auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-tab {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}
.auth-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.auth-box h2 { margin: 0 0 6px; }
.auth-sub { color: var(--muted); margin: 0 0 18px; }
.auth-box input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.auth-box input:focus { outline: none; border-color: var(--accent); }
.auth-hint { color: var(--muted); font-size: 0.85rem; margin: 12px 0 0; }
.auth-error { color: #ef4444; font-size: 0.9rem; margin: 10px 0 0; min-height: 1.2em; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 48px 0 28px; }
.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 12px;
  line-height: 1.2;
}
.accent { color: var(--accent); }
.hero-sub {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== App card ===== */
.app-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 48px;
}

/* Dropzone */
.dropzone {
  display: block;
  border: 2px dashed #c7cbe0;
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.dropzone-icon { font-size: 2.2rem; margin-bottom: 8px; }
.dropzone-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 4px; }
.dropzone-sub { color: var(--muted); margin: 0; }
.dropzone-formats { color: #9ca3af; font-size: 0.85rem; margin: 12px 0 0; }

/* Processando */
.processing { text-align: center; padding: 40px 0; }
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing p { color: var(--muted); }

/* Cota diária (upload) */
.quota { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.quota strong { color: var(--text); }

/* Limite diário atingido */
.locked { text-align: center; padding: 28px 0; }
.locked-icon { font-size: 2.4rem; }
.locked h2 { margin: 8px 0 4px; }
.locked p { color: var(--muted); margin: 6px 0; }
.locked strong { color: var(--text); }

/* Upsell de upgrade (plano ilimitado) */
.upgrade {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.upgrade-title { font-weight: 600; margin: 0 0 4px; color: var(--text); }
.upgrade-sub { margin: 0 0 14px; }
.upgrade-note { color: #9ca3af; font-size: 0.8rem; margin: 10px 0 0; }

/* Resultado */
.result-head { text-align: center; margin-bottom: 20px; }
.result-head h2 { margin: 0 0 4px; font-size: 1.5rem; }
.result-head p { color: var(--muted); margin: 0; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.result-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}
.result-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.result-item .meta {
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.result-item .meta strong { color: var(--ok); display: block; }
.result-item .meta .filename {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: 500;
}
.result-item.error .meta strong { color: #ef4444; }

/* Unlock (contador de espera) */
.unlock {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.unlock-info { text-align: center; }
.unlock-text { margin: 0 0 10px; color: var(--muted); }
.unlock-text strong { color: var(--text); font-size: 1.1rem; }
.unlock-hint { color: #9ca3af; font-size: 0.82rem; margin: -4px 0 10px; }

.progress {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width .3s linear;
}

/* Botões */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  transition: transform .1s, opacity .15s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-download {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  width: 100%;
}
.btn-download:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  width: 100%;
}
.btn-ghost:hover { background: #f3f4f6; color: var(--text); }

/* ===== Info / cards ===== */
.info { padding: 24px 0 40px; }
.info h2, .privacy h2 { text-align: center; font-size: 1.6rem; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.card h3 { margin: 0 0 8px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== Privacidade ===== */
.privacy {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 48px;
}
.privacy p { max-width: 640px; margin: 12px auto 0; color: var(--muted); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }

/* ===== Responsivo ===== */
@media (max-width: 480px) {
  .app-card { padding: 16px; }
  .dropzone { padding: 32px 14px; }
  .nav { display: none; }
  .user-email { display: none; }
}
