/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: clip; padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -45% 35%; height: 120%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--grape) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__in { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; }
.hero__title { font-size: var(--t-hero); font-weight: 800; line-height: 1; letter-spacing: -.025em; max-width: 13ch; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); animation: word .7s var(--spring) forwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
@keyframes word { to { opacity: 1; transform: none; } }
.hero__lede { margin-top: 22px; font-size: var(--t-lg); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.ask {
  margin-top: 30px; display: flex; align-items: center; gap: 10px;
  max-width: 540px; padding: 6px 6px 6px 18px; border-radius: var(--pill);
  background: var(--paper); box-shadow: 0 0 0 2px var(--line), 0 18px 40px -26px rgb(var(--shadow-c) / .6);
  transition: box-shadow .25s;
}
.ask:focus-within { box-shadow: 0 0 0 2px var(--ink), 0 18px 40px -22px rgb(var(--shadow-c) / .6); }
.ask .i { color: var(--ink-3); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 48px; font-size: var(--t-md); }
.ask input::placeholder { color: var(--ink-3); }
.ask__hints { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: var(--t-sm); color: var(--ink-3); }
.ask__hints button { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; text-decoration-thickness: 2px; padding: 4px 2px; }
.ask__hints button:hover { color: var(--ink); text-decoration-color: var(--pink); }

/* quebra-cabeça */
.puzzle { position: relative; user-select: none; -webkit-user-select: none; }
.puzzle__board { position: relative; aspect-ratio: 770 / 504; width: 100%; }
.piece {
  position: absolute; inset: 0; display: block;
  pointer-events: none; touch-action: pan-y;
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.85);
  opacity: 0;
  transition: transform .9s var(--spring), opacity .5s var(--ease), filter .3s;
  filter: drop-shadow(0 14px 18px rgb(var(--shadow-c) / .18));
}
.piece img { width: 100%; height: 100%; pointer-events: none; }
.puzzle.is-built .piece { opacity: 1; transform: translate(var(--px, 0px), var(--py, 0px)) rotate(var(--pr, 0deg)); }
.puzzle.is-built .piece--azul { transition-delay: .1s; }
.puzzle.is-built .piece--rosa { transition-delay: .22s; }
.puzzle.is-built .piece--roxo { transition-delay: .34s; }
.puzzle.is-built .piece--amarelo { transition-delay: .46s; }
.puzzle.is-ready .piece { transition-delay: 0s; transition-duration: .5s; }
.puzzle.is-ready .piece.is-drag { transition: none; z-index: 5; filter: drop-shadow(0 26px 26px rgb(var(--shadow-c) / .28)); cursor: grabbing; }
.piece.is-hot { filter: drop-shadow(0 22px 22px rgb(var(--shadow-c) / .26)); z-index: 4; }
/* área clicável aproximada de cada peça */
.piece::before { content: ""; position: absolute; pointer-events: auto; cursor: grab; border-radius: 40%; }
.piece--azul::before { left: 6%; top: 6%; width: 42%; height: 40%; }
.piece--rosa::before { left: 51%; top: 4%; width: 44%; height: 50%; }
.piece--roxo::before { left: 2%; top: 50%; width: 47%; height: 34%; }
.piece--amarelo::before { left: 50%; top: 52%; width: 48%; height: 38%; }
.piece__tip {
  position: absolute; z-index: 3; pointer-events: none;
  font: 800 var(--t-md)/1 var(--f-display); white-space: nowrap;
  padding: 10px 16px 8px; border-radius: 16px; color: #fff; background: var(--ink);
  opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .2s, transform .3s var(--spring);
}
:root[data-theme="dark"] .piece__tip { color: var(--paper); }
.piece__tip::after { content: ""; position: absolute; left: 22px; bottom: -6px; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.piece--azul .piece__tip { left: 14%; top: 0; background: var(--blue); }
.piece--rosa .piece__tip { left: 60%; top: -4%; background: var(--pink); }
.piece--roxo .piece__tip { left: 8%; top: 44%; background: var(--grape); }
.piece--amarelo .piece__tip { left: 58%; top: 46%; background: var(--sun); color: #2a1f4a; }
.piece.is-hot .piece__tip, .piece:focus-visible .piece__tip { opacity: 1; transform: none; }
.piece:focus-visible { outline: none; }
.piece:focus-visible img { filter: drop-shadow(0 0 0 3px var(--blue)); }

.burst { position: fixed; z-index: 90; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; }

/* ------------------------------------------------------------ seções */
.sec-head { margin-bottom: 26px; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.sec-title { font-size: var(--t-3xl); font-weight: 800; }
.sec-title--gap { margin-top: clamp(48px, 7vw, 80px); margin-bottom: 22px; }
.sec-lede { margin-top: 10px; font-size: var(--t-lg); color: var(--ink-2); max-width: 52ch; }
.sec-lede strong { color: var(--ink); }

/* régua das fases */
.fase { padding: clamp(56px, 8vw, 104px) 0; background: var(--mist); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.ruler { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 10px 0 34px; padding-top: 4px; touch-action: pan-y; }
.ruler__track { position: absolute; left: 10%; right: 10%; top: 31px; height: 10px; border-radius: 10px; background: var(--line); overflow: hidden; }
.ruler__fill { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--pink), var(--grape), var(--sun)); transition: width .5s var(--spring); }
.ruler__stop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 4px 8px; border-radius: var(--r-md); text-align: center; transition: background-color .2s; }
.ruler__stop:hover { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.ruler__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 4px var(--line); margin-bottom: 10px; transition: box-shadow .3s, transform .3s var(--spring); }
.ruler__stop[aria-selected="true"] .ruler__dot, .ruler__stop.is-past .ruler__dot { box-shadow: inset 0 0 0 4px var(--ink); }
.ruler__label { font: 800 var(--t-lg)/1.1 var(--f-display); color: var(--ink-2); transition: color .2s; }
.ruler__sub { font-size: var(--t-xs); color: var(--ink-3); }
.ruler__stop[aria-selected="true"] .ruler__label { color: var(--ink); }
.ruler__knob {
  position: absolute; top: 12px; left: var(--kx, 10%); width: 50px; height: 50px; margin-left: -25px;
  display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--ink);
  box-shadow: 0 10px 20px -8px rgb(var(--shadow-c) / .5);
  transition: left .55s var(--spring), transform .3s var(--spring), background-color .3s;
  cursor: grab; touch-action: none;
}
:root[data-theme="dark"] .ruler__knob { color: var(--paper); }
.ruler__knob .i { width: 26px; height: 26px; }
.ruler.is-drag .ruler__knob { transition: transform .3s var(--spring); transform: scale(1.12) rotate(-8deg); cursor: grabbing; }
.fase__panel { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(20px, 3vw, 40px); }
.fase__h { font-size: var(--t-xl); font-weight: 800; margin-bottom: 14px; }
.fase__list { display: grid; gap: 10px; }
.mini-art {
  --c: var(--blue);
  display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-md);
  background: var(--paper); text-decoration: none; transition: transform .3s var(--spring), box-shadow .3s;
}
.mini-art:hover { transform: translateX(4px); box-shadow: -4px 0 0 var(--c); }
.mini-art img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.mini-art strong { display: block; font: 700 var(--t-md)/1.25 var(--f-display); font-size: 1.125rem; }
.mini-art span { font-size: var(--t-xs); color: var(--ink-3); }
.fase__books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fase__books .book-card__body { padding-top: 10px; }
.is-swap > * { animation: swap .55s var(--spring) both; animation-delay: calc(var(--n, 0) * 60ms); }
@keyframes swap { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ------------------------------------------------------------ livro (capa 3D) */
.book-card { --c: var(--blue); position: relative; display: flex; flex-direction: column; min-width: 0; }
.book-card__stage { position: relative; padding: 18px 18px 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--c) 13%, var(--paper)); perspective: 900px; isolation: isolate; aspect-ratio: 4 / 4.6; display: grid; place-items: center; }
.book { display: block; width: 78%; transform-style: preserve-3d; transform: rotateY(-18deg) rotateX(4deg); transition: transform .6s var(--spring); }
.book--land { width: 94%; transform: rotateY(-12deg) rotateX(6deg); }
.book__cover { position: relative; display: block; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: 1px 1px 0 rgb(0 0 0 / .05), 14px 18px 26px -10px rgb(var(--shadow-c) / .45); transform-style: preserve-3d; }
.book--land .book__cover { border-radius: 8px; }
.book__cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(90deg, rgb(0 0 0 / .14), rgb(255 255 255 / .18) 45%, transparent); z-index: 1; }
.book__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgb(255 255 255 / .35), transparent 40%); opacity: .0; transition: opacity .4s; }
.book__cover img { width: 100%; height: auto; }
.book-card:hover .book, .book-card:focus-within .book { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(-6px) scale(1.03); }
.book-card:hover .book__cover::after { opacity: 1; }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  color: var(--ink-2); background: var(--paper); box-shadow: 0 6px 14px -8px rgb(var(--shadow-c) / .5);
  transition: transform .3s var(--spring), color .2s;
}
.fav:hover { transform: scale(1.1); color: var(--pink); }
.fav[aria-pressed="true"] { color: var(--pink); }
.fav[aria-pressed="true"] .i { fill: currentColor; animation: heart .6s var(--spring); }
@keyframes heart { 0% { transform: scale(1); } 30% { transform: scale(.7); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.book-card__peek {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--pill);
  font: 700 var(--t-xs)/1 var(--f-text); background: var(--paper); color: var(--ink);
  box-shadow: 0 8px 18px -10px rgb(var(--shadow-c) / .6);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s var(--spring);
}
.book-card:hover .book-card__peek, .book-card__peek:focus-visible { opacity: 1; transform: none; }
.book-card__body { padding: 14px 4px 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.book-card__meta { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-xs); color: var(--ink-3); }
.book-card__meta .i { width: 15px; height: 15px; }
.book-card__title { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.book-card__title a { text-decoration: none; }
.book-card__title a:hover { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.book-card__buy { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.price s { font-size: var(--t-xs); }
.price strong { font: 800 1.3rem/1 var(--f-display); }
.btn-add {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 10px; border-radius: var(--pill);
  font: 700 var(--t-xs)/1 var(--f-text); color: var(--paper); background: var(--ink);
  transition: transform .25s var(--spring), background-color .25s;
}
.btn-add:hover { transform: scale(1.06); }
.btn-add:active { transform: scale(.94); }
.btn-add.is-in { background: var(--leaf); color: #fff; }
.btn-add .i { width: 18px; height: 18px; transition: transform .35s var(--spring); }
.btn-add.is-in .i { transform: rotate(360deg); }
.fly { position: fixed; z-index: 95; pointer-events: none; border-radius: 8px; box-shadow: 0 16px 30px -12px rgb(var(--shadow-c) / .6); will-change: transform; }

/* prateleira */
.shelf { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); }
.shelf .chips { margin-bottom: 8px; }
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 270px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 18px max(var(--gut), calc((100vw - var(--wrap)) / 2)) 30px;
  scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  cursor: grab;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail__track.is-drag * { pointer-events: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn {
  position: absolute; top: 40%; z-index: 3; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--ink); box-shadow: 0 10px 24px -12px rgb(var(--shadow-c) / .6), inset 0 0 0 1.5px var(--line);
  transition: transform .3s var(--spring), opacity .3s;
}
.rail__btn:hover { transform: scale(1.08); }
.rail__btn:disabled { opacity: 0; pointer-events: none; }
.rail__btn--prev { left: max(8px, calc((100vw - var(--wrap)) / 2 - 70px)); }
.rail__btn--next { right: max(8px, calc((100vw - var(--wrap)) / 2 - 70px)); }
.book-card.is-hide { display: none; }

/* como funciona */
.how { position: relative; padding: clamp(48px, 7vw, 90px) 0; }
.how .sec-title { margin-bottom: 36px; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); position: relative; z-index: 1; }
.how__step { --c: var(--blue); padding: 28px; border-radius: var(--r-lg); background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); }
.how__n {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px 18px 18px 6px;
  font: 800 1.7rem/1 var(--f-display); color: #fff; background: var(--c);
}
.how__step h3 { font-size: var(--t-xl); margin-bottom: 8px; }
.how__step p { color: var(--ink-2); }
.how__path { position: absolute; left: 8%; right: 8%; top: 52%; width: 84%; height: 60px; z-index: 0; overflow: visible; }
.how__path path { fill: none; stroke: var(--line); stroke-width: 4; stroke-dasharray: .012 .012; stroke-linecap: round; }
.how__steps--stack { grid-template-columns: 1fr; }

/* artigos */
.reads { padding: clamp(48px, 7vw, 90px) 0 clamp(80px, 10vw, 130px); }
.reads .chips { margin-bottom: 28px; }
.reads__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.reads__grid .art-card--feature { grid-column: span 2; grid-row: span 2; }
.art-card { --c: var(--blue); min-width: 0; }
.art-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.art-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); background: var(--mist); }
.art-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.art-card__img::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--c); transition: box-shadow .35s var(--ease); }
.art-card__link:hover .art-card__img img { transform: scale(1.06); }
.art-card__link:hover .art-card__img::after { box-shadow: inset 0 0 0 6px var(--c); }
.art-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 4px 0; }
.art-card__title { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }
.art-card__link:hover .art-card__title { text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.art-card__ex { color: var(--ink-2); max-width: 60ch; }
.art-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--ink-3); }
.art-card__meta .i { width: 15px; height: 15px; }
.art-card--feature .art-card__img { aspect-ratio: 16 / 11; }
.art-card--feature .art-card__title { font-size: var(--t-2xl); }
.art-card.is-hide { display: none; }

