/* ════════════════════════════════════════════════════════════════
   FÁBRICA DE APPS — vitrine v3
   Branco puro + luz violeta. Glassmorphism crocante, brilhos suaves
   violeta/rosa/ciano, grelha de pontos, scroll-driven animations,
   view transitions e os efeitos clay/glow ORIGINAIS da casa.
   Tipografia: Sora (a fonte de títulos do próprio app).
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --ink: #0e1016;
  --ink-dim: rgba(14, 16, 22, 0.64);
  --ink-faint: rgba(14, 16, 22, 0.42);
  --line: rgba(14, 16, 22, 0.09);
  --brand: #6d4df2;          /* violeta da casa — o glow lê esta variável */
  --brand-deep: #5436d6;
  --brand-soft: #f1edfe;
  --pink: #e0569e;
  --cyan: #14b8d4;
  --gold: #e8a23d;
  --radius: 24px;
  --glass: rgba(255, 255, 255, 0.72);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* navegação entre as 2 páginas com fade suave (View Transitions API) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0.002em;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── LUZ: três brilhos de cor desfocados a derivar sobre o branco ── */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora i {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.aurora i:nth-child(1) {
  width: 58vw; height: 58vw;
  background: radial-gradient(circle, rgba(109, 77, 242, 0.16) 0%, transparent 65%);
  top: -20vw; right: -14vw;
  animation: drift-a 26s ease-in-out infinite;
}
.aurora i:nth-child(2) {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(20, 184, 212, 0.13) 0%, transparent 65%);
  bottom: -16vw; left: -12vw;
  animation: drift-b 32s ease-in-out infinite;
}
.aurora i:nth-child(3) {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(224, 86, 158, 0.10) 0%, transparent 65%);
  top: 36%; left: 34%;
  animation: drift-c 38s ease-in-out infinite;
}
@keyframes drift-a { 50% { transform: translate(-9vw, 7vw) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate(8vw, -6vw) scale(0.92); } }
@keyframes drift-c { 33% { transform: translate(7vw, -8vw); } 66% { transform: translate(-6vw, 5vw); } }

/* grelha de pontos finíssima a desvanecer do topo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(14, 16, 22, 0.075) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.35) 40%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.35) 40%, transparent 78%);
  pointer-events: none;
}

::selection { background: var(--brand); color: #fff; }

h1, h2, h3, .display {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.07;
  color: var(--ink);
}
/* palavras de destaque: gradiente violeta → rosa */
em, .accent-i {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 10%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
main { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ───────────────────────────── NAV (vidro branco) ───────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 28px; max-width: 1180px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; font-size: 0.95rem; font-weight: 800;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -6px 10px rgba(0, 0, 0, 0.28),
    0 1px 2px rgba(84, 54, 214, 0.35),
    0 5px 10px -3px rgba(109, 77, 242, 0.6);
}
/* Logótipo PortuApp (imagem) — substitui a marca "ƒa" */
.logo-img { height: 40px; width: auto; display: block; }
.logo-img-lg { height: 56px; }
.logo small {
  display: block;
  font-size: 0.56rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--ink-faint);
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.9rem; font-weight: 700; }
.nav-links a:not(.btn) { color: var(--ink-dim); transition: color 0.2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a.active { color: var(--brand-deep); }

/* ───────── BOTÕES — clay-pop + clay-glow ORIGINAIS da casa ───────── */
@property --clay-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: none; cursor: pointer; border-radius: 999px;
  padding: 15px 32px;
  font-family: "Sora", sans-serif; font-size: 0.95rem; font-weight: 700; color: #fff;
  background-color: var(--ink);
  background-image: linear-gradient(176deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,0.30) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 6px 12px -4px rgba(14, 16, 22, 0.5),
    0 14px 22px -12px rgba(14, 16, 22, 0.45),
    inset 0 3px 3px rgba(255, 255, 255, 0.50),
    inset 0 -14px 20px -5px rgba(0, 0, 0, 0.42);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn.prime {
  background-color: var(--brand);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.22),
    0 6px 12px -4px rgba(109, 77, 242, 0.6),
    0 14px 22px -12px rgba(109, 77, 242, 0.5),
    inset 0 3px 3px rgba(255, 255, 255, 0.50),
    inset 0 -14px 20px -5px rgba(0, 0, 0, 0.42);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.24),
    0 10px 16px -6px rgba(14, 16, 22, 0.5),
    0 18px 28px -14px rgba(14, 16, 22, 0.46),
    inset 0 3px 3px rgba(255, 255, 255, 0.50),
    inset 0 -14px 20px -5px rgba(0, 0, 0, 0.42);
}
.btn.prime:hover {
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.2),
    0 10px 16px -6px rgba(109, 77, 242, 0.6),
    0 18px 28px -14px rgba(109, 77, 242, 0.52),
    inset 0 3px 3px rgba(255, 255, 255, 0.50),
    inset 0 -14px 20px -5px rgba(0, 0, 0, 0.42);
}
.btn:active { transform: translateY(2px); }
.btn.ghost {
  background-color: rgba(255, 255, 255, 0.6);
  background-image: none; color: var(--ink);
  box-shadow:
    inset 0 0 0 1.5px var(--line),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(14, 16, 22, 0.08),
    0 6px 12px -8px rgba(14, 16, 22, 0.35);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover {
  box-shadow:
    inset 0 0 0 1.5px rgba(109, 77, 242, 0.4),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(84, 54, 214, 0.12),
    0 8px 14px -8px rgba(109, 77, 242, 0.4);
}

.glow { position: relative; z-index: 0; }
.glow::after {
  content: "";
  position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px;
  background: conic-gradient(
    from var(--clay-angle),
    transparent 0%, transparent 46%,
    var(--brand) 64%, #ffffff 78%, var(--brand) 88%,
    transparent 98%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.85; pointer-events: none;
  animation: clay-glow-spin 4s linear infinite;
}
@keyframes clay-glow-spin { to { --clay-angle: 360deg; } }

/* vidro da casa (cartões) */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(14, 16, 22, 0.06),
    0 10px 18px -12px rgba(14, 16, 22, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px -4px rgba(14, 16, 22, 0.05);
  border-radius: var(--radius);
}

/* ───────────────────────────── HERO ───────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px; align-items: center;
  padding-block: 78px 104px; position: relative;
}
/* bando de pássaros (Vanta Birds) a voar atrás do hero — o canvas entra
   aqui via app.js, só em desktop e depois da página carregar */
.hero-fx {
  position: absolute; inset: -40px -10vw -20px; z-index: 0;
  pointer-events: none; opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
}
.hero-fx canvas { display: block; }
.hero > div:not(.hero-fx), .hero .phone-stage { position: relative; z-index: 1; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--brand-deep);
  margin-bottom: 26px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--pink)); border-radius: 2px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); margin-bottom: 26px; }

