/* Landing InfinityConvites – mobile-first, phone, vitrine */

:root {
  --screen-w: 390;
  --screen-h: 844;
  --bezel: 18px;
  --phone-w: calc(var(--screen-w) * 1px + var(--bezel) * 2);
  --phone-h: calc(var(--screen-h) * 1px + var(--bezel) * 2);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tap-min: 44px;
}

/* ========== HEADER – responsivo e menu mobile ========== */
.header-main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  background: rgba(7, 7, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  min-height: var(--tap-min);
  align-items: center;
}

.header-logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff4db8, #7c5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.header-logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.header-menu-icon {
  position: relative;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.header-menu-icon::before,
.header-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease;
}

.header-menu-icon::before {
  top: -7px;
}

.header-menu-icon::after {
  top: 7px;
}

.header-main.menu-open .header-menu-icon {
  background: transparent;
}

.header-main.menu-open .header-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header-main.menu-open .header-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 1rem 1rem;
  background: rgba(7, 7, 18, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-main.menu-open .header-nav {
  display: flex;
}

.header-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  min-height: var(--tap-min);
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.header-nav-link:hover,
.header-nav-link:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-cta {
  min-height: var(--tap-min);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 1rem 2rem;
  }

  .header-menu-btn {
    display: none;
  }

  .header-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
  }

  .header-nav-link {
    padding: 0.5rem 1rem;
    min-height: auto;
  }

  .header-logo-text {
    max-width: none;
  }

  .header-cta {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 1rem 3rem;
  }
}

/* Body: safe area para notch/home indicator no celular */
body {
  padding-bottom: var(--safe-bottom);
}

/* Partículas */
#particles {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255, 77, 184, 0.12), transparent 55%),
    radial-gradient(900px 500px at 80% 30%, rgba(124, 92, 255, 0.15), transparent 55%),
    transparent;
}

#particles::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, rgba(255,255,255,.25), transparent),
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(255,200,255,.2), transparent),
    radial-gradient(1px 1px at 200px 80px, rgba(255,255,255,.2), transparent);
  background-size: 250px 200px;
  animation: particlesFloat 30s linear infinite;
}

@keyframes particlesFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

/* ========== HERO – mobile-first ========== */
.hero-section {
  overflow: visible;
  padding: calc(80px + var(--safe-top)) 1rem 2rem;
  padding-left: calc(1rem + var(--safe-left));
  padding-right: calc(1rem + var(--safe-right));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  min-height: auto;
}

.hero-phone-wrap {
  order: 2;
  margin: 0 auto;
  max-width: min(320px, calc(100vw - 2rem));
  flex-shrink: 0;
}

.hero-content {
  order: 1;
  max-width: 36rem;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: clamp(1.75rem, 5.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
}

.hero-cta-group {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

/* Phone no hero: em mobile – sempre cabe na primeira dobra */
@media (max-width: 767px) {
  .hero-phone-wrap {
    display: flex;
    justify-content: center;
  }

  .hero-phone-wrap .phone-frame {
    margin: 0 auto;
    /*
      Escala baseada na altura e largura disponíveis.
      140px ~ header + título + respiro.
    */
    --phone-scale: min(
      1,
      calc((100svh - 140px) / var(--phone-h)),
      calc((100vw - 32px) / var(--phone-w))
    );
    transform: scale(var(--phone-scale));
    transform-origin: top center;
  }
}

@media (min-width: 768px) {
  .hero-phone-wrap .phone-frame {
    transform: none;
  }
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 85vh;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: calc(100px + var(--safe-top)) 2rem 3rem;
  }

  .hero-phone-wrap {
    order: 1;
    position: sticky;
    top: calc(32px + var(--safe-top));
    margin: 2rem 0;
    max-width: min(426px, calc(100vw - 4rem));
  }

  .hero-content {
    order: 2;
    text-align: left;
    max-width: 32rem;
  }

  .hero-title {
    font-size: clamp(2rem, 4vw, 3.75rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
  }

  .hero-cta-group {
    margin: 0;
    max-width: none;
  }
}

/* Phone sticky: compatibilidade com nome antigo */
.phone-sticky-wrap {
  position: sticky;
  top: 32px;
  margin: 2rem 0;
  max-width: min(426px, calc(100vw - 2rem));
  flex-shrink: 0;
}

.phone-frame {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 36px;
  padding: var(--bezel);
  position: relative;
  background:
    radial-gradient(600px 240px at 30% 0%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 28px 90px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(0,0,0,.35);
  flex-shrink: 0;
}

/* Hero phone iframe: preenche a tela do celular */
.phone-hero .hero-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.phone-hero .hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Hero CTA: layout responsivo */
.hero-cta-group {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  max-width: 100%;
}

.hero-cta-group .hero-cta-full-row {
  grid-column: 1 / -1;
}

.hero-cta {
  min-height: var(--tap-min);
  padding: 0.875rem 1.25rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Botão "Criar meu convite" – destaque e animação */
.btn-criar-convite {
  position: relative;
  border-radius: 9999px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: none;
  background: linear-gradient(135deg, #ff4db8 0%, #d946ef 50%, #a855f7 100%);
  background-size: 200% 200%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 24px rgba(255, 77, 184, 0.35),
    0 0 40px rgba(168, 85, 247, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
  animation: btnCriarGlow 3s ease-in-out infinite;
}

/* Só o do header (sem .hero-cta) usa esse padding */
header .btn-criar-convite {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-criar-convite::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.15) 55%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: btnCriarShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.btn-criar-convite:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 32px rgba(255, 77, 184, 0.45),
    0 0 56px rgba(168, 85, 247, 0.35);
  background-position: 100% 50%;
}

.btn-criar-convite:active {
  transform: scale(0.98);
}

@keyframes btnCriarGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 4px 24px rgba(255, 77, 184, 0.35), 0 0 40px rgba(168, 85, 247, 0.2); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset, 0 4px 28px rgba(255, 77, 184, 0.45), 0 0 52px rgba(168, 85, 247, 0.3); }
}

@keyframes btnCriarShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-criar-convite {
    animation: none;
  }
  .btn-criar-convite::before {
    animation: none;
  }
}

.hero-cta.hero-cta-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff4db8 0%, #d946ef 50%, #a855f7 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 24px rgba(255, 77, 184, 0.35),
    0 0 40px rgba(168, 85, 247, 0.2);
  animation: btnCriarGlow 3s ease-in-out infinite;
}

.hero-cta.hero-cta-primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 32px rgba(255, 77, 184, 0.45),
    0 0 56px rgba(168, 85, 247, 0.35);
  background-position: 100% 50%;
}

