/* =====================================================================
   Ciência Imago — folha de estilo principal
   Site estático, sem framework. Tokens em :root; dark mode automático.
   ===================================================================== */

:root {
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f6f4f0;
  --surface: #ffffff;
  --surface-2: #efece6;
  --ink: #1b1918;
  --ink-2: #47423f;
  --muted: #777069;
  --line: #e5e0d8;
  --shadow: 0 1px 2px rgba(20, 16, 12, .05), 0 12px 32px -12px rgba(20, 16, 12, .18);
  --shadow-lg: 0 24px 64px -20px rgba(20, 16, 12, .35);

  --brand: #ef6f63;
  --brand-deep: #c9463b;
  --brand-soft: #fde9e5;
  --brand-ink: #7a2a22;

  --dark: #15131a;
  --dark-2: #1f1c27;
  --dark-ink: #f4f1ea;
  --dark-muted: #a9a3b3;

  /* tons por área */
  --c-imuno: #ef6f63;
  --c-farmaco: #8b5cf6;
  --c-fisio: #14b8a6;
  --c-edmed: #3b82f6;
  --c-livros: #f59e0b;
  --c-estat: #22c55e;
  --c-medpics: #10b981;
  --c-gaia: #0ea5e9;

  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121116;
    --surface: #1b1920;
    --surface-2: #24212b;
    --ink: #f1eee8;
    --ink-2: #cfc9c0;
    --muted: #9b948c;
    --line: #2f2b37;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, .7);
    --brand-soft: #3a211f;
    --brand-ink: #ffb4ab;
  }
}
:root[data-theme="dark"] {
  --bg: #121116;
  --surface: #1b1920;
  --surface-2: #24212b;
  --ink: #f1eee8;
  --ink-2: #cfc9c0;
  --muted: #9b948c;
  --line: #2f2b37;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 64px -20px rgba(0, 0, 0, .7);
  --brand-soft: #3a211f;
  --brand-ink: #ffb4ab;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, video, iframe, canvas, svg { max-width: 100%; display: block; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1320px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(21, 19, 26, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--dark-ink);
}
.nav__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--nav-h); }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.nav__brand:hover { text-decoration: none; }
.nav__brand img { height: 38px; width: auto; }
.nav__brand span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }
.nav__spacer { flex: 1; }

.nav__toggle {
  display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.18);
  color: inherit; border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

.nav__menu { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__dd > button {
  display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-size: .95rem; font-weight: 500; color: rgba(244, 241, 234, .85);
  background: none; border: 0; padding: .55rem .8rem; border-radius: 10px; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.nav__link:hover, .nav__dd > button:hover, .nav__link[aria-current="page"] {
  color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none;
}
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brand); border-radius: 10px 10px 4px 4px; }
.nav__dd { position: relative; }
.nav__dd > button svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__dd[aria-expanded="true"] > button svg, .nav__dd[open] > button svg { transform: rotate(180deg); }
.nav__panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: .5rem; box-shadow: var(--shadow-lg); list-style: none; margin: 0;
  display: none; z-index: 20;
}
.nav__dd.is-open .nav__panel { display: block; }
.nav__panel a {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px;
  color: rgba(244, 241, 234, .9); font-size: .93rem;
}
.nav__panel a:hover { background: rgba(255,255,255,.07); text-decoration: none; color: #fff; }
.nav__panel .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--brand)); flex: none; }
.nav__panel small { display: block; color: var(--dark-muted); font-size: .78rem; line-height: 1.2; }

.nav__lang {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: .5rem;
  padding: .4rem .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  color: rgba(244,241,234,.9); font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}
