/* ============================================================
   MBA House — gmat.com.br
   Design system: tokens + base + components
   Custom OKLCH palette: deep ink navy + refined teal accent +
   warm neutral surfaces. Light + dark mode.
   ============================================================ */

/* ---------- Type scale (fluid) ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 680px;
  --content-default: 1000px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'General Sans', system-ui, sans-serif;
  --font-body: 'Satoshi', 'General Sans', system-ui, sans-serif;
}

/* ---------- Palette: LIGHT ---------- */
:root,
[data-theme='light'] {
  /* Warm neutral surfaces */
  --color-bg: oklch(0.985 0.006 95);
  --color-surface: oklch(1 0 0);
  --color-surface-2: oklch(0.972 0.008 95);
  --color-surface-offset: oklch(0.955 0.01 90);
  --color-divider: oklch(0.9 0.012 90);
  --color-border: oklch(0.875 0.014 88);

  /* Deep ink navy text */
  --color-text: oklch(0.24 0.04 252);
  --color-text-muted: oklch(0.5 0.03 250);
  --color-text-faint: oklch(0.68 0.02 250);
  --color-text-inverse: oklch(0.98 0.005 95);

  /* Ink navy (brand dark) */
  --color-ink: oklch(0.24 0.045 252);
  --color-ink-soft: oklch(0.32 0.05 252);

  /* Refined teal accent */
  --color-primary: oklch(0.55 0.1 210);
  --color-primary-hover: oklch(0.48 0.11 212);
  --color-primary-active: oklch(0.42 0.1 214);
  --color-primary-soft: oklch(0.94 0.03 205);

  /* Warm gold for highlights/ratings */
  --color-gold: oklch(0.78 0.13 80);

  --shadow-sm: 0 1px 2px oklch(0.3 0.04 252 / 0.06);
  --shadow-md: 0 6px 20px oklch(0.3 0.04 252 / 0.08);
  --shadow-lg: 0 18px 48px oklch(0.3 0.04 252 / 0.12);

  --hero-overlay: linear-gradient(
    100deg,
    oklch(0.24 0.045 252 / 0.9) 0%,
    oklch(0.24 0.045 252 / 0.7) 45%,
    oklch(0.24 0.045 252 / 0.25) 100%
  );
}

/* ---------- Palette: DARK ---------- */
[data-theme='dark'] {
  --color-bg: oklch(0.19 0.025 252);
  --color-surface: oklch(0.23 0.028 252);
  --color-surface-2: oklch(0.26 0.03 252);
  --color-surface-offset: oklch(0.28 0.03 252);
  --color-divider: oklch(0.33 0.03 252);
  --color-border: oklch(0.37 0.032 252);

  --color-text: oklch(0.93 0.012 250);
  --color-text-muted: oklch(0.72 0.02 250);
  --color-text-faint: oklch(0.55 0.02 250);
  --color-text-inverse: oklch(0.2 0.03 252);

  --color-ink: oklch(0.16 0.02 252);
  --color-ink-soft: oklch(0.23 0.028 252);

  --color-primary: oklch(0.72 0.1 205);
  --color-primary-hover: oklch(0.79 0.1 203);
  --color-primary-active: oklch(0.84 0.09 202);
  --color-primary-soft: oklch(0.32 0.05 210);

  --color-gold: oklch(0.82 0.12 82);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 18px 48px oklch(0 0 0 / 0.5);

  --hero-overlay: linear-gradient(
    100deg,
    oklch(0.14 0.02 252 / 0.94) 0%,
    oklch(0.14 0.02 252 / 0.78) 45%,
    oklch(0.14 0.02 252 / 0.4) 100%
  );
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: oklch(0.19 0.025 252);
    --color-surface: oklch(0.23 0.028 252);
    --color-surface-2: oklch(0.26 0.03 252);
    --color-surface-offset: oklch(0.28 0.03 252);
    --color-divider: oklch(0.33 0.03 252);
    --color-border: oklch(0.37 0.032 252);
    --color-text: oklch(0.93 0.012 250);
    --color-text-muted: oklch(0.72 0.02 250);
    --color-text-faint: oklch(0.55 0.02 250);
    --color-text-inverse: oklch(0.2 0.03 252);
    --color-ink: oklch(0.16 0.02 252);
    --color-ink-soft: oklch(0.23 0.028 252);
    --color-primary: oklch(0.72 0.1 205);
    --color-primary-hover: oklch(0.79 0.1 203);
    --color-primary-active: oklch(0.84 0.09 202);
    --color-primary-soft: oklch(0.32 0.05 210);
    --color-gold: oklch(0.82 0.12 82);
  }
}

