/* ==========================================================================
   INSS — Técnico do Seguro Social — Landing page StudyUp
   Base copiada da landing CFO PMMG 2027 (mesmos componentes), com paleta azul própria.
   Arquivo isolado: alterações aqui não afetam a PMMG.
   Breakpoints: 560px (mobile grande), 900px (tablet/desktop), 1200px (wide)
   ========================================================================== */

:root {
  --bg: #071430;
  --surface: #0d1f47;
  --surface-2: #122857;
  /* cópia dos tokens escuros: cards que precisam continuar azuis dentro de uma seção clara */
  --dark-surface: #0d1f47;
  --dark-surface-2: #122857;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --gold: #f6c21c;
  --gold-hover: #ffd449;
  --gold-deep: #c99a00;
  --gold-soft: rgba(246, 194, 28, 0.12);
  --gold-line: rgba(246, 194, 28, 0.45);

  --text: #ffffff;
  --text-muted: #bccae3;
  --text-dim: #93a4c4;
  --on-gold: #071430;

  /* Tokens dependentes de contexto (dark por padrão; .section--light redefine) */
  --accent-text: var(--gold);          /* amarelo usado como TEXTO pequeno */
  --accent-rule: var(--gold);          /* fios/linhas decorativas */
  --icon-bg: var(--gold-soft);
  --icon-fg: var(--gold);
  --icon-border: rgba(246, 194, 28, 0.25);
  --card-shadow: none;
  --notice-text: #efe6c8;
  --focus: var(--gold);

  /* Paleta light: off-white quente (nunca branco puro como fundo de seção) */
  --light-bg: #f2f5fa;
  --light-bg-edge: #e4eaf4;            /* um tom abaixo, nas bordas da seção */
  --light-surface: #fbfcfe;
  --light-surface-hover: #ffffff;
  --light-border: #d9e1ee;
  --light-border-strong: #c3cfe2;
  --light-text: #0b1b3d;
  --light-text-muted: #3d4a63;
  --light-text-dim: #56637c;
  --gold-ink: #7a5800;                 /* dourado escuro: 5,6:1 sobre o creme */

  --font-display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 104px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
strong { color: var(--text); font-weight: 700; }

::selection { background: var(--gold); color: var(--on-gold); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--gold);
  color: var(--on-gold);
  box-shadow: 0 10px 30px -10px rgba(246, 194, 28, 0.6);
}
.btn--primary:hover {
  background: var(--gold-hover);
  box-shadow: 0 14px 36px -10px rgba(246, 194, 28, 0.75);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.08); }

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline:hover { background: var(--gold); color: var(--on-gold); }

.btn--dark {
  background: var(--bg);
  color: var(--gold);
}
.btn--dark:hover { background: #13295a; transform: translateY(-2px); }
.btn--dark:focus-visible { outline-color: var(--bg); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.8125rem; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Section scaffolding ---------- */
.section { position: relative; padding-block: var(--section-y); }

/* Seções claras (Matérias, Sobre o concurso, FAQ): redefinem os tokens semânticos,
   então cards, títulos e accordion herdam o contexto sem regras duplicadas */
.section--light {
  --bg: var(--light-bg);
  --surface: var(--light-surface);
  --surface-2: var(--light-surface-hover);
  --border: var(--light-border);
  --border-strong: var(--light-border-strong);
  --text: var(--light-text);
  --text-muted: var(--light-text-muted);
  --text-dim: var(--light-text-dim);
  --gold-soft: rgba(246, 194, 28, 0.2);
  --gold-line: #cfa21a;
  --accent-text: var(--gold-ink);
  --accent-rule: var(--gold-deep);
  --icon-bg: var(--gold);
  --icon-fg: var(--on-gold);
  --icon-border: transparent;
  --card-shadow: 0 1px 2px rgba(15, 35, 80, 0.05), 0 10px 24px -18px rgba(15, 35, 80, 0.28);
  --notice-text: var(--light-text);
  --focus: var(--light-text);

  color: var(--text);
  /* creme levemente mais profundo nas bordas suaviza o encontro com as seções escuras */
  background: linear-gradient(180deg, var(--light-bg-edge) 0, var(--bg) 96px, var(--bg) calc(100% - 96px), var(--light-bg-edge) 100%);
}
/* Transição dark ↔ light: faixa dourada fina como elo entre os dois contextos */
.section--light::before,
.section--light::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--gold-hover) 50%, var(--gold) 70%, var(--gold-deep));
}
.section--light::after { inset: auto 0 0 0; }
.section--light ::selection { background: var(--light-text); color: var(--gold); }
/* Destaques em títulos no claro: grafite com marca-texto amarelo (amarelo vivo sem perder contraste) */
.section--light .text-accent {
  color: var(--text);
  background: linear-gradient(transparent 58%, rgba(246, 194, 28, 0.7) 58%, rgba(246, 194, 28, 0.7) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.08em;
  margin-inline: -0.08em;
}
.section--light .btn--primary {
  box-shadow: 0 10px 24px -12px rgba(122, 88, 0, 0.55), inset 0 0 0 1px rgba(122, 88, 0, 0.25);
}
.section--light .btn--primary:hover {
  box-shadow: 0 14px 28px -12px rgba(122, 88, 0, 0.65), inset 0 0 0 1px rgba(122, 88, 0, 0.3);
}


.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-rule);
}

