/* ========== Variables ========== */
:root {
  --background: 220 20% 97%;
  --foreground: 222 47% 11%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --primary: 222 47% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 222 35% 14%;
  --secondary-foreground: 0 0% 100%;
  --muted: 220 15% 93%;
  --muted-foreground: 220 15% 42%;
  --accent: 145 63% 38%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 15% 88%;
  --input: 220 15% 88%;
  --ring: 222 47% 20%;
  --radius: 0.75rem;
  --hero-overlay: linear-gradient(
    160deg,
    hsla(222, 47%, 11%, 0.88),
    hsla(222, 47%, 18%, 0.8)
  );
  --glow-accent: 145 63% 45%;
  --surface-glass: hsla(0, 0%, 100%, 0.72);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

/* ========== Base ========== */
[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========== Layout ========== */
.min-h-screen {
  min-height: 100vh;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1400px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ========== Utilities ========== */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    135deg,
    hsl(145, 63%, 38%),
    hsl(145, 55%, 52%)
  );
}

.glass-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid hsla(220, 15%, 88%, 0.5);
}

.hero-gradient {
  background: var(--hero-overlay);
}

.glow-border {
  box-shadow: 0 0 24px -6px hsl(var(--glow-accent) / 0.35);
}

.touch-target {
  min-height: 44px;
  min-width: 44px;
}

.logo-white {
  filter: brightness(0) invert(1);
}

.icon-sm {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* ========== Keyframes ========== */
@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes chevron-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes connector-scale {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ========== Scroll reveal ========== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.35s ease-out,
    transform 0.35s ease-out;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-item[data-reveal-delay="1"] { transition-delay: 0.06s; }
.reveal-item[data-reveal-delay="2"] { transition-delay: 0.12s; }
.reveal-item[data-reveal-delay="3"] { transition-delay: 0.18s; }
.reveal-item[data-reveal-delay="4"] { transition-delay: 0.24s; }
.reveal-item[data-reveal-delay="5"] { transition-delay: 0.3s; }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-family: var(--font-display);
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
  min-height: 2.75rem;
}

.btn-accent {
  background-color: hsl(145, 63%, 32%);
  color: hsl(0, 0%, 100%);
}

.btn-accent:hover {
  background-color: hsl(145, 63%, 28%);
}

.btn-outline-accent {
  border: 2px solid hsl(var(--accent));
  color: hsl(var(--foreground));
  background-color: hsl(var(--card));
}

.btn-outline-accent:hover {
  background-color: hsl(220, 12%, 91%);
  border-color: hsl(145, 63%, 32%);
  color: hsl(var(--foreground));
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay-tint {
  background-color: hsl(var(--primary) / 0.6);
}

.hero-pulse {
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-particles .particle {
  position: absolute;
  border-radius: 50%;
  background-color: hsl(var(--accent) / 0.3);
  animation: float-up var(--duration, 12s) var(--delay, 0s) linear infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1.25rem 7rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 6rem;
  }
}

/* Container dos logos: carrossel no mobile, centralizado no desktop */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  position: relative;
}

@media (max-width: 639px) {
  .hero-logos {
    overflow: hidden;
  }
}

@media (min-width: 640px) {
  .hero-logos {
    margin-bottom: 2.5rem;
  }
}

.hero-logos-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

@media (max-width: 639px) {
  .hero-logos-track {
    animation: hero-logos-scroll 80s linear infinite;
    width: max-content;
    gap: 0;
    will-change: transform;
  }

  .hero-logos-set {
    padding-right: 1.25rem;
  }

  .hero-logos-set::after {
    content: "";
    display: block;
    height: 3rem;
    width: 1px;
    background-color: hsl(var(--primary-foreground) / 0.2);
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logos-track {
    animation: none;
  }

  .hero-logos {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 640px) {
  .hero-logos-track {
    animation: none;
  }

  .hero-logos-set:not(:first-of-type) {
    display: none;
  }
}

.hero-logos-set {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

@keyframes hero-logos-scroll {
  to {
    transform: translateX(-400%);
  }
}

.hero-logo-inovatech {
  height: 6.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .hero-logo-inovatech {
    height: 7rem;
  }
}

@media (min-width: 768px) {
  .hero-logo-inovatech {
    height: 9rem;
  }
}

.hero-logos-divider {
  height: 3rem;
  width: 1px;
  background-color: hsl(var(--primary-foreground) / 0.2);
  display: none;
}

@media (min-width: 640px) {
  .hero-logos-divider {
    display: block;
  }
}

.hero-logo-ifpi {
  height: 4.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .hero-logo-ifpi {
    height: 4rem;
  }
}

@media (min-width: 768px) {
  .hero-logo-ifpi {
    height: 5rem;
  }
}

.hero-logo-piauigovtech {
  height: 3rem;
  width: auto;
}

@media (min-width: 640px) {
  .hero-logo-piauigovtech {
    height: 3.25rem;
  }
}

@media (min-width: 768px) {
  .hero-logo-piauigovtech {
    height: 3.5rem;
  }
}

.hero-logo-faifpi {
  height: 3.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .hero-logo-faifpi {
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .hero-logo-faifpi {
    height: 4rem;
  }
}

/* Título hero: Inter (já carregada), pesos como no logo: INOVA em negrito, TECH leve */
.hero-title {
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 0.95;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .text-gradient {
  font-weight: 300;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.375rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }
}

.hero-lead {
  font-size: 1rem;
  color: hsl(var(--primary-foreground) / 0.9);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .hero-lead {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.25rem;
  }
}

.hero-desc {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.8);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

/* Último dia: libera altura em viewports estreitas (até 1280px); após
   encerramento o contador some e o texto volta a aparecer (sem classe
   hero--countdown-last-day). */
@media (max-width: 1280px) {
  .hero--countdown-last-day .hero-desc {
    display: none;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    gap: 1rem;
  }
}

.hero-ctas .btn {
  width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 640px) {
  .hero-ctas .btn {
    width: auto;
    white-space: nowrap;
  }
}

/* ========== Contador último dia de inscrições ========== */
.countdown {
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.countdown--hero {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .countdown--hero {
    margin-bottom: 2rem;
  }
}

.countdown--anchored {
  max-width: 36rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .countdown--anchored {
    margin-bottom: 2.5rem;
  }
}

.countdown__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .countdown__title {
    font-size: 0.875rem;
  }
}

.countdown--anchored .countdown__title {
  color: hsl(var(--secondary-foreground));
}

.countdown__hint {
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.75);
  margin-bottom: 1rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .countdown__hint {
    font-size: 0.8125rem;
    margin-bottom: 1.25rem;
  }
}

.countdown--anchored .countdown__hint {
  color: hsl(var(--secondary-foreground) / 0.8);
}

.countdown__track {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

@media (min-width: 400px) {
  .countdown__track {
    gap: 0.5rem 0.75rem;
  }
}

.countdown__pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown__digits {
  display: flex;
  gap: 0.25rem;
}

@media (min-width: 400px) {
  .countdown__digits {
    gap: 0.35rem;
  }
}

.countdown__card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.4rem 0.35rem;
  border-radius: 0.35rem;
  background: hsla(0, 0%, 100%, 0.96);
  box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.12);
}

@media (min-width: 400px) {
  .countdown__card {
    min-width: 2.75rem;
    padding: 0.5rem 0.45rem;
    border-radius: 0.4rem;
  }
}

@media (min-width: 640px) {
  .countdown__card {
    min-width: 3.25rem;
    padding: 0.6rem 0.5rem;
  }
}

.countdown__digit {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: hsl(var(--foreground));
}

@media (min-width: 400px) {
  .countdown__digit {
    font-size: 1.75rem;
  }
}

@media (min-width: 640px) {
  .countdown__digit {
    font-size: 2rem;
  }
}

.countdown__label {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: hsl(var(--primary-foreground) / 0.85);
}

@media (min-width: 400px) {
  .countdown__label {
    font-size: 0.625rem;
  }
}

.countdown--anchored .countdown__label {
  color: hsl(var(--secondary-foreground) / 0.85);
}

.countdown__sep {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  padding-top: 0.25rem;
}

.countdown__sep-dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 0.06rem;
  background: hsl(var(--primary-foreground));
  opacity: 0.9;
}

.countdown--anchored .countdown__sep-dot {
  background: hsl(var(--secondary-foreground));
}

.countdown__ended {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  margin: 0;
}

.countdown--anchored .countdown__ended {
  color: hsl(var(--secondary-foreground));
}

.countdown--done .countdown__track,
.countdown--done .countdown__hint {
  display: none;
}

.countdown--done .countdown__ended {
  display: block;
}

/* Card de sucesso no hero (inscricao-ok) */
.hero-success-card {
  background: hsla(222, 47%, 11%, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--primary-foreground) / 0.2);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 8px 32px hsla(0, 0%, 0%, 0.35);
}

@media (min-width: 640px) {
  .hero-success-card {
    padding: 2.75rem 2rem;
    max-width: 34rem;
  }
}

.hero-success-icon-wrap {
  margin-bottom: 1.5rem;
}

.hero-success-icon {
  color: hsl(var(--accent));
  margin-left: auto;
  margin-right: auto;
  display: block;
  filter: drop-shadow(0 0 12px hsl(var(--accent) / 0.4));
}

.hero-success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.875rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-success-title {
    font-size: 1.875rem;
  }
}

