/*
  IPHONE DO HERO: moldura de iPhone (aro prata, bisel preto, ilha dinâmica, indicador de início) com a tela
  "Minhas encomendas" do app do morador (mora-app, CondominoEncomendasPage + BarraInferior): mesmos textos,
  abas, cartões com foto, Selo de status, botão "Gerar QR de retirada" e barra inferior com 3 destinos.
  Tokens claros do DS vêm de secoes.css (o celular é branco). Decorativo (aria-hidden no palco).
  Carregado depois de secoes.css.
*/

/* ----------------------------------------------------------------- moldura == */
.hero-card .palco .celular.iphone {
  width: 282px; max-width: 100%; min-width: 0; padding: 3px; border: 0; border-radius: 55px;
  background: linear-gradient(145deg, #f6f4f8, #c7c3cd 48%, #ecebf0);
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .25) inset;
}
/* Botões laterais (volume e ação à esquerda, ligar à direita). */
.iphone::before, .iphone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #c7c3cd; }
.iphone::before { left: -2px; top: 112px; height: 30px; box-shadow: 0 50px 0 #c7c3cd, 0 96px 0 #c7c3cd; }
.iphone::after { right: -2px; top: 150px; height: 70px; }

.iphone .app {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  aspect-ratio: 9 / 19.2; min-height: 0; padding: 0 14px;
  border: 8px solid #0a0a0c; border-radius: 52px; background: var(--neutral-0); overflow: hidden;
}
.app-ilha { position: absolute; z-index: 4; top: 10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; border-radius: 99px; background: #0a0a0c; }
.app-status {
  display: flex; align-items: center; justify-content: space-between; flex: none;
  height: 42px; margin: 0 -6px; padding: 8px 20px 0; font-size: 13px; font-weight: 600; color: var(--neutral-900);
}
.app-sinais { display: inline-flex; align-items: center; gap: 4px; }
.app-sinais svg { height: 11px; width: auto; fill: currentColor; }

/* ---------------------------------------------------------------- tela do app == */
.app-cab { display: grid; gap: 2px; }
.app-voltar { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; color: var(--accent-text); }
.app-voltar .i { width: 14px; height: 14px; rotate: 90deg; }
.app-titulo { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.app-cab small { font-size: 11.5px; line-height: 15px; color: var(--text-secondary); }

.app-abas { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--neutral-100); }
.app-abas > span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.app-abas > .is-atual { background: var(--neutral-0); color: var(--text); box-shadow: 0 0 0 1px var(--neutral-200); }
.app-abas i { font-style: normal; padding: 0 6px; border-radius: 99px; background: var(--accent-subtle-hover); color: var(--accent-text); font-size: 11px; line-height: 16px; }

.iphone .app-card { align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--neutral-0); font-size: 13px; line-height: 17px; }
.app-foto { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--neutral-100); color: var(--text-secondary); }
.app-foto .i { width: 22px; height: 22px; }
.app-card > div { display: grid; gap: 2px; justify-items: start; }
.app-card small { font-size: 11px; line-height: 14px; color: var(--text-secondary); }
.app-card .am-badge, .app-card .troca { margin-top: 2px; }
.app-card .am-badge { font-size: 10.5px; line-height: 14px; padding: 1px 6px; white-space: nowrap; }
.app-card .troca { justify-self: start; }
.app-check { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--accent); color: var(--on-accent); }
.app-check .i { width: 13px; height: 13px; stroke-width: 2.4; }

.iphone .mk-qr { gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 12px; line-height: 16px; background: var(--neutral-0); border: 1px solid var(--neutral-200); }
.iphone .mk-qr .i--xl { width: 26px; height: 26px; }

.iphone .mk-botao { margin-top: auto; height: 46px; border-radius: 12px; font-size: 14px; }
.app-barra {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 4px 0 20px; padding: 4px;
  border: 1px solid var(--neutral-200); border-radius: 20px; background: var(--neutral-0); box-shadow: var(--shadow-md);
}
.app-barra > span { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 16px; font-size: 10px; line-height: 12px; font-weight: 500; color: var(--text-secondary); }
.app-barra > .is-atual { background: var(--accent-subtle); color: var(--accent-text); }
.app-barra .i { width: 20px; height: 20px; }
.app-home { position: absolute; z-index: 4; bottom: 7px; left: 50%; width: 100px; height: 4px; margin-left: -50px; border-radius: 99px; background: var(--neutral-900); }

/* A notificação desce da ilha, como o banner do iOS. */
.hero-card .iphone .notif { top: 50px; left: 18px; right: 18px; border-radius: 16px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }

/* ----------------------------------------------------------- posição no palco == */
@media (min-width: 640px) {
  .hero-card .palco { aspect-ratio: auto; min-height: 600px; }
  .hero-card .papel--sindico { bottom: 14%; }
}
@media (max-width: 639px) {
  .hero-card .palco { min-height: 660px; }
  .hero-card .palco .celular.iphone { width: 258px; top: 62px; }
}