.hero-cta-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .hero-cta-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero-cta-group .hero-cta-full-row {
    grid-column: auto;
  }

  .hero-cta {
    min-height: 56px;
    padding: 1rem 1.5rem;
    font-size: 1.0625rem;
  }
}

/* Headline com frase rotativa */
.headline-rotate-wrap {
  display: inline-block;
  min-width: 0.5em;
  vertical-align: top;
  overflow: hidden;
  position: relative;
}

.headline-rotate {
  display: inline-block;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.headline-rotate.animate-out {
  opacity: 0;
  transform: translateY(-10px);
}

.headline-rotate.animate-from {
  opacity: 0;
  transform: translateY(12px);
}

.headline-rotate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .headline-rotate-wrap {
    overflow: visible;
  }

  .headline-rotate,
  .headline-rotate.animate-out,
  .headline-rotate.animate-in {
    transition: none;
  }
}

.phone-frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

.phone-ear {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(0,0,0,.2);
  z-index: 3;
}

.phone-screen {
  width: calc(var(--screen-w) * 1px);
  height: calc(var(--screen-h) * 1px);
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b16;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

.phone-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.phone-content.active {
  opacity: 1;
  visibility: visible;
}

/* Hero: envelope */
.phone-hero .envelope-wrap {
  position: relative;
  width: 180px;
  height: 120px;
  margin-bottom: 16px;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, #e8d5c4 0%, #d4b896 100%);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: top center;
  animation: envelopeOpen 4s ease-in-out 0.5s forwards;
}

.envelope-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, #e8d5c4 0%, #c9a86c 100%);
  border: 1px solid rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-preview {
  font-size: 14px;
  font-weight: 700;
  color: #5c4033;
}

.phone-hero-title {
  font-size: 13px;
  color: rgba(255,255,255,.85);
  text-align: center;
  max-width: 260px;
}

@keyframes envelopeOpen {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-180deg); }
}

/* Step 1: gallery */
.phone-gallery .slide-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  width: 100%;
  animation: slideScroll 8s linear infinite;
}

.phone-gallery .slide-card {
  flex-shrink: 0;
  width: 120px;
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,77,184,.3), rgba(124,92,255,.3));
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

@keyframes slideScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Step 2: edit */
.phone-edit .edit-demo {
  width: 100%;
  max-width: 280px;
}

.edit-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}

.color-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.color-dots .dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  cursor: pointer;
}

