/* Roberta Graciana, site pessoal.
   Modo: Persuade (vendas, autoridade) com uma superfície Experience (portfólio).
   Dials: VARIANCE 7, MOTION 6, DENSITY 3.
   Cor: neutros esverdeados + um accent esmeralda (vem da blusa do retrato principal).
   Tipo: Bodoni Moda (display e nome), Hanken Grotesk (texto). */

:root {
  color-scheme: light;
  --bg: #F1F3F0;
  --bg-2: #E8ECE7;
  --surface: #F8F9F7;
  --ink: #0D1512;
  --ink-2: #3E4A44;
  --line: rgba(13, 21, 18, 0.14);
  --accent: #0E5C49;
  --accent-ink: #0E5C49;
  --on-accent: #F4F6F3;
  --accent-soft: rgba(14, 92, 73, 0.09);
  --pill-bg: rgba(241, 243, 240, 0.82);
  --err: #A02B2B;

  --r: 6px;
  --r-pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(96px, 11vw, 168px);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090F0D;
  --bg-2: #0E1613;
  --surface: #121C18;
  --ink: #ECF1EE;
  --ink-2: #A9B6B0;
  --line: rgba(236, 241, 238, 0.14);
  --accent: #4CC3A0;
  --accent-ink: #4CC3A0;
  --on-accent: #06130E;
  --accent-soft: rgba(76, 195, 160, 0.09);
  --pill-bg: rgba(9, 15, 13, 0.78);
  --err: #F08A8A;
}

@media (prefers-color-scheme: dark) {
  :root.no-js:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #090F0D; --bg-2: #0E1613; --surface: #121C18; --ink: #ECF1EE; --ink-2: #A9B6B0;
    --line: rgba(236, 241, 238, 0.14); --accent: #4CC3A0; --accent-ink: #4CC3A0; --on-accent: #06130E;
    --accent-soft: rgba(76, 195, 160, 0.09); --pill-bg: rgba(9, 15, 13, 0.78);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 300ms ease, color 300ms ease;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 12px 16px; border-radius: var(--r); text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; font-optical-sizing: auto; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }

/* Motion de entrada: opacity e transform apenas */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.fade { opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.fade.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .fade { opacity: 1; transform: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
  .btn-ghost:hover { border-color: var(--ink); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.icon-btn-line { border: 1px solid var(--line); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--accent-soft); } }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); text-decoration: none; padding-block: 12px; border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { border-bottom-color: currentColor; } }
.buy .link-quiet { margin-top: -8px; }
.link-quiet { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); gap: 6px; padding-block: 4px; justify-self: start; }
@media (hover: hover) and (pointer: fine) { .link-quiet:hover { color: var(--accent-ink); } }

