/* Página inicial. Usa as variáveis de app.css (tinta, lápis, bronze, pedra). Sem estilo inline: a CSP não aceita. */
.home { --bronze-claro: #d9b676; }
.home h1, .home h2, .home h3 { font-family: var(--serifa); }

/* ---------- hero ---------- */
.hero { background: var(--tinta); color: #fff; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 78% 45%, rgba(28,109,179,.28), transparent 70%); pointer-events: none; }
.hero-grade { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grade { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; } }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; margin: 0 0 1.2rem; color: #fff; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.6; color: #c4d2dc; margin: 0 0 2rem; max-width: 34rem; }
.hero-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-bottom: 1.6rem; }
.botao-grande { font-size: 1.05rem; padding: .95rem 1.7rem; min-height: 52px; }
.link-claro { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.link-claro:hover { border-bottom-color: var(--bronze-claro); color: var(--bronze-claro); }
.hero-garantias { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .9rem; color: #b9c8d3; }
.hero-garantias li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-garantias svg { width: 18px; height: 18px; color: var(--bronze-claro); stroke-width: 2.4; }

/* chapa de pedra: duas camadas (mármore parado + peças e serra por cima), para a animação não refazer os filtros do mármore */
.hero-chapa { margin: 0; }
.chapa-caixa { position: relative; }
.chapa-marmore { display: block; width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(0,0,0,.45)); }
.chapa-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chapa-sombra { fill: rgba(0,0,0,.35); }
.chapa-base { fill: #e7eaec; }
.chapa-svg .peca { fill: rgba(255,255,255,.30); stroke: var(--bronze); stroke-width: 1.1; stroke-linejoin: round; }
.chapa-svg .rot { font: 600 9px/1 var(--fonte); fill: #13303f; text-anchor: middle; dominant-baseline: central; }
.chapa-svg .cotas path { stroke: #7f95a5; stroke-width: .6; fill: none; }
.chapa-svg .cotas text { font: 500 6.5px var(--fonte); fill: #9db2c0; text-anchor: middle; }
.hero-chapa figcaption { margin-top: 1rem; font-size: .85rem; line-height: 1.55; color: #9db2c0; max-width: 40rem; }
.hero-chapa figcaption strong { color: #dbe6ee; font-weight: 600; }
.repetir { margin-top: .7rem; background: none; border: 1px solid rgba(255,255,255,.28); color: #dbe6ee; font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; cursor: pointer; }
.repetir:hover { border-color: var(--bronze-claro); color: var(--bronze-claro); }
.repetir:focus-visible { outline: 3px solid var(--bronze-claro); outline-offset: 2px; }

/* animação da serra (hero_serra.js): sem JS ou com "reduzir movimento" a chapa já aparece cortada */
.chapa-svg.anima .peca { fill: rgba(255,255,255,0); stroke: #1d2b36; stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: fill .45s ease, stroke .45s ease; }
.chapa-svg.anima .peca.pronta { fill: rgba(255,255,255,.30); stroke: var(--bronze); stroke-width: 1.1; stroke-dasharray: none; stroke-dashoffset: 0; }
.chapa-svg.anima .rot { opacity: 0; transition: opacity .5s ease; }
.chapa-svg.anima .rot.ok { opacity: 1; }
.chapa-svg .po { pointer-events: none; }

/* ---------- blocos ---------- */
.faixa { padding: clamp(3.2rem, 7vw, 5.5rem) 0; scroll-margin-top: 4.5rem; }
.faixa-claro { background: #fff; }
.faixa-pedra { background: var(--pedra); }
.faixa-escuro { background: var(--tinta-2); color: #fff; }
.titulo-bloco { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 2.6rem; color: var(--tinta); max-width: 36rem; }
.faixa-escuro .titulo-bloco { color: #fff; }

/* passos */
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: p; }
@media (min-width: 820px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } .passos li + li::before { content: ""; position: absolute; left: -1.5rem; top: 1.4rem; width: 1px; height: calc(100% - 1.4rem); background: var(--linha-forte); } }
.passos li { position: relative; }
.passo-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tinta); color: var(--bronze-claro); font-family: var(--serifa); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.passos h3 { font-size: 1.3rem; font-weight: 600; margin: 0 0 .5rem; color: var(--tinta); }
.passos p { margin: 0; color: var(--texto-suave); line-height: 1.65; font-size: .98rem; }

/* recursos: grade assimétrica, o primeiro ocupa mais */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } .recurso-grande { grid-column: 1 / -1; } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(6, 1fr); } .recurso-grande { grid-column: span 3; grid-row: span 2; } .recurso { grid-column: span 3; } .recurso:nth-child(n+4) { grid-column: span 2; } .recurso:nth-child(2), .recurso:nth-child(3) { grid-column: span 3; } }
.recurso { background: #fff; border: 1px solid var(--linha); border-radius: 14px; padding: 1.6rem; }
.recurso .icone { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--lapis-claro); color: var(--lapis); margin-bottom: 1rem; }
.recurso h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .45rem; color: var(--tinta); }
.recurso p { margin: 0; color: var(--texto-suave); font-size: .94rem; line-height: 1.6; }
.recurso-grande { background: var(--tinta); border-color: var(--tinta); display: flex; flex-direction: column; justify-content: flex-end; min-height: 16rem; padding: 2rem; }
.recurso-grande .icone { background: rgba(255,255,255,.1); color: var(--bronze-claro); width: 48px; height: 48px; }
.recurso-grande h3 { color: #fff; font-size: 1.6rem; }
.recurso-grande p { color: #b9c8d3; font-size: 1rem; }

/* vídeo */
.video-quadro { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.video-quadro iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* preço */
.preco-caixa { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .preco-caixa { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.preco-caixa h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; margin: 0 0 .8rem; color: var(--tinta); }
.preco-caixa p { color: var(--texto-suave); line-height: 1.6; margin: 0 0 1.6rem; }
.preco-card { background: var(--pedra); border: 1px solid var(--linha); border-top: 4px solid var(--bronze); border-radius: 14px; padding: 2rem; }
.preco-card .preco-valor { margin: 0 0 1.2rem; display: flex; align-items: baseline; gap: .6rem; }
.preco-valor strong { font-family: var(--serifa); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; color: var(--tinta); font-variant-numeric: lining-nums; }
.preco-valor span { color: var(--texto-suave); }
.preco-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.preco-card li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--texto); }
.preco-card li svg { flex: none; width: 20px; height: 20px; color: var(--ok); stroke-width: 2.4; margin-top: 1px; }

/* perguntas */
.faq { display: grid; gap: .6rem; }
.faq details { background: #fff; border: 1px solid var(--linha); border-radius: 12px; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; color: var(--tinta); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lapis); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid rgba(28,109,179,.4); outline-offset: 2px; border-radius: 12px; }
.faq details p { margin: 0; padding: 0 1.2rem 1.1rem; color: var(--texto-suave); line-height: 1.65; }

/* chamada final */
.faixa-cta { background: var(--lapis-esc, #14507f); color: #fff; text-align: center; }
.faixa-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 600; margin: 0 auto 1.6rem; max-width: 34rem; line-height: 1.2; color: #fff; }
.faixa-cta .botao { background: #fff; color: var(--lapis-esc, #14507f); }
.faixa-cta .botao:hover { background: var(--pedra); }

.video-iniciar { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(13,31,43,.55), rgba(13,31,43,.8)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; font: inherit; font-weight: 600; font-size: 1rem; }
.video-iniciar:hover { background: linear-gradient(180deg, rgba(13,31,43,.4), rgba(13,31,43,.7)); }
.video-iniciar:focus-visible { outline: 3px solid var(--bronze-claro); outline-offset: -6px; }
.video-iniciar .play { width: 76px; height: 76px; border-radius: 50%; background: var(--lapis); display: grid; place-items: center; transition: transform .15s; }
.video-iniciar:hover .play { transform: scale(1.08); }
.video-iniciar .play svg { width: 30px; height: 30px; fill: #fff; stroke: #fff; }

/* ---------- depois do corte: peças puxadas para os lados e capturas reais do editor por trás ---------- */
.hero-botoes { display: flex; flex-wrap: wrap; gap: .6rem; }
.fatia { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); z-index: 2; }
.fatia .contorno { fill: rgba(255,255,255,.30); stroke: var(--bronze); stroke-width: 1.1; stroke-linejoin: round; }
.fatia .rot { font: 600 9px/1 var(--fonte); fill: #13303f; text-anchor: middle; dominant-baseline: central; opacity: 1; }
.chapa-svg { z-index: 3; }
.chapa-caixa .chapa-marmore, .chapa-caixa .chapa-svg { transition: opacity .25s ease .15s, visibility 0s linear .4s; }
.chapa-caixa.aberta .chapa-marmore, .chapa-caixa.aberta .chapa-svg { opacity: 0; visibility: hidden; }
.revela { position: absolute; inset: 0; z-index: 1; border-radius: 6px; overflow: hidden; background: #0f1a22; box-shadow: 0 26px 40px rgba(0,0,0,.45); opacity: 0; transform: scale(.94); transition: opacity .9s ease .25s, transform 1.1s cubic-bezier(.2,.7,.2,1) .25s; }
.chapa-caixa.aberta .revela { opacity: 1; transform: none; }
.revela[hidden] { display: none; }
.revela-quadro { position: absolute; inset: 0; }
.revela-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1s ease, transform 5s ease-out; }
.revela-quadro img.ativa { opacity: 1; transform: none; }
.revela-barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 2.2rem 1rem .8rem; background: linear-gradient(to top, rgba(8,16,22,.88), rgba(8,16,22,0)); }
.revela-legenda { margin: 0; display: grid; gap: .1rem; color: #cfdbe4; font-size: .82rem; line-height: 1.4; max-width: 26rem; }
.revela-legenda strong { color: #fff; font-family: var(--serifa); font-size: 1.05rem; font-weight: 600; }
.revela-pontos { display: flex; gap: .15rem; flex: none; }
.revela-pontos button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.revela-pontos button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.revela-pontos button[aria-current="true"]::before { background: var(--bronze-claro); transform: scale(1.3); }
.revela-pontos button:focus-visible { outline: 3px solid var(--bronze-claro); outline-offset: 0; border-radius: 6px; }
@media (max-width: 560px) { .revela-legenda span { display: none; } }
@media (prefers-reduced-motion: reduce) { .revela, .revela-quadro img { transition: none; } }
.hero-texto { position: relative; z-index: 3; }
.preco-anual { margin: .2rem 0 1rem; padding: .7rem .9rem; border-radius: 8px; background: #fbf4e4; color: #4a3d1f; font-size: .88rem; line-height: 1.5; border-left: 4px solid var(--bronze); }
.preco-anual strong { color: #2b2210; }
.selo-desc { display: inline-block; background: var(--tinta); color: var(--bronze-claro); font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; }

/* carrossel do card "Editor 2D e 3D" */
.recurso-grande { justify-content: flex-start; }
.recurso-grande .car { margin-bottom: 1.4rem; }
.car { position: relative; border-radius: 10px; overflow: hidden; background: #0a141b; aspect-ratio: 15 / 8; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.car-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.car-quadro img.ativa { opacity: 1; }
.car-barra { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; padding: 1.8rem .8rem .5rem; background: linear-gradient(to top, rgba(8,16,22,.88), rgba(8,16,22,0)); }
.car-legenda { margin: 0; color: #fff !important; font-size: .82rem !important; line-height: 1.35 !important; }
.car-pontos { display: flex; flex: none; }
.car-pontos button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.car-pontos button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s, transform .2s; }
.car-pontos button[aria-current="true"]::before { background: var(--bronze-claro); transform: scale(1.3); }
.car-pontos button:focus-visible { outline: 3px solid var(--bronze-claro); border-radius: 6px; }
