/* ============================================================
   EDITORA UNIÃO — Stylesheet (redesign editorial premium)
   Paleta: Verde Códice
   Tipografia: Lora (serifa) + Source Sans 3 (sans)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Paleta Verde Códice */
  --c-primary:        #1F3D2B;
  --c-primary-dark:   #15291D;
  --c-secondary:      #3D6B4F;
  --c-text:           #3A2E25;
  --c-text-soft:      #6B5A4B;
  --c-bg:             #F1ECE0;
  --c-bg-alt:         #FAF7EE;
  --c-bg-dark:        #1F3D2B;
  --c-accent:         #B5663C;
  --c-accent-dark:    #8E4F2D;
  --c-border:         #D6CDB8;
  --c-border-soft:    #E5DDC9;

  /* Tipografia */
  --ff-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --ff-sans:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale (clamp fluido) */
  --fs-hero:    clamp(44px, 7vw, 88px);
  --fs-h2:      clamp(30px, 4vw, 52px);
  --fs-h3:      clamp(20px, 1.6vw, 24px);
  --fs-lead:    clamp(17px, 1.4vw, 20px);
  --fs-body:    17px;
  --fs-quote:   clamp(26px, 3.4vw, 44px);

  /* Espaçamento */
  --container-max: 1280px;
  --container-narrow: 820px;
  --gutter: 24px;
  --section-pad: clamp(80px, 12vh, 144px);

  /* Radius */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Sombras */
  --shadow-soft:  0 2px 8px rgba(31,61,43,0.06);
  --shadow-card:  0 8px 24px rgba(31,61,43,0.10);
  --shadow-hover: 0 14px 40px rgba(31,61,43,0.18);

  --tr: 200ms ease;
  --tr-slow: 400ms cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}
