/* ========================================
   Encaixa.ai — Landing Page Styles
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0D9488;
  --primary-dark: #0F766E;
  --primary-light: #CCFBF1;
  --primary-bg: #F0FDFA;
  --accent: #F59E0B;
  --accent-light: #FEF3C7;
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --text: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --error: #EF4444;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 100px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
  --max-width: 1100px;
  --section-gap: 100px;
  --section-gap-mobile: 64px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

/* ========================================
   Header
   ======================================== */
.header {
  padding: 16px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.logo-dot {
  color: var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s ease;
}

.header-cta:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* ========================================
   Section common
   ======================================== */
.section {
  padding: var(--section-gap) 0;
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 550px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ========================================
   1. HERO
   ======================================== */
.hero {
  padding: 100px 0 80px;
  background: var(--surface);
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 48px;
}

.hero-form-wrapper {
  width: 100%;
  max-width: 480px;
}

/* --- Form Card --- */
.form-card,
.success-card,
.duplicate-card,
.error-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}

/* Toggle Pills */
.toggle-pills {
  display: flex;
  gap: 12px;
}

.pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pill[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Input */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease;
  outline: none;
}

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

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-input.input-error {
  border-color: var(--error);
}

/* Error message */
.form-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
}

.form-error.visible {
  display: block;
}

/* Submit button */
.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loading {
  display: inline-flex;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Disclaimer */
.form-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.form-disclaimer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* --- Success Card --- */
.success-card {
  text-align: center;
}

.success-icon,
.duplicate-icon,
.error-icon {
  margin: 0 auto 16px;
  display: flex;
  justify-content: center;
}

.success-icon svg {
  display: block;
}

.duplicate-icon svg {
  display: block;
}

.error-icon svg {
  display: block;
}

.success-title,
.duplicate-title,
.error-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.success-text,
.duplicate-text,
.error-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.success-share-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-share:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-share svg {
  display: inline-block;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  color: #fff;
}

/* --- Duplicate Card --- */
.duplicate-card {
  text-align: center;
  border-color: var(--primary);
  background: var(--primary-bg);
}

.duplicate-title {
  color: var(--primary-dark);
}

/* --- Error Card --- */
.error-card {
  text-align: center;
  border-color: var(--error);
}

.btn-retry {
  width: auto;
  display: inline-block;
  padding: 10px 32px;
}

/* ========================================
   2. SOCIAL PROOF
   ======================================== */
.social-proof {
  background: linear-gradient(135deg, #134E4A 0%, #0F766E 100%);
  padding: 64px 0;
  text-align: center;
}

.counters-early {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding: 16px;
}

.counters-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.counter-value {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.counter-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin-top: 4px;
}

/* ========================================
   3 & 4. FEATURE SECTIONS (Para Clínicas / Para Dentistas)
   ======================================== */
.para-clinicas {
  background: var(--surface);
}

.para-dentistas {
  background: var(--bg);
}

.para-clinicas .container,
.para-dentistas .container,
.como-funciona .container {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.icon-circle svg {
  display: block;
}

.icon-circle--teal {
  background: var(--primary);
  color: #fff;
}

.icon-circle--amber {
  background: var(--accent);
  color: #fff;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   5. COMO FUNCIONA
   ======================================== */
.como-funciona {
  background: var(--bg);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.step-row {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.step-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.step-perspectives {
  display: contents;
}

.perspective {
  padding: 0;
}

.perspective-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.perspective-badge--clinica {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.perspective-badge--dentista {
  background: var(--accent-light);
  color: #92400E;
}

.perspective p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   CTA inline (botões extras nas seções)
   ======================================== */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

.btn-cta-inline {
  display: inline-block;
  width: auto;
  padding: 14px 40px;
  text-decoration: none;
  font-size: 16px;
}

.btn-cta-inline:hover {
  text-decoration: none;
}

/* ========================================
   DEPOIMENTOS (Carousel)
   ======================================== */
.depoimentos {
  background: var(--surface);
}

.depoimentos .container {
  text-align: center;
}

.testimonials-track-wrapper {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.4s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 48px;
  box-sizing: border-box;
}

.testimonial-card > * {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  display: inline-block;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 24px;
  text-align: center;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-avatar--clinica {
  background: var(--primary);
}

.testimonial-avatar--dentista {
  background: var(--accent);
}

.testimonial-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}

.testimonial-role {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.testimonial-dot.active {
  background: var(--primary);
}

/* ========================================
   6. DÚVIDAS
   ======================================== */
.duvidas {
  background: var(--surface);
}

.duvidas .container {
  text-align: center;
}

.duvidas-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.duvidas-email {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}

.duvidas-email:hover {
  color: var(--primary-dark);
}

/* ========================================
   7. FOOTER
   ======================================== */
.footer {
  padding: 40px 0;
  background: var(--text);
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer .logo-text {
  color: #fff;
}

.footer .logo-dot {
  color: #5EEAD4;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-sep {
  color: #4B5563;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (max-width: 1023px) {
  .hero-title {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-left {
    margin-bottom: 4px;
  }

  .step-perspectives {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .counters-grid {
    gap: 40px;
    flex-wrap: wrap;
  }
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: var(--section-gap-mobile) 0;
  }

  .hero {
    padding: 72px 0 48px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  body {
    font-size: 16px;
  }

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

  .step-row {
    padding: 24px;
  }

  .step-perspectives {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .counters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .counter-value {
    font-size: 36px;
  }

  .social-proof {
    padding: 48px 0;
  }

  .form-card,
  .success-card,
  .duplicate-card,
  .error-card {
    padding: 24px;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-share {
    justify-content: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-sep {
    display: none;
  }

  .header-cta {
    padding: 8px 16px;
    font-size: 13px;
  }
}
