/* ═══════════════════════════════════════════════════════════
   Petrobras Vitalício — Concurseiro Zero1 — Design System v4.0
   Source-of-truth: docs/design-systems/petrobras-vitalicio/SYSTEM.md
   Audit: docs/audits/v1-audit-report.md (último score 64/100, alvo 92+)
   Lifecycle: cada componente marcado com @status canonical|stable|experimental
   ═══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "PF Fusion Sans Pro";
  src: url("./assets/PFFusionSansPro-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg-base: #000000;
  --bg-deep-green: #051914;
  --bg-card: #0a2418;
  --bg-card-elevated: #103a28;

  /* Borders */
  --border-card: #1a4d3a;
  --border-card-strong: #015734;

  /* Brand greens (use as gradient, never solid) */
  --green-1: #0FFC84;
  --green-2: #1EE751;
  --green-glow: rgba(15, 252, 132, 0.45);

  /* Brand yellows/gold (use as gradient, never solid) */
  --yellow-1: #FFDC00;
  --yellow-2: #E3AE00;
  --yellow-glow: rgba(255, 220, 0, 0.45);

  /* Alert / Urgência */
  --red-alert: #6E0A10;
  --red-alert-deep: #480709;
  --red-alert-text-accent: #FFDC00;

  /* Text */
  --text: #FFFFFF;
  --text-soft: #D1D5DB;
  --text-muted: #9CA3AF;
  --text-on-light: #0a1812;

  /* Gradients (BRAND — sempre usar estes) */
  --gradient-green: linear-gradient(180deg, #0FFC84 0%, #1EE751 100%);
  --gradient-green-radial: radial-gradient(ellipse at top, #0FFC84 0%, #1EE751 80%);
  --gradient-yellow: linear-gradient(180deg, #FFDC00 0%, #E3AE00 100%);
  --gradient-yellow-radial: radial-gradient(ellipse at top, #FFDC00 0%, #E3AE00 80%);
  --gradient-alert: linear-gradient(180deg, #6E0A10 0%, #480709 100%);
  --gradient-card-surface: linear-gradient(180deg, #0a2418 0%, #051914 100%);
  --gradient-card-glass: linear-gradient(180deg, rgba(15, 50, 35, 0.55) 0%, rgba(5, 25, 20, 0.4) 100%);
  --border-glass: rgba(26, 77, 58, 0.6);
  --bg-vignette: radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(0, 80, 50, 0.15) 0%, transparent 70%);

  /* Glows (depth = LUZ neon, NUNCA sombra escura) */
  --glow-green: 0 0 32px rgba(15, 252, 132, 0.5), 0 0 64px rgba(15, 252, 132, 0.22);
  --glow-green-soft: 0 0 24px rgba(15, 252, 132, 0.18);
  --glow-yellow: 0 0 28px rgba(255, 220, 0, 0.45);
  --glow-yellow-soft: 0 0 16px rgba(255, 220, 0, 0.2);
  --card-elevation: 0 8px 24px rgba(0, 0, 0, 0.5);
  --cta-inner: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.28);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 20px;
  --r-pill: 9999px;

  /* Spacing */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;

  /* Fonts */
  --font-display: "PF Fusion Sans Pro", "Bebas Neue", system-ui, sans-serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   Base reset + page background com vignettes ricos (sutil)
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 800px 500px at 15% 0%, rgba(15, 252, 132, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 700px 400px at 85% 30%, rgba(255, 220, 0, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse 1000px 600px at 50% 100%, rgba(0, 80, 50, 0.08) 0%, transparent 70%);
  background-attachment: fixed;
}

/* ═══════════════════════════════════════════════════════════
   A11y baseline — focus-visible global e prefers-reduced-motion
   @status canonical | @since 2026-05 | @sources all-landings
   ═══════════════════════════════════════════════════════════ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--green-1);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip-to-content link — primeira coisa no <body>
   @status canonical | @since 2026-05 | a11y WCAG 2.4.1 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--green-1);
  color: #000;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 9999;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { top: 0; }

/* Visually hidden — pra texto que so screen reader le */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════════════════════ */
.h-hero {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 var(--s-md);
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin: 0 0 var(--s-lg);
}
/* Eyebrow: texto pequeno acima do h-section, substitui emoji "categoria" */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green-1);
  margin: 0 0 var(--s-sm);
}
.eyebrow.gold { color: var(--yellow-1); }
.h-thumb {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 5.5rem;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.n-large {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
}
.t-body { font-size: 1rem; line-height: 1.5; color: var(--text-soft); }
.t-lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-soft); }
.t-caption { font-size: 0.75rem; color: var(--text-muted); }

/* Word coloring 3-tone */
.w-green {
  color: var(--green-1);
  text-shadow: 0 0 16px rgba(15, 252, 132, 0.3);
}
.w-gold {
  color: var(--yellow-1);
  text-shadow: 0 0 16px rgba(255, 220, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════
   Components
   ═══════════════════════════════════════════════════════════ */

/* CTA primário verde (conversion principal)
   @status canonical | @since 2025-09 | @sources all-landings
   @states default, hover, focus-visible, active, disabled */
.cta-green {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  background: var(--gradient-green);
  color: #000;
  padding: 16px 22px 16px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--glow-green), var(--cta-inner);
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}
.cta-green:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.cta-green:active { transform: translateY(0); filter: brightness(0.95); }
.cta-green:disabled,
.cta-green[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}
.cta-green:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}
.cta-green::after {
  content: "→";
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-weight: 700;
}

/* CTA amarelo (secundário)
   @status canonical | @since 2025-09 | @sources 4-landings
   @states default, hover, focus-visible, active, disabled */
.cta-yellow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-md);
  background: var(--gradient-yellow);
  color: #000;
  padding: 16px 22px 16px 28px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--glow-yellow), var(--cta-inner);
  transition: all 0.2s ease;
  border: 0;
  cursor: pointer;
}
.cta-yellow:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.cta-yellow:active { transform: translateY(0); filter: brightness(0.95); }
.cta-yellow:disabled,
.cta-yellow[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}
.cta-yellow:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}
.cta-yellow::after {
  content: "→";
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  background: #fff;
  color: #000;
  border-radius: 50%;
  font-weight: 700;
}

