@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM TOKENS (Paleta Esmeralda / Teal-Forest & Âmbar — Diferente do H2O)
   ========================================================================== */
:root {
  /* Paleta Neutra (Slate / Zinc) */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Superfícies & Layout */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #f1f5f9;

  /* Tipografia (Manrope per landing-page-design) */
  --font-main: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --ink: #0f172a;
  --ink-light: #334155;
  --muted: #64748b;
  --white: #ffffff;
  --line: #e2e8f0;
  --pale: #ecfdf5;

  /* Acento Primário Esmeralda / Teal (Distinto do Azul H2O) */
  --blue: #059669;
  --blue-hover: #047857;
  --blue-light: #ecfdf5;
  --blue-border: #a7f3d0;
  --cyan: #0d9488;
  --cyan-soft: #ccfbf1;
  --cyan-text: #065f46;

  /* Status Semafóricos Refinados */
  --green: #10b981;
  --green-soft: #ecfdf5;
  --green-text: #065f46;
  --green-border: #a7f3d0;

  --red: #ef4444;
  --red-soft: #fef2f2;
  --red-text: #991b1b;
  --red-border: #fecaca;

  --amber: #f97316;
  --amber-soft: #fff7ed;
  --amber-text: #9a3412;
  --amber-border: #fed7aa;

  /* Sombras Multicamadas Suaves e Tintadas */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-dropdown: 0 20px 35px -5px rgba(15, 23, 42, 0.16), 0 10px 15px -5px rgba(15, 23, 42, 0.06);

  /* Curvas e Raios Proporcionais */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transições Precisas (Curva B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.75rem;
}

.text-accent {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BRAND COMPONENT
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  color: var(--slate-900);
  white-space: nowrap;
  flex-shrink: 0;
}

.drop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.25);
  transition: all var(--transition-fast);
  flex-shrink: 0;
  overflow: hidden;
}

.brand:hover .drop {
  transform: scale(1.05);
}

.brand span:last-child {
  color: var(--blue);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.primary {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #047857 0%, #0f766e 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn.pill-btn {
  border-radius: var(--radius-full);
  padding: 8px 18px;
}

.btn.dark {
  background: var(--slate-900);
  color: #ffffff;
  border-color: var(--slate-800);
  box-shadow: var(--shadow-xs);
}

.btn.dark:hover {
  background: var(--slate-800);
  color: #ffffff;
}

.btn.outline {
  background: #ffffff;
  border-color: var(--slate-300);
  color: var(--slate-700);
  box-shadow: var(--shadow-xs);
}

.btn.outline:hover {
  background: var(--slate-50);
  border-color: #059669;
  color: #047857;
}

.btn.ghost {
  background: transparent;
  color: var(--slate-600);
}

.btn.ghost:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.btn.sm {
  padding: 7px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

.btn.icon-only {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 18px;
}

.icon-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--slate-500);
  font-size: 16px;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

/* ==========================================================================
   LANDING PAGE (Estrutura H2O com Paleta Esmeralda/Teal & Âmbar)
   ========================================================================== */
.landing {
  overflow-x: hidden;
  background: #ffffff;
  padding-top: 56px;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 max(calc((100vw - 1240px) / 2), 18px);
  background: rgba(255, 255, 255, 0.92);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 95;
  border-bottom: 1px solid var(--slate-200);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: height 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.topbar.scrolled {
  height: 44px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(203, 213, 225, 0.8);
}

.topbar.scrolled .brand {
  font-size: 0.96rem;
  gap: 7px;
}

.topbar.scrolled .drop {
  width: 26px;
  height: 26px;
  font-size: 13px;
  border-radius: 7px;
}

.topbar.scrolled .btn.sm {
  padding: 4px 11px;
  font-size: 0.74rem;
}

.navlinks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  gap: clamp(8px, 1.25vw, 18px);
  color: var(--slate-600);
  font-size: clamp(0.74rem, 0.82vw, 0.83rem);
  font-weight: 600;
  white-space: nowrap;
}

.navlinks a {
  transition: color var(--transition-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 2px;
}

.navlinks a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-login-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-700);
  padding: 5px 8px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.nav-login-link:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
}

