/* ---------------------------------------------------------------------------
   celular.css · FlamaTech
   Ato 4, A CASA. O celular de verdade (o app funcionando) e, atras dele, o
   palco: a foto do ambiente em camadas, que acende quando o dedo acende a luz.
   Origem: flamatech-htmls-personalizados, Demos/celular-premium (19/out/2026).

   Isolamento: tudo aqui comeca com .cel ou .cel-*, e nada sai do #residencial.
   Os tokens sao os do site.css (--sc-*); o resto e a paleta interna do app.
   --------------------------------------------------------------------------- */

.cel {
  --cel-ac:      var(--sc-accent);
  --cel-ac-ink:  var(--sc-accent-ink);
  --cel-teal:    #08AB87;
  --cel-ink:     var(--sc-ink);
  --cel-muted:   #A9B3B1;
  --cel-dim:     #87918F;
  --cel-glass:   rgba(10, 16, 14, .62);
  --cel-line:    var(--sc-hairline);
  --cel-warm:    #FFB867;
  --cel-red:     #FF5A5F;
  --cel-amber:   #FFC857;
  --cel-app:     #0A0D0D;
  --cel-card:    rgba(255, 255, 255, .06);
  --cel-aline:   rgba(255, 255, 255, .08);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sc-canvas);
  color: var(--cel-ink);
  font-family: var(--sc-font-text);
  /* Raleway desenha numero em estilo antigo por padrao; no app o numero e lido */
  font-variant-numeric: lining-nums tabular-nums;
}

.cel button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; margin: 0; }
.cel img { display: block; max-width: none; }
.cel-i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: inline-block; }
.cel button:focus-visible, .cel [tabindex]:focus-visible { outline: 2px solid var(--cel-ac); outline-offset: 2px; }

/* ---------------- o palco (a foto que obedece) ---------------- */

.cel-palco { position: absolute; inset: 0; z-index: -2; }
.cel-camadas { position: absolute; inset: 0; }
.cel-camadas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease, filter 1.2s ease; }
.cel-camadas img.cel-tela { mix-blend-mode: screen; }
.cel-palco .cel-camadas { opacity: 0; transition: opacity 1.1s ease; }
.cel-palco .cel-camadas.cel-on { opacity: 1; }

/* Densidade so onde o texto senta: cunha escura na coluna da esquerda, a foto
   livre no meio e atras do celular, e as bordas fundindo com a pagina. */
.cel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(4, 7, 6, .92) 0%,
      rgba(4, 7, 6, .84) 30%,
      rgba(4, 7, 6, .40) 46%,
      rgba(4, 7, 6, .04) 58%,
      rgba(4, 7, 6, .12) 76%,
      rgba(4, 7, 6, .55) 100%),
    linear-gradient(180deg,
      var(--sc-canvas) 0%,
      transparent 16%,
      transparent 74%,
      var(--sc-canvas) 100%);
}

.cel-grade {
  position: relative;
  z-index: 5;
  max-width: 1440px;
  margin: 0 auto;
  min-height: max(100svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "texto cel" "feed cel";
  grid-template-rows: auto 1fr;
  align-content: center;
  column-gap: clamp(24px, 4vw, 72px);
  padding: clamp(92px, 11vh, 120px) var(--sc-gutter) 72px;
}

.cel-texto { grid-area: texto; max-width: 34rem; align-self: end; }
.cel-texto .cel-txt { max-width: 31rem; }
.cel-col   { grid-area: cel; align-self: center; position: relative; display: flex; flex-direction: column; align-items: center; }
.cel-feedcol { grid-area: feed; max-width: 32.5rem; align-self: start; }
/* o rotulo do tour muda de tamanho; a largura fixa impede a fila de botoes de quebrar no meio do tour e o celular de pular */
.cel #cel-btnTour { min-width: 12rem; justify-content: center; }

.cel-titulo {
  font-family: var(--sc-font-display);
  font-size: var(--sc-t-2xl);
  line-height: var(--sc-leading-tight);
  letter-spacing: var(--sc-track-tight);
  font-weight: 800;
  margin: 0 0 var(--sc-4);
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55);
}