.hero-success-text {
  font-size: 0.9375rem;
  color: hsl(var(--primary-foreground));
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .hero-success-text {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
  }
}

.hero-success-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-success-ctas {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

.hero-success-ctas .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-success-ctas .btn {
    width: auto;
  }
}

.hero-success-text-warning {
  color: hsl(var(--primary-foreground) / 0.9);
}

.hero-success-link-wrap {
  margin: 1rem 0 1.5rem;
  word-break: break-all;
}

.hero-success-link {
  color: hsl(var(--accent));
  text-decoration: underline;
  font-size: 0.875rem;
}

.hero-success-link:hover {
  text-decoration: none;
}

/* Mensagens flash (Django) no topo da landing */
.landing-messages {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  box-shadow: 0 2px 8px hsl(0 0% 0% / 0.08);
}

.landing-alert-success {
  border-color: hsl(var(--accent) / 0.5);
  background: hsl(var(--accent) / 0.08);
  color: hsl(var(--foreground));
}

.landing-alert-warning {
  border-color: hsl(38 92% 50% / 0.6);
  background: hsl(38 92% 50% / 0.1);
  color: hsl(var(--foreground));
}

.hero-scroll-indicator {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  z-index: 10;
  color: hsl(var(--accent) / 0.85);
}

.hero-scroll-indicator .chevron-bounce {
  display: inline-block;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 4px hsl(0 0% 0% / 0.3));
}

@media (max-width: 639px) {
  .hero-scroll-indicator {
    color: hsl(var(--accent));
  }

  .hero-scroll-indicator .chevron-bounce {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 6px hsl(0 0% 0% / 0.4));
  }
}

.chevron-bounce {
  animation: chevron-bounce 2s ease-in-out infinite;
}

/* ========== Sections ========== */
.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.section-about {
  background-color: hsl(220, 18%, 93%);
}

