/* ═════════════════════════════════════════════════════════════════════════════
   ESQUADA · Wellness premium · Brazilian Food Guide Blue (R112 G189 B209)
   Geist (display + body) + Geist Mono (data)
   Composição centrada Apple-like com atmosfera viva
   ═════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surface — 60% neutros quentes */
  --bg:           #faf8f4;
  --bg-tint:      #f3eee5;
  --bg-soft:      #ede7d9;
  --surface:      #ffffff;
  --surface-2:    #faf7f1;
  --surface-warm: #fef6ec;

  /* Brand — azul do Guia Alimentar */
  --brand:        #70bdd1;
  --brand-deep:   #4ba6bd;
  --brand-dark:   #2d8aa0;
  --brand-darker: #1c7184;
  --brand-soft:   #bfe1ea;
  --brand-tint:   #dfeff4;
  --brand-cream:  #eef7fa;

  /* Acento quente — para CTAs e moments */
  --coral:        #f4a582;
  --coral-deep:   #e0815a;
  --coral-soft:   #fce6d9;
  --coral-tint:   #fef4ed;

  /* Ink */
  --ink:          #0f1c25;
  --ink-2:        #243341;
  --muted:        #4e5a63;
  --muted-2:      #6b7580;
  --faint:        #c4cad1;

  /* Lines */
  --line:         #e4e9ec;
  --line-2:       #d4dade;

  /* Score scale — light-to-full single hue (contraste forte mesmo no segmento 1) */
  --score-1:      #a8d6e1;  /* muito ruim — azul claro visível */
  --score-2:      #82c5d6;  /* ruim — azul pálido */
  --score-3:      #5aaec3;  /* boa — azul brand */
  --score-4:      #3994ab;  /* muito boa — azul mais profundo */
  --score-5:      #1c7184;  /* excelente — azul muito profundo */

  /* Tipografia */
  --f-display:    "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:       "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:       "Geist Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-xl:  30px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* Shadows — Apple/Linear-inspired layered */
  --shadow-xs: 0 1px 1px rgba(15, 28, 37, .04);
  --shadow-sm: 0 1px 3px rgba(15, 28, 37, .06), 0 1px 2px rgba(15, 28, 37, .04);
  --shadow-md: 0 6px 16px rgba(15, 28, 37, .07), 0 2px 5px rgba(15, 28, 37, .04);
  --shadow-lg: 0 18px 40px rgba(15, 28, 37, .1), 0 6px 14px rgba(15, 28, 37, .05);
  --shadow-xl: 0 32px 80px rgba(15, 28, 37, .14), 0 10px 24px rgba(15, 28, 37, .06);
  --shadow-2xl:0 50px 120px rgba(15, 28, 37, .2), 0 20px 40px rgba(15, 28, 37, .08);
  --shadow-brand: 0 14px 36px rgba(45, 138, 160, .28);
  --shadow-brand-lg: 0 24px 60px rgba(45, 138, 160, .36);

  /* Motion */
  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
strong { font-weight: 600; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ─── Ambient background — sutil, dominado por neutros quentes ──────────── */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 12% 5%, rgba(112, 189, 209, .14), transparent 65%),
    radial-gradient(ellipse 500px 400px at 96% 35%, rgba(244, 165, 130, .1), transparent 65%);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 12px; z-index: 40;
  margin: 12px 16px 0;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(228, 233, 236, .8);
  box-shadow: var(--shadow-sm);
}
.site-header .container { padding: 0 20px; }
.header-inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 60px;
}
.brand-button {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; background: none; padding: 6px 8px; margin-left: -8px;
  border-radius: var(--r-pill);
  transition: background .2s var(--ease);
}
.brand-button:hover { background: var(--brand-tint); }
.brand-logo {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(45, 138, 160, .35), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.brand-logo::after {
  content: ""; position: absolute;
  inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.2) 50%, transparent 60%);
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50%      { transform: translateX(100%); }
}
.brand-text {
  font-family: var(--f-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
  text-transform: lowercase;
  display: inline-flex; align-items: baseline;
}
.brand-dot {
  color: var(--coral-deep);
  font-weight: 700;
  margin-left: 1px;
  animation: blink 2.4s var(--ease) infinite;
}
@keyframes blink {
  0%, 90%, 100% { opacity: 1; }
  93%, 97% { opacity: .35; }
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: 22px; }
.nav-link {
  font-family: var(--f-body);
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  border: none; background: none;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: color .2s var(--ease), background .2s var(--ease);
  cursor: pointer; position: relative;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link-btn { cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle {
  display: none; width: 38px; height: 38px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 11px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--ink); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 600; font-size: 14.5px;
  letter-spacing: -.01em;
  border: none;
  cursor: pointer; min-height: 44px;
  white-space: nowrap;
  position: relative;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .2s, color .2s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn-lg { min-height: 52px; padding: 15px 30px; font-size: 15.5px; }
.btn-sm { min-height: 34px; padding: 7px 16px; font-size: 13px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover {
  box-shadow: var(--shadow-brand-lg), inset 0 1px 0 rgba(255,255,255,.3);
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-darker) 100%);
}
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); background: var(--surface-2); }
.btn-outline {
  background: var(--surface); color: var(--brand-darker);
  border: 1.5px solid var(--brand-soft);
}
.btn-outline:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-xs); }
.btn-header { min-height: 44px; padding: 10px 16px; font-size: 13.5px; }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Apple-style link CTA */
.link-cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 12px;
  background: none; border: none;
  font-family: var(--f-body);
  font-size: 15px; font-weight: 600;
  color: var(--brand-darker);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: gap .2s var(--ease), background .15s;
  min-height: 44px;
}
.link-cta:hover { gap: 8px; background: var(--brand-tint); }
.link-cta svg { transition: transform .25s var(--ease); }
.link-cta:hover svg { transform: translateX(2px); }