.nav__lang img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.nav__lang:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; }
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: .35rem;
  border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: none; color: rgba(244,241,234,.9); cursor: pointer;
}
.nav__theme:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__theme svg { width: 18px; height: 18px; }
.nav__theme .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav__theme .i-sun { display: block; } :root:not([data-theme="light"]) .nav__theme .i-moon { display: none; } }
:root[data-theme="dark"] .nav__theme .i-sun { display: block; }
:root[data-theme="dark"] .nav__theme .i-moon { display: none; }
:root[data-theme="light"] .nav__theme .i-sun { display: none; }
:root[data-theme="light"] .nav__theme .i-moon { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--dark); padding: .75rem var(--gutter) 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__link, .nav__dd > button { width: 100%; justify-content: space-between; padding: .8rem .9rem; font-size: 1rem; }
  .nav__panel { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.04); margin: .25rem 0 .5rem; }
  .nav__lang { margin: .5rem 0 0; justify-content: center; }
}

/* ------------------------------------------------------------ hero (home) */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(239, 111, 99, .32), transparent 60%),
              radial-gradient(800px 500px at 10% 110%, rgba(139, 92, 246, .25), transparent 60%),
              linear-gradient(180deg, #17141d, #15131a 60%, #1a1720);
  color: var(--dark-ink);
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center; text-align: center;
  padding: clamp(56px, 10vw, 120px) 0;
}
.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #ffb1a8; margin-bottom: 1.5rem;
}
.hero__logo { width: min(440px, 82vw); height: auto; margin: 0 auto 1rem; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.2rem); font-weight: 500; font-style: italic; margin-bottom: 1rem; }
.hero p { max-width: 60ch; margin-inline: auto; color: var(--dark-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0; z-index: 2;
  color: var(--dark-muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
}
.hero__scroll svg { width: 20px; height: 20px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* partículas flutuantes (puro CSS) */
.orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), var(--o, #ef6f63) 60%, transparent 70%);
  animation: float var(--d, 14s) ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(var(--x, 30px), var(--y, -60px), 0) scale(1.15); }
}
.orb:nth-child(1) { width: 14px; height: 14px; left: 8%;  top: 22%; --o: #ef6f63; --d: 11s; --x: 40px; --y: -50px; }
.orb:nth-child(2) { width: 9px;  height: 9px;  left: 18%; top: 68%; --o: #8b5cf6; --d: 16s; --x: -30px; --y: -70px; }
.orb:nth-child(3) { width: 20px; height: 20px; left: 30%; top: 12%; --o: #14b8a6; --d: 13s; --x: 20px; --y: 60px; opacity: .5; }
.orb:nth-child(4) { width: 7px;  height: 7px;  left: 62%; top: 80%; --o: #ef6f63; --d: 9s;  --x: -50px; --y: -40px; }
.orb:nth-child(5) { width: 12px; height: 12px; left: 76%; top: 26%; --o: #3b82f6; --d: 15s; --x: -40px; --y: 50px; }
.orb:nth-child(6) { width: 16px; height: 16px; left: 88%; top: 60%; --o: #f59e0b; --d: 12s; --x: -60px; --y: -60px; opacity: .55; }
.orb:nth-child(7) { width: 6px;  height: 6px;  left: 46%; top: 88%; --o: #22c55e; --d: 10s; --x: 30px; --y: -80px; }
.orb:nth-child(8) { width: 10px; height: 10px; left: 54%; top: 6%;  --o: #ef6f63; --d: 17s; --x: 50px; --y: 40px; }
.hero__dna {
  position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: min(52vw, 620px); z-index: 0;
  opacity: .18; pointer-events: none; mix-blend-mode: screen;
}
#hero-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero:hover .hero__logo { filter: drop-shadow(0 0 28px rgba(239,111,99,.55)) drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero__logo { transition: filter .6s ease; }
@media (prefers-reduced-motion: reduce) { .orb, .hero__scroll svg { animation: none; } }

/* ------------------------------------------------------------ page hero (interno) */
.page-hero {
  --tint: var(--brand);
  position: relative; overflow: hidden; color: var(--dark-ink);
  background: radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 65%),
              linear-gradient(180deg, #17141d, #15131a);
  padding: clamp(40px, 7vw, 80px) 0 clamp(36px, 6vw, 64px);
}
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero .lead { color: var(--dark-muted); max-width: 70ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.page-hero__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: color-mix(in srgb, var(--tint) 22%, transparent); border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent);
  color: var(--tint);
}
.page-hero__icon svg { width: 32px; height: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .85rem; color: var(--dark-muted); }
.crumbs a { color: rgba(244,241,234,.75); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--alt { background: var(--surface-2); }
.section--dark { background: var(--dark); color: var(--dark-ink); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted { color: var(--dark-muted); }
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-deep);
  margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: #ffb1a8; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--brand);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic; color: var(--ink-2);
}
.prose blockquote cite { display: block; margin-top: .75rem; font-style: normal; font-size: .9rem; color: var(--muted); }
.two-col { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.1fr .9fr; } .two-col--even { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ grid & cards */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.card {
  --tint: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--tint) 40%, var(--line)); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin: .25rem 0 0; }
.card p { color: var(--ink-2); font-size: .98rem; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--tint); }
.card__link svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.card--tool { flex-direction: row; align-items: flex-start; gap: 1.1rem; }
.card--tool .card__icon { flex: none; }
.card--tool .card__body { display: flex; flex-direction: column; gap: .4rem; flex: 1; }

/* módulo interativo (thumb + info) */
.mod {
  --tint: var(--brand);
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mod__thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
  background: radial-gradient(400px 200px at 30% 0%, color-mix(in srgb, var(--tint) 40%, transparent), transparent 70%), var(--dark-2);
  color: #fff;
}
.mod__thumb svg { width: 56px; height: 56px; opacity: .9; }
.mod__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.mod:hover .mod__img { transform: scale(1.04); }
.mod__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 40%, transparent 70%, rgba(0,0,0,.35)); pointer-events: none; }
.mod__num, .mod__thumb .play { z-index: 1; }
.mod__thumb .play {
  position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--tint); display: grid; place-items: center; box-shadow: 0 8px 20px -6px var(--tint);
}
.mod__thumb .play svg { width: 18px; height: 18px; opacity: 1; }
.mod__num {
  position: absolute; left: 14px; top: 12px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: rgba(255,255,255,.35);
}
.mod__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mod__body h3 { font-size: 1.15rem; margin: 0; }
.mod__body p { font-size: .95rem; color: var(--ink-2); }
.mod__body .card__meta { margin-top: auto; padding-top: .5rem; }
.mod a.stretched::after { content: ""; position: absolute; inset: 0; }

/* ------------------------------------------------------------ chips & buttons */
.chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; letter-spacing: .03em;
  padding: .28rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chip--tint { background: color-mix(in srgb, var(--tint, var(--brand)) 14%, transparent); color: var(--tint, var(--brand-deep)); border-color: transparent; }
.chip--dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.14); }
.chip svg { width: 13px; height: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .85rem 1.35rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px var(--brand); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--light { background: #fff; color: var(--dark); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn--ghost:hover { opacity: 1; background: rgba(127,127,127,.1); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: .55rem .95rem; font-size: .85rem; }
.btn--tint { background: var(--tint, var(--brand)); color: #fff; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ------------------------------------------------------------ player (iframe de módulos) */
.player {
  --tint: var(--brand);
  background: var(--dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}
.player__bar {
  display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem .7rem 1.1rem;
  background: var(--dark-2); color: var(--dark-ink); border-bottom: 1px solid rgba(255,255,255,.06);
}
.player__bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tint); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 25%, transparent); }
.player__title { font-weight: 600; font-size: .95rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__actions { display: flex; gap: .35rem; }
.player__actions a, .player__actions button {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .8rem; font-weight: 600;
  color: rgba(244,241,234,.85); background: rgba(255,255,255,.07); border: 0; border-radius: 8px;
  padding: .45rem .7rem; cursor: pointer; text-decoration: none;
}
.player__actions a:hover, .player__actions button:hover { background: rgba(255,255,255,.14); color: #fff; }
.player__actions svg { width: 15px; height: 15px; }
.player__actions .lbl { display: none; }
@media (min-width: 560px) { .player__actions .lbl { display: inline; } }
.player__frame { position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 3); background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__frame:fullscreen { aspect-ratio: auto; }
.player--fixed .player__frame iframe { transform-origin: 0 0; }
.player__frame:fullscreen iframe { background: #000; }
.player__note { padding: .8rem 1.1rem; font-size: .85rem; color: var(--dark-muted); background: var(--dark-2); }
.player--light .player__frame { background: #fff; }
.player--tall .player__frame { aspect-ratio: auto; height: min(900px, 85vh); }

/* ------------------------------------------------------------ vídeo / accordion */
.acc {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: .75rem; overflow: hidden;
}
.acc > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; font-weight: 600;
}
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .n {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: .8rem;
  background: color-mix(in srgb, var(--tint, var(--brand)) 14%, transparent); color: var(--tint, var(--brand-deep));
}
.acc > summary > svg { margin-left: auto; width: 18px; height: 18px; transition: transform .2s; color: var(--muted); flex: none; }
.acc[open] > summary > svg { transform: rotate(180deg); }
.acc[open] > summary { border-bottom: 1px solid var(--line); }
.acc__body { padding: 1rem 1.15rem 1.25rem; }
.acc__body p { color: var(--ink-2); font-size: .97rem; }
.video { border-radius: var(--radius-sm); overflow: hidden; background: #000; box-shadow: var(--shadow); line-height: 0; }
.video video { width: 100%; height: auto; display: block; }
.video--portrait { width: fit-content; max-width: 100%; margin-inline: auto; }
.video--portrait video { width: auto; max-width: 100%; max-height: min(70vh, 640px); }

.module-block { margin-bottom: clamp(32px, 5vw, 56px); }
.module-block__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.module-block__head .badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tint, var(--brand)) 16%, transparent); color: var(--tint, var(--brand-deep)); font-weight: 700;
  font-family: var(--font-display); font-size: 1.2rem;
}
.module-block__head h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.module-block__head p { margin: .1rem 0 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------ callouts, stats, misc */
.callout {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--brand-soft); color: var(--brand-ink); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  font-size: .95rem;
}
.callout svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.callout--info { background: color-mix(in srgb, var(--c-edmed) 12%, var(--surface)); color: var(--ink-2); border-color: color-mix(in srgb, var(--c-edmed) 35%, transparent); }
.callout--info svg { color: var(--c-edmed); }
.callout a { color: inherit; font-weight: 600; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { padding: 1.25rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: #fff; }
.stat span { font-size: .85rem; color: var(--dark-muted); }

.feature-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .feature-row { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.feature__icon svg { width: 22px; height: 22px; }
.feature p { font-size: .97rem; color: var(--ink-2); }

.book { display: grid; gap: 1.5rem; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
@media (min-width: 720px) { .book { grid-template-columns: 220px 1fr; } }
.book img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.book__meta { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.book__meta b { color: var(--ink-2); }
.book p { color: var(--ink-2); font-size: .98rem; }
.book__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.team-list { display: grid; gap: .75rem; }
.team-list li { list-style: none; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.team-list b { display: block; color: var(--ink); }
.team-list span { color: var(--ink-2); font-size: .95rem; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li { position: relative; padding-left: 2rem; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: .5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline b { display: block; }

.pub { padding: 1rem 1.15rem; border-left: 3px solid var(--tint, var(--brand)); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: .75rem; font-size: .95rem; }
.pub b { display: block; color: var(--ink); }
.pub span { color: var(--muted); }

.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.info-box dl { margin: 0; display: grid; gap: .9rem; }
.info-box dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.info-box dd { margin: .15rem 0 0; color: var(--ink-2); }

/* ------------------------------------------------------------ forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .75rem .9rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.field small { color: var(--muted); font-size: .8rem; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__msg { padding: .8rem 1rem; border-radius: 10px; font-size: .95rem; display: none; }
.form__msg.ok { display: block; background: color-mix(in srgb, var(--c-estat) 15%, var(--surface)); color: #14532d; }
.form__msg.err { display: block; background: var(--brand-soft); color: var(--brand-ink); }
:root[data-theme="dark"] .form__msg.ok { color: #bbf7d0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form__msg.ok { color: #bbf7d0; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* resultado de cálculo */
.result { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--tint, var(--brand)) 10%, var(--surface)); border: 1px dashed color-mix(in srgb, var(--tint, var(--brand)) 40%, transparent); }
.result:empty { display: none; }
.result b { font-family: var(--font-display); font-size: 1.5rem; }
.groups { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 1rem; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.group h4 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tint, var(--brand-deep)); }
.group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; }
.group li { background: var(--surface-2); border-radius: 6px; padding: .15rem .5rem; font-size: .85rem; font-variant-numeric: tabular-nums; }
.stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 1rem; }
.stat-table th, .stat-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.stat-table td:last-child { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

/* ------------------------------------------------------------ footer */
.footer { background: var(--dark); color: var(--dark-muted); padding: clamp(40px, 6vw, 72px) 0 32px; margin-top: auto; }
.footer__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer a { color: rgba(244,241,234,.8); }
.footer a:hover { color: #fff; }
.footer__brand img { height: 46px; width: auto; margin-bottom: .75rem; }
.footer__brand p { font-size: .92rem; max-width: 34ch; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
.footer__hits { opacity: .75; }
.footer__hits b { font-weight: 600; font-variant-numeric: tabular-nums; }
.footer__social { display: flex; gap: .5rem; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); }
.footer__social svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------------ util */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.center { text-align: center; }
.flex { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1; }

/* ------------------------------------------------------------ percurso completo (várias animações num player) */
.fluxo { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .fluxo { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.fluxo__side { position: sticky; top: calc(var(--nav-h) + 12px); display: grid; gap: .75rem; }
.fluxo__steps { list-style: none; margin: 0; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: .15rem; max-height: 60vh; overflow: auto; }
.fluxo__steps button { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; font: inherit; font-size: .93rem; font-weight: 500; color: var(--ink-2); background: none; border: 0; border-radius: 10px; padding: .55rem .65rem; cursor: pointer; }
.fluxo__steps button:hover { background: var(--surface-2); color: var(--ink); }
.fluxo__steps .n { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); font-family: var(--font-display); }
.fluxo__steps li.is-done .n { background: color-mix(in srgb, var(--tint, var(--brand)) 18%, transparent); color: var(--tint, var(--brand-deep)); }
.fluxo__steps li.is-done .n::before { content: "✓"; }
.fluxo__steps li.is-done .n span { display: none; }
.fluxo__steps li.is-active button { background: color-mix(in srgb, var(--tint, var(--brand)) 14%, transparent); color: var(--ink); font-weight: 600; }
.fluxo__steps li.is-active .n { background: var(--tint, var(--brand)); color: #fff; }
.fluxo__nav { display: flex; gap: .5rem; }
.fluxo__nav .btn { flex: 1; }
.fluxo__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: .5rem; }
.fluxo__head h2 { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.fluxo__head small { color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.fluxo__desc { color: var(--ink-2); font-size: .95rem; margin-bottom: .9rem; }
.fluxo__modal { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; }
.fluxo__modal[hidden] { display: none; }
.fluxo__modal .box { position: relative; width: min(1024px, 100%); aspect-ratio: 4/3; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.fluxo__modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fluxo__modal button { position: absolute; top: 10px; right: 10px; z-index: 1; font: inherit; font-weight: 600; background: var(--dark); color: #fff; border: 0; border-radius: 999px; padding: .5rem .9rem; cursor: pointer; }
.fluxo__group { padding: .7rem .65rem .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tint, var(--brand-deep)); }
.fluxo__steps li.is-off button { opacity: .55; }
.fluxo__extras { display: grid; gap: .5rem; }
.fluxo__extras:empty { display: none; }

/* card largo (um único destaque na grade) */
.mod--wide { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .mod--wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .mod--wide .mod__thumb { aspect-ratio: auto; min-height: 100%; }
  .mod--wide .mod__body { padding: clamp(20px, 3vw, 36px); justify-content: center; }
  .mod--wide .mod__body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
  .mod--wide .mod__body p { font-size: 1.02rem; }
}
