:root {
  --papel: #FBF7F0;
  --papel-2: #F3ECDF;
  --tinta: #2A1B3D;
  --tinta-2: #5E5470;
  --roxo: #6A2C91;
  --roxo-escuro: #3B1856;
  --laranja: #F26B1D;
  --linha: #E4DACB;
  --titulo: 'Bricolage Grotesque', system-ui, sans-serif;
  --texto: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--papel); color: var(--tinta); font: 400 17px/1.55 var(--texto); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font: 500 16px var(--texto); text-decoration: none; cursor: pointer; }
.btn-pequeno { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-laranja { background: var(--laranja); color: #fff; }
.btn-roxo { background: var(--roxo); color: #fff; }
.btn-linha { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.btn-claro { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn { transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-laranja:hover { background: #E05A10; box-shadow: 0 10px 22px rgba(242,107,29,.35); }
.btn-roxo:hover { background: #57207A; box-shadow: 0 10px 22px rgba(106,44,145,.3); }
.btn-linha:hover { background: var(--tinta); color: var(--papel); }
.btn-claro:hover { background: #fff; color: var(--roxo-escuro); }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; }

/* topo */
.topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(251,247,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.marca { display: flex; align-items: center; gap: 10px; color: var(--roxo-escuro); }
.marca-texto { height: 30px; width: auto; }
.topo nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.topo nav a { text-decoration: none; color: var(--tinta-2); background: linear-gradient(var(--laranja), var(--laranja)) 0 100% / 0 2px no-repeat; padding-bottom: 2px; transition: background-size .25s, color .2s; }
.topo nav a:hover { color: var(--tinta); background-size: 100% 2px; }
.aviso { display: block; text-align: center; padding: 10px 16px; background: var(--laranja); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; }
.aviso span { display: inline-block; transition: transform .2s; }
.aviso:hover span { transform: translateX(4px); }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px) 56px; max-width: 1280px; margin: 0 auto; }
.sobre { color: var(--laranja); font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); color: var(--roxo-escuro); }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 1.5vw, 19px); color: var(--tinta-2); max-width: 34em; }
.hero-fotos { position: relative; height: clamp(380px, 44vw, 560px); }
.hero-fotos figure { position: absolute; background: #fff; padding: 8px 8px 30px; box-shadow: 0 1px 2px rgba(42,27,61,.08), 0 12px 30px rgba(42,27,61,.12); }
.hero-fotos img { width: 100%; height: 100%; object-fit: cover; }
.hero-fotos .f1 { width: 44%; height: 62%; left: 0; top: 12%; transform: rotate(-4deg); }
.hero-fotos .f2 { width: 48%; height: 70%; left: 30%; top: 0; transform: rotate(2deg); z-index: 2; }
.hero-fotos .f3 { width: 38%; height: 56%; right: 0; bottom: 0; transform: rotate(5deg); z-index: 3; }
.fita { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font: 500 13px var(--titulo); color: var(--tinta); white-space: nowrap; }
.fita.roxa { color: var(--roxo); }

/* fatos */
.fatos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha); }
.fatos li { padding: 22px clamp(16px, 3vw, 32px); border-left: 1px solid var(--linha); }
.fatos li:first-child { border-left: 0; }
.fatos b { display: block; font: 600 20px var(--titulo); color: var(--roxo-escuro); }
.fatos span { font-size: 15px; color: var(--tinta-2); }

/* seções */
.secao { max-width: 1280px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.secao-cab { max-width: 640px; margin-bottom: 40px; }
.secao-cab h2, .escolar h2, .fim h2 { font-size: clamp(32px, 4.2vw, 52px); color: var(--roxo-escuro); margin-bottom: 14px; }
.secao-cab p { color: var(--tinta-2); }

/* vitrine */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.item { transition: transform .25s; }
.item:hover { transform: translateY(-4px); }
.item:hover img { box-shadow: 0 14px 30px rgba(42,27,61,.15); }
.item img { transition: box-shadow .25s;  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--papel-2); }
.item h3 { font-size: 21px; margin: 14px 0 6px; }
.item p { font-size: 15px; color: var(--tinta-2); margin-bottom: 10px; }
.link-pedir { background: none; border: 0; padding: 0; font: 500 15px var(--texto); color: var(--laranja); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* volta às aulas */
.escolar { background: var(--roxo-escuro); color: #fff; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 48px); }
.escolar-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); max-width: 1280px; margin: 0 auto; align-items: start; }
.escolar h2 { color: #fff; }
.selo { display: inline-block; background: var(--laranja); color: #fff; font: 600 14px var(--titulo); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; transform: rotate(-2deg); }
.escolar-texto > p { color: rgba(255,255,255,.78); max-width: 32em; }
.passos { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.passos li { display: flex; gap: 14px; align-items: baseline; }
.passos b { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--laranja); font: 600 15px var(--titulo); }
.kit { background: var(--papel); color: var(--tinta); border-radius: 22px; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); background-image: repeating-linear-gradient(transparent 0 31px, #E9DFF3 31px 32px); }
.kit-abas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.kit-aba { border: 1.5px solid var(--linha); background: #fff; border-radius: 999px; padding: 8px 14px; font: 500 14px var(--texto); color: var(--tinta); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.kit-aba:hover { border-color: var(--roxo); transform: translateY(-2px); }
.kit-aba[aria-selected="true"] { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.kit-itens { list-style: none; padding: 0; columns: 2; column-gap: 18px; margin-bottom: 18px; }
.kit-itens li { break-inside: avoid; animation: sobe .4s both; animation-delay: calc(var(--i) * 30ms); }
.kit-itens label { display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 15px; cursor: pointer; }
.kit-itens input { width: 18px; height: 18px; accent-color: var(--laranja); flex: none; }
.kit-itens input:not(:checked) + span { text-decoration: line-through; color: #A69CB3; }
.kit-btn { width: 100%; }
.achados { max-width: 1280px; margin: 56px auto 0; }
.achados-titulo { font: 500 15px var(--texto); color: rgba(255,255,255,.7); margin-bottom: 14px; }
.achados-lista { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.achados-lista figure { overflow: hidden; }
.achados-lista img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; transition: transform .5s; }
.achados-lista figure:hover img { transform: scale(1.04); }
.achados-lista figcaption { font-size: 14px; margin-top: 8px; color: rgba(255,255,255,.85); }

/* catálogo */
.abas { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; margin-bottom: 36px; }
.aba { display: grid; justify-items: start; gap: 4px; text-align: left; padding: 16px; border-radius: 16px; border: 1.5px solid var(--linha); background: #fff; color: var(--tinta); cursor: pointer; font-family: var(--texto); transition: transform .25s, box-shadow .25s, border-color .25s, background .25s; }
.aba svg { width: 30px; height: 30px; color: var(--cor); margin-bottom: 6px; transition: transform .3s; }
.aba span { font: 600 16px/1.2 var(--titulo); }
.aba small { font-size: 13px; color: var(--tinta-2); }
.aba:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(42,27,61,.1); border-color: var(--cor); }
.aba:hover svg { transform: rotate(-8deg) scale(1.08); }
.aba[aria-selected="true"] { background: var(--cor); border-color: var(--cor); color: #fff; }
.aba[aria-selected="true"] svg, .aba[aria-selected="true"] small { color: #fff; }
.produtos-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.produtos-cab h3 { font-size: 28px; color: var(--roxo-escuro); }
.produtos-cab p { color: var(--tinta-2); font-size: 15px; }
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.produto { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linha); border-radius: 16px; padding: 10px 10px 14px; animation: sobe .45s both; animation-delay: calc(var(--i) * 40ms); transition: transform .25s, box-shadow .25s; }
.produto:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(42,27,61,.1); }
.produto img, .produto-icone { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.produto-icone { display: grid; place-items: center; background: color-mix(in srgb, var(--cor) 12%, #fff); color: var(--cor); }
.produto-icone svg { width: 38%; height: 38%; transition: transform .35s; }
.produto:hover .produto-icone svg { transform: rotate(-10deg) scale(1.1); }
.produto h3 { font-size: 17px; margin: 12px 4px 4px; }
.produto p { font-size: 14px; color: var(--tinta-2); margin: 0 4px 12px; }
.btn-add { margin-top: auto; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--cor); background: transparent; color: var(--cor); font: 500 14px var(--texto); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn-add:hover { background: var(--cor); color: #fff; }
.btn-add:active { transform: scale(.96); }
.btn-add.na-lista { background: var(--cor); color: #fff; }

/* lista flutuante */
.btn-lista { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--roxo-escuro); color: #fff; font: 500 16px var(--texto); cursor: pointer; box-shadow: 0 12px 30px rgba(42,27,61,.35); transition: transform .2s; }
.btn-lista:hover { transform: translateY(-3px); }
.btn-lista[hidden] { display: none; }
.btn-lista b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--laranja); font-size: 14px; }
.btn-lista.pulo { animation: pulo .45s; }
.lista-itens { list-style: none; padding: 0; max-height: 50vh; overflow: auto; display: grid; gap: 6px; }
.lista-itens li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-radius: 10px; font-size: 15px; }
.lista-itens button { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--tinta-2); cursor: pointer; }

/* inclusivo */
.sense { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px; margin-bottom: 32px; }
.sense figure { position: relative; }
.sense .grande { grid-row: span 2; }
.sense img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: 1088 / 1344; }
.sense figcaption { position: absolute; left: 10px; bottom: 10px; background: var(--papel); padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; }

/* lojas */
.lojas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.loja { display: grid; grid-template-columns: 0.8fr 1fr; gap: 22px; background: #fff; border: 1px solid var(--linha); border-radius: 18px; padding: 14px; }
.loja img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 12px; }
.loja > div { padding: 10px 6px 10px 0; display: flex; flex-direction: column; gap: 10px; }
.loja .tag { color: var(--laranja); font-weight: 500; font-size: 15px; }
.loja h3 { font-size: 24px; }
.loja p { color: var(--tinta-2); font-size: 15px; }
.loja .tel { color: var(--tinta); font-weight: 500; font-size: 17px; }
.loja .acoes { margin-top: auto; }
.loja .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* fim */
.fim { text-align: center; padding: clamp(56px, 8vw, 104px) 16px; background: var(--papel-2); }
.fim p { color: var(--tinta-2); margin-bottom: 26px; }

/* rodapé */
.rodape { padding: 40px 16px 110px; text-align: center; color: var(--tinta-2); font-size: 15px; display: grid; justify-items: center; gap: 8px; }
.rodape img { height: 32px; width: auto; color: var(--roxo-escuro); }

/* animações */
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } }
@keyframes pulo { 40% { transform: scale(1.12); } }
@keyframes cai { from { opacity: 0; transform: translateY(40px) rotate(var(--r0, 0deg)); } }
.revela { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.revela.visivel { opacity: 1; transform: none; }
.hero-texto > * { animation: sobe .7s both; }
.hero-texto > :nth-child(2) { animation-delay: .08s; }
.hero-texto > :nth-child(3) { animation-delay: .16s; }
.hero-texto > :nth-child(4) { animation-delay: .24s; }
.hero-fotos figure { animation: cai .8s cubic-bezier(.2,.8,.2,1) both; transition: transform .35s; }
.hero-fotos .f1 { --r0: -14deg; animation-delay: .15s; }
.hero-fotos .f2 { --r0: 10deg; animation-delay: .3s; }
.hero-fotos .f3 { --r0: 16deg; animation-delay: .45s; }
.hero-fotos figure:hover { transform: rotate(0) scale(1.03); z-index: 5; }

/* barra fixa do celular */
.barra-zap { display: none; }

/* escolha de loja */
dialog { border: 0; border-radius: 20px; padding: 26px; width: min(360px, calc(100% - 32px)); background: var(--papel); color: var(--tinta); }
dialog::backdrop { background: rgba(42,27,61,.5); }
dialog form { display: grid; gap: 12px; }
.dlg-titulo { font: 600 21px var(--titulo); margin-bottom: 6px; }
.fechar { background: none; border: 0; font: 500 15px var(--texto); color: var(--tinta-2); padding: 8px; cursor: pointer; }

@media (max-width: 1000px) {
  .vitrine { grid-template-columns: repeat(3, 1fr); }
  .escolar-in { grid-template-columns: 1fr; }
  .abas { grid-template-columns: repeat(5, 1fr); }
  .achados-lista { grid-template-columns: repeat(3, 1fr); }
  .lojas { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .topo nav { display: none; }
  .topo .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-fotos { height: 360px; }
  .fatos { grid-template-columns: 1fr 1fr; }
  .fatos li:nth-child(3) { border-left: 0; }
  .fatos li:nth-child(n+3) { border-top: 1px solid var(--linha); }
  .vitrine { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .item h3 { font-size: 18px; }
  .item p { font-size: 14px; }
  .abas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 140px; overflow-x: auto; margin: 0 -16px 28px; padding: 4px 16px 8px; scroll-snap-type: x mandatory; }
  .aba { scroll-snap-align: start; }
  .produtos { grid-template-columns: 1fr 1fr; gap: 12px; }
  .produto-icone { aspect-ratio: 4 / 3; }
  .produto h3 { font-size: 15px; }
  .produto p { font-size: 13px; }
  .btn-add { font-size: 13px; }
  .kit-itens { columns: 1; }
  .btn-lista { bottom: 82px; right: 12px; }
  .achados-lista { grid-template-columns: repeat(6, 44%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .achados-lista figure { scroll-snap-align: start; }
  .sense { grid-template-columns: 1fr 1fr; }
  .sense .grande { grid-column: span 2; grid-row: auto; }
  .loja { grid-template-columns: 1fr; }
  .loja img { min-height: 0; aspect-ratio: 4 / 3; }
  .loja > div { padding: 4px 4px 8px; }
  .barra-zap { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linha); }
  .barra-zap a { display: grid; place-items: center; min-height: 46px; border-radius: 999px; background: var(--laranja); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
  .barra-zap a + a { background: var(--roxo); }
}

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