@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2');
}

/* ---------- Tokens (mesmos valores do documento e do Figma) ---------- */
:root {
  --bg-base: #050505;
  --bg-warm: #0D0A09;
  --surface: #141010;
  --line: #261F16;
  --red-600: #AB1328;
  --red-700: #8F1524;
  --red-text: #E0404F;
  --bone: #E5D3C1;
  --bone-muted: #B8AEA4;
  --gold: #C9A66B;

  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: 20px;
  --section-y: 64px;
  --header-h: 64px;
  --radius-btn: 4px;
  --radius-card: 8px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --section-y: 96px; --header-h: 80px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--bone-muted);
  font: 400 16px/26px var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3, .display { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 100; background: var(--red-600); color: #fff; padding: 12px 20px; border-radius: var(--radius-btn); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1296px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

/* ---------- Tipografia ---------- */
.display {
  font: 600 clamp(3.25rem, 2rem + 4.6vw, 6rem)/.98 var(--serif);
  text-transform: uppercase;
  color: var(--bone);
  letter-spacing: .005em;
}
.display span { display: block; color: var(--red-text); }
h2, .h2 { font: 600 clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem)/1.08 var(--serif); color: var(--bone); }
h3, .h3 { font: 600 clamp(1.5rem, 1.25rem + .8vw, 1.75rem)/1.22 var(--serif); color: var(--bone); }
.lead { font-size: 16px; line-height: 26px; color: var(--bone); max-width: 34em; }
@media (min-width: 1024px) { .lead { font-size: 18px; line-height: 30px; } }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--red-600); flex: none; }
@media (min-width: 1024px) { .eyebrow { font-size: 13px; } }
.tagline { font: 500 12px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
@media (min-width: 1024px) { .tagline { font-size: 13px; } }
.prose p { font-size: 16px; line-height: 26px; }
.prose p + p { margin-top: 16px; }
.prose p.strong { color: var(--bone); font-weight: 500; }
@media (min-width: 1024px) { .prose p { font-size: 17px; line-height: 28px; } }

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-align: center;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); }
.btn--primary:active { background: var(--red-700); transform: translateY(1px); }
.btn--secondary { border-color: var(--gold); color: var(--bone); }
.btn--secondary:hover { background: rgba(201,166,107,.12); }
.btn--secondary:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }
.btn-row .btn { width: 100%; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } .btn-row .btn { width: auto; } }