.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-heading--center { margin-inline: auto; text-align: center; }

@media (min-width: 1000px) {
  .section-heading--split {
    display: grid;
    grid-template-columns: 7fr 5fr;
    column-gap: 64px;
    align-items: end;
    max-width: none;
  }
  .section-heading--split .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .section-heading--split .section-heading__text { margin-top: 0; }
}
.section-heading--center .eyebrow::after {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--accent-rule);
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-heading__text {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}
.section-heading__text p + p { margin-top: 12px; }
.section-heading--center .section-heading__text { max-width: 680px; margin-inline: auto; }

.section-cta { margin-top: clamp(36px, 5vw, 56px); display: flex; justify-content: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 20, 48, 0.86);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__logo { display: block; flex: none; border-radius: 4px; }
.site-header__logo img { width: 148px; height: auto; }

/* ==========================================================================
   HERO — asset "Hero nova" como background da seção
   Composição do asset (1672×941): esquerda escura (copy) · livro em ~49–75% da
   largura · policial em ~77–100% · sol/igreja no topo direito.
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  /* acompanha a proporção do asset (16:9) sem ficar gigantesco em telas largas */
  min-height: clamp(640px, 56.25vw, 920px);
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 72px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media picture,
.practice__media picture { height: 100%; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* x 25%: quando há corte lateral (≈1024–1199px), sacrifica a borda do policial e não o livro;
     y 35%: em telas muito largas o corte vertical preserva o sol e o topo do livro */
  object-position: 25% 35%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 48, 0.9) 0%, rgba(7, 20, 48, 0.72) 26%, rgba(7, 20, 48, 0.3) 42%, rgba(7, 20, 48, 0) 54%),
    linear-gradient(180deg, rgba(7, 20, 48, 0.6) 0%, rgba(7, 20, 48, 0) 16%, rgba(7, 20, 48, 0) 72%, var(--bg) 100%);
}

.hero__inner { position: relative; }
/* Limita a copy à área escura: nunca invade o livro (que começa em ~49% da largura) */
.hero__content { max-width: clamp(440px, 38vw, 540px); }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 1rem + 2.9vw, 3.5rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero__title .nowrap { white-space: nowrap; }
.hero__title-accent {
  display: block;
  margin-bottom: 0.08em;
  color: var(--gold);
}

.hero__subtitle {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.hero__support {
  margin-top: 12px;
  color: #c4c4c4;
  font-size: 1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
}
.hero__facts li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.35; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--gold); }

@media (min-width: 900px) {
  /* Desloca o asset ~4vw para a direita: a borda esquerda dele é pedra quase preta sob o overlay,
     então não há emenda visível e a área escura da copy ganha espaço sem cortar o livro */
  .hero__media { left: max(0px, calc((100vw - 1264px) * 0.175 + 3vw)); }
}

/* 1200–1359px: CTAs empilhados deixam a coluna de texto estreita, então o enquadramento
   pode avançar para a direita e trazer o policial de volta sem encostar no livro */
@media (min-width: 1200px) and (max-width: 1359px) {
  .hero__media img { object-position: 68% 35%; }
}

/* CTAs lado a lado só quando cabem antes da lombada do livro */
@media (min-width: 1360px) {
  .hero__actions { width: max-content; flex-wrap: nowrap; }
  .hero__actions .btn--lg { padding-inline: 20px; font-size: 0.875rem; letter-spacing: 0.03em; }
}

/* Hero — mobile/tablet (imagem vertical própria): a copy vem primeiro e o livro logo abaixo,
   numa moldura 1122:860 que mostra só a faixa do livro (corta o vazio de cima e o reflexo de baixo).
   object-position y 44% = recorte de y≈240 a y≈1100 do asset de 1122×1402 */