/* Alert bar topo */
.alert-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--gradient-alert);
  color: #fff;
  padding: 10px var(--s-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.alert-bar strong { color: var(--yellow-1); }

/* Card padrão — glass discreto */
.card {
  background:
    linear-gradient(180deg, rgba(15, 50, 35, 0.55) 0%, rgba(5, 25, 20, 0.4) 100%);
  border: 1px solid rgba(26, 77, 58, 0.6);
  border-radius: var(--r-md);
  padding: var(--s-xl) var(--s-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    var(--glow-green-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
/* Card title — Sora 700 uppercase (NAO PF Fusion). Reservar PF Fusion
   so pra h-hero, h-section e numeros grandes (.stat-num, .ct-num, .big). */
.card-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--s-md);
  color: var(--text);
}
/* Variante grande do card-title (quando o card e o foco da secao) */
.card-title.lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
/* Card variant com border accent vertical (substitui emoji "categoria") */
.card.accent-green { border-left: 3px solid var(--green-1); }
.card.accent-gold { border-left: 3px solid var(--yellow-1); }
.card.accent-alert {
  border-left: 3px solid var(--red-alert);
  background:
    linear-gradient(180deg, rgba(110, 10, 16, 0.25) 0%, rgba(5, 25, 20, 0.4) 100%);
}

/* Stat card — glass */
.stat-card {
  background: var(--gradient-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--green-1);
}
.stat-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* Pill subject (amarelo) */
.pill-subject {
  display: inline-block;
  background: var(--gradient-yellow);
  color: #000;
  border-radius: var(--r-sm);
  padding: 3px 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
}

/* Pill metadata (Sora 700 uppercase) */
.pill-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-yellow);
  color: #000;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pill time (preto com clock) */
.pill-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

/* Schedule row */
.schedule-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-md);
  background: var(--gradient-card-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: var(--s-md);
  transition: all 0.2s ease;
}
.schedule-row:hover {
  border-color: var(--green-1);
  transform: translateX(4px);
  box-shadow: var(--glow-green-soft);
}

/* Logo treatment */
.logo {
  filter: drop-shadow(0 0 24px rgba(15, 252, 132, 0.3));
  display: block;
}

/* Layout helpers — usar padding-inline/block pra evitar conflito quando .section + .container combinam */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: var(--s-lg);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--s-xl); }
}

