/* ==========================================================================
   SECTION 01: HERO & STATS BAR - CSS (Exato Figma)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 180px 0 90px;
  background-color: #f7fdfc;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-hero);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: flex-start;
  max-width: 1260px;
}

/* Coluna de Conteúdo */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 10px;
}

.hero-eyebrow {
  margin-bottom: 24px;
  display: inline-block;
  line-height: 1.4;
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
  margin-bottom: 22px;
}

.hero-title .teal-text {
  color: var(--color-teal);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

/* Destaques Operacionais em Bullets */
.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
  width: 100%;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hero-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(18, 131, 116, 0.12);
  color: var(--color-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.hero-feature-text strong {
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Selos de Confiança */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #edf7f5;
  border: 1px solid #d0ebe5;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-teal-dark, #0e6b5e);
}

/* ==========================================================================
   FORMULÁRIO DE CAPTAÇÃO NA PRIMEIRA DOBRA (HERO FORM)
   ========================================================================== */
.hero-form-wrapper {
  position: relative;
  width: 100%;
}

.hero-form-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px -10px rgba(18, 131, 116, 0.12), 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(18, 131, 116, 0.2);
  padding: 34px 30px;
  position: relative;
}

.hero-form-header {
  margin-bottom: 22px;
}

.hero-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef9f7;
  border: 1px solid #c8ece5;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 10px;
}

.hero-form-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.hero-form-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero-form-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hero-form-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-form-body .form-label {
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}

.hero-form-body .form-label .req {
  color: #d92d20;
}

.hero-form-body .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .hero-form-body .form-row {
    grid-template-columns: 1fr;
  }
}

.hero-form-body .form-input,
.hero-form-body .form-select {
  width: 100%;
  height: 46px;
  border: 1.5px solid #d0d5dd;
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 14px;
  color: #101828;
  background-color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.hero-form-body .form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.hero-form-body .form-input:focus,
.hero-form-body .form-select:focus {
  border-color: var(--color-teal, #128374);
  box-shadow: 0 0 0 3px rgba(18, 131, 116, 0.15);
}

.hero-form-body .form-group.is-invalid .form-input,
.hero-form-body .form-group.is-invalid .form-select {
  border-color: #fda29b;
  background-color: #fef3f2;
}

.hero-form-body .field-error {
  font-size: 11.5px;
  color: #d92d20;
  display: none;
  margin-top: 2px;
}

.hero-form-body .form-group.is-invalid .field-error {
  display: block;
}

.btn-hero-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  background: linear-gradient(135deg, #128374 0%, #0d6559 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 131, 116, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 6px;
}

.btn-hero-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 131, 116, 0.4);
}

.btn-hero-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-hero-submit .loading-spin {
  animation: spin-pulse 1s linear infinite;
}

@keyframes spin-pulse {
  100% { transform: rotate(360deg); }
}

.form-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form-privacy-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-teal);
}

/* Sucesso do Hero Form */
.hero-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
  gap: 14px;
}

.success-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eef9f7;
  border: 2px solid #128374;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #128374;
}

.success-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.success-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero-form-error-banner {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  padding: 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 10px;
}

.calc-highlight-pulse {
  animation: pulse-border-teal 1.2s ease-in-out;
}

@keyframes pulse-border-teal {
  0% { box-shadow: 0 0 0 0 rgba(18, 131, 116, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(18, 131, 116, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(18, 131, 116, 0); }
}

/* ==========================================================================
   MOCKUP UI DO EASY GUIDE (Card Principal)
   ========================================================================== */
.hero-visual {
  position: relative;
  width: 100%;
}

.mockup-card {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 131, 116, 0.1);
  padding: 24px 28px 28px;
}

/* Topbar */
.mockup-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mockup-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--color-teal);
  letter-spacing: -0.02em;
}

.mockup-search-box {
  flex: 1;
  max-width: 320px;
  background: #f2f4f7;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12.5px;
  color: var(--color-text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Interno (Sidebar + Dashboard) */
.mockup-grid {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
}

/* Sidebar */
.mockup-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.mockup-nav .nav-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mockup-nav .nav-btn.active {
  background: var(--color-teal);
  color: #ffffff;
  font-weight: 600;
}

.mockup-nav .nav-btn:not(.active):hover {
  color: var(--color-teal);
}

/* Panel Principal */
.mockup-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-teal);
}

.panel-greeting {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* KPIs Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpi-box {
  background: var(--bg-card-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kpi-title {
  font-size: 11px;
  color: var(--color-text-light);
  font-weight: 500;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.kpi-diff {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-teal);
}

/* Flow Panel */
.flow-panel {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #edf2f7;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.flow-chart {
  width: 100%;
  height: 65px;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

/* Providers Table */
.providers-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #f2f4f7;
  padding-top: 8px;
}

.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafb;
}

.provider-row:last-child {
  border-bottom: none;
}

.provider-meta {
  display: flex;
  flex-direction: column;
}

.provider-meta .name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.provider-meta .count {
  font-size: 11px;
  color: var(--color-text-light);
}

.provider-rate {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-teal);
}

/* Floating Badges */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-badge);
  border: 1px solid rgba(18, 131, 116, 0.12);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  z-index: 10;
  animation: float-anim 4s infinite ease-in-out;
}

.float-badge .check-circle {
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-top-right {
  top: -16px;
  right: -24px;
}

.badge-bottom-left {
  bottom: 24px;
  left: -32px;
  animation-delay: -2s;
}

@keyframes float-anim {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   STATS BAR SECTION (Exato Figma: Fundo Branco, Números Teal)
   ========================================================================== */
.stats-bar-section {
  background-color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid rgba(18, 131, 116, 0.08);
}

.stats-bar-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-text {
  font-size: 15px;
  line-height: 1.35;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVIDADE (Section 01)
   ========================================================================== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .badge-top-right {
    right: 0;
  }

  .badge-bottom-left {
    left: 0;
  }

  .stats-bar-grid {
    justify-content: space-between;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .hero-section {
    padding: 120px 0 60px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
  }

  .hero-eyebrow {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.2;
    text-align: left;
  }

  .hero-subtitle {
    font-size: 15.5px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-features-list {
    margin-bottom: 24px;
    gap: 12px;
  }

  .hero-feature-text {
    font-size: 13.5px;
  }

  .hero-form-card {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .hero-form-title {
    font-size: 19px;
  }

  .btn-hero-submit {
    font-size: 13.5px;
    padding: 14px 16px;
    min-height: 48px;
  }

  .mockup-card {
    padding: 16px;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .mockup-nav {
    display: none;
  }

  .float-badge {
    position: static;
    margin-top: 12px;
    display: inline-flex;
    box-shadow: var(--shadow-badge);
  }

  .stats-bar-grid {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
    gap: 36px;
  }

  .stat-val {
    font-size: 46px;
  }
}