.cel-txt {
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  color: color-mix(in oklab, var(--sc-ink) 86%, transparent);
  margin: 0 0 var(--sc-3);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
}

.cel-txt--menor { font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }

.cel-abaixo { display: none; }

.cel-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--sc-5); }

.cel-seg { display: flex; background: var(--cel-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--cel-line); border-radius: 999px; padding: 4px; }
.cel .cel-seg button { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--cel-muted); transition: .3s; }
.cel .cel-seg button[aria-pressed=true] { background: rgba(255, 255, 255, .14); color: var(--cel-ink); }

.cel .cel-pill { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--cel-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--cel-line); transition: .25s; }
.cel .cel-pill--cheia { background: var(--cel-ac); color: var(--cel-ac-ink); border-color: var(--cel-ac); box-shadow: 0 8px 30px -12px color-mix(in oklab, var(--sc-accent) 70%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .cel .cel-pill:hover { border-color: color-mix(in oklab, var(--sc-accent) 45%, transparent); }
  .cel .cel-pill--cheia:hover { filter: brightness(1.08); }
}

/* o registro: o que a casa fez */
.cel-feed { margin-top: var(--sc-5); background: var(--cel-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--cel-line); border-radius: 20px; padding: 14px 18px; }
.cel-feed-h { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--cel-dim); font-weight: 600; margin-bottom: 6px; }
.cel-feed-h b { color: var(--cel-ac); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cel-feed-h b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cel-ac); }
.cel-log { list-style: none; margin: 0; padding: 0; min-height: 148px; }
.cel-log li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: #D5DCDA; border-top: 1px solid rgba(255, 255, 255, .05); animation: cel-logIn .5s ease both; }
.cel-log li:first-child { border-top: 0; }
.cel-log li .cel-i { font-size: 16px; color: var(--cel-ac); }
.cel-log li time { margin-left: auto; font-size: 12px; color: var(--cel-dim); }
.cel-log li.cel-vazio { color: var(--cel-dim); font-style: italic; }
@keyframes cel-logIn { from { opacity: 0; transform: translateY(-6px); } }

/* qual ambiente o palco mostra */
.cel-roombar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 12px; background: var(--cel-glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--cel-line); border-radius: 22px; padding: 5px; }
.cel-roombar .cel-now { flex-basis: 100%; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cel-dim); padding: 4px 8px 2px 10px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cel-roombar .cel-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 8px #FF4D4D; animation: cel-blink 1.4s infinite; }
@keyframes cel-blink { 50% { opacity: .25; } }
.cel .cel-roombar button { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--cel-muted); transition: .25s; }
.cel .cel-roombar button[aria-pressed=true] { background: rgba(255, 255, 255, .14); color: var(--cel-ink); }

.cel-nota { position: absolute; right: var(--sc-gutter); bottom: 18px; z-index: 6; margin: 0; font-size: var(--sc-t-xs); color: var(--cel-dim); letter-spacing: .02em; }

