/* Within the Pages Club — estilos
   Mobile primeiro: o estilo padrão vale para 360 px; ajustes em 768 px e 1024 px.
   Identidade visual: cada casa é uma cor, e o site é uma estante de livros. */

/* ---------- Fontes (hospedadas no próprio site; só duas famílias) ---------- */
@font-face {
  font-family: "Gloock";
  src: url("/assets/fonts/gloock.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variáveis ---------- */
:root {
  --olive: #353f20;        /* texto, botões principais, Epilogue, chamadas finais, Nyx */
  --cream: #f3efe5;        /* fundo do site, texto sobre verde-oliva, Common Room */
  --paper: #fbf8f1;        /* fundo dos cards */
  --soft: #5e4e3e;         /* textos de apoio */
  --line: #dcd7c6;         /* bordas e divisórias */
  --terracotta: #a9624f;   /* Venus, Quarta Literária (só texto grande) */
  --almond: #806b58;       /* Atropos e prateleira (só texto grande) */
  --gold: #c4972f;         /* Selene e ornamento ✦ (nunca texto) */
  --sage: #879071;         /* Chamber of Secrets (nunca texto) */
  --beige: #e8e3d5;        /* fundo das linhas de grupo do comparativo */
  --timeline: #cfc9b6;     /* linha da linha do tempo (Sobre) */

  --font-title: "Gloock", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --header-h: 80px;        /* cabeçalho: 80 px no celular, 112 px no desktop */
  --logo-h: 68px;          /* altura do logo no cabeçalho: 68 px no celular, 96 px no desktop */
  --gutter: 16px;
  --space-section: 40px;
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;      /* nunca negrito nem itálico falsos */
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-title);
  font-weight: 400;          /* Gloock tem peso único: nunca negrito */
  line-height: 1.15;
  color: inherit;
}
h1 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.875rem); line-height: 1.12; }
h2 { font-size: clamp(1.875rem, 1.6rem + 1.1vw, 2.5rem); }
h3 { font-size: clamp(1.375rem, 1.3rem + 0.4vw, 1.5rem); line-height: 1.2; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--olive);
  outline-offset: 3px;
}
.cta a:focus-visible, .plan--featured a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--cream);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--olive);
  color: var(--cream);
}
.skip-link:focus { top: 8px; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
.spark { width: 18px; height: 18px; flex: none; color: var(--gold); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.soft { color: var(--soft); }
.hint { margin: 10px 0 0; font-size: 0.875rem; color: var(--soft); }
html:not(.js) .js-only { display: none; }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary:hover { background: #1f2612; }
.btn--outline { border-color: var(--olive); color: var(--olive); background: transparent; }
.btn--light { background: var(--cream); color: var(--olive); }
.btn--compact { min-height: 44px; padding: 0 16px; font-size: 1rem; }

.inline-link { font-weight: 600; text-underline-offset: 4px; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.btn-row { display: grid; gap: 12px; justify-items: center; margin-top: 24px; }
.btn-row--stack .btn { width: 100%; max-width: 320px; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  min-height: 44px;
}
.brand__logo { width: auto; height: var(--logo-h); }
.header-cta { flex: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-bars { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Sem JavaScript: o menu aparece em lista, abaixo do cabeçalho */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .nav { flex-basis: 100%; }

/* Com JavaScript: menu em tela cheia no celular */
.js .nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: none;
  overflow-y: auto;
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--cream);
}
.js .nav.is-open { display: block; }

.nav__list a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 400;
  text-decoration: none;
}
.nav__list a[aria-current="page"]::after {
  content: "";
  width: 14px; height: 14px;
  margin-left: 12px;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* ---------- Seções ---------- */
.section { padding-block: var(--space-section) 0; }
.section--first { padding-top: 24px; }
.section--tight { padding-block: 24px 0; }
.section--last { padding-bottom: 8px; }

/* Alinhamento: títulos, parágrafos curtos (até 3 linhas), grupos de botões e etiquetas ficam
   centralizados; parágrafos centralizados têm no máximo 36 caracteres por linha. Listas com
   ícone, tabela, respostas do FAQ, etapas e o texto dentro dos cards ficam à esquerda. */
.section > .container > h2, .faq-wrap > h2 { text-align: center; }
.section__head { margin-bottom: 20px; text-align: center; }
.section__head h2 { margin-bottom: 6px; }
.section__head p { max-width: 36ch; margin: 0 auto; }
.lead { font-size: 1.0625rem; }
.center-p { max-width: 36ch; margin-inline: auto; text-align: center; }

.prose { text-align: center; }
.prose > p { max-width: 36ch; margin-inline: auto; }
.prose > .btn { margin-top: 4px; }

/* Rótulo de grupo com linha (não é título) */
.group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.group-label::before, .group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group-label:first-child { margin-top: 0; }

/* Ornamento ✦ */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: var(--space-section); }
.ornament span { flex: 1; height: 1px; background: var(--line); }

/* Abertura das páginas internas */
.page-hero { padding: 32px 0 0; }
.page-hero__inner { text-align: center; }
.page-hero__inner > h1 { max-width: 20ch; margin-inline: auto; }
.page-hero__inner > p { max-width: 36ch; margin: 14px auto 0; }
.page-hero .lead { color: var(--soft); font-size: 1.0625rem; }
.page-hero .lead + .lead { margin-top: 8px; }
.page-hero--center { padding-top: 48px; }
.links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 16px 0 0; }

/* Etiquetas na página (Como funciona) */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

/* Chamada final */
.cta { margin-top: var(--space-section); }
.cta__box {
  display: grid;
  gap: 24px;
  align-content: start;
  justify-items: center;
  padding: 32px 24px;
  border-radius: 12px;
  background: var(--olive);
  color: var(--cream);
  text-align: center;
}
.cta__text { display: grid; justify-items: center; }
.cta h2 { max-width: 18ch; margin: 0; }
.cta p { max-width: 36ch; margin: 12px 0 0; }
.cta .btn { width: 100%; max-width: 320px; height: 52px; min-height: 52px; }

/* ---------- Início: abertura ---------- */
.hero { padding: 28px 0 8px; }
.hero__inner { text-align: center; }
.hero h1 { margin: 0 auto; }
.hero .lead { max-width: 36ch; margin: 14px auto 0; color: var(--soft); }
.hero .btn-row { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: stretch; gap: 8px; width: 100%; max-width: 420px; margin: 20px auto 0; }
.hero .btn { padding: 0 8px; }

/* ---------- Início: livros do mês (carrossel no celular) ---------- */
.books {
  display: flex;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.book { flex: 0 0 232px; scroll-snap-align: start; }
.book__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
}
.book__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  background: var(--house);
}
.book__cover { width: 138px; height: 207px; object-fit: cover; border-radius: 3px; }
.book__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; }
.book__tag { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; }
.book__dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--house);
  border: 1px solid var(--edge);
}
.book__cover--soon {                       /* livro ainda não definido: moldura vazia com ícone */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid rgba(53, 63, 32, 0.3);
  color: var(--olive);
}
.book__cover--soon .icon { width: 32px; height: 32px; }
.book__title { margin: 4px 0 0; font-size: 1.375rem; }
.book__author { font-size: 0.9375rem; color: var(--soft); }
.books-wrap .hint { text-align: center; }