/* Header em pílula flutuante */
.site-header { position: fixed; z-index: 50; top: 16px; left: 0; right: 0; padding-inline: 16px; pointer-events: none; }
.bar {
  pointer-events: auto; margin-inline: auto; max-width: 880px; min-height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 8px 6px 24px; border-radius: var(--r-pill);
  background: var(--pill-bg); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
}
.logo { font-family: var(--f-display); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; text-decoration: none; white-space: nowrap; padding-block: 12px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: var(--r-pill); font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: var(--accent-soft); } }
.tools { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
#theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] #theme-toggle .i-moon { display: none; }

@media (max-width: 767px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transform-origin: top;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a { padding: 14px 16px; font-size: 1.0625rem; color: var(--ink); }
}

/* Hero */
.hero { min-height: 100dvh; display: flex; align-items: center; padding-top: 96px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3.5rem, 11.5vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -0.03em; padding-bottom: 0.06em; }
.hero-sub { margin-top: 24px; max-width: 42ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.hero .actions { margin-top: 36px; }
.hero-visual { display: flex; justify-content: center; }
.hero-frame {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; max-height: 62dvh;
  border-radius: var(--r); overflow: hidden; background: var(--bg-2);
}
.xf-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1400ms ease, transform 7000ms linear;
}
.xf-slide.is-on { opacity: 1; transform: scale(1); }
/* Pontos e setas no estilo do Instagram (sobre a foto, independentes do tema) */
.xf-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 0; z-index: 2; pointer-events: none; }
.dot { width: 16px; height: 32px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 3px rgba(0, 0, 0, 0.45); transition: background-color 250ms ease, transform 250ms ease; }
.dot.is-on::after { background: #fff; transform: scale(1.15); }

.xf-nav {
  position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #262626; background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28); opacity: 0.9; -webkit-tap-highlight-color: transparent;
  transition: opacity 200ms ease, background-color 200ms ease, transform 200ms ease;
}
.xf-nav svg { width: 16px; height: 16px; display: block; }
.xf-prev { left: 8px; }
.xf-next { right: 8px; }
.xf-nav:hover { background: #fff; opacity: 1; }
.xf-nav:active { transform: scale(0.92); }
.xf-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .xf-nav { opacity: 0.72; }
  [data-carousel]:hover .xf-nav, [data-carousel]:focus-within .xf-nav { opacity: 0.95; }
}
[data-carousel] { touch-action: pan-y; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .hero-frame { max-width: 480px; max-height: 76dvh; margin-left: auto; }
  .hero-visual { justify-content: flex-end; }
}
@media (max-width: 1023px) {
  .hero { align-items: flex-start; }
  .hero-frame { max-height: 56dvh; }
}

/* Números */
.facts { border-block: 1px solid var(--line); }
.facts-list { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts-list li { padding: 32px 0; display: flex; flex-direction: column; gap: 4px; }
.facts-list strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
.facts-list span { color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 768px) { .facts-list { grid-template-columns: repeat(4, 1fr); } .facts-list li { padding: 48px 0; } }

/* Seções */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; display: grid; gap: 20px; margin-bottom: clamp(56px, 7vw, 96px); }

.split { display: grid; gap: 48px; align-items: center; }
.split .copy { display: grid; gap: 28px; align-content: center; }
.photo img { width: 100%; border-radius: var(--r); object-fit: cover; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 0.8fr 1.2fr; gap: 96px; }
  .split-rev { grid-template-columns: 1.2fr 0.8fr; }
  #sobre .photo { max-width: 420px; }
}

.creds { display: grid; gap: 0; margin-top: 8px; }
.creds div { display: grid; gap: 2px; padding: 16px 0; }
.creds div + div { border-top: 1px solid var(--line); }
.creds dt { font-weight: 600; }
.creds dd { color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 640px) { .creds div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; } }

/* Manifesto */
.manifesto { background: #0A100E; color: #ECF1EE; }
.manifesto-grid { display: grid; }
.manifesto-photo img { width: 100%; height: 100%; max-height: 80dvh; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); }
.manifesto-copy { display: flex; align-items: center; padding: clamp(56px, 8vw, 120px) var(--gutter); }
.manifesto blockquote { max-width: 22ch; }
.manifesto blockquote p { font-family: var(--f-display); font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 400; text-wrap: balance; }
.manifesto footer { margin-top: 32px; font-size: 0.875rem; color: #A9B6B0; max-width: 40ch; line-height: 1.55; }
@media (min-width: 1024px) { .manifesto-grid { grid-template-columns: 1fr 1fr; min-height: 80dvh; } .manifesto-copy { padding-left: clamp(48px, 7vw, 112px); } .manifesto blockquote { max-width: 20ch; } }

/* Embaixadora */
.comp { display: grid; gap: 32px; padding: 28px 0; border-block: 1px solid var(--line); }
.comp dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.comp dt { font-size: 0.8125rem; color: var(--ink-2); }
.comp dd { font-family: var(--f-display); font-size: 1.375rem; line-height: 1.2; }
@media (min-width: 640px) { .comp { grid-template-columns: 1fr 1fr; gap: 48px; } .comp dl { grid-template-columns: repeat(2, 1fr); } }

.credits { display: grid; gap: 0; margin-top: clamp(64px, 8vw, 112px); }
.credits li { display: grid; gap: 8px; padding: 28px 0; }
.credits li + li { border-top: 1px solid var(--line); }
.credits p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 768px) { .credits li { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: baseline; } }

