/* ================================================
   RECLAMABEM — COMPONENTS
   Navbar · Botões · Cards · FAQ · Footer
   ================================================ */

/* ── NAVBAR ── */
.rb-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rb-nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--s-x); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.rb-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}

.rb-logo-icon {
  width: 32px; height: 32px;
  display: block;
}

.rb-logo-text {
  font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; color: var(--c-ink);
}
.rb-logo-text strong { color: var(--c-primary); font-weight: 800; }

/* Links desktop — ocultos em mobile */
.rb-nav-links { display: none; gap: 28px; }
.rb-nav-links a {
  font-size: 0.88rem; font-weight: 600; color: var(--c-ink-60);
  text-decoration: none; transition: color var(--t);
}
.rb-nav-links a:hover { color: var(--c-primary); }

.rb-nav-ctas  { display: none; align-items: center; gap: 10px; }
.rb-nav-login {
  font-size: 0.88rem; font-weight: 600;
  color: var(--c-ink-60); text-decoration: none; transition: color var(--t);
}
.rb-nav-login:hover { color: var(--c-primary); }

/* User info no nav */
.rb-nav-user {
  display: flex; flex-direction: column; align-items: flex-end;
  padding-right: 12px; border-right: 1px solid var(--c-ink-10);
}
.rb-nav-user-name {
  font-size: 0.88rem; font-weight: 600; color: var(--c-ink);
}
.rb-nav-user-plan {
  font-size: 0.75rem; font-weight: 500; color: var(--c-primary);
  text-transform: capitalize;
}

/* Botão de logout no nav */
.rb-nav-ctas form {
  margin: 0;
}
.rb-nav-ctas form button {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

/* Hamburger */
.rb-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px;
  background: none; border: none;
  padding: 10px; border-radius: var(--r-sm); flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.rb-hamburger span {
  display: block; height: 2px; background: var(--c-ink-60);
  border-radius: 2px; transition: all 0.25s var(--ease);
}

.rb-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.rb-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile */
.rb-mobile-menu {
  background: var(--c-bg); border-top: 1px solid var(--c-ink-5);
  padding: 16px var(--s-x) 24px;
}
.rb-mobile-menu[hidden] { display: none; }
.rb-mobile-menu ul { margin-bottom: 16px; }

.rb-mobile-link {
  display: flex; align-items: center;
  padding: 14px 0; font-size: 1rem; font-weight: 600; color: var(--c-ink-80);
  text-decoration: none; border-bottom: 1px solid var(--c-ink-5); min-height: 48px;
}

.rb-mobile-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.rb-mobile-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; font-size: 0.74rem; color: var(--c-ink-20); flex-wrap: wrap;
}

/* ── BOTÕES ── */
.rb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-md);
  font-family: var(--f-body); font-size: 0.96rem; font-weight: 600;
  text-decoration: none; border: none; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.rb-btn:active { transform: scale(0.98); }

.rb-btn-primary {
  background: var(--g-primary); color: white; box-shadow: var(--s-btn);
}
.rb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.45); color: white; }

.rb-btn-outline {
  background: transparent; color: var(--c-primary);
  border: 1.5px solid var(--c-p20);
}
.rb-btn-outline:hover { background: var(--c-p5); border-color: rgba(99,102,241,0.45); }

.rb-btn-dark { background: var(--c-ink); color: white; }
.rb-btn-dark:hover { background: #1a1a1a; transform: translateY(-1px); }

.rb-btn-sm   { padding: 10px 18px; font-size: 0.88rem; min-height: 40px; }
.rb-btn-lg   { padding: 17px 36px; font-size: 1.02rem; min-height: 54px; }
.rb-btn-full { width: 100%; }

/* ── CARDS ── */
.rb-card {
  background: var(--c-bg); border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--s-md);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.rb-card:hover {
  transform: translateY(-4px); box-shadow: var(--s-lg);
  border-color: var(--c-p20);
}

.rb-card-dark {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-lg); padding: 24px;
}

/* ── FAQ ── */
.rb-faq-item { border-bottom: 1px solid var(--c-ink-5); }