/* ------------------------------------------------------------ páginas de lista */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(26px, 4vw, 44px); }
.page-head__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-title { font-size: var(--t-3xl); font-weight: 800; }
.page-lede { margin-top: 12px; font-size: var(--t-lg); color: var(--ink-2); max-width: 56ch; }
.page-lede strong { color: var(--ink); }
.page-head__books { position: relative; width: 300px; height: 170px; flex: none; }
.page-head__books img { position: absolute; bottom: 0; width: 110px; border-radius: 4px 8px 8px 4px; box-shadow: 10px 14px 24px -12px rgb(var(--shadow-c) / .5); left: calc(var(--i) * 90px); transform: rotate(calc((var(--i) - 1) * 8deg)) translateY(calc(var(--i) * 0px)); transition: transform .5s var(--spring); }
.page-head__books:hover img { transform: rotate(calc((var(--i) - 1) * 14deg)) translateY(-8px); }
.list-page { padding-bottom: clamp(70px, 10vw, 120px); }
.filters {
  position: sticky; top: 64px; z-index: 20;
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr auto; align-items: center; gap: 12px 16px;
  padding: 14px 0; margin-bottom: 8px;
  background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.filters > * { min-width: 0; }
.filters .chips--scroll { grid-column: 1 / -1; margin-inline: 0; padding-inline: 0; }
.filters--loja { grid-template-columns: minmax(200px, 280px) 1fr auto; }
.filters__search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s; }
.filters__search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.filters__search .i { color: var(--ink-3); }
.filters__search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; height: 100%; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; height: 46px; padding: 0 42px 0 18px; border-radius: var(--pill); border: 0; background: var(--mist); font-weight: 700; font-size: var(--t-sm); cursor: pointer; }
.select .i { position: absolute; right: 14px; pointer-events: none; width: 18px; color: var(--ink-2); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--pill); background: var(--mist); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn, .seg [role="tab"] { flex: none; height: 38px; padding: 0 14px; border-radius: var(--pill); font-weight: 700; font-size: var(--t-xs); color: var(--ink-2); white-space: nowrap; transition: background-color .25s, color .2s, box-shadow .25s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"], .seg [aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 10px -6px rgb(var(--shadow-c) / .45); }
.result-count { font-size: var(--t-sm); color: var(--ink-3); margin: 10px 0 22px; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 34px 22px; }
.book-grid--4 { grid-template-columns: repeat(4, 1fr); }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.art-grid .art-card--wide { grid-column: 1 / -1; }
.art-grid .art-card--wide .art-card__link { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.art-grid .art-card--wide .art-card__img { aspect-ratio: 16 / 10; }
.art-grid .art-card--wide .art-card__title { font-size: var(--t-2xl); }
.art-grid .art-card--wide .art-card__body { padding: 0; }
.art-grid.is-filtered .art-card--wide { grid-column: auto; }
.art-grid.is-filtered .art-card--wide .art-card__link { display: flex; gap: 0; }
.art-grid.is-filtered .art-card--wide .art-card__body { padding: 16px 4px 0; }
.art-grid.is-filtered .art-card--wide .art-card__title { font-size: 1.35rem; }
.art-grid.is-filtered .art-card--wide .art-card__ex { display: none; }
.art-grid--3 { grid-template-columns: repeat(3, 1fr); }
.empty { display: grid; justify-items: center; gap: 16px; padding: 60px 0; text-align: center; color: var(--ink-2); font-size: var(--t-lg); }
.empty img { width: 140px; animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }
.is-in-view { animation: swap .5s var(--spring) both; }

/* ------------------------------------------------------------ artigo */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 5px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--c); border-radius: 0 4px 4px 0; }
.post__head { padding-top: clamp(24px, 4vw, 48px); display: grid; justify-items: start; gap: 18px; max-width: 980px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--t-sm); text-decoration: none; color: var(--ink-2); padding: 6px 10px 6px 2px; border-radius: var(--pill); transition: color .2s, transform .25s var(--spring); }
.back:hover { color: var(--ink); transform: translateX(-3px); }
.post__title { font-size: var(--t-3xl); font-weight: 800; max-width: 22ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: var(--t-sm); }
.post__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post__meta .i { width: 17px; height: 17px; }
.post__figure { margin-top: 30px; margin-bottom: 0; }
.post__figure img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-xl); background: var(--mist); }
.post__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.post__aside { position: relative; }
.post__aside > * { position: sticky; top: 96px; }
.toc { margin-bottom: 22px; }
.toc__h { font: 800 var(--t-md)/1 var(--f-display); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: var(--t-sm); line-height: 1.35; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-on { color: var(--ink); border-left-color: var(--c); font-weight: 700; }
.post__aside .toc + .readbar { position: static; }
.post__aside { display: flex; flex-direction: column; }
.post__aside .toc { position: sticky; top: 96px; }
.readbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.readbar__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: var(--pill); background: var(--mist); font-weight: 700; font-size: var(--t-xs); transition: background-color .2s, transform .25s var(--spring); }
.readbar__btn:hover { background: var(--mist-2); transform: translateY(-1px); }
.readbar__btn .i { width: 17px; height: 17px; }
.readbar__btn .i-pause { display: none; }
.readbar__btn[aria-pressed="true"] { background: var(--c); color: #fff; }
.readbar__btn[aria-pressed="true"] .i-play { display: none; }
.readbar__btn[aria-pressed="true"] .i-pause { display: block; }
.readbar__size { display: inline-flex; border-radius: var(--pill); background: var(--mist); }
.readbar__size .readbar__btn { background: none; padding: 0 12px; font-family: var(--f-display); font-size: .95rem; }
.readbar__size .readbar__btn--big { font-size: 1.3rem; }
.prose { font-size: calc(1.1875rem * var(--read-scale)); line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75em; margin-top: 1.8em; font-weight: 800; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.35em; margin-top: 1.6em; font-weight: 700; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: .55em; }
.prose > p:first-child { font-size: 1.16em; line-height: 1.6; color: var(--ink); }
.prose > p:first-child::first-letter { float: left; font: 800 3.4em/.8 var(--f-display); margin: .06em .06em 0 0; color: var(--c); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--c); font-weight: 800; }
.prose strong { font-weight: 700; }
.prose a { color: var(--ink); text-decoration-color: var(--c); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose p:last-child em { display: block; font-size: .8em; color: var(--ink-3); padding-top: 1.2em; border-top: 2px dashed var(--line); }
.prose .is-speaking { background: color-mix(in srgb, var(--sun) 32%, transparent); border-radius: 6px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 32%, transparent); }
.post-more { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); background: var(--mist); border-radius: var(--r-xl) var(--r-xl) 0 0; }
.post-more .sec-lede { margin-bottom: 28px; }
.post-more .sec-title + .book-grid { margin-top: 26px; }
.post-more .book-card__stage { background: var(--paper); }