.press-wrap { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 32px; }
.press-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.press { display: grid; gap: 0; }
.press li { display: grid; gap: 4px; padding: 20px 0; }
.press li + li { border-top: 1px solid var(--line); }
.press span { font-weight: 600; color: var(--accent-ink); font-size: 0.9375rem; }
.press p { font-family: var(--f-display); font-size: clamp(1.125rem, 1.9vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; }
.press-more { color: var(--ink-2); font-size: 0.9375rem; }
@media (min-width: 768px) { .press li { grid-template-columns: 240px 1fr; gap: 48px; align-items: baseline; } }

/* Livros */
.product { display: grid; gap: 48px; align-items: center; }
.product + .product { margin-top: clamp(96px, 12vw, 176px); }
.product-copy { display: grid; gap: 24px; align-content: center; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translateY(-50%); transform-origin: left top; }
.buy { display: grid; gap: 20px; padding-top: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.price strong { font-family: var(--f-display); font-weight: 500; font-size: 2.25rem; letter-spacing: -0.02em; line-height: 1; }
.price span { color: var(--ink-2); font-size: 0.9375rem; }
.for { color: var(--ink-2); font-size: 0.9375rem; max-width: 44ch; }

.stage {
  position: relative; border-radius: var(--r); background: var(--accent-soft);
  display: grid; gap: 28px; justify-items: center; align-content: center;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 4vw, 56px);
}
.stage-portrait { background: radial-gradient(120% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--accent-soft); }

/* A capa fica intacta. Só o enquadramento muda: perspectiva, lombada e sombra. */
.book, .deck { --rx: 0deg; --ry: -14deg; perspective: 1400px; transform-style: preserve-3d; transition: transform 280ms var(--ease-out); }
.book { position: relative; width: min(260px, 62%); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.book img { width: 100%; border-radius: 2px 4px 4px 2px; box-shadow: 0 28px 48px -16px rgba(0, 0, 0, 0.28), 0 4px 10px rgba(0, 0, 0, 0.1); }
.book::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 14px; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.22) 45%, rgba(0, 0, 0, 0.04)); pointer-events: none; }

.deck { position: relative; width: min(560px, 100%); aspect-ratio: 16 / 9; --ry: -6deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.deck img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.deck-front { box-shadow: 0 28px 48px -16px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.1); z-index: 3; }
.deck-back { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.25); }
.deck-back-1 { z-index: 2; transform: translate(14px, -14px) scale(0.985); }
.deck-back-2 { z-index: 1; transform: translate(28px, -28px) scale(0.97); }
@media (max-width: 639px) {
  .deck { width: calc(100% - 20px); margin-right: 20px; }
  .deck-back-1 { transform: translate(8px, -8px) scale(0.985); }
  .deck-back-2 { transform: translate(16px, -16px) scale(0.97); }
}
.deck-back { filter: saturate(0.85); }

.peek { display: flex; gap: 12px; justify-content: center; width: 100%; max-width: 420px; }
.peek li { flex: 1; }
.peek button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--surface); cursor: pointer; transition: transform 200ms var(--ease-out), border-color 200ms ease; }
.peek img { width: 100%; height: auto; }
.peek-wide { max-width: 560px; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .peek button:hover { transform: translateY(-3px); border-color: var(--accent-ink); } }

@media (min-width: 1024px) {
  .product { grid-template-columns: 1.05fr 0.95fr; gap: 96px; }
  .product-rev { grid-template-columns: 0.95fr 1.05fr; }
  .product-rev .stage { order: 2; }
  .product-rev .product-copy { order: 1; }
  .stage-portrait { min-height: 640px; }
  .stage-landscape { min-height: 520px; }
}

/* Palestras */
.talks { display: grid; gap: 56px; }
.talks-head { display: grid; gap: 24px; align-content: start; justify-items: start; }
.talk { display: grid; gap: 8px; padding: 28px 0; }
.talk + .talk { border-top: 1px solid var(--line); }
.talk:first-child { padding-top: 0; }
.talk p { color: var(--ink-2); max-width: 54ch; }
.talk span { font-size: 0.9375rem; color: var(--accent-ink); font-weight: 600; }
@media (min-width: 1024px) {
  .talks { grid-template-columns: 0.8fr 1.2fr; gap: 96px; }
  .talks-head { position: sticky; top: 112px; align-self: start; }
}

/* Portfólio */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.gallery-head h2 { max-width: 14ch; }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .rail-nav { display: flex; } }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail li { flex: none; scroll-snap-align: start; height: clamp(360px, 58vh, 600px); }
.rail button { display: block; height: 100%; padding: 0; border: 0; background: var(--bg); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.rail img { height: 100%; width: auto; max-width: none; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rail button:hover img { transform: scale(1.03); } }
@media (min-width: 1280px) { .rail { padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); } }

