/* IMPORTS — preto fosco, branco e metal (mesma paleta do sistema). Pensado primeiro para o celular. */
:root {
  --bg: #000;
  --bg-raised: #0b0b0d;
  --panel: #111113;
  --hair: rgba(255,255,255,.08);
  --hair-strong: rgba(255,255,255,.16);
  --text: #f4f4f5;
  --dim: #9c9ca3;
  --faint: #5e5e65;
  --green: #34c77b;
  --amber: #f2b84b;
  --red: #ff4d4f;
  --metal: linear-gradient(180deg, #ffffff 0%, #d9dadd 38%, #9ea0a5 58%, #e4e5e8 78%, #8c8e93 100%);
  --radius: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ——— marca ——— */
/* logo: o mesmo desenho do sistema (letras finas SF + maçã na proporção certa), exportado em SVG */
svg.logo { display: block; height: 18px; width: auto; color: var(--text); }
.nav svg.logo { height: 17px; }
footer svg.logo { height: 16px; margin-bottom: 12px; }
.metal-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ——— fundo: parede de pedra de caverna, só o centro iluminado, escurecendo ao descer ——— */
.cave { position: absolute; inset: 0 0 auto 0; height: 230vh; z-index: -5; pointer-events: none; overflow: hidden;
  background: #000 url("../img/pedra.webp") center top / max(100%, 1500px) auto repeat-y; }
.cave.short { height: 120vh; }
@media (max-width: 720px) { .cave { background-image: url("../img/pedra-m.webp"); background-size: 1100px auto; background-position: center top; } }
.cave::after { /* escurece ao descer até o preto */
  content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, transparent 0%, transparent 12%, rgba(0,0,0,.8) 38%, #000 60%); }
.cave-light { /* luz no centro (como uma lanterna na caverna) */
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 46% 26% at 50% 34%, rgba(0,0,0,.30) 0%, rgba(0,0,0,.62) 34%, rgba(0,0,0,.9) 62%, #000 92%);
  animation: torch 9s ease-in-out infinite; }
.cave::before { /* calor da luz sobre a pedra */
  content: ""; position: absolute; inset: 0; z-index: 2; mix-blend-mode: soft-light;
  background: radial-gradient(ellipse 30% 18% at 50% 34%, rgba(255,232,200,.28), transparent 70%); animation: torch 9s ease-in-out infinite reverse; }
@keyframes torch { 0%,100% { opacity: 1; } 40% { opacity: .9; } 55% { opacity: .97; } 70% { opacity: .88; } }
body { position: relative; }
.hero { background: none !important; }
.hero::before { display: none; }

/* ——— barra do topo: cápsula de vidro flutuante (mesma em todas as páginas) ——— */
.nav {
  position: fixed; z-index: 50; top: calc(10px + env(safe-area-inset-top)); left: 50%; translate: -50% 0;
  width: min(1040px, calc(100% - 20px)); height: 54px; padding: 0 7px 0 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(180deg, rgba(38,38,42,.62), rgba(14,14,16,.58));
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1), inset 0 -1px 0 rgba(0,0,0,.4);
  transition: height .45s var(--ease), top .45s var(--ease), background .45s var(--ease), box-shadow .45s var(--ease);
  animation: nav-in .9s var(--ease) both;
}
/* brilho fino que passa devagar pela borda de cima */
.nav::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent) 0 0 / 40% 100% no-repeat; animation: nav-glint 7s ease-in-out 1.5s infinite; }
.nav.scrolled { top: calc(6px + env(safe-area-inset-top)); height: 48px; background: linear-gradient(180deg, rgba(30,30,34,.82), rgba(10,10,12,.8)); }
.nav > a:first-child { display: flex; align-items: center; transition: opacity .25s, transform .25s var(--ease); }
.nav > a:first-child:hover { opacity: .8; }
.nav > a:first-child:active { transform: scale(.96); }
.nav-links { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--dim); }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; transition: color .25s, background .25s, transform .2s var(--ease); white-space: nowrap; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.nav-links a:active { transform: scale(.95); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.nav-links .acct, .nav-links .theme-btn { margin-left: 4px; }
@keyframes nav-in { from { opacity: 0; translate: -50% -14px; } to { opacity: 1; translate: -50% 0; } }
@keyframes nav-glint { 0%, 100% { background-position: -60% 0; } 50% { background-position: 160% 0; } }
@media (max-width: 640px) {
  .nav { height: 50px; padding: 0 5px 0 16px; }
  .nav.scrolled { height: 46px; }
  .nav-links { font-size: 13.5px; gap: 0; }
  .nav-links a { padding: 7px 9px; }

  .nav-links .hide-m { display: none; }
}
/* botão de tema (só na assistência, que tem claro e escuro) */
.theme-btn { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0; background: transparent; color: var(--dim); display: grid; place-items: center; cursor: pointer;
  transition: color .2s, background .2s, transform .2s var(--ease); }
.theme-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }
.theme-btn:active { transform: scale(.9) rotate(-20deg); }
.theme-btn svg { width: 17px; height: 17px; }
/* conta neste celular: ícone de pessoa ou as iniciais */
.acct { flex: none; width: 38px; height: 38px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid var(--hair-strong); background: transparent; color: var(--dim);
  display: grid; place-items: center; cursor: pointer; font: 600 11.5px var(--font); letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.acct:hover { color: var(--text); border-color: rgba(255,255,255,.35); }
.acct:active { transform: scale(.92); }
.acct svg { width: 15px; height: 15px; }
.acct.on { background: linear-gradient(180deg, #fafafa, #c9cacd); color: #0a0a0b; border-color: transparent; }

/* ——— botões ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hair-strong);
  font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s;
  background: rgba(255,255,255,.04); white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn.metal { background: linear-gradient(180deg, #fafafa, #c9cacd); color: #0a0a0b; border-color: transparent; box-shadow: 0 8px 30px rgba(255,255,255,.12), inset 0 1px 0 #fff; }
.btn.wa { background: #25d366; color: #052b14; border-color: transparent; }
.btn svg { width: 18px; height: 18px; }

/* ——— hero ——— */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; padding: 90px 0 40px; isolation: isolate; }
.hero::before { /* holofote */
  content: ""; position: absolute; inset: -20% -30% auto; height: 120%; z-index: -2;
  background: radial-gradient(60% 50% at 50% 30%, rgba(255,255,255,.16), rgba(255,255,255,.03) 45%, transparent 70%);
}
.hero-inner { text-align: center; position: relative; z-index: 2; width: 100%; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); margin: 0 0 18px; opacity: 0; animation: up 1s calc(var(--intro, 0s) + .2s) var(--ease) forwards; }
.hero h1 { font-size: clamp(46px, 13vw, 118px); font-weight: 500; letter-spacing: 0; line-height: 1; margin: 0; opacity: 0; animation: up 1.2s calc(var(--intro, 0s) + .35s) var(--ease) forwards; }
.hero-logo { margin: 0 auto; opacity: 0; animation: up 1.2s calc(var(--intro, 0s) + .35s) var(--ease) forwards; }
.hero-logo svg.logo-hero { display: block; height: clamp(56px, 15vw, 132px); width: auto; margin: 0 auto; overflow: visible; }
.hero p.lead { color: var(--dim); font-size: clamp(16px, 4.2vw, 21px); max-width: 560px; margin: 22px auto 30px; opacity: 0; animation: up 1.2s calc(var(--intro, 0s) + .55s) var(--ease) forwards; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; opacity: 0; animation: up 1.2s calc(var(--intro, 0s) + .7s) var(--ease) forwards; }
@keyframes up { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

.stage { position: relative; height: min(66vw, 470px); margin: 40px auto 0; max-width: 940px; }
.stage .dev { position: absolute; bottom: 0; will-change: transform; }
.stage .dev img { width: 100%; height: auto; }
.stage .d1 { left: 50%; width: min(60vw, 430px); margin-left: calc(min(60vw, 430px) / -2); z-index: 3; animation: rise 1.4s calc(var(--intro, 0s) + .9s) var(--ease) both, float 7s 2.3s ease-in-out infinite; }
.stage .d2 { left: 2%; width: min(40vw, 300px); z-index: 2; animation: rise2 1.4s calc(var(--intro, 0s) + 1.15s) var(--ease) both, float 8s 2.6s ease-in-out infinite; }
.stage .d3 { right: 2%; width: min(40vw, 300px); z-index: 2; animation: rise2 1.4s calc(var(--intro, 0s) + 1.3s) var(--ease) both, float 9s 2.7s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(80px) scale(.92); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise2 { from { opacity: 0; transform: translateY(60px) scale(.9); filter: blur(10px); } to { opacity: .92; transform: none; filter: none; } }
.stage .glow { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 70%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,140,60,.35), transparent); filter: blur(30px); z-index: 1; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
.rays { position: absolute; inset: -40% -20% auto; height: 140%; z-index: -1; pointer-events: none; opacity: .5;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, rgba(255,255,255,.06) 12deg, transparent 24deg, transparent 40deg, rgba(255,255,255,.05) 52deg, transparent 64deg, transparent 300deg, rgba(255,255,255,.05) 312deg, transparent 324deg);
  -webkit-mask: radial-gradient(70% 60% at 50% 0%, #000, transparent); mask: radial-gradient(70% 60% at 50% 0%, #000, transparent);
  animation: rays 30s linear infinite alternate; }
@keyframes rays { to { transform: rotate(8deg); } }
.tagline { font-size: clamp(22px, 6vw, 40px); font-weight: 300; letter-spacing: -.01em; margin: 18px auto 0; max-width: 760px; line-height: 1.15; opacity: 0; animation: up 1.2s calc(var(--intro, 0s) + .5s) var(--ease) forwards; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.stage .floor { position: absolute; left: 10%; right: 10%; bottom: -6px; height: 40px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.18), transparent 70%); filter: blur(10px); z-index: 1; }
/* reflexo de luz só sobre os aparelhos (recortado no formato de cada um) */
.dev .sheen { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: 100% auto; mask-size: 100% auto; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 300% 100%; background-position: 130% 0; mix-blend-mode: soft-light; opacity: .9;
  animation: sweep 7s 2.6s ease-in-out infinite; }
.stage .d2 .sheen { animation-delay: 3.1s; } .stage .d3 .sheen { animation-delay: 3.4s; }
@keyframes sweep { 0% { background-position: 130% 0; } 45%,100% { background-position: -30% 0; } }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .25em; color: var(--faint); text-transform: uppercase; z-index: 2; }