/* Hero Section Centralizado (Estrutura idêntica à referência, cores Esmeralda/Teal) */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.28) 0%, transparent 50%),
    linear-gradient(180deg, #042f2e 0%, #065f46 48%, #0d9488 78%, #ecfdf5 95%, #ffffff 100%);
  padding: 72px 24px 56px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-wave-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    repeating-linear-gradient(-25deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 2px, transparent 2px, transparent 28px);
  background-size: 32px 32px, 100% 100%;
  pointer-events: none;
}

.hero-center-wrap {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ccfbf1;
  font-size: 0.775rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 720px;
  margin: 20px auto 16px;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(4, 47, 46, 0.25);
}

.hero-sub {
  color: rgba(240, 253, 250, 0.92);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 28px;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.hero-cta-btn {
  background: linear-gradient(90deg, #10b981 0%, #2dd4bf 100%);
  color: #042f2e;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: none;
}

.hero-cta-btn:hover {
  background: linear-gradient(90deg, #34d399 0%, #5eead4 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5);
}

.hero-cta-note {
  font-size: 0.75rem;
  color: rgba(240, 253, 250, 0.85);
  font-weight: 500;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-mini-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(167, 243, 208, 0.55);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(4, 47, 46, 0.1);
  color: var(--slate-900);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(4, 47, 46, 0.14);
}

.hero-mini-ico {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hero-mini-ico svg {
  display: block;
  width: 20px;
  height: 20px;
}

.hero-mini-ico.hero-ico-water {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
  color: #0284c7;
}

.hero-mini-ico.hero-ico-delivery {
  background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%);
  border: 1px solid #6ee7b7;
  color: #059669;
}

.hero-mini-ico.hero-ico-store {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  color: #d97706;
}

.hero-mini-ico.hero-ico-cash {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  border: 1px solid #c4b5fd;
  color: #7c3aed;
}

.hero-mini-card strong {
  display: block;
  font-size: 0.815rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
}

.hero-mini-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-top: 2px;
}

/* Sections Base */
.tinted {
  background: #f4fbf9;
  border-top: 1px solid #e2f2ee;
  border-bottom: 1px solid #e2f2ee;
}

.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 84px 24px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 14px 0 12px;
  color: var(--slate-900);
}

.section-head p {
  color: var(--slate-600);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Grid 4x3 de 12 Funcionalidades */
.feature-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card-v2 {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.feature-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #a7f3d0;
}

.feature-card-v2.featured {
  border: 2px solid #059669;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.1);
}

.feature-top-badge {
  position: absolute;
  top: -11px;
  left: 20px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-ico-box {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 19px;
  margin-bottom: 16px;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.22);
}

.feature-card-v2 h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--slate-900);
}

.feature-card-v2 p {
  color: var(--slate-500);
  font-size: 0.815rem;
  line-height: 1.55;
  margin: 0;
}

/* Mantém suporte a .feature-grid e .feature usados nas ferramentas/loja */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.feature .ico {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--slate-900);
}

.feature p {
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Split Showcases (Aplicativo e Loja Online com Mockup de Celular) */
.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.content-col h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 14px 0 14px;
  color: var(--slate-900);
}

.section-lead {
  color: var(--slate-600);
  font-size: 0.975rem;
  line-height: 1.65;
  margin: 0 0 26px;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.benefit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefit-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.benefit-row strong {
  display: block;
  font-size: 0.925rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 3px;
}

.benefit-row p {
  margin: 0;
  font-size: 0.825rem;
  color: var(--slate-500);
  line-height: 1.5;
}

.showcase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.showcase-footnote {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin: 12px 0 0;
}

/* Realistic Smartphone Mockup */
.mockup-col {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  background: #0f172a;
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
}

.phone-notch {
  width: 110px;
  height: 20px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  margin: 0 auto -10px;
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: #f8fafc;
  border-radius: 32px;
  padding: 24px 16px 18px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-200);
}

.phone-app-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.phone-app-user strong {
  display: block;
  font-size: 12px;
  color: var(--slate-900);
}

.phone-app-user span {
  display: block;
  font-size: 10px;
  color: var(--slate-500);
}