.rb-faq-btn {
  width: 100%; background: none; border: none; padding: 18px 0;
  font-family: var(--f-body); font-size: 0.96rem; font-weight: 600; color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; text-align: left; min-height: 56px;
  -webkit-tap-highlight-color: transparent;
}

.rb-faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--c-p8); color: var(--c-primary);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: transform var(--t), background var(--t);
}

.rb-faq-item.open .rb-faq-icon { transform: rotate(45deg); background: var(--c-p12); }

.rb-faq-answer {
  font-size: 0.93rem; color: var(--c-ink-40); line-height: 1.7;
  padding: 0 0 16px; display: none;
}
.rb-faq-answer.open { display: block; }

/* ── TABELAS ── */
.rb-table-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--s-md); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rb-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.rb-table th { padding: 12px 16px; font-size: 0.79rem; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: 0.05em; }
.rb-table td { padding: 11px 16px; font-size: 0.86rem; color: var(--c-ink-60); border-bottom: 1px solid var(--c-ink-5); }
.rb-table tr:last-child td { border-bottom: none; }

.rb-th-primary { background: var(--c-p8); color: var(--c-primary); }
.rb-th-gray    { background: var(--c-bg-alt); color: var(--c-ink-60); border-bottom: 1px solid var(--c-ink-5); }
.rb-td-hl      { background: var(--c-p5); color: var(--c-primary); font-weight: 600; }
.rb-td-total   { font-weight: 700; color: var(--c-ink); background: #f5f3ff; }
.rb-td-total.rb-td-hl { background: #ede9fe; color: var(--c-primary); }
.rb-td-yes     { color: var(--c-green); font-weight: 600; }
.rb-td-no      { color: var(--c-ink-10); }
.rb-td-rb      { background: var(--c-p5); }

/* ── FOOTER ── */
.rb-footer { background: var(--c-ink); padding: 56px var(--s-x) 28px; color: rgba(255,255,255,0.50); }
.rb-footer-top { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 48px; }

.rb-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rb-footer-logo { width: 36px; height: 36px; }
.rb-footer-brand-name { font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; color: white; }
.rb-footer-brand-desc { font-size: 0.85rem; line-height: 1.65; margin-bottom: 14px; }
.rb-footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.rb-footer-badge { font-size: 0.70rem; border-radius: 6px; padding: 3px 10px; font-weight: 700; }

.rb-footer-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255,255,255,0.28); margin-bottom: 14px; }
.rb-footer-links { display: flex; flex-direction: column; gap: 10px; }
.rb-footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.50); text-decoration: none; min-height: 28px; display: block; transition: color var(--t); }
.rb-footer-links a:hover { color: white; }

.rb-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.rb-footer-copy  { font-size: 0.79rem; }
.rb-footer-legal { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.rb-footer-legal a { font-size: 0.76rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color var(--t); }
.rb-footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* Desktop */
@media (min-width: 641px)  { .rb-footer-top { grid-template-columns: repeat(2,1fr); } }

@media (min-width: 1024px) {
  .rb-nav-links { display: flex; }
  .rb-nav-ctas  { display: flex; }
  .rb-hamburger { display: none; }
  .rb-mobile-menu { display: none !important; }
  .rb-footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .rb-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── PÁGINAS INTERNAS ── */
/* Hero interno (menor que o da home) */
.page-hero {
  padding: 72px var(--s-x) 52px;
  text-align: center;
  background: var(--g-hero);
  border-bottom: 1px solid var(--c-ink-5);
}

.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { color: var(--c-ink-40); line-height: 1.65; max-width: 580px; margin: 0 auto; }

/* Seção de conteúdo de texto (legal, recursos) */
.content-section {
  padding: var(--s-y) var(--s-x);
  max-width: 760px;
  margin: 0 auto;
}

.content-section h2 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin: 36px 0 12px;
  color: var(--c-ink);
}

.content-section h2:first-of-type { margin-top: 0; }
.content-section p  { font-size: 0.95rem; color: var(--c-ink-40); line-height: 1.75; margin-bottom: 16px; }
.content-section ul { padding-left: 20px; margin-bottom: 16px; }
.content-section li { font-size: 0.95rem; color: var(--c-ink-40); line-height: 1.75; padding: 3px 0; }
.content-section strong { color: var(--c-ink-60); }
.content-section a  { color: var(--c-primary); text-decoration: underline; }
.content-updated    { font-size: 0.80rem; color: var(--c-ink-20); margin-bottom: 32px; display: block; }

/* Formulários */
.rb-form { max-width: 420px; margin: 0 auto; }
.rb-form-group { margin-bottom: 18px; }
.rb-label-text { display: block; font-size: 0.86rem; font-weight: 600; color: var(--c-ink-60); margin-bottom: 7px; }

.rb-input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--c-ink-5); border-radius: var(--r-md);
  font-family: var(--f-body); font-size: 1rem; color: var(--c-ink);
  background: var(--c-bg); transition: border-color var(--t);
  -webkit-appearance: none; appearance: none;
}