.section-about .card-glass {
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px hsl(220, 15%, 88% / 0.4);
}

.section-benefits {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.section-how {
  background-color: hsl(var(--background));
  overflow: hidden;
}

.section-trilhas {
  background-color: hsl(220, 18%, 93%);
}

/* Seção documentos: fundo claro para delimitar da seção "Acessar minha inscrição" */
.section-documentos {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.section-documentos .section-label {
  color: hsl(var(--accent));
}

.section-documentos .section-title {
  color: hsl(var(--foreground));
}

.section-documentos .section-desc,
.section-documentos .publicacao-data {
  color: hsl(var(--muted-foreground));
}

.section-documentos .publicacao-tipo {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-right: 0.5rem;
}

.section-documentos .publicacao-link,
.section-documentos .publicacao-titulo {
  font-weight: 600;
}

.section-documentos .publicacao-link {
  color: hsl(var(--primary));
}

.section-documentos .publicacao-link:hover {
  color: hsl(var(--accent));
}

.section-documentos .publicacao-data {
  font-size: 0.875rem;
}

.section-documentos a.btn {
  color: inherit;
  padding: 0.5rem 1rem;
}

.section-duvidas {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.section-duvidas .section-label {
  color: hsl(var(--accent));
}

.section-duvidas .section-title {
  color: hsl(var(--primary-foreground));
}

.section-duvidas .section-desc,
.section-duvidas .section-desc-narrow {
  color: hsl(var(--primary-foreground) / 0.72);
}

.duvidas-card {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.14);
  background-color: hsl(var(--primary-foreground) / 0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px hsl(220 40% 4% / 0.25);
}

@media (min-width: 640px) {
  .duvidas-card {
    padding: 2rem;
    gap: 1.25rem;
  }
}

.duvidas-text {
  color: hsl(var(--primary-foreground) / 0.86);
  font-size: 0.95rem;
  line-height: 1.625;
}

@media (min-width: 640px) {
  .duvidas-text {
    font-size: 1.05rem;
  }
}

.duvidas-email-link {
  color: hsl(var(--accent));
  font-weight: 600;
  text-decoration: underline;
}

.duvidas-email-link:hover {
  color: hsl(var(--primary-foreground));
}

.section-duvidas .btn-outline-accent {
  /* Respiro lateral além do .btn-lg (evita texto “espremido”) */
  padding-inline: 2.25rem;
}

/* FAQ (acordeão nativo) — dentro da seção Dúvidas */
.faq-wrap {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.faq-heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .faq-heading {
    font-size: 1.25rem;
  }
}

.faq-intro {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--primary-foreground) / 0.78);
  text-align: center;
  margin: 0 0 1.25rem;
}

.section-duvidas .faq-doc-link {
  color: hsl(var(--accent));
  font-weight: 600;
  text-decoration: underline;
}

.section-duvidas .faq-doc-link:hover {
  color: hsl(var(--primary-foreground));
}

.faq-item {
  border: 1px solid hsl(var(--primary-foreground) / 0.12);
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  background: hsl(var(--primary-foreground) / 0.04);
}

.faq-item[open] {
  background: hsl(var(--primary-foreground) / 0.07);
}

.faq-summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(var(--primary-foreground));
  position: relative;
  padding-right: 2.5rem;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid hsl(var(--accent));
  border-bottom: 2px solid hsl(var(--accent));
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px hsl(var(--ring) / 0.6);
  border-radius: 0.75rem;
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: hsl(var(--primary-foreground) / 0.88);
}

.faq-answer p {
  margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.faq-list li {
  margin-bottom: 0.35rem;
}

.faq-cursos-dl {
  margin: 0.75rem 0 0;
}

.faq-cursos-dt {
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--accent));
  margin: 0.75rem 0 0.35rem;
}

.faq-cursos-dt:first-child {
  margin-top: 0;
}

.faq-cursos-dd {
  margin: 0;
}

.faq-cursos-ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  color: hsl(var(--primary-foreground) / 0.85);
}