html, body { height: auto; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

/* Paper grain overlay (subtle noise via inline SVG) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.18  0 0 0 0 0.14  0 0 0 0.6 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  background-size: 160px 160px;
}

img, svg { display: block; max-width: 100%; }
ul, ol { padding-left: 0; margin: 0; list-style: none; }

a {
  color: var(--c-secondary);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "onum" 1;
}

em, i {
  font-style: italic;
  color: var(--c-primary);
}

code {
  font-family: 'Source Code Pro', 'Consolas', monospace;
  font-size: 0.92em;
  background: rgba(181,102,60,0.1);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--c-accent-dark);
}

::selection {
  background: var(--c-accent);
  color: var(--c-bg);
}

/* ---------- SMOOTH SCROLL WRAPPER (ScrollSmoother) ---------- */
#smooth-wrapper { position: static; }
#smooth-content { width: 100%; }
/* Só aplica fixed quando ScrollSmoother realmente inicializa */
body.has-smoother #smooth-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-pad) 0; }
.section--alt { background-color: var(--c-bg-alt); }
.section__head {
  text-align: center;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section__eyebrow {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 16px;
}
.section__title {
  font-size: var(--fs-h2);
  margin: 0 0 20px;
  max-width: 22ch;
}
.section__head .section__title {
  margin-left: auto;
  margin-right: auto;
}
.section__lead {
  font-size: var(--fs-lead);
  color: var(--c-text-soft);
  max-width: 64ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Drop cap */
.has-dropcap::first-letter {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 4.6em;
  float: left;
  line-height: 0.86;
  padding: 4px 14px 0 0;
  color: var(--c-accent);
}

/* Divisor ornamental */
.flourish {
  display: block;
  width: min(320px, 60%);
  margin: 0 auto;
  padding: 32px 0;
  color: var(--c-accent);
  opacity: 0.85;
}
.flourish svg { width: 100%; height: 24px; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor--dot {
  width: 6px;
  height: 6px;
  background: #B5663C;
  border-radius: 50%;
}
.cursor--ring {
  width: 36px;
  height: 36px;
  color: #B5663C;
}
.cursor__svg { width: 100%; height: 100%; }
body.has-cursor,
body.has-cursor * { cursor: none; }
body.has-cursor a,
body.has-cursor button,
body.has-cursor input,
body.has-cursor [data-cursor] { cursor: none; }

body.no-cursor .cursor { display: none; }

/* ============================================================
   OPENING — "Abrindo o livro"
   ============================================================ */
.opening {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
}
.opening__book {
  width: 80px;
  height: auto;
}
.opening__line {
  width: 60vw;
  max-width: 720px;
  height: 1px;
  background: var(--c-accent);
  transform-origin: 0 50%;
}
body.is-loading {
  overflow: hidden;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--tr);
  white-space: nowrap;
  will-change: transform;
}
.btn--primary {
  background-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31,61,43,0.18);
}
.btn--primary:hover {
  background-color: var(--c-primary-dark);
  color: #fff;
  box-shadow: 0 10px 28px rgba(31,61,43,0.28);
}
.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  padding: 15px 8px;
}
.btn--ghost:hover { color: var(--c-accent); }
.btn--outline-light {
  background: transparent;
  color: var(--c-bg);
  border-color: rgba(241,236,224,0.4);
}
.btn--outline-light:hover {
  background-color: var(--c-bg);
  color: var(--c-primary);
  border-color: var(--c-bg);
}
.btn--outline-dark {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline-dark:hover {
  background-color: var(--c-primary);
  color: #fff;
}
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 36px; font-size: 17px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background-color: var(--c-primary);
  color: var(--c-bg);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding var(--tr-slow), background-color var(--tr-slow), box-shadow var(--tr-slow);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
  transition: padding var(--tr-slow);
}
.header--shrunk { box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.header--shrunk .header__inner { padding-top: 14px; padding-bottom: 14px; }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 16px;
}
.nav a {
  color: var(--c-bg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}
.nav a:hover { color: var(--c-accent); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform var(--tr);
  transform-origin: left;
}
.nav a:hover::after { transform: scaleX(1); }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.logo__mark {
  display: inline-block;
  width: 32px;
  height: 48px;
  flex-shrink: 0;
}
.logo__svg { width: 100%; height: 100%; overflow: visible; }
.logo__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo__name {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--c-bg);
}
.logo__dot {
  color: var(--c-accent);
  font-weight: 700;
  padding: 0 2px;
}
.logo__tagline {
  font-family: var(--ff-serif);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(241,236,224,0.7);
  margin-top: 4px;
}
.logo--footer .logo__name { color: var(--c-bg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--c-bg);
  padding: clamp(72px, 12vh, 120px) 0 clamp(80px, 12vh, 120px);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 20px;
}
.hero__title {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--c-primary);
  margin: 0 0 28px;
}
.hero__subtitle {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-text-soft);
  margin: 0 0 36px;
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--c-border);
}
.hero__trust li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--c-text-soft);
  font-weight: 500;
}
.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 14px;
  height: 6px;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background-color: var(--c-primary);
  color: var(--c-bg);
  padding: 32px 0;
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--c-bg);
}
.trust-item__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--c-accent);
}
.trust-item strong {
  display: block;
  font-family: var(--ff-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-bg);
}
.trust-item span {
  display: block;
  font-size: 13px;
  color: rgba(241,236,224,0.7);
  line-height: 1.4;
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  padding: clamp(96px, 14vh, 180px) 0;
  background-color: #2a3727;
  color: var(--c-bg);
  overflow: hidden;
  isolation: isolate;
}
.manifesto .img-ph--manifesto-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  z-index: -1;
  opacity: 0.18;
  filter: blur(1px);
}
.manifesto::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(21,41,29,0.6) 80%);
  pointer-events: none;
  z-index: -1;
}
.manifesto__inner {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.manifesto .section__eyebrow {
  color: var(--c-accent);
}
.manifesto__quote {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: var(--fs-quote);
  line-height: 1.25;
  color: var(--c-bg);
  margin: 24px 0 40px;
  letter-spacing: -0.01em;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1;
}
.manifesto__quote em {
  color: var(--c-accent);
  font-style: italic;
  font-weight: 500;
}
.manifesto__open,
.manifesto__close {
  color: var(--c-accent);
  font-weight: 600;
  font-style: normal;
}
.manifesto__sign {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(241,236,224,0.7);
}
.manifesto__signature {
  width: 200px;
  height: 36px;
  color: var(--c-bg);
}
.manifesto__sign-text {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ============================================================
   MISSÃO
   ============================================================ */
.mission {
  background-color: var(--c-bg);
  padding: clamp(96px, 14vh, 144px) 0;
}
.mission__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.mission__title {
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 18ch;
}
.mission__text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
  margin: 0 0 22px;
}
.mission__quote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.45;
  color: var(--c-primary);
  border-left: 3px solid var(--c-accent);
  padding: 6px 0 6px 24px;
  margin: 40px 0 0;
}

