/* =========================================================
   FemBiome — estilos
   Paleta: chocolate #53382C · cobre #A87955 · bronze #C3A084
           bege #E5D6C8 · creme #F8F4EF
   ========================================================= */

:root {
  --bg: #f8f4ef;
  --bg-soft: #efe5db;
  --surface: #ffffff;
  --text: #53382c;
  --text-muted: #7a5e4f;
  --heading: #3f2a20;
  --accent: #80583f;
  --accent-hover: #6b4733;
  --accent-soft: #a87955;
  --accent-ink: #ffffff;
  --line: #e2d3c4;
  --line-strong: #c3a084;
  --dark-bg: #53382c;
  --dark-text: #f8f4ef;
  --dark-muted: #d9c6b4;
  --dark-accent: #e4b994;
  --dark-line: rgba(248, 244, 239, .18);
  --header-bg: rgba(248, 244, 239, .82);
  --shadow: 0 1px 2px rgba(83, 56, 44, .06), 0 8px 24px rgba(83, 56, 44, .08);
  --shadow-lg: 0 2px 4px rgba(83, 56, 44, .06), 0 18px 40px rgba(83, 56, 44, .14);
  --warn-bg: #fbeee6;
  --warn-line: #c2703f;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --header-h: 72px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1f1612;
    --bg-soft: #281d18;
    --surface: #2e221c;
    --text: #e9ddd2;
    --text-muted: #bba596;
    --heading: #f8f4ef;
    --accent: #c99169;
    --accent-hover: #d9a57f;
    --accent-soft: #d6a985;
    --accent-ink: #1f1612;
    --line: #3d2e26;
    --line-strong: #5c4537;
    --dark-bg: #140e0b;
    --header-bg: rgba(31, 22, 18, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .4);
    --warn-bg: #3a2519;
    --warn-line: #d98a5b;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #1f1612;
  --bg-soft: #281d18;
  --surface: #2e221c;
  --text: #e9ddd2;
  --text-muted: #bba596;
  --heading: #f8f4ef;
  --accent: #c99169;
  --accent-hover: #d9a57f;
  --accent-soft: #d6a985;
  --accent-ink: #1f1612;
  --line: #3d2e26;
  --line-strong: #5c4537;
  --dark-bg: #140e0b;
  --header-bg: rgba(31, 22, 18, .82);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .4);
  --warn-bg: #3a2519;
  --warn-line: #d98a5b;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
b, strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
section { padding: clamp(64px, 9vw, 112px) 0; }
.soft { background: var(--bg-soft); }
.muted { color: var(--text-muted); }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-lead {
  font-size: 1.1rem;
  max-width: 68ch;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 1.5px solid var(--accent); border-radius: 999px;
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn-text {
  background: none; border: 0; padding: 12px 8px; cursor: pointer;
  font: 500 .95rem var(--font-sans); color: var(--text-muted);
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { color: var(--text); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--line-strong); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .04); }
.header-inner {
  width: min(var(--wrap), 100% - 32px); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); }
.brand-mark { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark circle { stroke: var(--line-strong); stroke-width: 1; }
.brand-text { font: 700 1.6rem/1 var(--font-serif); letter-spacing: -.01em; }
.brand-text > span { color: var(--accent-soft); }
.brand-text small {
  display: block; margin-top: 5px;
  font: 600 .66rem/1.2 var(--font-sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-muted);
}

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: .96rem; text-decoration: none; color: var(--text);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--bg-soft); }
.nav a.active { color: var(--accent); background: var(--bg-soft); }

.header-actions { display: flex; gap: 8px; }
.menu-btn { display: none; }
.i-moon { display: none !important; }
:root[data-theme="dark"] .i-sun { display: none !important; }
:root[data-theme="dark"] .i-moon { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none !important; }
  :root:not([data-theme="light"]) .i-moon { display: block !important; }
}

.menu-btn path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
.menu-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .l2 { opacity: 0; }
.menu-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: inline-grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  html:not(.js) .nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; flex-direction: row; flex-wrap: wrap; }
  .brand-text small { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--accent); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 54ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted); background: var(--surface);
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }

.hero-art { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.hero-art .glow {
  position: absolute; inset: 8%;
  background: radial-gradient(circle at 40% 40%, rgba(195, 160, 132, .45), transparent 65%);
  filter: blur(30px); border-radius: 50%;
}
.hero-art svg { position: relative; width: 100%; height: auto; }
.ring { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.r2 { stroke-dasharray: 3 6; }
.r3 { opacity: .5; }
.heart path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dot { fill: var(--accent-soft); }

@media (prefers-reduced-motion: no-preference) {
  .r2 { animation: spin 60s linear infinite; transform-origin: 150px 150px; }
  .heart { animation: float 6s ease-in-out infinite; }
  .d1 { animation: float 5s ease-in-out infinite; }
  .d2 { animation: float 7s ease-in-out infinite reverse; }
  .d3 { animation: float 4s ease-in-out infinite; }
  .heart path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s .3s ease forwards; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Seção escura / estatísticas ---------- */
.dark { background: var(--dark-bg); color: var(--dark-text); }
.dark h2 { color: var(--dark-text); }
.dark .eyebrow { color: var(--dark-accent); }
.dark .section-lead { color: var(--dark-muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat {
  padding: 32px; border: 1px solid var(--dark-line); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}
.stat strong {
  display: block; margin-bottom: 8px;
  font: 600 clamp(3rem, 6vw, 4.2rem)/1 var(--font-serif); color: var(--dark-accent);
}
.stat p { margin: 0; color: var(--dark-text); }
.stat .muted { color: var(--dark-muted); }
.source { font-size: .9rem; color: var(--dark-muted); margin: 0; }
.source a { color: var(--dark-accent); text-underline-offset: 3px; }

/* ---------- Gráficos ---------- */
:root { --s1: #a8582a; --s2: #0080a0; --grid: #ece3da; --axis: #8a6f60; }
:root[data-theme="dark"] { --s1: #c8703a; --s2: #00a0b0; --grid: #3d2e26; --axis: #a8917f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --s1: #c8703a; --s2: #00a0b0; --grid: #3d2e26; --axis: #a8917f; }
}
.chart-card {
  margin: 8px 0 28px; padding: clamp(20px, 3.5vw, 32px);
  background: var(--surface); color: var(--text);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.chart-card h3 { margin-bottom: 4px; }
.chart-sub { margin: 0 0 16px; font-size: .9rem; color: var(--text-muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 8px; padding: 0; list-style: none; font-size: .88rem; color: var(--text); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .tick { fill: var(--axis); font: 500 12px var(--font-sans); }
.chart .cat { fill: var(--text); font: 600 13px var(--font-sans); }
.chart .val { fill: var(--text); font: 600 12px var(--font-sans); }
.chart .bar { transition: opacity .2s; }
.chart .hit { fill: transparent; cursor: default; }
.chart.hovering .bar:not(.on) { opacity: .35; }
.tooltip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 8px 12px; border-radius: 8px; min-width: 150px;
  background: var(--heading); color: var(--bg); font-size: .85rem; line-height: 1.4;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, calc(-100% - 10px)); transition: opacity .15s;
}
.tooltip.show { opacity: 1; }
.tooltip b { display: block; font-size: 1rem; }
.chart-table { margin-top: 12px; font-size: .88rem; }
.chart-table summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.chart-table table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.chart-table th, .chart-table td { padding: 6px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.stats-light .stat { background: var(--surface); border-color: var(--line); }
.stats-light .stat strong { color: var(--accent); }
.stats-light .stat p { color: var(--text); margin-bottom: 14px; }
.stat-src { font-size: .82rem; color: var(--text-muted); text-underline-offset: 3px; }
.chart-src { margin: 10px 0 0; font-size: .82rem; color: var(--text-muted); }
.charts-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.charts-2 .chart-card { margin: 0; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  position: relative;
  padding: 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.card h3 { margin-bottom: 8px; }
.ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px; background: var(--bg-soft); color: var(--accent);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 32px 0 24px; }
.card-lg { padding: 32px; }
.card-lg p { margin-bottom: 18px; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px;
  border-radius: 999px; background: var(--bg-soft);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--accent);
}
.link { font-weight: 600; color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.callout {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.callout svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-line); margin-top: 28px; }
.callout-warn svg { stroke: var(--warn-line); }

/* ---------- Etapas ---------- */
.steps {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px;
  counter-reset: s;
}
.steps li { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg-soft); }
.steps p { margin: 0; color: var(--text-muted); font-size: .97rem; }
.step-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font: 700 1rem var(--font-serif);
}

.profile {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.avatar {
  flex: none; display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, #c3a084, #80583f); color: #fff;
  font: 600 1.4rem var(--font-serif);
}
.profile h3 { font-size: 1.4rem; margin-bottom: 4px; }
.role { font-weight: 500; margin-bottom: 8px; }
.profile .muted { margin: 0; font-size: .95rem; }

/* ---------- Próximos conteúdos ---------- */
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.roadmap li { padding: 22px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.roadmap h3 { margin: 12px 0 0; font-size: 1.08rem; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted);
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); }

/* ---------- Videoteca ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.video h3 { font-size: 1.08rem; margin: 14px 0 4px; }
.channel { margin: 0; font-size: .88rem; color: var(--text-muted); }
.video-thumb, .video-frame {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); background: var(--dark-bg); box-shadow: var(--shadow);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s; }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(31, 22, 18, .45)); }
.video-thumb:hover img { transform: scale(1.04); filter: brightness(.9); }
.play {
  position: absolute; z-index: 1; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(248, 244, 239, .92); box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  transition: transform .25s, background-color .25s;
}
.play::before {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #80583f;
}
.video-thumb:hover .play { transform: scale(1.1); background: #fff; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-note { margin: 24px 0 0; font-size: .88rem; color: var(--text-muted); }
.sub-h { margin: 56px 0 18px; font-size: 1.3rem; }

/* ---------- Questionário ---------- */
.notice {
  padding: 16px 20px; margin-bottom: 32px;
  border-left: 4px solid var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
}
.quiz {
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 28px; }
select {
  display: block; width: 100%; margin-top: 8px; padding: 12px 44px 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87955' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--text); font: 400 1rem var(--font-sans);
  appearance: none; -webkit-appearance: none;
}

.progress { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }

.q-step { margin: 0 0 6px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.q-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-fieldset legend { padding: 0; margin-bottom: 18px; font: 600 1.35rem/1.3 var(--font-serif); color: var(--heading); }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option span {
  display: flex; align-items: center; gap: 12px; height: 100%;
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: .97rem; transition: border-color .15s, background-color .15s;
}
.option span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); transition: border-width .15s, border-color .15s;
}
.option:hover span { border-color: var(--line-strong); }
.option input:checked + span { border-color: var(--accent); background: var(--bg-soft); }
.option input:checked + span::before { border: 6px solid var(--accent); }
.option input:focus-visible + span { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.option.subtle span { color: var(--text-muted); border-style: dashed; }

.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
#status { margin: 16px 0 0; font-weight: 500; }
#status:empty { display: none; }
.done { text-align: center; padding: 12px 0; }
.done svg { width: 56px; height: 56px; margin: 0 auto 14px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 1.4rem; }
.done p { color: var(--text-muted); margin: 0 auto; max-width: 46ch; }

/* ---------- Ética ---------- */
.ethics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 32px; }

/* ---------- Contato ---------- */
.contact {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--dark-bg), #6b4733);
  color: var(--dark-text);
}
.contact h2 { color: var(--dark-text); }
.contact .eyebrow { color: var(--dark-accent); }
.contact p { color: var(--dark-muted); margin: 0; }
.contact .muted { color: var(--dark-muted); }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--dark-line);
  color: var(--dark-text); text-decoration: none; font-weight: 500;
  transition: background-color .2s, transform .2s;
}
.contact-links a:hover { background: rgba(255, 255, 255, .14); transform: translateX(3px); }
.contact-links svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--dark-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .contact { background: linear-gradient(135deg, #2e221c, #3d2a20); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .contact { background: linear-gradient(135deg, #2e221c, #3d2a20); }
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-muted); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--dark-line); }
.footer-brand { font: 700 1.6rem var(--font-serif); color: var(--dark-text); margin-bottom: 10px; }
.footer-brand span { color: var(--dark-accent); }
.site-footer .muted { color: var(--dark-muted); max-width: 36ch; }
.site-footer h3 { font: 600 .78rem var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dark-accent); margin-bottom: 14px; }
.site-footer nav a, .site-footer div > a { display: block; padding: 4px 0; text-decoration: none; color: var(--dark-text); }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Animações de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; order: -1; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-art { max-width: 200px; }
  .cta-row .btn { flex: 1 1 100%; }
  .profile { flex-direction: column; padding: 24px; }
  .quiz-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat, .card-lg { padding: 24px; }
}