/* ─── Eyebrow & section labels ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--brand-soft);
  box-shadow: var(--shadow-xs);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  letter-spacing: -.005em;
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(112, 189, 209, .2);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(112, 189, 209, .2); }
  50%      { box-shadow: 0 0 0 7px rgba(112, 189, 209, .08); }
}
.eyebrow-gold {
  border-color: var(--coral-soft);
  color: var(--coral-deep);
}
.section-label {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 13px; font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand-darker);
  margin-bottom: 12px;
}
.section-h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 36px;
}

/* ─── Home Shell ─────────────────────────────────────────────────────────── */
.home-shell { padding: 8px 0 80px; }

/* ─── HERO — Apple-like centered composition ─────────────────────────────── */
.home-hero {
  position: relative;
  padding: 64px 0 24px;
  text-align: center;
  isolation: isolate;
}
.home-hero::before {
  content: ""; position: absolute;
  top: 30px; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 600px;
  background:
    radial-gradient(circle at 30% 40%, rgba(112, 189, 209, .25), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(244, 165, 130, .15), transparent 55%);
  filter: blur(60px);
  z-index: -1; pointer-events: none;
  animation: drift 20s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50%      { transform: translateX(-50%) translateY(-20px) scale(1.04); }
}

.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.hero-inner .eyebrow { animation: rise .7s var(--ease-out) both; }

.hero-h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.6vw, 78px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .98;
  color: var(--ink);
  margin-bottom: 28px;
  animation: rise .9s .08s var(--ease-out) both;
}
.hero-h1-soft {
  display: block;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.hero-sub {
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.45;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 400;
  animation: rise .9s .2s var(--ease-out) both;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  animation: rise .9s .32s var(--ease-out) both;
}

/* Hero showcase — score card as "product image" */
.hero-showcase {
  margin: 64px auto 0;
  max-width: 720px;
  position: relative;
  animation: rise 1s .42s var(--ease-out) both;
}
.hero-showcase::before {
  content: ""; position: absolute;
  bottom: -40px; left: 5%; right: 5%; height: 80px;
  background: radial-gradient(ellipse, rgba(112, 189, 209, .45), transparent 65%);
  filter: blur(30px); z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

.score-card {
  position: relative;
  display: block; width: 100%;
  padding: 0;
  border-radius: var(--r-2xl);
  background:
    linear-gradient(155deg, #fff 0%, #fff 50%, var(--brand-cream) 100%);
  border: 1px solid rgba(228, 233, 236, .9);
  box-shadow: var(--shadow-2xl);
  text-align: left;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.score-card[disabled] { cursor: default; }
.score-card:not([disabled]):hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 60px 140px rgba(15, 28, 37, .22), 0 24px 50px rgba(15, 28, 37, .1);
}
.score-card-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(112, 189, 209, .12), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(244, 165, 130, .08), transparent 50%);
  pointer-events: none;
}
.score-card-content {
  position: relative;
  padding: 36px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.score-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.score-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: uppercase;
}
.score-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(112, 189, 209, .25);
  animation: pulse 2s var(--ease) infinite;
}
.score-indicator {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
}
.score-value {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 44px); font-weight: 600;
  color: var(--ink); letter-spacing: -.035em; line-height: 1;
}
.score-meta {
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
}
.score-scale { margin-top: 12px; }
/* Score bar — single-hue light-to-full gradient */
.scale-bar {
  display: flex; height: 12px; border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--bg-tint);
  position: relative;
}
.scale-segment {
  flex: 1;
  position: relative;
}
.scale-segment + .scale-segment { box-shadow: inset 1px 0 0 rgba(255,255,255,.6); }
.seg-muito-ruim { background: var(--score-1); }
.seg-ruim       { background: var(--score-2); }
.seg-boa        { background: var(--score-3); }
.seg-muito-boa  { background: var(--score-4); }
.seg-excelente  { background: var(--score-5); }
.scale-labels {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px; color: var(--muted); margin-top: 8px;
  font-weight: 500;
}

/* Legacy classes (still referenced in CSS but not used in hero now) */
.hero-stats, .hero-chips, .hero-meta { display: none; }