/* Step 3: WhatsApp */
.phone-whatsapp .wa-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wa-bubble {
  padding: 14px 20px;
  border-radius: 18px 18px 4px 18px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.wa-icon {
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

/* Step 4: RSVP */
.phone-rsvp .rsvp-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.rsvp-line {
  padding: 10px 16px;
  background: rgba(0,255,136,.15);
  border-radius: 10px;
  border: 1px solid rgba(0,255,136,.3);
}

/* Final: confetti */
.phone-final {
  position: relative;
}

.final-invite {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  z-index: 2;
}

.confetti-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========== SEÇÕES – mobile-first ========== */
.section-modelos,
.section-como-funciona,
.section-cta-final {
  padding-left: calc(1rem + var(--safe-left));
  padding-right: calc(1rem + var(--safe-right));
  padding-bottom: calc(1.5rem + var(--safe-bottom));
}

.section-modelos {
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 42rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #fff;
}

.section-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.modelos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .modelos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-modelos {
    padding-top: 4rem;
  }

  .section-desc {
    margin-bottom: 3rem;
    font-size: 1rem;
  }

  .modelos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .modelos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.section-como-funciona {
  padding-top: 2.5rem;
}

.section-como-funciona .section-title {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-como-funciona {
    padding-top: 3rem;
  }
}

.section-cta-final {
  padding-top: 3rem;
  padding-bottom: calc(3rem + var(--safe-bottom));
}

.cta-final-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-final-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.btn-cta-final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 1rem 2rem;
  width: 100%;
  max-width: 320px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #ff4db8, #b84dff);
  box-shadow: 0 4px 24px rgba(255, 77, 184, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-cta-final:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 77, 184, 0.45);
}

.btn-cta-final:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  .btn-cta-final {
    width: auto;
    max-width: none;
    padding: 1rem 2.5rem;
  }
}

/* Como funciona: bloco único compacto */
.como-funciona-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.como-funciona-step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.como-funciona-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.como-funciona-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.como-funciona-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .como-funciona-step {
    opacity: 1;
    transform: none;
  }
}

/* Vitrine – cards touch-friendly no mobile */
.vitrine-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 639px) {
  .vitrine-card {
    padding: 1rem;
  }

  .vitrine-pill,
  .vitrine-device-btn {
    min-height: var(--tap-min);
  }
}

.vitrine-card-head {
  text-align: center;
  margin-bottom: 14px;
}

.vitrine-card-name {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.vitrine-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,77,184,.35);
  background: rgba(255,77,184,.12);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.vitrine-pill:hover {
  background: rgba(255,77,184,.18);
}

.vitrine-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff4db8;
  box-shadow: 0 0 0 4px rgba(255,77,184,.2);
}

.vitrine-device-btn {
  width: 100%;
  border: 0;
  padding: 0;
  margin-top: 14px;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.vitrine-device-wrap {
  --s: 0.74;
  --outer-w: calc(var(--screen-w) * 1px + var(--bezel) * 2);
  --outer-h: calc(var(--screen-h) * 1px + var(--bezel) * 2);
  width: calc(var(--outer-w) * var(--s));
  height: calc(var(--outer-h) * var(--s));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  min-height: calc(var(--outer-h) * var(--s));
}

.vitrine-device-wrap .vitrine-device {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--s));
  transform-origin: center center;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 36px;
  padding: var(--bezel);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
}

.vitrine-device-ear {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  z-index: 2;
}

.vitrine-device-screen {
  width: calc(var(--screen-w) * 1px);
  height: calc(var(--screen-h) * 1px);
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b16;
  position: relative;
}

.vitrine-device-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.vitrine-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.1);
  z-index: 5;
}

/* Modal – full screen no celular */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  padding-left: calc(1rem + var(--safe-left));
  padding-right: calc(1rem + var(--safe-right));
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.modal-overlay.show {
  display: flex;
}

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

.modal-panel {
  position: relative;
  width: min(1100px, 94vw);
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10,10,22,.92);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 30px 120px rgba(0,0,0,.5);
}

@media (max-width: 639px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal-panel {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: calc(1rem + var(--safe-top)) 1rem calc(1rem + var(--safe-bottom));
    padding-left: calc(1rem + var(--safe-left));
    padding-right: calc(1rem + var(--safe-right));
  }

  .modal-close {
    min-height: var(--tap-min);
    min-width: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  .modal-actions .btn-ghost,
  .modal-actions .btn-accent {
    min-height: var(--tap-min);
    padding: 0.875rem 1.25rem;
    -webkit-tap-highlight-color: transparent;
  }
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-weight: 800;
  font-size: 1.125rem;
}

.modal-sub {
  margin-top: 4px;
  color: rgba(255,255,255,.65);
  font-size: 0.875rem;
}

.modal-close {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
}

.modal-device {
  --scale: 1;
  transform: scale(var(--scale));
  transform-origin: center center;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 36px;
  padding: var(--bezel);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14);
}

.modal-device-ear {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  z-index: 2;
}

.modal-device-screen {
  width: calc(var(--screen-w) * 1px);
  height: calc(var(--screen-h) * 1px);
  border-radius: 28px;
  overflow: hidden;
  background: #0b0b16;
}

.modal-device-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: auto;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-ghost {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-accent {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,77,184,.2);
  border: 1px solid rgba(255,77,184,.35);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  .phone-sticky-wrap {
    position: relative;
    top: auto;
    margin: 0 auto 2rem;
    max-width: min(426px, calc(100vw - 1.5rem));
  }

  .phone-frame {
    margin: 0 auto;
  }
}

/* Garantir que o main não corte o phone em viewports comuns (ex: 1366px) */
@media (min-width: 1366px) {
  .phone-sticky-wrap {
    max-width: 426px;
  }
}
