/* Tutorz: celular com as telas reais do app, grade bento, vitrine e estados de animação. Complementa o styles.css. */

:root {
  --ok-bg: #e4f5e8; --ok-fg: #1f6a3a;
  --warn-bg: #fff2cc; --warn-fg: #7a4a00;
  --tag-bg: #efece7; --tag-fg: #4d453e;
  --dot-green: #6fbf73;
  --phone-frame: #221d1a;
  --screen-bg: #fbf8f4;
}

/* ---------- estado inicial das animações (só existe se o JavaScript carregou e a pessoa aceita movimento) */
.anim [data-reveal],
.anim [data-bento],
.anim .nav > *,
.anim .hero-copy > *:not(h1),
.anim .polaroid,
.anim .phone--hero,
.anim .chip,
.anim .show-device,
.anim .dl-inner > *:not(h2),
.anim .band,
.anim [data-split] { visibility: hidden; }
.anim .is-split { visibility: visible; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; will-change: transform; }
.anim .sw { opacity: 0.18; }

/* ---------- selos pequenos (usados nos cartões flutuantes) */
.t { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 8px; background: var(--tag-bg); color: var(--tag-fg); font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; margin-left: 4px; }
.badge--ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge--warn { background: var(--warn-bg); color: var(--warn-fg); }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; flex: none; }
.av--a { background: var(--coral); }
.av--b { background: #3f8f8a; }

/* ---------- celular: a moldura é desenhada aqui, a tela é um print real do app */
.phone { position: relative; width: clamp(252px, 74vw, 318px); aspect-ratio: 9 / 19.4; border-radius: 46px; border: 10px solid var(--phone-frame); background: var(--screen-bg); box-shadow: 0 30px 70px rgba(34, 29, 26, 0.22), 0 4px 14px rgba(34, 29, 26, 0.12); overflow: hidden; }
.phone-island { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 82px; height: 23px; border-radius: 14px; background: var(--phone-frame); z-index: 4; }
.phone-status { position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 6px 24px 0; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--screen-bg); }
.phone-status .bat { width: 23px; height: 11px; border-radius: 4px; border: 1.5px solid var(--ink); position: relative; }
.phone-status .bat::after { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 2px; background: var(--ink); }
.phone-screen { position: absolute; inset: 0; background: var(--screen-bg); }
.screen { position: absolute; inset: 38px 0 0 0; opacity: 0; visibility: hidden; overflow: hidden; }
.screen.is-on { opacity: 1; visibility: visible; }
.shot { display: block; width: 100%; height: auto; }

/* ---------- grade bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bcard { --pad: clamp(24px, 3vw, 36px); grid-column: span 12; position: relative; overflow: hidden; isolation: isolate; border-radius: 32px; padding: var(--pad); display: grid; grid-template-rows: auto 1fr; gap: 28px; min-height: 500px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .b-vacinas { grid-column: span 5; }
  .b-avisos { grid-column: span 7; }
  .b-peso { grid-column: span 7; }
  .b-equipe { grid-column: span 5; }
  .b-docs, .b-qr { grid-column: span 6; }
  /* cartões largos: texto à esquerda e a tela à direita, sangrando para baixo */
  .b-avisos, .b-peso { grid-template-columns: 1fr minmax(240px, 300px); grid-template-rows: 1fr; column-gap: 32px; }
  .b-avisos .bshot, .b-peso .bshot { align-self: end; grid-column: 2; }
  .b-avisos .bcard-copy, .b-peso .bcard-copy { align-self: start; }
}
.bcard-copy { display: grid; gap: 10px; max-width: 24em; align-content: start; }
.bcard-copy h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
.bcard-copy p { color: var(--ink-soft); }