/* Section padding mobile-first: 32px mobile, 64px desktop (so block, lateral fica do container) */
.section { padding-block: var(--s-xl); }
@media (min-width: 768px) { .section { padding-block: var(--s-3xl); } }

.center { text-align: center; }

/* Pill time icon usando SVG inline ao invés de emoji ⌚ */
.pill-time::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230FFC84'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm0 18a8 8 0 110-16 8 8 0 010 16zm.5-13H11v6l5.2 3.1.8-1.3-4.5-2.7V7z'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ═══════════════════════════════════════════════════════════
   Componentes promovidos (originados em landings, generalizados)
   ═══════════════════════════════════════════════════════════ */

/* Confirm bar — variante green da alert-bar pra confirmação positiva
   @status canonical | @since 2026-05 | @sources 1
   @a11y wrap em role="status" aria-live="polite" se for dinamico */
.confirm-bar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, rgba(15, 252, 132, 0.12) 0%, rgba(15, 252, 132, 0.04) 100%);
  border-bottom: 1px solid rgba(15, 252, 132, 0.35);
  color: var(--text);
  padding: 10px var(--s-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.confirm-bar strong { color: var(--green-1); font-weight: 700; }
.confirm-bar svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; color: var(--green-1); }
@media (min-width: 768px) { .confirm-bar { font-size: 0.875rem; padding: 12px var(--s-md); } }

/* Countdown timer (4-cell grid: dias / horas / min / seg)
   @status canonical | @since 2026-05 | @sources 1
   @a11y use role="timer" aria-live="polite" aria-atomic="true" no wrapper */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-sm);
  max-width: 480px;
  margin: var(--s-md) auto;
}
.countdown .ct-cell {
  background: var(--bg-base);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: var(--s-sm) var(--s-xs);
  text-align: center;
}
.countdown .ct-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
  color: var(--green-1);
  font-variant-numeric: tabular-nums;
}
.countdown .ct-label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Avatar circular com iniciais (substitui emoji 👨‍🎓 / 👩‍🏫) */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--bg-card-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-card);
  color: var(--green-1);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.avatar.lg { width: 48px; height: 48px; font-size: 0.875rem; }

/* Meta chip — pill horizontal com SVG inline (calendar / clock / play / etc) */
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-card-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-soft);
}
.meta-chip svg { width: 14px; height: 14px; color: var(--green-1); flex-shrink: 0; }
.meta-chip.gold { color: var(--yellow-1); border-color: rgba(255, 220, 0, 0.3); }
.meta-chip.gold svg { color: var(--yellow-1); }

/* Thumb frame — wrapper de imagem/vídeo com glow neon */
.thumb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--glow-green-soft);
}
.thumb-frame img,
.thumb-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

/* Lesson card — card horizontal de aula (thumb + título + meta + CTAs)
   @status canonical | @since 2026-05 | @sources 1 */
.lesson-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-md);
  background: var(--gradient-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: var(--s-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}
.lesson-card:hover {
  border-color: var(--green-1);
  box-shadow: var(--glow-green-soft);
}
@media (min-width: 640px) {
  .lesson-card { grid-template-columns: 220px 1fr; align-items: center; }
}
.lesson-card .lesson-info { display: grid; gap: var(--s-sm); }
.lesson-card .lesson-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0;
  color: var(--text);
}
.lesson-card .lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.lesson-card .lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

/* Botão Add to Calendar — variante outline/ghost com SVG */
.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--green-1);
  border: 1px solid var(--green-1);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-calendar:hover { background: rgba(15, 252, 132, 0.08); }
.btn-calendar:focus-visible { outline-color: var(--green-1); }
.btn-calendar:disabled,
.btn-calendar[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn-calendar svg { width: 16px; height: 16px; }
.btn-calendar.gold { color: var(--yellow-1); border-color: var(--yellow-1); }
.btn-calendar.gold:hover { background: rgba(255, 220, 0, 0.08); }
.btn-calendar.gold:focus-visible { outline-color: var(--yellow-1); }

/* ═══════════════════════════════════════════════════════════
   Form components — captura de leads
   @status canonical | @since 2026-05 | @sources 0 (novo, pra v4)
   @a11y label associado via for/id; aria-invalid + aria-describedby pra erro
   ═══════════════════════════════════════════════════════════ */

.form-group {
  display: grid;
  gap: var(--s-xs);
  margin-bottom: var(--s-md);
}

.form-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.form-label .required { color: var(--yellow-1); margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--gradient-card-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-md);
  padding: 12px 14px;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: rgba(15, 252, 132, 0.4); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--green-1);
  box-shadow: 0 0 0 3px rgba(15, 252, 132, 0.18);
}

