/* AG Studio · aparelhos realistas só em CSS: MacBook Pro 14" e iPhone 15 Pro (titânio preto).
   Sem imagens de aparelhos, sem dependências. Tudo escala pela LARGURA do elemento
   (container queries: 1cqw = 1% da largura do aparelho).

   USO
     <div class="macbook"><div class="macbook__screen"><img src="/img/cap/grupoc-d.jpg" alt="…"></div></div>
     <div class="iphone"><div class="iphone__screen"><img src="/img/cap/nami-m.jpg" alt="…"></div></div>

     Composição (MacBook atrás, iPhone à frente em baixo à direita), de 300px a 1100px:
     <div class="aparelhos-combo">
       <div class="macbook">…</div>
       <div class="iphone">…</div>
     </div>

   O ECRÃ (__screen) recebe UM filho: <img> (fica object-fit:cover, encostada ao topo) ou qualquer HTML
   (<div>…</div>). O filho HTML é um container: lá dentro, 1cqw = 1% da largura do ecrã
   (MacBook: desenhar a 1440px → px/14.4 cqw · iPhone: desenhar a 390px → px/3.9 cqw).

   MODIFICADORES
     .is-tilt   inclinação 3D leve (foto de produto). Também em .aparelhos-combo.is-tilt (os dois juntos).
     .is-claro  barra de cima clara (sites de fundo claro). Cor exata: style="--barra:#f6f5f2".
     .is-prata  (MacBook) alumínio cinzento sideral claro em vez de preto sideral.

   VARIÁVEIS (opcionais, no próprio aparelho)
     --barra, --barra-tinta   cor da barra de estado / de menus e do texto dela
     --indicador              cor da barra "home" do iPhone (por omissão branca)
     --perspetiva             distância da perspetiva no .is-tilt (por omissão 1500px / 2600px)

   NOTAS
   - Dar largura ao aparelho (width / max-width, ou coluna de grid). Dentro de flex, dar flex-basis ou width:
     com container-type o elemento não tem largura própria.
   - Não pôr data-reveal no próprio aparelho com .is-tilt (o reveal usa transform): pôr num invólucro.
   - iPhone: o site começa por baixo da barra de estado (como no Safari), por isso uma captura 390×844
     perde ~6% em baixo. Para mostrar outra zona: style="object-position: 50% 40%" na <img>.
   - Os botões do iPhone saem 0.55% da largura para cada lado (2px num telemóvel de 360px): não encostar à
     borda do ecrã. O filho do ecrã tem fundo branco por omissão (mudar com style="background:…").
   - O texto pequeno da barra de menus do Mac usa a letra do sistema (SF no Mac, Segoe no Windows). */