/* ============================================================
   BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-weight: 700;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

a,
button,
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

@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;
  }
}

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

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-16));
}

.wrap-narrow {
  max-width: var(--content-narrow);
}
.wrap-default {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
}

/* Reduces the top gap when a section follows another full-padding section */
.section-tight-top {
  padding-block-start: 0;
}

.section-sm {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
}

h2.section-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

h3 {
  font-size: var(--text-lg);
}

.muted {
  color: var(--color-text-muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: oklch(0.99 0 0);
}
[data-theme='dark'] .btn-primary {
  color: oklch(0.16 0.02 252);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: oklch(1 0 0 / 0.12);
  color: oklch(0.99 0 0);
  border-color: oklch(1 0 0 / 0.3);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover {
  background: oklch(1 0 0 / 0.22);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 1.9rem;
  font-size: var(--text-base);
}

/* No desktop, os botões grandes de WhatsApp mostram o telefone abaixo do texto,
   para quem não tem o WhatsApp no computador ou prefere ligar/usar o celular.
   Oculto em telas de toque (celular/tablet), onde o app de WhatsApp costuma existir. */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  a.btn.btn-lg[href*="wa.me"] {
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    line-height: 1.2;
  }
  a.btn.btn-lg[href*="wa.me"]::after {
    content: "(11) 94753-5008";
    font-size: 0.82em;
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.01em;
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand .logo {
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
/* Header light/dark logo swap */
.brand-logo--dark { display: none; }
[data-theme="dark"] .site-header .brand-logo--light { display: none; }
[data-theme="dark"] .site-header .brand-logo--dark { display: block; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* ---------- Dropdown ---------- */
.has-dropdown {
  position: relative;
}
.nav-links a.dropdown-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.has-dropdown.is-active > .dropdown-parent {
  color: var(--color-text);
}
.dropdown-parent .caret {
  transition: transform 180ms ease;
  flex-shrink: 0;
  opacity: 0.7;
  display: inline-block;
  vertical-align: middle;
}
.dropdown-trigger {
  display: none;
}
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: var(--space-2);
  min-width: 220px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

/* Condense the primary nav on narrower desktops so all 7 items fit
   without crowding the header or overflowing. */
@media (min-width: 921px) {
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 0.5rem 0.5rem;
    font-size: 0.82rem;
    letter-spacing: -0.005em;
    white-space: nowrap;
  }
  .nav {
    gap: var(--space-4);
  }

  /* Desktop dropdown popover */
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    z-index: 60;
  }
  .dropdown-menu a {
    white-space: nowrap;
  }
  .has-dropdown:hover > .dropdown-menu,
  .has-dropdown:focus-within > .dropdown-menu,
  .has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .has-dropdown:hover .caret,
  .has-dropdown:focus-within .caret,
  .has-dropdown.open .caret {
    transform: rotate(180deg);
  }
}

/* Narrowest desktop band: shrink further so the single-line nav still fits. */
@media (min-width: 921px) and (max-width: 1080px) {
  .nav-links a {
    padding: 0.5rem 0.4rem;
    font-size: 0.74rem;
  }
  .nav {
    gap: var(--space-3);
  }
  .brand small {
    display: none;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
  }
  .nav .btn-primary {
    display: none;
  }

  /* Mobile dropdown: accordion */
  .has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .has-dropdown > .dropdown-parent {
    flex: 1;
  }
  .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    align-self: stretch;
    color: var(--color-text-muted);
    background: transparent;
    border-radius: var(--radius-sm);
    position: relative;
  }
  .dropdown-trigger::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 180ms ease;
  }
  .has-dropdown.open .dropdown-trigger::after {
    transform: rotate(225deg) translate(-2px, -2px);
  }
  /* hide the inline desktop caret on mobile (use the trigger instead) */
  .dropdown-parent .caret {
    display: none;
  }
  .dropdown-menu {
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 240ms ease;
  }
  .has-dropdown.open .dropdown-menu {
    max-height: 240px;
    padding: var(--space-1) 0 var(--space-2);
  }
  .dropdown-menu a {
    padding-left: var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--color-ink);
  color: oklch(0.98 0.005 95);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}
.hero .wrap {
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
}
.hero-content {
  max-width: 46rem;
}
.hero h1 {
  color: oklch(0.99 0.005 95);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-5);
}
.hero .eyebrow {
  color: oklch(0.88 0.05 200);
}
.hero .eyebrow::before {
  background: oklch(0.88 0.05 200);
}
.hero p.lead {
  color: oklch(0.92 0.01 95);
  margin-bottom: var(--space-8);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.18);
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: oklch(0.99 0 0);
  line-height: 1;
}
.hero-stats .stat span {
  font-size: var(--text-xs);
  color: oklch(0.85 0.01 95);
  letter-spacing: 0.04em;
}