/* ------------------------------------------------------------ produto */
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 22px; font-size: var(--t-sm); color: var(--ink-3); }
.crumbs a { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding: 22px 0 clamp(60px, 8vw, 100px); align-items: start; }
.product > * { min-width: 0; }
.product__gallery { position: sticky; top: 90px; }
.viewer {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05; border-radius: var(--r-xl); overflow: hidden;
  background: color-mix(in srgb, var(--c) 14%, var(--paper)); perspective: 1600px;
}
.viewer--land { aspect-ratio: 1.25 / 1; }
.viewer__page { grid-area: 1 / 1; margin: 0; width: 72%; display: grid; place-items: center; opacity: 0; transform: rotateY(-70deg) translateX(30%); transform-origin: 0 50%; transition: transform .7s var(--ease), opacity .45s var(--ease); pointer-events: none; cursor: zoom-in; }
.viewer--land .viewer__page { width: 86%; }
.viewer__page img { border-radius: 6px; box-shadow: 0 24px 40px -18px rgb(var(--shadow-c) / .55); max-height: 86%; width: auto; max-width: 100%; }
.viewer__page.is-on { opacity: 1; transform: none; pointer-events: auto; }
.viewer__page.is-out { opacity: 0; transform: rotateY(70deg) translateX(-30%); transform-origin: 100% 50%; }
.viewer.is-zoom .viewer__page.is-on { transform: scale(1.7); transform-origin: var(--zx, 50%) var(--zy, 50%); cursor: zoom-out; transition: transform .45s var(--ease); }
.viewer__nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 8px 20px -10px rgb(var(--shadow-c) / .6); transition: transform .3s var(--spring); z-index: 2; }
.viewer__nav:hover { transform: scale(1.1); }
.viewer__nav--prev { left: 16px; }
.viewer__nav--next { right: 16px; }
.viewer__count { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; padding: 7px 14px; border-radius: var(--pill); font-weight: 700; font-size: var(--t-xs); background: var(--paper); color: var(--ink); z-index: 2; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.thumb { flex: none; width: 74px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--mist); box-shadow: inset 0 0 0 2px var(--line); opacity: .7; transition: opacity .2s, transform .3s var(--spring), box-shadow .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.thumb:hover { opacity: 1; transform: translateY(-3px); }
.thumb[aria-pressed="true"] { opacity: 1; box-shadow: 0 0 0 3px var(--c); }
.product__info { display: grid; gap: 20px; padding-top: 6px; }
.product__title { font-size: var(--t-3xl); font-weight: 800; }
.product__price { display: flex; align-items: baseline; gap: 12px; }
.product__price strong { font: 800 2.6rem/1 var(--f-display); }
.product__price s { font-size: var(--t-lg); }
.off { align-self: center; padding: 6px 10px; border-radius: var(--pill); font-weight: 800; font-size: var(--t-xs); color: #fff; background: var(--leaf); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.facts .i { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--paper)); }
.product__cta { display: flex; gap: 10px; }
.product__cta .btn--ink, .product__cta .btn:first-child { flex: 1; }
.product__box { padding: 22px; border-radius: var(--r-lg); background: var(--mist); }
.product__box h2 { font-size: var(--t-lg); margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; }
.ticks .i { color: var(--leaf); }
.acc { border-bottom: 2px solid var(--line); }
.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; font: 700 var(--t-lg)/1.25 var(--f-display); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { transition: transform .35s var(--spring); color: var(--ink-3); }
.acc[open] summary .i { transform: rotate(180deg); }
.acc p { padding: 0 0 18px; color: var(--ink-2); max-width: 60ch; }
.acc[open] p { animation: swap .4s var(--ease); }
.buybar { display: none; }

/* ------------------------------------------------------------ ajuda */
.help { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); padding-bottom: clamp(70px, 10vw, 120px); align-items: start; }
.help .how__steps { margin-top: 22px; }
.help .acc:first-of-type { border-top: 2px solid var(--line); }
.help__side { position: sticky; top: 96px; }
.talk { padding: 30px; border-radius: var(--r-xl); background: var(--mist); display: grid; gap: 14px; }
.talk h2 { font-size: var(--t-2xl); }
.talk p { color: var(--ink-2); }
.talk__form { display: grid; gap: 14px; margin-top: 6px; }
.talk__form label { display: grid; gap: 6px; font-weight: 700; font-size: var(--t-sm); }
.talk__form input, .talk__form textarea { border: 0; border-radius: var(--r-md); padding: 14px 16px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); outline: 0; font-weight: 400; resize: vertical; }
.talk__form input:focus, .talk__form textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.talk__note { font-size: var(--t-sm); padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); }