@media (max-width: 899px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }
  /* Ordem no celular: selo, título, subtítulo e botões → livro → destaques.
     display: contents deixa os filhos da copy participarem do flex da seção sem mudar o HTML */
  .hero__inner, .hero__content { display: contents; }
  .hero__content > * {
    order: 1;
    width: auto;
    max-width: 640px;
    margin-inline: var(--gutter);
  }
  .hero__content > .hero__facts { order: 3; margin-top: 24px; }
  .hero__media {
    position: relative;
    inset: auto;
    order: 2;
    z-index: 0;
    width: min(100%, 560px);
    margin: 24px auto 0;
    aspect-ratio: 1122 / 860;
    overflow: hidden;   /* sem isso a altura natural da imagem anula o aspect-ratio (min-height:auto do flex) */
  }
  .hero__media img { object-position: 50% 44%; }
  /* funde as bordas superior e inferior da foto com o fundo da página */
  .hero__media::after {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 20, 48, 0) 14%, rgba(7, 20, 48, 0) 86%, var(--bg) 100%);
  }
  .hero__content { max-width: 640px; }
}

@media (max-width: 559px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
}

/* Tablet: moldura com cantos arredondados, sem ocupar a largura toda */
@media (min-width: 560px) and (max-width: 899px) {
  .hero__media { border-radius: var(--radius); }
}

/* ==========================================================================
   OFERTAS
   ========================================================================== */
.offers { padding-bottom: 0; }   /* a faixa clara fecha a seção; os cards agora ficam no bloco final */

.offers__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 640px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .offers__grid { grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; max-width: 1040px; }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-card__body { padding: clamp(24px, 3vw, 36px); padding-bottom: 0; }

.price-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.price-card__title .text-accent { display: block; }

.price-card__desc {
  margin-top: 12px;
  color: var(--text-muted);
}

.price-card__label {
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #e6e6e6;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.checklist .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  stroke-width: 3;
}

.price-card__footer {
  margin-top: auto;
  padding: clamp(24px, 3vw, 36px);
  padding-top: 28px;
}
.price-card__footer .price-card__label {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.price { display: flex; flex-direction: column; margin-bottom: 24px; }
.price__installments {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
}
.price__value {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.2rem + 2.2vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price__cash {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Destaque */
.price-card--featured {
  border: 2px solid var(--gold);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(246, 194, 28, 0.14), transparent 60%),
    linear-gradient(180deg, #13285c, var(--surface));
  box-shadow: 0 30px 80px -30px rgba(246, 194, 28, 0.45), 0 0 0 6px rgba(246, 194, 28, 0.06);
}
.price-card--featured .price__value { color: var(--gold); }
.price-card--featured .checklist .icon { background: var(--gold); color: var(--on-gold); }

.price-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.price-card__badge .icon { width: 18px; height: 18px; stroke-width: 2.4; }

@media (min-width: 900px) {
  /* Mantém o destaque sem desalinhar os preços: o card simples desce o equivalente ao selo */
  .price-card:not(.price-card--featured) { margin-top: 42px; }
  .price-card--featured { transform: translateY(0); }
}

/* ==========================================================================
   MATÉRIAS
   ========================================================================== */
.subjects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .subjects__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
/* 9 cards + "Vade Mecum": em 2 colunas ele ocupa 1 célula (10 = 5×2); em 3 e 4 colunas ocupa 3
   (12 = 4×3 e 12 = 3×4), sempre fechando a grade sem células vazias */
@media (min-width: 900px) {
  .subjects__grid { grid-template-columns: repeat(3, 1fr); }
  .subject-card--wide { grid-column: span 3; }
}
@media (min-width: 1100px) { .subjects__grid { grid-template-columns: repeat(4, 1fr); } }

.subject-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.subject-card:hover {
  border-color: var(--gold-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}

@media (min-width: 900px) {
  .subject-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    min-height: 152px;
    padding: 24px;
  }
}

.subject-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  color: var(--icon-fg);
}
.subject-card__icon .icon { width: 22px; height: 22px; }

.subject-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
}

.subject-card--wide {
  border-color: var(--gold);   /* destaque do Vade Mecum: borda amarela sólida */
  background:
    linear-gradient(120deg, var(--gold-soft), transparent 60%),
    var(--surface);
}
/* o hover genérico (.subject-card:hover) é mais específico e apagaria o destaque */
.subject-card--wide:hover {
  border-color: var(--gold);
  background:
    linear-gradient(120deg, var(--gold-soft), transparent 60%),
    var(--surface-2);
}

/* ==========================================================================
   ESTUDAR + PRATICAR — asset "Não basta" como background da seção inteira
   ========================================================================== */
.practice {
  isolation: isolate;
  overflow: hidden;
}

.practice__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.practice__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
/* Fades nas bordas: a imagem nunca mostra onde começa/termina */
.practice__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(7, 20, 48, 0.82) 24%, rgba(7, 20, 48, 0.2) 52%, rgba(7, 20, 48, 0) 78%),
    linear-gradient(180deg, var(--bg) 0%, rgba(7, 20, 48, 0) 18%, rgba(7, 20, 48, 0) 80%, var(--bg) 100%);
}