.rb-input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-p12); }
.rb-input::placeholder { color: var(--c-ink-20); }
.rb-input-error { border-color: var(--c-red) !important; }
.rb-form-error { font-size: 0.82rem; color: var(--c-red); margin-top: 6px; display: block; }

.rb-form-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.rb-form-divider::before, .rb-form-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-ink-5); }
.rb-form-divider span { font-size: 0.80rem; color: var(--c-ink-20); white-space: nowrap; }

.rb-form-footer { text-align: center; margin-top: 20px; font-size: 0.87rem; color: var(--c-ink-40); }
.rb-form-footer a { color: var(--c-primary); font-weight: 600; text-decoration: none; }

/* Alert de erro/sucesso */
.rb-alert { border-radius: var(--r-md); padding: 13px 16px; font-size: 0.88rem; margin-bottom: 20px; line-height: 1.5; }
.rb-alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.rb-alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }

/* Breadcrumb */
.rb-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.80rem; color: var(--c-ink-20); margin-bottom: 28px; flex-wrap: wrap; }
.rb-breadcrumb a { color: var(--c-ink-40); text-decoration: none; }
.rb-breadcrumb a:hover { color: var(--c-primary); }
.rb-breadcrumb-sep { color: var(--c-ink-10); }

/* Feature card (recursos) */
.feature-card { text-align: center; padding: 32px 24px; }
.feature-icon { font-size: 2.8rem; margin-bottom: 16px; }
.feature-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--c-ink); margin-bottom: 10px; }
.feature-desc  { font-size: 0.90rem; color: var(--c-ink-40); line-height: 1.65; }

/* Dashboard card */
.dash-stat { text-align: center; padding: 24px; }
.dash-stat-num { font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; color: var(--c-primary); line-height: 1; margin-bottom: 6px; }
.dash-stat-label { font-size: 0.84rem; color: var(--c-ink-40); font-weight: 500; }

/* Contato form */
.contato-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.contato-info-title { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; color: var(--c-ink); margin-bottom: 16px; }
.contato-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contato-info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.contato-info-text { font-size: 0.88rem; color: var(--c-ink-40); line-height: 1.6; }
.contato-info-text strong { color: var(--c-ink-60); display: block; font-size: 0.84rem; margin-bottom: 2px; }

textarea.rb-input { resize: vertical; min-height: 120px; }

@media (min-width: 768px) {
  .contato-grid { grid-template-columns: 1fr 380px; }
}


/* ── NAVBAR — ESTADO DE SESSÃO ── */
.rb-nav-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rb-nav-user-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--c-ink);
  line-height: 1.2;
}

.rb-nav-user-plan {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-primary);
  background: var(--c-p8);
  border-radius: var(--r-pill);
  padding: 1px 8px;
  margin-top: 2px;
}

.rb-btn-ghost {
  background: transparent;
  color: var(--c-ink-40);
  border: 1.5px solid var(--c-ink-5);
  font-size: 0.88rem;
  min-height: 40px;
  padding: 10px 18px;
}

.rb-btn-ghost:hover {
  background: var(--c-ink-5);
  color: var(--c-ink);
  border-color: var(--c-ink-10);
}

/* Mobile user bar */
.rb-mobile-user-bar {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.rb-mobile-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-ink);
  display: block;
}

