/* IBAT — Publicações e Materiais */

/* Fontes idênticas às do site original (arquiteturatradicional.org) */
@font-face { font-family: "linux_libertine"; src: url("fonts/LinLibertineZ.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "linux_libertine"; src: url("fonts/LinLibertineZI.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Source_Sans_3"; src: url("fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source_Sans_3"; src: url("fonts/SourceSans3-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source_Sans_3"; src: url("fonts/SourceSans3-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source_Sans_3"; src: url("fonts/SourceSans3-MediumItalic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1c1f2e;
  --ink-2: #262a3d;
  --paper: #f4efe5;
  --paper-2: #ebe3d2;
  --card: #fbf8f2;
  --line: #e0d6c3;
  --text: #2b2924;
  --muted: #6e675b;
  --gold: #a8824a;
  --gold-soft: #d8c39b;
  --terra: #8e3f2c;
  --green: #2e6a4e;
  --green-dark: #24543e;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-book: 0 18px 30px -18px rgba(28,31,46,.55), 0 2px 6px rgba(28,31,46,.10);
  --serif: "linux_libertine", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --wrap: 1220px;
  /* granulado: ruído neutro aplicado em "overlay" — não clareia o fundo */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Granulado reutilizável para blocos escuros */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background-image: var(--grain); background-size: 160px 160px;
  mix-blend-mode: overlay; opacity: .22;
}

/* Rótulo pequeno em itálico (substitui as etiquetas em caixa-alta) */
.kicker { font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; line-height: 1.2; }

/* ── Header ───────────────────────── */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-family: var(--serif); font-size: 21px; line-height: 1.05; }
.brand small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; color: var(--gold-soft); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.75); padding: 6px 0; position: relative; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; cursor: pointer; }