/* text-reveal do título: cada linha sobe de uma máscara, em cascata */
.hero h1 .tl { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero h1 .tl > span { display: inline-block; transform: translateY(115%); animation: line-up 0.9s cubic-bezier(0.2, 0.65, 0.2, 1) forwards; }
.hero h1 .tl:nth-child(2) > span { animation-delay: 0.1s; }
.hero h1 .tl:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero p.lead { font-size: 1.12rem; color: var(--ink-dim); max-width: 33em; margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-meta {
  display: flex; gap: 34px; margin-top: 54px; padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-meta b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: 0.78rem; color: var(--ink-faint); letter-spacing: 0.06em; font-weight: 600; }

/* ─────────────── TELEMÓVEL — moldura + DOIS ecrãs animados ─────────────── */
.phone-stage { perspective: 1300px; display: grid; place-items: center; position: relative; isolation: isolate; }
/* sombra de CHÃO: elipse concentrada sob o aparelho — vende a altura */
.phone-stage::after {
  content: "";
  position: absolute; z-index: -1;
  left: 50%; bottom: -20px; transform: translateX(-50%);
  width: 230px; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14, 16, 22, 0.38) 0%, rgba(109, 77, 242, 0.28) 42%, transparent 70%);
  filter: blur(9px);
  pointer-events: none;
}
/* o telemóvel do hero flutua — a sombra de chão respira em contraponto */
.phone-stage:has(.phone-float)::after {
  animation: ground-breathe 7s ease-in-out infinite;
}
@keyframes ground-breathe {
  50% { transform: translateX(-50%) scale(0.84); opacity: 0.65; }
}
.phone {
  --pw: 330px;
  width: var(--pw);
  aspect-ratio: 330 / 680;
  border-radius: 50px;
  border: 9px solid #0d0e12;
  background: #0d0e12;
  position: relative; overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 8px 14px -6px rgba(14, 16, 22, 0.55),
    0 22px 32px -20px rgba(109, 77, 242, 0.65),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  will-change: transform;
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 13px; background: #0d0e12; z-index: 6;
}
.phone::after { /* vidro + luz nas arestas do aro (relevo de aparelho real) */
  content: ""; position: absolute; inset: 0; border-radius: 41px;
  background: linear-gradient(115deg, rgba(255,255,255,0.14) 0%, transparent 26%, transparent 72%, rgba(255,255,255,0.06) 100%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.28),
    inset 1px 0 1px rgba(255, 255, 255, 0.1),
    inset -1px 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -2px 3px rgba(0, 0, 0, 0.4);
  z-index: 5; pointer-events: none;
}
.phone-float { animation: phone-float 7s ease-in-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(14px) translateY(0); }
  50% { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(14px) translateY(-14px); }
}