.faq-cursos-ul li {
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .faq-answer {
    font-size: 0.9375rem;
  }

  .faq-summary {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-summary::after {
    transition: none;
  }
}

.section-trilhas .card-glass {
  background: hsl(0, 0%, 100%);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px hsl(220, 15%, 88% / 0.4);
}

.section-form {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.portal-banner + .section.section-form {
  padding-top: 1rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .portal-banner + .section.section-form {
    padding-top: 1.25rem;
    padding-bottom: 6rem;
  }
}

.portal-banner + .section.section-form .section-head .section-title {
  margin-top: 0;
}

/* ========== Portal (Minha Inscrição) banner ========== */
.portal-banner {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  padding-top: 2rem;
  padding-bottom: 1rem;
}

@media (min-width: 640px) {
  .portal-banner {
    padding-top: 2.5rem;
    padding-bottom: 1.25rem;
  }
}

.portal-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.portal-banner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

@media (max-width: 639px) {
  .portal-banner-logos {
    overflow: hidden;
  }
}

.portal-banner-logos-track {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 639px) {
  .portal-banner-logos-track {
    animation: portal-banner-logos-scroll 80s linear infinite;
    width: max-content;
    gap: 0;
    will-change: transform;
  }

  .portal-banner-logos-set {
    padding-right: 1rem;
  }

  .portal-banner-logos-set::after {
    content: "";
    display: block;
    height: 2.25rem;
    width: 1px;
    background-color: hsl(var(--secondary-foreground) / 0.2);
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-banner-logos-track {
    animation: none;
  }

  .portal-banner-logos {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 640px) {
  .portal-banner-logos-track {
    animation: none;
  }

  .portal-banner-logos-set:not(:first-of-type) {
    display: none;
  }
}

.portal-banner-logos-set {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

@keyframes portal-banner-logos-scroll {
  to {
    transform: translateX(-400%);
  }
}

.portal-banner .portal-banner-logo {
  height: 4rem;
  width: auto;
}

.portal-banner-logos-set .portal-banner-logo:first-child {
  height: 4.5rem;
}

@media (min-width: 640px) {
  .portal-banner .portal-banner-logo {
    height: 4.5rem;
  }

  .portal-banner-logos-set .portal-banner-logo:first-child {
    height: 5.25rem;
  }
}

.portal-banner-divider {
  height: 2.25rem;
  width: 1px;
  background-color: hsl(var(--secondary-foreground) / 0.2);
}

@media (min-width: 640px) {
  .portal-banner-divider {
    height: 3rem;
  }
}

.portal-banner-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(var(--accent));
}

.portal-banner + .section.section-form .section-head {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .portal-banner + .section.section-form .section-head {
    margin-bottom: 2rem;
  }
}

.section-numbers {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

@media (min-width: 640px) {
  .section-numbers {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .numbers-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.number-item {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary-foreground) / 0.06);
}

.number-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--accent));
}

@media (min-width: 640px) {
  .number-value {
    font-size: 1.75rem;
  }
}

.number-label {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.8);
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .number-label {
    font-size: 0.875rem;
  }
}

.section-head {
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-head {
    margin-bottom: 4rem;
  }
}

.section-head-center {
  text-align: center;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: hsl(var(--accent));
}

@media (min-width: 640px) {
  .section-label {
    font-size: 0.875rem;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: inherit;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-desc {
  margin-top: 1rem;
  max-width: 42rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.625;
}

.section-head-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-desc-narrow {
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.6);
}

@media (min-width: 640px) {
  .section-desc {
    font-size: 1.125rem;
  }
}

/* ========== Cards (Sobre) ========== */
.cards-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cards-grid {
    gap: 2rem;
  }
}

.cards-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-glass {
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 640px) {
  .card-glass {
    padding: 2rem;
  }
}

.card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 24px -6px hsl(var(--glow-accent) / 0.35);
}

.card-icon-wrap {
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s;
}

@media (min-width: 640px) {
  .card-icon-wrap {
    height: 3.5rem;
    width: 3.5rem;
    margin-bottom: 1.5rem;
  }
}

.card-glass:hover .card-icon-wrap {
  background-color: hsl(var(--accent) / 0.2);
}

.card-icon {
  color: hsl(var(--accent));
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

.card-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

@media (min-width: 640px) {
  .card-text {
    font-size: 1rem;
  }
}

/* ========== Benefits ========== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .benefits-grid {
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card-benefit {
  border-radius: 1rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  background-color: hsl(var(--secondary-foreground) / 0.05);
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.3s, background-color 0.3s;
}

@media (min-width: 640px) {
  .card-benefit {
    padding: 1.75rem;
  }
}

.card-benefit:hover {
  transform: translateY(-4px);
  background-color: hsl(var(--secondary-foreground) / 0.1);
}

.card-benefit-icon {
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .card-benefit-icon {
    margin-bottom: 1.25rem;
  }
}

.card-benefit-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .card-benefit-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
}

.card-benefit-text {
  font-size: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.7);
  line-height: 1.625;
}

@media (min-width: 640px) {
  .card-benefit-text {
    font-size: 0.875rem;
  }
}

/* ========== How it works ========== */
.steps-wrap {
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .steps-grid {
    gap: 2rem;
  }
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  position: relative;
}

.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--accent) / 0.2);
}

@media (min-width: 640px) {
  .step-number {
    font-size: 3rem;
  }
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
  .step-title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
}

.step-text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

@media (min-width: 640px) {
  .step-text {
    font-size: 0.875rem;
  }
}

/* ========== Form ========== */
.form-container {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.form-inscricao {
  border-radius: 1rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  background-color: hsl(var(--secondary-foreground) / 0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-inscricao {
    padding: 2.5rem;
  }
}

.section-form .form-inscricao {
  background-color: hsl(var(--secondary-foreground) / 0.08);
  border-color: hsl(var(--secondary-foreground) / 0.15);
  box-shadow: 0 4px 24px hsla(0, 0%, 0%, 0.25);
}

.form-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group-codigo-inscricao {
  gap: 0.625rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground) / 0.8);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.15);
  background-color: hsl(var(--secondary-foreground) / 0.05);
  color: hsl(var(--secondary-foreground));
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: hsl(var(--secondary-foreground) / 0.3);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-input,
.form-select {
  min-height: 2.5rem;
}

.form-input-codigo-inscricao {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.codigo-inscricao-otp {
  position: relative;
  width: 100%;
}

.codigo-inscricao-slots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
}

.codigo-inscricao-slot {
  min-height: 2.9rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.32);
  background-color: hsl(var(--secondary-foreground) / 0.11);
  color: hsl(var(--secondary-foreground) / 0.8);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  box-shadow: inset 0 1px 0 hsl(var(--secondary-foreground) / 0.08);
}

.codigo-inscricao-slot.is-filled {
  color: hsl(var(--secondary-foreground));
}

.codigo-inscricao-slot.is-active {
  border-color: hsl(var(--secondary-foreground) / 0.55);
  box-shadow:
    inset 0 1px 0 hsl(var(--secondary-foreground) / 0.12),
    0 0 0 2px hsl(var(--ring) / 0.22);
  position: relative;
}

.codigo-inscricao-slot.is-awaiting-input::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 1.15rem;
  background: hsl(var(--secondary-foreground));
  border-radius: 2px;
  animation: cursor-piscando 1s steps(1, end) infinite;
}