/* ── Buttons ──────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ext { background: var(--ink); color: #fff; }
.btn-ext:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cdbfa5; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #95723f; }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }

/* ── Hero ─────────────────────────── */
.hero-shell { padding: 0 12px; background: linear-gradient(var(--ink) 0 50%, var(--paper) 50% 100%); }
.hero { background: var(--ink); color: #fff; border-radius: 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 96px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 6.4vw, 80px); line-height: 1; margin: 0 0 26px; letter-spacing: -.015em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.74); max-width: 32em; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 0; margin-top: 52px; flex-wrap: wrap; }
.stats > div { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(255,255,255,.12); }
.stats > div:last-child { border: 0; margin: 0; padding: 0; }
.stats b { display: block; font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; color: #fff; }
.stats span { font-size: 14px; color: rgba(255,255,255,.58); }

.fan { position: relative; height: 440px; }
.fan a { position: absolute; width: 230px; border-radius: 8px; overflow: hidden; box-shadow: 0 34px 50px -24px rgba(0,0,0,.75); transition: transform .5s var(--ease); }
.fan img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; }
.fan a:nth-child(1) { left: 0; top: 64px; --r: -8deg; transform: rotate(var(--r)); }
.fan a:nth-child(2) { right: 0; top: 64px; --r: 7deg; transform: rotate(var(--r)); }
.fan a:nth-child(3) { left: 50%; top: 0; transform: translateX(-50%); z-index: 2; width: 260px; }
.fan a:nth-child(1):hover, .fan a:nth-child(2):hover { transform: rotate(var(--r)) translateY(-10px); }
.fan a:nth-child(3):hover { transform: translateX(-50%) translateY(-10px); }

/* ── Toolbar (busca/filtros) ──────── */
.toolbar { padding: 36px 0 0; scroll-margin-top: 80px; }
.toolbar .wrap { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 8px; }
.search { position: relative; flex: 0 1 220px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 16px 10px 42px; border: 0; border-radius: 999px; background: var(--paper); color: var(--text); }
.search input:focus, .select:focus, .chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chips { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; flex: 1 1 100%; min-width: 0; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chip { font: 500 14px/1 var(--sans); padding: 10px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--text); cursor: pointer; transition: background .2s, color .2s; flex: none; white-space: nowrap; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip .n { opacity: .5; margin-left: 5px; font-size: 13px; }
.filters { display: flex; gap: 6px; margin-left: auto; }
.select { font: inherit; font-size: 14px; padding: 10px 32px 10px 14px; border: 0; border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e675b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 13px center; appearance: none; color: var(--text); cursor: pointer; }

/* ── Destaque (lançamento) ────────── */
.featured { padding: 28px 0 0; }
.feature-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: center;
  background: var(--paper-2); border-radius: var(--r-lg); padding: 56px 64px;
}
.feature-card .cover { border-radius: 8px; overflow: hidden; box-shadow: 0 30px 50px -26px rgba(28,31,46,.7); transform: rotate(-2deg); transition: transform .5s var(--ease); }
.feature-card .cover:hover { transform: rotate(0) translateY(-6px); }
.feature-card .cover img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; }
.feature-card h2 { font-family: var(--serif); font-size: 52px; line-height: 1.02; font-weight: 600; margin: 0 0 6px; color: var(--ink); }
.feature-card .sub { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); margin: 0 0 20px; }
.feature-card p { max-width: 36em; margin: 0 0 28px; }
.feature-card .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Seções de categoria (blocos claros/escuros alternados) ── */
.shelf { padding: 28px 0 0; scroll-margin-top: 90px; }
.shelf-inner { border-radius: var(--r-lg); padding: 60px 60px 64px; background: var(--card); border: 1px solid var(--line); }
.shelf.is-dark .shelf-inner { background: var(--ink); border-color: var(--ink); color: rgba(255,255,255,.86); }
.shelf-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: 44px; }
.shelf-head .num { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--gold); margin: 0 0 8px; }
.shelf-head h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.05; margin: 0; color: var(--ink); }
.shelf-head p { margin: 0; color: var(--muted); max-width: 34em; }
.shelf-head .count { display: block; margin-top: 10px; font-size: 14px; color: var(--gold); }
/* Seções simples (todas exceto a Revista Baluarte): sem bloco, só uma linha divisória */
.shelf.is-plain { padding-top: 72px; }
.shelf.is-plain .shelf-inner { background: none; border: 0; border-radius: 0; padding: 0; }
.shelf.is-plain .shelf-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.shelf.is-dark .shelf-head h2 { color: #fff; }
.shelf.is-dark .shelf-head p { color: rgba(255,255,255,.62); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 44px 30px; }

.item { display: flex; flex-direction: column; }
.item .cover-link { display: block; position: relative; background: var(--paper-2); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-book); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.item .cover-link:hover { transform: translateY(-8px); box-shadow: 0 30px 40px -22px rgba(28,31,46,.6), 0 2px 6px rgba(28,31,46,.1); }
.item .cover-link img { aspect-ratio: 3/4.2; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.item .cover-link:hover img { transform: scale(1.035); }
.shelf.is-dark .item .cover-link { box-shadow: 0 22px 34px -18px rgba(0,0,0,.8); }
.shelf.is-featured .item .cover-link { box-shadow: 0 28px 50px -24px rgba(28,31,46,.55), 0 4px 12px rgba(28,31,46,.08); }
.badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { font: 500 12px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: rgba(251,248,242,.94); color: var(--ink); }
.badge.new { background: var(--terra); color: #fff; }
.badge.free { background: rgba(251,248,242,.94); color: var(--green-dark); }
.item .body { padding: 20px 2px 0; display: flex; flex-direction: column; flex: 1; }
.item .type { font-size: 13px; color: var(--gold); margin: 0 0 4px; }
.item h3 { font-family: var(--serif); font-size: 24px; line-height: 1.12; font-weight: 600; margin: 0; color: var(--ink); }
.item h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.item h3 a:hover { background-size: 100% 1px; }
.item .subt { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--muted); margin: 3px 0 12px; line-height: 1.25; }
.meta { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--muted); display: grid; gap: 3px; }
.meta li { display: flex; gap: 8px; align-items: baseline; }
.meta svg { width: 14px; height: 14px; flex: none; position: relative; top: 2px; color: var(--gold); }
.item .actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item .actions .btn { padding: 11px 8px; font-size: 14px; }

.shelf.is-dark .item h3 { color: #fff; }
.shelf.is-dark .item .subt, .shelf.is-dark .meta { color: rgba(255,255,255,.6); }
.shelf.is-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.shelf.is-dark .btn-ghost:hover { border-color: #fff; }
.shelf.is-dark .btn-ext { background: #fff; color: var(--ink); }
.shelf.is-dark .btn-ext:hover { background: var(--paper); }

.soon { margin-top: 44px; padding: 40px 0 0; border-top: 1px solid var(--line); display: flex; gap: 24px; align-items: center; }
.soon .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; flex: none; color: var(--gold); }
.soon .ic svg { width: 24px; height: 24px; }
.soon h3 { font-family: var(--serif); font-size: 30px; margin: 0 0 4px; color: var(--ink); line-height: 1.1; }
.soon p { margin: 0; color: var(--muted); }

.empty { text-align: center; padding: 90px 20px; color: var(--muted); }
.empty h3 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin: 0 0 8px; }

/* ── CTA ──────────────────────────── */
.cta { padding: 28px 0 88px; }
.cta-inner { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-lg); display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; justify-items: center; text-align: center; padding: 72px 56px; }
.cta h2 { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.05; margin: 0 0 14px; }
.cta p { margin: 0 auto; color: rgba(255,255,255,.75); max-width: 34em; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .14; }
.cta-inner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,31,46,.5), rgba(28,31,46,.78)); }