/* ============================================================
   BASTIDORES
   ============================================================ */
.bastidores {
  background-color: var(--c-bg);
}
.bastidores__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.bastidor-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bastidor-card .img-ph {
  aspect-ratio: 4/5;
  min-height: 0;
  border-radius: var(--r-md);
}
.bastidor-card h3 {
  font-size: 24px;
  margin: 0;
}
.bastidor-card p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-text-soft);
  margin: 0;
}

/* ============================================================
   ÁREAS
   ============================================================ */
.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.area-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  transition: border-color var(--tr-slow), box-shadow var(--tr-slow);
  overflow: hidden;
}
.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181,102,60,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--tr-slow);
  pointer-events: none;
}
.area-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-hover);
}
.area-card:hover::before { opacity: 1; }
.area-card .img-ph--icon {
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  aspect-ratio: 1/1;
  min-height: 0;
}
.area-card h3 {
  font-size: 22px;
  margin: 16px 0 12px;
}
.area-card p {
  font-size: 15px;
  color: var(--c-text-soft);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   PROCESSO EDITORIAL (pinned)
   ============================================================ */
.process {
  background-color: var(--c-bg-alt);
  position: relative;
}
.process__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 8vh, 96px) 0;
  position: relative;
}
.process__head { margin-bottom: 48px; }

.process__progress {
  position: absolute;
  top: 50%;
  left: max(24px, calc((100vw - var(--container-max)) / 2));
  height: 240px;
  width: 4px;
  transform: translateY(-50%);
  pointer-events: none;
}
.process__progress svg { width: 100%; height: 100%; }

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.process__step {
  position: relative;
  padding-top: 16px;
}
.process__num {
  font-family: var(--ff-serif);
  font-size: 64px;
  font-weight: 600;
  color: var(--c-accent);
  opacity: 0.45;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.process__step h3 {
  font-size: 22px;
  margin: 0 0 12px;
}
.process__step p {
  margin: 0;
  color: var(--c-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   COVERS (Linguagem Visual da Casa)
   ============================================================ */
.covers-section { background-color: var(--c-bg); }
.covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  perspective: 1200px;
}
.cover-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform-style: preserve-3d;
  will-change: transform;
}
.cover-card .img-ph--cover {
  aspect-ratio: 2/3;
  min-height: 0;
  border-radius: var(--r-sm);
  background: linear-gradient(155deg, var(--tone-a, var(--c-primary)) 0%, var(--tone-b, var(--c-accent)) 100%);
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 18px 40px rgba(31,61,43,0.18), inset 0 0 60px rgba(0,0,0,0.18);
  position: relative;
  color: rgba(255,255,255,0.55);
}
.cover-card .img-ph--cover::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 1px;
  background: rgba(255,255,255,0.35);
}
.cover-card .img-ph__name,
.cover-card .img-ph__dim {
  color: rgba(255,255,255,0.55);
}
.cover-card__label {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-style: italic;
  font-size: 14px;
  color: var(--c-text-soft);
  margin: 0;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ============================================================
   ONDE ENCONTRAR
   ============================================================ */
.catalog-info {
  background-color: var(--c-primary);
  color: var(--c-bg);
  padding: clamp(80px, 12vh, 120px) 0;
}
.catalog-info__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.catalog-info .section__eyebrow { color: var(--c-accent); }
.catalog-info__title {
  font-size: var(--fs-h2);
  color: var(--c-bg);
  margin: 0 0 24px;
  line-height: 1.15;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.catalog-info__text {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(241,236,224,0.85);
  margin: 0 0 20px;
}
.catalog-info .btn--outline-dark {
  color: var(--c-bg);
  border-color: var(--c-bg);
  margin-top: 16px;
}
.catalog-info .btn--outline-dark:hover {
  background: var(--c-bg);
  color: var(--c-primary);
}
.catalog-info__note {
  margin-top: 44px;
  padding: 18px 24px;
  background: rgba(0,0,0,0.18);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(241,236,224,0.85);
  text-align: left;
}
.catalog-info__note code {
  background: rgba(241,236,224,0.12);
  color: #fff;
}

/* ============================================================
   PARA AUTORES
   ============================================================ */
.for-authors {
  background-color: var(--c-bg-alt);
  padding: clamp(80px, 12vh, 120px) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.for-authors__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.for-authors__title {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 20px;
  line-height: 1.15;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}
.for-authors__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  margin: 0 0 18px;
}
.for-authors__text--small {
  font-size: 14px;
  color: var(--c-text-soft);
  margin-bottom: 32px;
}

/* ============================================================
   NEWSLETTER (selo de cera)
   ============================================================ */
.newsletter {
  background-color: var(--c-bg);
  padding: clamp(80px, 12vh, 120px) 0;
  position: relative;
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: center;
  max-width: 980px;
}
.newsletter__media {
  position: relative;
  aspect-ratio: 1/1;
}
.newsletter__media .img-ph {
  aspect-ratio: 1/1;
  min-height: 0;
  border-radius: var(--r-md);
  width: 100%;
  height: 100%;
}
.newsletter__seal {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 14px rgba(142,79,45,0.45));
  will-change: transform, opacity;
}
.newsletter__copy { text-align: left; }
.newsletter__title {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 0 0 16px;
  line-height: 1.2;
  max-width: 18ch;
}
.newsletter__text {
  font-size: 17px;
  color: var(--c-text-soft);
  margin: 0 0 28px;
}
.newsletter__form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 0 16px;
}
.newsletter__form input {
  flex: 1;
  padding: 14px 18px;
  font-family: var(--ff-sans);
  font-size: 15px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: border-color var(--tr);
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--c-primary);
}
.newsletter__legal {
  font-size: 12px;
  color: var(--c-text-soft);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}