/* ---------- Planos ---------- */
.plans { display: grid; gap: 16px; }
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.plan--featured { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.plan__badge {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--olive);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.plan h3 { margin: 0; font-size: 2rem; line-height: 1.1; }
.plan__sub { margin: 6px 0 0; line-height: 1.5; }
.plan:not(.plan--featured) .plan__sub { color: var(--soft); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 0; }
.plan__value { font-family: var(--font-title); font-size: 2.75rem; line-height: 1; }
.plan__list {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.plan--featured .plan__list { border-top-color: rgba(243, 239, 229, 0.25); }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.plan__list .icon { width: 20px; height: 20px; margin-top: 2px; }
.plan--featured .plan__list .icon { color: var(--gold); }
.plan .btn { margin-top: auto; width: 100%; }
.plan__note { margin: 10px 0 0; font-size: 0.875rem; text-align: center; }

/* Avisos */
.notices { display: grid; gap: 12px; margin-top: 20px; }
.notice {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.notice h3 { margin: 0 0 6px; font-size: 1.375rem; }
.notice p { margin: 0; }
.notices-link { margin: 16px 0 0; text-align: center; }

/* Comparativo */
.compare { margin-top: 18px; }
.compare__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.compare__table col:first-child { width: auto; }
.compare__table th, .compare__table td {
  padding: 10px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  font-size: 0.875rem;
  line-height: 1.3;
}
.compare__table thead th {
  position: sticky;                /* nomes dos planos fixos no topo ao rolar */
  top: var(--header-h);
  z-index: 5;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  font-size: 0.9375rem;
  font-weight: 600;
}
.compare__table thead th:first-child { width: auto; text-align: left; font-weight: 400; color: var(--soft); }
.compare__table thead th:nth-child(2), .compare__table thead th:nth-child(3) { width: 84px; }
.compare__table thead th.col-epi { background: var(--olive); color: var(--cream); border-top-right-radius: 9px; }
.compare__table thead th:first-child { border-top-left-radius: 9px; }
.compare__group th {
  padding: 10px 12px;
  border-top: 0;
  background: var(--beige);
  color: var(--olive);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
}
.compare__table tbody th[scope="row"] { text-align: left; font-weight: 400; font-size: 0.9375rem; padding-left: 12px; }
.compare__table .col-epi { background: rgba(53, 63, 32, 0.06); font-weight: 600; }
.compare__table td .icon { width: 20px; height: 20px; margin-inline: auto; }
.compare__table .no { display: block; color: var(--soft); }
.compare__table .no .icon { color: var(--soft); }

/* ---------- Casas literárias ---------- */
/* Cores das casas: usadas pelas lombadas, pelos blocos e pelos cards dos livros */
.house--common  { --house: #f3efe5; --on-house: #353f20; --edge: #353f20; }
.house--chamber { --house: #879071; --on-house: #353f20; --edge: #879071; }
.house--venus   { --house: #a9624f; --on-house: #f3efe5; --edge: #a9624f; }
.house--selene  { --house: #c4972f; --on-house: #353f20; --edge: #c4972f; }
.house--nyx     { --house: #353f20; --on-house: #f3efe5; --edge: #353f20; }
.house--atropos { --house: #806b58; --on-house: #f3efe5; --edge: #806b58; }

/* A estante: 6 lombadas de alturas diferentes sobre uma prateleira marrom */
.section--shelf { padding-top: 28px; }
.shelf__spines { display: flex; align-items: flex-end; gap: 6px; height: 308px; }
.shelf__spines li { flex: 1 1 0; min-width: 0; }
.shelf__spines li:nth-child(1) { height: 240px; }
.shelf__spines li:nth-child(2) { height: 304px; }
.shelf__spines li:nth-child(3) { height: 196px; }
.shelf__spines li:nth-child(4) { height: 248px; }
.shelf__spines li:nth-child(5) { height: 212px; }
.shelf__spines li:nth-child(6) { height: 268px; }
.spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 12px 0 14px;
  background: var(--house);
  border: 1px solid var(--edge);
  border-radius: 4px 4px 2px 2px;
  color: var(--on-house);
  text-decoration: none;
}
.spine__spark { width: 12px; height: 12px; color: currentColor; }
.spine__name {
  writing-mode: vertical-rl;
  font-family: var(--font-title);
  font-size: 1.5rem;       /* texto grande: terracota e amendoado só valem para texto grande */
  line-height: 1;
  white-space: nowrap;
}
.spine__bar { width: 22px; height: 2px; background: currentColor; opacity: 0.6; }
.shelf { margin-inline: auto; }
.shelf__board { height: 8px; border-radius: 2px; background: var(--almond); }
.shelf .hint { text-align: center; }

.section--houses { padding-top: 40px; }
.houses { display: grid; gap: 20px; }

/* Cada casa: bloco da sua cor, com o logo encaixado sem emenda */
.house {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.house__art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--house);
}
.house--common .house__art { border-bottom: 1px solid var(--line); }
.house__logo { width: 260px; height: 260px; }
.house__body { padding: 20px 16px 8px; }
.house__access {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--olive);
  border-radius: 999px;
  font-size: 0.875rem;
  line-height: 1.4;
}
.house__body h2 { margin: 12px 0 0; font-size: 1.875rem; }
.house__genre { margin: 4px 0 0; font-weight: 600; color: var(--soft); }
.house__body p { margin-top: 10px; margin-bottom: 0; }
.house__body .house__genre { margin-top: 4px; }
.house__body .house__access { margin-top: 0; }
.house__reads, .house__myth { color: var(--soft); }
.house__myth { font-size: 0.9375rem; }
.house__body { padding-bottom: 24px; }

/* ---------- Como funciona ---------- */
.reads { display: grid; gap: 8px; margin-top: 20px; }
.feature {
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature h3 { margin-bottom: 6px; }
.feature > p:not(.when) { margin: 0; }
.when { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--soft); }
.steps { margin: 18px 0 2px; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px; top: 36px; bottom: 4px;
  width: 2px;
  background: var(--line);
}
.steps__n {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 600;
}
.steps__title { margin: 0; padding-top: 4px; font-weight: 600; }
.steps__text { margin: 2px 0 0; font-size: 0.9375rem; color: var(--soft); line-height: 1.5; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.who > div { padding: 12px; border-radius: 8px; background: var(--cream); }
.who p { margin: 2px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--soft); }
.who .who__title { margin: 0; font-weight: 600; color: var(--olive); }

.topics li { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.topics li:last-child { border-bottom: 0; }
.topic__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.topic__icon .icon { width: 22px; height: 22px; }
.topic h3 { margin: 0; font-size: 1.375rem; }
.topic .when { margin: 4px 0 0; }
.topic p:last-child { margin: 6px 0 0; }

/* Calendário da semana */
.week { display: grid; gap: 20px; }
.week__cal .hint { margin-top: 0; text-align: center; }
.calendar { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1fr 1.3fr 1fr 1fr; gap: 4px; margin-top: 12px; }
html:not(.js) .calendar { display: none; }
.day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid var(--olive);
  border-radius: 8px;
  background: var(--paper);
  color: var(--olive);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.day-btn__spark { width: 10px; height: 10px; }
.day-btn.is-on { background: var(--olive); color: var(--cream); }
.day-btn:disabled { border-color: var(--line); background: transparent; color: var(--olive); opacity: 0.45; cursor: default; }

.js .day:not(.is-active) { display: none; }
html:not(.js) .day + .day { margin-top: 28px; }
.day__title { margin: 0; font-family: var(--font-title); font-size: 1.375rem; line-height: 1.2; text-align: center; }
.day > .soft { max-width: 36ch; margin: 4px auto 0; font-size: 0.9375rem; text-align: center; }
.acts { display: grid; gap: 12px; margin-top: 12px; }

.act {
  --c: var(--line);
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--c);
  border-radius: 10px;
}
.act--olive { --c: var(--olive); }
.act--terracotta { --c: var(--terracotta); }
.act--sage { --c: var(--sage); }
.act--almond { --c: var(--almond); }
.act--gold { --c: var(--gold); }
.act h3 { margin: 0; font-size: 1.375rem; }
.act p { margin: 8px 0 0; }
.act .act__tag { margin: 0 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--soft); }
.act h3 + .act__tag { margin: 2px 0 0; }
.act--solid { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.act--solid .act__tag { color: var(--cream); }
.month { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
}

/* ---------- Perguntas frequentes ---------- */
.faq-wrap > * { max-width: 52rem; margin-inline: auto; }
.faq-wrap h2 { margin-bottom: 16px; }
.faq {
  margin-bottom: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-right: 4px;
  border-right: 1.8px solid var(--olive);
  border-bottom: 1.8px solid var(--olive);
  transform: translateY(-2px) rotate(45deg);
}
.faq[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__q { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.faq__a { padding: 0 16px 8px; }
.faq__a p { margin: 0 0 8px; }

/* ---------- Contato ---------- */
.channels { display: grid; gap: 12px; margin-top: 8px; }
.channel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}
.channel__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
}
.channel__icon .icon { width: 26px; height: 26px; }
.channel__text { display: grid; min-width: 0; }
.channel__label { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.channel__value { color: var(--soft); overflow-wrap: anywhere; }

/* ---------- Sobre ---------- */
/* Parágrafos longos ficam à esquerda, numa coluna centralizada de até 34em */
.longtext {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34em;
  margin: 28px auto 0;
  line-height: 1.65;
}
.longtext p { margin: 0; }
.longtext .longtext__lead { font-size: 1.125rem; line-height: 1.55; }

.giulia { display: flex; flex-direction: column; align-items: center; margin: 24px 0 0; }
.giulia__img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 120px 120px 10px 10px;   /* arco */
  background: var(--beige);
}
.giulia figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--soft); text-align: center; }

.history { margin-top: 48px; padding: 44px 0; background: var(--olive); color: var(--cream); }
.history h2 { max-width: 16ch; margin: 0 auto; text-align: center; }
.history .longtext { margin-top: 24px; }
.history__rule { width: 48px; height: 1px; margin: 28px auto 0; background: rgba(243, 239, 229, 0.4); }
.history__close { margin: 20px 0 0; text-align: center; font-family: var(--font-title); font-size: 1.875rem; line-height: 1.15; }

.timeline { max-width: 34em; margin: 28px auto 0; }
.timeline > li { position: relative; padding: 0 0 28px 32px; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {                     /* marcador verde-oliva (o último é dourado) */
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--olive);
}
.timeline > li:last-child::before { background: var(--gold); }
.timeline > li:not(:last-child)::after {     /* linha que liga os marcadores */
  content: "";
  position: absolute;
  left: 6px; top: 26px; bottom: 0;
  width: 2px;
  background: var(--timeline);
}
.timeline h3 { margin: 0; font-size: 1.3125rem; }
.timeline p { margin: 6px 0 0; line-height: 1.65; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.stats--single { grid-template-columns: auto; justify-content: start; }
.stat {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat__n { font-family: var(--font-title); font-size: 1.875rem; line-height: 1; }
.stat__l { margin-top: 4px; font-size: 0.875rem; color: var(--soft); }

/* Mini estante das 6 casas */
.mini-shelf { margin-top: 14px; }
.mini-shelf__spines { display: flex; align-items: flex-end; gap: 5px; height: 164px; }
.mini-shelf__spines li { flex: 1 1 0; min-width: 0; }
.mini-shelf__spines li:nth-child(1) { height: 148px; }
.mini-shelf__spines li:nth-child(2) { height: 164px; }
.mini-shelf__spines li:nth-child(3) { height: 132px; }
.mini-shelf__spines li:nth-child(4) { height: 152px; }
.mini-shelf__spines li:nth-child(5) { height: 138px; }
.mini-shelf__spines li:nth-child(6) { height: 158px; }
.mini-spine {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: var(--house);
  border: 1px solid var(--edge);
  border-radius: 4px 4px 2px 2px;
  color: var(--on-house);
  text-decoration: none;
}
.mini-spine span {
  writing-mode: vertical-rl;
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}
.mini-shelf__board { height: 6px; border-radius: 2px; background: var(--almond); }

.closing { max-width: 18ch; margin: 36px auto 0; text-align: center; font-family: var(--font-title); font-size: 1.75rem; line-height: 1.18; }

/* ---------- Página de obrigado ---------- */
/* Topo simplificado: só o logo, sem botão "Assinar", sem menu e sem linha embaixo */
.site-header--simple { position: static; border-bottom: 0; }
.site-header--simple .header-inner { display: flex; justify-content: center; min-height: 0; padding-block: 20px 0; }
.site-header--simple .brand { flex: none; }
.site-header--simple .brand__logo { height: 68px; }
.thanks__inner { max-width: calc(560px + var(--gutter) * 2); padding-top: 28px; text-align: center; }
.thanks__inner h1 { margin: 0 auto; }
.thanks__text { max-width: 36ch; margin: 14px auto 0; color: var(--soft); font-size: 1.0625rem; }
.thanks .cta { margin-top: 28px; }
.thanks__phrase { margin: 0; font-family: var(--font-title); font-size: 1.5rem; line-height: 1.25; }
.thanks .cta .btn { width: 100%; max-width: none; min-width: 0; height: 52px; min-height: 52px; gap: 10px; }

/* ---------- Rodapé (compacto, tudo centralizado) ---------- */
.site-footer {
  margin-top: 40px;
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { width: auto; height: 72px; }
.footer-tagline { max-width: 28ch; margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--soft); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 320px;
  margin-top: 4px;
}
.footer-links li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.footer-docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.site-footer li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  text-underline-offset: 4px;
}
.site-footer li button {                   /* "Preferências de cookies": parece um link dos documentos */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-docs li a, .footer-docs li button { font-size: 0.9375rem; }
.site-footer li a[aria-current="page"] { font-weight: 600; text-decoration: none; }
.footer-copy { margin: 4px 0 0; font-size: 0.875rem; color: var(--soft); }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed;
  right: 0; bottom: 0; left: 0;
  z-index: 55;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.9375rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: grid; gap: 12px; max-width: 1080px; margin-inline: auto; }
.cookie-banner__text { margin: 0; line-height: 1.5; }
.cookie-banner .inline-link { color: var(--olive); }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner .btn { width: 100%; min-height: 44px; height: 44px; padding: 0 12px; font-size: 1rem; }
body.cookie-open { padding-bottom: var(--cookie-h, 0px); }   /* o conteúdo não fica atrás do aviso */
.cookie-open .wa-float { bottom: calc(var(--cookie-h, 0px) + 16px); }   /* o WhatsApp sobe junto */

/* ---------- Botão flutuante do WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1a8f45;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.wa-float .icon { width: 30px; height: 30px; }

/* =========================================================
   Tablet — a partir de 768 px
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 24px; --space-section: 56px; }

  .btn-row { grid-auto-flow: column; justify-content: center; }
  .btn-row--stack .btn { width: auto; max-width: none; }

  .cookie-banner__inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .cookie-banner__actions { grid-template-columns: repeat(2, 128px); }

  .page-hero { padding-top: 48px; }

  .cta__box { gap: 28px; padding: 48px 32px; }
  .cta .btn { width: auto; min-width: 240px; }

  .hero { padding-top: 40px; }
  .hero .btn-row { grid-template-columns: none; width: auto; max-width: none; gap: 12px; }
  .hero .btn { padding: 0 28px; }

  .books { gap: 16px; }
  .book { flex-basis: 250px; }

  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__table th, .compare__table td { padding: 14px 16px; font-size: 0.9375rem; }
  .compare__table tbody th[scope="row"] { font-size: 1rem; padding-left: 16px; }
  .compare__table thead th:nth-child(2), .compare__table thead th:nth-child(3) { width: 160px; }

  .shelf__spines { height: 340px; gap: 10px; }
  .shelf__spines li:nth-child(1) { height: 250px; }
  .shelf__spines li:nth-child(2) { height: 336px; }
  .shelf__spines li:nth-child(3) { height: 220px; }
  .shelf__spines li:nth-child(4) { height: 280px; }
  .shelf__spines li:nth-child(5) { height: 236px; }
  .shelf__spines li:nth-child(6) { height: 304px; }
  .shelf { max-width: 720px; }

  .notices { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .houses--community, .houses--genre { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }

  .reads { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .topics li:first-child { padding-top: 0; }
  .week { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; }
  .calendar { margin-top: 0; }
  .month { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .channel { flex-direction: column; align-items: flex-start; }

  .site-footer { margin-top: 56px; }
}

/* =========================================================
   Desktop — a partir de 1024 px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 112px; --logo-h: 96px; --space-section: 72px; }

  /* Menu centralizado: logo à esquerda, links no centro, "Assinar" à direita */
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .menu-toggle { display: none; }

  .js .nav, .nav {
    position: static;
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    padding: 0;
    overflow: visible;
    background: none;
  }
  .header-cta { grid-column: 3; grid-row: 1; justify-self: end; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list a {
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
  }
  .nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .nav__list a[aria-current="page"]::after { display: none; }

  .btn--compact { padding: 0 22px; }

  .hero { padding: 56px 0 16px; }
  .hero .lead { font-size: 1.1875rem; margin-top: 20px; }
  .hero .btn-row { margin-top: 28px; }
  .btn { min-height: 54px; }
  .btn--compact { min-height: 44px; }
  .cta .btn { height: 54px; min-height: 54px; }
  .site-header--simple .brand__logo { height: 80px; }

  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; max-width: none; gap: 0 8px; }
  .footer-links li a { padding: 0 12px; }
  .footer-docs li a, .footer-docs li button { padding: 0 8px; }

  .books { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-inline: 0; padding: 4px 0 0; overflow: visible; }
  .book { flex: none; }
  .book__art { height: auto; aspect-ratio: 4 / 5; }
  .book__cover { width: 58%; height: auto; aspect-ratio: 2 / 3; }
  .books-wrap .hint { display: none; }

  .houses--genre { gap: 24px; }
  .house__art { padding: 0; }
  .house__logo { width: 300px; height: 300px; }
  .house__body { padding: 24px 24px 28px; }

}