/* ── Footer ───────────────────────── */
.footer { background: #14161f; color: rgba(255,255,255,.66); font-size: 15px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 64px 0 44px; }
.footer h4 { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .brand-f img { height: 72px; width: auto; margin-bottom: 16px; }
.footer .social { display: flex; gap: 10px; margin-top: 18px; }
.footer .social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .2s; }
.footer .social a:hover { background: var(--gold); color: #fff; }
.footer .social svg { width: 17px; height: 17px; }
.footer .intbau { height: 44px; width: auto; margin-top: 20px; opacity: .85; }
.footer .legal { border-top: 1px solid rgba(255,255,255,.07); }
.footer .legal .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 13px; flex-wrap: wrap; }

/* ── Página de detalhe ────────────── */
.crumbs { font-size: 14px; color: var(--muted); padding: 30px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; opacity: .5; }
.product { display: grid; grid-template-columns: 400px 1fr; gap: 72px; padding: 28px 0 56px; align-items: start; }
.product-cover { position: sticky; top: 104px; background: var(--paper-2); border-radius: var(--r-lg); padding: 44px; }
.product-cover .cover { border-radius: 8px; overflow: hidden; box-shadow: 0 34px 50px -26px rgba(28,31,46,.7); background: var(--paper); }
.product-cover .cover img { width: 100%; aspect-ratio: 3/4.2; object-fit: cover; }
.product-cover .note { font-size: 13px; color: var(--muted); text-align: center; margin: 18px 0 0; }
.product-info .kicker { margin-top: 8px; }
.product-info h1 { font-family: var(--serif); font-size: clamp(40px, 5vw, 62px); line-height: 1.02; font-weight: 600; margin: 0 0 8px; color: var(--ink); letter-spacing: -.01em; }
.product-info .subt { font-family: var(--serif); font-style: italic; font-size: 27px; color: var(--muted); margin: 0 0 22px; }
.product-info .resumo { font-size: 19px; margin: 0 0 28px; max-width: 36em; }
.tagrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag { font-size: 14px; padding: 6px 13px; border-radius: 999px; background: var(--paper-2); color: var(--text); }
.tag.green { background: #dcebe2; color: var(--green-dark); }
.tag.new { background: #f3dcd4; color: #7a3322; }
.buy { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 26px 28px; background: var(--ink); color: #fff; border-radius: var(--r-md); margin-bottom: 48px; }
.buy .price { margin-right: auto; }
.buy .price b { display: block; font-family: var(--serif); font-size: 32px; line-height: 1; color: #fff; }
.buy .price small { font-size: 14px; color: rgba(255,255,255,.6); }
.buy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.buy .btn-ghost:hover { border-color: #fff; }
.buy .btn-ext { background: #fff; color: var(--ink); }
.block { margin-bottom: 48px; }
.block h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); margin: 0 0 16px; }
.block p { margin: 0 0 14px; max-width: 40em; }
.spec { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec th, .spec td { text-align: left; padding: 13px 22px; vertical-align: top; }
.spec tr + tr th, .spec tr + tr td { border-top: 1px solid var(--line); }
.spec th { width: 210px; font-weight: 500; color: var(--muted); font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.checks svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }
.toc { list-style: none; counter-reset: toc; padding: 0; margin: 0; display: grid; gap: 10px; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 46px 1fr; padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.toc li::before { content: counter(toc, upper-roman) "."; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); grid-row: span 2; line-height: 1.15; }
.toc .t { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.toc .a { font-size: 14px; color: var(--muted); }
.ext-note { display: flex; gap: 12px; padding: 18px 20px; background: var(--paper-2); border-radius: var(--r-md); font-size: 15px; color: var(--text); }
.ext-note svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.related { padding: 0 0 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; transition: .25s; pointer-events: none; z-index: 99; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Animações ────────────────────── */
/* Títulos: palavras sobem de dentro de uma máscara */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 70ms + var(--base, 0ms)); }
.split.in .w > span { transform: none; }

/* Blocos e cards: surgem suavemente ao rolar */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero: entrada em sequência */
.js .hero .fade { opacity: 0; transform: translateY(16px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
.js .fan a { opacity: 0; animation: cover-in 1.2s var(--ease) forwards; }
.js .fan a:nth-child(1) { animation-delay: .55s; }
.js .fan a:nth-child(2) { animation-delay: .7s; }
.js .fan a:nth-child(3) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes cover-in { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  .split .w > span, .js .reveal, .js .hero .fade, .js .fan a { transform: none !important; opacity: 1 !important; animation: none !important; transition: none !important; translate: none !important; }
}

/* ── Responsivo ───────────────────── */
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 64px 0 72px; }
  .fan { height: 360px; max-width: 520px; width: 100%; margin: 0 auto; }
  .fan a { width: 190px; } .fan a:nth-child(3) { width: 210px; }
  .toolbar .wrap { border-radius: var(--r-md); }
  .filters { margin-left: 0; }
  .chips { flex: 1 1 100%; }
  .product { grid-template-columns: 320px 1fr; gap: 44px; }
  .product-cover { padding: 28px; }
  .cta-inner { padding: 56px 28px; } .cta .actions { justify-content: center; }
  .feature-card { gap: 44px; padding: 44px; }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--ink); flex-direction: column; gap: 0; padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"]::after { display: none; }
  .menu-btn { display: block; }
  .topbar .btn-gold { display: none; }
  .toolbar { position: static; }
  .feature-card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .feature-card .cover { max-width: 220px; }
  .feature-card h2 { font-size: 40px; }
  .shelf-inner { padding: 40px 28px 44px; }
  .shelf-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .product { grid-template-columns: 1fr; }
  .product-cover { position: static; max-width: 360px; margin: 0 auto; width: 100%; }
  .checks { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .cta-inner { padding: 44px 32px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-shell { padding: 0 8px; }
  .hero { border-radius: 0 0 24px 24px; }
  .hero .wrap { gap: 40px; padding: 48px 0 56px; }
  .stats { margin-top: 36px; display: grid; grid-template-columns: repeat(4, 1fr); }
  .stats > div { padding: 0 8px 0 0; margin: 0 8px 0 0; }
  .stats b { font-size: 28px; } .stats span { font-size: 12px; line-height: 1.3; display: block; margin-top: 4px; }
  .fan { height: 280px; } .fan a { width: 140px; } .fan a:nth-child(3) { width: 160px; }
  .toolbar .wrap { border-radius: var(--r-md); padding: 10px; }
  .search { max-width: none; }
  .filters { width: 100%; } .filters .select { flex: 1; min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .chip { flex: none; }
  .feature-card { padding: 26px 22px; border-radius: 24px; }
  .shelf-inner { padding: 32px 18px 36px; border-radius: 24px; }
  .shelf.is-plain { padding-top: 52px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .item h3 { font-size: 20px; } .item .subt { font-size: 16px; }
  .item .actions { grid-template-columns: 1fr; }
  .soon { flex-direction: column; align-items: flex-start; padding: 30px 0 0; }
  .cta-inner { padding: 36px 24px; border-radius: 24px; }
  .spec th { width: 120px; } .spec th, .spec td { padding: 12px 14px; }
  .buy .price { width: 100%; } .buy .btn { flex: 1; }
  .product-cover { border-radius: 24px; }
}

/* Tipografia: sem palavras viúvas (última palavra sozinha na linha) */
h1, h2, h3, h4, .kicker, .subt, .sub, figcaption { text-wrap: balance; }
p, li, dd, blockquote, td { text-wrap: pretty; }