/* pontos tocaveis sobre a foto */
.cel-hotspots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.cel .cel-hs { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; opacity: 0; transition: opacity .5s; }
.cel .cel-hs.cel-vis { opacity: 1; }
.cel-hs .cel-ring { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 14, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .35); font-size: 16px; color: #fff; position: relative; transition: .3s; }
.cel-hs .cel-ring::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); animation: cel-ripple 2.4s infinite; }
@keyframes cel-ripple { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cel-hs.cel-on .cel-ring { background: var(--cel-ac); color: var(--cel-ac-ink); border-color: var(--cel-ac); box-shadow: 0 0 22px rgba(0, 255, 199, .6); }
.cel-hs .cel-tip { margin-left: 8px; border-radius: 10px; background: rgba(10, 14, 14, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--cel-line); font-size: 12px; font-weight: 600; white-space: nowrap; max-width: 0; opacity: 0; overflow: hidden; padding: 6px 0; transition: .35s; }
.cel-hs:hover .cel-tip, .cel-hs:focus-visible .cel-tip { max-width: 220px; opacity: 1; padding-left: 10px; padding-right: 10px; }

/* ---------------- o celular ---------------- */

.cel-tourcap { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: rgba(6, 18, 15, .78); border: 1px solid color-mix(in oklab, var(--sc-accent) 45%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: .35s; z-index: 3; }
.cel-tourcap.cel-on { opacity: 1; pointer-events: auto; }
.cel-tourcap b { color: var(--cel-ac); font-weight: 600; }
.cel .cel-tourcap button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }

.cel-wrap { --s: 1; width: calc(418px * var(--s)); height: calc(872px * var(--s)); position: relative; }
.cel-phone { width: 418px; height: 872px; transform: scale(var(--s)); transform-origin: top left; border-radius: 70px; padding: 14px; position: relative;
  background: linear-gradient(135deg, #9BA1A6 0%, #4A4F55 12%, #202327 40%, #2A2E33 60%, #6C7278 88%, #3A3E43 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35), inset 0 0 0 6px #0B0C0E, 0 80px 140px -40px rgba(0, 0, 0, .9), 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(0, 255, 199, .25); }
.cel-phone .cel-btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #2A2D31, #7D8389, #2A2D31); }
.cel-phone .cel-b1 { left: -3px; top: 170px; height: 34px; }
.cel-phone .cel-b2 { left: -3px; top: 228px; height: 64px; }
.cel-phone .cel-b3 { left: -3px; top: 306px; height: 64px; }
.cel-phone .cel-b4 { right: -3px; top: 250px; height: 100px; }
.cel-screen { width: 390px; height: 844px; border-radius: 56px; overflow: hidden; clip-path: inset(0 round 56px); position: relative; background: var(--cel-app); isolation: isolate; font-size: 15px; line-height: 1.35; letter-spacing: 0;
  background-image: radial-gradient(ellipse 120% 60% at 50% -10%, rgba(0, 255, 199, .10), transparent 60%), radial-gradient(ellipse 80% 50% at 100% 100%, rgba(8, 171, 135, .08), transparent 60%); }
.cel-screen::after { content: ""; position: absolute; inset: 0; z-index: 90; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 28%); }
.cel-screen b, .cel-screen h2, .cel-screen h3 { font-weight: 600; margin: 0; }
.cel-screen small { font-size: inherit; }

.cel-sbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-size: 16px; font-weight: 600; pointer-events: none; }
.cel-sbar .cel-r { display: flex; gap: 6px; align-items: center; }
.cel-sfade { position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 55; pointer-events: none; background: linear-gradient(180deg, rgba(10, 13, 13, .92) 0%, rgba(10, 13, 13, .75) 55%, rgba(10, 13, 13, 0) 100%); }
.cel-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 70; transition: width .5s cubic-bezier(.3, 1.4, .5, 1), height .5s cubic-bezier(.3, 1.4, .5, 1), border-radius .5s; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.cel-island .cel-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; background: rgba(0, 255, 199, .15); color: var(--cel-ac); opacity: 0; transition: opacity .25s; }
.cel-island .cel-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cel-island .cel-tx { opacity: 0; transition: opacity .25s; min-width: 0; flex: 1; }
.cel-island .cel-tx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cel-island .cel-tx small { display: block; font-size: 12px; color: #9AA4A2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cel-island.cel-big { width: 362px; height: 74px; border-radius: 38px; }
.cel-island.cel-big .cel-ic, .cel-island.cel-big .cel-tx { opacity: 1; transition-delay: .2s; }
.cel-island.cel-alert .cel-ic { background: rgba(255, 200, 87, .16); color: var(--cel-amber); }
.cel-island.cel-ok .cel-ic { background: rgba(0, 255, 199, .16); }

.cel-views { position: absolute; inset: 0; }
.cel-view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 62px 18px 120px; scrollbar-width: none; opacity: 0; visibility: hidden; transform: scale(.985); transition: opacity .35s, transform .35s, visibility .35s; overscroll-behavior: contain; }
.cel-view::-webkit-scrollbar { display: none; }
.cel-view.cel-on { opacity: 1; visibility: visible; transform: none; }