.macbook, .iphone {
  --ap-sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  --ap-ic-claro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='13' viewBox='0 0 70 13' fill='%23ffffff'%3E%3Crect x='0' y='8.2' width='3' height='3.8' rx='.9'/%3E%3Crect x='4.6' y='6' width='3' height='6' rx='.9'/%3E%3Crect x='9.2' y='3.6' width='3' height='8.4' rx='.9'/%3E%3Crect x='13.8' y='1.2' width='3' height='10.8' rx='.9'/%3E%3Cpath d='M28 12.6 25.38 9.98A3.7 3.7 0 0 1 30.62 9.98Z'/%3E%3Cpath d='M23.12 7.72A6.9 6.9 0 0 1 32.88 7.72M20.86 5.46A10.1 10.1 0 0 1 35.14 5.46' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round'/%3E%3Crect x='41.5' y='1' width='24' height='11' rx='3.4' fill='none' stroke='%23ffffff' stroke-opacity='.42' stroke-width='1'/%3E%3Crect x='43.4' y='2.9' width='20.2' height='7.2' rx='1.9'/%3E%3Cpath d='M66.6 4.7v3.6a1.8 1.8 0 0 0 0-3.6Z' fill-opacity='.45'/%3E%3C/svg%3E");
  --ap-ic-escuro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='13' viewBox='0 0 70 13' fill='%23111111'%3E%3Crect x='0' y='8.2' width='3' height='3.8' rx='.9'/%3E%3Crect x='4.6' y='6' width='3' height='6' rx='.9'/%3E%3Crect x='9.2' y='3.6' width='3' height='8.4' rx='.9'/%3E%3Crect x='13.8' y='1.2' width='3' height='10.8' rx='.9'/%3E%3Cpath d='M28 12.6 25.38 9.98A3.7 3.7 0 0 1 30.62 9.98Z'/%3E%3Cpath d='M23.12 7.72A6.9 6.9 0 0 1 32.88 7.72M20.86 5.46A10.1 10.1 0 0 1 35.14 5.46' fill='none' stroke='%23111111' stroke-width='1.9' stroke-linecap='round'/%3E%3Crect x='41.5' y='1' width='24' height='11' rx='3.4' fill='none' stroke='%23111111' stroke-opacity='.42' stroke-width='1'/%3E%3Crect x='43.4' y='2.9' width='20.2' height='7.2' rx='1.9'/%3E%3Cpath d='M66.6 4.7v3.6a1.8 1.8 0 0 0 0-3.6Z' fill-opacity='.45'/%3E%3C/svg%3E");
  --ap-menu-e-claro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='37' viewBox='0 0 600 37'%3E%3Ctext text-rendering='geometricPrecision' x='0' y='23.4' fill='%23f2f2f2' font-family='-apple-system, BlinkMacSystemFont, SF Pro Text, Segoe UI, Helvetica, Arial, sans-serif' font-size='13.4' font-weight='500'%3E%3Ctspan font-weight='700'%3ESafari%3C/tspan%3E%3Ctspan dx='19'%3EFicheiro%3C/tspan%3E%3Ctspan dx='19'%3EEdi%C3%A7%C3%A3o%3C/tspan%3E%3Ctspan dx='19'%3EVisualiza%C3%A7%C3%A3o%3C/tspan%3E%3Ctspan dx='19'%3EHist%C3%B3rico%3C/tspan%3E%3Ctspan dx='19'%3EMarcadores%3C/tspan%3E%3Ctspan dx='19'%3EJanela%3C/tspan%3E%3Ctspan dx='19'%3EAjuda%3C/tspan%3E%3C/text%3E%3C/svg%3E");
  --ap-menu-e-escuro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='37' viewBox='0 0 600 37'%3E%3Ctext text-rendering='geometricPrecision' x='0' y='23.4' fill='%231d1d1f' font-family='-apple-system, BlinkMacSystemFont, SF Pro Text, Segoe UI, Helvetica, Arial, sans-serif' font-size='13.4' font-weight='500'%3E%3Ctspan font-weight='700'%3ESafari%3C/tspan%3E%3Ctspan dx='19'%3EFicheiro%3C/tspan%3E%3Ctspan dx='19'%3EEdi%C3%A7%C3%A3o%3C/tspan%3E%3Ctspan dx='19'%3EVisualiza%C3%A7%C3%A3o%3C/tspan%3E%3Ctspan dx='19'%3EHist%C3%B3rico%3C/tspan%3E%3Ctspan dx='19'%3EMarcadores%3C/tspan%3E%3Ctspan dx='19'%3EJanela%3C/tspan%3E%3Ctspan dx='19'%3EAjuda%3C/tspan%3E%3C/text%3E%3C/svg%3E");
  --ap-menu-d-claro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='37' viewBox='0 0 190 37' fill='%23f2f2f2'%3E%3Crect x='.5' y='13' width='23' height='11' rx='3.2' fill='none' stroke='%23f2f2f2' stroke-opacity='.5' stroke-width='1'/%3E%3Crect x='2.4' y='14.9' width='15' height='7.2' rx='1.7'/%3E%3Cpath d='M25.2 16.7v3.6a1.8 1.8 0 0 0 0-3.6Z' fill-opacity='.5'/%3E%3Cpath d='M47 25.2 44.75 22.95A3.2 3.2 0 0 1 49.25 22.95Z'/%3E%3Cpath d='M42.83 21.03A5.9 5.9 0 0 1 51.17 21.03M40.85 19.05A8.7 8.7 0 0 1 53.15 19.05' fill='none' stroke='%23f2f2f2' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='72' cy='17.6' r='4.6' fill='none' stroke='%23f2f2f2' stroke-width='1.7'/%3E%3Cpath d='M75.4 21 79 24.6' stroke='%23f2f2f2' stroke-width='1.9' stroke-linecap='round'/%3E%3Crect x='94' y='12.4' width='14' height='5.4' rx='2.7' fill='none' stroke='%23f2f2f2' stroke-width='1.4'/%3E%3Ccircle cx='96.8' cy='15.1' r='1.6'/%3E%3Crect x='94' y='19.6' width='14' height='5.4' rx='2.7' fill='none' stroke='%23f2f2f2' stroke-width='1.4'/%3E%3Ccircle cx='105.2' cy='22.3' r='1.6'/%3E%3Ctext text-rendering='geometricPrecision' x='190' y='23.4' text-anchor='end' fill='%23f2f2f2' font-family='-apple-system, BlinkMacSystemFont, SF Pro Text, Segoe UI, Helvetica, Arial, sans-serif' font-size='13.4' font-weight='500'%3E9:41%3C/text%3E%3C/svg%3E");
  --ap-menu-d-escuro: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='37' viewBox='0 0 190 37' fill='%231d1d1f'%3E%3Crect x='.5' y='13' width='23' height='11' rx='3.2' fill='none' stroke='%231d1d1f' stroke-opacity='.5' stroke-width='1'/%3E%3Crect x='2.4' y='14.9' width='15' height='7.2' rx='1.7'/%3E%3Cpath d='M25.2 16.7v3.6a1.8 1.8 0 0 0 0-3.6Z' fill-opacity='.5'/%3E%3Cpath d='M47 25.2 44.75 22.95A3.2 3.2 0 0 1 49.25 22.95Z'/%3E%3Cpath d='M42.83 21.03A5.9 5.9 0 0 1 51.17 21.03M40.85 19.05A8.7 8.7 0 0 1 53.15 19.05' fill='none' stroke='%231d1d1f' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='72' cy='17.6' r='4.6' fill='none' stroke='%231d1d1f' stroke-width='1.7'/%3E%3Cpath d='M75.4 21 79 24.6' stroke='%231d1d1f' stroke-width='1.9' stroke-linecap='round'/%3E%3Crect x='94' y='12.4' width='14' height='5.4' rx='2.7' fill='none' stroke='%231d1d1f' stroke-width='1.4'/%3E%3Ccircle cx='96.8' cy='15.1' r='1.6'/%3E%3Crect x='94' y='19.6' width='14' height='5.4' rx='2.7' fill='none' stroke='%231d1d1f' stroke-width='1.4'/%3E%3Ccircle cx='105.2' cy='22.3' r='1.6'/%3E%3Ctext text-rendering='geometricPrecision' x='190' y='23.4' text-anchor='end' fill='%231d1d1f' font-family='-apple-system, BlinkMacSystemFont, SF Pro Text, Segoe UI, Helvetica, Arial, sans-serif' font-size='13.4' font-weight='500'%3E9:41%3C/text%3E%3C/svg%3E");
}