/* ------------------------------------------------------------ rodapé */
.foot { position: relative; margin-top: 0; background: var(--ink); color: var(--paper); padding: 30px 0 calc(28px + env(safe-area-inset-bottom)); }
:root[data-theme="dark"] .foot { background: #0f0b22; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0f0b22; color: var(--ink); } }
.foot__wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: 50px; fill: var(--ink); margin-bottom: -1px; }
:root[data-theme="dark"] .foot__wave { fill: #0f0b22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot__wave { fill: #0f0b22; } }
.foot__in { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; padding: 30px 0 44px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__say { font: 700 var(--t-xl)/1.2 var(--f-display); max-width: 20ch; }
.foot__social { display: inline-flex; align-items: center; gap: 8px; justify-self: start; text-decoration: none; font-weight: 700; padding: 10px 16px; border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .25); transition: background-color .2s; }
.foot__social:hover { background: rgb(255 255 255 / .1); }
.foot__col h2 { font-size: var(--t-lg); margin-bottom: 14px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot__col a, .foot__col button { text-decoration: none; opacity: .75; transition: opacity .2s; font-size: var(--t-sm); }
.foot__col a:hover, .foot__col button:hover { opacity: 1; text-decoration: underline; }
.foot__base { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .14); font-size: var(--t-xs); opacity: .8; }
.foot__credit { display: inline-flex; align-items: center; gap: 6px; }
.foot__credit a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.foot__credit a:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------ gaveta */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgb(23 18 48 / .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.scrim.is-on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 75; width: min(440px, 100%);
  display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-xl) 0 0 var(--r-xl); box-shadow: -30px 0 60px -30px rgb(var(--shadow-c) / .5);
  transform: translateX(105%); visibility: hidden; transition: transform .5s var(--spring), visibility 0s .5s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--spring); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 14px 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 4px 22px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); display: grid; gap: 12px; }