.phone-status-online {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.phone-progress-box {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 12px;
}

.phone-progress-bar {
  height: 6px;
  background: var(--slate-100);
  border-radius: 99px;
  overflow: hidden;
}

.phone-progress-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #059669, #10b981);
  border-radius: 99px;
}

.phone-main-btn {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.phone-filter-row {
  display: flex;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
}

.phone-filter-row span {
  flex: 1;
  text-align: center;
  padding: 6px;
  border-radius: 8px;
  background: var(--slate-200);
  color: var(--slate-600);
}

.phone-filter-row span.active {
  background: #ffffff;
  color: #059669;
  box-shadow: var(--shadow-xs);
}

.phone-order-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
}

.phone-order-card.active {
  border-left: 3px solid #059669;
  box-shadow: var(--shadow-sm);
}

.phone-order-id {
  font-weight: 800;
  color: var(--slate-900);
}

.phone-tag-rota {
  background: #ecfdf5;
  color: #059669;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
}

.phone-tag-wait {
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
}

.phone-order-addr {
  margin: 4px 0;
  color: var(--slate-600);
  font-size: 10.5px;
}

.phone-order-items {
  background: #f8fafc;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--slate-700);
  font-weight: 600;
  margin: 6px 0;
}

.phone-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid var(--slate-100);
}

.phone-order-foot strong {
  color: #059669;
  font-size: 12.5px;
}

/* Store Mockup Screen */
.store-mock-banner {
  background: linear-gradient(135deg, #064e3b 0%, #0d9488 100%);
  color: #ffffff;
  padding: 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-mock-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.store-mock-banner strong {
  display: block;
  font-size: 12.5px;
}

.store-mock-banner span {
  font-size: 10px;
  opacity: 0.9;
}

.store-mock-search {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 10.5px;
  color: var(--slate-400);
}

.store-mock-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-800);
  margin-top: 2px;
}

.store-mock-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.store-mock-promo-card {
  background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.promo-tag {
  font-size: 8.5px;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 99px;
}

.store-mock-promo-card strong {
  font-size: 11px;
  line-height: 1.2;
}

.promo-price {
  font-size: 13px;
  font-weight: 800;
}

.promo-btn {
  margin-top: 4px;
  background: #ffffff;
  color: #ea580c;
  text-align: center;
  padding: 4px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 800;
}

.store-mock-list-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-item-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.store-mock-list-item strong {
  display: block;
  font-size: 11px;
  color: var(--slate-900);
}

.store-mock-list-item span {
  font-size: 10px;
  color: var(--slate-500);
}

.store-plus-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff !important;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px !important;
}

/* Floating Notification Badges on Phone Mockups */
.phone-float-badge {
  position: absolute;
  bottom: 26px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  z-index: 3;
}

.phone-float-badge.right {
  right: -34px;
}

.phone-float-badge.left {
  left: -34px;
}

.float-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.phone-float-badge strong {
  display: block;
  font-size: 11.5px;
  color: var(--slate-900);
}

.phone-float-badge span {
  display: block;
  font-size: 10px;
  color: var(--slate-500);
}

/* Steps Conectados (Como Funciona) */
.steps-connected {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-connected-item {
  position: relative;
}

.step-top-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-ico-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
  flex-shrink: 0;
}

.step-big-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-200);
  letter-spacing: -0.03em;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #a7f3d0 0%, var(--slate-200) 100%);
  border-radius: 2px;
}

.step-connected-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 0 0 8px;
}

.step-connected-item p {
  font-size: 0.84rem;
  color: var(--slate-500);
  line-height: 1.55;
  margin: 0;
}