/* ─── Home sections ──────────────────────────────────────────────────────── */
.home-section {
  margin-top: 96px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  position: relative;
}
.home-section > .section-label,
.home-section > .section-h2 {
  text-align: center;
  display: block;
}
.home-section > .section-label { margin-bottom: 10px; }
.home-section > .section-h2 { max-width: 720px; margin: 0 auto 40px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.revealed { opacity: 1; transform: translateY(0); }

/* ─── Area cards ─────────────────────────────────────────────────────────── */
.area-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 1000px; margin: 0 auto;
}
.area-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px 30px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.area-card::before {
  content: ""; position: absolute;
  top: -100px; right: -100px; width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 189, 209, .12), transparent 65%);
  transition: transform .8s var(--ease);
}
.area-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}
.area-card:hover::before { transform: translate(-30px, 30px) scale(1.3); }
.area-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.area-user {
  background: linear-gradient(150deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-deep) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-brand);
}
.area-user::before { background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%); }
.area-user .area-icon {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.area-user .area-kicker { color: rgba(255, 255, 255, .75); }
.area-user p { color: rgba(255, 255, 255, .85); }
.area-user .area-arrow { color: #fff; background: rgba(255,255,255,.18); }
.area-user:hover { box-shadow: 0 28px 60px rgba(45, 138, 160, .45); }
.area-researcher {
  background: linear-gradient(155deg, #fef6ec 0%, #fce6d9 100%);
  border-color: rgba(244, 165, 130, .35);
}
.area-researcher::before { background: radial-gradient(circle, rgba(244, 165, 130, .2), transparent 65%) !important; }
.area-researcher .area-icon {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(224, 129, 90, .3);
}
.area-researcher .area-kicker { color: var(--coral-deep); }
.area-researcher .area-arrow { color: #fff; background: var(--coral-deep); box-shadow: 0 4px 12px rgba(224, 129, 90, .35); }
.area-researcher:hover { box-shadow: 0 28px 60px rgba(224, 129, 90, .22); border-color: var(--coral); }
.area-body { flex: 1; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.area-kicker {
  font-size: 12px; font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase;
}
.area-card strong {
  font-family: var(--f-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1.12;
  display: block;
}
.area-card p { font-size: 14.5px; line-height: 1.55; margin: 0; }
.area-arrow {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  transition: transform .3s var(--ease);
  position: relative; z-index: 1;
}
.area-card:hover .area-arrow { transform: translate(4px, -4px); }

/* ─── Steps — DARK CONTRAST SECTION ──────────────────────────────────────── */
#home-how {
  padding: 64px clamp(28px, 6vw, 72px) 56px;
  border-radius: var(--r-2xl);
  background:
    radial-gradient(circle at 15% 20%, rgba(112, 189, 209, .22), transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(244, 165, 130, .14), transparent 50%),
    linear-gradient(160deg, #0f1c25 0%, #16293a 60%, #1c3d52 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
#home-how::before {
  content: ""; position: absolute;
  top: 30px; right: 40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 189, 209, .35), transparent 65%);
  filter: blur(40px);
  animation: float 16s ease-in-out infinite;
}
#home-how > .section-label { color: var(--brand); }
#home-how > .section-h2 { color: #fff; position: relative; }
#home-how > .section-h2::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--coral), var(--brand));
  border-radius: 2px;
}

.steps-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  max-width: 1000px; margin: 0 auto;
  position: relative;
}
.step {
  display: flex; flex-direction: column; gap: 16px;
  padding: 30px 26px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), background .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute;
  bottom: -60px; right: -60px; width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 165, 130, .15), transparent 65%);
  transition: transform .6s var(--ease);
}
.step:nth-child(odd)::after { background: radial-gradient(circle, rgba(112, 189, 209, .18), transparent 65%); }
.step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
}
.step:hover::after { transform: scale(1.4); }
.step-num {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 16px; font-weight: 700;
  color: #fff;
  border-radius: 14px;
  letter-spacing: -.02em;
  position: relative; z-index: 1;
  box-shadow: var(--shadow-brand-lg);
}
.step:nth-child(1) .step-num { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.step:nth-child(3) .step-num { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%); box-shadow: 0 14px 36px rgba(224, 129, 90, .35); }
.step:nth-child(5) .step-num { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-darker) 100%); }
.step-body { position: relative; z-index: 1; }
.step-body strong {
  font-family: var(--f-display);
  display: block; font-size: 20px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: 8px;
  color: #fff;
}
.step-body p { font-size: 14.5px; color: rgba(255, 255, 255, .68); line-height: 1.55; margin: 0; }
.step-connector { display: none; }