/* =====================================================================
   MacBook Pro 14"  (medidas em % da largura total = cqw)
   tampa 88 × 59.54 · aro 0.38 · moldura 1.25 (lados) 1.35 (cima) 2.4 (baixo)
   ecrã 84.74 de largura = barra de menus 2.07 + imagem 16:10 (52.96)
   dobradiça 1.0 · base 2.65
   ===================================================================== */
.macbook {
  --alu-hl: #a9aaae;   /* aresta polida (apanha a luz) */
  --alu-1: #545559;
  --alu-2: #3a3b3f;
  --alu-3: #26272a;
  --alu-4: #131315;
  --moldura: #050506;
  --barra: #1b1b1d;
  --barra-tinta: #f2f2f2;
  --menu-e: var(--ap-menu-e-claro);
  --menu-d: var(--ap-menu-d-claro);
  container-type: inline-size;
  position: relative;
  display: flow-root;
}
.macbook.is-prata {
  --alu-hl: #eceef0;
  --alu-1: #b9bbbf;
  --alu-2: #9c9ea3;
  --alu-3: #75777c;
  --alu-4: #4c4d51;
}
.macbook.is-claro {
  --barra: #e9e8e5;
  --barra-tinta: #1d1d1f;
  --menu-e: var(--ap-menu-e-escuro);
  --menu-d: var(--ap-menu-d-escuro);
}