@keyframes cursor-piscando {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 420px) {
  .codigo-inscricao-slots {
    gap: 0.35rem;
  }

  .codigo-inscricao-slot {
    min-height: 2.55rem;
    font-size: 1rem;
  }
}

.form-textarea {
  resize: none;
  min-height: 6rem;
}

.form-error {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
}

/* ── Resumo de erros (Error Summary) ── */
.form-error-summary {
  border-radius: 1rem;
  border: 1px solid hsl(var(--destructive) / 0.3);
  background: hsl(var(--secondary-foreground) / 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-error-summary {
    padding: 1.75rem 2rem;
  }
}

.form-error-summary::before {
  content: "";
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: hsl(var(--destructive) / 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='hsl(0,84%25,65%25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 0.1rem;
}

.form-error-summary-body {
  flex: 1;
  min-width: 0;
}

.form-error-summary-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.95);
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.form-error-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-error-summary-list li::before {
  content: "\2022";
  color: hsl(var(--destructive) / 0.6);
  margin-right: 0.5rem;
}

.form-error-summary-list a {
  color: hsl(var(--secondary-foreground) / 0.78);
  text-decoration: none;
  font-size: 0.8125rem;
  border-bottom: 1px solid hsl(var(--secondary-foreground) / 0.2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.form-error-summary-list a:hover,
.form-error-summary-list a:focus-visible {
  color: hsl(var(--accent));
  border-color: hsl(var(--accent) / 0.5);
}

.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: hsl(var(--destructive) / 0.8);
  box-shadow: 0 0 0 1px hsl(var(--destructive) / 0.2);
}

.form-section {
  margin: 0 0 0.25rem 0;
  padding: 0 0 2rem 0;
  border: none;
  border-bottom: 1px solid hsl(var(--secondary-foreground) / 0.1);
}

.form-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
}

#form-inscricao #form-submit {
  margin-top: 0.75rem;
}

.form-section > * + * {
  margin-top: 1rem;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground));
  margin: 0 0 0.5rem 0;
}

.form-optional {
  font-weight: 400;
  color: hsl(var(--secondary-foreground) / 0.6);
  font-size: 0.875rem;
}

.form-section-conditional {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.25s ease, max-height 0.3s ease;
}

.form-section-conditional.form-section-visible {
  opacity: 1;
  max-height: 20rem;
  overflow: visible;
}

/* Campo de tags (linguagens/tecnologias) — vírgula cria nova tag */
.tag-input-wrap {
  display: block;
}

.tag-input-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.15);
  background-color: hsl(var(--secondary-foreground) / 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tag-input-wrap:focus-within .tag-input-inner {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.tag-input-inner[aria-invalid="true"],
.tag-input-wrap:has(#linguagens_tecnologias[aria-invalid="true"]) .tag-input-inner {
  border-color: hsl(var(--destructive) / 0.8);
  box-shadow: 0 0 0 1px hsl(var(--destructive) / 0.2);
}

.tag-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem 0.2rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: hsl(var(--accent) / 0.2);
  color: hsl(var(--accent-foreground));
  border: 1px solid hsl(var(--accent) / 0.35);
}

.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: none;
  border-radius: 0.15rem;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s, background 0.15s;
}

.tag-remove:hover {
  opacity: 1;
  background: hsl(var(--accent-foreground) / 0.2);
}

.tag-remove:focus {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.5);
}

.tag-input-typing {
  flex: 1;
  min-width: 10rem;
  padding: 0.2rem 0;
  border: none;
  outline: none;
  background: transparent;
  color: hsl(var(--secondary-foreground));
  font-size: 1rem;
  font-family: inherit;
}

.tag-input-typing::placeholder {
  color: hsl(var(--secondary-foreground) / 0.3);
}

.form-group-checkbox {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.form-group-checkbox + .form-group-checkbox {
  margin-top: 0.5rem;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-group-checkbox .form-checkbox {
  margin-top: 0.2em;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: hsl(var(--accent));
  border-radius: 0.25rem;
}

.form-label-inline {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.form-group-checkbox .form-error {
  margin: 0 0 0 1.65rem;
}

.autocomplete-wrap {
  position: relative;
  display: block;
}

.autocomplete-wrap .autocomplete-listbox {
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Listbox herda o tema escuro da .section-form (--secondary) */
.autocomplete-listbox {
  position: absolute;
  z-index: 50;
  max-height: 14rem;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
  margin-top: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.25);
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 4px 16px hsl(0 0% 0% / 0.35);
  padding: 0.25rem 0;
}

.autocomplete-option {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  cursor: pointer;
  color: hsl(var(--secondary-foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.autocomplete-option:hover,
.autocomplete-option[aria-selected="true"] {
  background: hsl(var(--accent) / 0.25);
  color: hsl(var(--accent-foreground));
}

.autocomplete-option:active {
  background: hsl(var(--accent) / 0.35);
  transform: scale(0.98);
}

.form-group .autocomplete-input {
  display: block;
  width: 100%;
}

.form-hint {
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.65);
  margin: 0;
  line-height: 1.4;
}

.form-group-file .form-label {
  margin-bottom: 0.25rem;
}

.file-upload-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-input-file {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.form-input-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.2);
  background: hsl(var(--secondary-foreground) / 0.08);
  color: hsl(var(--secondary-foreground));
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.form-input-file:hover::file-selector-button {
  background: hsl(var(--secondary-foreground) / 0.12);
  border-color: hsl(var(--secondary-foreground) / 0.25);
}

.file-upload-feedback {
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.7);
}

.file-upload-feedback-ok {
  color: hsl(var(--accent));
}

.file-upload-feedback-error {
  color: hsl(var(--destructive));
}

.form-success {
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.form-success[hidden] {
  display: none !important;
}

.form-success-icon {
  color: hsl(var(--accent));
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.form-success-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-success-title {
    font-size: 2.25rem;
  }
}

.form-success-text {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.7);
}

@media (min-width: 640px) {
  .form-success-text {
    font-size: 1rem;
  }
}

/* ── Portal card (container principal) ── */
.portal-card {
  max-width: 42rem;
  margin: 0 auto;
  border-radius: 1rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.12);
  background: hsl(var(--secondary-foreground) / 0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .portal-card {
    padding: 2.5rem;
    gap: 2rem;
  }
}

/* ── Saudação ── */
.portal-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-greeting-avatar {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--accent) / 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent));
}

.portal-greeting-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground));
  margin: 0;
  letter-spacing: -0.01em;
}