/* ─── About ──────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
  text-align: left;
}
.about-left .section-label { text-align: left; margin-bottom: 12px; }
.about-left .section-h2 { text-align: left; max-width: 440px; margin: 0 0 18px; }
.about-intro {
  font-size: 16.5px; line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.about-intro strong { color: var(--brand-darker); font-weight: 700; }
.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-item {
  display: flex; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.feature-item:hover {
  border-color: var(--brand-soft);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.fi-dot {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand-darker);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  box-shadow: var(--shadow-xs);
}
.feature-item strong {
  display: block; font-size: 15px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.feature-item p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }

.about-avaliado-head { margin-bottom: 16px; }
.about-avaliado-head .section-label { text-align: left; }
.about-avaliado-head h3 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600; letter-spacing: -.025em; line-height: 1.12;
  margin-top: 4px;
}
.avaliado-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.avaliado-card {
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
  box-shadow: var(--shadow-xs);
}
.avaliado-card:hover {
  border-color: var(--brand-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.avaliado-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand-darker);
  display: inline-flex; align-items: center; justify-content: center;
}
.avaliado-card strong {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: -.015em;
}
.avaliado-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

.cat-scale-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: linear-gradient(145deg, #fef6ec 0%, #fce6d9 100%);
  border: 1px solid var(--coral-soft);
  position: relative;
  overflow: hidden;
  color: var(--ink);
  box-shadow: var(--shadow-md);
}
.cat-scale-card::before {
  content: ""; position: absolute;
  top: -50px; right: -50px; width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 165, 130, .35), transparent 65%);
  filter: blur(20px);
}
.csc-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 16px;
  position: relative;
}
.csc-rows { display: flex; flex-direction: column; gap: 4px; position: relative; }
.csc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(224, 129, 90, .12);
}
.csc-row:last-child { border-bottom: none; }
.csc-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(15, 28, 37, .12);
}
.csc-row:nth-child(1) .csc-dot { background: var(--score-1); }
.csc-row:nth-child(2) .csc-dot { background: var(--score-2); }
.csc-row:nth-child(3) .csc-dot { background: var(--score-3); }
.csc-row:nth-child(4) .csc-dot { background: var(--score-4); }
.csc-row:nth-child(5) .csc-dot { background: var(--score-5); }
.csc-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--ink); }
.csc-range {
  font-family: var(--f-mono);
  font-size: 11.5px; color: var(--coral-deep);
  font-weight: 600;
}

/* ─── Quiz ───────────────────────────────────────────────────────────────── */
.quiz-shell {
  margin-top: 32px; padding: 40px 44px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.quiz-topbar {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.quiz-progress-wrap { flex: 1; max-width: 480px; margin-left: auto; }
.quiz-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--brand-darker);
  margin-bottom: 8px;
}
.quiz-progress-track {
  height: 8px; border-radius: var(--r-pill);
  background: var(--bg-soft); overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand), var(--brand-dark));
  transition: width .35s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.quiz-progress-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: scan 2s linear infinite;
}
@keyframes scan {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.quiz-body { padding: 0 0 32px; }
.q-text {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 600;
  line-height: 1.25; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 28px;
  max-width: 740px;
}
.q-options {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.option-btn {
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink); text-align: left;
  font-family: var(--f-body);
  font-weight: 500; font-size: 15px; line-height: 1.5;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s var(--ease), box-shadow .15s;
}
.option-btn:hover {
  border-color: var(--brand-soft);
  background: var(--brand-cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.option-btn.selected {
  border-color: var(--brand);
  background: var(--brand-tint);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(112, 189, 209, .18);
}
.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none; padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .15s, gap .15s var(--ease), color .15s;
}
.back-link:hover { background: var(--bg-soft); gap: 10px; color: var(--brand-darker); }

/* ─── Result ─────────────────────────────────────────────────────────────── */
.result-shell {
  margin-top: 32px; padding: 44px 48px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.result-back { margin-bottom: 28px; }
.result-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: start;
}
.result-left { display: flex; flex-direction: column; gap: 16px; }
.result-score {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 80px); font-weight: 600;
  letter-spacing: -.05em; line-height: 1;
  background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 60%, var(--brand-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.result-grade {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--brand-tint);
  color: var(--brand-darker);
  border: 1px solid var(--brand-soft);
  display: inline-block; align-self: flex-start;
  letter-spacing: -.015em;
}
.liquid-wrap { margin-top: 12px; }
.liquid-track {
  position: relative; height: 36px;
  border-radius: var(--r-pill);
  background: var(--bg-tint);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 28, 37, .05);
}
.liquid-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; min-width: 0; max-width: 100%;
  border-radius: inherit;
  transition: width 2.4s var(--ease-out);
  background: linear-gradient(90deg, var(--score-3), var(--score-5));
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28, 113, 132, .25);
}
.liquid-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation: scan 3s linear infinite;
  pointer-events: none;
}
/* Light-to-full gradient per category — same hue family, intensifying */
.liquid-fill.cat-muito-ruim { background: linear-gradient(90deg, var(--score-1), var(--score-2)); }
.liquid-fill.cat-ruim       { background: linear-gradient(90deg, var(--score-1), var(--score-3)); }
.liquid-fill.cat-boa        { background: linear-gradient(90deg, var(--score-1), var(--score-4)); }
.liquid-fill.cat-muito-boa  { background: linear-gradient(90deg, var(--score-2), var(--score-5)); }
.liquid-fill.cat-excelente  { background: linear-gradient(90deg, var(--score-3), var(--score-5)); }
.liquid-legend {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px; color: var(--muted);
  font-weight: 500; margin-top: 10px;
}
.result-right { display: flex; flex-direction: column; gap: 18px; }
.result-text {
  font-size: 16px; line-height: 1.6; color: var(--ink-2);
}
.result-pills { display: none; flex-direction: column; gap: 8px; }
.result-pills.show-researcher { display: flex; }
.rpill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.rpill:hover { border-color: var(--brand-soft); background: var(--brand-cream); }
.rpill-label {
  font-size: 11.5px; font-weight: 600;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.rpill strong {
  font-family: var(--f-mono);
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.result-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.result-actions .btn { width: 100%; }

/* ─── History ────────────────────────────────────────────────────────────── */
.history-shell, .researcher-shell { padding: 24px 0 64px; }
.view-back { margin-bottom: 22px; }
.view-hero { margin-bottom: 36px; text-align: center; }
.view-hero .eyebrow { margin-bottom: 18px; }
.view-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 600; letter-spacing: -.04em; line-height: 1.02;
  margin-bottom: 10px;
}
.view-hero p { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }

.history-empty {
  text-align: center; padding: 80px 28px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.empty-icon {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-tint), var(--brand-soft));
  color: var(--brand-darker);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-sm);
}
.history-empty strong {
  font-family: var(--f-display);
  display: block; font-size: 22px; font-weight: 600;
  margin-bottom: 8px; letter-spacing: -.025em;
}
.history-empty p { color: var(--muted); margin: 0 0 24px; }