.drawer__foot:empty { display: none; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1.5px solid var(--line); animation: swap .45s var(--spring) both; }
.line-item img { width: 64px; height: 80px; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 8px 14px -8px rgb(var(--shadow-c) / .5); }
.line-item a { font: 700 1.05rem/1.2 var(--f-display); text-decoration: none; }
.line-item a:hover { text-decoration: underline; }
.line-item small { display: block; margin-top: 4px; color: var(--ink-3); }
.line-item.is-leaving { animation: leave .35s var(--ease) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }
.line-item__act { display: grid; gap: 4px; justify-items: end; }
.line-item__act .btn-add { height: 34px; }
.sum { display: flex; justify-content: space-between; align-items: baseline; }
.sum strong { font: 800 1.6rem/1 var(--f-display); }
.sum--save { font-size: var(--t-sm); color: var(--leaf); font-weight: 700; }
.drawer-empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 50px 10px; color: var(--ink-2); }
.drawer-empty img { width: 150px; animation: float 3s ease-in-out infinite; }
.drawer-empty strong { font: 800 var(--t-xl)/1.1 var(--f-display); color: var(--ink); }

/* ------------------------------------------------------------ busca */
.search { position: fixed; inset: 0; z-index: 80; display: grid; align-items: start; justify-items: center; padding: 10vh 16px 16px; background: rgb(23 18 48 / .5); backdrop-filter: blur(6px); }
.search[hidden] { display: none; }
.search__box { width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .5); overflow: hidden; animation: pop .45s var(--spring); }
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.97); } }
.search__field { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 2px solid var(--line); }
.search__field .i { color: var(--ink-3); width: 22px; height: 22px; }
.search__field input { flex: 1; height: 66px; border: 0; outline: 0; background: none; font-size: var(--t-lg); }
.search__results { overflow-y: auto; padding: 8px; }
.search__group { padding: 12px 12px 6px; font: 800 var(--t-sm)/1 var(--f-display); color: var(--ink-3); }
.hit { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 8px 12px; border-radius: var(--r-md); text-decoration: none; }
.hit img { width: 48px; height: 48px; object-fit: cover; object-position: top; border-radius: 10px; background: var(--mist); }
.hit strong { display: block; font-weight: 700; line-height: 1.25; }
.hit span { font-size: var(--t-xs); color: var(--ink-3); }
.hit mark { background: color-mix(in srgb, var(--sun) 45%, transparent); color: inherit; border-radius: 3px; }
.hit[aria-selected="true"], .hit:hover { background: var(--mist); }
.search__empty { padding: 26px 16px; color: var(--ink-2); }
.search__sugs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 12px 14px; }