.cel-a-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 6px 2px 14px; }
.cel-a-head small { color: var(--cel-muted); font-size: 13px; font-weight: 500; }
.cel-a-head h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; margin-top: 2px; }
.cel-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #1E2A28, #0E1514); border: 1px solid rgba(0, 255, 199, .4); display: grid; place-items: center; font-weight: 600; color: var(--cel-ac); }
.cel-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 2px; }
.cel-chips::-webkit-scrollbar { display: none; }
.cel-chip { flex: none; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: var(--cel-card); border: 1px solid var(--cel-aline); font-size: 13px; font-weight: 600; color: #DDE4E2; }
.cel-chip .cel-i { font-size: 15px; color: var(--cel-ac); }
.cel-chip.cel-warn .cel-i { color: var(--cel-amber); }
.cel-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 2px 12px; }
.cel-sec h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cel-sec span { font-size: 13px; color: var(--cel-dim); }

.cel-scenes { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; scroll-snap-type: x mandatory; }
.cel-scenes::-webkit-scrollbar { display: none; }
.cel .cel-scene { flex: none; width: 132px; height: 164px; border-radius: 24px; position: relative; overflow: hidden; scroll-snap-align: start; text-align: left; border: 1px solid var(--cel-aline); transition: transform .2s, border-color .3s, box-shadow .3s; }
.cel-scene:active { transform: scale(.96); }
.cel-scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.cel-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .8)); }
.cel-scene .cel-c { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; }
.cel-scene .cel-c .cel-i { font-size: 20px; color: #fff; margin-bottom: 8px; display: block; }
.cel-scene .cel-c b { display: block; font-size: 15px; }
.cel-scene .cel-c small { font-size: 11px; color: #C8D0CE; }
.cel-scene .cel-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--cel-ac); z-index: 3; box-shadow: 0 0 10px var(--cel-ac); transition: width .25s; }
.cel-scene.cel-on { border-color: var(--cel-ac); box-shadow: 0 0 0 1px var(--cel-ac), 0 10px 30px -10px rgba(0, 255, 199, .5); }
.cel-scene.cel-on img { transform: scale(1.08); }
.cel-scene.cel-on .cel-c .cel-i { color: var(--cel-ac); }

.cel-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cel-room { border-radius: 24px; overflow: hidden; position: relative; height: 152px; text-align: left; border: 1px solid var(--cel-aline); background: #111; cursor: pointer; }
.cel-room .cel-camadas img { transition: opacity .9s; }
.cel-room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .82)); }
.cel-room .cel-c { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; }
.cel-room .cel-c b { font-size: 15px; display: block; }
.cel-room .cel-c small { font-size: 12px; color: #C3CBC9; }
.cel .cel-room .cel-qp { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); font-size: 16px; transition: .25s; }
.cel .cel-room .cel-qp.cel-on { background: var(--cel-ac); color: var(--cel-ac-ink); border-color: var(--cel-ac); }

.cel .cel-card { display: block; background: var(--cel-card); border: 1px solid var(--cel-aline); border-radius: 24px; padding: 16px; margin-bottom: 10px; text-align: left; }
.cel-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cel-card-h .cel-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 18px; transition: .3s; flex: none; }
.cel-card-h .cel-ico.cel-on { background: rgba(0, 255, 199, .15); color: var(--cel-ac); }
.cel-card-h .cel-ico.cel-warm { background: rgba(255, 184, 103, .16); color: var(--cel-warm); }
.cel-card-h b { font-size: 15px; display: block; }
.cel-card-h small { font-size: 12px; color: var(--cel-muted); }
.cel-card-h .cel-r { margin-left: auto; }
.cel-mini-e { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: left; }
.cel-mini-e div { background: rgba(255, 255, 255, .04); border-radius: 16px; padding: 10px; }
.cel-mini-e small { font-size: 11px; color: var(--cel-muted); display: block; }
.cel-mini-e b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cel-mini-e b i { font-style: normal; font-size: 12px; color: var(--cel-muted); font-weight: 500; margin-left: 2px; }

.cel .cel-sw { width: 51px; height: 31px; border-radius: 16px; background: rgba(255, 255, 255, .16); position: relative; transition: .25s; flex: none; }
.cel-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .25s cubic-bezier(.3, 1.3, .5, 1); }
.cel .cel-sw[aria-checked=true] { background: var(--cel-teal); }
.cel-sw[aria-checked=true]::after { transform: translateX(20px); }