/* Contato */
.contact-grid { display: grid; gap: 56px; }
.contact-grid > div { display: grid; gap: 24px; align-content: start; }
.channels li + li { border-top: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 2px; align-items: center; padding: 24px 0; text-decoration: none; transition: color 200ms ease; }
.channels li:first-child a { padding-top: 0; }
.ch-name { grid-column: 1; font-family: var(--f-display); font-size: clamp(1.375rem, 2.4vw, 1.875rem); letter-spacing: -0.01em; line-height: 1.2; }
.ch-detail { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; overflow-wrap: anywhere; }
.channels svg { grid-column: 2; grid-row: 1 / span 2; color: var(--accent-ink); transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .channels a:hover .ch-name { color: var(--accent-ink); } .channels a:hover svg { transform: translate(3px, -3px); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 96px; } }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding-block: 72px 56px; }
.foot { display: grid; gap: 16px; }
.foot-sign { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(2.75rem, 8vw, 5.5rem); letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); padding-bottom: 8px; }
.foot-credits, .foot-copy { color: var(--ink-2); font-size: 0.875rem; max-width: 68ch; }
.foot a { text-underline-offset: 3px; }

/* Checkout (simulação) */
.checkout { border: 0; padding: 0; margin: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; inset: 0; }
.checkout::backdrop { background: rgba(5, 9, 8, 0.56); }
.checkout[open] { display: flex; justify-content: flex-end; align-items: stretch; }
.co-panel {
  width: min(480px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-left: 1px solid var(--line); padding: 24px;
  display: grid; align-content: start; gap: 20px;
  animation: co-in 300ms var(--ease-drawer) both;
}
.checkout.closing .co-panel { animation: co-out 220ms var(--ease-drawer) both; }
@keyframes co-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes co-out { from { transform: none; opacity: 1; } to { transform: translateX(32px); opacity: 0; } }
.co-head { display: flex; align-items: center; justify-content: space-between; }
.co-head h2 { font-size: 1.75rem; }
.co-demo { background: var(--accent-soft); border-radius: var(--r); padding: 12px 14px; font-size: 0.875rem; line-height: 1.5; color: var(--ink); }
.co-body { display: grid; gap: 20px; }
.co-summary { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.co-summary img { width: 56px; height: auto; border-radius: 3px; object-fit: cover; }
.co-item { font-weight: 600; line-height: 1.3; }
.co-sub { color: var(--ink-2); font-size: 0.875rem; }
.co-total { font-family: var(--f-display); font-size: 1.375rem; white-space: nowrap; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.seg-btn { min-height: 44px; border: 0; background: transparent; border-radius: var(--r-pill); font-weight: 600; font-size: 0.9375rem; cursor: pointer; color: var(--ink-2); transition: background-color 200ms ease, color 200ms ease; }
.seg-btn.is-on { background: var(--accent); color: var(--on-accent); }

.pane { display: grid; gap: 16px; }
.pane[hidden] { display: none; }
.pix-off { font-size: 0.9375rem; color: var(--ink-2); }
.pix-off strong { color: var(--accent-ink); }
.qr-wrap { display: grid; place-items: center; }
.qr { width: 188px; height: 188px; padding: 10px; background: #F8F9F7; border-radius: var(--r); border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 0.875rem; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 1rem;
  transition: border-color 200ms ease;
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 1px; border-color: var(--accent-ink); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.copy-row input { text-overflow: ellipsis; }
.err { color: var(--err); font-size: 0.8125rem; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.5; }

.cc { aspect-ratio: 1.7 / 1; border-radius: 14px; padding: 20px; display: grid; align-content: space-between; color: #F4F6F3;
  background: linear-gradient(135deg, #0E5C49, #07241C); }
.cc-brand { font-size: 0.8125rem; letter-spacing: 0.04em; opacity: 0.85; }
.cc-num { font-size: 1.25rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.cc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cc-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.co-state { display: grid; justify-items: center; text-align: center; gap: 16px; padding: 48px 8px; }
.co-state[hidden] { display: none; }
.co-state h3 { font-size: 1.75rem; }
.co-state p { color: var(--ink-2); max-width: 36ch; }
.co-note { font-size: 0.875rem; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent-ink); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); animation: pop 360ms var(--ease-out) both; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 639px) {
  .checkout[open] { align-items: flex-end; }
  .co-panel { width: 100%; height: auto; max-height: 94dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; animation-name: co-up; }
  .checkout.closing .co-panel { animation-name: co-down; }
}
@keyframes co-up { from { transform: translateY(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes co-down { from { transform: none; opacity: 1; } to { transform: translateY(32px); opacity: 0; } }

/* Galeria */
.lightbox { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: rgba(6, 10, 9, 0.94); color: #ECF1EE; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; animation: lb-in 260ms ease both; }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { position: relative; margin: 72px 16px 8px; min-height: 0; }
.lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 420ms ease; }
.lb-img.is-on { opacity: 1; }
.lb-caption { text-align: center; padding: 8px 72px 28px; font-size: 0.9375rem; color: #A9B6B0; min-height: 56px; }
.lightbox .icon-btn { position: absolute; z-index: 2; color: #ECF1EE; background: rgba(236, 241, 238, 0.08); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (hover: hover) and (pointer: fine) { .lightbox .icon-btn:hover { background: rgba(236, 241, 238, 0.18); } }
@media (min-width: 768px) { .lb-stage { margin-inline: 96px; } .lb-prev { left: 24px; } .lb-next { right: 24px; } }

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .fade { opacity: 1; transform: none; transition: none; }
  .xf-slide { transition: opacity 300ms linear; transform: none; }
  .xf-slide.is-on { transform: none; }
  .book, .deck, .rail img, .btn, .icon-btn { transition: none; }
  .co-panel, .checkout.closing .co-panel, .check, .lightbox[open] { animation: none; }
  .lb-img { transition: none; }
}

/* Publicações (miniaturas) e visualizador de matérias */
.press-block { margin-top: clamp(64px, 8vw, 112px); display: grid; gap: 28px; }
.press-block h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.press-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 24px 16px; }
.pt { display: grid; gap: 2px; text-decoration: none; align-content: start; }
.pt img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); margin-bottom: 10px; transition: transform 240ms var(--ease-out), border-color 200ms ease; }
.pt-outlet { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.pt-date { color: var(--ink-2); font-size: 0.8125rem; }
@media (hover: hover) and (pointer: fine) { .pt:hover img { transform: translateY(-4px); border-color: var(--accent-ink); } .pt:hover .pt-outlet { color: var(--accent-ink); } }

.press-dlg { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; color: var(--ink); }
.press-dlg::backdrop { background: rgba(5, 9, 8, 0.62); }
.press-dlg[open] { display: grid; place-items: center; padding: 0; }
.pd-panel { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); overflow: hidden; animation: pd-in 280ms var(--ease-drawer) both; }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--line); }
.pd-head h2 { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
.pd-outlet { margin-top: 4px; color: var(--ink-2); font-size: 0.875rem; }
.pd-body { position: relative; min-height: 0; overflow: auto; background: var(--bg); }
.pd-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #F8F9F7; }
.pd-body.is-loading::after { content: ""; position: absolute; left: 50%; top: 40%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent-ink); animation: spin 800ms linear infinite; }
.pd-card { display: grid; gap: 24px; padding: 24px 20px 32px; max-width: 880px; margin-inline: auto; align-items: start; }
.pd-card img { width: min(280px, 70%); height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.pd-card-copy { display: grid; gap: 16px; align-content: start; }
.pd-badge { justify-self: start; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.8125rem; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.pd-summary { font-family: var(--f-display); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; }
.pd-note { color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }
.pd-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.pd-foot a { color: var(--accent-ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .press-dlg[open] { padding: 3vh 24px; }
  .pd-panel { width: min(1040px, 100%); height: 100%; border-radius: 12px; border: 1px solid var(--line); }
  .pd-card { grid-template-columns: 280px 1fr; gap: 40px; padding: 40px; }
  .pd-card img { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .pd-panel { animation: none; } .pt img { transition: none; } }

/* Especialidades: bloco de cor sólida, para dar peso à autoridade */
:root { --spec-bg: #0E5C49; --spec-ink: #F1F3F0; --spec-ink-2: rgba(241, 243, 240, 0.8); --spec-line: rgba(241, 243, 240, 0.24); }
:root[data-theme="dark"] { --spec-bg: #0F3A2F; --spec-ink: #ECF1EE; --spec-ink-2: rgba(236, 241, 238, 0.78); --spec-line: rgba(236, 241, 238, 0.2); }
.spec { background: var(--spec-bg); color: var(--spec-ink); padding-block: var(--section-y); transition: background-color 300ms ease; }
.spec-head { display: grid; gap: 24px; max-width: 980px; }
.spec h2 { font-size: clamp(2.25rem, 5.2vw, 4.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.spec-lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--spec-ink-2); max-width: 56ch; }
.spec-stats { display: grid; grid-template-columns: 1fr; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--spec-line); }
.spec-stats li { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--spec-line); }
.spec-stats strong { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.spec-stats span { color: var(--spec-ink-2); font-size: 0.9375rem; max-width: 30ch; }
.spec-grid { display: grid; gap: 56px; margin-top: clamp(56px, 7vw, 96px); }
.spec-panel { display: grid; gap: 22px; align-content: start; }
.spec-panel h3 { font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.spec-panel > p { color: var(--spec-ink-2); max-width: 54ch; }
.spec .ticks li::before { border-color: var(--spec-ink); }
.spec .link-arrow { color: var(--spec-ink); justify-self: start; }
.spec :focus-visible { outline-color: var(--spec-ink); }
@media (min-width: 768px) {
  .spec-stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--spec-line); }
  .spec-stats li { border-bottom: 0; padding: 32px 24px 32px 0; }
  .spec-stats li + li { border-left: 1px solid var(--spec-line); padding-left: 24px; }
}
@media (min-width: 1024px) {
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .spec-panel + .spec-panel { position: relative; }
  .spec-panel + .spec-panel::before { content: ""; position: absolute; left: -48px; top: 0; bottom: 0; width: 1px; background: var(--spec-line); }
}


/* Carrossel em fade cruzado, reutilizável (topo, Sobre, Especialidades, Palestras e Embaixadora) */
.xf { position: relative; width: 100%; overflow: hidden; border-radius: var(--r); background: var(--bg-2); aspect-ratio: var(--ar, 4 / 5); }
.spec-top { display: grid; gap: 40px; }
.spec-photo { max-width: 320px; }
.talk-photo { max-width: 320px; margin-top: 16px; }
@media (min-width: 1024px) {
  .spec-top { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: end; }
  .spec-photo { justify-self: end; width: 340px; max-width: none; }
}

.pd-orig { color: var(--ink-2); font-size: 0.9375rem; max-width: 52ch; }
.pd-orig em { font-style: normal; color: var(--ink); }
.pd-card img { max-width: 100%; }

.pd-doc { padding: 16px; background: var(--bg-2); min-height: 100%; }
.pd-doc[hidden] { display: none; }
.pd-doc img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r); background: #F8F9F7; }

.pd-intro { width: min(900px, 100%); margin: 0 auto 20px; display: grid; gap: 12px; justify-items: start; }
.pd-intro[hidden] { display: none; }
.pd-intro .pd-summary { font-size: clamp(1.125rem, 2vw, 1.5rem); }

/* Janela sem título no topo (só o botão de fechar); o título continua para leitores de tela */
.press-dlg.bare .pd-head { justify-content: flex-end; border-bottom: 0; padding: 8px 8px 0; }
.press-dlg.bare .pd-meta { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.press-dlg.bare .pd-doc { padding-top: 4px; }

/* Prints em 2x de resolução: mostra no tamanho original (com um respiro no computador) e permite ampliar no celular */
.pd-doc img { width: 100%; max-width: calc(var(--docw, 700px) * 1.3); }
.pd-doc.zoomed { width: max-content; min-width: 100%; }
.pd-doc.zoomed img { width: var(--docw); max-width: none; }
.pd-doc.zoomed .pd-intro { max-width: calc(100vw - 48px); }
.pd-zoom { display: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: transparent; color: var(--ink); font-weight: 600; font-size: 0.875rem; cursor: pointer; margin-left: auto; margin-right: 4px; }
.pd-zoom[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 767px) { .pd-zoom:not([hidden]) { display: inline-flex; align-items: center; } .pd-head { align-items: center; } }
.pd-zoom { white-space: nowrap; flex: none; }
@media (max-width: 767px) { .pd-head h2 { font-size: 1.0625rem; } .pd-head { gap: 8px; padding-left: 16px; } }