/* Page hero (interior, lighter) */
.page-hero {
  background: var(--color-ink);
  color: oklch(0.98 0.005 95);
  padding-block: clamp(var(--space-12), 9vw, var(--space-24));
}
.page-hero h1 {
  color: oklch(0.99 0.005 95);
  font-size: var(--text-2xl);
  max-width: 20ch;
  margin-bottom: var(--space-5);
}
.page-hero .eyebrow {
  color: oklch(0.88 0.05 200);
}
.page-hero .eyebrow::before {
  background: oklch(0.88 0.05 200);
}
.page-hero p {
  color: oklch(0.92 0.01 95);
  font-size: var(--text-lg);
  max-width: 62ch;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: var(--text-xs);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  color: oklch(0.82 0.02 200);
}
.breadcrumb li::after {
  content: '/';
  margin-left: var(--space-2);
  color: oklch(0.7 0.02 200);
}
.breadcrumb li:last-child::after {
  content: '';
}
.breadcrumb a {
  color: oklch(0.85 0.03 200);
}
.breadcrumb a:hover {
  color: oklch(0.99 0 0);
}
.breadcrumb [aria-current] {
  color: oklch(0.99 0 0);
}

/* ============================================================
   ANSWER-FIRST CALLOUT
   ============================================================ */
.answer-box {
  border-left: 4px solid var(--color-primary);
  background: var(--color-surface);
  padding: clamp(var(--space-5), 4vw, var(--space-8));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}
.answer-box p {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 70ch;
  margin: 0;
}
.answer-box p strong {
  color: var(--color-text);
}

/* ============================================================
   PROSE (article content)
   ============================================================ */
.prose > * + * {
  margin-top: var(--space-5);
}
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
}
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
}
.prose p,
.prose li {
  color: var(--color-text-muted);
  max-width: 72ch;
}
.prose strong {
  color: var(--color-text);
}
.prose ul {
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.prose ul li {
  list-style: none;
  position: relative;
  padding-left: var(--space-5);
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--color-primary);
}

/* ============================================================
   UPDATE STAMP (article freshness signal)
   ============================================================ */
.update-stamp {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.update-stamp::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
}
.update-stamp strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================================================
   TABLE OF CONTENTS (in-page navigation)
   ============================================================ */
.toc {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-6));
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4) !important;
}
.toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .toc ul {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-6);
  }
}
.toc ul li {
  margin: 0;
  padding: 0;
}
.toc ul li::before {
  display: none;
}
.toc a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.toc a:hover,
.toc a:focus-visible {
  color: var(--color-primary);
  background: var(--color-surface);
  border-left-color: var(--color-primary);
}

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

/* Blog post listing cards */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
/* Card thumbnail — branded gradient panel with dotted texture + line icon */
.post-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      color-mix(in oklch, var(--cat-color, var(--color-primary)) 30%, var(--color-ink)) 0%,
      color-mix(in oklch, var(--cat-color, var(--color-primary)) 70%, var(--color-ink)) 100%);
}
.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.13) 1px, transparent 0);
  background-size: 20px 20px;
  opacity: 0.55;
}
.post-thumb svg {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  color: oklch(1 0 0 / 0.92);
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  transition: transform var(--transition-interactive);
}
.post-card:hover .post-thumb svg { transform: scale(1.08); }
/* Soft floating corner glyph for extra texture */
.post-thumb .thumb-mark {
  position: absolute;
  right: -8px;
  bottom: -14px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: oklch(1 0 0 / 0.08);
  letter-spacing: -0.03em;
  user-select: none;
}
.post-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: clamp(var(--space-5), 3vw, var(--space-6));
}
/* Accent bar that grows on hover, sits between thumb and body */
.post-body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cat-color, var(--color-primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}
.post-body { position: relative; }
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in oklch, var(--cat-color, var(--color-primary)) 55%, var(--color-border));
}
.post-card:hover .post-body::before {
  transform: scaleX(1);
}
.post-card .post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat-color, var(--color-primary));
  background: var(--cat-tint, var(--color-primary-soft));
  padding: 0.32rem 0.6rem 0.32rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}