.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-error::before {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444'><circle cx='12' cy='12' r='10'/><line x1='12' y1='8' x2='12' y2='12' stroke='white' stroke-width='2'/><line x1='12' y1='16' x2='12.01' y2='16' stroke='white' stroke-width='2'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.form-success {
  font-size: 0.8125rem;
  color: var(--green-1);
  display: flex;
  align-items: center;
  gap: 6px;
}
.form-success::before {
  content: "";
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230FFC84' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Checkbox e radio */
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--green-1);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check label { font-size: 0.9375rem; color: var(--text-soft); cursor: pointer; }

/* ═══════════════════════════════════════════════════════════
   Modal — pra popup de captura, oferta, confirmação
   @status canonical | @since 2026-05 | @sources 0 (novo, pra v4)
   @a11y role="dialog" aria-modal="true" aria-labelledby="..."; ESC fecha; focus trap
   ═══════════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-backdrop[aria-hidden="false"],
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background:
    linear-gradient(180deg, rgba(15, 50, 35, 0.95) 0%, rgba(5, 25, 20, 0.92) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-lg);
  padding: var(--s-2xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), var(--glow-green-soft);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}
.modal-backdrop[aria-hidden="false"] .modal,
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close:hover { background: rgba(15, 252, 132, 0.1); color: var(--green-1); }
.modal-close:focus-visible { outline-color: var(--green-1); }

.modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-sm);
}

.modal-body { color: var(--text-soft); margin-bottom: var(--s-lg); }
.modal-actions { display: flex; gap: var(--s-sm); flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   Toast — notificacao apos acao (sucesso, erro, info)
   @status canonical | @since 2026-05 | @sources 0 (novo, pra v4)
   @a11y role="status" aria-live="polite"
   ═══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
@media (max-width: 480px) {
  .toast-container { left: 16px; right: 16px; top: 16px; }
}

.toast {
  pointer-events: auto;
  background:
    linear-gradient(180deg, rgba(15, 50, 35, 0.95) 0%, rgba(5, 25, 20, 0.92) 100%);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--green-1);
  border-radius: var(--r-md);
  padding: 14px 18px;
  min-width: 280px;
  max-width: 420px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left-color: var(--green-1); }
.toast.success .toast-icon { color: var(--green-1); }
.toast.error { border-left-color: #ef4444; }
.toast.error .toast-icon { color: #ef4444; }
.toast.warning { border-left-color: var(--yellow-1); }
.toast.warning .toast-icon { color: var(--yellow-1); }

.toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 0.875rem; color: var(--text); margin: 0 0 2px; }
.toast-msg { font-size: 0.8125rem; color: var(--text-soft); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   Footer canônico — pra evitar repetição em cada landing
   @status canonical | @since 2026-05 | @sources promove de 5 landings
   ═══════════════════════════════════════════════════════════ */

.footer-canonical {
  border-top: 1px solid var(--border-card);
  padding: var(--s-2xl) var(--s-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-canonical p { margin: 0 0 8px; }
.footer-canonical .footer-meta { font-size: 0.75rem; color: var(--text-muted); }
.footer-canonical a { color: var(--text-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-canonical a:hover { color: var(--green-1); }
.footer-canonical .footer-links { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-canonical .footer-links a::after { content: "·"; margin-left: 8px; color: var(--text-muted); }
.footer-canonical .footer-links a:last-child::after { content: ""; }

/* Lifecycle markers nos componentes ja existentes
   (apenas comentários documentais, sem regras CSS)
   @status canonical: cta-green, cta-yellow, alert-bar, .card e variants
                     stat-card, schedule-row, pill-time, pill-subject,
                     pill-stamp, logo, container, section, eyebrow,
                     bullets, w-green, w-gold
   @status canonical (novos v4): skip-link, sr-only, form-*, modal*,
                                  toast*, footer-canonical
*/
