/* =====================================
   PREVIEW (STEPPER + CELULAR)
===================================== */
.preview {
  width: 50%;
  display: flex;
  align-items: center;
  gap: 56px;
  justify-content: center;
}

/* =====================================
   GLOW DO CELULAR
===================================== */
.phone-glow {
  padding: 12px;
  border-radius: 42px;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.35),
    transparent 70%
  );
  box-shadow:
    0 0 45px rgba(0, 217, 255, 0.55),
    0 0 120px rgba(0, 217, 255, 0.35);
}

/* =====================================
   PHONE
===================================== */
.phone {
  position: relative;
  width: 320px;
  height: 640px;
  background: linear-gradient(180deg, #0b1224, #050914);
  border-radius: 36px;
  padding: 10px;

  overflow: hidden;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 30px 60px rgba(0,0,0,0.7);
}

.phone-top {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;

  display: flex;
  justify-content: space-between;

  font-size: 12px;
  color: var(--text-muted);

  z-index: 20;
}

.phone-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding-top: 50px;
}

.phone-texts {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.phone-content h2 {
  font-size: 22px;
}

.phone-content p {
  font-size: 14px;
  color: var(--text-muted);
}

.phone-footer {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;

  text-align: center;
  font-size: 11px;

  color: var(--text-muted);
  opacity: 0.5;

  z-index: 20;
}

/* =====================================
   BARRA DE NAVEGAÇÃO DO CELULAR (iOS Style)
   Estado padrão — hero visível
===================================== */
.phone-address-bar {
  position: absolute;

  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);

  width: 240px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;

  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  z-index: 20;

  /* ✅ Transição suave entre estados */
  transition:
    width 0.4s cubic-bezier(.4,0,.2,1),
    bottom 0.4s cubic-bezier(.4,0,.2,1),
    padding 0.4s cubic-bezier(.4,0,.2,1),
    background 0.4s ease,
    border-radius 0.4s ease;
}

/* =====================================
   BARRA ENCOLHIDA — usuário scrollou para baixo
===================================== */
.phone-address-bar.scrolled {
  width: 160px;
  bottom: 28px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
}

/* Esconde o ícone de cadeado no estado encolhido */
.phone-address-bar.scrolled .icon-lock {
  display: none;
}

/* URL fica um pouco menor no estado encolhido */
.phone-address-bar.scrolled .url-text {
  font-size: 11px;
}

/* =====================================
   ÍCONE E URL
===================================== */
.icon-lock {
  font-size: 10px;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.url-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: font-size 0.3s ease;
}

.phone-address-bar .url-text {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =====================================
   SCREEN / IFRAME
===================================== */
.phone-screen {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;
  border-radius: 24px;

  background: #000;
}

.phone-iframe-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
}

.phone-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  border: none;
  display: block;
  background: transparent;
  transform: none;

  -webkit-overflow-scrolling: touch; /* habilita scroll inercial no iOS */
}

.phone-screen iframe,
.phone-screen .preview,
.phone-screen .template {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: none;
}

.phone-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 28px;

  z-index: 5;
}

.phone-browserbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;

  z-index: 5;
}

/* Eyebrow emocional */
.eyebrow {
  font-size: 13px;
  color: var(--neon);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.phone-content h2 {
  font-size: 22px;
  color: #fff;
}

.phone-content p {
  font-size: 14px;
  color: var(--text-muted);
}