.post-card .post-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat-color, var(--color-primary));
}
/* Category color keys — sober palette aligned to the navy + teal brand.
   --cat-color = text/accent (good contrast), --cat-tint = solid soft chip background. */
.post-card[data-cat="estudo"]      { --cat-color: oklch(0.5 0.1 215);  --cat-tint: oklch(0.95 0.025 210); }
.post-card[data-cat="estrategia"] { --cat-color: oklch(0.52 0.1 268); --cat-tint: oklch(0.95 0.022 270); }
.post-card[data-cat="quant"]      { --cat-color: oklch(0.5 0.1 162);  --cat-tint: oklch(0.95 0.025 165); }
.post-card[data-cat="verbal"]     { --cat-color: oklch(0.54 0.12 35); --cat-tint: oklch(0.95 0.025 45);  }
.post-card[data-cat="custos"]     { --cat-color: oklch(0.54 0.1 95);  --cat-tint: oklch(0.95 0.03 95);  }
.post-card[data-cat="local"]      { --cat-color: oklch(0.48 0.07 250); --cat-tint: oklch(0.95 0.018 250); }
:root[data-theme="dark"] .post-card[data-cat="estudo"]      { --cat-color: oklch(0.78 0.09 205); --cat-tint: oklch(0.3 0.04 210); }
:root[data-theme="dark"] .post-card[data-cat="estrategia"] { --cat-color: oklch(0.78 0.1 275);  --cat-tint: oklch(0.31 0.045 275); }
:root[data-theme="dark"] .post-card[data-cat="quant"]      { --cat-color: oklch(0.78 0.1 160);  --cat-tint: oklch(0.3 0.04 162); }
:root[data-theme="dark"] .post-card[data-cat="verbal"]     { --cat-color: oklch(0.78 0.11 40);  --cat-tint: oklch(0.31 0.05 40); }
:root[data-theme="dark"] .post-card[data-cat="custos"]     { --cat-color: oklch(0.82 0.1 92);   --cat-tint: oklch(0.31 0.045 92); }
:root[data-theme="dark"] .post-card[data-cat="local"]      { --cat-color: oklch(0.8 0.07 245);  --cat-tint: oklch(0.3 0.035 248); }
.post-card h3 {
  margin: 0 0 var(--space-3);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.post-card h3 a {
  color: var(--color-text);
  text-decoration: none;
}
.post-card h3 a:hover {
  color: var(--color-primary);
}
.post-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0 0 var(--space-5);
  flex-grow: 1;
}
.post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}
.post-card .post-meta span,
.post-card .post-meta time { white-space: nowrap; }
.post-card .post-readmore {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.post-card .post-readmore::after {
  content: '\2192';
  transition: transform var(--transition-interactive);
}
.post-card:hover .post-readmore { color: var(--color-primary-hover); }
.post-card:hover .post-readmore::after {
  transform: translateX(4px);
}

/* ===== Featured "Pilar" card — full hero treatment ===== */
.post-card--featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(var(--space-6), 4vw, var(--space-10));
  align-items: center;
  padding: 0;
  border: 1px solid color-mix(in oklch, var(--color-gold) 30%, var(--color-border));
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklch, var(--color-gold) 10%, transparent), transparent 55%),
    var(--color-surface);
}
.post-card--featured::before {
  height: 4px;
  background: var(--color-gold);
  transform: scaleX(1);
}
.post-card--featured:hover {
  border-color: color-mix(in oklch, var(--color-gold) 55%, var(--color-border));
}
.post-card--featured .featured-body {
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.post-card--featured .post-tag {
  --cat-color: var(--color-gold);
}
.post-card--featured h2 {
  font-size: var(--text-xl);
  line-height: 1.15;
  margin: var(--space-3) 0 var(--space-4);
}
.post-card--featured h2 a {
  color: var(--color-text);
  text-decoration: none;
}
.post-card--featured h2 a:hover { color: var(--color-primary); }
.post-card--featured p {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}
.post-card--featured .post-readmore { border-top: none; padding-top: 0; }

/* ===== Paginação do blog ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-10);
}
.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pagination .page-btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}
.pagination .page-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: oklch(0.99 0 0);
  cursor: default;
}
[data-theme='dark'] .pagination .page-btn.is-active {
  color: oklch(0.16 0.02 252);
}
.pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination .page-nav {
  font-size: 1.25rem;
}
.pagination .page-status {
  flex-basis: 100%;
  text-align: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Decorative visual panel on the right */
.featured-visual {
  position: relative;
  align-self: stretch;
  min-height: 240px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--color-ink) 0%, var(--color-primary-active) 100%);
  display: grid;
  place-items: center;
}
.featured-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, oklch(1 0 0 / 0.14) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.6;
}
.featured-visual .featured-score {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-inverse);
  font-family: var(--font-display);
}
.featured-visual .featured-score .score {
  display: block;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.featured-visual .featured-score .label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}