.bcard--dark { background: radial-gradient(70% 60% at 100% 0%, rgba(240, 122, 101, 0.34), rgba(240, 122, 101, 0) 70%), var(--brand-900); border-color: transparent; color: #fff; }
.bcard--dark .bcard-copy p { color: rgba(255, 255, 255, 0.78); }
.bcard--coral { background: linear-gradient(160deg, #ffece6, #ffd3c7); border-color: #ffd7cd; }
.bcard--green { background: var(--brand-soft); border-color: #cfe9d6; }
.bcard--photo { color: #fff; border-color: transparent; grid-template-rows: 1fr auto; min-height: 520px; background: #2a211c; }
.bcard--photo .bcard-copy p { color: rgba(255, 255, 255, 0.88); }
.bphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.bshade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(26, 18, 14, 0.82), rgba(26, 18, 14, 0) 62%); }
.bcard-copy--on-photo { align-self: end; grid-row: 2; }

/* o recorte da tela: moldura de celular sem a parte de baixo, mostrando o trecho que interessa de cada print */
.bshot { align-self: end; justify-self: center; width: min(100%, 320px); height: 330px; margin-bottom: calc(var(--pad) * -1); border-radius: 30px 30px 0 0; border: 8px solid var(--phone-frame); border-bottom: 0; overflow: hidden; background: var(--screen-bg); box-shadow: 0 26px 50px rgba(34, 29, 26, 0.24); transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bcard:hover .bshot { translate: 0 -10px; }
.bshot-img { width: 100%; height: 100%; object-fit: cover; }
.bshot-img--vacinas { object-position: 50% 62%; }
.bshot-img--agenda { object-position: 50% 17%; }
.bshot-img--peso { object-position: 50% 70%; }
.bshot-img--historico { object-position: 50% 58%; }
.bshot-img--encontrou { object-position: 50% 15%; }
@media (min-width: 900px) { .b-avisos .bshot, .b-peso .bshot { height: 390px; } }

.bviz--people { position: absolute; top: clamp(20px, 3vw, 30px); left: clamp(20px, 3vw, 30px); right: clamp(20px, 3vw, 30px); display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 1; }
.avatars { display: flex; flex: none; }
.avatars .av { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 3px #fff; }
.avatars .av + .av { margin-left: -10px; }
.act { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-weight: 700; font-size: 0.82rem; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.act i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-green); }

/* ---------- vitrine: celular que troca de tela */
.showcase { background: var(--bg-alt); border-block: 1px solid var(--line); }
.show-stage { min-height: 100vh; display: grid; align-items: center; padding-block: 88px; }
.show-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .show-grid { grid-template-columns: 1fr 0.9fr; gap: 72px; } }
.show-copy { display: grid; gap: 22px; align-content: center; }
.show-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.show-steps li { position: relative; padding: 16px 20px 16px 24px; border-radius: 22px; border: 1.5px solid transparent; transition: background-color 0.3s, border-color 0.3s, opacity 0.3s; opacity: 0.55; }
.show-steps li.is-active { background: var(--surface); border-color: var(--line); opacity: 1; box-shadow: var(--shadow); }
.show-steps li::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 4px; background: var(--coral); transform: scaleY(0); transform-origin: 50% 0; transition: transform 0.35s; }
.show-steps li.is-active::before { transform: scaleY(1); }
.show-steps p { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }
.step-btn { all: unset; cursor: pointer; font: inherit; color: inherit; display: block; }
.step-btn:focus-visible { outline: 3px solid var(--brand-fg); outline-offset: 4px; border-radius: 6px; }
.show-device { position: relative; display: grid; place-items: center; }
/* o celular da vitrine cabe na altura da janela */
.show-device .phone { width: clamp(236px, min(74vw, calc((100svh - 170px) / 2.155)), 318px); }
.float-icon { position: absolute; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(34, 29, 26, 0.18)); }
.float-icon--a { left: 2%; top: 14%; }
.float-icon--b { right: 0; top: 42%; }
.float-icon--c { left: 6%; bottom: 10%; }
@media (max-width: 520px) { .float-icon { width: 48px; height: 48px; } .float-icon--b { width: 54px; height: 54px; } }

@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

/* ---------- modo "em construção": ligado pela classe "em-construcao" no <html> (index.html). No lançamento, tire a classe e tudo isto some. */
html:not(.em-construcao) .status-obra,
html:not(.em-construcao) .so-obra { display: none; }
.em-construcao .so-lancado { display: none; }

.status-obra { --obra-h: 38px; position: fixed; inset: 0 0 auto 0; height: var(--obra-h); z-index: 60; display: flex; align-items: center; justify-content: center; padding-inline: max(14px, env(safe-area-inset-left)); background: var(--ink); color: #fff; font-size: 0.88rem; line-height: 1.2; text-align: center; }
.status-obra p { margin: 0; }
.status-obra b { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.01em; }
.status-obra .status-long { color: rgba(255, 255, 255, 0.82); }
.status-short { display: none; color: rgba(255, 255, 255, 0.82); }
.status-dot { flex: none; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(214, 102, 83, 0.6); animation: obra-pulso 2s ease-out infinite; }
@keyframes obra-pulso { 70% { box-shadow: 0 0 0 9px rgba(214, 102, 83, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 102, 83, 0); } }
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }
@media (max-width: 560px) { .status-obra { --obra-h: 34px; font-size: 0.82rem; } .status-long { display: none; } .status-short { display: inline; } }

/* a faixa fica fixa no topo: o menu e o herói descem a altura dela */
.em-construcao .nav { top: calc(var(--obra-h, 38px) + 14px); }
.em-construcao .hero { padding-top: 166px; }
@media (max-width: 560px) { .em-construcao .nav { top: calc(34px + 12px); } }
@media (max-width: 720px) { .em-construcao .hero { padding-top: 148px; } }

/* no lugar dos botões das lojas */
.soon-note { margin: 0; display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 16px 26px; border-radius: 22px; background: rgba(255, 255, 255, 0.78); border: 1.5px dashed rgba(34, 29, 26, 0.28); color: var(--ink); font-size: 1.02rem; }
.soon-note b { font-family: var(--font-head); font-weight: 700; }
.soon-note span { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.em-construcao .store { display: none; }
.em-construcao .nav-cta .so-obra { display: inline; }

/* ---------- cabeçalho: transparente no topo da página; o vidro (fundo claro com desfoque) só aparece depois de rolar.
   A classe "scrolled" é posta no <html> por js/init.js quando a página passa de ~12 px de rolagem. */
.nav-bar.glass { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.scrolled .nav-bar.glass { background: rgba(255, 255, 255, 0.78); border-color: rgba(255, 255, 255, 0.9); box-shadow: 0 10px 32px rgba(34, 29, 26, 0.1); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }

/* "+15": o sinal de mais fica menor que o número */
.nums em.mais { font-size: 0.55em; color: var(--coral-pill); align-self: center; margin-right: -2px; }