/* ——— hero no celular: logo, frase, aparelhos grandes, depois texto e botão ——— */
@media (max-width: 640px) {
  .hero { padding: 76px 0 24px; align-items: start; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { order: 1; font-size: 10.5px; letter-spacing: .3em; margin-bottom: 14px; }
  .hero-logo { order: 2; }
  .hero-logo svg.logo-hero { height: 17vw; }
  .tagline { order: 3; font-size: 25px; margin-top: 12px; }
  .stage { order: 4; height: 92vw; margin-top: 8px; width: 100%; }
  .stage .d1 { width: 70vw; margin-left: -35vw; }
  .stage .d2 { width: 46vw; left: -6vw; bottom: 3vw; }
  .stage .d3 { width: 46vw; right: -6vw; bottom: 3vw; }
  .hero p.lead { order: 5; font-size: 15px; margin: 18px auto 18px; padding: 0 6px; }
  .hero .ctas { order: 6; width: 100%; padding: 0 4px; }
  .hero .ctas .btn { width: 100%; height: 52px; font-size: 16px; }
  .scroll-hint { display: none; }
  .hide-m { display: none; }
}

/* ——— faixa de confiança ——— */
.trust { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); overflow: hidden; }
.marquee { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: marquee 32s linear infinite; color: var(--dim); font-size: 14px; letter-spacing: .04em; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.marquee i { width: 6px; height: 6px; border-radius: 50%; background: var(--text); opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— seções ——— */
section.block { padding: 84px 0; }
#loja, #comprar, footer { content-visibility: auto; contain-intrinsic-size: 1px 900px; }
.kicker { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px; }
h2.title { font-size: clamp(32px, 8vw, 58px); font-weight: 250; letter-spacing: -.02em; line-height: 1.02; margin: 0 0 14px; }
.sub { color: var(--dim); font-size: 17px; max-width: 620px; margin: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ——— catálogo ——— */
.toolbar { position: sticky; top: 56px; z-index: 20; background: rgba(0,0,0,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 12px 0; margin: 26px 0 18px; border-bottom: 1px solid var(--hair); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair-strong); background: transparent; color: var(--dim); font-size: 14px; cursor: pointer; transition: all .2s; }
.chip.on { background: var(--text); color: #000; border-color: var(--text); }
.search-row { display: flex; gap: 10px; margin-top: 10px; }
.search { flex: 1; height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: var(--panel); color: var(--text); padding: 0 14px; font-size: 16px; outline: none; }
.search:focus { border-color: var(--hair-strong); }
.sort { height: 42px; border-radius: 12px; border: 1px solid var(--hair); background: var(--panel); color: var(--text); padding: 0 10px; font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.group-title { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 26px 0 2px; font-size: clamp(22px, 6vw, 30px); font-weight: 300; letter-spacing: -.01em; }
.group-title:first-child { margin-top: 0; }
.group-title span { font-size: 13px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #121215, #0a0a0c); border: 1px solid var(--hair);
  transition: transform .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.card .pic { aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 40%, rgba(255,255,255,.09), transparent 70%); }
.card .pic img { width: 88%; height: 88%; object-fit: contain; transition: transform .6s var(--ease); }
.card .pic img.photo { width: 100%; height: 100%; object-fit: cover; }
.card:hover .pic img { transform: scale(1.04); }
.card .info { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .info .price { margin-top: auto; padding-top: 8px; }
.card .name { font-size: 14.5px; font-weight: 500; line-height: 1.25; }
.card .meta { font-size: 12px; color: var(--dim); }
.card .price { font-size: 19px; font-weight: 600; margin-top: 8px; letter-spacing: -.01em; }
.card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 10.5px; line-height: 1.5; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--hair); color: var(--dim);
  white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.batt { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); margin-top: 4px; }
.batt b { position: relative; width: 22px; height: 10px; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); }
.batt b::after { content: ""; position: absolute; right: -3px; top: 2.5px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,.35); }
.batt b i { position: absolute; left: 1px; top: 1px; bottom: 1px; border-radius: 1.5px; background: var(--green); }
.batt.mid b i { background: var(--amber); } .batt.low b i { background: var(--red); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.08), transparent 40%); }
.card:hover::before { opacity: 1; }
.card .code { position: absolute; top: 10px; left: 10px; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 4px 8px; border-radius: 8px; background: rgba(0,0,0,.55); border: 1px solid var(--hair); color: var(--dim); }
.card.sold { pointer-events: none; }
.card.sold .pic img { opacity: .35; filter: grayscale(1); }
.card .sold-tag { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); font-weight: 800; letter-spacing: .12em; color: var(--green); border: 2px solid var(--green); padding: 6px 14px; border-radius: 10px; font-size: 14px; background: rgba(0,0,0,.6); }
.badge-new { position: absolute; top: 10px; right: 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: var(--text); color: #000; }
.empty { text-align: center; color: var(--faint); padding: 60px 0; }
.skeleton { aspect-ratio: 3 / 4.2; border-radius: var(--radius); background: linear-gradient(100deg, #0e0e10 30%, #17171a 50%, #0e0e10 70%); background-size: 300% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -100% 0; } }

/* ——— diferenciais ——— */
.features { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--hair); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-weight: 500; font-size: 18px; }
.feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* ——— selos (horizontais) ——— */
.seals-block { padding: 48px 0 56px; }
.badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
@media (min-width: 900px) { .badges { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.badge { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px 9px 9px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.5); }
.badge.gold { border-color: rgba(226,194,122,.35); background: linear-gradient(180deg, rgba(226,194,122,.12), rgba(226,194,122,.02)); }
.badge .emblem { flex: none; width: 38px; height: 38px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.badge .bt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.badge b { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.badge.gold b { color: #f1dca4; }
.badge span { font-size: 11px; color: var(--dim); }
.badge { border-radius: 22px; }
@media (max-width: 400px) { .badge { gap: 7px; padding: 7px 9px 7px 7px; } .badge .emblem { width: 32px; height: 32px; } .badge b { font-size: 11.2px; } .badge span { font-size: 10px; } }
.seal-note { color: var(--dim); font-size: 13.5px; margin: 16px 2px 0; }
.seal-note b { color: #f1dca4; font-weight: 600; }
.pbadges { margin: 20px 0 6px; grid-template-columns: 1fr; }
@media (min-width: 420px) { .pbadges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ——— como comprar ——— */
.steps { display: grid; gap: 12px; margin-top: 36px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); border: 1px solid var(--hair); background: linear-gradient(180deg, #0f0f12, #070708); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 12px ui-monospace, Menlo, monospace; color: var(--faint); letter-spacing: .1em; }
.step h3 { margin: 14px 0 6px; font-weight: 500; font-size: 19px; }
.step p { margin: 0; color: var(--dim); font-size: 15px; }
.cta-band { margin-top: 56px; padding: 40px 26px; border-radius: 28px; text-align: center; border: 1px solid var(--hair);
  background: radial-gradient(80% 120% at 50% 0%, rgba(255,255,255,.08), transparent 60%), #08080a; }
.cta-band h3 { font-size: clamp(24px, 6vw, 36px); font-weight: 300; margin: 0 0 18px; }

/* ——— rodapé ——— */
footer { border-top: 1px solid var(--hair); padding: 48px 0 110px; color: var(--dim); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
footer a:hover { color: var(--text); }

/* ——— página do produto ——— */
.product { padding-top: 74px; }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 42%, rgba(255,255,255,.12), transparent 70%); }
.slide img { width: 86%; height: 86%; object-fit: contain; }
.slide img.photo { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; gap: 6px; justify-content: center; margin: 12px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--faint); transition: all .3s; }
.dots i.on { width: 18px; background: var(--text); }
.thumbs { display: none; gap: 10px; margin-top: 14px; }
.thumbs button { width: 74px; height: 74px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); background: var(--panel); padding: 0; cursor: pointer; }
.thumbs button.on { border-color: var(--text); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs img.official { object-fit: contain; padding: 6px; }
@media (min-width: 900px) {
  .product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; padding-top: 30px; }
  .gallery { position: sticky; top: 80px; }
  .thumbs { display: flex; }
  .dots { display: none; }
  .slide { border-radius: 28px; }
}
.pinfo { padding: 22px 0 40px; }
.pinfo h1 { font-size: clamp(28px, 7vw, 44px); font-weight: 300; letter-spacing: -.015em; line-height: 1.08; margin: 6px 0 10px; }
.pinfo .price { font-size: clamp(32px, 9vw, 42px); font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.specs .batt { font-size: 15px; color: var(--text); }
.pinfo .installments { color: var(--dim); font-size: 14px; margin-top: 2px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.specs { margin: 26px 0; border-top: 1px solid var(--hair); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; text-align: right; }
.desc { white-space: pre-wrap; color: #d4d4d8; font-size: 16px; line-height: 1.6; }
.parts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.parts span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hair-strong); }
.parts span.t { color: var(--green); border-color: rgba(52,199,123,.35); }
.parts span.d { color: var(--red); border-color: rgba(255,77,79,.35); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.85); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--hair); display: flex; gap: 10px; align-items: center; }
.buybar .p { flex: 1; font-weight: 600; font-size: 18px; }
.buybar .btn { height: 46px; }
@media (min-width: 900px) { .buybar { position: static; background: none; border: 0; padding: 0; backdrop-filter: none; margin-top: 18px; } .buybar .p { display: none; } }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 14px; margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ——— promoção ——— */
.badge-promo { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: #1a0d00; background: linear-gradient(180deg, #ffd27a, #f5a524); box-shadow: 0 0 0 1px rgba(255,210,122,.35), 0 4px 16px rgba(245,165,36,.35); }
.card.on-promo { border-color: rgba(245,165,36,.45); box-shadow: 0 0 0 1px rgba(245,165,36,.18), 0 18px 50px -20px rgba(245,165,36,.35); }
.price.promo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price.promo s { order: -1; width: 100%; font-size: .62em; font-weight: 500; color: var(--dim); text-decoration-thickness: 1.5px; text-decoration-color: rgba(255,90,90,.85); }
.price.promo span { color: #ffc35a; text-shadow: 0 0 18px rgba(245,165,36,.35); }
.price.promo em { font-style: normal; font-size: .52em; font-weight: 700; color: #1a0d00; background: #ffc35a; padding: 2px 6px; border-radius: 6px; align-self: center; }
.countdown { font-size: 11.5px; color: var(--dim); margin-top: 6px; font-variant-numeric: tabular-nums; }
.countdown b { color: #ffc35a; font-weight: 600; white-space: nowrap; }
.promo-head { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.promo-head .badge-promo { position: static; }
.promo-head .countdown { margin: 0; font-size: 13px; }

/* ——— rodapé: direitos e CRdevs ——— */
footer .igs { display: flex; flex-direction: column; gap: 10px; }
footer .legal { color: var(--faint); line-height: 1.6; }
.crdevs { display: flex; align-items: baseline; justify-content: center; gap: 0; width: max-content; margin: 44px auto 0; color: #fff; opacity: .62; transition: opacity .25s; text-decoration: none; }
.crdevs:hover { opacity: 1; }
.crdevs span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-right: 10px; }
.crdevs b { font-weight: 900; font-size: 19px; letter-spacing: -.04em; line-height: 1; }
.crdevs i { font-style: normal; font-weight: 400; font-size: 15px; letter-spacing: .01em; margin-left: 1px; }

/* ——— "Tenho interesse" ——— */
html.noscroll { overflow: hidden; }
.btn.busy { opacity: .7; pointer-events: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); display: flex; align-items: flex-end; justify-content: center; transition: background .3s, backdrop-filter .3s; }
.sheet-bg.on { background: rgba(0,0,0,.62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sheet { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: linear-gradient(180deg, #141416, #0b0b0d); border: 1px solid var(--hair-strong); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -30px 80px rgba(0,0,0,.6); }
.sheet-bg.on .sheet { transform: none; }
@media (min-width: 700px) {
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 26px; border-bottom: 1px solid var(--hair-strong); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.3,1), opacity .25s; }
  .sheet-bg.on .sheet { opacity: 1; }
}
.sheet-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.sheet h2 { margin: 0 40px 6px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.sheet-sub { margin: 0 0 18px; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.sheet-sub b { color: var(--text); font-weight: 600; }
.sheet label { display: block; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.sheet label span { color: var(--faint); }
.sheet input { display: block; width: 100%; margin-top: 7px; padding: 14px 15px; font: 16px var(--font); color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--hair-strong); border-radius: 14px; outline: none; transition: border-color .2s, background .2s; }
.sheet input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
.sheet .btn { width: 100%; justify-content: center; margin-top: 6px; }
.sheet-row { display: flex; gap: 10px; }
.sheet-row .btn.back { flex: 0 0 34%; }
.sheet-who { margin: -6px 0 14px; font-size: 13.5px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.sheet-who b { color: var(--text); font-weight: 600; }
.linkbtn { appearance: none; border: 0; background: none; padding: 4px 2px; color: var(--text); font: 600 13.5px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sheet .btn.forget { background: transparent; border-color: transparent; color: #ff6b6b; margin-top: 4px; }
.sheet-err { color: #ff6b6b; font-size: 13.5px; margin: 0 0 12px; }
.sheet-note { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 14px 0 0; text-align: center; }
.ficha { position: relative; aspect-ratio: 1080 / 1350; width: 100%; max-height: 52vh; margin: 0 auto 16px; border-radius: 18px; overflow: hidden; border: 1px solid var(--hair); background: #0b0b0d; display: flex; justify-content: center; }
.ficha-img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.ficha-load { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ——— transições entre telas: a maçã do logo abre a próxima tela (Chrome e Safari do iOS 18.2+) ——— */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .85s; animation-timing-function: cubic-bezier(.65, 0, .25, 1); }
::view-transition-group(device) { animation-duration: .9s; animation-timing-function: cubic-bezier(.5, 0, .1, 1); z-index: 5; }
/* ida: a tela atual recua e escurece; a nova aparece por dentro da maçã, que cresce do centro */
html.vt-page::view-transition-old(root) { animation: vt-dim .9s cubic-bezier(.65, 0, .25, 1) both; }
html.vt-page::view-transition-new(root) {
  -webkit-mask: url(../img/apple.svg) 50% 58% / 0 auto no-repeat; mask: url(../img/apple.svg) 50% 58% / 0 auto no-repeat;
  animation: vt-iris .95s cubic-bezier(.7, 0, .2, 1) both; }
/* volta: o produto se fecha para dentro da maçã e o catálogo reaparece por trás */
html.vt-back::view-transition-old(root) { z-index: 2;
  -webkit-mask: url(../img/apple.svg) 50% 58% / 340vmax auto no-repeat; mask: url(../img/apple.svg) 50% 58% / 340vmax auto no-repeat;
  animation: vt-iris-close .85s cubic-bezier(.6, 0, .3, 1) both; }
html.vt-back::view-transition-new(root) { animation: vt-undim .85s cubic-bezier(.3, 0, .2, 1) both; }
@keyframes vt-iris { 0% { -webkit-mask-size: 0 auto; mask-size: 0 auto; } 38% { -webkit-mask-size: 22vmax auto; mask-size: 22vmax auto; } 100% { -webkit-mask-size: 340vmax auto; mask-size: 340vmax auto; } }
@keyframes vt-iris-close { 0% { -webkit-mask-size: 340vmax auto; mask-size: 340vmax auto; } 62% { -webkit-mask-size: 22vmax auto; mask-size: 22vmax auto; } 100% { -webkit-mask-size: 0 auto; mask-size: 0 auto; } }
@keyframes vt-dim { to { transform: scale(.94); filter: brightness(.3); } }
@keyframes vt-undim { from { transform: scale(.94); filter: brightness(.3); } }
/* filtros do catálogo: só os cartões deslizam */
html.vt-filter::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
html.vt-filter::view-transition-old(root), html.vt-filter::view-transition-new(root) { animation-duration: .3s; }

/* ——— abertura da marca (uma vez por visita) ———
   O logo surge cromado; a maçã prateada perde o preenchimento e vira a janela para o site;
   o conjunto cresce a partir da maçã até ela tomar a tela (tudo no mesmo desenho, sincronizado). */
.intro-curtain { display: none; }
html.intro .hero { --intro: .7s; } /* os iPhones já sobem dentro da maçã enquanto ela cresce */
html.intro .intro-curtain { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; pointer-events: none; overflow: hidden;
  animation: intro-end 0s 2.55s forwards; }
.intro-curtain .zoom { width: min(64vw, 440px); transform-origin: 47.73% 61.52%; animation: intro-zoom 1.6s linear .95s both; }
.intro-curtain svg { display: block; width: 100%; height: auto; overflow: visible; }
.intro-curtain .ink { animation: intro-in .75s cubic-bezier(.2, .8, .2, 1) both; }
.intro-curtain .plug, .intro-curtain .silver, .intro-curtain .shine { animation: apple-open .45s cubic-bezier(.4, 0, .2, 1) 1s both; }
@keyframes intro-in { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@keyframes apple-open { from { opacity: 1; } to { opacity: 0; } }
/* cresce devagar e acelera de forma contínua: escala = 70^(t^2,6), em 24 passos (sem degraus de velocidade) */
@keyframes intro-zoom { 0% { transform: scale(1.000); } 4.17% { transform: scale(1.001); } 8.33% { transform: scale(1.007); } 12.5% { transform: scale(1.019); } 16.67% { transform: scale(1.041); } 20.83% { transform: scale(1.075); } 25% { transform: scale(1.123); } 29.17% { transform: scale(1.188); } 33.33% { transform: scale(1.277); } 37.5% { transform: scale(1.393); } 41.67% { transform: scale(1.547); } 45.83% { transform: scale(1.749); } 50% { transform: scale(2.015); } 54.17% { transform: scale(2.370); } 58.33% { transform: scale(2.847); } 62.5% { transform: scale(3.497); } 66.67% { transform: scale(4.395); } 70.83% { transform: scale(5.659); } 75% { transform: scale(7.470); } 79.17% { transform: scale(10.119); } 83.33% { transform: scale(14.078); } 87.5% { transform: scale(20.132); } 91.67% { transform: scale(29.616); } 95.83% { transform: scale(44.856); } 100% { transform: scale(70.000); } }
@keyframes intro-end { to { visibility: hidden; } }

/* ——— página do produto: informações entram em sequência e a barra de compra sobe ——— */
.pinfo.enter > * { animation: p-in .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + .35s); }
.pinfo.enter > .buybar { animation: none; }
@media (max-width: 899px) { .pinfo.enter > .buybar { animation: bar-up .7s cubic-bezier(.2, .8, .2, 1) .55s both; } }
@keyframes p-in { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bar-up { from { transform: translateY(110%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html.intro .intro-curtain { display: none; }
  html.intro .hero { --intro: 0s; }
}

/* ——— IMPORTS Assistência (assistencia.html) ——— */
.nav svg.logo-assist { height: 20px; }
.hero-logo svg.logo-assist { height: clamp(96px, 26vw, 210px); }
@media (max-width: 720px) { .hero-logo svg.logo-assist { height: 27vw; } }
.sheet textarea { display: block; width: 100%; margin-top: 7px; padding: 13px 15px; font: 16px/1.4 var(--font); color: var(--text); background: rgba(255,255,255,.05);
  border: 1px solid var(--hair-strong); border-radius: 14px; outline: none; resize: vertical; min-height: 84px; transition: border-color .2s, background .2s; }
.sheet textarea:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }
/* abertura e transição usam a maçã com as ferramentas */
html[data-site="assist"] .intro-curtain .zoom { width: min(74vw, 500px); transform-origin: 47.8% 40.25%; }
html[data-site="assist"].vt-page::view-transition-new(root) {
  -webkit-mask-image: url(../img/apple-assist.svg); mask-image: url(../img/apple-assist.svg);
  -webkit-mask-position: 49% 55%; mask-position: 49% 55%; }

/* menu no celular (no fim do arquivo para valer sobre os tamanhos padrão) */
@media (max-width: 640px) {
  .nav svg.logo { height: 15px; }
  .nav svg.logo-assist { height: 17px; }
  .acct { width: 34px; height: 34px; }
  .theme-btn { width: 32px; height: 32px; }
}