@media (max-width: 720px) {
  .post-card--featured {
    grid-template-columns: 1fr;
  }
  .post-card--featured .featured-body { order: 2; }
  .featured-visual {
    order: 1;
    min-height: 150px;
    border-radius: 0;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  box-shadow: var(--shadow-sm);
}
.card h3 {
  margin-bottom: var(--space-3);
}
.card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

/* Stat band */
.stat-band {
  background: var(--color-surface-offset);
  border-block: 1px solid var(--color-divider);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--space-8);
  text-align: center;
}
@media (min-width: 768px) {
  .stat-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-grid .stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  line-height: 1;
}
.stat-grid .stat span {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Two-column split */
.split {
  display: grid;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .split.media-left {
    direction: rtl;
  }
  .split.media-left > * {
    direction: ltr;
  }
}
.split img {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.split figure {
  margin: 0;
}
.split figure img {
  display: block;
}
.split figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}
.split figcaption strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}
/* Retrato (ex.: Vivianne Wright): mais compacto e alinhado ao parágrafo ao lado,
   evitando que a foto fique mais alta que o texto correspondente. */
.split figure.portrait {
  max-width: 23rem;
  margin-inline: auto;
}
.split figure.portrait img {
  aspect-ratio: 4 / 5;
  object-position: center top;
}

/* ============================================================
   STEPS / TIMELINE
   ============================================================ */
.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
.step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.step .num {
  counter-increment: step;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: oklch(0.99 0 0);
  font-family: var(--font-display);
  font-weight: 700;
}
[data-theme='dark'] .step .num {
  color: oklch(0.16 0.02 252);
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}
.step p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.testi {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-5), 3vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.testi .stars {
  color: var(--color-gold);
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
}
.testi blockquote {
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.6;
}
.testi .who {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.testi .who .avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.testi .who strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.testi .who span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.testi .badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.badge.gold {
  background: color-mix(in oklab, var(--color-gold) 22%, transparent);
  color: color-mix(in oklab, var(--color-gold) 70%, var(--color-text));
}

/* ============================================================
   FAQ (details/summary)
   ============================================================ */
.faq {
  display: grid;
  gap: var(--space-3);
  max-width: var(--content-default);
}
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-interactive);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details[open] summary {
  border-bottom: 1px solid var(--color-divider);
}
.faq .answer {
  padding: var(--space-5) var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.faq .answer p + p {
  margin-top: var(--space-3);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-ink);
  color: oklch(0.98 0.005 95);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 6vw, var(--space-20));
  text-align: center;
}
.cta-band h2 {
  color: oklch(0.99 0.005 95);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: oklch(0.9 0.01 95);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}
.cta-band .btn-row {
  justify-content: center;
}

/* ============================================================
   TABLE (comparison)
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
table.compare {
  min-width: 520px;
  font-size: var(--text-sm);
}
table.compare th,
table.compare td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  border-bottom: 1px solid var(--color-divider);
}
table.compare thead th {
  background: var(--color-surface-offset);
  font-family: var(--font-display);
  color: var(--color-text);
}
table.compare tbody tr:last-child td {
  border-bottom: none;
}
table.compare td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================================
   FORM
   ============================================================ */
