/* Estúdio Quieto · landing
   Direção: editorial silencioso, branco neutro dominante, uma cor de destaque (berinjela).
   Fraunces é a fonte do próprio produto; por isso aparece aqui (exceção consciente à regra anti-serifa).
   Página só no claro por decisão de marca: o produto é claro e a regra do Thiago é "o branco domina".
   Formas: tudo reto; botões e caixas com raio de 2px. Imagens sem canto, como peça impressa. */

@font-face { font-family: "Fraunces"; src: url("fontes/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fontes/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --papel: #FAFAF8;
  --papel-2: #F0F0EC;
  --tinta: #1B1B1C;
  --tinta-2: #55555A;
  --fio: #DEDDD8;
  --acento: #5A2D46;
  --acento-2: #45213A;
  --sobre-acento: #FAFAF8;
  --raio: 2px;
  --largura: 1160px;
  --margem: clamp(1.25rem, 4.5vw, 2.75rem);
  --secao: clamp(4rem, 7.5vw, 6.5rem);
  --sombra: 0 1px 2px rgb(27 27 28 / .06), 0 18px 40px -18px rgb(27 27 28 / .28);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-gaveta: cubic-bezier(.32, .72, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--fio) transparent; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--acento); color: var(--sobre-acento); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }

h1, h2, h3 { margin: 0; font-weight: 420; text-wrap: balance; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; letter-spacing: -.012em; }
h1 { font-size: 2.25rem; line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 1.3rem + 2.3vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
.suave { color: var(--tinta-2); }
.miudo { font-size: .9375rem; }

.caixa { width: 100%; max-width: var(--largura); margin-inline: auto; padding-inline: var(--margem); }
.secao { padding-block: var(--secao); }
.pular { position: absolute; left: var(--margem); top: -4rem; background: var(--tinta); color: var(--papel);
  padding: .6rem 1rem; border-radius: var(--raio); z-index: 30; }
.pular:focus { top: .75rem; }
.so-leitor { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* botões: um rótulo só para comprar, em todo lugar */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--raio);
  background: var(--acento); color: var(--sobre-acento);
  font: 600 1rem/1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, transform .16s var(--ease-out);
}
.botao:active { transform: scale(.98); }
.botao--pequeno { min-height: 2.75rem; padding: 0 1rem; font-size: .9rem; }
.link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--fio); transition: text-decoration-color .16s ease; }
@media (hover: hover) and (pointer: fine) {   /* no toque, o hover gruda depois do clique */
  .botao:hover { background: var(--acento-2); }
  .link:hover { text-decoration-color: currentColor; }
}

/* topo */
.topo { border-bottom: 1px solid var(--fio); }
.topo .caixa { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marca { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; font-weight: 450; text-decoration: none; letter-spacing: -.01em; }

/* hero */
.hero { padding-block: clamp(2.25rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero .caixa { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-texto { display: grid; gap: 1.35rem; justify-items: start; }
.hero-texto p { font-size: clamp(1.0625rem, 1rem + .35vw, 1.2rem); max-width: 40ch; color: var(--tinta-2); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .35rem; }
.pecas { position: relative; aspect-ratio: 1 / 1.02; }
.pecas img { position: absolute; box-shadow: var(--sombra); }
.pecas .a { left: 0; top: 5%; width: 55%; }
.pecas .b { right: 0; top: 0; width: 44%; }
.pecas .c { right: 9%; bottom: 0; width: 45%; }
@media (min-width: 900px) {
  .hero .caixa { grid-template-columns: 1.25fr 1fr; }
  /* título em 2 linhas: a linha mais longa mede 12,15 vezes a fonte (medido no navegador) */
  h1 { font-size: min(3.9vw, 2.8rem); }
}

/* entrega */
.entrega .caixa { display: grid; gap: 1.25rem; }
.entrega h2 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.8rem); line-height: 1; }
.entrega p { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); }
.entrega .miudo { color: var(--tinta-2); }

/* grade do perfil */
.perfil { text-align: center; }
.perfil .caixa { display: grid; gap: 1.1rem; justify-items: center; }
.perfil p { max-width: 44ch; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: min(100%, 540px); margin-top: 1.5rem; }
.grade img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* o que vem: cinco celulas, 2 + 3 */
.vem .caixa { display: grid; gap: 2rem; }
.bento { display: grid; gap: .75rem; grid-template-columns: 1fr; }
.cel { background: var(--papel-2); border-radius: var(--raio); padding: 1.5rem; display: grid; gap: .5rem;
  align-content: start; overflow: hidden; }
.cel h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 420; line-height: 1.15; letter-spacing: -.01em; }
.mosaico { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 1rem; }
.mosaico img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cel p { color: var(--tinta-2); max-width: 36ch; }
.cel--img { padding-bottom: 0; grid-template-rows: auto auto 1fr; }
.cel--img img { margin-top: 1.25rem; width: 78%; justify-self: center; align-self: end; box-shadow: var(--sombra);
  aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .75rem; }