/* tampa: aro de alumínio (border) + moldura preta + barra de menus */
.macbook__screen {
  position: relative;
  width: 88cqw;
  height: 59.54cqw;
  margin: 0 auto 3.95cqw;            /* espaço para a dobradiça e a base */
  border: .38cqw solid transparent;
  border-radius: 2.3cqw 2.3cqw 1cqw 1cqw;
  background:
    /* cantos redondos do ecrã (em cima) */
    radial-gradient(circle at 100% 100%, transparent .7cqw, var(--moldura) calc(.7cqw + .6px)) 1.25cqw 1.35cqw / .7cqw .7cqw no-repeat,
    radial-gradient(circle at 0 100%, transparent .7cqw, var(--moldura) calc(.7cqw + .6px)) 85.29cqw 1.35cqw / .7cqw .7cqw no-repeat,
    /* o ecrã curva para dentro onde encontra o notch */
    radial-gradient(circle at 0 100%, transparent .32cqw, var(--moldura) calc(.32cqw + .6px)) 40.2cqw 1.35cqw / .32cqw .32cqw no-repeat,
    radial-gradient(circle at 100% 100%, transparent .32cqw, var(--moldura) calc(.32cqw + .6px)) 46.72cqw 1.35cqw / .32cqw .32cqw no-repeat,
    /* barra de menus do macOS */
    var(--menu-e) 2.3cqw 1.35cqw / auto 2.07cqw no-repeat,
    var(--menu-d) right 2.3cqw top 1.35cqw / auto 2.07cqw no-repeat,
    linear-gradient(var(--barra), var(--barra)) 1.25cqw 1.35cqw / 84.74cqw 2.07cqw no-repeat,
    /* moldura de vidro preto */
    linear-gradient(var(--moldura), var(--moldura)) padding-box,
    /* aro de alumínio: aresta polida em cima, mais escuro em baixo */
    linear-gradient(180deg, var(--alu-hl) 0, var(--alu-1) .5cqw, var(--alu-2) 40%, var(--alu-3) 100%) border-box;
  box-shadow:
    inset 0 0 0 .07cqw rgba(255,255,255,.07),          /* rebordo do vidro */
    /* dobradiça (cilindro escuro por baixo da tampa) */
    0 4.26cqw 0 -4cqw #36373b,
    0 4.6cqw 0 -4cqw #19191c,
    0 5cqw 0 -4cqw #08080a;
}
/* notch com câmara */
.macbook__screen::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(50% - 3.1cqw);
  width: 6.2cqw;
  height: 3.42cqw;
  border-radius: 0 0 .8cqw .8cqw;
  background:
    radial-gradient(circle, rgba(150,180,255,.5) 0 .05cqw, transparent .09cqw) calc(50% - .06cqw) 1.15cqw / 1cqw 1cqw no-repeat,
    radial-gradient(circle, #1d2738 0 .15cqw, #0a0e15 .24cqw, #1a1a1d .32cqw, #0c0c0e .4cqw, transparent .44cqw) 50% 1.21cqw / 1cqw 1cqw no-repeat,
    var(--moldura);
}
/* brilho do vidro (por cima de tudo, muito subtil) */
.macbook__screen::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: 1.92cqw 1.92cqw .62cqw .62cqw;
  pointer-events: none;
  background:
    linear-gradient(108deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.022) 31%, rgba(255,255,255,.008) 31.2%, rgba(255,255,255,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 20%);
}
/* o que aparece no ecrã: imagem 16:10 por baixo da barra de menus */
.macbook__screen > * {
  position: absolute;
  z-index: 1;
  left: 1.25cqw;
  top: 3.42cqw;
  width: 84.74cqw;
  height: 52.96cqw;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: #fff;
}
.macbook__screen > img, .macbook__screen > picture, .macbook__screen > video { object-fit: cover; object-position: top; }
.macbook__screen > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.macbook__screen > :not(img, video) { container-type: inline-size; text-rendering: geometricPrecision; }