.portal-greeting-sub {
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.55);
  margin: 0.15rem 0 0;
}

/* ── Edição de dados no portal ── */
.portal-edit-card {
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  background: hsl(var(--secondary-foreground) / 0.04);
  padding: 0.2rem 1.25rem 1rem;
}

.portal-edit-details[open] {
  padding-top: 0.65rem;
}

.portal-edit-details:not([open]) .portal-edit-body {
  display: none;
}

.portal-edit-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--secondary-foreground) / 0.12);
}

.portal-edit-summary::-webkit-details-marker {
  display: none;
}

.portal-edit-summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.7);
  line-height: 1;
}

.portal-edit-details[open] .portal-edit-summary::after {
  content: "\2212";
}

.portal-edit-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground));
}

.portal-edit-body {
  padding-top: 0.85rem;
}

.portal-edit-head {
  margin-bottom: 0.9rem;
}

.portal-edit-sub {
  margin: 0;
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.62);
}

.portal-edit-help {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.portal-edit-form .form-group {
  margin: 15px 0;
}

.portal-edit-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .portal-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portal-edit-actions {
  margin: 20px 0;
  display: flex;
  justify-content: flex-end;
}

.portal-edit-actions .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .portal-edit-actions .btn {
    width: auto;
  }
}

/* ── Status banner (destaque principal) ── */
.portal-status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  background: hsl(var(--secondary-foreground) / 0.04);
  padding: 1rem 1.25rem;
}

.portal-status-icon-wrap {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-status-banner:has(.portal-status-badge--pending) .portal-status-icon-wrap {
  background: hsl(45 93% 47% / 0.15);
  color: hsl(45 93% 58%);
}

.portal-status-banner:has(.portal-status-badge--success) .portal-status-icon-wrap {
  background: hsl(var(--accent) / 0.15);
  color: hsl(var(--accent));
}

.portal-status-banner:has(.portal-status-badge--error) .portal-status-icon-wrap {
  background: hsl(var(--destructive) / 0.15);
  color: hsl(var(--destructive));
}

.portal-motivos-indeferimento {
  background: hsl(var(--destructive) / 0.08);
  border: 1px solid hsl(var(--destructive) / 0.35);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
}

.portal-motivos-title {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--destructive));
}

.portal-motivos-list {
  margin: 0;
  padding-left: 1.25rem;
}

.portal-motivos-list li {
  margin-bottom: 0.25rem;
}

.portal-motivos-empty {
  margin: 0;
  font-size: 0.9375rem;
  color: hsl(var(--secondary-foreground) / 0.9);
}

.portal-status-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.portal-status-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground) / 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-status-badge {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.portal-status-badge--pending {
  color: hsl(45 93% 58%);
}

.portal-status-badge--success {
  color: hsl(var(--accent));
}

.portal-status-badge--error {
  color: hsl(var(--destructive));
}

/* ── Grid de dados ── */
.portal-dados-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .portal-dados-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.portal-dado-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.08);
  background: hsl(var(--secondary-foreground) / 0.03);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.portal-dado-card:hover {
  border-color: hsl(var(--secondary-foreground) / 0.18);
}

.portal-dado-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--accent) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--accent) / 0.75);
  margin-bottom: 0.25rem;
}

.portal-dado-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground) / 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-dado-value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground) / 0.92);
  margin: 0;
  line-height: 1.4;
}

/* ── Badges inline ── */
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 2rem;
  letter-spacing: -0.01em;
}

.portal-badge--pending {
  background: hsl(45 93% 47% / 0.12);
  color: hsl(45 93% 58%);
}

.portal-badge--success {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
}

.portal-badge--error {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

/* ── CTAs ── */
.portal-ctas {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--secondary-foreground) / 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .portal-ctas {
    flex-direction: row;
    gap: 1rem;
  }
}

.portal-ctas .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .portal-ctas .btn {
    width: auto;
  }
}

/* ── Local de prova (mapa) ── */
.portal-local-prova {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius, 12px);
  border: 1px solid hsl(var(--secondary-foreground) / 0.12);
  background: hsl(var(--secondary) / 0.35);
}

.portal-local-prova__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: hsl(var(--secondary-foreground) / 0.95);
}

.portal-local-prova__endereco {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: hsl(var(--secondary-foreground) / 0.88);
  margin: 0 0 1rem;
}

.portal-local-prova__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: hsl(var(--secondary-foreground) / 0.78);
  margin: 0 0 0.75rem;
}

.portal-local-prova__sala {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.92);
  margin: 0 0 0.35rem;
}

.portal-local-prova__meta {
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.62);
  margin: 0 0 1rem;
}

.portal-mapa-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  max-height: min(360px, 55vh);
  overflow: hidden;
  border-radius: var(--radius, 12px);
  border: 1px solid hsl(var(--secondary-foreground) / 0.12);
  background: hsl(var(--secondary-foreground) / 0.06);
}