.chip { display: grid; gap: .45rem; font-size: .8125rem; color: var(--tinta-2); }
.chip span { display: block; aspect-ratio: 1; border-radius: var(--raio); border: 1px solid rgb(27 27 28 / .08); }
.vem .miudo { color: var(--tinta-2); }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .c1 { grid-column: span 2; } .c2 { grid-column: span 4; }
  .c3, .c4, .c5 { grid-column: span 2; }
}

/* carrosseis: fita horizontal, a linha atravessa os slides */
.carrosseis .caixa { display: grid; gap: 1.1rem; }
.carrosseis p { max-width: 50ch; }
.fita { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 2rem var(--margem) 1rem; scroll-padding-inline: var(--margem); }
.fita img { flex: 0 0 auto; width: min(70vw, 300px); min-width: 0; scroll-snap-align: start; }  /* sem min-width:0 a imagem nao encolhe abaixo do width do HTML */
.fita:focus-visible { outline-offset: -2px; }
.legenda { color: var(--tinta-2); font-size: .9375rem; }

/* como usar */
.uso .caixa { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.passos { display: grid; gap: 1.6rem; margin-top: 1.75rem; }
.passos div { display: grid; gap: .3rem; padding-top: 1.1rem; border-top: 1px solid var(--fio); }
.passos p { color: var(--tinta-2); max-width: 44ch; }
@media (min-width: 900px) { .uso .caixa { grid-template-columns: 1fr 1.15fr; } }

/* guia: faixa com as paginas */
.guia { background: var(--papel-2); text-align: center; }
.guia .caixa { display: grid; gap: 1.1rem; justify-items: center; }
.guia p { max-width: 46ch; }
.paginas { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); width: min(100%, 760px); margin-top: 1.75rem; }
.paginas img { box-shadow: var(--sombra); }

/* preço */
.preco .caixa { display: grid; justify-items: center; }
.oferta { width: min(100%, 560px); border: 1px solid var(--fio); border-radius: var(--raio); padding: clamp(2rem, 5vw, 3rem);
  display: grid; gap: 1rem; justify-items: center; text-align: center; background: var(--papel); }
.valor { font-family: "Fraunces", Georgia, serif; font-size: clamp(4rem, 3rem + 4vw, 5.5rem); line-height: .9; font-weight: 380; letter-spacing: -.02em; }
.valor small { font-size: .38em; letter-spacing: 0; vertical-align: .9em; margin-right: .12em; }
.oferta .botao { width: 100%; margin-top: .5rem; }
.garantia { border-top: 1px solid var(--fio); padding-top: 1.25rem; margin-top: .5rem; display: grid; gap: .35rem; }
.garantia p { color: var(--tinta-2); }

/* dúvidas */
.duvidas .caixa { display: grid; gap: 2rem; max-width: 820px; }
details { border-top: 1px solid var(--fio); }
details:last-of-type { border-bottom: 1px solid var(--fio); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  padding: 1.15rem 0; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: .875rem; height: .875rem; color: var(--tinta-2);
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform .2s var(--ease-in-out); }   /* sinal desenhado, nao caractere */
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.25rem; color: var(--tinta-2); max-width: 62ch; }

/* rodapé */
.rodape { border-top: 1px solid var(--fio); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--tinta-2); }
.rodape .caixa { display: grid; gap: .4rem; }

/* barra de compra no celular: aparece depois do topo e some perto do preço */
.barra { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: flex;
  padding: .75rem var(--margem) calc(.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--papel) 96%, transparent); border-top: 1px solid var(--fio);
  transform: translateY(110%); opacity: 0; visibility: hidden; }
.barra .botao { width: 100%; }
.barra.visivel { transform: none; opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  /* sai mais rapido do que entra; entrada com a curva de gaveta do iOS */
  .barra { transition: transform .18s var(--ease-out), opacity .18s ease, visibility .18s; }
  .barra.visivel { transition: transform .32s var(--ease-gaveta), opacity .2s ease, visibility .32s; }
}
@media (prefers-reduced-motion: reduce) {
  /* sem deslizar: so aparece e some com um esmaecimento curto */
  .barra { transform: none; transition: opacity .15s ease, visibility .15s; }
}
@media (min-width: 900px) { .barra { display: none; } }

/* um único momento autoral: a entrada do topo */
@media (prefers-reduced-motion: no-preference) {
  .entra { animation: sobe .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
  @keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
