/* ==========================================================================
   PROPOSTA SAITO GESTÕES — DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  /* Colors - Dark Mode Default */
  --bg: #0b0f0d;
  --bg-card: rgba(18, 25, 22, 0.85);
  --bg-card-hover: rgba(24, 34, 29, 0.95);
  --bg-input: #151e19;
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: #2ee59a;
  
  --text-main: #f0fdf4;
  --text-muted: #94a39b;
  --text-dim: #64746b;

  --accent-green: #2ee59a;
  --accent-green-glow: rgba(46, 229, 154, 0.15);
  --accent-amber: #f59e0b;
  --accent-blue: #38bdf8;
  --accent-purple: #a855f7;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px var(--accent-green-glow);
}

/* Light Theme Variables */
body.light {
  --bg: #f8faf9;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f3;
  --border: rgba(0, 0, 0, 0.09);
  --border-focus: #10b981;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --accent-green: #059669;
  --accent-green-glow: rgba(5, 150, 105, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  color: var(--accent-green);
  background: linear-gradient(135deg, var(--accent-green) 0%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #052e16;
  box-shadow: 0 4px 14px var(--accent-green-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 229, 154, 0.35);
  background-color: #34f5a6;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: var(--accent-green-glow);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.full-btn {
  width: 100%;
}

/* Badges */
.badge-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(46, 229, 154, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(46, 229, 154, 0.25);
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: background 0.25s ease;
}

body.light .topbar {
  background: rgba(248, 250, 249, 0.88);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-green) 0%, #10b981 100%);
  color: #042f1a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-green-glow);
}

.brand-logo.sm {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--accent-green);
}

/* Hero Section */
.hero {
  padding: 70px 0 50px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-green-glow);
  color: var(--accent-green);
  border: 1px solid rgba(46, 229, 154, 0.2);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  font-size: 1.6rem;
}

.metric-box strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

.metric-box small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections General */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

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

.section-header p {
  font-size: 1.05rem;
  margin-top: 8px;
}

/* Diagnosis Grid */
.cards-grid {
  display: grid;
  gap: 24px;
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.diagnosis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.diagnosis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.icon-amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.icon-green { background: rgba(46, 229, 154, 0.12); color: var(--accent-green); }
.icon-blue { background: rgba(56, 189, 248, 0.12); color: var(--accent-blue); }

.diagnosis-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.diagnosis-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-solution {
  background: var(--bg-input);
  border-left: 3px solid var(--accent-green);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.plan-highlight {
  border-color: var(--accent-green);
  box-shadow: 0 0 30px var(--accent-green-glow);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(46, 229, 154, 0.04) 100%);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: #1e2923;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-star {
  background: var(--accent-green);
  color: #042f1a;
  border-color: var(--accent-green);
  font-weight: 800;
}

.plan-header h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  margin-top: 6px;
}

.plan-desc {
  font-size: 0.9rem;
  min-height: 48px;
  margin-bottom: 20px;
}

.plan-price {
  background: var(--bg-input);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.plan-price small {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.price-val {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 4px 0;
}

.price-term {
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 500;
}

.price-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.plan-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.92rem;
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
}

.feat-check {
  color: var(--accent-green);
  font-weight: bold;
  line-height: 1.4;
}

.feat-off {
  opacity: 0.45;
  text-decoration: line-through;
}

.feat-cross {
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.6;
}

.plan-cta {
  width: 100%;
}

/* Comparison Table */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comp-table th, .comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--bg-input);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-main);
}

.comp-table th small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.comp-table .col-highlight {
  background: rgba(46, 229, 154, 0.04);
  border-left: 1px solid rgba(46, 229, 154, 0.15);
  border-right: 1px solid rgba(46, 229, 154, 0.15);
}

.comp-table td.cell-off {
  background: rgba(239, 68, 68, 0.04);
}

body.light .comp-table td.cell-off {
  background: rgba(239, 68, 68, 0.05);
}

.tag-no {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

body.light .tag-no {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Costs Grid */
.costs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cost-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cost-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

body.light .cost-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

.cost-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.cost-head strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cost-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.cost-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 10px;
  line-height: 1.2;
}

.cost-val small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.cost-item p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  margin-top: auto;
}

/* ROI Section */
.roi-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(18, 30, 24, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

body.light .roi-card {
  background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
  border-color: rgba(5, 150, 105, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.roi-calculator {
  margin-top: 30px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.calc-row label {
  font-weight: 600;
  font-size: 1rem;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  gap: 6px;
}

.input-group input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  width: 90px;
  outline: none;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-result-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.calc-result-box.highlight-box {
  border-color: var(--accent-green);
  background: rgba(46, 229, 154, 0.06);
}

.calc-result-box small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calc-result-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-main);
}

.calc-result-box span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.calc-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CTA Section */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2rem;
  margin: 12px 0 16px;
}

.cta-actions {
  margin: 32px 0 20px;
}

.cta-footer {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-card h3 {
  margin: 6px 0 12px;
}

.modal-summary {
  background: var(--bg-input);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Banner Simulador */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.sim-banner-section {
  padding: 20px 0 60px;
}

.sim-banner-card {
  background: linear-gradient(135deg, rgba(46, 229, 154, 0.12) 0%, rgba(18, 30, 24, 0.95) 100%);
  border: 1px solid rgba(46, 229, 154, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 0 30px rgba(46, 229, 154, 0.1);
}

body.light .sim-banner-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, #ffffff 100%);
  border-color: rgba(5, 150, 105, 0.25);
}

.sim-banner-copy h2 {
  font-size: 1.6rem;
  margin: 8px 0 10px;
}

.sim-banner-copy p {
  font-size: 0.98rem;
  max-width: 600px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .hero { padding: 45px 0 30px; }
  .section { padding: 50px 0; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .calc-row { flex-direction: column; align-items: flex-start; }
  .sim-banner-card { flex-direction: column; align-items: flex-start; padding: 28px; }
}