.newsletter__legal a { text-decoration: underline; }

/* Confete físico (gerado dinamicamente pelo JS) */
.confetti {
  position: fixed;
  width: 8px;
  height: 12px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-border);
  pointer-events: none;
  z-index: 9998;
  will-change: transform, opacity;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background-color: var(--c-bg-alt); }
.faq { border-top: 1px solid var(--c-border); }
.faq__item {
  border-bottom: 1px solid var(--c-border);
  padding: 24px 0;
}
.faq__item summary {
  cursor: pointer;
  font-family: var(--ff-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--tr);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--ff-sans);
  font-size: 28px;
  font-weight: 300;
  color: var(--c-accent);
  transition: transform var(--tr);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--c-accent); }
.faq__item p {
  margin: 16px 0 0;
  color: var(--c-text-soft);
  font-size: 16px;
  line-height: 1.7;
  padding-right: 44px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--c-primary-dark);
  color: rgba(241,236,224,0.75);
  padding: 80px 0 0;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__block h4 {
  color: var(--c-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--ff-sans);
  margin: 0 0 20px;
}
.footer__block ul li { margin-bottom: 10px; }
.footer__block ul a {
  color: rgba(241,236,224,0.75);
  font-size: 14px;
}
.footer__block ul a:hover { color: var(--c-accent); }

.footer__desc {
  margin: 16px 0 24px;
  line-height: 1.55;
  color: rgba(241,236,224,0.65);
}
.footer__corp { margin: 0; font-size: 13px; line-height: 1.5; }
.footer__corp dt {
  color: rgba(241,236,224,0.5);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-top: 12px;
  font-weight: 600;
}
.footer__corp dd { margin: 4px 0 0; color: var(--c-bg); }

.footer__contact li { margin-bottom: 16px; line-height: 1.5; }
.footer__contact strong {
  display: block;
  color: rgba(241,236,224,0.5);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer__contact a { color: var(--c-bg); }
.footer__contact a:hover { color: var(--c-accent); }

.footer__seals {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.seals-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.seals-label {
  color: rgba(241,236,224,0.5);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.seals { display: flex; gap: 12px; flex-wrap: wrap; }

.seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(241,236,224,0.06);
  border: 1px solid rgba(181,102,60,0.4);
  border-radius: var(--r-sm);
  color: rgba(241,236,224,0.85);
  transition: border-color var(--tr), background var(--tr);
}
.seal:hover {
  border-color: var(--c-accent);
  background: rgba(181,102,60,0.08);
}
.seal__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--c-accent);
}
.seal__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.seal__text strong {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--c-bg);
}
.seal__text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241,236,224,0.55);
  margin-top: 2px;
}