.portal-mapa-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portal-local-prova__acoes {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.portal-dados-grid--spaced {
  margin-top: 1rem;
}

.portal-local-prova__subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  color: hsl(var(--secondary-foreground) / 0.95);
}

.portal-local-prova__text--spaced {
  margin-top: 1rem;
}

/* ── Prova objetiva: valor destacado ── */
.portal-dado-value--destaque {
  font-size: 1.375rem;
  font-weight: 700;
  color: hsl(var(--accent));
}

/* ── Prova objetiva: ranking ── */
.po-rank {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--secondary-foreground) / 0.92);
}

.po-rank-total {
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.5);
  margin-left: 0.2rem;
}

/* ── Prova objetiva: help button (tooltip ?) ── */
.po-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  margin-left: 0.3rem;
  cursor: pointer;
  color: hsl(var(--secondary-foreground) / 0.45);
  vertical-align: middle;
  transition: color 0.15s;
}

.po-help-btn:hover,
.po-help-btn:focus-visible {
  color: hsl(var(--accent));
  outline: none;
}

/* ── Prova objetiva: tooltip ── */
.po-tooltip {
  display: none;
  position: absolute;
  z-index: 50;
  max-width: 260px;
  padding: 0.65rem 0.85rem;
  border-radius: 0.625rem;
  background: hsl(var(--secondary-foreground) / 0.92);
  color: hsl(var(--secondary) / 0.95);
  font-size: 0.8125rem;
  line-height: 1.5;
  box-shadow: 0 4px 18px hsl(0 0% 0% / 0.18);
  pointer-events: none;
}

.po-tooltip--visible {
  display: block;
}

/* Posicionar relativo ao card pai */
.portal-dado-card {
  position: relative;
}

/* ── Prova objetiva: badges acertos/erros/branco ── */
.po-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.po-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  letter-spacing: -0.01em;
}

.po-badge--sm {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
}

.po-badge--acerto {
  background: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
}

.po-badge--erro {
  background: hsl(var(--destructive) / 0.12);
  color: hsl(var(--destructive));
}

.po-badge--branco {
  background: hsl(var(--secondary-foreground) / 0.08);
  color: hsl(var(--secondary-foreground) / 0.6);
}

/* ── Prova objetiva: questões anuladas ── */
.po-anuladas {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  color: hsl(45 93% 52%);
}

.po-anuladas svg {
  flex-shrink: 0;
  position: relative;
  top: 0.1em;
}

/* ── Prova objetiva: badge "preliminar" ── */
.po-preliminar-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: 2rem;
  background: hsl(45 93% 52% / 0.15);
  color: hsl(38 80% 36%);
  vertical-align: middle;
  margin-left: 0.2rem;
}

/* ── Prova objetiva: badge tipo de vaga ── */
.po-tipo-vaga-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 2rem;
  background: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  letter-spacing: 0.02em;
  vertical-align: middle;
  margin-left: 0.25rem;
  text-transform: none;
}

/* ── Prova objetiva: dot plot ── */
.po-section-title {
  margin-top: 1.5rem;
}

.po-dotplots {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .po-dotplots {
    grid-template-columns: repeat(2, 1fr);
  }
}

.po-dotplot-wrap {
  background: hsl(var(--secondary-foreground) / 0.02);
  border: 1px solid hsl(var(--secondary-foreground) / 0.07);
  border-radius: 0.75rem;
  padding: 0.75rem 0.85rem 0.5rem;
}

.po-dotplot-titulo {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
}

.po-dotplot-canvas {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
}

.po-dotplot-legenda {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.55);
}

.po-dotplot-legenda__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.po-dotplot-legenda__item::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.po-dotplot-legenda__item--turma::before {
  background: hsl(var(--secondary-foreground) / 0.22);
}

.po-dotplot-legenda__item--voce::before {
  background: hsl(var(--accent));
}

/* ── Prova objetiva: legenda dos assuntos ── */
.po-assuntos-legenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.55);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.po-legenda-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

/* ── Prova objetiva: grid de assuntos ── */
.po-assuntos-grid {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .po-assuntos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.po-assunto-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.08);
  background: hsl(var(--secondary-foreground) / 0.02);
}

.po-assunto-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--secondary-foreground) / 0.82);
  flex: 1;
  min-width: 0;
}

.po-assunto-card__badges {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}

/* ── Prova objetiva: grade de respostas candidato × gabarito ── */
.po-respostas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.po-resp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.2rem 0.3rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  background: hsl(var(--secondary-foreground) / 0.02);
  cursor: default;
}

.po-resp-card--acerto { border-color: hsl(var(--accent) / 0.3); background: hsl(var(--accent) / 0.05); }
.po-resp-card--erro    { border-color: hsl(var(--destructive) / 0.3); background: hsl(var(--destructive) / 0.05); }
.po-resp-card--anulada { border-color: hsl(45 93% 52% / 0.35); background: hsl(45 93% 52% / 0.06); }

.po-resp-card__num {
  font-size: 0.6rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.45);
  line-height: 1;
}

.po-resp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.3rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.po-resp-badge--acerto  { background: hsl(var(--accent) / 0.15);       color: hsl(var(--accent)); }
.po-resp-badge--erro    { background: hsl(var(--destructive) / 0.15);   color: hsl(var(--destructive)); }
.po-resp-badge--branco  { background: hsl(var(--secondary-foreground) / 0.08); color: hsl(var(--secondary-foreground) / 0.55); }
.po-resp-badge--anulada { background: hsl(45 93% 52% / 0.18);           color: hsl(40 80% 38%); }