/* Plans (Planos e Preços com 10% de Desconto) */
.billing-toggle-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.billing-pill {
  display: inline-flex;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.billing-btn {
  border: none;
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--slate-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.billing-btn.active {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  box-shadow: var(--shadow-xs);
}

.billing-discount-tag {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
}

.billing-btn:not(.active) .billing-discount-tag {
  background: #ecfdf5;
  color: #059669;
}

.billing-subnote {
  font-size: 0.8rem !important;
  color: var(--slate-500) !important;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.plan {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 36px 28px 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.plan:hover {
  box-shadow: var(--shadow-lg);
  border-color: #a7f3d0;
}

.plan.popular {
  border: 2px solid #059669;
  box-shadow: 0 16px 38px rgba(5, 150, 105, 0.14);
  transform: translateY(-8px);
}

.plan-top-pill {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}

.plan-top-pill.dark {
  background: var(--slate-800);
  box-shadow: var(--shadow-xs);
}

.plan h3 {
  text-align: center;
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
}

.plan .desc {
  text-align: center;
  font-size: 0.825rem;
  color: var(--slate-500);
  min-height: 38px;
  line-height: 1.45;
  margin: 0;
}

.price-box {
  text-align: center;
  margin: 18px 0 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}

.price-old {
  font-size: 0.775rem;
  color: var(--slate-400);
  text-decoration: line-through;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2px 0 8px;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.price small {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: normal;
}

.price small.currency {
  font-size: 1.1rem;
  vertical-align: super;
  color: var(--slate-700);
}

.price-saving-pill {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.price-saving-pill.highlight {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.plan ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
  font-size: 0.835rem;
  color: var(--slate-600);
  margin: 8px 0 24px;
  flex: 1;
}

.plan li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}

.plan li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-guarantee-note {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 12px;
}

.plan .btn {
  width: 100%;
  border-radius: var(--radius-full);
  padding: 12px 20px;
}

/* Depoimentos */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-rating {
  color: #059669;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.885rem;
  line-height: 1.65;
  color: var(--slate-700);
  margin: 0 0 22px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.author-info b {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-900);
}

.author-info span {
  font-size: 0.76rem;
  color: var(--slate-500);
}

/* FAQ (Clean Accordion como na referência) */
.faq {
  max-width: 760px;
  margin: auto;
}

.faq details {
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  padding: 18px 4px;
  transition: all var(--transition-fast);
}

.faq details:first-child {
  border-top: 1px solid var(--slate-200);
}

.faq summary {
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--slate-900);
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '▾';
  color: var(--slate-400);
  font-size: 14px;
  transition: transform var(--transition-fast);
}

.faq details[open] summary::after {
  transform: rotate(180deg);
  color: #059669;
}

.faq details p {
  color: var(--slate-600);
  line-height: 1.65;
  font-size: 0.875rem;
  margin: 12px 0 0;
}

/* CTA Final */
.cta {
  background:
    radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.25), transparent 50%),
    linear-gradient(135deg, #042f2e 0%, #065f46 50%, #0d9488 100%);
  color: #ffffff;
  text-align: center;
  padding: 80px 24px;
}

.cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 14px;
}

.cta p {
  opacity: 0.92;
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 28px;
  color: #ecfdf5;
}

.cta-glass-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-size: 0.925rem;
  font-weight: 800;
  padding: 13px 32px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.cta-glass-btn:hover {
  background: #ffffff;
  color: #064e3b;
}

/* Rodapé Landing (5 Colunas Escuras) */
.footer {
  background: #0b131e;
  color: var(--slate-400);
  padding: 64px 24px 36px;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  max-width: 1160px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer .brand {
  color: #ffffff;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  transition: all var(--transition-fast);
}

.footer-socials a:hover {
  background: #059669;
  color: #ffffff;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.825rem;
  margin: 0 0 16px;
  font-weight: 800;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.825rem;
}

.footer-links-col a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-links-col a:hover {
  color: #2dd4bf;
}

.footer-bottom {
  max-width: 1160px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 0.775rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom strong {
  color: var(--slate-300);
}

/* ==========================================================================
   APP SHELL & NAVIGATION (SaaS Dashboard Profissional)
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  background: var(--bg-app);
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--slate-200);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 30;
}

.side-brand {
  padding: 6px 10px 20px;
}

.side-label {
  font-size: 0.685rem;
  color: var(--slate-400);
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 12px 10px 4px;
  text-transform: uppercase;
}

.side-label:not(:first-of-type) {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
}

.side-link {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 8.5px 12px;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.845rem;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 2px 0;
  transition: all var(--transition-fast);
}

.side-link:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.side-link.active {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
}

.side-link .navico {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: inherit;
}

.side-link .chevron {
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--slate-400);
}

.side-link.open .chevron {
  transform: rotate(180deg);
}

.badge-novo {
  margin-left: auto;
  background: #ccfbf1;
  color: #047857;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sub-menu {
  display: flex;
  flex-direction: column;
  padding-left: 24px;
  margin: 2px 0;
  border-left: 2px solid var(--slate-100);
  margin-left: 20px;
}

.sub-link {
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  color: var(--slate-500);
  font-size: 0.815rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.sub-link:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}

.sub-link.active {
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
}

.sub-link .bullet {
  font-size: 12px;
  color: var(--slate-400);
}

.sub-link.active .bullet {
  color: #059669;
}

.side-spacer {
  flex: 1;
}

.side-user {
  border-top: 1px solid var(--slate-200);
  padding: 14px 8px 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.815rem;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  font-weight: 800;
  font-size: 0.85rem;
}

.avatar.user-btn {
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.avatar.user-btn:hover {
  transform: scale(1.05);
}

/* App Topbar */
.main-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-top {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 32px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 25;
}

@keyframes bell-shake {
  0% { transform: rotate(0); }
  15% { transform: rotate(18deg); }
  30% { transform: rotate(-18deg); }
  45% { transform: rotate(12deg); }
  60% { transform: rotate(-12deg); }
  75% { transform: rotate(6deg); }
  90% { transform: rotate(-6deg); }
  100% { transform: rotate(0); }
}

.bell-ringing {
  animation: bell-shake 0.8s ease-in-out infinite !important;
  background: #ecfdf5 !important;
  color: #059669 !important;
  border-color: #a7f3d0 !important;
  position: relative;
}

.bell-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  padding: 2px 5px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.company-pill {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.815rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}

.app-content {
  padding: 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.page-title h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--slate-900);
}

.page-title p {
  color: var(--slate-500);
  margin: 4px 0 0;
  font-size: 0.845rem;
}

/* ==========================================================================
   METRIC CARDS & PANELS
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric, .panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.metric:hover {
  box-shadow: var(--shadow-sm);
}

.metric .label {
  font-size: 0.775rem;
  color: var(--slate-500);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric .value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.metric .hint {
  font-size: 0.75rem;
  color: var(--slate-400);
}

.metric.green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.metric.green .value {
  color: #166534;
}

.metric.orange {
  background: #fffbeb;
  border-color: #fde68a;
}
.metric.orange .value {
  color: #92400e;
}

.metric.blue {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.metric.blue .value {
  color: #047857;
}

.metric.pink {
  background: #fef2f2;
  border-color: #fecaca;
}
.metric.pink .value {
  color: #991b1b;
}

.panel {
  margin-bottom: 24px;
}

.panel h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--slate-900);
}

/* ==========================================================================
   TABLES (Alinhamento Tabular, Scroll Seguro e Hierarquia)
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  min-height: 440px;
  padding-bottom: 200px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-variant-numeric: tabular-nums;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.845rem;
  white-space: nowrap;
}

th {
  color: var(--slate-500);
  background: var(--slate-50);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--slate-200);
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: var(--slate-50);
}

tr:last-child td {
  border-bottom: 0;
}

tr.total-row {
  background: var(--slate-50);
  font-weight: 700;
}

tr.total-row td {
  border-top: 2px solid var(--slate-200);
  border-bottom: 0;
  color: var(--slate-900);
}

/* Badges / Status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.725rem;
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-600);
}

.status.paid, .status.delivered, .status.livre {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status.pending, .status.rota {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status.failed {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   FORMS & TOOLBAR
   ========================================================================== */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.field, select, textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 8.5px 12px;
  background: #ffffff;
  color: var(--slate-900);
  outline: none;
  font-size: 0.845rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field:focus, select:focus, textarea:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.toolbar .field, .toolbar select {
  width: auto;
  min-width: 160px;
}

.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-400);
}

.empty strong {
  display: block;
  color: var(--slate-700);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

/* ==========================================================================
   DELIVERIES KANBAN BOARD
   ========================================================================== */
.delivery-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.delivery-col {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.delivery-col h3 {
  font-size: 0.845rem;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-700);
}

.delivery-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
  cursor: grab;
  font-size: 0.815rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.delivery-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.delivery-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--slate-900);
}