/* ------------------------------------------------------------ espiar (modal) */
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 16px; background: rgb(23 18 48 / .55); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal__card { position: relative; width: min(980px, 100%); max-height: 92vh; overflow: auto; border-radius: var(--r-xl); background: var(--paper); animation: pop .5s var(--spring); }
.modal__x { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--paper); }
.peek { display: grid; grid-template-columns: 1.15fr 1fr; }
.peek .viewer { border-radius: 0; aspect-ratio: auto; min-height: 520px; height: 100%; }
.peek__info { padding: 44px 34px 34px; display: grid; gap: 16px; align-content: start; }
.peek__info h2 { font-size: var(--t-2xl); }

/* ------------------------------------------------------------ toast */
.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 99; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-weight: 700; font-size: var(--t-sm); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .5); pointer-events: auto; animation: toast .5s var(--spring); }
.toast button { padding: 6px 12px; border-radius: var(--pill); background: rgb(255 255 255 / .16); font-weight: 700; }
:root[data-theme="dark"] .toast button { background: rgb(0 0 0 / .1); }
.toast.is-out { animation: toastout .3s var(--ease) forwards; }
@keyframes toast { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastout { to { opacity: 0; transform: translateY(10px); } }

/* entrada ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--spring); }
.reveal.is-seen { opacity: 1; transform: none; }
.how__path path { stroke-dashoffset: 1; stroke-dasharray: 1; stroke: color-mix(in srgb, var(--grape) 35%, var(--line)); transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.how.is-seen .how__path path { stroke-dashoffset: 0; }

/* ------------------------------------------------------------ responsivo */
@media (max-width: 1080px) {
  .tool--search { min-width: 0; padding: 0; width: 44px; justify-content: center; box-shadow: none; margin: 0; }
  .tool--search .tool__label, .tool--search kbd { display: none; }
  .book-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .fase__panel { grid-template-columns: 1fr; }
  .reads__grid { grid-template-columns: repeat(2, 1fr); }
  .reads__grid .art-card--feature { grid-column: 1 / -1; grid-row: auto; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .nav { display: none; }
  .topbar__in { justify-content: space-between; }
  .brand__word { width: 170px; }
  .tools [data-open-drawer] { display: none; }
  .tabbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 24px;
    background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 16px 40px -18px rgb(var(--shadow-c) / .6), inset 0 0 0 1px var(--line);
  }
  .tab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 0 6px; border-radius: 18px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--ink-3); transition: color .2s, background-color .2s; }
  .tab .i { width: 23px; height: 23px; transition: transform .35s var(--spring); }
  .tab[aria-current="page"] { color: var(--ink); background: var(--mist); }
  .tab[aria-current="page"] .i { transform: translateY(-1px) scale(1.08); }
  .tab .badge { top: 2px; right: calc(50% - 22px); }
  body { padding-bottom: 88px; }
  .toasts { bottom: 100px; }
  .hero__in { grid-template-columns: 1fr; }
  .puzzle { order: -1; width: min(440px, 92%); margin: 0 auto 4px; }
  .hero__title { max-width: 14ch; }
  .ruler__sub { display: none; }
  .ruler__label { font-size: var(--t-md); }
  .how__steps { grid-template-columns: 1fr; }
  .how__path { display: none; }
  .art-grid, .art-grid--3 { grid-template-columns: 1fr 1fr; }
  .art-grid .art-card--wide .art-card__link { grid-template-columns: 1fr; gap: 16px; }
  .post__layout { grid-template-columns: 1fr; }
  .post__aside > *, .post__aside .toc { position: static; }
  .toc { display: none; }
  .readbar { position: fixed !important; left: 50%; translate: -50% 0; bottom: calc(96px + env(safe-area-inset-bottom)); top: auto !important; z-index: 44; margin: 0; padding: 6px; border-radius: var(--pill); background: var(--paper); box-shadow: 0 14px 30px -14px rgb(var(--shadow-c) / .6), inset 0 0 0 1px var(--line); flex-wrap: nowrap; transition: transform .35s var(--spring), opacity .3s; }
  .readbar.is-tucked { transform: translateY(160%); opacity: 0; }
  .readbar__btn span { display: none; }
  .readbar__btn[data-listen] span, .readbar__btn[data-share] span { display: inline; }
  .post__figure img { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
  .product { grid-template-columns: 1fr; }
  .product__gallery { position: static; }
  .buybar {
    position: fixed; left: 10px; right: 10px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 44;
    display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px 8px 10px; border-radius: 20px;
    background: var(--paper); box-shadow: 0 16px 36px -16px rgb(var(--shadow-c) / .6), inset 0 0 0 1px var(--line);
    transform: translateY(160%); transition: transform .45s var(--spring);
  }
  .buybar.is-on { transform: none; }
  .buybar img { width: 40px; height: 54px; object-fit: cover; border-radius: 4px; }
  .buybar strong { display: block; font-size: var(--t-xs); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buybar span { font: 800 var(--t-md)/1 var(--f-display); }
  .buybar div { min-width: 0; }
  .buybar .btn { min-height: 44px; padding: 0 16px; }
  .help { grid-template-columns: 1fr; }
  .help__side { position: static; }
  .peek { grid-template-columns: 1fr; }
  .peek .viewer { min-height: 0; aspect-ratio: 1 / 1; height: auto; }
  .peek__info { padding: 22px; }
  .page-head__books { display: none; }
  .filters { grid-template-columns: 1fr auto; top: 64px; }
  .filters--loja .seg { grid-column: 1 / -1; grid-row: 2; }
  .filters--loja { grid-template-columns: 1fr auto; }
  .rail__btn { display: none; }
}
@media (max-width: 560px) {
  .book-grid, .book-grid--4, .fase__books { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .fase__books > :nth-child(3) { display: none; }
  .book-card__stage { padding: 12px; border-radius: var(--r-md); }
  .book-card__title { font-size: 1.02rem; }
  .book-card__buy { flex-wrap: wrap; }
  .btn-add span { display: none; }
  .btn-add { width: 40px; padding: 0; justify-content: center; }
  .price strong { font-size: 1.15rem; }
  .fav { width: 36px; height: 36px; top: 8px; right: 8px; }
  .art-grid, .art-grid--3, .reads__grid { grid-template-columns: 1fr; }
  .art-card__title { font-size: 1.25rem; }
  .ruler { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ruler__label { font-size: .82rem; }
  .ruler__knob { width: 42px; height: 42px; margin-left: -21px; top: 16px; }
  .ask { padding-left: 14px; }
  .ask .btn { padding: 0 16px; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot__base { flex-direction: column; align-items: flex-start; }
  .product__price strong { font-size: 2.2rem; }
  .sec-head--row .btn { width: 100%; }
  .mini-art { grid-template-columns: 64px 1fr; }
  .mini-art img { width: 64px; height: 64px; }
}

/* ---------- chamada para kit (home, loja e páginas dos materiais) */
.kit-banner { padding: clamp(28px, 5vw, 56px) 0; }
.kit-banner__in { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); color: #fff; overflow: hidden;
  background: radial-gradient(70% 90% at 90% 20%, color-mix(in srgb, var(--pink) 60%, transparent), transparent 70%), linear-gradient(135deg, var(--grape), color-mix(in srgb, var(--grape) 70%, var(--blue)));
  box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--grape) 90%, transparent); }
.kit-banner__eye { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: var(--pill); font-size: var(--t-sm); font-weight: 800; color: #3d2a00; background: var(--sun); }
.kit-banner__eye .i { width: 16px; height: 16px; }
.kit-banner__t { font: 800 var(--t-3xl)/1.02 var(--f-display); margin: 0 0 10px; letter-spacing: -.02em; }
.kit-banner__sub { margin: 0 0 22px; font-size: var(--t-lg); opacity: .92; max-width: 40ch; }
.kit-banner__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.kit-banner__price { display: flex; align-items: baseline; gap: 10px; }
.kit-banner__price s { opacity: .7; }
.kit-banner__price strong { font: 800 2.6rem/1 var(--f-display); }
.kit-banner__cta { --bg: #fff; --fg: var(--grape); }
.kit-banner__cta .i { width: 20px; height: 20px; transition: transform .3s var(--spring); }
.kit-banner__cta:hover .i { transform: translateX(4px); }
.kit-banner__fan { position: relative; display: block; aspect-ratio: 1 / .8; }
.kit-banner__fan img { position: absolute; left: 50%; top: 50%; width: 40%; height: auto; border-radius: 8px; box-shadow: 0 20px 34px -18px rgb(0 0 0 / .6);
  --off: calc(var(--n) - (var(--t) - 1) / 2);
  transform: translate(-50%, -50%) translateX(calc(var(--off) * 30%)) translateY(calc(max(var(--off), -1 * var(--off)) * 5%)) rotate(calc(var(--off) * 7deg));
  z-index: calc(10 - var(--n)); transition: transform .5s var(--spring); }
.kit-banner__fan:hover img { transform: translate(-50%, -50%) translateX(calc(var(--off) * 38%)) translateY(calc(max(var(--off), -1 * var(--off)) * 6% - 4%)) rotate(calc(var(--off) * 9deg)); }
.kit-banner__badge { position: absolute; right: 2%; top: 2%; z-index: 20; display: grid; place-content: center; width: 92px; height: 92px; border-radius: 50%; text-align: center; font-weight: 800; font-size: var(--t-xs); text-transform: uppercase; line-height: 1.1; color: #3d2a00; background: var(--sun); transform: rotate(10deg); }
.kit-banner__badge b { font: 800 2.1rem/1 var(--f-display); }
.kit-banner--loja { padding: 0 0 28px; }
.kit-banner--loja .kit-banner__in { grid-template-columns: 1fr auto; padding: 22px 28px; }
.kit-banner--loja .kit-banner__t { font-size: var(--t-xl); margin-bottom: 4px; }
.kit-banner--loja .kit-banner__sub { font-size: var(--t-sm); margin-bottom: 12px; }
.kit-banner--loja .kit-banner__price strong { font-size: 1.8rem; }
.kit-banner--loja .kit-banner__fan { width: 260px; aspect-ratio: 1 / .62; }
.kit-banner--loja .kit-banner__badge { width: 70px; height: 70px; }
.kit-banner--loja .kit-banner__badge b { font-size: 1.5rem; }
.kit-banner--loja .kit-banner__eye { margin-bottom: 8px; }
.kit-nota { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-md); text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--grape) 9%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--grape) 30%, transparent); transition: transform .3s var(--spring), box-shadow .2s; }
.kit-nota:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--grape); }
.kit-nota__capas { display: flex; }
.kit-nota__capas img { width: 34px; border-radius: 4px; margin-left: -14px; box-shadow: 0 4px 10px -6px rgb(0 0 0 / .6); transform: rotate(calc((var(--n) - 1) * 7deg)); }
.kit-nota__capas img:first-child { margin-left: 0; }
.kit-nota__t small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--grape); }
.kit-nota__t b { display: block; font: 700 var(--t-md)/1.25 var(--f-display); }
.kit-nota__t em { font-style: normal; font-size: var(--t-xs); color: var(--ink-3); }
.kit-nota__go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--grape); }
@media (max-width: 860px) {
  .kit-banner__in { grid-template-columns: 1fr; text-align: left; }
  .kit-banner__fan { order: -1; width: min(100%, 380px); margin: -6px auto 0; aspect-ratio: 1 / .7; }
  .kit-banner__badge { width: 76px; height: 76px; }
  .kit-banner__badge b { font-size: 1.6rem; }
  .kit-banner--loja .kit-banner__in { grid-template-columns: 1fr; }
  .kit-banner--loja .kit-banner__fan { display: none; }
  .kit-banner__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .kit-banner__fan img, .kit-nota { transition: none; } }