.footer__legal {
  padding: 32px 0 36px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(241,236,224,0.5);
}
.footer__legal p { margin: 0 0 12px; }
.footer__legal p:last-child { margin-bottom: 0; }
.footer__legal a { color: rgba(241,236,224,0.7); }
.footer__legal a:hover { color: var(--c-accent); }
.footer__legal code {
  background: rgba(241,236,224,0.1);
  color: rgba(241,236,224,0.85);
}

/* ============================================================
   PÁGINAS LEGAIS (Conformidade)
   ============================================================ */
.legal {
  background-color: var(--c-bg);
  padding: clamp(72px, 10vh, 120px) 0 clamp(80px, 12vh, 144px);
  min-height: 70vh;
}
.legal__head {
  margin-bottom: clamp(40px, 6vh, 64px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}
.legal__title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 12px 0 16px;
  max-width: 22ch;
  letter-spacing: -0.015em;
}
.legal__meta {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--c-text-soft);
  margin: 0;
}
.legal__body {
  font-size: 17px;
  line-height: 1.78;
  color: var(--c-text);
}
.legal__body h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin: 56px 0 16px;
  letter-spacing: -0.005em;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 {
  font-size: 19px;
  margin: 32px 0 12px;
}
.legal__body p { margin: 0 0 18px; }
.legal__body ul,
.legal__body ol {
  margin: 0 0 22px;
  padding-left: 24px;
  list-style: disc;
}
.legal__body ol { list-style: decimal; }
.legal__body li {
  margin: 6px 0;
  line-height: 1.7;
}
.legal__body strong { color: var(--c-primary); font-weight: 600; }
.legal__body a {
  color: var(--c-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal__body a:hover { color: var(--c-primary); }
.legal__callout {
  margin: 32px 0;
  padding: 22px 28px;
  background: var(--c-bg-alt);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  font-size: 16px;
  line-height: 1.65;
}
.legal__callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--c-primary);
  font-family: var(--ff-serif);
  font-size: 17px;
}
.legal__nav {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}
.legal__nav span {
  font-family: var(--ff-sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  font-size: 12px;
}
.legal__nav a {
  color: var(--c-primary);
  font-weight: 500;
}
.legal__nav a:hover { color: var(--c-accent); }
.legal__nav a[aria-current="page"] {
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Header simplificado nas páginas legais */
.header--legal .header__inner > .btn { display: inline-flex; }

/* ============================================================
   IMAGENS REAIS (substituem placeholders)
   ============================================================ */
.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hover);
}
.mission__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hover);
}
.manifesto__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.22;
  filter: blur(1px);
}
.bastidor-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}
.area-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 0 18px;
}
.cover-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--r-sm);
  box-shadow: 0 18px 40px rgba(31,61,43,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  transition: box-shadow var(--tr-slow);
}
.cover-card:hover .cover-card__img {
  box-shadow: 0 28px 60px rgba(31,61,43,0.32), 0 0 0 1px rgba(0,0,0,0.08);
}
.newsletter__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  display: block;
}

/* ============================================================
   PLACEHOLDERS DE IMAGEM (editorial, não amador)
   ============================================================ */
.img-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  margin: 0;
  padding: 24px;
  font-family: var(--ff-sans);
  color: var(--c-text-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 60%),
    repeating-linear-gradient(
      45deg,
      rgba(181,102,60,0.04) 0,
      rgba(181,102,60,0.04) 1px,
      transparent 1px,
      transparent 12px
    ),
    var(--c-bg-alt);
  overflow: hidden;
  isolation: isolate;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(181,102,60,0.35);
  border-radius: calc(var(--r-md) - 2px);
  pointer-events: none;
  z-index: 0;
}
.img-ph__name {
  font-family: 'Source Code Pro', 'Consolas', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  font-weight: 600;
  z-index: 1;
}
.img-ph__dim {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--c-text-soft);
  z-index: 1;
}
.img-ph__hint {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--c-text-soft);
  opacity: 0.7;
  max-width: 220px;
  margin-top: 4px;
  z-index: 1;
}

