/* ZARI Plataforma — DNA Visual */
:root {
  --z-dark:      #14494E;   /* azul petróleo */
  --z-mid:       #1a6570;   /* petróleo médio */
  --z-light:     #C5D8DA;   /* petróleo suave */
  --z-accent:    #C49A2B;   /* dourado ZARI */
  --z-accent-bg: #F5EBC5;   /* dourado suave */
  --z-text:      #1C1C1C;
  --z-off:       #FAF7F2;   /* off-white quente */
  --z-border:    #D5CEBF;
  --z-green:     #0f6e56;
  --z-green-bg:  #e1f5ee;
  --z-amber:     #854f0b;
  --z-amber-bg:  #faeeda;
  --z-red:       #a32d2d;
  --z-red-bg:    #fcebeb;
  --z-gray:      #6b7280;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--z-off);
  color: var(--z-text);
  font-size: 14px;
  line-height: 1.6;
}

/* ── BETA BANNER ── */
.beta-banner {
  background: var(--z-mid);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 16px;
  letter-spacing: .02em;
}
.beta-banner strong { font-weight: 600; }

/* ── TOPBAR ── */
.topbar {
  background: var(--z-dark);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
}
.topbar-logo span { color: var(--z-light); font-weight: 400; font-size: 11px; display: block; line-height: 1; margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* ── TOPBAR NAV ── */
.topbar-nav { display: flex; align-items: center; gap: 2px; margin-left: 20px; }
.topbar-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.topbar-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topbar-nav a.nav-active { color: #fff; background: rgba(255,255,255,.12); }
.topbar-nav a.nav-soon {
  color: rgba(255,255,255,.3);
  cursor: default;
  pointer-events: none;
}
.nav-soon-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--z-accent);
  background: rgba(196,154,43,.15);
  border: 1px solid rgba(196,154,43,.3);
  border-radius: 20px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}
.oab-tag {
  background: var(--z-accent);
  color: #2a1800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--z-mid);
  border: 2px solid var(--z-light);
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ── LAYOUT ── */
.page { max-width: 1160px; margin: 0 auto; padding: 28px 24px; }
.page-wide { max-width: 1100px; margin: 0 auto; padding: 28px 20px; }

/* ── STATS ROW ── */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}
.stat-num { font-size: 26px; font-weight: 700; color: var(--z-dark); }
.stat-lbl { font-size: 11px; color: var(--z-gray); margin-top: 2px; }