/* ---------- telas muito largas (ultrawide): conteúdo mais largo e um pouco maior */
@media (min-width: 1800px) { :root { --wrap: 1400px; } }
@media (min-width: 2300px) { html { font-size: 112.5%; } :root { --wrap: 1560px; } }

/* ---------- celular deitado: pouca altura. Abertura em duas colunas e barra de atalhos fina */
@media (max-width: 960px) and (max-height: 520px) and (orientation: landscape) {
  :root { --top-h: 56px; }
  .hero { padding: 16px 0 32px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 20px; }
  .puzzle { order: 2; width: 100%; margin: 0; }
  .hero__title { font-size: clamp(1.9rem, 5.2vw, 2.6rem); }
  .hero__lede { margin-top: 12px; font-size: var(--t-md); }
  .tabbar { left: 50%; right: auto; translate: -50% 0; width: min(560px, calc(100% - 20px)); bottom: calc(6px + env(safe-area-inset-bottom)); padding: 4px; border-radius: 18px; }
  .tab { grid-auto-flow: column; align-items: center; gap: 6px; padding: 7px 0; border-radius: 14px; }
  .tab .i { width: 19px; height: 19px; }
  .tab .badge { top: -2px; right: calc(50% - 30px); }
  body { padding-bottom: 60px; }
  .toasts { bottom: 66px; }
  .buybar { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .readbar { bottom: calc(62px + env(safe-area-inset-bottom)); }
}