.field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

/* Blog topics list (checkmark bullets) */
.blog-topics {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}
.blog-topics li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.blog-topics li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316a3ad' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Contact info list */
.contact-list {
  display: grid;
  gap: var(--space-5);
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.contact-list .ci {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-list strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-list a,
.contact-list span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.contact-list a:hover {
  color: var(--color-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-ink);
  color: oklch(0.85 0.01 95);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer .brand {
  color: oklch(0.98 0 0);
}
.site-footer .brand .logo {
  color: oklch(0.82 0.05 200);
}
.site-footer .brand-logo {
  height: 34px;
}
.site-footer .brand small {
  color: oklch(0.7 0.01 95);
}
.footer-about {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: oklch(0.78 0.01 95);
  max-width: 36ch;
}
.footer-col h4 {
  color: oklch(0.97 0 0);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}
.footer-col a {
  color: oklch(0.8 0.01 95);
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: oklch(0.98 0 0);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.85 0.01 95);
}
.footer-social a:hover {
  background: oklch(1 0 0 / 0.12);
  color: oklch(0.98 0 0);
}
.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: oklch(0.7 0.01 95);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Float helper for WhatsApp */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: oklch(0.7 0.17 150);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.wa-float:hover {
  transform: scale(1.06);
}

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-block { margin-inline: auto; }

/* ==========================================================================
   Mini Diagnóstico GMAT
   ========================================================================== */
.diag-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  max-width: 46rem;
  margin-inline: auto;
}
.diag-card[hidden] { display: none; }

/* Gate (lead capture) */
.diag-lead {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.diag-field { margin-bottom: var(--space-5); }
.diag-field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.diag-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.diag-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.diag-field input::placeholder { color: var(--color-text-faint); }
.diag-error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: oklch(0.58 0.18 25);
}
.diag-error[hidden] { display: none; }
.diag-privacy {
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--color-text-faint);
  text-align: center;
}

/* Quiz */
.diag-progress {
  margin-bottom: var(--space-6);
}
.diag-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}
.diag-progress-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}
.diag-section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}
.diag-progress-track {
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.diag-progress-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width .3s ease;
}
.diag-question {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.35;
  color: var(--color-text);
  margin: var(--space-2) 0 var(--space-6);
  white-space: pre-line;
}
.diag-options {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.diag-option {
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.diag-option:hover { border-color: var(--color-primary); }
.diag-option:active { transform: scale(0.995); }
.diag-option.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 600;
}
.diag-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}
.diag-nav .btn-text {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
}
.diag-nav .btn-text[hidden] { visibility: hidden; }
.diag-nav .btn-text:hover { color: var(--color-text); }

/* Result */
.diag-result-head { text-align: center; margin-bottom: var(--space-8); }
.diag-score-circle {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: var(--color-primary-soft);
  border: 3px solid var(--color-primary);
}
.diag-score-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-primary);
}
.diag-score-pct {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
.diag-level {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.diag-advice {
  color: var(--color-text-muted);
  max-width: 34rem;
  margin-inline: auto;
}
.diag-breakdown {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.diag-bd-row { text-align: left; }
.diag-bd-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.diag-bd-track {
  height: 8px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.diag-bd-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}
.diag-result-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}
.diag-restart {
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  text-decoration: underline;
  margin-top: var(--space-5);
}
.diag-restart:hover { color: var(--color-text); }

/* ── Formulário de contato ─────────────────────────────────── */
.contact-form { text-align: left; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-form .field { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--color-text-muted); opacity: 0.7; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .form-status {
  font-size: var(--text-sm);
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  display: none;
}
.contact-form .form-status.show { display: block; }
.contact-form .form-status.ok {
  background: var(--color-primary-soft);
  color: var(--color-text);
}
.contact-form .form-status.err {
  background: oklch(0.93 0.06 28);
  color: oklch(0.4 0.13 28);
}
.contact-form button[type="submit"][disabled] { opacity: 0.6; cursor: not-allowed; }
.contact-or {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text-muted); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: var(--space-2) 0;
}
.contact-or::before, .contact-or::after {
  content: ""; flex: 1; height: 1px; background: var(--color-border);
}