.img-ph--hero {
  aspect-ratio: 3/2;
  min-height: 380px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.img-ph--mission {
  aspect-ratio: 2/3;
  min-height: 480px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.img-ph--bastidor {
  aspect-ratio: 4/5;
  min-height: 280px;
}
.img-ph--icon {
  width: 72px;
  height: 72px;
  padding: 6px;
  border-radius: var(--r-sm);
}
.img-ph--icon .img-ph__name { font-size: 9px; }
.img-ph--icon .img-ph__dim,
.img-ph--icon .img-ph__hint,
.img-ph--icon::before { display: none; }
.img-ph--icon { aspect-ratio: 1/1; min-height: 0; }
.img-ph--cover {
  border: none;
}
.img-ph--cover::before { display: none; }
.img-ph--letter {
  aspect-ratio: 1/1;
  min-height: 300px;
  border-radius: var(--r-md);
}

/* Placeholders pequenos (footer) — mantém visual antigo simples */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(241,236,224,0.08);
  border: 1px dashed rgba(181,102,60,0.4);
  border-radius: var(--r-sm);
  color: rgba(241,236,224,0.7);
  font-family: var(--ff-sans);
  font-weight: 600;
  padding: 6px;
  line-height: 1.3;
  font-size: 10px;
}
.placeholder--mini { min-width: 60px; min-height: 38px; }
.placeholder--gateway { min-width: 100px; min-height: 30px; padding: 6px 10px; }

/* ============================================================
   ESTADO INICIAL DE ANIMAÇÕES (anti-FOUC)
   ============================================================ */
[data-anim="fade-up"],
[data-anim="reveal-words"],
[data-anim="reveal-quote"] {
  opacity: 1; /* GSAP gerencia */
}
[data-anim="stagger"] > * { will-change: transform, opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner,
  .mission__inner { grid-template-columns: 1fr; gap: 56px; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .bastidores__grid { grid-template-columns: repeat(2, 1fr); }
  .covers { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__progress { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .newsletter__media { max-width: 320px; margin: 0 auto; }
  .newsletter__copy { text-align: center; }
  .newsletter__form { margin: 0 auto 16px; }
  .newsletter__legal { margin: 0 auto; }
}

@media (max-width: 720px) {
  :root { --section-pad: 64px; }
  .section__head { margin-bottom: 40px; }

  .header__inner { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .header__inner > .btn { display: none; }
  .nav { display: none; }
  .logo__tagline { display: none; }
  .logo__mark { width: 24px; height: 36px; }
  .logo__name { font-size: 19px; }

  .hero { padding: 48px 0 56px; }
  .hero__actions .btn { flex: 1; min-width: 0; }
  .hero__trust { gap: 14px 20px; }

  .trust-strip__inner { grid-template-columns: 1fr; gap: 18px; }
  .areas,
  .bastidores__grid,
  .covers { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }

  .manifesto { padding: 80px 0; }
  .manifesto__quote { font-size: 26px; }

  .mission { padding: 64px 0; }
  .mission__quote { font-size: 18px; }

  .catalog-info { padding: 64px 0; }
  .for-authors { padding: 64px 0; }
  .newsletter { padding: 64px 0; }
  .newsletter__form { flex-direction: column; }
  .faq__item summary { font-size: 17px; }

  .footer { padding: 56px 0 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer__seals { gap: 24px; }

  .img-ph--hero { min-height: 280px; aspect-ratio: 4/3; }
  .img-ph--mission { min-height: 360px; aspect-ratio: 3/4; }
  .img-ph__hint { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body.has-cursor,
  body.has-cursor * { cursor: auto !important; }
  .cursor { display: none !important; }
  .opening { display: none !important; }
}

/* ============================================================
   TOUCH FALLBACK (sem cursor custom)
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  body.has-cursor,
  body.has-cursor * { cursor: auto !important; }
  .cursor { display: none !important; }
}
