/* Shared design system: light palette after zpent.io (emerald, mint→sky) and relfisaude.com.br (navy, soft blues). */
:root {
  --bg: #F8FAFF;
  --surface: #FFFFFF;
  --ink: #0F1B33;
  --navy: #1B3A6B;
  --navy-soft: #E8EDF6;
  --muted: #4F5B70;
  --faint: #9BA3B8;
  --line: #E0E7F5;
  --divider: #F0F4FB;
  --primary: #04865A;
  --primary-hover: #036D49;
  --primary-soft: #E2F5EC;
  --good: #13A36B;
  --good-soft: #E2F5EC;
  --mid: #D98A1C;
  --mid-soft: #FDF1DD;
  --bad: #E26D5C;
  --bad-soft: #FCEAE6;
  --q1: #D93F3F; --q2: #EF8A2E; --q3: #E9BE1C; --q4: #8CC152; --q5: #1E9E5A;   /* poor → excellent */
  --a: #04865A;            /* left answer pole */
  --b: #2F6FDB;            /* right answer pole */
  --g-place: #0E9F8A; --g-home: #D98A1C; --g-work: #2F6FDB; --g-money: #13A36B; --g-people: #D9577A; --g-life: #7B61D9;
  --hero: linear-gradient(135deg, hsl(150 55% 93%) 0%, hsl(200 70% 94%) 55%, hsl(220 70% 96%) 100%);
  --shadow-card: 0 2px 12px hsl(220 30% 92%);
  --shadow-soft: 0 10px 30px hsl(220 30% 90%);
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15.5px/1.55 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }
a { color: var(--primary); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); }

/* Nav */
.topnav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--divider); }
.topnav .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), #2F9FD8); color: #fff; font-size: 16px; }
.logo-mark img { width: 92%; height: 92%; display: block; }
.topnav nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.topnav nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.topnav nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--divider); }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 19px; line-height: 1; flex: none; background: color-mix(in srgb, var(--c, var(--primary)) 13%, white); }
.ico.sm { width: 28px; height: 28px; font-size: 14px; border-radius: 9px; }
.ico.lg { width: 50px; height: 50px; font-size: 25px; border-radius: 15px; }

/* Ad slots: fixed-size reserved space so ads never shift the layout.
   Filled by assets/ads.js from site.config.json (adsenseClient + adsenseSlots); removed when AdSense is off. */
.ad-slot { margin: 28px auto; max-width: 970px; min-height: 110px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 10px, var(--divider) 10px, var(--divider) 20px); position: relative; }
.ad-slot::before { content: "Advertisement"; position: absolute; top: 6px; left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.ad-slot ins { display: block; width: 100%; min-height: 90px; }
.ad-slot.rect { max-width: 336px; min-height: 290px; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
@media (max-width: 760px) { .ad-slot { min-height: 270px; } }

/* Footer */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