/* ---------- Cabecalho ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  display: flex; align-items: center;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(5,5,5,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: block; }
.logo img { height: 44px; width: auto; }
@media (min-width: 1024px) { .logo img { height: 56px; } }
.nav { display: none; }
.nav__list { display: flex; gap: 32px; }
.nav a { position: relative; display: block; padding: 8px 0; font: 500 14px/1 var(--sans); color: var(--bone); transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red-600); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__cta { display: none; min-height: 44px; padding: 0 20px; }
.menu-btn { width: 44px; height: 44px; display: grid; place-items: center; color: var(--bone); margin-right: -10px; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Menu mobile em tela cheia */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg-base);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  background-image: radial-gradient(ellipse at 100% 0%, rgba(171,19,40,.28), transparent 55%);
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__top { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.menu__list { margin-top: 24px; flex: 1; }
.menu__list a { display: flex; align-items: center; min-height: 56px; font: 600 32px/1.2 var(--serif); color: var(--bone); border-bottom: 1px solid var(--line); }
.menu .btn { width: 100%; margin-top: 24px; }
body.menu-open { overflow: hidden; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-warm); }
.hero__media { position: relative; height: min(62svh, 540px); min-height: 400px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 12%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 28%, rgba(13,10,9,.6) 70%, var(--bg-warm) 100%); }
.hero__content { position: relative; z-index: 1; margin-top: -88px; padding-bottom: var(--section-y); }
.hero .display { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.shortcuts { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.shortcuts a { display: flex; align-items: center; gap: 12px; min-height: 56px; font: 400 14px/1.35 var(--sans); color: var(--bone-muted); transition: color .2s; }
.shortcuts a:hover { color: var(--bone); }
.shortcuts .icon { color: var(--gold); width: 28px; height: 28px; stroke-width: 1.25; }
@media (min-width: 1024px) {
  .hero { display: flex; align-items: center; min-height: max(760px, 100svh); max-height: 980px; padding-top: var(--header-h); background: var(--bg-base); }
  .hero__media { position: absolute; inset: 0 0 0 auto; width: min(62%, 980px); height: 100%; min-height: 0; }
  .hero__media img { object-position: 50% 18%; }
  .hero__media::after { background: linear-gradient(90deg, var(--bg-base) 0%, rgba(5,5,5,.9) 10%, rgba(5,5,5,0) 55%), linear-gradient(180deg, rgba(5,5,5,.5) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 78%, rgba(5,5,5,.7) 100%); }
  .hero__content { margin-top: 0; padding-block: 64px; max-width: 780px; margin-left: max(0px, calc((100vw - 1296px) / 2)); width: 100%; padding-inline: var(--gutter); }
  .hero__content > * { max-width: 600px; }
  .shortcuts { display: flex; gap: 32px; max-width: none; margin-top: 44px; }
  .shortcuts a { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; width: 128px; font-size: 14px; }
}

/* ---------- Secoes ---------- */
.section { position: relative; border-top: 1px solid var(--line); padding-block: var(--section-y); }

/* Sobre */
.sobre { background: var(--bg-base); overflow: hidden; }
.sobre__grid { display: grid; gap: 28px; grid-template-areas: 'head' 'photo' 'quote' 'body'; }
.sobre__head { grid-area: head; }
@media (min-width: 1024px) { .sobre__head { margin-bottom: 28px; } }
.sobre__body { grid-area: body; }
.sobre__photo { grid-area: photo; position: relative; aspect-ratio: 4 / 5; margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
.sobre__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.sobre__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg-base) 0%, rgba(5,5,5,0) 22%, rgba(5,5,5,0) 70%, var(--bg-base) 100%); }
.sobre__quote { grid-area: quote; }
.sobre__quote p { font: italic 500 24px/1.25 var(--serif); color: var(--bone); }
.sobre__quote p::before { content: '\201C'; color: var(--red-text); margin-right: .05em; }
.sobre__quote p::after { content: '\201D'; color: var(--red-text); }
.sobre__quote::after { content: ''; display: block; width: 28px; height: 2px; background: var(--red-600); margin-top: 18px; }
.sobre__more { display: none; margin-top: 16px; }
.sobre__more.is-open { display: block; }
.more-btn { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 14px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.more-btn .icon { transition: transform .2s; }
.more-btn[aria-expanded="true"] .icon { transform: rotate(90deg); }
.sobre .btn { margin-top: 28px; width: 100%; }
@media (min-width: 768px) {
  .sobre .btn { width: auto; }
}
@media (min-width: 1024px) {
  .sobre__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr) minmax(0, .62fr); grid-template-areas: 'head photo quote' 'body photo quote'; column-gap: 24px; row-gap: 0; align-items: start; }
  .sobre__body { max-width: 520px; }
  .sobre__more { display: block; }
  .more-btn { display: none; }
  .sobre__photo { aspect-ratio: auto; margin: calc(var(--section-y) * -1) 0; align-self: stretch; min-height: 560px; }
  .sobre__photo::after { background: linear-gradient(90deg, var(--bg-base) 0%, rgba(5,5,5,0) 28%, rgba(5,5,5,0) 62%, var(--bg-base) 100%); }
  .sobre__quote { align-self: end; padding-left: 8px; padding-bottom: 56px; }
  .sobre__quote p { font-size: 32px; }
}

/* Livros */
.livros { background: var(--bg-warm); background-image: radial-gradient(ellipse at 0% 100%, rgba(171,19,40,.14), transparent 55%); }
.livros__head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.livros__head p { max-width: 36em; margin-top: 16px; }
.btn-all-mobile { margin-top: 40px; width: 100%; }
.btn-all-desktop { display: none; }
.books { display: grid; gap: 40px; }
.book { display: grid; grid-template-columns: 112px 1fr; grid-template-areas: 'cover text' 'cta cta'; gap: 16px 20px; align-items: start; }
.book__cover { grid-area: cover; width: 100%; height: auto; border-radius: 3px; box-shadow: 0 16px 32px rgba(0,0,0,.6); transition: transform .3s ease, box-shadow .3s ease; }
.book:hover .book__cover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(171,19,40,.28), 0 8px 20px rgba(0,0,0,.6); }
.book__text { grid-area: text; }
.book__text h3 > span { display: block; }
.num { font-family: var(--sans); font-weight: 500; font-size: .82em; }
.book__text p { margin-top: 12px; font-size: 15px; line-height: 24px; }
.book .btn { grid-area: cta; width: 100%; }
@media (min-width: 768px) {
  .books { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .book { grid-template-columns: 132px 1fr; grid-template-areas: 'cover text' 'cover cta'; gap: 0 28px; align-items: center; }
  .book__text { align-self: end; }
  .book .btn { width: auto; justify-self: start; align-self: start; margin-top: 20px; }
}
@media (min-width: 1024px) {
  .livros__head { flex-direction: row; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
  .btn-all-desktop { display: inline-flex; }
  .btn-all-mobile { display: none; }
  .book { grid-template-columns: 168px 1fr; gap: 0 36px; }
  .book__text p { font-size: 16px; line-height: 26px; }
}

/* Redes */
.redes { background: var(--bg-base); overflow: hidden; }
.redes__intro p { max-width: 36em; margin-top: 16px; }
.social-grid { display: grid; gap: 16px; margin-top: 36px; }
.social { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); transition: border-color .2s; }
.social:hover { border-color: var(--gold); }
.social__head { display: flex; align-items: center; gap: 14px; }
.social__icon { width: 40px; height: 40px; flex: none; }
.social__name { font: 600 13px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--bone); }
.social__handle { font: 400 13px/1.2 var(--sans); color: var(--bone-muted); margin-top: 4px; }
.social p { font-size: 14px; line-height: 22px; margin-top: 8px; flex: 1; }
.social .btn { margin-top: 16px; width: 100%; min-height: 44px; padding: 0 12px; font-size: 12px; letter-spacing: .04em; gap: 8px; }
.social .btn::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius-card); }
.redes__photo { display: none; }
@media (min-width: 768px) { .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .redes__grid { max-width: 760px; position: relative; z-index: 1; }
  .redes__photo { display: block; position: absolute; right: 0; top: 0; bottom: 0; width: min(38%, 520px); }
  .redes__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
  .redes__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg-base) 0%, rgba(5,5,5,.3) 40%, rgba(5,5,5,0) 100%), linear-gradient(180deg, var(--bg-base) 0%, rgba(5,5,5,0) 20%, rgba(5,5,5,0) 80%, var(--bg-base) 100%); }
}
@media (min-width: 1280px) { .redes__grid { max-width: 800px; } }