.delivery-card p {
  color: var(--slate-600);
  margin: 4px 0;
}

.dropzone {
  outline: 2px dashed #059669;
  outline-offset: -3px;
  background: #ecfdf5;
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.modal {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--slate-200);
}

.modal.wide {
  width: min(650px, 100%);
}

.modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--slate-900);
}

.modal-body {
  padding: 22px 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--slate-700);
}

.form-group small {
  font-size: 0.725rem;
  color: var(--slate-400);
}

/* Modais de Venda e Configurações Específicas */
.inline-add-client-btn {
  background: transparent;
  border: none;
  font-size: 0.815rem;
  font-weight: 600;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  transition: color var(--transition-fast);
}

.inline-add-client-btn:hover {
  color: #047857;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.switch-label {
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--slate-700);
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--slate-300);
  transition: 0.2s var(--ease);
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.2s var(--ease);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #059669;
}

input:checked + .slider::before {
  transform: translateX(20px);
}

.product-add-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.product-select-wrap {
  flex: 1;
}

.qty-wrap {
  width: 76px;
}

.btn-add-item {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.btn-add-item:hover {
  background: var(--slate-800);
}

.sale-total-banner {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin: 18px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-200);
  font-variant-numeric: tabular-nums;
}

.divergence-section {
  border-top: 1px solid var(--slate-200);
  padding-top: 14px;
  margin-top: 10px;
}