.practice__inner { position: relative; }

@media (min-width: 1100px) {
  .practice__inner {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    gap: 56px;
    align-items: center;
  }
  .practice__heading { margin-bottom: 0; }
}

/* Mobile/tablet: recorte da direita (igreja iluminada) só no topo, acima do título */
@media (max-width: 899px) {
  .practice { padding-top: clamp(180px, 42vw, 300px); }
  .practice__media { inset: 0 0 auto 0; height: clamp(420px, 95vw, 640px); }
  .practice__media img { object-position: right top; }
  .practice__media::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(7, 20, 48, 0.1) 18%, rgba(7, 20, 48, 0.35) 45%, rgba(7, 20, 48, 0.88) 72%, var(--bg) 100%);
  }
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }

.benefit-card {
  position: relative;
  padding: 28px 24px;
  background: rgba(13, 31, 71, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 3px 3px;
}
.benefit-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }

.benefit-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}
.benefit-card__icon .icon { width: 26px; height: 26px; }

.benefit-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
}
.benefit-card__text { margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; }

.benefit-card--accent {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--on-gold);
}
.benefit-card--accent::before { background: var(--on-gold); }
.benefit-card--accent .benefit-card__icon { background: rgba(7, 20, 48, 0.12); color: var(--on-gold); }
.benefit-card--accent .benefit-card__text { color: #2b2305; }
.benefit-card--accent:hover { border-color: var(--gold-hover); }

/* ==========================================================================
   SOBRE O CONCURSO
   ========================================================================== */
.contest__inner {
  display: grid;
  gap: 40px;
}
@media (min-width: 1000px) {
  .contest__inner { grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
  .contest__intro .section-heading { margin-bottom: 32px; }
}

.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--notice-text);
  font-size: 0.9375rem;
}
.notice__icon { width: 22px; height: 22px; color: var(--accent-text); margin-top: 1px; }

.contest__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) { .contest__stats { grid-template-columns: 1fr 1fr; } }

.stat {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
/* fio dourado no topo: mesmo gesto dos cards de benefício da seção escura */
.stat::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
}
.stat__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  color: var(--icon-fg);
}
.stat__icon .icon { width: 22px; height: 22px; }