.rb-mobile-user-plan {
  font-size: 0.76rem;
  color: var(--c-primary);
  font-weight: 600;
  text-transform: capitalize;
}

/* Indicador de status no avatar (dashboard) */
.rb-status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}


/* ── MELHORIAS MOBILE E RESPONSIVIDADE ── */

/* Mobile: padding lateral mínimo */
@media (max-width: 767px) {
  .rb-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .content-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .page-hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Cards de auth 100% largura */
  .rb-form {
    max-width: 100%;
  }
  
  .rb-card {
    padding: 24px;
  }
  
  /* Botões full width em mobile */
  .rb-btn-full {
    width: 100%;
  }
  
  /* Títulos responsivos */
  h1 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  h2 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
  }
  
  /* Footer em 2 colunas */
  .rb-footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  
  /* Navbar mobile: esconder links desktop */
  .rb-nav-links {
    display: none !important;
  }
  
  .rb-nav-ctas {
    display: none !important;
  }
  
  .rb-hamburger {
    display: flex !important;
  }
}

/* Mobile muito pequeno: footer em 1 coluna */
@media (max-width: 480px) {
  .rb-footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  /* Badges e microcopy quebram em múltiplas linhas */
  .rb-footer-badges,
  .rb-mobile-trust {
    flex-wrap: wrap;
  }
  
  /* Formulários sem overflow */
  .rb-input,
  textarea.rb-input,
  select.rb-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Botões full width */
  .rb-btn {
    width: 100%;
    justify-content: center;
  }
  
  .rb-btn-sm {
    width: auto;
    min-width: 100px;
  }
}

/* Prevenir scroll horizontal */
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Melhorias visuais para páginas legais */
.content-section {
  min-height: 60vh;
}

.content-section h1 {
  margin-bottom: 16px;
}

.content-section h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-ink-5);
}

.content-section h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

/* Links nas páginas legais */
.content-section a {
  color: var(--c-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--t);
}

.content-section a:hover {
  color: var(--c-ink);
  text-decoration: underline;
}

/* Melhorar espaçamento de listas */
.content-section ul {
  margin-bottom: 24px;
}

.content-section li {
  margin-bottom: 8px;
}

/* Badge "Grátis para começar" */
.rb-badge-free {
  display: inline-block;
  background: var(--c-p8);
  color: var(--c-primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}

/* Caixa de dica amarela */
.rb-tip-box {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rb-tip-box-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.rb-tip-box-text {
  font-size: 0.87rem;
  color: #92400e;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* Microcopy abaixo de botões */
.rb-micro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--c-ink-20);
  flex-wrap: wrap;
  margin-top: 12px;
}

.rb-micro-dot {
  color: var(--c-ink-10);
}

/* Benefícios no topo do cadastro */
.rb-benefits {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.rb-benefit-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--c-ink-60);
}

.rb-benefit-check {
  color: var(--c-primary);
}

/* Selos de segurança */
.rb-security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.rb-security-badge {
  font-size: 0.74rem;
  color: var(--c-ink-20);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Ajustes para select */
select.rb-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Textarea específico */
textarea.rb-input {
  font-family: var(--f-body);
  line-height: 1.6;
  padding: 13px 16px;
}


/* ── AVISO LEGAL ── */
.rb-legal-disclaimer {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--r-md);
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--c-primary);
  margin: 24px 0;
}

.rb-legal-icon {
  font-size: 1.3rem; flex-shrink: 0;
  opacity: 0.8;
}

.rb-legal-text {
  font-size: 0.88rem; line-height: 1.6;
  color: var(--c-ink-80);
}

.rb-legal-text strong {
  font-weight: 700; color: var(--c-ink);
}

@media (max-width: 480px) {
  .rb-legal-disclaimer {
    padding: 14px 16px;
  }
  .rb-legal-text {
    font-size: 0.85rem;
  }
}


/* ========== DISCLAIMER LEGAL NO FOOTER ========== */
.rb-footer-disclaimer {
  background: rgba(239,68,68,0.1);
  border-left: 4px solid var(--c-danger);
  padding: 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.rb-footer-disclaimer strong {
  color: white;
  font-weight: 700;
}