.divergence-title {
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 8px;
}

.btn-divergence-add {
  background: none;
  border: none;
  color: #059669;
  font-size: 0.815rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.btn-divergence-add:hover {
  color: #047857;
}

/* ==========================================================================
   DROPDOWN POPOVER DE AÇÕES (Elevado, Sem Clipping e Responsivo)
   ========================================================================== */
.action-dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dropdown);
  padding: 6px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 9999;
  animation: fadeIn 0.15s ease-out;
}

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--slate-700);
  font-size: 0.815rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.action-dropdown-item:hover {
  background: var(--slate-100);
  color: var(--slate-900);
}

.action-dropdown-item.danger {
  color: #ef4444;
}

.action-dropdown-item.danger:hover {
  background: #fef2f2;
}

.action-dropdown-item .ico {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.action-dropdown-item .chevron {
  margin-left: auto;
  color: var(--slate-400);
  font-size: 11px;
}

/* Calculadoras & Ferramentas */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 24px;
}

.tool-badge-soon {
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 0.685rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 8px;
}

.feature.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: var(--slate-50);
}

.feature.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
  border-color: var(--slate-200);
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--slate-900);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease);
  z-index: 100;
  font-size: 0.845rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-800);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-side-toggle {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   RESPONSIVIDADE (Tablets e Celulares)
   ========================================================================== */
@media (max-width: 1080px) {
  .topbar { padding: 0 18px; }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-bottom: 1px solid var(--slate-200);
  }
  .navlinks.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1024px) {
  .hero-highlights { grid-template-columns: repeat(2, 1fr); }
  .feature-grid-12 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-showcase { gap: 40px; }
  .steps-connected { grid-template-columns: repeat(2, 1fr); }
  .step-connector { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 220px 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { height: 52px; padding: 0 14px; }
  .topbar.scrolled { height: 44px; }
  .landing { padding-top: 52px; }
  .hero { padding: 48px 18px 40px; }
  .hero h1 { font-size: 32px; }
  .hero-highlights { grid-template-columns: 1fr; }
  .wrap { padding: 55px 20px; }
  .section-head h2 { font-size: 26px; }
  .feature-grid-12 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .split-showcase { grid-template-columns: 1fr; gap: 36px; }
  .phone-float-badge.right { right: -8px; }
  .phone-float-badge.left { left: -8px; }
  .plans { grid-template-columns: 1fr; gap: 28px; }
  .plan.popular { transform: none; }
  .steps-connected { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    width: 255px;
    transition: left 0.22s var(--ease);
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { left: 0; }
  .mobile-side-toggle { display: inline-flex; margin-right: auto; }
  .app-top { padding: 0 18px; }
  .app-content { padding: 20px 16px; }
  .page-title { flex-direction: column; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}