/* base de alumínio vista de frente */
.macbook::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 60.54cqw;
  height: 2.65cqw;
  border-radius: .3cqw .3cqw 7cqw 7cqw / .3cqw .3cqw 2.2cqw 2.2cqw;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 5.5%, rgba(0,0,0,0) 94.5%, rgba(0,0,0,.55)),
    radial-gradient(50% 160% at 50% 0%, rgba(255,255,255,.12), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, var(--alu-hl) 0, var(--alu-hl) .1cqw, var(--alu-1) .32cqw, var(--alu-2) .6cqw, var(--alu-3) 55%, var(--alu-4) 100%);
  box-shadow:
    0 1.6cqw 2.4cqw -.6cqw rgba(0,0,0,.9),
    0 .5cqw 1cqw -.3cqw rgba(0,0,0,.8);
}
/* rebaixo para o dedo, a meio da base */
.macbook::after {
  content: "";
  position: absolute;
  top: 60.54cqw;
  left: calc(50% - 6.6cqw);
  width: 13.2cqw;
  height: 1.05cqw;
  border-radius: 0 0 2.6cqw 2.6cqw / 0 0 1.05cqw 1.05cqw;
  background: linear-gradient(180deg, #0a0a0b 0, var(--alu-4) 35%, var(--alu-3) 80%, var(--alu-2));
  box-shadow: inset 0 -.09cqw .04cqw rgba(255,255,255,.2);
}


/* =====================================================================
   iPhone 15 Pro, titânio preto  (medidas em % da largura = cqw)
   corpo 100 × 207.2 · aro de titânio 1.45 · moldura preta 2.65
   ecrã 91.8 × 199 (raio 12.9) = barra de estado 12.6 + site
   Dynamic Island 29.4 × 8.64 a 2.57 do topo do ecrã
   ===================================================================== */
.iphone {
  --status: 12.6cqw;
  --barra: #000;
  --barra-tinta: #fff;
  --icones: var(--ap-ic-claro);
  --indicador: rgba(255,255,255,.88);
  --ti-hl: #8d8a84;
  --ti-1: #4f4d49;
  --ti-2: #363431;
  --ti-3: #252422;
  --ti-4: #121211;
  container-type: inline-size;
  position: relative;
  aspect-ratio: 100 / 207.2;
  border-radius: 17% / 8.205%;
  /* aro de titânio escovado: reflexos que mudam à volta */
  background:
    linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, rgba(255,255,255,.08) 100%),
    conic-gradient(from 200deg, var(--ti-1), var(--ti-3) 10%, var(--ti-hl) 17%, var(--ti-2) 25%, var(--ti-4) 36%, var(--ti-2) 46%, var(--ti-1) 52%, var(--ti-3) 62%, var(--ti-hl) 69%, var(--ti-2) 77%, var(--ti-4) 88%, var(--ti-1));
}
.iphone.is-claro {
  --barra: #f5f4f1;
  --barra-tinta: #111;
  --icones: var(--ap-ic-escuro);
}
/* sombras, luz no rebordo exterior e (no .is-tilt) a espessura do telemóvel */
.iphone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 .14cqw rgba(255,255,255,.2),
    inset 0 0 0 .5cqw rgba(0,0,0,.25),
    var(--espessura, 0 0 #0000),
    var(--sombra-extra, 0 0 #0000),
    0 4cqw 9cqw -2cqw rgba(0,0,0,.75),
    0 1cqw 2cqw rgba(0,0,0,.5);
}
/* botões laterais: ação + volume (esquerda), ligar (direita) */
.iphone::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -.55cqw;
  right: -.55cqw;
  pointer-events: none;
  --bt-e: linear-gradient(90deg, #0e0e0e, var(--ti-2) 35%, var(--ti-hl) 70%, var(--ti-3));
  --bt-d: linear-gradient(270deg, #0e0e0e, var(--ti-2) 35%, var(--ti-hl) 70%, var(--ti-3));
  background:
    var(--bt-e) 0 36.6cqw / .58cqw 9.5cqw no-repeat,
    var(--bt-e) 0 53.5cqw / .58cqw 15cqw no-repeat,
    var(--bt-e) 0 72.3cqw / .58cqw 15cqw no-repeat,
    var(--bt-d) 100% 59cqw / .58cqw 22.8cqw no-repeat;
  border-radius: .3cqw;
}

/* vidro da frente (moldura preta) */
.iphone__screen {
  position: absolute;
  inset: 1.45cqw;
  border-radius: 15.55cqw;
  overflow: hidden;
  background: #020202;
  box-shadow:
    0 0 0 .16cqw #0b0b0b,
    0 0 0 .42cqw rgba(255,255,255,.07);
}
/* barra de estado: hora, rede/wi-fi/bateria e a Dynamic Island */
.iphone__screen::before {
  content: "9:41";
  position: absolute;
  left: 2.65cqw;
  top: 2.65cqw;
  width: 91.8cqw;
  height: var(--status);
  box-sizing: border-box;
  padding: 4.95cqw 0 0 9.7cqw;
  border-radius: 12.9cqw 12.9cqw 0 0;
  font: 600 3.95cqw/1 var(--ap-sf);
  letter-spacing: -.01em;
  color: var(--barra-tinta);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  background:
    /* Dynamic Island: duas pontas redondas (a da direita com a câmara) + meio */
    radial-gradient(circle closest-side, #000 calc(100% - .7px), transparent) calc(50% - 10.38cqw) 2.57cqw / 8.64cqw 8.64cqw no-repeat,
    radial-gradient(circle closest-side, #161b26 0 11%, #090b11 22%, #020203 38%, #000 calc(100% - .7px), transparent) calc(50% + 10.38cqw) 2.57cqw / 8.64cqw 8.64cqw no-repeat,
    linear-gradient(#000, #000) 50% 2.57cqw / 20.8cqw 8.64cqw no-repeat,
    var(--icones) right 6.1cqw top 5.55cqw / auto 2.75cqw no-repeat,
    var(--barra);
}
/* reflexo do vidro + barra "home" */
.iphone__screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle closest-side, var(--indicador) calc(100% - .5px), transparent) calc(50% - 15.07cqw) calc(100% - 4.52cqw) / 1.17cqw 1.17cqw no-repeat,
    radial-gradient(circle closest-side, var(--indicador) calc(100% - .5px), transparent) calc(50% + 15.07cqw) calc(100% - 4.52cqw) / 1.17cqw 1.17cqw no-repeat,
    linear-gradient(var(--indicador), var(--indicador)) 50% calc(100% - 4.52cqw) / 30.14cqw 1.17cqw no-repeat,
    linear-gradient(120deg, rgba(255,255,255,.085) 0%, rgba(255,255,255,.028) 33%, rgba(255,255,255,.01) 33.3%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 14%);
}
/* o que aparece no ecrã: começa por baixo da barra de estado */
.iphone__screen > * {
  position: absolute;
  z-index: 1;
  left: 2.65cqw;
  top: calc(2.65cqw + var(--status));
  width: 91.8cqw;
  height: calc(199cqw - var(--status));
  max-width: none;
  margin: 0;
  border-radius: 0 0 12.9cqw 12.9cqw;
  overflow: hidden;
  background: #fff;
}
.iphone__screen > img, .iphone__screen > picture, .iphone__screen > video { object-fit: cover; object-position: top; }
.iphone__screen > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone__screen > :not(img, video) { container-type: inline-size; text-rendering: geometricPrecision; }


/* =====================================================================
   .is-tilt — inclinação 3D leve, como numa foto de produto
   ===================================================================== */
.iphone.is-tilt {
  transform: perspective(var(--perspetiva, 1500px)) rotateY(-17deg) rotateX(5deg) rotateZ(.6deg);
}
/* espessura do telemóvel (o lado direito fica à vista) */
.iphone.is-tilt, .aparelhos-combo.is-tilt > .iphone {
  --espessura:
    .25cqw .07cqw 0 var(--ti-hl),
    .6cqw .17cqw 0 var(--ti-1),
    1cqw .28cqw 0 var(--ti-2),
    1.4cqw .4cqw 0 var(--ti-2),
    1.8cqw .5cqw 0 var(--ti-3),
    2.2cqw .62cqw 0 var(--ti-3),
    2.6cqw .73cqw 0 var(--ti-3),
    2.95cqw .83cqw 0 var(--ti-4),
    3.2cqw .9cqw 0 #0b0b0b;
}
/* de lado, só se vê o botão de ligar (na espessura) */
.iphone.is-tilt::after, .aparelhos-combo.is-tilt > .iphone::after {
  left: 0;
  right: -2.6cqw;
  background:
    linear-gradient(90deg, var(--ti-hl), var(--ti-1) 40%, var(--ti-3)) 100% 59.4cqw / 2.1cqw 22.8cqw no-repeat;
}
.macbook.is-tilt {
  transform: perspective(var(--perspetiva, 2600px)) rotateY(-13deg) rotateX(5deg);
}
.macbook.is-tilt .macbook__screen, .aparelhos-combo.is-tilt > .macbook .macbook__screen {
  box-shadow:
    inset 0 0 0 .07cqw rgba(255,255,255,.07),
    0 4.26cqw 0 -4cqw #36373b,
    0 4.6cqw 0 -4cqw #19191c,
    0 5cqw 0 -4cqw #08080a,
    /* espessura da tampa (lado direito) */
    .14cqw .02cqw 0 var(--alu-1),
    .28cqw .04cqw 0 var(--alu-2),
    .42cqw .06cqw 0 var(--alu-3);
}
.macbook.is-tilt::before, .aparelhos-combo.is-tilt > .macbook::before {
  box-shadow:
    .5cqw 0 0 -.05cqw var(--alu-3),
    1cqw -.05cqw 0 -.1cqw var(--alu-4),
    0 1.6cqw 2.4cqw -.6cqw rgba(0,0,0,.9),
    0 .5cqw 1cqw -.3cqw rgba(0,0,0,.8);
}


/* =====================================================================
   .aparelhos-combo — MacBook atrás + iPhone à frente, em baixo à direita
   (medidas em % da largura da composição)
   ===================================================================== */
.aparelhos-combo {
  container: aparelhos / inline-size;
  position: relative;
  display: flow-root;
}
.aparelhos-combo > * {
  --mac-w: 80;   /* largura do MacBook */
  --mac-x: 3.5;  /* distância à esquerda */
  --tel-w: 21;   /* largura do iPhone */
  --tel-x: 75.5; /* posição do iPhone */
  --chao: 3;     /* quanto o iPhone desce abaixo da base do MacBook (está mais à frente) */
}
@container aparelhos (max-width: 560px) {
  .aparelhos-combo > * { --mac-w: 80; --mac-x: 0; --tel-w: 28; --tel-x: 70; --chao: 4; }
}
.aparelhos-combo > .macbook {
  width: calc(var(--mac-w) * 1cqw);
  /* espaço em cima só se o iPhone for mais alto do que o MacBook */
  margin: max(0cqw, calc(var(--tel-w) * 2.072cqw - var(--mac-w) * .6349cqw - var(--chao) * 1cqw)) 0 calc(var(--chao) * 1cqw) calc(var(--mac-x) * 1cqw);
}
.aparelhos-combo > .iphone {
  position: absolute;
  z-index: 2;
  left: calc(var(--tel-x) * 1cqw);
  bottom: 0;
  width: calc(var(--tel-w) * 1cqw);
  /* sombra do iPhone em cima do MacBook */
  --sombra-extra: -9cqw 8cqw 16cqw -2cqw rgba(0,0,0,.6);
}
/* os dois inclinados juntos, com a mesma perspetiva (origem comum = centro da composição) */
.aparelhos-combo.is-tilt > * {
  --rot: perspective(260cqw) rotateY(-12deg) rotateX(5deg);
  --altura: max(calc(var(--mac-w) * .6349cqw + var(--chao) * 1cqw), calc(var(--tel-w) * 2.072cqw));
}
.aparelhos-combo.is-tilt > .macbook {
  transform: var(--rot);
  transform-origin: calc(50cqw - var(--mac-x) * 1cqw) calc(var(--altura) / 2 - (var(--altura) - var(--chao) * 1cqw - var(--mac-w) * .6349cqw));
}
.aparelhos-combo.is-tilt > .iphone {
  transform: var(--rot) translateZ(6cqw);
  transform-origin: calc(50cqw - var(--tel-x) * 1cqw) calc(var(--altura) / 2 - (var(--altura) - var(--tel-w) * 2.072cqw));
}