/* ── TIPO GRID ── */
.tipo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
@media(min-width:600px){ .tipo-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.tipo-card {
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  display: block;
}
.tipo-card:hover { border-color: var(--z-mid); box-shadow: 0 0 0 3px var(--z-light); }
.tipo-icon { font-size: 26px; margin-bottom: 10px; }
.tipo-name { font-size: 14px; font-weight: 600; color: var(--z-dark); }
.tipo-desc { font-size: 12px; color: var(--z-gray); margin-top: 3px; line-height: 1.4; }

/* ── SECTION TITLE ── */
.section-title { font-size: 13px; font-weight: 600; color: var(--z-dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }

/* ── CASO CARD ── */
.caso-card {
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s;
}
.caso-card:hover { border-color: var(--z-mid); }
.caso-title { font-size: 13px; font-weight: 600; color: var(--z-text); }
.caso-sub { font-size: 11px; color: var(--z-gray); margin-top: 2px; }
.caso-proto { font-size: 10px; color: var(--z-mid); font-weight: 600; margin-top: 3px; }
.caso-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── STATUS BADGE ── */
.badge {
  font-size: 10px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge-pronta      { background: var(--z-green-bg); color: var(--z-green); }
.badge-producao    { background: var(--z-light);    color: var(--z-mid); }
.badge-revisao     { background: var(--z-amber-bg); color: var(--z-amber); }
.badge-triagem     { background: #f3f4f6;            color: #374151; }
.badge-docs        { background: var(--z-amber-bg); color: var(--z-amber); }
.badge-entregue    { background: #f0fdf4;            color: #166534; }
.badge-cancelada   { background: var(--z-red-bg);   color: var(--z-red); }
.badge-aguardando  { background: #f3f4f6;            color: #374151; }

/* ── EMPTY STATE ── */
.empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 10px;
  color: var(--z-gray);
}
.empty .empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty h3 { font-size: 15px; font-weight: 600; color: var(--z-dark); margin-bottom: 6px; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--z-mid);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--z-dark); }
.btn-primary.large { padding: 13px 28px; font-size: 15px; width: 100%; justify-content: center; margin-bottom: 20px; }

.btn-secondary {
  background: #fff;
  color: var(--z-mid);
  border: 1px solid var(--z-border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s;
}
.btn-secondary:hover { border-color: var(--z-mid); }

/* ── FORM ── */
.form-card {
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 16px;
}
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--z-dark); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--z-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--z-text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--z-mid);
  box-shadow: 0 0 0 3px var(--z-light);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--z-gray); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── STEPPER ── */
.stepper { display: flex; gap: 0; margin-bottom: 28px; }
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  font-size: 11px;
  color: var(--z-gray);
}
.step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--z-border);
  z-index: 0;
}
.step:last-child::before { display: none; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--z-border);
  color: var(--z-gray);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  margin-bottom: 4px;
}
.step.active .step-dot { background: var(--z-mid); color: #fff; }
.step.done .step-dot   { background: var(--z-green); color: #fff; }
.step.active { color: var(--z-mid); font-weight: 600; }

/* ── LOGIN PAGE ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--z-off);
}
.login-card {
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--z-dark);
  letter-spacing: .08em;
}
.login-logo-sub {
  font-size: 12px;
  color: var(--z-gray);
  margin-top: 2px;
}

/* ── DOWNLOAD BTN ── */
.btn-download {
  background: var(--z-green-bg);
  color: var(--z-green);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── URGENTE TAG ── */
.urgente-tag {
  font-size: 9px;
  font-weight: 700;
  background: var(--z-red-bg);
  color: var(--z-red);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── TIMELINE ── */
.timeline { list-style: none; padding: 0; }
.timeline li {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 5px; top: 20px;
  width: 2px; bottom: 0;
  background: var(--z-border);
}
.timeline li:last-child::before { display: none; }
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.tl-text { font-size: 12px; color: var(--z-text); }
.tl-time { font-size: 10px; color: var(--z-gray); margin-top: 2px; }

/* ── DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0; top: 40px;
  background: #fff;
  border: 0.5px solid var(--z-border);
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  z-index: 100;
  overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--z-text);
  text-decoration: none;
}
.nav-dropdown-menu a:hover { background: var(--z-off); }
.nav-dropdown-menu .sep { border-top: 0.5px solid var(--z-border); }

/* ── WHATSAPP FAB ── */
.zari-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,.35);
  z-index: 999;
  transition: transform .15s, box-shadow .15s;
}
.zari-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(37,211,102,.45);
}

/* ── CARD SUPORTE TIA ── */
.suporte-card {
  background: var(--z-off);
  border: 1px solid var(--z-border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.suporte-card-info { font-size: 13px; }
.suporte-card-info strong { color: var(--z-dark); font-size: 14px; display: block; margin-bottom: 3px; }
.suporte-card-info span { color: var(--z-gray); }
.suporte-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-suporte-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #fff;
  border-radius: 8px; padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.btn-suporte-email {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--z-light); color: var(--z-dark);
  border: 1px solid var(--z-border);
  border-radius: 8px; padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
}

/* ── PERFIL ── */
.perfil-section {
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: 10px;
  padding: 20px 24px;
}
.perfil-field {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--z-border);
}
.perfil-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--z-gray);
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 140px;
  flex-shrink: 0;
}
.perfil-value {
  font-size: 14px;
  color: var(--z-text);
}
.code-badge {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  background: var(--z-light);
  color: var(--z-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── SUPORTE PAGE ── */
.suporte-option {
  background: #fff;
  border: 1px solid var(--z-border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.suporte-option-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.suporte-option-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--z-dark);
}
.suporte-option-desc {
  font-size: 13px;
  color: var(--z-gray);
  line-height: 1.55;
}
.suporte-option-meta {
  font-size: 11px;
  color: var(--z-mid);
  font-weight: 600;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 0.5px solid var(--z-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--z-dark);
  cursor: pointer;
  user-select: none;
  gap: 12px;
}
.faq-question:hover { background: var(--z-off); }
.faq-arrow {
  font-size: 12px;
  color: var(--z-gray);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px 20px;
  font-size: 13px;
  color: var(--z-gray);
  line-height: 1.65;
}
.faq-item.open .faq-answer { display: block; }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVO MOBILE — ZARI Platform · v1.0 · 07/06/2026
   Breakpoint: 768px · Touch targets mínimos: 44px (WCAG 2.5.5)
   ══════════════════════════════════════════════════════════════ */

/* ── Hamburguer button (sempre no DOM, visível só em mobile) ── */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background .15s;
  margin-left: 8px;
}
.hamburger-btn:hover { background: rgba(255,255,255,.12); }

/* ── Menu mobile overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--z-dark);
  z-index: 9999;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  flex-shrink: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  padding: 10px;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
  transition: background .15s, color .15s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover { background: rgba(255,255,255,.1); color: #fff; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  flex: 1;
}
.mobile-menu-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0 24px;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .12s;
}
.mobile-menu-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-menu-links a.nav-active { color: var(--z-accent); }
.mobile-sep {
  border: none;
  border-top: 1px solid rgba(255,255,255,.12);
  margin: 6px 0;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── Topbar ── */
  .topbar { padding: 0 14px; }
  .topbar-nav { display: none; }
  .hamburger-btn { display: flex; }

  /* ── Layout ── */
  .page { padding: 16px 14px; }
  .page-wide { padding: 16px 14px; }

  /* ── Form row → empilha verticalmente ── */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* ── Form card ── */
  .form-card { padding: 18px 14px; }

  /* ── Inputs, selects — touch targets ≥ 44px ── */
  .form-input,
  .form-select {
    min-height: 44px;
    padding: 11px 12px;
    font-size: 15px;
  }
  .form-textarea { font-size: 15px; }

  /* ── Botões — touch targets ≥ 44px ── */
  .btn-primary  { min-height: 44px; padding: 11px 20px; }
  .btn-secondary { min-height: 44px; padding: 11px 18px; }
  .btn-download { min-height: 40px; }

  /* ── Stats — 2 colunas (3 → 2) ── */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row .stat-card:last-child { grid-column: 1 / -1; }

  /* ── Stepper — compacto em mobile ── */
  .stepper { margin-bottom: 20px; }
  .step { font-size: 9px; }
  .step-dot { width: 24px; height: 24px; font-size: 10px; margin-bottom: 3px; }

  /* ── Caso card — stack vertical ── */
  .caso-card { flex-direction: column; align-items: flex-start; }
  .caso-right { width: 100%; justify-content: flex-start; margin-top: 8px; flex-wrap: wrap; }

  /* ── Perfil — label + value empilhados ── */
  .perfil-field { flex-direction: column; gap: 2px; align-items: flex-start; }
  .perfil-label { min-width: unset; }

  /* ── Login card ── */
  .login-card { padding: 24px 16px; }

  /* ── Suporte card ── */
  .suporte-card { flex-direction: column; }
  .suporte-card-actions { flex-direction: column; width: 100%; }
  .btn-suporte-wa,
  .btn-suporte-email { justify-content: center; text-align: center; }

  /* ── WhatsApp FAB ── */
  .zari-whatsapp-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; }

  /* ── Empty state ── */
  .empty { padding: 32px 16px; }

  /* ── Beta banner ── */
  .beta-banner { font-size: 11px; padding: 5px 12px; }
}