/* Portal */
.portal { background-color: var(--bg-warm); background-image: radial-gradient(ellipse at 88% 50%, rgba(171,19,40,.34), transparent 58%), linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.portal__grid { display: grid; gap: 32px; align-items: center; }
.portal p.lead { margin-top: 16px; color: var(--bone-muted); }
.benefits { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; }
.benefits li { display: flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--sans); color: var(--bone); }
.benefits li::before { content: ''; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.portal .btn { width: 100%; }
@media (min-width: 768px) { .portal__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } .portal .btn { width: auto; } }

/* Rodape */
.footer { border-top: 1px solid var(--line); background: var(--bg-base); padding: 56px 0 0; }
.footer__grid { display: grid; gap: 40px 24px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { margin-top: 16px; font-size: 14px; color: var(--bone); }
.footer h2 { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bone-muted); margin-bottom: 16px; }
.footer__nav a { display: flex; align-items: center; min-height: 36px; font-size: 14px; color: var(--bone); transition: color .2s; }
.footer__nav a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 4px; margin-left: -10px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; color: var(--bone); transition: color .2s; }
.footer__social a:hover { color: var(--gold); }
.footer__social svg { width: 22px; height: 22px; fill: currentColor; }
.footer__contact { grid-column: 1 / -1; }
.footer__contact p { font-size: 14px; color: var(--bone); margin-bottom: 16px; }
.footer__contact .btn { width: 100%; }
.footer__bottom { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 20px; }
.footer__legal { display: flex; flex-direction: column; gap: 4px; }
.footer__legal a { display: flex; align-items: center; min-height: 32px; transition: color .2s; }
.footer__legal a:hover { color: var(--gold); }
@media (min-width: 768px) {
  .footer__contact .btn { width: auto; }
  .footer__legal { flex-direction: row; gap: 24px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__brand, .footer__contact { grid-column: auto; }
}

/* ---------- Cookies ---------- */
.cookie { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 12px 40px rgba(0,0,0,.6); font-size: 13px; line-height: 20px; }
.cookie.is-visible { display: grid; }
.cookie p { color: var(--bone); }
.cookie a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; }
.cookie .btn { min-height: 44px; padding: 0 16px; font-size: 13px; flex: 1; }
@media (min-width: 768px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }

/* ---------- Entrada das secoes ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; transition-delay: var(--d, 0s); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Fundo da secao Livros */
.livros { background-color: var(--bg-warm); background-image: linear-gradient(180deg, var(--bg-warm) 0%, rgba(13,10,9,.55) 14%, rgba(13,10,9,.55) 86%, var(--bg-warm) 100%), linear-gradient(90deg, rgba(5,5,5,.78) 0%, rgba(5,5,5,.45) 55%, rgba(5,5,5,.2) 100%), url('/assets/img/livros-bg.webp'); background-size: cover; background-position: 70% 50%; background-repeat: no-repeat; }
/* Fundo da secao Portal de Aulas */
.portal { background-color: var(--bg-warm); background-image: linear-gradient(180deg, var(--bg-warm) 0%, rgba(13,10,9,0) 18%, rgba(13,10,9,0) 82%, var(--bg-warm) 100%), linear-gradient(90deg, rgba(5,5,5,.9) 0%, rgba(5,5,5,.55) 42%, rgba(5,5,5,.05) 100%), url('/assets/img/portal-bg.webp'); background-size: cover; background-position: 50% 36%; background-repeat: no-repeat; }
/* Fundo da secao Redes */
.redes { background-color: var(--bg-base); background-image: linear-gradient(180deg, var(--bg-base) 0%, rgba(5,5,5,.5) 16%, rgba(5,5,5,.5) 84%, var(--bg-base) 100%), linear-gradient(90deg, rgba(5,5,5,.62) 0%, rgba(5,5,5,.35) 100%), url('/assets/img/redes-bg.webp'); background-size: cover; background-position: 50% 50%; background-repeat: no-repeat; }
.redes__photo { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; }
.redes__photo::after { display: none; }
/* Titulos dos livros em duas linhas e botoes alinhados */
.book__text { container-type: inline-size; min-width: 0; }
.book__text h3 { font-size: clamp(14px, calc(100cqw / var(--r, 12.4)), 1.75rem); }
.book__text h3 > span { white-space: nowrap; }
@media (max-width: 479px) { .book { grid-template-columns: 96px 1fr; column-gap: 16px; } }
@media (max-width: 339px) { .book__text h3 > span { white-space: normal; } }
@media (min-width: 768px) and (max-width: 1023px) { .books { grid-template-columns: 1fr; } }
@media (min-width: 768px) {
  .book { grid-template-rows: 1fr auto; align-items: start; }
  .book__cover { align-self: center; }
  .book__text { align-self: start; }
  .book .btn { align-self: end; margin-top: 20px; }
}
/* ---------- Desktop: largura, alinhamento e telas grandes ---------- */
:root { --cmax: 1296px; }
.container { max-width: var(--cmax); }
@media (min-width: 1024px) {
  .hero__content { max-width: var(--cmax); margin-left: auto; margin-right: auto; }
}
@media (min-width: 1440px) {
  :root { --cmax: 1360px; --gutter: 56px; }
  .hero__content > * { max-width: 640px; }
  .book { grid-template-columns: 184px 1fr; }
  .redes__grid { max-width: 860px; }
}
@media (min-width: 1760px) {
  :root { --cmax: 1800px; --gutter: 80px; --section-y: 112px; }
  .hero__media { width: min(58%, 1200px); }
  .hero__content > * { max-width: 720px; }
  .hero .lead { font-size: 20px; line-height: 32px; }
  .shortcuts { gap: 40px; }
  .shortcuts a { width: 148px; font-size: 15px; }
  .book { grid-template-columns: 208px 1fr; gap: 0 44px; }
  .book__text p { font-size: 17px; line-height: 28px; }
  .books { gap: 40px 72px; }
  .sobre__body { max-width: 600px; }
  .sobre__quote p { font-size: 36px; }
  .redes__grid { max-width: 1000px; }
  .redes__photo { width: min(34%, 680px); }
}

/* ---------- Botao desabilitado (Portal de Aulas ainda sem endereco) ---------- */
.btn.is-disabled { background: var(--surface); border-color: var(--line); color: var(--bone-muted); cursor: not-allowed; }
.btn.is-disabled:hover, .btn.is-disabled:active { background: var(--surface); transform: none; }

/* ---------- Paginas legais ---------- */
.logo__text { white-space: nowrap; }
.header__back { min-height: 44px; padding: 0 14px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
@media (min-width: 640px) { .header__back { padding: 0 20px; font-size: 14px; letter-spacing: .08em; } }
.legal-hero { padding: calc(var(--header-h) + 48px) 0 32px; background-image: radial-gradient(ellipse at 100% 0%, rgba(171,19,40,.22), transparent 55%); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font: 600 clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem)/1.08 var(--serif); color: var(--bone); }
.legal-hero__meta { margin-top: 16px; font-size: 14px; color: var(--bone-muted); }
.legal-wrap { max-width: 800px; margin-inline: auto; padding: 40px var(--gutter) var(--section-y); }
.legal h2 { font: 600 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--serif); color: var(--bone); margin-top: 48px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal p, .legal li { font-size: 16px; line-height: 27px; }
.legal p { margin-top: 16px; }
.legal ul { margin-top: 16px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 8px; padding-left: 4px; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--bone); font-weight: 500; }
.legal a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font: 400 14px/1 var(--sans); padding: 2px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--bone); }
.legal .legal__lead { margin-top: 0; font-size: 18px; line-height: 30px; color: var(--bone); }
.legal .legal__toc { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); }
.legal .legal__toc-title { margin: 0 0 12px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--red-text); }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 1; }
.legal__toc li { margin-top: 6px; font-size: 15px; line-height: 24px; }
@media (min-width: 768px) { .legal__toc ol { columns: 2; column-gap: 32px; } }
.legal__table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 22px; }
.legal__table th, .legal__table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal__table th { color: var(--bone); font-weight: 600; background: var(--surface); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal .legal__cta { margin-top: 8px; }