.screen {
  position: absolute; inset: 0; border-radius: 41px; overflow: hidden;
  background: var(--app-bg, #faf6f1);
  color: var(--app-ink, #1c1917);
  font-size: 13px;
}
/* dentro do ecrã, a luz dos botões usa a cor do tema do app */
.screen .glow::after { --brand: var(--app-accent); animation-duration: 3.2s; }

/* DUAS páginas lado a lado; a animação reproduz o fluxo REAL do app:
   home (pausa) → toque no "Marcar agora" → desliza p/ a página de marcar
   → seleciona profissional → dia no calendário → hora → confirma →
   ecrã "Marcação confirmada!" → regressa à home. Timeline de 18s; cada
   passo tem o seu keyframe, todos sincronizados pelo delay --d do ecrã. */
.screen-inner {
  width: 200%; height: 100%;
  display: flex; flex-direction: row;
  animation: screen-flow 18s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.app-page { width: 50%; height: 100%; flex: none; overflow: hidden; position: relative; }
@keyframes screen-flow {
  0%, 21%    { transform: translateX(0); }      /* home */
  24.5%, 81% { transform: translateX(-50%); }   /* página de marcar */
  85%, 100%  { transform: translateX(0); }      /* regressa */
}

/* barra de estado (9:41 + sinal + bateria) — branca sobre a foto da home,
   tinta do tema na página de marcar */
.sbar {
  position: absolute; top: 11px; left: 22px; right: 20px; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  pointer-events: none;
  animation: sbar-ink 18s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes sbar-ink {
  0%, 22%    { color: #fff; }
  24.5%, 81% { color: var(--app-ink, #1c1917); }
  84%, 100%  { color: #fff; }
}
.sbar .sb-ic { display: flex; align-items: center; gap: 5px; }
.sbar .sig { position: relative; width: 3px; height: 5px; background: currentColor; border-radius: 1px; margin-right: 10px; }
.sbar .sig::before { content: ""; position: absolute; left: 4.5px; bottom: 0; width: 3px; height: 8px; background: currentColor; border-radius: 1px; }
.sbar .sig::after { content: ""; position: absolute; left: 9px; bottom: 0; width: 3px; height: 11px; background: currentColor; border-radius: 1px; }
.sbar .bat { position: relative; width: 20px; height: 10px; border: 1.5px solid currentColor; border-radius: 3.5px; opacity: 0.95; }
.sbar .bat::before { content: ""; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1px; }
.sbar .bat::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }

/* indicador home (barra de gesto iOS) */
.hbar {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 108px; height: 4px; border-radius: 999px;
  background: var(--app-ink, #1c1917); opacity: 0.28; z-index: 6;
}

/* — página 1: home do mock-app — */
.app-hero { position: relative; height: 186px; }
.app-hero img { width: 100%; height: 100%; object-fit: cover; }
.app-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.26) 55%, var(--app-bg, #faf6f1) 100%);
}
.app-hero .app-title {
  position: absolute; inset-inline: 0; bottom: 36px; text-align: center;
  color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.app-hero .app-tag {
  position: absolute; inset-inline: 0; bottom: 17px; text-align: center;
  color: rgba(255, 255, 255, 0.88); font-size: 10.5px; letter-spacing: 0.08em;
}
.app-body { padding: 14px 13px 16px; }
.app-cta {
  display: block; margin: -26px auto 13px; position: relative; width: fit-content;
  padding: 10px 26px; border-radius: 999px;
  background-color: var(--app-accent, #c0846b);
  background-image: linear-gradient(176deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,0.30) 100%);
  color: #fff; font-weight: 700; font-size: 13px;
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.2),
    0 10px 20px -6px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -8px 12px -4px rgba(0, 0, 0, 0.35);
  animation: cta-press 18s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
/* o "toque" no Marcar agora mesmo antes da página deslizar */
@keyframes cta-press {
  0%, 17.5% { transform: none; filter: none; }
  19%       { transform: scale(0.92); filter: brightness(1.18); }
  20.5%, 100% { transform: none; filter: none; }
}
.app-section-label {
  text-align: center; font-weight: 800; letter-spacing: -0.01em;
  font-size: 14.5px; margin: 4px 0 10px;
}

/* cartão de serviço — GRELHA RÍGIDA: miniatura fixa 44px, altura
   uniforme 62px, nome com ellipsis, preço+pílula alinhados à direita */
.svc {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  height: 62px; padding: 0 10px;
  background: var(--app-card, rgba(255, 255, 255, 0.78));
  backdrop-filter: blur(6px);
  border: 1px solid var(--app-card-line, rgba(255, 255, 255, 0.7));
  border-radius: 16px; margin-bottom: 8px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.25);
}
.svc-ph { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.svc .nm { min-width: 0; }
.svc b {
  display: block; font-size: 12.5px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.svc span { display: block; font-size: 10.5px; opacity: 0.55; font-weight: 600; line-height: 1.3; }
.svc .right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.svc .price { font-weight: 800; font-size: 14px; color: var(--app-money, var(--app-ink)); opacity: 1; }
.svc .mini {
  font-size: 10px; font-weight: 700; color: #fff; opacity: 1;
  background-color: var(--app-ink-btn, #1c1917);
  background-image: linear-gradient(176deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.28) 100%);
  border-radius: 999px; padding: 4px 11px; line-height: 1.4;
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, 0.35), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.4);
}

/* — página 2: marcar (serviço → profissional → calendário → hora) — */
.book { padding: 30px 13px 14px; }
.bk-top {
  font-size: 10.5px; font-weight: 700; opacity: 0.5; margin-bottom: 3px;
}
.bk-title { font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }

/* serviço já escolhido (cartão recolhido + "Trocar", como no app real) */
.bk-svc {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center; gap: 9px;
  background: var(--app-card, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--app-card-line, rgba(255, 255, 255, 0.7));
  border-radius: 13px; padding: 6px 9px;
  box-shadow: 0 6px 16px -9px rgba(0, 0, 0, 0.22);
}
.bk-svc img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.bk-svc b { display: block; font-size: 11.5px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-svc span { display: block; font-size: 9.5px; opacity: 0.55; font-weight: 600; }
.bk-svc .chg { font-size: 9.5px; font-weight: 800; color: var(--app-accent, #c0846b); opacity: 1; }

.bk-label { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; margin: 9px 0 6px; }
.bk-label i {
  font-style: normal; display: grid; place-items: center;
  width: 17px; height: 17px; border-radius: 999px;
  background: var(--app-accent); color: #fff; font-size: 10px; font-weight: 800;
}
.pros { display: flex; gap: 8px; }
.pro {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--app-card, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--app-card-line, rgba(255, 255, 255, 0.7));
  border-radius: 14px; padding: 7px 9px;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 6px 16px -9px rgba(0, 0, 0, 0.25);
}
.pro img { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8); }
.pro.sel {
  background: var(--app-ink-btn, #1c1917); color: #fff; position: relative;
  background-image: linear-gradient(176deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.3) 100%);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.35);
}
/* calendário REAL (como o do app): mês, dias da semana, passados e
   domingos desativados, hoje com anel, dia escolhido na cor do tema.
   A grelha é gerada pelo app.js a partir de [data-sel]. */
.cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 800; margin: 0 3px 5px; }
.cal-head span { opacity: 0.4; font-size: 12px; letter-spacing: 6px; font-weight: 700; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  background: var(--app-card, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--app-card-line, rgba(255, 255, 255, 0.7));
  border-radius: 14px; padding: 7px 6px 6px;
  box-shadow: 0 6px 16px -9px rgba(0, 0, 0, 0.22);
}
.cal-grid small { text-align: center; font-size: 7.5px; font-weight: 800; opacity: 0.45; letter-spacing: 0.05em; padding-bottom: 2px; }
.cd { display: grid; place-items: center; height: 20px; font-size: 10px; font-weight: 700; border-radius: 7px; }
.cd.off { opacity: 0.26; }
.cd.today { box-shadow: inset 0 0 0 1.5px var(--app-accent, #c0846b); }
.cd.sel { background: var(--app-accent, #c0846b); color: #fff; font-weight: 800; box-shadow: 0 5px 12px -4px rgba(0, 0, 0, 0.35); }

/* horas agrupadas Manhã / Tarde, como o app divide os slots */
.slotgroups { display: grid; gap: 6px; }
.slotgroups small { display: block; font-size: 8.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.45; margin: 0 2px 3px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.slot {
  text-align: center; font-size: 11px; font-weight: 800;
  border-radius: 10px; padding: 6px 0;
  background: var(--app-card, rgba(255, 255, 255, 0.78));
  border: 1px solid var(--app-card-line, rgba(255, 255, 255, 0.7));
  box-shadow: 0 5px 12px -8px rgba(0, 0, 0, 0.25);
}
.slot.off { opacity: 0.32; text-decoration: line-through; box-shadow: none; }
.slot.sel {
  background-color: var(--app-ink-btn, #1c1917); color: #fff; position: relative;
  background-image: linear-gradient(176deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.3) 100%);
  box-shadow: 0 10px 20px -7px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.35);
}
.bk-confirm {
  display: block; margin: 11px auto 0; width: fit-content; position: relative;
  padding: 10px 28px; border-radius: 999px;
  background-color: var(--app-ink-btn, #1c1917);
  background-image: linear-gradient(176deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 42%, rgba(0,0,0,0.3) 100%);
  color: #fff; font-weight: 800; font-size: 12.5px;
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.22),
    0 12px 22px -6px rgba(0, 0, 0, 0.45),
    inset 0 2px 2.5px rgba(255, 255, 255, 0.45),
    inset 0 -9px 14px -4px rgba(0, 0, 0, 0.38);
  animation: press-confirm 18s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

/* ── COREOGRAFIA: cada escolha acontece no seu momento da timeline ──
   33% profissional · 42% dia · 51% hora · 57.5% confirmar · 61–79% feito */
.screen .pro.sel { animation: pick-pro 18s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pick-pro {
  0%, 32.5% {
    background-color: var(--app-card, rgba(255, 255, 255, 0.78));
    background-image: none;
    color: var(--app-ink, #1c1917);
    box-shadow: 0 6px 16px -9px rgba(0, 0, 0, 0.25);
  }
  33%, 100% {
    background-color: var(--app-ink-btn, #1c1917);
    background-image: linear-gradient(176deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.3) 100%);
    color: #fff;
    box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  }
}
.screen .pro.sel.glow::after {
  animation: clay-glow-spin 3.2s linear infinite, ring-pro 18s linear infinite;
  animation-delay: 0s, var(--d, 0s);
}
@keyframes ring-pro { 0%, 32.5% { opacity: 0; } 33%, 100% { opacity: 0.85; } }

.screen .cd.sel { animation: pick-day 18s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pick-day {
  0%, 41.5% { background-color: transparent; color: var(--app-ink, #1c1917); box-shadow: none; }
  42%, 100% { background-color: var(--app-accent, #c0846b); color: #fff; box-shadow: 0 5px 12px -4px rgba(0, 0, 0, 0.35); }
}

.screen .slot.sel { animation: pick-slot 18s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes pick-slot {
  0%, 50.5% {
    background-color: var(--app-card, rgba(255, 255, 255, 0.78));
    background-image: none;
    color: var(--app-ink, #1c1917);
    box-shadow: 0 5px 12px -8px rgba(0, 0, 0, 0.25);
  }
  51%, 100% {
    background-color: var(--app-ink-btn, #1c1917);
    background-image: linear-gradient(176deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,0.3) 100%);
    color: #fff;
    box-shadow: 0 10px 20px -7px rgba(0, 0, 0, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  }
}
.screen .slot.sel.glow::after {
  animation: clay-glow-spin 3.2s linear infinite, ring-slot 18s linear infinite;
  animation-delay: 0s, var(--d, 0s);
}
@keyframes ring-slot { 0%, 50.5% { opacity: 0; } 51%, 100% { opacity: 0.85; } }

@keyframes press-confirm {
  0%, 56.5% { transform: none; filter: none; }
  57.5%     { transform: scale(0.93); filter: brightness(1.15); }
  59%, 100% { transform: none; filter: none; }
}

/* ecrã de sucesso (injetado pelo app.js): cobre a página após confirmar */
.bk-done {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; text-align: center; padding: 20px;
  background: var(--app-bg, #faf6f1);
  opacity: 0; pointer-events: none;
  animation: show-done 18s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes show-done {
  0%, 60%   { opacity: 0; }
  62%, 79%  { opacity: 1; }
  82%, 100% { opacity: 0; }
}
.bk-done i {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 999px; margin-bottom: 5px;
  background: var(--app-accent, #c0846b); color: #fff;
  font-size: 25px; font-weight: 800; font-style: normal;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.4), inset 0 3px 3px rgba(255, 255, 255, 0.4);
  animation: done-pop 18s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  animation-delay: var(--d, 0s);
}
@keyframes done-pop { 0%, 60.5% { transform: scale(0.3); } 64%, 100% { transform: scale(1); } }
.bk-done b { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.bk-done span { font-size: 11.5px; opacity: 0.62; font-weight: 700; }
.bk-done .bk-note { font-size: 10px; opacity: 0.5; font-weight: 600; margin-top: 8px; }

/* temas dos mock-apps (a identidade de cada SETOR — aprovada) */
.theme-salao    { --app-bg:#faf6f1; --app-ink:#1c1917; --app-accent:#c0846b; --app-ink-btn:#1c1917; --app-money:#1c1917; }
.theme-barber   { --app-bg:#15171c; --app-ink:#f1ede6; --app-accent:#d4a13c; --app-ink-btn:#d4a13c; --app-money:#d4a13c;
                  --app-card:rgba(255,255,255,0.07); --app-card-line:rgba(255,255,255,0.1); }
.theme-tattoo   { --app-bg:#131015; --app-ink:#f0e9ea; --app-accent:#e5484d; --app-ink-btn:#e5484d; --app-money:#e5484d;
                  --app-card:rgba(255,255,255,0.07); --app-card-line:rgba(255,255,255,0.1); }
.theme-estetica { --app-bg:#f4f7f2; --app-ink:#1f2a22; --app-accent:#5f8d6e; --app-ink-btn:#2c4434; --app-money:#2c4434; }
.theme-nails    { --app-bg:#fdf4f6; --app-ink:#33222a; --app-accent:#d96c8e; --app-ink-btn:#33222a; --app-money:#c2506f; }
.theme-depil    { --app-bg:#f5f3fa; --app-ink:#28233a; --app-accent:#8a6fd1; --app-ink-btn:#28233a; --app-money:#6d54b8; }

/* ─────────────────────── MOSTRUÁRIO ─────────────────────── */
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.section-head p { color: var(--ink-dim); font-size: 1.05rem; }

.showcase { padding-block: 130px 30px; }
.model {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 6vw, 90px); align-items: center;
  padding: 70px 0; border-top: 1px solid var(--line);
}
.model:nth-child(even) .phone-stage { order: -1; }
.model-copy .num {
  font-size: 0.76rem; font-weight: 800;
  color: var(--brand-deep); letter-spacing: 0.18em; text-transform: uppercase;
  display: block; margin-bottom: 14px;
}
.model-copy h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.model-copy p { color: var(--ink-dim); max-width: 30em; margin-bottom: 22px; }
.chiplist { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  box-shadow:
    0 1px 2px rgba(14, 16, 22, 0.08),
    0 4px 8px -4px rgba(14, 16, 22, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.chip.hot { color: var(--brand-deep); background: var(--brand-soft); border-color: rgba(109, 77, 242, 0.28); }

/* ─────────────────────── FAIXA / CTA ─────────────────────── */
.band {
  margin: 90px 0 0; padding: 84px 0;
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(109, 77, 242, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(241, 237, 254, 0.5), rgba(255, 255, 255, 0));
  border-block: 1px solid var(--line);
  text-align: center;
}
.band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.band p { color: var(--ink-dim); max-width: 36em; margin: 0 auto 34px; }

/* ─────────────────────── PLANOS ─────────────────────── */
.plans-hero { text-align: center; padding-block: 80px 26px; }
.plans-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 20px; }
.plans-hero p { color: var(--ink-dim); max-width: 38em; margin: 0 auto; font-size: 1.08rem; }

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; padding-block: 56px 30px; align-items: stretch;
}
.plan {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px 30px;
  display: flex; flex-direction: column;
  box-shadow:
    0 1px 2px rgba(14, 16, 22, 0.07),
    0 12px 22px -14px rgba(14, 16, 22, 0.32),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -4px 10px -6px rgba(14, 16, 22, 0.06);
  transition: border-color 0.25s ease;
}
/* brilho que segue o rato (JS escreve --mx/--my) */
.plan::before, .howpay .card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 77, 242, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.plan:hover::before, .howpay .card:hover::before { opacity: 1; }
.plan:hover { border-color: rgba(109, 77, 242, 0.3); }
.plan.star {
  background: linear-gradient(176deg, #1a1430 0%, #0e1016 100%);
  color: #f2effc;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-14px);
  box-shadow:
    0 2px 3px rgba(14, 16, 22, 0.25),
    0 16px 30px -14px rgba(84, 54, 214, 0.6),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px -8px rgba(0, 0, 0, 0.35);
}
.plan.star::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 65%);
}
.plan.star h3, .plan.star .price { color: #fff; }
.plan.star .for { color: rgba(242, 239, 252, 0.55); }
.plan.star li { color: rgba(242, 239, 252, 0.78); }
.plan.star li.plus { color: #fff; }
.plan .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(100deg, var(--brand), var(--pink));
  color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 999px; padding: 6px 16px; white-space: nowrap;
  box-shadow:
    0 1px 2px rgba(84, 54, 214, 0.35),
    0 5px 12px -4px rgba(109, 77, 242, 0.65),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.45);
}
.plan h3 { font-size: 1.4rem; margin-bottom: 6px; }
.plan .for { font-size: 0.84rem; color: var(--ink-faint); margin-bottom: 22px; min-height: 2.4em; }
.plan .price { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 0.85rem; font-weight: 700; color: inherit; opacity: 0.55; letter-spacing: 0; }
.plan .yearly { font-size: 0.78rem; color: var(--brand-deep); margin: 8px 0 24px; font-weight: 700; }
.plan.star .yearly { color: #b9a5f7; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; }
.plan li { display: flex; gap: 11px; font-size: 0.9rem; color: var(--ink-dim); }
.plan li::before { content: "✦"; color: var(--brand); font-size: 0.8rem; line-height: 1.7; }
.plan li.plus { color: var(--ink); font-weight: 700; }
.plan li.plus::before { content: "＋"; color: var(--gold); font-weight: 800; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan.star .btn { background-color: var(--brand); }

.howpay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 30px 0 20px; }
.howpay .card {
  position: relative;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow:
    0 1px 2px rgba(14, 16, 22, 0.06),
    0 10px 18px -12px rgba(14, 16, 22, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px -4px rgba(14, 16, 22, 0.05);
}
.howpay h4 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.howpay p { font-size: 0.88rem; color: var(--ink-dim); }
.howpay .big { color: var(--brand-deep); font-weight: 800; }

/* quadro de vantagens — cartões de vidro com ícone em chip violeta */
.perks { padding-block: 56px 20px; }
.perks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.perks .card {
  position: relative;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
  box-shadow:
    0 1px 2px rgba(14, 16, 22, 0.06),
    0 10px 18px -12px rgba(14, 16, 22, 0.28),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -3px 8px -4px rgba(14, 16, 22, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.perks .card:hover { border-color: rgba(109, 77, 242, 0.3); transform: translateY(-4px); }
.perks .card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(109, 77, 242, 0.13), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.perks .card:hover::before { opacity: 1; }
.perk-ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  font-size: 1.3rem; margin-bottom: 16px;
  background: linear-gradient(150deg, var(--brand-soft) 0%, #fdeef6 100%);
  border: 1px solid rgba(109, 77, 242, 0.18);
  box-shadow:
    0 1px 2px rgba(84, 54, 214, 0.12),
    0 4px 8px -3px rgba(109, 77, 242, 0.45),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px -2px rgba(109, 77, 242, 0.18);
}
.perks h4 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.perks .card p { font-size: 0.88rem; color: var(--ink-dim); }
.perks .big { color: var(--brand-deep); font-weight: 800; }

.faq { max-width: 760px; margin: 0 auto; padding-block: 40px 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 6px; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; gap: 14px;
}
.faq summary::after { content: "+"; color: var(--brand-deep); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--ink-dim); font-size: 0.93rem; max-width: 60ch; }

.contact {
  margin: 70px 0 90px; text-align: center;
  border: 1.5px dashed rgba(109, 77, 242, 0.45);
  border-radius: var(--radius); padding: 56px 30px;
  background: linear-gradient(180deg, var(--brand-soft), rgba(255, 255, 255, 0.6));
}
.contact h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.contact p { color: var(--ink-dim); margin-bottom: 26px; }
.contact .slot {
  display: inline-block;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brand-deep);
  border: 1px solid rgba(109, 77, 242, 0.45); border-radius: 999px; padding: 13px 28px;
  background: rgba(255, 255, 255, 0.7);
}

footer {
  border-top: 1px solid var(--line); padding: 36px 0 46px;
  text-align: center; color: var(--ink-faint); font-size: 0.8rem;
  background: rgba(250, 250, 253, 0.6);
}
footer .logo { justify-content: center; margin-bottom: 14px; }

/* ── A coreografia dos telemóveis só ARRANCA quando o aparelho entra no
   ecrã (classe .play posta pelo app.js): todos apresentam primeiro a HOME
   com os serviços, a sequência toca do início, e fora de vista não gastam
   CPU. (As regras vêm DEPOIS das declarações de animação para ganharem.) ── */
.screen .screen-inner, .screen .app-cta, .screen .sbar,
.screen .pro.sel, .screen .cd.sel, .screen .slot.sel,
.screen .bk-confirm, .screen .bk-done, .screen .bk-done i,
.screen .glow::after,
.screen .pro.sel.glow::after, .screen .slot.sel.glow::after {
  animation-play-state: paused;
}
.screen.play .screen-inner, .screen.play .app-cta, .screen.play .sbar,
.screen.play .pro.sel, .screen.play .cd.sel, .screen.play .slot.sel,
.screen.play .bk-confirm, .screen.play .bk-done, .screen.play .bk-done i,
.screen.play .glow::after,
.screen.play .pro.sel.glow::after, .screen.play .slot.sel.glow::after {
  animation-play-state: running;
}

/* ───────────── reveals (fallback JS por IntersectionObserver) ───────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* ── POSE 3D dos telemóveis: ficam inclinados, "a sair da página"
   (perspetiva do stage + rotateY/rotateX + translateZ). Os modelos pares
   têm o ecrã do lado esquerdo → espelham o ângulo para olhar p/ o texto. ── */
.model .phone { --ry: -11deg; --rx: 5deg; transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(26px); }
.model:nth-child(even) .phone { --ry: 11deg; }
.hero .phone { --ry: -7deg; --rx: 3deg; }

/* ── ENTRADA dos telemóveis do mostruário: UMA vez (não anda para trás
   com o scroll): o aparelho roda de um ângulo aberto e "salta" para fora
   da página até à pose final; a sombra de chão acende depois. ── */
.model .phone-stage.reveal { opacity: 1; transform: none; transition: none; }
.model .phone-stage.reveal .phone { opacity: 0; }
.model .phone-stage.reveal.in .phone {
  animation: phone-pop 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes phone-pop {
  0% {
    opacity: 0;
    transform: rotateY(calc(var(--ry, 0deg) * 2.8)) rotateX(calc(var(--rx, 0deg) * 2.2)) translateY(64px) translateZ(-110px) scale(0.9);
  }
  55% { opacity: 1; }
  100% {
    opacity: 1;
    transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(26px) scale(1);
  }
}
.model .phone-stage.reveal::after { opacity: 0; transition: opacity 0.6s ease 0.45s; }
.model .phone-stage.reveal.in::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .glow::after, .screen-inner, .phone-float, .aurora i,
  .app-cta, .sbar, .pro.sel, .cd.sel, .slot.sel, .bk-confirm,
  .bk-done, .bk-done i, .phone-stage::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .tl > span { transform: none; animation: none; }
  .model .phone-stage.reveal .phone { opacity: 1; animation: none; }
  .model .phone-stage.reveal::after { opacity: 1; transition: none; }
  .plan::before, .howpay .card::before { display: none; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-block: 52px 64px; text-align: center; }
  .hero p.lead, .hero-ctas { margin-inline: auto; justify-content: center; }
  .hero-meta { justify-content: center; }
  .showcase { padding-block: 230px 30px; }
  .model { grid-template-columns: 1fr; text-align: center; padding: 48px 0; }
  .model:nth-child(even) .phone-stage { order: 0; }
  .model-copy p { margin-inline: auto; }
  .chiplist { justify-content: center; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.star { transform: none; }
  .howpay { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .perks-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .nav-links { gap: 16px; font-size: 0.84rem; }
  .nav-links .btn { padding: 11px 20px; }
}

/* nav compacta em ecrãs estreitos: só a marca ƒa + links + botão curto */
@media (max-width: 560px) {
  /* só o padding LATERAL — o shorthand `padding` zerava o respiro
     vertical de todas as secções .wrap (hero, mostruário, planos…) */
  .wrap { padding-inline: 20px; }
  .nav-inner { padding: 10px 14px; gap: 8px; }
  .logo > span:last-child { display: none; }
  .nav-links { gap: 12px; font-size: 0.8rem; }
  .nav-links .btn { padding: 10px 14px; font-size: 0.78rem; }
  .phone { --pw: 300px; }
}

/* ═══════════ WhatsApp — botão flutuante + CTA de contacto ═══════════ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 10px 22px -8px rgba(37, 211, 102, 0.75);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  animation: wa-pulse 2.8s ease-out infinite;
}
.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0% { box-shadow: inset 0 2px 2px rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.28), 0 10px 22px -8px rgba(37,211,102,.75), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: inset 0 2px 2px rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.28), 0 10px 22px -8px rgba(37,211,102,.75), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: inset 0 2px 2px rgba(255,255,255,.4), 0 1px 2px rgba(0,0,0,.28), 0 10px 22px -8px rgba(37,211,102,.75), 0 0 0 0 rgba(37,211,102,0); }
}
.btn.wa {
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn.wa:hover { background: #20bd5a; color: #fff; }
.btn.wa svg { width: 22px; height: 22px; }
.contact-num { margin-top: 16px; font-weight: 700; }
.contact-num a { color: var(--brand); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }
@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
}