/* gabarito correto exibido abaixo quando há erro */
.po-resp-card__gab {
  font-size: 0.6rem;
  font-weight: 600;
  color: hsl(var(--secondary-foreground) / 0.45);
  line-height: 1;
}

.portal-video-campus {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid hsl(var(--secondary-foreground) / 0.12);
}

.portal-video-campus__title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: hsl(var(--secondary-foreground) / 0.95);
}

.portal-video-campus__intro {
  margin-bottom: 0.85rem;
}

.portal-video-campus__embed {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 32rem);
  overflow: hidden;
  border-radius: var(--radius, 12px);
  border: 1px solid hsl(var(--secondary-foreground) / 0.12);
  background: hsl(var(--secondary-foreground) / 0.06);
}

.portal-video-campus__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Página Publicações (portal) ========== */
.publicacoes-lista-portal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.publicacao-card {
  background-color: hsl(var(--secondary-foreground) / 0.06);
  border: 1px solid hsl(var(--secondary-foreground) / 0.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.publicacao-card:hover {
  background-color: hsl(var(--secondary-foreground) / 0.09);
  border-color: hsl(var(--secondary-foreground) / 0.18);
}

.publicacao-card-tipo {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin-bottom: 0.375rem;
}

.publicacao-card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.publicacao-card-titulo {
  font-weight: 600;
  color: hsl(var(--secondary-foreground));
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.publicacao-card-titulo:hover {
  color: hsl(var(--accent));
}

.publicacao-card-titulo-plain {
  color: hsl(var(--secondary-foreground) / 0.95);
}

.publicacao-card-data {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.65);
  flex-shrink: 0;
}

.publicacoes-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background-color: hsl(var(--secondary-foreground) / 0.05);
  border: 1px dashed hsl(var(--secondary-foreground) / 0.15);
  border-radius: var(--radius);
}

.publicacoes-empty-text {
  font-weight: 600;
  font-size: 1rem;
  color: hsl(var(--secondary-foreground) / 0.9);
  margin-bottom: 0.5rem;
}

.publicacoes-empty-desc {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.65);
  max-width: 26rem;
  margin: 0 auto;
  line-height: 1.5;
}

.btn-submit-content,
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading[hidden] {
  display: none !important;
}

.btn-submit-content[hidden] {
  display: none !important;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid hsl(var(--accent-foreground) / 0.3);
  border-top-color: hsl(var(--accent-foreground));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes footer-logos-scroll {
  to {
    transform: translateX(-400%);
  }
}

/* ========== Footer ========== */
.footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding-top: 3rem;
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .footer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-main {
    gap: 2rem;
  }
}

/* Container dos logos: no mobile overflow hidden para o carrossel */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  position: relative;
}

/* Camada sobre os logos para suavizar o contraste (mantém o branco) */
.footer-logos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: hsl(var(--primary) / 0.4);
  pointer-events: none;
}

@media (max-width: 639px) {
  .footer-logos {
    overflow: hidden;
  }
}

@media (min-width: 640px) {
  .footer-logos {
    justify-content: center;
  }
}

/* Track do carrossel: no mobile duas cópias em linha com animação */
.footer-logos-track {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 639px) {
  .footer-logos-track {
    animation: footer-logos-scroll 80s linear infinite;
    width: max-content;
    gap: 0; /* Sem gap entre as duas cópias = loop contínuo sem “quebra” */
    will-change: transform;
  }

  /* Ajuste no conjunto para garantir simetria perfeita no loop */
  .footer-logos-set {
    padding-right: 1rem; /* Espaço após o divisor final (igual ao gap interno) */
  }

  /* Adiciona o divisor final que falta no HTML original */
  .footer-logos-set::after {
    content: "";
    display: block;
    height: 2rem;
    width: 1px;
    background-color: hsl(var(--primary-foreground) / 0.15);
    flex-shrink: 0; /* Impede que o divisor seja esmagado */
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-logos-track {
    animation: none;
  }

  .footer-logos {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 640px) {
  .footer-logos-track {
    animation: none;
  }

  .footer-logos-set:not(:first-of-type) {
    display: none;
  }
}

.footer-logos-set {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.footer-logo {
  height: 3.5rem;
  width: auto;
}

.footer-logo-inovatech {
  height: 7rem;
}

.footer-logo-ifpi {
  height: 4rem;
}

.footer-logo-piauigovtech {
  height: 3rem;
}

.footer-logo-faifpi {
  height: 3.5rem;
}

.footer-logos-divider {
  height: 2rem;
  width: 1px;
  background-color: hsl(var(--primary-foreground) / 0.15);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.6);
}

@media (max-width: 639px) {
  .footer-nav {
    gap: 0.5rem;
  }
}

.footer-link:hover {
  color: hsl(var(--accent));
  transition: color 0.2s;
}

.footer-contact {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .footer-contact {
    margin-top: 1.5rem;
  }
}

.footer-contact-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.5rem;
}

.footer-address {
  font-style: normal;
  font-size: 0.8125rem;
  color: hsl(var(--primary-foreground) / 0.8);
  line-height: 1.6;
}

.footer-address a {
  color: inherit;
  text-decoration: underline;
}

.footer-address a:hover {
  color: hsl(var(--accent));
}

.footer-ods {
  margin-top: 1rem;
  font-size: 0.6875rem;
  color: hsl(var(--primary-foreground) / 0.55);
  text-align: center;
}

.footer-copy {
  border-top: 1px solid hsl(var(--primary-foreground) / 0.15);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.72);
}

@media (min-width: 640px) {
  .footer-copy {
    margin-top: 2.5rem;
  }
}