.cel-fs { --v: 50%; height: 58px; border-radius: 18px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; touch-action: none; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.cel-fs .cel-fill { position: absolute; inset: 0 auto 0 0; width: var(--v); background: linear-gradient(90deg, rgba(255, 184, 103, .55), #FFD9A8); }
.cel-fs.cel-cool .cel-fill { background: linear-gradient(90deg, rgba(150, 200, 255, .5), #E4F1FF); }
.cel-fs.cel-neutral .cel-fill { background: linear-gradient(90deg, rgba(255, 240, 215, .5), #FFF6E8); }
.cel-fs.cel-cyan .cel-fill { background: linear-gradient(90deg, rgba(0, 255, 199, .35), rgba(0, 255, 199, .75)); }
.cel-fs .cel-lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 600; font-size: 15px; mix-blend-mode: difference; color: #fff; pointer-events: none; }
.cel-fs.cel-off .cel-fill { opacity: .25; }
.cel-tones { display: flex; gap: 8px; margin-top: 10px; }
.cel .cel-tones button { flex: 1; padding: 9px 0; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .06); border: 1px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; }
.cel-tones button i { width: 10px; height: 10px; border-radius: 50%; }
.cel .cel-tones button[aria-pressed=true] { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); }
.cel-btnrow { display: flex; gap: 8px; margin-top: 10px; }
.cel .cel-btnrow button { flex: 1; padding: 11px 0; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .2s; }
.cel-btnrow button:active { transform: scale(.97); }
.cel .cel-btnrow button.cel-hl { background: rgba(0, 255, 199, .15); color: var(--cel-ac); }

.cel-dialwrap { display: flex; align-items: center; gap: 6px; }
.cel .cel-dial { width: 190px; height: 190px; touch-action: none; cursor: grab; flex: none; max-width: none; }
.cel-dial .cel-trk { stroke: rgba(255, 255, 255, .1); }
.cel-dial .cel-prg { transition: stroke .4s; }
.cel-dial text { fill: #fff; font-family: var(--sc-font-text); }
.cel-dialside { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cel .cel-dialside button { padding: 9px 0; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; }
.cel .cel-dialside button[aria-pressed=true] { border-color: rgba(0, 255, 199, .6); color: var(--cel-ac); background: rgba(0, 255, 199, .1); }

.cel-player { display: flex; gap: 12px; align-items: center; }
.cel-player img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.cel-player .cel-m { flex: 1; min-width: 0; }
.cel-player .cel-m b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cel-player .cel-m small { font-size: 12px; color: var(--cel-muted); }
.cel-pbar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); margin-top: 8px; overflow: hidden; }
.cel-pbar i { display: block; height: 100%; background: #fff; width: 0; }
.cel-pctl { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 12px 0 4px; font-size: 22px; }
.cel .cel-pctl .cel-pp { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 18px; }
.cel-zone { font-size: 12px; color: var(--cel-muted); display: flex; align-items: center; gap: 6px; justify-content: space-between; margin-top: 8px; }
.cel .cel-zone button { color: var(--cel-ac); font-weight: 600; font-size: 12px; }
.cel-eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.cel-eq i { width: 3px; background: var(--cel-ac); border-radius: 1px; animation: cel-eq 1s ease-in-out infinite; }
.cel-eq i:nth-child(2) { animation-delay: .2s; }
.cel-eq i:nth-child(3) { animation-delay: .4s; }
@keyframes cel-eq { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.cel-eq.cel-paused i { animation: none; height: 3px; }
.cel-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cel-aline); }
.cel-row:first-of-type { border-top: 0; }
.cel-row .cel-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); font-size: 17px; flex: none; }
.cel-row .cel-ico.cel-on { background: rgba(0, 255, 199, .15); color: var(--cel-ac); }
.cel-row .cel-t { flex: 1; min-width: 0; }
.cel-row .cel-t b { display: block; font-size: 14px; }
.cel-row .cel-t small { font-size: 12px; color: var(--cel-muted); }

/* o ambiente aberto, empurrado da direita */
.cel-push { position: absolute; inset: 0; z-index: 40; background: var(--cel-app); transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; scrollbar-width: none; box-shadow: -20px 0 40px rgba(0, 0, 0, .5); overscroll-behavior: contain; }
.cel-push::-webkit-scrollbar { display: none; }
.cel-push.cel-on { transform: none; }
.cel-r-hero { height: 300px; position: relative; overflow: hidden; }
.cel-r-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 30%, rgba(10, 13, 13, .2) 60%, var(--cel-app) 100%); }
.cel .cel-r-hero .cel-back { position: absolute; top: 58px; left: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 20px; }
.cel-r-hero .cel-tt { position: absolute; left: 20px; right: 20px; bottom: 14px; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; }
.cel-r-hero .cel-tt h2 { font-size: 28px; letter-spacing: -.03em; font-weight: 800; }
.cel-r-hero .cel-tt small { color: #C3CBC9; font-size: 13px; }
.cel-r-body { padding: 6px 18px 120px; }

/* seguranca */
.cel-alarm { border-radius: 26px; padding: 18px; position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border: 1px solid var(--cel-aline); transition: .4s; }
.cel-alarm.cel-armed { background: linear-gradient(160deg, rgba(0, 255, 199, .18), rgba(8, 171, 135, .05)); border-color: rgba(0, 255, 199, .4); }
.cel-alarm.cel-arming { border-color: rgba(255, 200, 87, .5); }
.cel-alarm .cel-st { display: flex; align-items: center; gap: 14px; }
.cel-alarm .cel-shield { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .08); transition: .3s; flex: none; }
.cel-alarm.cel-armed .cel-shield { background: var(--cel-ac); color: var(--cel-ac-ink); box-shadow: 0 0 30px rgba(0, 255, 199, .5); }
.cel-alarm.cel-arming .cel-shield { color: var(--cel-amber); }
.cel-alarm .cel-st b { font-size: 20px; display: block; letter-spacing: -.02em; }
.cel-alarm .cel-st small { font-size: 13px; color: var(--cel-muted); }
.cel-amodes { display: flex; gap: 6px; margin-top: 14px; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 4px; }
.cel .cel-amodes button { flex: 1; padding: 10px 0; border-radius: 11px; font-size: 13px; font-weight: 600; color: var(--cel-muted); transition: .25s; }
.cel .cel-amodes button[aria-pressed=true] { background: rgba(255, 255, 255, .14); color: #fff; }
.cel-cams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cel .cel-cam { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; border: 1px solid var(--cel-aline); }
.cel-cam.cel-wide { grid-column: span 2; }
.cel-cam img { width: 100%; height: 100%; object-fit: cover; animation: cel-breathe 9s ease-in-out infinite alternate; }
@keyframes cel-breathe { to { transform: scale(1.035) translate(-.6%, .4%); } }
.cel-noise { position: absolute; inset: -50%; opacity: .09; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: cel-grain .5s steps(4) infinite; }
@keyframes cel-grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } 100% { transform: translate(2%, 5%); } }
.cel-cam .cel-live { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .08em; padding: 3px 7px; border-radius: 6px; background: rgba(220, 40, 40, .92); display: flex; align-items: center; gap: 5px; }
.cel-cam .cel-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: cel-blink 1.2s infinite; }
.cel-cam .cel-nm { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.cel-cam .cel-ts, .cel-camv .cel-ts { position: absolute; right: 8px; top: 8px; font-size: 10px; font-family: ui-monospace, Consolas, monospace; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 3px #000; }
.cel .cel-lockbtn { padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .08); min-width: 92px; transition: .25s; }
.cel .cel-lockbtn.cel-open { background: rgba(255, 200, 87, .16); color: var(--cel-amber); }
.cel-gbar { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); margin-top: 6px; overflow: hidden; }
.cel-gbar i { display: block; height: 100%; background: var(--cel-amber); width: 0; transition: width .25s linear; }