.history-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 22px;
}
.hstat {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), box-shadow .25s;
  position: relative; overflow: hidden;
}
.hstat::before {
  content: ""; position: absolute;
  top: -30px; right: -30px; width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 189, 209, .1), transparent 65%);
}
.hstat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hstat-label {
  display: block;
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: 10px;
  position: relative;
}
.hstat-value {
  display: block;
  font-family: var(--f-display);
  font-size: 32px; font-weight: 700;
  letter-spacing: -.035em; line-height: 1;
  color: var(--ink);
  position: relative;
}
.hstat-sub {
  display: block;
  font-size: 12px; color: var(--muted); margin-top: 4px;
  position: relative;
}
.history-chart-block {
  padding: 28px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hchart-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.hchart-head strong {
  font-family: var(--f-display);
  font-size: 16px; font-weight: 600;
}
.history-chart-legend {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.legend-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 4px;
}
.ld-muito-ruim { background: var(--score-1); }
.ld-ruim       { background: var(--score-2); }
.ld-boa        { background: var(--score-3); }
.ld-muito-boa  { background: var(--score-4); }
.ld-excelente  { background: var(--score-5); }
.hchart-wrap {
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface-2), var(--brand-cream));
}
.history-chart-svg { width: 100%; height: 220px; display: block; }
.history-list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.history-list-head strong { font-family: var(--f-display); font-size: 17px; font-weight: 600; }
.btn-text-danger {
  border: none; background: none;
  padding: 6px 12px; border-radius: var(--r-pill);
  color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-text-danger:hover { background: var(--coral-soft); color: var(--coral-deep); }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.hcard {
  display: grid; grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.hcard:hover {
  transform: translateY(-2px) translateX(2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
}
.hcard-num {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600; color: var(--muted-2);
  text-align: center;
}
.hcard-body { min-width: 0; }
.hcard-date {
  font-size: 12.5px; color: var(--muted); margin-bottom: 4px;
}
.hcard-score {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
}
.hcard-cat {
  display: inline-block; margin-top: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600;
}
.hcard-pills { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.hcard-pill { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.hcard-pill strong { color: var(--ink); font-weight: 600; }

/* Category badges — all in blue hue family */
.cat-badge-muito-ruim, .hcard-cat.cat-badge-muito-ruim { background: var(--score-1); color: var(--brand-darker); }
.cat-badge-ruim,       .hcard-cat.cat-badge-ruim       { background: var(--score-2); color: var(--brand-darker); }
.cat-badge-boa,        .hcard-cat.cat-badge-boa        { background: var(--score-3); color: #fff; }
.cat-badge-muito-boa,  .hcard-cat.cat-badge-muito-boa  { background: var(--score-4); color: #fff; }
.cat-badge-excelente,  .hcard-cat.cat-badge-excelente  { background: var(--score-5); color: #fff; }
.cat-badge { font-weight: 600; font-size: 12px; }

.cat-muito-ruim-row { background: var(--score-1); color: var(--brand-darker); }
.cat-ruim-row       { background: var(--score-2); color: var(--brand-darker); }
.cat-boa-row        { background: var(--score-3); color: #fff; }
.cat-muito-boa-row  { background: var(--score-4); color: #fff; }
.cat-excelente-row  { background: var(--score-5); color: #fff; }

/* ─── Researcher ─────────────────────────────────────────────────────────── */
.researcher-hero {
  padding: 44px 40px;
  border-radius: var(--r-2xl);
  background: linear-gradient(140deg, var(--brand-darker) 0%, var(--brand-dark) 60%, var(--brand) 100%);
  color: #fff;
  box-shadow: var(--shadow-xl);
  margin-bottom: 28px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
  align-items: start;
  position: relative; overflow: hidden;
}
.researcher-hero::before {
  content: ""; position: absolute;
  top: -50%; right: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(244, 165, 130, .25), transparent 60%);
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
}
.researcher-hero::after {
  content: ""; position: absolute;
  bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .15), transparent 65%);
  pointer-events: none;
  animation: float 18s ease-in-out -7s infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px, -20px) scale(1.06); }
}
.rh-left { position: relative; }
.rh-left h1 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.8vw, 54px); font-weight: 600;
  letter-spacing: -.04em; line-height: 1.02; margin: 14px 0 12px;
  color: #fff;
}
.rh-left p {
  color: rgba(255, 255, 255, .82); max-width: 480px;
  font-size: 16.5px; line-height: 1.55;
}
.rh-right { display: flex; flex-direction: column; gap: 14px; position: relative; }
.rchips {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.rchip {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  transition: background .2s;
}
.rchip:hover { background: rgba(255, 255, 255, .18); }
.rchip strong {
  font-family: var(--f-display);
  font-size: 18px; font-weight: 700;
  color: #ffd8c0;
  letter-spacing: -.02em;
}
.rchip span {
  font-size: 11.5px; color: rgba(255, 255, 255, .9);
  font-weight: 500;
}
.researcher-user-bar {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-md);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
}
.user-bar-inner { display: flex; align-items: center; gap: 12px; }
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 216, 192, .25);
  border: 1px solid rgba(255, 216, 192, .35);
  color: #ffd8c0;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.user-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-bar-greeting {
  font-size: 10px; color: rgba(255, 255, 255, .6);
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.user-bar-info strong {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-bar-email {
  font-size: 11.5px; color: rgba(255, 255, 255, .55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-logout {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .9);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.btn-logout:hover { background: rgba(255, 255, 255, .22); }

#btn-auth-header.is-logged-in { display: flex; align-items: center; gap: 8px; }
.header-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Calc / Batch blocks */
.calc-block, .batch-block {
  margin-bottom: 22px;
  padding: 40px;
  border-radius: var(--r-2xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.block-head { margin-bottom: 28px; text-align: left; }
.block-head h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.6vw, 42px); font-weight: 600;
  letter-spacing: -.035em; line-height: 1.04; margin-top: 8px;
}
.calc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.calc-card {
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s;
}
.calc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-soft);
  background: var(--surface);
}
.calc-card-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: -.01em;
  box-shadow: var(--shadow-xs);
}
.ci-grm { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.ci-eap { background: linear-gradient(135deg, #5a8db5, #3a6ea0); }
.ci-f1  { background: linear-gradient(135deg, var(--brand-deep), var(--brand-darker)); }
.ci-cat { background: linear-gradient(135deg, #8a6db5, #6b4a9c); }
.ci-par { background: linear-gradient(135deg, var(--coral-deep), var(--coral)); }
.ci-out { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); }
.calc-card strong {
  font-family: var(--f-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; line-height: 1.18;
}
.calc-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.calc-card em { font-style: normal; font-weight: 700; color: var(--ink); }
.cat-table { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 600;
}
.params-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.param-chip {
  padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
}
.output-col-list { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.output-col {
  display: flex; align-items: baseline; gap: 10px;
  padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--brand-cream);
}
.output-col code {
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  color: var(--brand-darker); flex-shrink: 0; min-width: 110px;
}
.output-col span { color: var(--muted); font-size: 12.5px; }

/* Upload */
.upload-steps { display: flex; flex-direction: column; gap: 14px; }
.ustep {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.ustep:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.ustep-num {
  flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-family: var(--f-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: -.02em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
}
.ustep-body { flex: 1; min-width: 0; }
.ustep-body strong {
  font-family: var(--f-display);
  display: block; font-size: 21px; font-weight: 600;
  letter-spacing: -.025em; margin-bottom: 8px;
}
.ustep-body p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ustep-body code {
  font-family: var(--f-mono); font-size: .9em;
  background: var(--brand-cream); padding: 2px 7px;
  border-radius: 5px; color: var(--brand-darker);
}
.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 38px 24px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-2);
  background: var(--surface);
  cursor: pointer; text-align: center;
  position: relative; margin-bottom: 14px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand); background: var(--brand-cream);
  box-shadow: 0 0 0 4px rgba(112, 189, 209, .12);
}
.upload-zone.has-file {
  border-color: var(--brand); border-style: solid;
  background: var(--brand-tint);
}
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { color: var(--brand-darker); }
.upload-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.upload-hint { font-size: 12.5px; color: var(--muted); }
.btn-batch { width: 100%; min-height: 52px; }
.researcher-status { margin-top: 14px; }
.status-msg {
  padding: 13px 18px;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 14px;
}
.status-loading { background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand-darker); }
.status-success { background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand-darker); }
.status-error   { background: var(--coral-soft); border: 1px solid var(--coral); color: var(--coral-deep); }

/* Dashboard */
.analysis-dashboard { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.dash-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dash-filename {
  font-family: var(--f-mono); font-size: 12.5px; color: var(--muted);
}
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dstat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-xs);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.dstat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dstat-label {
  font-size: 11.5px; color: var(--muted); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.dstat-value {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 700;
  color: var(--ink); line-height: 1.1; letter-spacing: -.035em;
}
.dstat-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-charts-row {
  display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start;
}
.dash-chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.dash-chart-title {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dash-chart-sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.dash-chart-title-row {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.dash-donut-layout { display: flex; align-items: center; gap: 14px; }
.dash-donut-svg { width: 130px; height: 130px; flex-shrink: 0; }
.dash-donut-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.dleg-item { display: flex; align-items: center; gap: 6px; }
.dleg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dleg-label { color: var(--muted); }
.dleg-val { font-family: var(--f-mono); font-weight: 600; color: var(--ink); margin-left: auto; padding-left: 6px; }
.dash-hist-svg { width: 100%; display: block; }
.dash-items-scroll { overflow-x: auto; }
.dash-items-svg { display: block; min-width: 600px; }
.dash-errors-panel {
  background: var(--coral-tint);
  border: 1px solid var(--coral-soft);
  border-radius: var(--r-md); padding: 18px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.dash-errors-head { display: flex; flex-direction: column; gap: 6px; }
.dash-errors-title-row { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dash-errors-badge {
  background: var(--coral-deep); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: var(--r-pill);
  padding: 2px 9px;
}
.dash-errors-note { margin: 0; font-size: 12.5px; color: var(--coral-deep); }
.dash-table-scroll { overflow-x: auto; border-radius: var(--r-sm); }
.dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dash-table th {
  background: var(--bg-soft); padding: 10px 14px; text-align: left;
  font-weight: 600; font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.dash-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--brand-cream); }
.dash-table-sm th, .dash-table-sm td { padding: 7px 12px; }

/* ─── Auth Modal ─────────────────────────────────────────────────────────── */
.auth-modal {
  border: none; border-radius: var(--r-2xl); padding: 0;
  width: min(94vw, 440px);
  margin: auto;
  box-shadow: var(--shadow-2xl);
  background: var(--surface);
}
.auth-modal::backdrop {
  background: rgba(15, 28, 37, .42);
  backdrop-filter: blur(12px);
}
.auth-modal-inner { padding: 38px 38px 32px; position: relative; max-height: 92dvh; overflow-y: auto; }
.auth-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, color .2s, transform .3s var(--ease);
}
.auth-close:hover { background: var(--bg-soft); color: var(--ink); transform: rotate(90deg); }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.auth-brand-name {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -.03em; text-transform: lowercase;
  color: var(--ink);
}
.auth-brand-dot {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(45, 138, 160, .35);
  position: relative; overflow: hidden;
}
.auth-brand-dot::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
}
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 10px; border: none;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px; font-weight: 600; color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--brand-darker);
  box-shadow: var(--shadow-sm);
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-subtitle { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
}
.auth-field-hint { font-weight: 400; color: var(--muted); }
.auth-field input {
  width: 100%; padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font: inherit; font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(112, 189, 209, .2);
}
.auth-field input::placeholder { color: var(--faint); }
.auth-error {
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: var(--coral-soft);
  border: 1px solid #f5b8a0;
  color: var(--coral-deep);
  font-size: 13.5px; font-weight: 600;
}
.auth-submit { width: 100%; min-height: 48px; font-size: 15px; }
.auth-switch { margin: 4px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch-btn {
  border: none; background: none; padding: 0;
  color: var(--brand-darker); font-weight: 600; font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1.5px solid var(--brand-soft);
  transition: border-color .15s;
}
.auth-switch-btn:hover { border-bottom-color: var(--brand); }

/* Código de verificação — input grande e centralizado */
.code-input {
  text-align: center;
  letter-spacing: 10px;
  font-size: 28px;
  font-weight: 700;
  font-family: var(--f-mono);
  padding: 18px 12px !important;
  caret-color: var(--brand);
}
.code-input::placeholder { letter-spacing: 4px; font-size: 20px; font-weight: 400; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex; align-items: center; gap: 10px;
}
.footer-brand {
  font-family: var(--f-display);
  font-size: 15px; font-weight: 700;
  letter-spacing: -.025em; text-transform: lowercase;
  color: var(--ink);
}
.footer-brand-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}
.footer-links {
  display: flex; align-items: center; gap: 4px;
}
.footer-link {
  display: inline-flex; align-items: center;
  padding: 5px 10px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-pill);
  transition: color .15s, background .15s;
  border: none; background: none; cursor: pointer;
  font-family: var(--f-body);
}
.footer-link:hover { color: var(--ink); background: var(--bg-soft); }
.site-footer small { font-size: 13px; color: var(--muted); }

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--brand-dark); color: #fff;
  font-weight: 600; font-size: 14px;
  transition: top .2s;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

.req-marker { color: var(--coral-deep); margin-left: 2px; font-weight: 700; }

/* Active nav link */
.nav-link.nav-active { color: var(--ink); background: var(--bg-soft); }

/* Scroll offset for sticky header (≈ 60px header + 20px margin) */
#home-hero, #home-actions, #home-how, #home-about { scroll-margin-top: 88px; }

/* Password field with toggle */
.auth-field-pw { position: relative; }
.auth-field-pw input { padding-right: 46px !important; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 8px;
  border: none; background: none;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Focus-visible global polish */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible { border-radius: var(--r-pill); }

/* ─── Info / Sobre ───────────────────────────────────────────────────────── */
.info-shell { padding: 0 0 100px; }

/* Hero */
.info-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 0 52px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.info-hero-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
  margin: 10px 0 12px;
}
.info-hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}
.info-hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
}
.ihs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 28px;
  gap: 4px;
}
.ihs-stat + .ihs-stat { border-left: 1px solid var(--line); }
.ihs-val {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-darker);
  letter-spacing: -.02em;
}
.ihs-label {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Blocks */
.info-block {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.info-block:last-child { border-bottom: none; }

.info-block-head { margin-bottom: 28px; }
.info-h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--ink);
  margin: 8px 0 0;
}
.info-block-sub {
  margin-top: 10px;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.info-prose { max-width: 760px; margin-bottom: 32px; }
.info-prose p {
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.75;
  font-size: 1rem;
}
.info-prose p:last-child { margin-bottom: 0; }

.info-domains-grid { margin-top: 8px; }

/* Steps */
.isd-steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.isd-step {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s;
}
.isd-step:hover { border-color: var(--brand-soft); }
.isd-num-wrap {
  width: 64px;
  flex-shrink: 0;
  background: var(--brand-cream);
  border-right: 1px solid var(--brand-soft);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}
.isd-num {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-darker);
  letter-spacing: .02em;
}
.isd-body { padding: 22px 26px; }
.isd-body strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.isd-body p { color: var(--muted); font-size: .875rem; line-height: 1.7; }

