/* ==========================================================================
   Home & Editorial Styles
   ========================================================================== */

.hero-section {
  padding: var(--space-7) 0 var(--space-8);
  border-bottom: 1px solid var(--color-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--space-6);
  align-items: center;
  min-width: 0;
}

.hero-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-wine-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero-pretitle::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-brass);
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  color: var(--color-ink);
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-wine-dark);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: 0;
}

.hero-btn-cta {
  font-weight: 600;
}

.hero-reassurance {
  color: var(--color-muted);
  font-size: 0.86rem;
}

/* Artefato Hero: Prévia Real do Convite */
.hero-stage {
  display: flex;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.invite-frame {
  width: 100%;
  max-width: 380px;
  min-width: 0;
  height: 640px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 8px solid var(--color-ink);
  box-shadow: var(--shadow-invite);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.invite-demo-link {
  max-width: 380px;
  margin: var(--space-2) auto 0;
  color: var(--color-muted);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.45;
}

.invite-demo-link a {
  color: var(--color-wine-dark);
  font-weight: 600;
}

.invite-frame-bar {
  height: 24px;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-speaker-pill {
  width: 48px;
  height: 4px;
  background: #443c3a;
  border-radius: 2px;
}

.invite-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.invite-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  text-align: center;
  height: 100%;
  background: var(--color-surface);
  gap: var(--space-3);
}

.invite-fallback p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Features Grid */
.features-section {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--color-line);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.section-tag {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brass);
  font-weight: 600;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-brass);
  margin-bottom: var(--space-1);
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--color-wine-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* Step-by-Step Overview */
.process-section {
  padding: var(--space-8) 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.step-box {
  border-left: 2px solid var(--color-rose);
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.step-box strong {
  color: var(--color-wine);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-box h3 {
  font-size: 1.15rem;
}

.step-box p {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* CTA Final */
.cta-banner {
  padding: var(--space-8) 0;
  text-align: center;
  background: var(--color-paper);
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    min-width: 0;
  }

  .hero-stage {
    width: 100%;
    margin-top: var(--space-2);
  }

  .invite-frame {
    max-width: 100%;
    width: 100%;
    height: 540px;
    border-width: 6px;
    border-radius: var(--radius-md);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--space-5) 0 var(--space-6);
  }

  .hero-content {
    gap: var(--space-3);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
    gap: var(--space-2);
  }

  .hero-reassurance {
    align-self: center;
    font-size: 0.8rem;
  }

  .invite-frame {
    height: 480px;
    border-width: 4px;
    border-radius: var(--radius-md);
  }

}

/* Abertura do site: mesma linguagem editorial do onboarding, com conteúdo da home. */
.hero-section {
  padding: clamp(32px, 5vw, 54px) 0 clamp(42px, 6vw, 64px);
  background:
    radial-gradient(ellipse at 50% 8%, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(145deg, #fbf7f3 0%, #f8eeee 53%, #f5e8e7 100%);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-content {
  width: min(100%, 600px);
  align-items: center;
  text-align: center;
  gap: 12px;
}

.home-brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 3px;
  border: 5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, #c9808e, #96505e);
  box-shadow: 0 8px 24px rgba(151, 78, 92, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  color: #fff;
  font: 500 46px/1 var(--font-serif);
}

.home-brand-mark::before {
  position: absolute;
  top: 3px;
  left: -11px;
  color: var(--color-brass);
  content: "✦";
  font: 22px/1 var(--font-serif);
}

.hero-pretitle {
  justify-content: center;
  color: var(--color-wine-dark);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
}

.hero-pretitle::before {
  display: none;
}

.hero-title {
  max-width: 19ch;
  margin: 0;
  font: 600 clamp(2.15rem, 5.6vw, 3.25rem)/1.08 var(--font-serif);
  letter-spacing: -0.025em;
  text-align: center;
}

.hero-title em {
  color: var(--color-wine);
  font-weight: 600;
}

.hero-description {
  max-width: 410px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-stage {
  width: 100%;
  margin: 0;
}

.invite-frame {
  box-sizing: border-box;
  width: min(337px, 86vw);
  max-width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  flex: 0 1 337px;
  border: 6px solid var(--color-ink);
  border-radius: 34px;
  box-shadow: 0 18px 40px rgba(51, 40, 43, 0.16), 0 5px 14px rgba(184, 110, 124, 0.14);
}

.invite-frame-bar {
  height: 22px;
  flex: 0 0 22px;
}

.invite-speaker-pill {
  width: 42px;
}

.invite-viewport {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.invite-iframe {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #fff;
}

.invite-viewport .invite-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-actions {
  width: min(100%, 430px);
  align-self: center;
  align-items: stretch;
  gap: 10px;
  margin-top: 0;
}

.hero-actions .btn {
  width: 100%;
  min-height: 54px;
  border-radius: 15px;
  font-weight: 700;
}

.hero-actions .hero-btn-cta {
  border-color: transparent;
  background: linear-gradient(135deg, #b96f7d, #96505e);
  box-shadow: 0 12px 28px rgba(151, 78, 92, 0.22);
  color: #fff;
}

.hero-actions .hero-btn-cta:hover {
  background: linear-gradient(135deg, #a95f6f, #874352);
  color: #fff;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.62);
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 0 42px;
  }

  .hero-grid {
    gap: 18px;
  }

  .hero-content {
    gap: 10px;
  }

  .home-brand-mark {
    width: 82px;
    height: 82px;
    font-size: 41px;
  }

  .hero-title {
    max-width: 17ch;
    font-size: clamp(2rem, 9vw, 2.35rem);
  }

  .hero-description {
    max-width: 34ch;
    font-size: 0.96rem;
  }

  .invite-frame {
    width: min(337px, 86vw);
    max-width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    border-width: 5px;
    border-radius: 31px;
  }

  .invite-frame-bar {
    height: 20px;
    flex-basis: 20px;
  }

  .hero-actions {
    width: min(100%, 430px);
    gap: 9px;
  }
}

:root[data-theme="dark"] .hero-section {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(196, 132, 146, 0.12), transparent 48%),
    var(--color-paper);
}

:root[data-theme="dark"] .hero-title em {
  color: var(--color-wine-dark);
}

:root[data-theme="dark"] .hero-btn-secondary {
  background: var(--color-surface);
}