/* energia */
.cel .cel-flow { width: 100%; max-width: none; height: auto; display: block; }
.cel-flow .cel-ln { stroke: rgba(255, 255, 255, .12); stroke-width: 2; fill: none; }
.cel-flow .cel-an { stroke-width: 2.5; fill: none; stroke-dasharray: 3 9; stroke-linecap: round; animation: cel-dash 1s linear infinite; }
.cel-flow .cel-an.cel-rev { animation-direction: reverse; }
.cel-flow .cel-an.cel-off { opacity: 0; }
@keyframes cel-dash { to { stroke-dashoffset: -24; } }
.cel-flow .cel-nd circle { fill: #121717; stroke: rgba(255, 255, 255, .15); }
.cel-flow .cel-nd text { fill: #fff; font-family: var(--sc-font-text); text-anchor: middle; font-variant-numeric: lining-nums tabular-nums; }
.cel-flow .cel-nd .cel-v { font-size: 13px; font-weight: 600; }
.cel-flow .cel-nd .cel-l { font-size: 10px; fill: #93A09D; }
.cel-flow svg { max-width: none; display: inline; }
.cel-bigk { font-size: 44px; font-weight: 600; letter-spacing: -.04em; }
.cel-bigk i { font-style: normal; font-size: 18px; color: var(--cel-muted); margin-left: 4px; }
.cel-ebars { display: flex; align-items: flex-end; gap: 3px; height: 96px; margin-top: 12px; }
.cel-ebars i { flex: 1; border-radius: 3px 3px 1px 1px; background: rgba(255, 200, 87, .35); }
.cel-ebars i.cel-now { background: var(--cel-amber); box-shadow: 0 0 12px rgba(255, 200, 87, .6); }
.cel-eax { display: flex; justify-content: space-between; font-size: 10px; color: var(--cel-dim); margin-top: 6px; }

.cel-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; height: 92px; padding: 8px 10px 0; display: flex; background: rgba(10, 13, 13, .72); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border-top: 1px solid var(--cel-aline); }
.cel .cel-tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: #8A9593; padding-top: 6px; transition: color .25s; }
.cel-tabbar button .cel-i { font-size: 24px; }
.cel .cel-tabbar button[aria-selected=true] { color: var(--cel-ac); }
.cel-homeind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 136px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .75); z-index: 95; pointer-events: none; }