/* Methodology grid */
.ims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ims-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.ims-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-darker);
  background: var(--brand-cream);
  border: 1px solid var(--brand-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.ims-card strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.ims-card p { font-size: .8125rem; color: var(--muted); line-height: 1.65; }

/* Category cards — left accent border */
.info-cats { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.info-cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--r-md);
  padding: 16px 20px;
  transition: box-shadow .15s;
}
.info-cat-card:hover { box-shadow: var(--shadow-sm); }
.ic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.ic-top strong { font-size: .9375rem; font-weight: 600; }
.ic-range {
  font-family: var(--f-mono);
  font-size: .75rem;
  color: var(--muted-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.info-cat-card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.ic-muito-ruim { border-left-color: #d94f4f; }
.ic-muito-ruim .ic-top strong { color: #b03030; }
.ic-ruim { border-left-color: #e8874a; }
.ic-ruim .ic-top strong { color: #b05020; }
.ic-boa { border-left-color: #d4a820; }
.ic-boa .ic-top strong { color: #7a6000; }
.ic-muito-boa { border-left-color: #4daa6a; }
.ic-muito-boa .ic-top strong { color: #1a6035; }
.ic-excelente { border-left-color: #2e8b57; }
.ic-excelente .ic-top strong { color: #104828; }

/* FAQ accordion */
.faq-list { max-width: 760px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--surface);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.faq-q:hover { background: var(--brand-cream); color: var(--brand-darker); }
.faq-q[aria-expanded="true"] { background: var(--brand-cream); color: var(--brand-darker); }
.faq-chevron {
  flex-shrink: 0;
  color: var(--muted-2);
  transition: transform .22s var(--ease);
}
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 4px 20px 18px;
  background: var(--brand-cream);
  border-top: 1px solid var(--brand-soft);
}
.faq-a p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.75;
  padding-top: 14px;
}
.faq-a p + p { padding-top: 8px; }
.faq-a code {
  font-family: var(--f-mono);
  font-size: .8125rem;
  background: rgba(75, 166, 189, .12);
  color: var(--brand-darker);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .info-hero { flex-direction: column; align-items: flex-start; gap: 32px; }
  .info-hero-stats { width: 100%; }
  .ihs-stat { flex: 1; }
  .ims-grid { grid-template-columns: repeat(3, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-left .section-h2, .about-left .section-label { text-align: center; }
  .about-left .section-h2 { margin: 0 auto 18px; }
}
@media (max-width: 900px) {
  .home-hero { padding: 40px 0 16px; }
  .hero-showcase { margin-top: 48px; }
  .area-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .result-body { grid-template-columns: 1fr; gap: 30px; }
  .history-stats { grid-template-columns: repeat(2, 1fr); }
  .hcard { grid-template-columns: 24px 1fr; }
  .hcard-pills { display: none; }
  .dash-charts-row { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .researcher-hero { grid-template-columns: 1fr; padding: 32px 28px; }
  .rchips { grid-template-columns: 1fr 1fr 1fr; }
  .calc-block, .batch-block { padding: 28px 24px; }
  .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 12px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0 0; margin: 0; border-top: 1px solid var(--line); }
  .nav.nav-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .score-card-content { padding: 28px; }
}
/* ─── Reduced motion — disable decorative animations ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Researcher link in hamburger nav — hidden on desktop, visible in mobile menu */
.nav-researcher-mobile { display: none; }
@media (max-width: 900px) {
  .nav-researcher-mobile { display: block; }
}

/* Ensure hero decorative blobs never overlap text */
.researcher-hero::before, .researcher-hero::after { z-index: 0; }
.rh-left, .rh-right { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .info-hero { padding: 36px 0 32px; }
  .info-hero-stats { flex-direction: column; }
  .ihs-stat + .ihs-stat { border-left: none; border-top: 1px solid var(--line); }
  .ims-grid { grid-template-columns: 1fr; }
  .isd-num-wrap { width: 52px; padding-top: 20px; }
  .isd-body { padding: 18px 20px; }
  .ic-top { flex-wrap: wrap; }
  .container { padding: 0 18px; }
  .site-header { margin: 8px 8px 0; }
  .btn { width: 100%; }
  .header-actions { width: 100%; order: 4; }
  .header-actions .btn { flex: 1; }
  /* Hide researcher button from header on small screens — accessible via hamburger menu */
  #btn-researcher-header { display: none; }
  .cta-row .btn, .cta-row .link-cta { width: 100%; }
  .q-options { grid-template-columns: 1fr; }
  .avaliado-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
  .quiz-shell, .result-shell { padding: 28px 22px; }
  .calc-grid { grid-template-columns: 1fr; }
  .home-section { margin-top: 64px; }

  /* ── Researcher area mobile ── */
  .researcher-hero { padding: 20px 18px; gap: 14px; }
  .rh-left h1 { font-size: 26px; margin: 8px 0 8px; }
  .rh-left p { font-size: 14.5px; }
  .rchips { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .rchip { padding: 8px 6px; gap: 2px; }
  .rchip strong { font-size: 14px; }
  .rchip span { font-size: 9.5px; }
  .researcher-user-bar { padding: 10px 12px; }
  .user-bar-inner { gap: 8px; }
  .user-avatar { width: 34px; height: 34px; font-size: 11px; }

  .calc-block, .batch-block { padding: 18px 14px; border-radius: var(--r-lg); }
  .block-head { margin-bottom: 18px; }
  .block-head h2 { font-size: 24px; margin-top: 4px; }
  .calc-card { padding: 16px; gap: 10px; }
  .calc-card-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 11px; }
  .calc-card strong { font-size: 16px; }

  .ustep { flex-direction: column; gap: 12px; padding: 18px; }
  .ustep-num { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
  .ustep-body strong { font-size: 17px; }
  .output-col code { min-width: 80px; }

  .dash-charts-row { gap: 10px; }
  .dash-chart-card { padding: 16px; }
}