.stat__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 900;
  line-height: 1.15;
}
.stat__number {
  display: block;
  color: var(--text);
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.stat__text { margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta {
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(246, 194, 28, 0.1), transparent 70%),
    radial-gradient(60% 45% at 50% 100%, rgba(246, 194, 28, 0.06), transparent 70%),
    var(--bg);
}
.final-cta__panel {
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border: 1px solid rgba(246, 194, 28, 0.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(246, 194, 28, 0.16), transparent 65%),
    linear-gradient(180deg, #0f2453, #081838);
  overflow: hidden;
}
.final-cta__panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Cards completos (.price-card) dentro do painel final: mesmo espaço que os cards resumidos ocupavam */
.final-cta .offers__grid { margin-top: 8px; }

/* Celular: sem moldura lateral no painel, os cards completos mantêm a largura da página
   (com a moldura, o selo quebrava em duas linhas e as listas ficavam espremidas) */
@media (max-width: 559px) {
  .final-cta__panel {
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }
}

.final-cta__micro {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: left;
}
.final-cta__micro .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__inner { max-width: 860px; }

.faq__list { display: grid; gap: 12px; }

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq__item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.faq__item:has(.faq__trigger[aria-expanded='true']) { border-color: var(--gold-line); }

.faq__question { font: inherit; }

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 18px 22px;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.faq__trigger:hover { color: var(--accent-text); }
.faq__trigger:focus-visible { outline-offset: -3px; }

.faq__chevron {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 50%;
  background: var(--icon-bg);
  color: var(--icon-fg);
  stroke-width: 2.5;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.faq__trigger[aria-expanded='true'] .faq__chevron {
  transform: rotate(180deg);
  background: var(--gold);
  color: var(--on-gold);
}
.section--light .faq__trigger[aria-expanded='true'] .faq__chevron { background: var(--light-text); color: var(--gold); }

.faq__answer {
  padding: 0 22px 22px;
  color: var(--text-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .faq__answer:not([hidden]) { animation: faq-in 0.25s var(--ease); }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding-block: 48px;
  background: #050f26;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 900px) {
  .site-footer__inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
}
.site-footer__logo { width: 136px; height: auto; flex: none; }
.site-footer__text { max-width: 640px; color: var(--text-dim); font-size: 0.875rem; }
.site-footer__lead { color: var(--text); font-weight: 600; margin-bottom: 6px; }
@media (min-width: 900px) { .site-footer__text { text-align: right; } }

/* ==========================================================================
   Ajustes mobile
   ========================================================================== */
@media (max-width: 559px) {
  :root { --header-h: 64px; }
  .site-header__logo img { width: 104px; }
  .site-header__cta { padding: 8px 12px; font-size: 0.6875rem; letter-spacing: 0.02em; }
  .hero__facts { font-size: 0.8125rem; }
  .btn--lg { font-size: 0.9375rem; padding-inline: 16px; letter-spacing: 0.02em; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   AJUSTES ESPECÍFICOS — INSS
   ========================================================================== */

/* Hero: a apostila ocupa ~55–89% da largura do asset; a copy fica na área azul livre à esquerda.
   Enquadramento calculado por faixa para a apostila nunca ser cortada nem encostar nos CTAs */
@media (min-width: 900px) and (max-width: 1199px) { .hero__media img { object-position: 67% 40%; } }
@media (min-width: 1200px) and (max-width: 1359px) { .hero__media img { object-position: 70% 40%; } }
@media (min-width: 1360px) { .hero__media img { object-position: 0% 40%; } }
.hero .eyebrow { margin-bottom: 18px; }

/* Abertura: bloco curto de título; respiro inferior próprio antes da faixa clara de "Conteúdos incluídos" */
.offers { padding-bottom: clamp(48px, 6vw, 72px); }
.offers .section-heading { margin-bottom: 0; }
.offers { background: var(--bg); }

/* Conteúdo e prática: sem imagem de fundo (o asset da PMMG não se aplica ao INSS) */
.practice--plain {
  padding-top: var(--section-y);
  background:
    radial-gradient(60% 70% at 85% 50%, rgba(246, 194, 28, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg), #0a1c42 50%, var(--bg));
}

/* Conteúdos incluídos: 7 disciplinas + 2 materiais complementares */
.subjects__label {
  margin: 0 0 12px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
/* 7 disciplinas: a última ocupa 2 colunas em 2 e 4 colunas (8 células), sem células vazias */
@media (min-width: 560px) {
  .subjects__grid--inss .subject-card:last-child { grid-column: span 2; }
}
@media (min-width: 900px) {
  .subjects__grid--inss { grid-template-columns: repeat(4, 1fr); }
}
.subjects__extras {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
}
@media (min-width: 560px) {
  .subjects__extras { grid-template-columns: 1fr 1fr; gap: 16px; }
  .subjects__extras .subject-card--wide { grid-column: auto; }
}
.subjects__grid + .subjects__label { margin-top: clamp(28px, 4vw, 40px); }
.subjects__notice { margin-top: clamp(24px, 3vw, 32px); }

/* Oferta única centralizada */
.offer-single {
  display: grid;
  gap: 20px;
  max-width: 560px;
  margin: 8px auto 0;
}
.offer-single .price-card__title .text-accent { margin-top: 6px; font-size: 0.72em; }
.price__total { margin-top: 4px; color: var(--text-dim); font-size: 0.875rem; }
.offer-single__micro {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}
.guarantee {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.9375rem;
}
.guarantee__icon { width: 24px; height: 24px; color: var(--gold); }

/* Pré-edital: bloco central compacto */
.pre-edital__inner { max-width: 860px; }
.pre-edital .section-heading { margin-bottom: 28px; }

/* Header no celular: CTA longo numa linha só */
@media (max-width: 559px) {
  .site-header__logo img { width: 92px; }
  .site-header__cta { padding: 8px 10px; font-size: 0.625rem; letter-spacing: 0; white-space: nowrap; }
  .hero .eyebrow { letter-spacing: 0.1em; }
}

/* Conteúdos incluídos: fundo claro (.section--light, igual a "O tempo antes do edital"),
   mas os cards das disciplinas e dos materiais complementares continuam azuis */
.subjects.section--light .subject-card {
  --surface: var(--dark-surface);
  --surface-2: var(--dark-surface-2);
  --border: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --icon-bg: rgba(246, 194, 28, 0.12);
  --icon-fg: var(--gold);
  --icon-border: rgba(246, 194, 28, 0.25);
  --gold-soft: rgba(246, 194, 28, 0.12);
  --gold-line: rgba(246, 194, 28, 0.45);
  color: var(--text);
}
