/*
  O estilo das páginas de divulgação (index.html e historias.html), com a mesma identidade do app
  (web/src/styles/tokens.css): o céu no fundo, o ouro do Ide na ação, o traço marrom nos contornos,
  Baloo 2 e Nunito (em fontes/).
*/
@font-face { font-family: "Baloo 2"; src: url("fontes/baloo-2-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fontes/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #e6f4fd; --surface: #ffffff; --text: #2b1a10; --muted: #5b4a3f; --line: #2b1a10;
  --gold: #ffc62e; --gold-hover: #ffb800; --gold-soft: #fff3cc; --blue: #1b62c4; --night: #0f1b3d; --cream: #fff6dc;
  --display: "Baloo 2", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.375rem; font-weight: 700; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-weight: 600; }
.band { background: var(--surface); border-block: 2px solid var(--line); }
.band-night { background: var(--night); border-block: 2px solid var(--line); }
section { padding: 52px 0; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.section-head p { max-width: 640px; }
.section-head-row { flex-flow: row wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 0 var(--line); color: var(--text); font-family: var(--display); font-size: 1.125rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.button:hover { background: #f1f8fd; }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--line); }
.button-primary { background: var(--gold); }
.button-primary:hover { background: var(--gold-hover); }
.button-lg { min-height: 58px; padding: 0 26px; border-radius: 16px; font-size: 1.375rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-size: 1.75rem; font-weight: 800; line-height: 1; text-decoration: none; }
.brand img { width: auto; height: 52px; }
.brand b { font-weight: inherit; }
.brand span { color: var(--blue); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-weight: 800; }
.top nav a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.top nav a:not(.button):hover { text-decoration: underline; }
.top nav a.enter { color: var(--blue); }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding: 28px 0 60px; }
.hero-text { display: flex; flex: 1 1 400px; flex-direction: column; gap: 18px; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.02; }
.hero-text > p { font-size: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.note { font-size: 0.9375rem; }
.hero-art { position: relative; flex: 1 1 400px; min-width: 0; padding-bottom: 46px; scroll-margin-top: 16px; }
.hero-frame { position: relative; overflow: hidden; border: 3px solid var(--line); border-radius: 24px; background: var(--night); box-shadow: 0 6px 0 var(--line); }
.hero-frame img, .hero-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-frame video { object-fit: contain; }
.hero-play { position: absolute; top: 44%; left: 50%; display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 3px solid var(--line); border-radius: 50%; background: var(--gold); box-shadow: 0 5px 0 var(--line); color: var(--line); transform: translate(-50%, -50%); cursor: pointer; }
.hero-play:hover { background: var(--gold-hover); }
.hero-play:active { box-shadow: 0 2px 0 var(--line); transform: translate(-50%, calc(-50% + 3px)); }
.hero-ide, .hero-eclesia { position: absolute; bottom: 0; width: auto; pointer-events: none; }
.hero-ide { left: -6px; height: 150px; }
.hero-eclesia { right: 2px; height: 160px; }
/* Com o vídeo tocando, os dois saem da frente dos controles do player. */
.hero-art.playing { padding-bottom: 0; }
.hero-art.playing .hero-ide, .hero-art.playing .hero-eclesia { display: none; }

.grid { display: flex; flex-wrap: wrap; gap: 16px; }
ul.grid, ol.grid { margin: 0; padding: 0; list-style: none; }
.turma > li { display: flex; flex: 1 1 150px; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 2px solid var(--line); border-radius: 18px; text-align: center; }
.turma img { width: auto; height: 130px; }
.turma strong { font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1; }
.turma span { color: var(--muted); font-size: 0.875rem; font-weight: 700; }

.card { display: flex; flex: 1 1 280px; flex-direction: column; gap: 8px; padding: 20px; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); }
.steps .card { box-shadow: 0 4px 0 var(--line); }
.step-number { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 50%; background: var(--gold); font-family: var(--display); font-size: 1.5rem; font-weight: 800; }

.band-night h2 { color: var(--cream); }
.band-night .more { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 800; }
.stories > li { display: flex; flex: 1 1 220px; flex-direction: column; overflow: hidden; border: 2px solid var(--line); border-radius: 18px; background: var(--surface); }
.stories img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-bottom: 2px solid var(--line); object-fit: cover; }
.stories div { padding: 10px 14px 14px; }
.stories strong { display: block; font-family: var(--display); font-size: 1.3125rem; font-weight: 700; line-height: 1.15; }
.stories span { color: var(--muted); font-size: 0.875rem; font-weight: 700; }
.band-night .note { margin-top: 18px; color: #c9d3f2; }

.plan { flex: 1 1 220px; gap: 6px; }
.plan.featured { background: var(--gold-soft); box-shadow: 0 5px 0 var(--line); }
.price { font-family: var(--display); font-size: 2.125rem; font-weight: 800; line-height: 1.1; }
.price small { color: var(--muted); font-family: "Nunito", sans-serif; font-size: 0.9375rem; font-weight: 700; }
.plan p { color: var(--muted); font-size: 0.9375rem; font-weight: 600; }

.cares .card { padding: 0; border: 0; background: transparent; }
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.closing img { width: auto; height: 170px; }
.closing div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.closing h2 { max-width: 16ch; }

/* O catálogo (historias.html) */
.page-head { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 36px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-head p { max-width: 680px; font-size: 1.125rem; }
.catalog { padding: 0 0 44px; }
.catalog h2 { margin-bottom: 16px; }
.catalog .stories > li { flex: 0 1 calc(25% - 12px); min-width: 200px; box-shadow: 0 4px 0 var(--line); }
.season { align-self: flex-start; margin-top: 6px; padding: 1px 10px; border: 2px solid var(--line); border-radius: 999px; background: var(--gold-soft); color: var(--text) !important; font-size: 0.8125rem !important; }
.stories div { display: flex; flex-direction: column; }

footer { border-top: 2px solid var(--line); background: var(--surface); font-size: 0.9375rem; font-weight: 700; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 40px 0; }
  .hero-text > p { font-size: 1.125rem; }
  .hero-ide { height: 116px; }
  .hero-eclesia { height: 124px; }
  .hero-play { width: 68px; height: 68px; }
  .top nav a.anchor { display: none; }
  .catalog .stories > li { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .button-lg { min-height: 54px; padding: 0 20px; font-size: 1.25rem; }
}