.cel-toast { position: absolute; left: 16px; right: 16px; bottom: 104px; z-index: 80; background: rgba(30, 36, 36, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--cel-aline); border-radius: 18px; padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(12px); transition: .3s; pointer-events: none; }
.cel-toast .cel-i { color: var(--cel-ac); font-size: 18px; }
.cel-toast.cel-on { opacity: 1; transform: none; }

/* sobreposicoes: chamada, camera cheia, face id */
.cel-ov { position: absolute; inset: 0; z-index: 85; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; background: #000; }
.cel-ov.cel-on { opacity: 1; visibility: visible; }
.cel-ov .cel-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cel-call .cel-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .92) 100%); }
.cel-call .cel-hd { position: absolute; top: 70px; left: 0; right: 0; text-align: center; z-index: 2; }
.cel-call .cel-hd small { font-size: 13px; color: #C8D0CE; letter-spacing: .08em; text-transform: uppercase; }
.cel-call .cel-hd b { display: block; font-size: 26px; letter-spacing: -.02em; margin-top: 6px; }
.cel-call .cel-hd span { font-size: 14px; color: #C8D0CE; }
.cel-call .cel-ft { position: absolute; left: 22px; right: 22px; bottom: 48px; z-index: 2; }
.cel-call .cel-acts { display: flex; justify-content: space-around; margin-bottom: 22px; }
.cel .cel-call .cel-acts button { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.cel-call .cel-acts button span { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: .25s; }
.cel-call .cel-acts .cel-red span { background: var(--cel-red); }
.cel-wave { display: flex; gap: 3px; align-items: center; justify-content: center; height: 30px; margin-bottom: 14px; opacity: 0; transition: .3s; }
.cel-wave.cel-on { opacity: 1; }
.cel-wave i { width: 3px; border-radius: 2px; background: var(--cel-ac); height: 6px; animation: cel-wv .9s ease-in-out infinite; }
@keyframes cel-wv { 50% { height: 26px; } }
.cel-slide { position: relative; height: 66px; border-radius: 33px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.cel-slide .cel-sf { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(0, 255, 199, .35); }
.cel-slide .cel-kn { position: absolute; top: 5px; left: 5px; width: 56px; height: 56px; border-radius: 50%; background: var(--cel-ac); color: var(--cel-ac-ink); display: grid; place-items: center; font-size: 24px; cursor: grab; box-shadow: 0 4px 18px rgba(0, 255, 199, .5); z-index: 2; }
.cel-slide span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); padding-left: 50px; background: linear-gradient(90deg, rgba(255, 255, 255, .4) 0%, #fff 50%, rgba(255, 255, 255, .4) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: cel-shine 2.4s linear infinite; }
@keyframes cel-shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cel-slide.cel-done .cel-kn { left: calc(100% - 61px); transition: left .25s; }
.cel-camv .cel-hd { position: absolute; top: 56px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.cel-camv .cel-hd b { font-size: 17px; }
.cel .cel-camv .cel-hd .cel-x { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; font-size: 20px; }
.cel-camv .cel-vid { position: absolute; top: 110px; left: 0; right: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.cel-camv .cel-vid img { width: 100%; height: 100%; object-fit: cover; animation: cel-breathe 9s ease-in-out infinite alternate; }
.cel-camv .cel-vid .cel-ts { top: auto; right: 10px; bottom: 10px; font-size: 11px; }
.cel-camv .cel-live { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(220, 40, 40, .92); }
.cel-camv .cel-list { position: absolute; top: 360px; left: 16px; right: 16px; }
.cel-camv .cel-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.cel .cel-camv .cel-thumbs button { flex: 1; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; border: 2px solid transparent; opacity: .6; }
.cel .cel-camv .cel-thumbs button[aria-pressed=true] { border-color: var(--cel-ac); opacity: 1; }
.cel-camv .cel-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cel-faceid { background: rgba(0, 0, 0, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-items: center; z-index: 88; }
.cel-faceid .cel-box { width: 150px; height: 150px; border-radius: 34px; background: rgba(40, 44, 44, .9); display: grid; place-items: center; font-size: 64px; color: #fff; transition: .3s; }
.cel-faceid .cel-box svg { width: 70px; height: 70px; }
.cel-faceid.cel-ok .cel-box { color: var(--cel-ac); }

.cel-finger { position: absolute; z-index: 99; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 6px 20px rgba(0, 0, 0, .4); pointer-events: none; opacity: 0; transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1), opacity .3s, transform .15s; }
.cel-finger.cel-on { opacity: 1; }
.cel-finger.cel-press { transform: scale(.8); background: rgba(0, 255, 199, .5); }

/* ---------------- telas menores ---------------- */

@media (max-width: 1100px) {
  .cel-log { min-height: 0; }
}

/* Telefone e tablet em pe: texto em cima, celular embaixo, e a foto vira uma
   faixa atras do texto (a cunha lateral nao serve quando o texto ocupa a tela). */
@media (max-width: 900px) {
  .cel-lado { display: none; }
  .cel-abaixo { display: inline; }
  .cel-palco { bottom: auto; height: var(--cel-faixa, 640px); }
  .cel::after {
    bottom: auto;
    height: var(--cel-faixa, 640px);
    background: linear-gradient(180deg,
      var(--sc-canvas) 0%,
      rgba(4, 7, 6, .74) 14%,
      rgba(4, 7, 6, .70) 55%,
      rgba(4, 7, 6, .86) 80%,
      var(--sc-canvas) 100%);
  }
  .cel-grade {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "texto" "cel" "feed";
    grid-template-rows: auto;
    justify-items: center;
    row-gap: 56px;
    min-height: 0;
    padding: 96px var(--sc-gutter) 64px;
  }
  .cel-texto, .cel-feedcol { max-width: 34rem; width: 100%; align-self: auto; }
  .cel-hotspots { display: none; }
  .cel-nota { position: static; text-align: center; padding: 0 var(--sc-gutter) 28px; }
  .cel-tourcap { top: -48px; font-size: 12px; }
}

@media (max-width: 420px) {
  .cel .cel-seg button span { display: none; }
  .cel .cel-pill { padding: 10px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .cel *, .cel *::before, .cel *::after { animation: none !important; transition-duration: .01s !important; }
}
