/* ============================================================
   IMERSÃO PAES UEMA 2027 — DESIGN TOKENS
   Extraídos do poster: brasão da UEMA entre louros dourados,
   noite de carvão e vinho da bandeira do Maranhão.
   Mantém os nomes de classes do DS Tessat / DS Imersão Exato UFT
   (.btn, .card, .badge, .reveal, .hero-*, .orbit-*, .marquee-*, .t-*…)
   ============================================================ */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  /* ---------- Ouro · Louros e lettering ---------- */
  --gold-100: #D4F3E4;
  --gold-200: #8FDDBA;
  --gold-300: #33B585;
  --gold-400: #009B60;
  --gold-500: #00874F;
  --gold-600: #00703F;
  --gold-700: #005A33;

  /* ---------- Noite · Carvão azulado do poster ---------- */
  --night-950: #000000;
  --night-900: #021414;
  --night-800: #062020;
  --night-700: #0A2A2A;
  --night-600: #0F3535;
  --night-500: #1E4545;
  --night-400: #4F6B6B;
  --night-300: #8FA5A5;

  /* ---------- Vinho · Vermelho da bandeira do Maranhão ---------- */
  --wine-950: #001A1A;
  --wine-900: #002424;
  --wine-800: #003333;
  --wine-700: #004545;
  --wine-600: #005C4F;
  --wine-500: #007A5E;
  --wine-400: #22A57A;
  --wine-300: #7FCBB0;

  /* ---------- Bandeira · cantão ---------- */
  --flag-blue: #003333;
  --flag-red: var(--wine-500);

  /* ---------- Neutros ---------- */
  --white: #FFFFFF;
  --paper: #F2F2F2;
  --ivory: #E6E6E6;
  --mist:  #B5BDBD;
  --smoke: #5E6E6E;

  /* ---------- Feedback ---------- */
  --success: #5FD38D;
  --error:   #FF6B5B;
  --warning: #009B60;
  --info:    #7CC6E8;

  /* canais RGB para variações de opacidade: rgba(var(--x-rgb), .1) */
  --gold-400-rgb: 0, 155, 96;
  --gold-200-rgb: 143, 221, 186;
  --wine-500-rgb: 0, 122, 94;
  --wine-700-rgb: 0, 69, 69;
  --night-950-rgb: 0, 0, 0;
  --night-900-rgb: 2, 20, 20;
  --ivory-rgb: 230, 230, 230;
  --flag-blue-rgb: 0, 51, 51;

  /* ---------- Papéis semânticos (mesmos nomes do DS Tessat) ---------- */
  --color-primary:       var(--gold-400);
  --color-primary-text:  var(--night-950);
  --color-secondary:     var(--wine-600);
  --color-accent:        var(--gold-200);
  --color-neutral-bg:    var(--night-900);
  --color-neutral-text:  var(--ivory);
  --color-success:       var(--success);
  --color-info:          var(--info);
  --color-black:  var(--night-950);
  --color-light:  var(--ivory);
  --color-yellow: var(--gold-400);
  --color-red:    var(--wine-500);
  --color-green:  var(--success);   /* alias de compatibilidade com o DS anterior */

  /* ---------- Gradientes ---------- */
  --grad-gold-text: linear-gradient(180deg, #E6FFF3 0%, #8FDDBA 22%, #33B585 42%, #009B60 64%, #00703F 86%, #00703F 100%);
  --grad-gold-deep: linear-gradient(180deg, #00874F 0%, #00703F 45%, #005A33 100%);
  --grad-shine: linear-gradient(105deg, transparent 42%, rgba(242,250,246,.95) 50%, transparent 58%);
  --grad-gold-btn: linear-gradient(180deg, #8FDDBA 0%, #009B60 55%, #00874F 100%);
  --grad-wine: radial-gradient(120% 80% at 50% 0%, #004545 0%, #001A1A 42%, #000000 100%);
  --grad-night: linear-gradient(180deg, #062020 0%, #021414 50%, #000000 100%);
  --grad-flag: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 14%, rgba(0,122,94,.26) 14% 28%, rgba(255,255,255,.12) 28% 42%, rgba(0,0,0,0) 42% 56%, rgba(0,122,94,.26) 56% 70%, rgba(255,255,255,.12) 70% 84%, rgba(0,0,0,0) 84% 100%);
  --grad-beam: linear-gradient(180deg, rgba(143,221,186,.22), rgba(143,221,186,0) 75%);
  --grad-border: conic-gradient(from var(--angle), #005A33, #8FDDBA, #009B60, #FFFFFF, #009B60, #005A33);
  --grad-glass: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));

  /* ---------- Tipografia ---------- */
  --font-display: 'Anek Latin', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --stretch-display: 75%;

  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800; --fw-black: 900;

  --fs-hero:    clamp(4.25rem, 12.5vw, 10.5rem);
  --fs-h1:      clamp(3rem, 7vw, 5.75rem);
  --fs-h2:      clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h3:      clamp(1.6rem, 3vw, 2.5rem);
  --fs-h4:      clamp(1.25rem, 2vw, 1.625rem);
  --fs-h5:      1.125rem;
  --fs-h6:      0.8125rem;
  --fs-body-lg: 1.1875rem;
  --fs-body:    1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-label:   0.6875rem;

  --lh-display: 0.86; --lh-tight: 0.95; --lh-snug: 1.25; --lh-normal: 1.6; --lh-relaxed: 1.65;
  --ls-tight: -0.02em; --ls-normal: 0em; --ls-wide: 0.05em; --ls-wider: 0.12em; --ls-widest: 0.16em;

  /* ---------- Espaço, raio, sombra ---------- */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 28px; --radius-full: 9999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow-md: 0 12px 32px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 40px 100px -24px rgba(0,0,0,.8);
  --shadow-glow-gold: 0 0 40px rgba(0,155,96,.35);
  --shadow-glow-soft: 0 0 80px rgba(0,155,96,.18);
  --shadow-glow-wine: 0 0 60px rgba(0,122,94,.3);

  /* ---------- Movimento ---------- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.64, 0, 0.78, 0);
  --ease-io:     cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms; --dur-base: 300ms; --dur-slow: 600ms; --dur-slower: 1000ms;

  --container-max: 1280px;
  --container-pad: clamp(1rem, 5vw, 4rem);
  --section-py: clamp(5rem, 10vw, 9rem);
}

/* ============================================================ BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; } /* o display de .form-grid/.btn não pode vencer o atributo hidden (modal: sucesso) */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-normal);
  color: var(--ivory); background: var(--night-950);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-synthesis: none;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-400); color: var(--night-950); }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); position: relative; z-index: 2; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; stroke-width: 2; }
.ic-lg { width: 28px; height: 28px; }

/* ============================================================ TIPOGRAFIA */
.t-hero, .t-h1, .t-h2, .t-h3 { font-family: var(--font-display); font-stretch: var(--stretch-display); text-transform: uppercase; }
.t-hero { font-size: var(--fs-hero); font-weight: 800; line-height: var(--lh-display); letter-spacing: -0.01em; }
.t-h1   { font-size: var(--fs-h1);   font-weight: 800; line-height: 0.92; letter-spacing: -0.005em; }
.t-h2   { font-size: var(--fs-h2);   font-weight: 800; line-height: var(--lh-tight); letter-spacing: 0; }
.t-h3   { font-size: var(--fs-h3);   font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
.t-h4   { font-size: var(--fs-h4);   font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.t-h5   { font-size: var(--fs-h5);   font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.t-h6   { font-size: var(--fs-h6);   font-weight: 700; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; }
.t-body-lg { font-size: var(--fs-body-lg); font-weight: 400; line-height: var(--lh-relaxed); letter-spacing: -0.01em; }
.t-body    { font-size: var(--fs-body);    font-weight: 400; line-height: 1.6; }
.t-body-sm { font-size: var(--fs-body-sm); font-weight: 400; line-height: 1.6; }
.t-caption { font-size: var(--fs-caption); font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; }
.t-label   { font-size: var(--fs-label);   font-weight: 700; line-height: 1.3; letter-spacing: var(--ls-widest); text-transform: uppercase; }
.t-helper  { font-size: var(--fs-caption); font-weight: 400; line-height: 1.45; color: var(--mist); }
.t-mono    { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500; line-height: 1.6; }

/* Lettering */
.text-gold {
  background-image: var(--grad-shine), var(--grad-gold-text);
  background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  padding-block: .08em; margin-block: -.08em;
}
.text-gold.is-live { animation: shimmer 6s var(--ease-io) infinite; }
.section-light .text-gold { background-image: var(--grad-shine), var(--grad-gold-deep); }
.text-outline { color: var(--stroke-c, rgba(var(--gold-200-rgb), .6)); -webkit-text-fill-color: currentColor; filter: url(#ds-outline); }
.text-outline-2 { filter: url(#ds-outline-2); }
.text-outline-fill { position: relative; display: inline-block; cursor: default; }
.text-outline-fill > .text-outline { --stroke-c: var(--night-700); }
.text-outline-fill::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--fill-c, var(--gold-400)); -webkit-text-fill-color: currentColor;
  clip-path: inset(100% 0 0 0); transition: clip-path var(--dur-slower) var(--ease-out);
}
.text-outline-fill:hover::after { clip-path: inset(0 0 0 0); }
.text-echo { position: relative; isolation: isolate; display: inline-block; }
.text-echo::before, .text-echo::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1;
  color: var(--stroke-c, rgba(var(--gold-200-rgb), .5)); -webkit-text-fill-color: currentColor; filter: url(#ds-outline);
  transition: transform var(--dur-slow) var(--ease-out);
}
.text-echo::before { transform: translate(.05em, .06em); opacity: .6; }
.text-echo::after  { transform: translate(.1em, .12em); opacity: .3; }
.text-echo:hover::before { transform: translate(.09em, .1em); }
.text-echo:hover::after  { transform: translate(.18em, .22em); }
.hl { color: var(--gold-300); font-weight: 600; }
.section-light .hl { color: var(--gold-700); }
/* Branco bold do “PAES UEMA 2027” (novo) */
.text-white-bold { font-family: var(--font-body); font-weight: 800; letter-spacing: -.025em; color: var(--white); text-transform: none; }

/* ============================================================ FUNDOS ANIMADOS (reutilizados em todas as dobras) */
.bg-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bg-grid-dark, .bg-grid-light {
  position: absolute; inset: 0; pointer-events: none;
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  animation: grid-drift 24s linear infinite;
}
.bg-grid-dark  { background-image: linear-gradient(rgba(var(--gold-200-rgb), .055) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-200-rgb), .055) 1px, transparent 1px); }
.bg-grid-light { background-image: linear-gradient(rgba(0,69,69,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,69,69,.07) 1px, transparent 1px); }
.bg-aurora::before, .bg-aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(70px); animation: floatSlow 18s var(--ease-io) infinite alternate;
}
.bg-aurora::before { background: radial-gradient(circle, rgba(var(--gold-400-rgb), .14), transparent 62%); top: -25vmax; right: -15vmax; }
.bg-aurora::after  { background: radial-gradient(circle, rgba(var(--wine-500-rgb), .42), transparent 62%); bottom: -30vmax; left: -20vmax; animation-duration: 24s; animation-direction: alternate-reverse; }
.section-light .bg-aurora::before { background: radial-gradient(circle, rgba(var(--gold-400-rgb), .16), transparent 62%); }
.section-light .bg-aurora::after  { background: radial-gradient(circle, rgba(var(--wine-500-rgb), .1), transparent 62%); }
.bg-ghost {
  position: absolute; left: 0; white-space: nowrap; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(9rem, 26vw, 24rem); line-height: .8; letter-spacing: -.01em;
  color: var(--ghost-c, rgba(var(--gold-200-rgb), .08)); -webkit-text-fill-color: currentColor; filter: url(#ds-outline-2); will-change: transform;
  animation: ghost-drift 50s linear infinite alternate;
}
.section-light .bg-ghost { --ghost-c: rgba(2,20,20,.09); }
/* Marca d’água de louros (antes: .bg-sun-mark com o sol). Nome mantido + alias novo. */
.bg-sun-mark, .bg-crest-mark { position: absolute; width: var(--size, 900px); aspect-ratio: 1; opacity: var(--o, .08); pointer-events: none; }
.bg-sun-mark svg, .bg-crest-mark svg { width: 100%; height: 100%; animation: spin-slow 160s linear infinite; }
/* Foto de aula em marca d’água, com vinheta (novo) */
.bg-photo {
  position: absolute; inset: -4%; pointer-events: none; opacity: .1;
  background: none;
  filter: blur(7px) saturate(.5); mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
/* .beams reinterpretado: faixas diagonais com as listras da bandeira do Maranhão */
.beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.beams span {
  position: absolute; top: -25%; left: var(--x); width: clamp(180px, 24vw, 380px); height: 150%;
  margin-left: calc(clamp(180px, 24vw, 380px) / -2);
  background: var(--grad-flag); background-size: 100% 100%;
  rotate: var(--tilt, -24deg); transform-origin: 50% 0; filter: blur(10px); opacity: var(--o, .5);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  animation: beam-swing var(--d, 11s) var(--ease-io) infinite alternate;
}
.beams.beams-gold span { background: var(--grad-beam); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); rotate: 0deg; -webkit-mask-image: none; mask-image: none; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
/* Holofote vinho que segue o mouse (novo) */
.spot { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .9;
  background: radial-gradient(560px circle at var(--sx, 70%) var(--sy, 30%), rgba(var(--wine-500-rgb), .28), rgba(var(--wine-700-rgb), .12) 40%, transparent 70%);
  transition: opacity var(--dur-slow); }

/* ============================================================ SEÇÕES */
section, .hero { position: relative; overflow: hidden; }
.section-py { padding-block: var(--section-py); }
.section-dark  { background: var(--night-950); color: var(--ivory); }
.section-off   { background: linear-gradient(180deg, var(--night-900) 0%, #001F1F 55%, var(--night-900) 100%); color: var(--ivory); }
.section-light { background: var(--paper); color: var(--night-900); }
.section-head { max-width: 820px; margin-bottom: clamp(3rem, 6vw, 5rem); position: relative; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--gold-300);
}
.section-light .section-eyebrow { color: var(--gold-700); }
.eyebrow-index {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: 0; padding: .25rem .55rem; border-radius: var(--radius-full);
  border: 1px solid currentColor; opacity: .9;
}
.section-eyebrow::after { content: ""; width: 48px; height: 1px; background: linear-gradient(90deg, currentColor, transparent); }
.section-title { margin-bottom: 1.25rem; }
.section-subtitle { font-size: var(--fs-body-lg); line-height: var(--lh-relaxed); color: var(--mist); max-width: 640px; }
.section-light .section-subtitle { color: #2E4444; }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(var(--gold-200-rgb), .14); }
.section-light .sub-head { border-color: rgba(2,20,20,.12); }
.sub-head h3 { font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.25rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.sub-head p { font-size: var(--fs-body-sm); color: var(--mist); max-width: 460px; }
.section-light .sub-head p { color: #2E4444; }

/* ============================================================ REVEAL (mesmo hook do DS Tessat: .reveal → .visible) */
.reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: none; filter: none; }
.reveal-delay-1 { transition-delay: 100ms; } .reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; } .reveal-delay-4 { transition-delay: 400ms; }
.stagger > * { opacity: 0; transform: translateY(24px); }
/* fill backwards (não both): ao terminar, o filho volta à cascata normal (opacity 1 / transform none) e o transform do :hover/.is-hover volta a valer */
.stagger.visible > * { opacity: 1; transform: none; animation: fade-up .8s var(--ease-out) backwards; }
.stagger.visible > *:nth-child(1) { animation-delay: 0ms; }   .stagger.visible > *:nth-child(2) { animation-delay: 70ms; }
.stagger.visible > *:nth-child(3) { animation-delay: 140ms; } .stagger.visible > *:nth-child(4) { animation-delay: 210ms; }
.stagger.visible > *:nth-child(5) { animation-delay: 280ms; } .stagger.visible > *:nth-child(6) { animation-delay: 350ms; }
.stagger.visible > *:nth-child(7) { animation-delay: 420ms; } .stagger.visible > *:nth-child(8) { animation-delay: 490ms; }
.stagger.visible > *:nth-child(n+9) { animation-delay: 560ms; }

/* ============================================================ NAVBAR */
.navbar-glass { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.navbar-inner {
  pointer-events: auto; width: min(1180px, calc(100% - 2rem)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem; padding: .6rem .6rem .6rem 1.25rem;
  border-radius: var(--radius-full); border: 1px solid rgba(var(--gold-200-rgb), .14);
  background: rgba(2,20,20, .45); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out), border-color var(--dur-slow);
}
.navbar-glass.scrolled .navbar-inner { background: rgba(0,0,0, .8); border-color: rgba(var(--gold-200-rgb), .22); box-shadow: 0 20px 50px -20px rgba(0,0,0,.85); }
.nav-logo { display: flex; align-items: center; gap: .85rem; flex: none; }
.nav-logo img { width: auto; }
/* Lockup de marcas: Tessat | RF Educação */
.brand-lockup { display: inline-flex; align-items: center; gap: calc(var(--lockup-h, 22px) * .55); }
/* nav: assinatura oficial Tessat × RF dividida em símbolo + nome; ao rolar, o nome "entra" no símbolo e fica só o símbolo — igual à Imersão Exato UFT.
   Mesma duração e curva simétrica na saída e na volta. Medidas proporcionais a --lockup-h.
   Só transform/opacity/max-width/padding (nada de blur/filter animado — seguro no mobile). */
.logo-group { --logo-dur: 600ms; --logo-ease: cubic-bezier(0.65, 0, 0.35, 1); display: inline-flex; align-items: center; }
.logo-group .logo-mark { position: relative; z-index: 1; width: auto; transition: transform var(--logo-dur) var(--logo-ease); }
.logo-group .logo-word { display: block; overflow: hidden; transition: max-width var(--logo-dur) var(--logo-ease), padding var(--logo-dur) var(--logo-ease); }
.logo-group .logo-word img { display: block; width: auto; transition: transform var(--logo-dur) var(--logo-ease), opacity var(--logo-dur) var(--logo-ease); }
.logo-group-assinatura .logo-mark, .logo-group-assinatura .logo-word img { height: var(--lockup-h, 27px); }
.logo-group-assinatura .logo-word { padding-left: calc(var(--lockup-h, 27px) * .219); max-width: calc(var(--lockup-h, 27px) * 5.45); } /* inclui o padding (border-box): .219 + 5.181 */
.navbar-glass.scrolled .logo-word { max-width: 0; padding-left: 0; }
.navbar-glass.scrolled .logo-word img { transform: translateX(-100%); opacity: 0; }
.navbar-glass.scrolled .logo-mark { transform: scale(1.12); }
.nav-links { position: relative; display: flex; gap: .25rem; margin-left: auto; }
.nav-links a { font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: rgba(var(--ivory-rgb), .72); padding: .55rem .85rem; border-radius: var(--radius-full); transition: color var(--dur-base), background var(--dur-base); }
.nav-links a:hover, .nav-links a.is-hover { color: var(--white); background: rgba(var(--ivory-rgb), .06); }
.nav-links a.active { color: var(--gold-200); }
.nav-indicator { position: absolute; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold-400); box-shadow: 0 0 12px var(--gold-400); transition: left .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; opacity: 0; }
/* CTA do menu em caixa alta, coerente com os links */
.navbar-inner > .btn { text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 960px) { .nav-links { display: none; } .navbar-inner > .btn { margin-left: auto; } }
/* Assinatura do menu: --lockup-h = altura do símbolo (27px desktop, 23px mobile, degraus abaixo de 390px); nav mais justo no mobile p/ caber ao lado do CTA */
.brand-lockup.nav-brand { --lockup-h: 27px; }
@media (max-width: 760px) {
  .navbar-inner { width: calc(100% - 1rem); gap: .75rem; padding: .6rem .6rem .6rem 1rem; }
  .brand-lockup.nav-brand { --lockup-h: 23px; }
}
@media (max-width: 380px) { .brand-lockup.nav-brand { --lockup-h: 21px; } }
@media (max-width: 365px) { .brand-lockup.nav-brand { --lockup-h: 20px; } }
@media (max-width: 340px) { .brand-lockup.nav-brand { --lockup-h: 18px; } }

/* ============================================================ BOTÕES */
.btn {
  --h: 48px; --px: 1.5rem;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--h); padding: 0 var(--px); border-radius: var(--radius-full);
  font-family: var(--font-body); font-size: .9375rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; user-select: none;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base), color var(--dur-base), border-color var(--dur-base), translate .35s var(--ease-out);
}
.btn:hover, .btn.is-hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: 80ms; }
.btn-sm { --h: 36px; --px: 1rem; font-size: .8125rem; }
.btn-md { --h: 44px; --px: 1.25rem; font-size: .875rem; }
.btn-lg { --h: 54px; --px: 1.75rem; font-size: 1rem; }
.btn-xl { --h: 62px; --px: 2.1rem; font-size: 1.0625rem; }

.btn-primary {
  background: var(--grad-gold-btn); color: var(--night-950);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(0,90,51,.35), 0 10px 30px -8px rgba(var(--gold-400-rgb), .6);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  transform: translateX(-130%) skewX(-18deg);
}
.btn-primary:hover, .btn-primary.is-hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -2px 0 rgba(0,90,51,.35), 0 16px 44px -8px rgba(var(--gold-400-rgb), .85), 0 0 0 4px rgba(var(--gold-400-rgb), .12); }
.btn-primary:hover::before, .btn-primary.is-hover::before { animation: shine-sweep 1s var(--ease-out); }

.btn-secondary { color: var(--gold-200); border: 1.5px solid rgba(var(--gold-200-rgb), .45); background: rgba(var(--gold-400-rgb), .04); }
.btn-secondary:hover, .btn-secondary.is-hover { border-color: var(--gold-300); background: rgba(var(--gold-400-rgb), .1); color: var(--gold-100); box-shadow: 0 0 30px -6px rgba(var(--gold-400-rgb), .45); }

.btn-ghost-dark { color: var(--ivory); background: rgba(var(--ivory-rgb), .05); border: 1px solid rgba(var(--ivory-rgb), .1); }
.btn-ghost-dark:hover, .btn-ghost-dark.is-hover { background: rgba(var(--ivory-rgb), .1); border-color: rgba(var(--ivory-rgb), .22); }

/* Secundário vinho (novo .btn-wine; .btn-forest mantido como alias) */
.btn-wine, .btn-forest { color: var(--ivory); background: linear-gradient(180deg, var(--wine-600), var(--wine-800)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px -10px rgba(var(--wine-500-rgb), .9); }
.btn-wine:hover, .btn-forest:hover, .btn-wine.is-hover, .btn-forest.is-hover { background: linear-gradient(180deg, var(--wine-500), var(--wine-700)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 34px -10px rgba(var(--wine-500-rgb), 1); }

.btn-light { color: var(--night-900); background: var(--white); border: 1px solid rgba(2,20,20,.12); box-shadow: 0 6px 18px -8px rgba(2,20,20,.35); }
.btn-light:hover, .btn-light.is-hover { border-color: var(--gold-500); box-shadow: 0 12px 30px -10px rgba(0,112,63,.55); }

/* GRATUITO — borda cônica viva + glow */
.btn-glow { padding: 2px; height: auto; background: var(--grad-border); overflow: visible; animation: border-spin 4s linear infinite; }
.btn-glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad-border); filter: blur(18px); opacity: .6; z-index: -1; animation: border-spin 4s linear infinite; transition: opacity var(--dur-base), filter var(--dur-base); }
.btn-glow:hover::after { opacity: .95; filter: blur(24px); }
.btn-glow-face {
  position: relative; display: inline-flex; align-items: center; gap: .7rem; overflow: hidden;
  height: calc(var(--h) - 4px); padding: 0 calc(var(--px) - 2px); border-radius: inherit;
  background: radial-gradient(120% 140% at 50% 0%, var(--wine-900), var(--night-950) 70%); color: var(--white);
  font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 1.35em; letter-spacing: .04em; text-transform: uppercase;
}
.btn-glow-face small { font-family: var(--font-body); font-stretch: 100%; font-size: .55em; font-weight: 600; letter-spacing: .04em; color: var(--gold-200); text-transform: none; }

.btn-arrow .btn-arrow-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: -.6rem; border-radius: 50%; background: rgba(0,0,0,.14); transition: transform var(--dur-slow) var(--ease-spring); }
.btn-arrow:hover .btn-arrow-icon, .btn-arrow.is-hover .btn-arrow-icon { transform: translateX(4px) rotate(-45deg); }
.btn-secondary.btn-arrow .btn-arrow-icon, .btn-ghost-dark.btn-arrow .btn-arrow-icon { background: rgba(var(--gold-200-rgb), .12); }

.btn-icon { --h: 48px; width: var(--h); padding: 0; color: var(--gold-200); border: 1px solid rgba(var(--gold-200-rgb), .25); background: rgba(var(--gold-400-rgb), .05); }
.btn-icon:hover, .btn-icon.is-hover { color: var(--night-950); background: var(--gold-400); border-color: var(--gold-400); box-shadow: var(--shadow-glow-gold); }
.btn-icon.btn-sm { --h: 36px; }

.btn-disabled, .btn:disabled { opacity: .38; pointer-events: none; filter: saturate(.4); box-shadow: none; }
.btn-loading { pointer-events: none; }
.btn-loading .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin-slow .7s linear infinite; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); background: currentColor; opacity: .28; animation: ripple .7s var(--ease-out) forwards; z-index: 0; }

/* ============================================================ HERO */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(7.5rem, 12vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
  background: radial-gradient(90% 70% at 78% 12%, rgba(0,69,69,.72) 0%, rgba(0,36,36,.5) 38%, transparent 70%), radial-gradient(60% 50% at 6% 100%, rgba(0,51,51,.5), transparent 70%), var(--night-950);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-content { position: relative; z-index: 3; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; padding: .45rem 1rem .45rem .55rem; margin-bottom: 1.75rem;
  border-radius: var(--radius-full); border: 1px solid rgba(var(--ivory-rgb), .22); background: rgba(0,0,0,.55);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory);
  backdrop-filter: blur(8px); animation: fade-up .9s var(--ease-out) both;
}
.hero-eyebrow-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--gold-400-rgb), .18); }
.hero-eyebrow-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); animation: pulse-glow 2s infinite; }
.hero-eyebrow b { color: var(--gold-200); font-weight: 700; }

.hero-headline { position: relative; display: inline-grid; perspective: 900px; margin-left: -.03em; }
.hero-headline > span { grid-area: 1 / 1; }
.hl-echo { color: rgba(var(--gold-200-rgb), .32); -webkit-text-fill-color: currentColor; filter: url(#ds-outline); animation: echo-in 1.6s 1s var(--ease-out) both; }
.hl-main .char, .split .char {
  display: inline-block; transform-origin: 50% 100%;
  background-image: var(--grad-shine), var(--grad-gold-text); background-size: 300% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding: .12em .005em .05em; margin: -.12em -.005em -.05em;
  animation: letter-in 1.1s var(--ease-out) both, shimmer 7s var(--ease-io) infinite;
  animation-delay: calc(var(--i) * 70ms + 200ms), calc(var(--i) * 90ms + 2.2s);
}
/* “PAES UEMA 2027” — branco bold logo abaixo do lettering (novo) */
.hero-subhead { display: block; font-family: var(--font-body); font-weight: 800; font-size: clamp(1.75rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -.03em; color: var(--white); margin: .35rem 0 1.4rem; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.hero-subhead span { color: var(--gold-200); }
.hero-lockup { display: flex; align-items: center; margin: .5rem 0 1.6rem; }
.hero-sub { max-width: 520px; color: rgba(var(--ivory-rgb), .78); margin-bottom: 1.75rem; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.25rem; }
.hero-meta li {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .7rem; border-radius: var(--radius-full);
  border: 1px solid rgba(var(--gold-200-rgb), .18); background: rgba(255,255,255,.03); font-size: .9rem; color: var(--ivory);
  transition: border-color var(--dur-base), background var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.hero-meta li:hover, .hero-meta li.is-hover { border-color: rgba(var(--gold-200-rgb), .45); background: rgba(var(--gold-400-rgb), .07); transform: translateY(-2px); }
.hero-meta .ic { color: var(--gold-400); }
.hero-meta b { color: var(--gold-200); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero-stats { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(var(--gold-200-rgb), .12); flex-wrap: wrap; }
.hero-stats-label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); max-width: 7rem; line-height: 1.4; }
.countdown { display: flex; gap: .5rem; }
.countdown div { min-width: 64px; padding: .55rem .5rem .45rem; border-radius: var(--radius-md); text-align: center; background: var(--grad-glass); border: 1px solid rgba(var(--gold-200-rgb), .14); }
.hero-stat-value { display: block; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold-200); }
.hero-stat-label { display: block; margin-top: .25rem; font-size: .625rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 720px; z-index: 2; }
/* Halo dourado atrás do brasão (ocupa o papel do antigo .hero-sun) */
.hero-sun { position: absolute; width: 120%; aspect-ratio: 1; left: 50%; top: 22%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(circle, rgba(220,250,235,.55) 0%, rgba(var(--gold-400-rgb), .38) 16%, rgba(var(--gold-400-rgb), .12) 36%, transparent 62%);
  animation: ray-breathe 7s var(--ease-io) infinite; transition: transform .9s var(--ease-out); }
/* Brasão da UEMA + louros SVG desenhados na entrada (novo) */
.hero-crest { --tx: 0px; --ty: 0px; position: absolute; left: 50%; top: 21%; width: min(310px, 58%); aspect-ratio: 1; translate: calc(-50% + var(--tx)) calc(-50% + var(--ty)); z-index: 1; display: grid; place-items: center; transition: translate .9s var(--ease-out); animation: float 8s var(--ease-io) infinite; }
.hero-crest svg { position: absolute; inset: -8%; width: 116%; height: 116%; max-width: none; overflow: visible; } /* max-width:none: o reset img,svg{max-width:100%} travava a largura em 100% e deslocava os louros 8% p/ a esquerda */
.hero-crest img { position: relative; width: 58%; height: auto; filter: drop-shadow(0 18px 36px rgba(0,0,0,.65)) drop-shadow(0 0 22px rgba(var(--gold-400-rgb), .35)); animation: crest-in 1.4s .4s var(--ease-spring) both; }
/* UEMA ↔ UEMASUL: duas imagens empilhadas no mesmo quadro, crossfade + leve escala (crest-swap 8s).
   A usa crest-in só como entrada (fill backwards) para não travar a opacidade do loop depois. */
.crest-img { animation: crest-swap 8s var(--ease-io) infinite; }
.crest-img-b { animation-delay: -4s; }
.hero-crest .crest-img { position: absolute; inset: 21%; width: 58%; height: 58%; object-fit: contain; }
.hero-crest .crest-img-a { animation: crest-swap 8s var(--ease-io) infinite, crest-in 1.4s .4s var(--ease-spring) backwards; }
.hero-crest .crest-img-b { animation: crest-swap 8s var(--ease-io) -4s infinite; }
.crest-stem { fill: none; stroke: var(--crest-c, var(--gold-300)); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; animation: draw 1.6s var(--ease-out) forwards; animation-delay: var(--dl, .3s); }
.crest-leaf { fill: var(--crest-fill, rgba(0,155,96,.55)); stroke: var(--crest-c, var(--gold-200)); stroke-width: .9; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; animation: draw .9s var(--ease-out) forwards, laurel-in .9s var(--ease-out) forwards; animation-delay: var(--dl, 0s), var(--dl, 0s); }
.crest-star { fill: var(--crest-c, var(--gold-200)); transform-box: fill-box; transform-origin: center; animation: twinkle var(--d, 2.6s) var(--ease-io) infinite; animation-delay: var(--dl, 0s); filter: drop-shadow(0 0 6px rgba(var(--gold-400-rgb), .8)); }
[data-crest="mono"] .crest-leaf, [data-mono] .crest-leaf { fill: var(--crest-c); stroke: none; opacity: 1; animation: none; }
[data-mono] .crest-stem { stroke-dashoffset: 0; animation: none; }
[data-mono] .crest-star { animation: none; filter: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero-orb-1 { width: 380px; height: 380px; background: rgba(var(--gold-400-rgb), .22); top: 14%; left: 50%; translate: -50% 0; animation: floatSlow 12s var(--ease-io) infinite alternate; }
.hero-orb-2 { width: 320px; height: 320px; background: rgba(var(--wine-500-rgb), .4); bottom: 0; left: -4%; animation: floatSlow 16s var(--ease-io) infinite alternate-reverse; }

.orbit-ring { position: absolute; left: 50%; top: 21%; border-radius: 50%; border: 1px dashed rgba(var(--gold-200-rgb), .2); translate: -50% -50%; pointer-events: none; }
.orbit-ring-1 { width: 112%; aspect-ratio: 1; max-width: 560px; animation: spin-slow 60s linear infinite; }
.orbit-ring-2 { width: 140%; aspect-ratio: 1; max-width: 720px; border-style: solid; border-color: rgba(var(--gold-200-rgb), .07); animation: spin-slow 90s linear infinite reverse; }
.orbit-dot { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-200); box-shadow: 0 0 16px 4px rgba(var(--gold-400-rgb), .7); }
.orbit-dot-yellow { background: var(--gold-400); }
.orbit-dot-green, .orbit-dot-wine { top: auto; bottom: 18%; left: 2%; background: var(--wine-400); box-shadow: 0 0 14px 3px rgba(34,165,122,.6); }
/* estrela em órbita: ponto vira estrela de 5 pontas (novo) */
.orbit-star { position: absolute; width: 16px; height: 16px; left: 50%; top: -8px; color: var(--gold-200); filter: drop-shadow(0 0 8px rgba(var(--gold-400-rgb), .9)); animation: twinkle 2.4s var(--ease-io) infinite; }
.orbit-star svg { width: 100%; height: 100%; fill: currentColor; }
.orbit-star-b { top: auto; left: auto; right: 6%; bottom: 20%; width: 11px; height: 11px; animation-delay: -.9s; }
.orbit-star-c { top: 62%; left: -4px; width: 13px; height: 13px; animation-delay: -1.7s; color: var(--white); }

/* Professores: 4 sócios recortados em camadas na frente do brasão — mesma composição do poster.
   O wrapper ocupa o .hero-visual inteiro; cada .socio é posicionado em % dele, base no fundo.
   Parallax por camada: translate = --tx/--ty (do JS) × --depth; o transform fica livre p/ people-in. */
/* A máscara recorta tudo fora da caixa do .hero-people: ele sangra 20% para cada lado do .hero-visual (inset: 0 -20%) p/ os
   cotovelos dos laterais não serem cortados em linha reta; --x continua em % do .hero-visual (convertido no left do .socio). */
.hero-people { --tx: 0px; --ty: 0px; position: absolute; inset: 0 -20%; z-index: 2; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); } /* fade começa mais embaixo: o .socio-4 desceu e as mãos dele precisam aparecer */
.socio { --depth: .6; --x: 50%; --h: 70%; position: absolute; bottom: 0; left: calc((var(--x) + 20%) / 1.4); height: var(--h); width: auto; max-width: none; object-fit: contain; object-position: bottom center;
  translate: calc(-50% + var(--tx) * var(--depth)) calc(var(--ty) * var(--depth)); transition: translate .9s var(--ease-out);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)) drop-shadow(0 0 18px rgba(var(--gold-400-rgb), .16));
  animation: people-in 1.4s var(--dl, .25s) var(--ease-out) both; }
.socio-1 { --depth: .35; --x: 50%; --h: 62%; bottom: 18%; z-index: 1; --dl: .25s; }
.socio-2 { --depth: .6; --x: 78%; --h: 68%; bottom: 3%; z-index: 2; --dl: .37s; }
.socio-3 { --depth: .6; --x: 22%; --h: 68%; bottom: 3%; z-index: 2; --dl: .37s; }
.socio-4 { --depth: 1; --x: 50%; --h: 64.5%; bottom: -10%; z-index: 3; --dl: .49s; } /* desce p/ a cabeça ficar abaixo do queixo do .socio-1; a base sai do wrapper e é cortada pela máscara */
/* Fotos inteiras (sem fade no alpha nem máscara por img): a única suavização é a máscara do .hero-people (80%→100%);
   a base dos laterais fica nessa faixa e os braços cruzados (~66% da altura da foto) ficam bem acima dela. */
.hero-people::before { content: ""; position: absolute; inset: 0 20% 45%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--gold-400-rgb), .42), transparent); filter: blur(30px); animation: ray-breathe 7s var(--ease-io) infinite; }
.hero .bg-ghost { bottom: -.08em; --ghost-c: rgba(var(--gold-200-rgb), .07); }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; z-index: 3; display: grid; justify-items: center; gap: .6rem; font-size: .625rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.scroll-cue span { position: relative; width: 1px; height: 42px; background: rgba(var(--gold-200-rgb), .2); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--gold-400)); animation: scroll-cue 1.8s var(--ease-io) infinite; }

@media (min-width: 961px) and (max-width: 1100px) { /* 2 colunas estreitas: o cotovelo do .socio-2 passava da borda da tela */
  .socio-2 { --x: 74%; --h: 64%; }
  .socio-3 { --x: 26%; --h: 64%; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 600px; order: -1; margin-top: -1rem; }
  .hero-crest { width: min(270px, 54%); }
  .scroll-cue { display: none; }
}
@media (max-width: 760px) { /* sócios menores e mais juntos; sem filter (ver bloco MOBILE / TOUCH) */
  .socio-1 { --h: 56%; bottom: 17%; }
  .socio-2 { --x: 75%; --h: 59%; bottom: 6%; } /* mais para dentro: o cotovelo do braço cruzado do .socio-2 (Peniel) saía da caixa do .hero-people/da tela em 360–390px */
  .socio-3 { --x: 25%; --h: 59%; bottom: 6%; }
  .socio-4 { --h: 58%; bottom: -8.5%; } /* desce menos que no desktop: já fica abaixo do queixo do .socio-1 e mostra mais as mãos */
}
@media (max-width: 520px) {
  .hero-visual { min-height: 520px; }
  .countdown div { min-width: 56px; }
}

/* ============================================================ MARQUEE */
.marquee-section { position: relative; z-index: 3; overflow: hidden; background: var(--night-900); border-block: 1px solid rgba(var(--gold-200-rgb), .14); padding: 1.1rem 0; }
.marquee-section::before, .marquee-section::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee-section::before { left: 0; background: linear-gradient(90deg, var(--night-900), transparent); }
.marquee-section::after  { right: 0; background: linear-gradient(-90deg, var(--night-900), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 2rem; padding-right: 2rem; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; color: var(--ivory); }
.marquee-item:nth-child(even) { color: rgba(var(--gold-200-rgb), .7); -webkit-text-fill-color: currentColor; filter: url(#ds-outline); }
.marquee-dot { width: 26px; height: 26px; margin-right: 2rem; align-self: center; color: var(--gold-400); stroke-width: 2; filter: drop-shadow(0 0 8px rgba(var(--gold-400-rgb), .55)); }

/* ============================================================ BADGES */
.badge { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .75rem; border-radius: var(--radius-full); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid transparent; line-height: 1.2; white-space: nowrap; transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base); }
.badge:hover, .badge.is-hover { transform: translateY(-2px) scale(1.04); }
.badge .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.badge-gold, .badge-yellow { color: var(--gold-200); background: rgba(var(--gold-400-rgb), .12); border-color: rgba(var(--gold-400-rgb), .35); }
.badge-solid { color: var(--night-950); background: var(--grad-gold-btn); box-shadow: 0 6px 18px -6px rgba(var(--gold-400-rgb), .7); }
.badge-wine, .badge-red { color: var(--wine-300); background: rgba(var(--wine-500-rgb), .18); border-color: rgba(34,165,122,.45); }
.badge-forest, .badge-green { color: var(--success); background: rgba(95,211,141,.12); border-color: rgba(95,211,141,.35); } /* alias: verde = presencial/confirmado */
.badge-outline { color: var(--ivory); border-color: rgba(var(--ivory-rgb), .25); }
.badge-dark { color: var(--gold-200); background: var(--night-950); border-color: rgba(var(--gold-200-rgb), .15); }
.badge-default { color: var(--night-900); background: var(--ivory); }
.badge-success { color: var(--success); background: rgba(95,211,141,.12); border-color: rgba(95,211,141,.35); }
.badge-error { color: var(--error); background: rgba(255,107,91,.12); border-color: rgba(255,107,91,.35); }
.badge-info, .badge-blue { color: var(--info); background: rgba(124,198,232,.12); border-color: rgba(124,198,232,.35); }
.badge-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-glow 2s infinite; --pulse-rgb: 0, 155, 96; }
.badge-success.badge-dot::before { --pulse-rgb: 95, 211, 141; }
.badge-wine.badge-dot::before { --pulse-rgb: 34, 165, 122; }
.badge-pop { animation: badge-pop .7s var(--ease-spring) both; }
.badge-xl { padding: .55rem 1.1rem; font-size: .8rem; }

/* ============================================================ INPUTS */
.form-field { display: grid; gap: .5rem; align-content: start; }
.form-label { font-size: var(--fs-label); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); display: flex; justify-content: space-between; }
.form-label em { font-style: normal; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--smoke); }
.form-input-wrap { position: relative; }
.form-input-wrap > .ic { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--smoke); pointer-events: none; transition: color var(--dur-base); }
.form-input, .form-select, .form-textarea {
  width: 100%; height: 54px; padding: 0 1.1rem; border-radius: var(--radius-md);
  background: rgba(255,255,255,.035); border: 1px solid rgba(var(--gold-200-rgb), .18); color: var(--ivory); font-size: 1rem;
  transition: border-color var(--dur-base), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base);
}
.form-input-wrap > .ic ~ .form-input, .form-input-wrap > .ic ~ .form-select { padding-left: 2.85rem; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--smoke); }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: rgba(var(--gold-200-rgb), .35); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--gold-400); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(var(--gold-400-rgb), .14), 0 0 34px -4px rgba(var(--gold-400-rgb), .3); }
.form-input-wrap:focus-within > .ic { color: var(--gold-400); }
.form-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3DC94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.75rem; }
.form-select option { background: var(--night-900); color: var(--ivory); }
.form-textarea { height: auto; min-height: 118px; padding: .95rem 1.1rem; resize: vertical; line-height: 1.55; }
.form-hint { font-size: .75rem; color: var(--mist); display: flex; align-items: center; gap: .35rem; }
.form-hint .ic { width: 14px; height: 14px; }
.form-input-error { border-color: var(--error) !important; box-shadow: 0 0 0 4px rgba(255,107,91,.14) !important; animation: shake .45s var(--ease-out); }
.form-hint-error { color: var(--error); }
.form-input-success { border-color: var(--success) !important; box-shadow: 0 0 0 4px rgba(95,211,141,.12) !important; }
.form-hint-success { color: var(--success); }
.form-input:disabled { opacity: .42; cursor: not-allowed; }
.form-check { display: inline-flex; align-items: center; gap: .7rem; cursor: pointer; font-size: .92rem; user-select: none; }
.form-check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(var(--gold-200-rgb), .45); background: rgba(255,255,255,.03) center / 0 no-repeat; cursor: pointer; transition: background var(--dur-base) var(--ease-spring), border-color var(--dur-base), box-shadow var(--dur-base); }
.form-check input:checked { background-color: var(--gold-400); border-color: var(--gold-400); background-size: 14px; box-shadow: 0 0 18px rgba(var(--gold-400-rgb), .5); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305060A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.form-switch input { width: 46px; height: 26px; border-radius: 99px; position: relative; background: rgba(255,255,255,.08); border-color: rgba(var(--gold-200-rgb), .3); }
.form-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mist); transition: transform var(--dur-slow) var(--ease-spring), background var(--dur-base); }
.form-switch input:checked { background-image: none; background-color: var(--wine-600); border-color: var(--wine-400); box-shadow: 0 0 18px rgba(var(--wine-500-rgb), .55); }
.form-switch input:checked::after { transform: translateX(20px); background: var(--gold-200); }
/* rádio em card (Sim/Não) · círculo custom, selecionado = gold-400 com glow */
.form-radio-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.form-radio { position: relative; display: flex; align-items: center; gap: .75rem; min-height: 54px; padding: 0 1.1rem; border-radius: var(--radius-md); background: var(--grad-glass); border: 1px solid rgba(var(--ivory-rgb), .12); color: var(--ivory); font-weight: 700; font-size: .95rem; cursor: pointer; user-select: none; transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base); }
.form-radio input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.form-radio::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(var(--ivory-rgb), .35); background: rgba(255,255,255,.03); transition: border-color var(--dur-base), box-shadow var(--dur-base) var(--ease-out), background var(--dur-base); }
.form-radio:hover, .form-radio.is-hover { border-color: rgba(var(--ivory-rgb), .28); }
.form-radio:hover::before, .form-radio.is-hover::before { border-color: rgba(var(--ivory-rgb), .55); }
.form-radio:has(input:checked) { border-color: var(--gold-400); background: var(--grad-glass), rgba(var(--gold-400-rgb), .06); box-shadow: 0 0 0 4px rgba(var(--gold-400-rgb), .1), 0 0 26px -6px rgba(var(--gold-400-rgb), .35); }
.form-radio:has(input:checked)::before { border-color: var(--gold-400); background: radial-gradient(circle, var(--gold-400) 0 5px, transparent 5.5px); box-shadow: 0 0 14px rgba(var(--gold-400-rgb), .55); }
.form-radio:has(input:focus-visible) { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.form-radio-group.form-input-error { box-shadow: none !important; }
.form-radio-group.form-input-error .form-radio { border-color: var(--error); }
.form-light .form-radio { background: var(--white); color: var(--night-900); border-color: rgba(2,20,20,.15); }
.form-light .form-radio::before { border-color: rgba(2,20,20,.3); background: var(--white); }
.form-light .form-radio:has(input:checked) { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(0,135,79,.16); }
.form-light .form-radio:has(input:checked)::before { border-color: var(--gold-500); background: radial-gradient(circle, var(--gold-500) 0 5px, transparent 5.5px); box-shadow: none; }
@media (max-width: 480px) { .form-radio-group { grid-template-columns: 1fr; } }
.form-light { background: var(--paper); border-radius: var(--radius-lg); padding: 1.5rem; color: var(--night-900); }
.form-light .form-label { color: var(--gold-700); }
.form-light .form-input { background: var(--white); color: var(--night-900); border-color: rgba(2,20,20,.15); }
.form-light .form-input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(0,135,79,.16); }
.form-light .form-input-wrap > .ic { color: #7F8F8F; }
.form-light .form-input-wrap:focus-within > .ic { color: var(--gold-600); }
.form-light .form-hint { color: #4A5A5A; }

/* ============================================================ CARDS */
.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl); padding: 1.75rem;
  background: var(--grad-glass), rgba(2,20,20,.6); border: 1px solid rgba(var(--gold-200-rgb), .12);
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-slow), box-shadow var(--dur-slow) var(--ease-out);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-slow); background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--gold-400-rgb), .16), transparent 45%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity var(--dur-slow); pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(var(--gold-200-rgb), .8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover, .card.is-hover { transform: translateY(-8px); border-color: rgba(var(--gold-200-rgb), .2); box-shadow: 0 40px 70px -30px rgba(0,0,0,.85), 0 0 50px -16px rgba(var(--gold-400-rgb), .3); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 1.4rem; color: var(--gold-200); background: linear-gradient(160deg, rgba(var(--gold-400-rgb), .22), rgba(var(--gold-400-rgb), .04)); border: 1px solid rgba(var(--gold-200-rgb), .25); transition: transform var(--dur-slow) var(--ease-spring), background var(--dur-base), color var(--dur-base); }
.card:hover .card-icon, .card.is-hover .card-icon { transform: rotate(-8deg) scale(1.08); background: var(--grad-gold-btn); color: var(--night-950); }
.card-icon .ic { width: 24px; height: 24px; }
.card-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.card-desc { color: var(--mist); font-size: .92rem; line-height: 1.6; }
.card-tag { display: inline-block; margin-bottom: .75rem; }
.card-divider { height: 1px; margin: 1.25rem 0; background: linear-gradient(90deg, rgba(var(--gold-200-rgb), .3), transparent); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-stat-value { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 4.5rem; line-height: .9; font-variant-numeric: tabular-nums; }
.card-event { grid-column: span 2; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.card-event > * { min-width: 0; max-width: 100%; } /* coluna de texto pode encolher: nada empurra o card */
.card-event-thumb { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-md); }
.card-event-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card-event:hover .card-event-thumb img, .card-event.is-hover .card-event-thumb img { transform: scale(1.08); }
.card-event .meta { list-style: none; display: grid; gap: .5rem; margin: 1rem 0 1.25rem; font-size: .9rem; color: rgba(var(--ivory-rgb), .85); }
.card-event .meta li { display: flex; gap: .55rem; align-items: center; min-width: 0; overflow-wrap: anywhere; }
.card-event .meta .ic { flex: none; color: var(--gold-400); width: 18px; height: 18px; }
.price { display: flex; align-items: baseline; gap: .6rem; }
.price s { color: var(--smoke); font-size: .9rem; }
.price strong { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 2.2rem; line-height: 1; text-transform: uppercase; }
.card-accent { background: var(--grad-gold-btn); color: var(--night-950); border-color: transparent; }
.card-accent .card-desc { color: rgba(0,0,0,.72); }
.card-accent::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.45), transparent 45%); }
.card-accent .t-label { color: var(--gold-700); }
.card-accent .sun-corner, .card-accent .crest-corner { position: absolute; right: -70px; top: -70px; width: 240px; opacity: .22; z-index: -1; }
.card-accent .sun-corner svg, .card-accent .crest-corner svg { animation: spin-slow 40s linear infinite; }
.card-wine { background: radial-gradient(120% 90% at 50% 0%, var(--wine-700), var(--wine-950) 70%); border-color: rgba(34,165,122,.3); }
.card-wine .card-desc { color: rgba(var(--ivory-rgb), .78); }
.card-light { background: var(--paper); color: var(--night-900); border-color: rgba(2,20,20,.08); }
.card-light .card-desc { color: #2E4444; }
.card-light .card-icon { color: var(--gold-700); border-color: rgba(0,112,63,.3); }
.card-quote { font-size: 1.05rem; line-height: 1.6; color: var(--ivory); }
.card-quote::before { content: "“"; display: block; font-family: var(--font-display); font-stretch: 75%; font-size: 4.5rem; line-height: .6; color: var(--gold-400); margin-bottom: .5rem; }
.card-author { display: flex; align-items: center; gap: .75rem; }
.card-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--night-950); background: var(--grad-gold-btn); }
.card-author-name { font-weight: 700; font-size: .9rem; } .card-author-role { font-size: .75rem; color: var(--mist); }

/* ============================================================ MODAL */
.modal-bg-blur { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(0,0,0,.66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow); }
.modal-bg-blur.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal {
  position: relative; isolation: isolate; overflow: hidden; width: min(520px, 100%); max-height: calc(100svh - 2rem); overflow-y: auto;
  border-radius: var(--radius-xl); padding: 1.75rem; background: radial-gradient(120% 60% at 50% 0%, var(--wine-900), var(--night-900) 60%);
  border: 1px solid rgba(var(--gold-200-rgb), .2); box-shadow: var(--shadow-lg), 0 0 90px -20px rgba(var(--gold-400-rgb), .35);
  transform: translateY(30px) scale(.94); opacity: 0; transition: transform .6s var(--ease-spring), opacity .4s var(--ease-out);
}
.modal-bg-blur.is-open .modal { transform: none; opacity: 1; }
/* louros atrás do título do modal (antes: sol) */
.modal-sun, .modal-crest { position: absolute; left: 50%; top: -230px; width: 460px; translate: -50% 0; opacity: .3; z-index: -1; pointer-events: none; }
.modal-sun svg, .modal-crest svg { animation: spin-slow 60s linear infinite; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: transform var(--dur-slow) var(--ease-spring), background var(--dur-base); }
.modal-close:hover { transform: rotate(90deg); background: rgba(var(--gold-400-rgb), .2); }
.modal-title { margin-bottom: .6rem; }
.modal-body > p { color: var(--mist); font-size: .92rem; margin-bottom: 1.5rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.modal-body form { display: grid; gap: 1rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal-success { text-align: center; padding: 1.5rem 0 .5rem; }
.modal-success .ok { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold-btn); color: var(--night-950); box-shadow: 0 0 50px rgba(var(--gold-400-rgb), .6); animation: badge-pop .7s var(--ease-spring) both; }
.modal-success .ok .ic { width: 36px; height: 36px; stroke-width: 2.4; stroke-dasharray: 1; animation: draw .8s .3s var(--ease-out) both; }

/* ============================================================ TOOLTIPS */
.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-content {
  position: absolute; z-index: 10; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px) scale(.96);
  padding: .5rem .8rem; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0;
  font-size: .78rem; font-weight: 500; color: var(--ivory); background: var(--night-800); border: 1px solid rgba(var(--gold-200-rgb), .25);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.8);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-spring);
}
.tooltip-content::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 10px; background: inherit; border-right: inherit; border-bottom: inherit; transform: translate(-50%, -50%) rotate(45deg); }
.tooltip-wrap:hover .tooltip-content, .tooltip-wrap:focus-within .tooltip-content { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tooltip-bottom .tooltip-content { bottom: auto; top: calc(100% + 12px); transform: translate(-50%, -8px) scale(.96); }
.tooltip-bottom .tooltip-content::after { top: 0; transform: translate(-50%, -50%) rotate(225deg); }
.tooltip-right .tooltip-content { bottom: auto; left: calc(100% + 12px); top: 50%; transform: translate(-8px, -50%) scale(.96); }
.tooltip-right:hover .tooltip-content, .tooltip-right:focus-within .tooltip-content { transform: translate(0, -50%) scale(1); }
.tooltip-right .tooltip-content::after { left: 0; top: 50%; transform: translate(-50%, -50%) rotate(135deg); }
.tooltip-gold .tooltip-content, .tooltip-purple .tooltip-content { background: var(--gold-400); color: var(--night-950); border-color: var(--gold-300); font-weight: 700; box-shadow: 0 10px 30px -6px rgba(var(--gold-400-rgb), .6); }
.tooltip-wine .tooltip-content { background: var(--wine-700); color: var(--ivory); border-color: var(--wine-500); box-shadow: 0 10px 30px -6px rgba(var(--wine-500-rgb), .6); }
.tooltip-rich .tooltip-content { white-space: normal; width: 240px; padding: .9rem 1rem; text-align: left; line-height: 1.5; }
.tooltip-rich .tooltip-content b { display: block; color: var(--gold-200); margin-bottom: .2rem; }

/* ============================================================ CTA + FOOTER */
.section-cta { padding: clamp(7rem, 14vw, 11rem) 0; text-align: center; background: radial-gradient(70% 60% at 50% 30%, rgba(0,69,69,.75), rgba(0,36,36,.45) 45%, transparent 75%), var(--night-950); }
.section-cta .bg-sun-mark, .section-cta .bg-crest-mark { --size: min(1100px, 150vw); --o: .55; left: 50%; top: 42%; translate: -50% -50%; -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%); mask-image: radial-gradient(circle, #000 10%, transparent 60%); }
.section-cta .bg-ghost { top: 50%; translate: 0 -50%; --ghost-c: rgba(var(--gold-200-rgb), .09); font-size: clamp(14rem, 44vw, 40rem); }
.cta-title { margin: 1.5rem auto 1.25rem; max-width: 14ch; }
.cta-sub { color: rgba(var(--ivory-rgb), .8); max-width: 560px; margin: 0 auto 2.5rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.footer { position: relative; background: var(--night-950); border-top: 1px solid rgba(var(--gold-200-rgb), .12); padding: 3.5rem 0 2rem; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem 3rem; align-items: start; margin-bottom: 3rem; }
.footer-logo { margin-bottom: .9rem; }
.footer-assinatura { display: block; height: 24px; width: auto; max-width: 100%; aspect-ratio: 1029 / 160; }
@media (max-width: 520px) { .footer-assinatura { height: 21px; } }
.footer-desc { color: var(--mist); font-size: .88rem; line-height: 1.6; max-width: 320px; }
.footer-nav-title { font-size: var(--fs-label); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1rem; }
.footer-nav-list { list-style: none; display: grid; gap: .6rem; font-size: .9rem; color: rgba(var(--ivory-rgb), .8); }
.footer-nav-list a { transition: color var(--dur-base); } .footer-nav-list a:hover, .footer-nav-list a.is-hover { color: var(--gold-200); }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; } .footer-social .ic { color: var(--gold-400); }
/* logo horizontal da UEMA (azul-marinho) sobre pílula de papel (novo) */
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(var(--gold-200-rgb), .08); font-size: .78rem; color: var(--smoke); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 1.75rem; } .footer-bottom { flex-direction: column; gap: .4rem; } }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 120; translate: -50% calc(100% + 2.5rem); display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem .7rem .8rem; border-radius: var(--radius-full); background: var(--night-800); border: 1px solid rgba(var(--gold-200-rgb), .3); box-shadow: var(--shadow-lg); font-size: .85rem; color: var(--ivory); transition: translate .6s var(--ease-spring); }
.toast.show { translate: -50% 0; }
.toast .ic { color: var(--gold-400); }

/* ============================================================ KEYFRAMES */
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes letter-in {
  from { opacity: 0; transform: translateY(.5em) rotateX(-80deg) scale(.9); filter: blur(10px) drop-shadow(0 10px 28px rgba(0,155,96,0)); }
  to   { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 10px 28px rgba(0,155,96,.3)); }
}
@keyframes letter-in-lite { from { opacity: 0; transform: translateY(.5em) rotateX(-80deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes echo-in { from { opacity: 0; transform: translate(0, 0); } to { opacity: 1; transform: translate(.045em, .06em); } }
@keyframes shimmer { 0% { background-position: 150% 0, 0 0; } 55%, 100% { background-position: -60% 0, 0 0; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes ray-breathe { 0%, 100% { opacity: .82; scale: 1; } 50% { opacity: 1; scale: 1.045; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatSlow { from { transform: translate(0, 0) scale(1); } to { transform: translate(6%, -8%) scale(1.15); } }
@keyframes grid-drift { to { background-position: 64px 64px, 64px 64px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0 0 rgba(var(--pulse-rgb, 0, 155, 96), .65); } 70%, 100% { box-shadow: 0 0 0 10px rgba(var(--pulse-rgb, 0, 155, 96), 0); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(0,155,96,.7), 0 0 0 0 rgba(0,155,96,.35); } 100% { box-shadow: 0 0 0 26px rgba(0,155,96,0), 0 0 0 52px rgba(0,155,96,0); } }
@keyframes border-spin { to { --angle: 360deg; } }
@keyframes beam-swing { from { transform: rotate(-11deg); } to { transform: rotate(11deg); } }
@keyframes shine-sweep { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes ember-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx, 12px), -170px); opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes people-in { from { opacity: 0; transform: translateY(48px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes badge-pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ghost-drift { from { transform: translateX(0); } to { transform: translateX(-14%); } }
@keyframes scroll-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-5%, -8%); } 40% { transform: translate(4%, 6%); } 60% { transform: translate(-3%, 9%); } 80% { transform: translate(7%, -4%); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
/* novos: louros, estrela, brasão */
@keyframes laurel-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes twinkle { 0%, 100% { transform: scale(.75) rotate(0deg); opacity: .55; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
@keyframes crest-in { from { opacity: 0; transform: translateY(26px) scale(.82); } to { opacity: 1; transform: none; } }
/* 8s: visível 0–3.4s, some 3.4–4s, oculto 4–7.4s, volta 7.4–8s. A segunda imagem roda com delay -4s. */
@keyframes crest-swap { 0%, 42.5% { opacity: 1; scale: 1; } 50%, 92.5% { opacity: 0; scale: .9; } 100% { opacity: 1; scale: 1; } }

/* ============================================================ MOBILE / TOUCH — sem blur animado, menos camadas
   Blur/filter/opacidade animados em camadas grandes estouram a memória de GPU
   e matam a aba no celular. Aqui tudo vira gradiente/sombra estática. */
@media (max-width: 760px), (hover: none) {
  .navbar-inner, .modal-bg-blur, .hero-eyebrow { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .navbar-inner { background: rgba(2,20,20,.94); }
  .navbar-glass.scrolled .navbar-inner { background: rgb(0,0,0); border-color: rgba(var(--gold-200-rgb), .18); } /* sem blur: fundo sólido (com .96 o texto branco rolando por baixo ainda aparecia) */
  .modal-bg-blur { background: rgba(0,0,0,.88); }
  .hero-eyebrow { background: rgba(0,0,0,.85); }
  .beams span { filter: none; opacity: calc(var(--o, .5) * .6); }
  .btn-glow::after { filter: none; opacity: .35; inset: -3px; }
  .btn-glow:hover::after, .btn-glow.is-hover::after { filter: none; opacity: .5; } /* .is-hover só aqui (sem blur); o blur(24px) do hover real fica só em :hover */
  .hero-orb, .bg-aurora::before, .bg-aurora::after { filter: none; animation: none; }
  .hero-orb-1 { background: radial-gradient(closest-side, rgba(0,155,96,.26), transparent); }
  .hero-orb-2 { background: radial-gradient(closest-side, rgba(0,122,94,.4), transparent); }
  .bg-aurora::before { background: radial-gradient(closest-side, rgba(0,155,96,.12), transparent); }
  .bg-aurora::after { background: radial-gradient(closest-side, rgba(0,122,94,.3), transparent); }
  .hero-people::before { filter: none; animation: none; background: radial-gradient(closest-side, rgba(0,155,96,.32), transparent); }
  .socio { filter: none; } /* 4 camadas com drop-shadow = 4 texturas extras na GPU; no celular ficam chapadas */
  .hero-sun { animation: none; }
  .hero-crest { animation: none; }
  .hero-crest img { filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
  .reveal { filter: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
  .hl-main .char, .split .char { animation-name: letter-in-lite, shimmer; }
  .bg-photo { display: none; } /* sem blur a foto vira texto legível; no celular fica só o gradiente vinho */
  .grain { animation: none; opacity: .06; inset: 0; }
  .bg-ghost { filter: none; color: transparent; -webkit-text-stroke: 1px var(--ghost-c, rgba(143,221,186,.08)); animation: none; }
  .section-light .bg-ghost { -webkit-text-stroke-color: rgba(2,20,20,.09); }
  .crest-star, .orbit-star { filter: none; }
  .marquee-item:nth-child(even) { filter: none; color: transparent; -webkit-text-stroke: 1px rgba(143,221,186,.7); }
}

/* ============================================================ SCROLL-HOVER (touch, sem hover real)
   assets/scroll-hover.js marca os hoveráveis com [data-scroll-hover] e põe .is-hover enquanto
   estão na faixa central da tela. Aqui só a duração das transições (≈.4–.5s, suave no scroll).
   Só transform / box-shadow / border / background / cor: nada de blur, filter ou opacidade de camada grande. */
@media (hover: none) {
  .card[data-scroll-hover] { transition: transform .5s var(--ease-out), border-color .45s, box-shadow .45s var(--ease-out), opacity .9s var(--ease-out); } /* inclui opacity p/ o .reveal (que sobrescrevia o transition do card) */
  .card[data-scroll-hover] .card-icon { transition: transform .5s var(--ease-spring), background .4s, color .4s; }
  .badge[data-scroll-hover] { transition: transform .45s var(--ease-spring), box-shadow .45s, opacity .9s var(--ease-out); }
  .btn[data-scroll-hover], .hero-meta li[data-scroll-hover], .form-radio[data-scroll-hover], .form-radio[data-scroll-hover]::before, .footer-nav-list a[data-scroll-hover] { transition-duration: .4s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .crest-leaf, .crest-stem { opacity: 1 !important; stroke-dashoffset: 0 !important; }
  .crest-img-a { animation: none !important; opacity: 1 !important; }
  .crest-img-b { animation: none !important; opacity: 0 !important; }
}

/* ============================================================ PÁGINA DE CAPTAÇÃO (index.html)
   Composições da landing com os componentes do DS (.card, .form-*, .modal-success, .btn-*).
   Nada aqui redefine componente do DS: só layout e estados do formulário inline. */
/* cabeçalho de seção com foto de professor (recortada, fade na base como a hero, brilho vinho estático atrás).
   Padrão: texto à esquerda, foto à direita (#sobre Gabriel, #programacao Peniel).
   .sec-head--esq: foto à esquerda no desktop (#como-funciona Gabriel, #inscricao Ítalo); no mobile a foto sempre vem depois do texto (ordem do DOM). */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40%); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head .section-head, .sec-head .sec-head-text { margin-bottom: 0; align-self: center; padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.sec-head--esq { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
.sec-head--esq .sec-foto { order: -1; }
.sec-foto { position: relative; margin: 0; display: flex; justify-content: center; align-items: flex-end; }
.sec-foto::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 120%; height: 95%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 55%, rgba(var(--wine-500-rgb), .38), rgba(var(--wine-500-rgb), .12) 55%, transparent); }
.sec-foto picture { position: relative; display: block; }
.sec-foto img { display: block; width: auto; height: auto; max-width: 100%; max-height: 460px;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
/* #inscricao: o .section-cta centraliza tudo; no cabeçalho com foto o texto alinha à esquerda (desktop/tablet) */
.sec-head--cta { max-width: 1040px; margin-inline: auto; text-align: left; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec-head--cta .cta-title { margin: 1.25rem 0 1rem; }
.sec-head--cta .cta-sub { margin: 0; }
@media (max-width: 960px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 36%); gap: 1.5rem; }
  .sec-head--esq { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .sec-foto img { max-height: 360px; }
}
@media (max-width: 760px) {
  .sec-head, .sec-head--esq { grid-template-columns: 1fr; gap: 1.5rem; }
  .sec-head--esq .sec-foto { order: 0; }
  .sec-head .section-head, .sec-head .sec-head-text { padding-bottom: 0; }
  .sec-foto img { max-height: 300px; }
  .sec-foto::before { width: 90%; }
  .sec-head--cta { text-align: center; }
  .sec-head--cta .cta-title, .sec-head--cta .cta-sub { margin-inline: auto; }
  .sec-head--cta .sec-foto img { max-height: 280px; }
}

.sobre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.sobre-grid .card { height: 100%; }
@media (max-width: 1000px) { .sobre-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .sobre-grid { grid-template-columns: 1fr; } }

.prog-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.25rem; align-items: start; }
.prog-grid .card-event { grid-column: auto; }
/* ============================================================ PROGRAMAÇÃO — grade de aulas em dois turnos (.prog-list / .prog-row)
   .prog-list (wrapper, position: relative) = h3.prog-head (turno: marcador sol/pôr do sol + "Manhã · 8h às 12h") → ol.prog-items (li.prog-item)
   → p.prog-break (intervalo: ponto + texto mono) → h3.prog-head → ol.prog-items → p.prog-foot (carga horária). Toda linha (.prog-row) é um grid
   [coluna do trilho --prog-col] [corpo]; o nó (.prog-node: ícone 52px, marcador 32px ou ponto 10px, fundo opaco) fica centralizado na coluna, sobre
   o trilho vertical (.prog-list::before tracejado + ::after dourado) que vai do primeiro ao último nó e se enche com o scroll
   (assets/programacao-cenas.js seta --rail-x/--rail-top/--rail-h e --prog; só scaleY).
   Aula: ícone da disciplina (sprite, traço) num quadrado estilo .card-icon + pílula mono do horário + disciplina (título) + "com Professor(a)".
   Entrada: cascata prog-in por linha (translateY 18px + scale .98 → 1, 60ms × --i) e o trilho tracejado se desenha de cima p/ baixo.
   Ativo (:hover no mouse / no celular .is-lit quando a ponta do filete alcança o centro do ícone): a linha sobe 4px, o quadrado fica dourado
   (grad-gold-btn, ícone escuro) com giro/scale spring, o ícone "pipoca" uma vez (prog-ic-pop) e um anel de 52px pulsa uma vez (prog-pulse: camada
   pequena), a pílula clareia e o título revela o gradiente. Cabeçalhos e intervalo acendem (.is-lit) quando o filete passa por eles, em qualquer tela.
   Sem animação em loop: nada roda com a lista parada. prefers-reduced-motion: trilho cheio, tudo aceso, sem cascata nem pulso. */
.prog-list { --prog-col: 52px; --rail-x: 26px; --rail-top: 26px; --rail-h: 0px; --prog: 0; position: relative; display: grid; gap: 1rem; }
.prog-list.stagger > *, .prog-list.stagger.visible > * { opacity: 1; transform: none; animation: none; } /* a cascata é por linha (--i), não por bloco */
.prog-list::before, .prog-list::after { content: ""; position: absolute; z-index: 0; left: var(--rail-x); top: var(--rail-top); width: 2px; height: var(--rail-h); margin-left: -1px; border-radius: 2px; pointer-events: none; transform-origin: 50% 0; }
.prog-list::before { background: repeating-linear-gradient(180deg, rgba(var(--gold-200-rgb), .3) 0 5px, transparent 5px 10px); transform: scaleY(0); transition: transform 1.4s var(--ease-out) .35s; }
.prog-list.visible::before { transform: scaleY(1); }
.prog-list::after { background: linear-gradient(180deg, var(--gold-200), var(--gold-400)); box-shadow: 0 0 12px rgba(var(--gold-400-rgb), .55); transform: scaleY(var(--prog)); transition: transform .3s linear; }
.prog-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.prog-list .prog-row { position: relative; z-index: 1; display: grid; grid-template-columns: var(--prog-col) minmax(0, 1fr); gap: 1rem; align-items: center; margin: 0; opacity: 0; }
.prog-list.visible .prog-row { opacity: 1; animation: prog-in .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.prog-node { position: relative; justify-self: center; display: grid; place-items: center; background: var(--night-800); }
/* cabeçalho do turno */
.prog-head { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.prog-head em { font-style: normal; font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--mist); }
.prog-mark { width: 32px; height: 32px; border-radius: 50%; color: var(--gold-300); border: 1px solid rgba(var(--gold-200-rgb), .35); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.prog-mark .ic { width: 16px; height: 16px; stroke-width: 2; }
.prog-head.is-lit .prog-mark { background: var(--grad-gold-btn); color: var(--night-950); border-color: transparent; box-shadow: 0 0 16px rgba(var(--gold-400-rgb), .5); }
/* intervalo */
.prog-break { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: var(--mist); }
.prog-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(var(--gold-200-rgb), .5); transition: background .4s, border-color .4s, box-shadow .4s; }
.prog-break.is-lit .prog-dot { background: var(--gold-400); border-color: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }
/* aula */
.prog-item { transition: transform .5s var(--ease-spring); }
.prog-icon { width: var(--prog-col); height: var(--prog-col); border-radius: 16px; color: var(--gold-200); background: linear-gradient(160deg, rgba(var(--gold-400-rgb), .22), rgba(var(--gold-400-rgb), .04)), var(--night-800); border: 1px solid rgba(var(--gold-200-rgb), .25); box-shadow: 0 10px 24px -14px rgba(0,0,0,.8); transition: transform .5s var(--ease-spring), background .35s, color .35s, border-color .35s, box-shadow .45s var(--ease-out); }
.prog-icon .ic { width: 24px; height: 24px; }
.prog-icon::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid rgba(var(--gold-400-rgb), .75); opacity: 0; pointer-events: none; }
.prog-body { min-width: 0; }
.prog-line { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin-bottom: .2rem; }
.prog-time { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; line-height: 1; letter-spacing: .02em; white-space: nowrap; padding: .3rem .55rem; border-radius: var(--radius-full); color: var(--gold-200); background: rgba(var(--gold-400-rgb), .12); border: 1px solid rgba(var(--gold-400-rgb), .32); transition: color .35s, background .35s, border-color .35s, box-shadow .35s; }
.prog-list .card-title { display: block; width: fit-content; margin: 0; font-size: 1.12rem; background-image: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: var(--ivory); -webkit-text-fill-color: var(--ivory); transition: color .4s, -webkit-text-fill-color .4s, transform .5s var(--ease-out); }
.prog-list .card-desc { font-size: .88rem; transition: color .4s, transform .5s var(--ease-out); }
/* estado ativo (mouse) */
.prog-item:hover { transform: translateY(-4px); }
.prog-item:hover .prog-icon { transform: rotate(-8deg) scale(1.08); background: var(--grad-gold-btn); color: var(--night-950); border-color: transparent; box-shadow: 0 14px 28px -12px rgba(var(--gold-400-rgb), .75); }
.prog-item:hover .prog-icon::after { animation: prog-pulse .9s var(--ease-out) both; }
.prog-item:hover .prog-icon .ic { animation: prog-ic-pop .7s var(--ease-spring) both; }
.prog-item:hover .prog-time { color: var(--gold-100); background: rgba(var(--gold-400-rgb), .22); border-color: rgba(var(--gold-400-rgb), .75); box-shadow: 0 0 14px -4px rgba(var(--gold-400-rgb), .6); }
.prog-item:hover .card-title { color: transparent; -webkit-text-fill-color: transparent; transform: translateX(3px); }
.prog-item:hover .card-desc { color: rgba(var(--ivory-rgb), .9); transform: translateX(3px); }
/* rodapé da grade (sem nó: o trilho termina no último ícone) */
.prog-list .prog-foot { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin-top: .25rem; padding-top: 1rem; border-top: 1px solid rgba(var(--gold-200-rgb), .12); font-family: var(--font-mono); font-size: .74rem; line-height: 1.5; color: var(--mist); }
.prog-foot .ic { width: 16px; height: 16px; color: var(--gold-400); }
.prog-foot b { font-weight: 600; color: var(--gold-200); }
/* desktop: a grade é mais alta que o card Local → o card acompanha o scroll (sticky) em vez de ficar solto no topo de um grid vazio */
@media (min-width: 961px) { .prog-grid .card-event { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 960px) { .prog-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { /* uma coluna: ícone 46px à esquerda, horário/disciplina/professor à direita */
  .prog-list { --prog-col: 46px; gap: .9rem; }
  .prog-items { gap: .9rem; }
  .prog-list .prog-row { gap: .8rem; }
  .prog-icon { border-radius: 14px; }
  .prog-icon .ic { width: 22px; height: 22px; }
  .prog-list .card-title { font-size: 1.02rem; }
  .prog-time { font-size: .68rem; padding: .26rem .5rem; }
  .prog-head { font-size: .68rem; letter-spacing: .12em; }
}
/* Card Local no celular: pôster em cima (centralizado), texto em largura total, "Como chegar" ocupando o card */
@media (max-width: 760px) {
  .prog-grid .card-event { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .card-event-thumb { width: 100%; max-width: 260px; margin-inline: auto; }
  .card-event .btn { display: flex; width: 100%; }
}

/* Formulário inline dentro do .section-cta (que centraliza texto) */
.lead-card { max-width: 640px; margin: 0 auto; text-align: left; padding: clamp(1.25rem, 4vw, 2.25rem); background: radial-gradient(120% 60% at 50% 0%, var(--wine-900), var(--night-900) 60%); border-color: rgba(var(--gold-200-rgb), .2); box-shadow: var(--shadow-lg), 0 0 90px -20px rgba(var(--gold-400-rgb), .35); scroll-margin-top: 96px; }
.lead-card:hover, .lead-card.is-hover { transform: none; }
.lead-card-head { display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; color: var(--mist); font-size: .9rem; }
.lead-card-head span { display: inline-flex; align-items: center; gap: .45rem; }
.lead-card-head .ic { color: var(--gold-400); }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.lead-form > .form-field, .lead-form > .lead-full { grid-column: 1 / -1; }
.lead-form > .form-field.lead-half { grid-column: auto; }
@media (max-width: 600px) { .lead-form > .form-field.lead-half { grid-column: 1 / -1; } }
.lead-form .form-check { align-items: flex-start; line-height: 1.45; }
.lead-form .form-check input { flex: none; margin-top: -.1rem; }
.lead-form .form-check.form-input-error input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255,107,91,.14); }
.lead-form .btn[type="submit"] { width: 100%; margin-top: .25rem; }
.lead-form-error { justify-content: center; text-align: center; }
.lead-legal { text-align: center; }
/* honeypot: fora da tela, invisível para pessoas, preenchível por robôs */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* Estado de sucesso (mesmo bloco do .modal-success do DS, dentro do card) */
.lead-success:focus { outline: none; }
.lead-success .t-h2 { margin-bottom: .75rem; }
.lead-success-msg { color: rgba(var(--ivory-rgb), .85); max-width: 460px; margin: 0 auto; }
.lead-success-msg b { color: var(--gold-200); overflow-wrap: anywhere; }
.token-box { display: grid; justify-items: center; gap: .75rem; margin: 1.5rem auto 0; padding: 1rem; max-width: 480px; border-radius: var(--radius-lg); border: 1px dashed rgba(255,107,91,.35); background: rgba(255,107,91,.05); }
.token-box .badge { white-space: normal; text-align: center; line-height: 1.4; }
.token-row { display: flex; align-items: center; gap: .6rem; max-width: 100%; }
.token-row .t-mono { padding: .5rem .75rem; border-radius: var(--radius-md); background: rgba(0,0,0,.6); border: 1px solid rgba(var(--gold-200-rgb), .18); color: var(--gold-100); word-break: break-all; }
.token-row .lead-code { font-size: 1.6rem; font-weight: 600; letter-spacing: .14em; line-height: 1.2; }
.lead-support { text-align: center; }
.lead-support a { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }
.lead-next { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(var(--gold-200-rgb), .12); display: grid; justify-items: center; gap: .9rem; }
.lead-next-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1rem; }
@media (max-width: 520px) {
  .lead-next-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .lead-next-actions .btn-glow-face { width: 100%; justify-content: center; font-size: 1.15em; }
}
/* erro do consentimento: só o quadrado do checkbox fica vermelho (não o label inteiro) */
.lead-form .form-check.form-input-error { border-color: transparent !important; box-shadow: none !important; }
/* toast fora da tela também sai da árvore de pintura quando oculto */
.toast { visibility: hidden; transition: translate .6s var(--ease-spring), visibility 0s linear .6s; }
.toast.show { visibility: visible; transition-delay: 0s; }

/* #como-funciona: passo a passo do QR Code (cards do DS + número do passo no canto; foto do Gabriel à esquerda) */
.passos-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: passo; }
.passos-grid .card { height: 100%; }
#como-funciona .section-title .text-gold { white-space: nowrap; }
.passo-num { position: absolute; top: 1.4rem; right: 1.5rem; color: var(--gold-300); font-size: .75rem; letter-spacing: 0; padding: .2rem .55rem; border-radius: var(--radius-full); border: 1px solid rgba(var(--gold-200-rgb), .35); }
.passo .card-desc b { color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; }
.passos-rodape { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.passos-nota { display: flex; align-items: flex-start; gap: .75rem; max-width: 620px; margin: 0; padding: 1rem 1.25rem; border-radius: var(--radius-lg); color: var(--mist); font-size: .92rem; line-height: 1.6;
  background: rgba(var(--gold-400-rgb), .06); border: 1px dashed rgba(var(--gold-200-rgb), .28); }
.passos-nota .ic { flex: none; width: 20px; height: 20px; margin-top: .15rem; color: var(--gold-300); }
.passos-nota b { color: var(--gold-200); }
@media (max-width: 1100px) { .passos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .passos-grid { grid-template-columns: 1fr; }
  .passos-rodape { flex-direction: column; align-items: stretch; text-align: left; }
  .passos-rodape .btn, .passos-rodape .btn-glow-face { width: 100%; justify-content: center; }
}

/* ============================================================ CENA DO QR CODE (#como-funciona)
   Inspirada no "Veja como funciona" da Manychat (lista de etapas + mockup de celular com um vídeo de ~6s em loop, etapa ativa
   realçada e troca por hover). Aqui o vídeo vira CSS: assets/programacao-qr-anim.js troca `data-step` (0 formulário → 1 e-mail →
   2 scanner → 3 liberado) e os quatro .passo + a trilha .qr-rail acendem em sincronia. Cada painel entra por transform
   (translateX, sem opacidade em camada grande); as micro-animações de cada painel só rodam enquanto o seu data-step casa (reiniciam
   sozinhas a cada volta). Fora da tela: .is-paused (animation-play-state) + timer parado. prefers-reduced-motion: data-step="3" estático.
   Medidas internas em em: --qr-fs escala o celular inteiro (13px desktop, 10.5px celular → altura ≤ ~420px). */
.passos-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 3.5vw, 3.5rem); align-items: center; }
.passos-layout .passos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qr-scene { --qr-fs: 13px; --qr-h: 40em; position: relative; display: grid; justify-items: center; gap: 1.1rem; padding: .75rem 0 .25rem; }
.qr-scene::before { content: ""; position: absolute; left: 50%; top: 46%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(var(--gold-200-rgb), .16); pointer-events: none; animation: spin-slow 90s linear infinite; }
.qr-halo { position: absolute; inset: 6% -12% 14%; pointer-events: none; background: radial-gradient(closest-side at 50% 45%, rgba(var(--gold-400-rgb), .22), rgba(var(--wine-500-rgb), .16) 55%, transparent); }
.qr-phone { position: relative; z-index: 1; font-size: var(--qr-fs); width: 22em; height: var(--qr-h); border-radius: 2.7em; padding: .55em; color: var(--ivory);
  background: linear-gradient(160deg, #123838, #021414 50%, #0B2828); border: 1px solid rgba(var(--gold-200-rgb), .3);
  box-shadow: 0 34px 70px -28px rgba(0,0,0,.9), 0 0 50px -14px rgba(var(--gold-400-rgb), .3), inset 0 0 0 1px rgba(0,0,0,.7); }
.qr-island { position: absolute; top: 1.1em; left: 50%; translate: -50% 0; width: 6.2em; height: 1.5em; border-radius: 1em; background: var(--night-950); z-index: 3; }
.qr-status { position: absolute; top: 1.2em; left: 2em; right: 2em; z-index: 3; display: flex; justify-content: space-between; align-items: center; font-size: .78em; font-weight: 700; color: rgba(var(--ivory-rgb), .9); }
.qr-status-ic { display: flex; gap: .22em; align-items: flex-end; height: 1em; }
.qr-status-ic i { width: .3em; height: .45em; border-radius: 1px; background: currentColor; }
.qr-status-ic i:nth-child(2) { height: .7em; } .qr-status-ic i:nth-child(3) { height: .95em; }
.qr-screen { position: absolute; inset: .55em; border-radius: 2.2em; overflow: hidden; background: linear-gradient(180deg, #041A1A, var(--night-950)); }
.qr-home { position: absolute; bottom: .95em; left: 50%; translate: -50% 0; width: 6em; height: .3em; border-radius: 1em; background: rgba(var(--ivory-rgb), .35); z-index: 3; }
.qr-panel { position: absolute; inset: 0; padding: 3.7em 1.3em 1.7em; display: flex; flex-direction: column; gap: .75em; transform: translateX(100%); transition: transform .75s var(--ease-out); }
.qr-scene[data-step="0"] [data-panel="0"], .qr-scene[data-step="1"] [data-panel="1"], .qr-scene[data-step="2"] [data-panel="2"], .qr-scene[data-step="3"] [data-panel="3"] { transform: none; }
.qr-scene[data-step="1"] [data-panel="0"], .qr-scene[data-step="2"] [data-panel="0"], .qr-scene[data-step="2"] [data-panel="1"],
.qr-scene[data-step="3"] [data-panel="0"], .qr-scene[data-step="3"] [data-panel="1"], .qr-scene[data-step="3"] [data-panel="2"] { transform: translateX(-100%); }
.qr-scene.is-reset .qr-panel { transition: none; } /* volta 3 → 0 em corte seco, como o loop de um vídeo */
.qr-app-head { display: flex; align-items: center; gap: .55em; font-size: .7em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-300); margin-bottom: .3em; }
.qr-app-head .ic { width: 1.5em; height: 1.5em; }
.qr-app-logo img { width: 1.7em; height: auto; }
/* 1 · formulário: texto "digitado" (clip-path em steps), cursor, borda do campo acende no foco, botão acende da esquerda p/ a direita e pulsa um clique */
.qr-field { display: grid; gap: .32em; }
.qr-label { font-size: .62em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-200); }
.qr-input { display: flex; align-items: center; height: 2.7em; padding: 0 .85em; border-radius: .75em; border: 1px solid rgba(var(--gold-200-rgb), .18); background: rgba(255,255,255,.04); font-size: .86em; color: var(--ivory); white-space: nowrap; overflow: hidden; }
.qr-type { clip-path: inset(0 100% 0 0); }
.qr-caret { width: 1px; height: 1.15em; margin-left: 2px; background: var(--gold-400); transform: scaleY(0); }
.qr-scene[data-step="0"] .qr-type { animation: qr-type .75s steps(14, end) var(--t, 0s) both; }
.qr-scene[data-step="0"] .qr-caret { animation: qr-caret 1s linear var(--t, 0s) both; }
.qr-scene[data-step="0"] .qr-input { animation: qr-focus 1.1s var(--ease-out) var(--t, 0s) both; }
.qr-check { display: flex; align-items: center; gap: .6em; margin-top: .2em; font-size: .7em; line-height: 1.3; color: var(--mist); }
.qr-check i { flex: none; width: 1.7em; height: 1.7em; border-radius: .5em; border: 1.5px solid rgba(var(--gold-200-rgb), .45); background: rgba(255,255,255,.03) center / 0 no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305060A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.qr-scene[data-step="0"] .qr-check i { animation: qr-tick .45s var(--ease-spring) var(--t, 0s) both; }
.qr-btn { position: relative; margin-top: auto; height: 3em; border-radius: 99em; display: grid; place-items: center; overflow: hidden; isolation: isolate; background: var(--grad-gold-btn); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.qr-btn::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(2,20,20,.82); transform-origin: 100% 50%; }
.qr-btn span { position: relative; z-index: 2; font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 1.05em; letter-spacing: .06em; text-transform: uppercase; color: rgba(var(--gold-200-rgb), .55); }
.qr-scene[data-step="0"] .qr-btn::before { animation: qr-btn-wipe .6s var(--ease-out) 3s both; }
.qr-scene[data-step="0"] .qr-btn span { animation: qr-btn-text .6s var(--ease-out) 3s both; }
.qr-scene[data-step="0"] .qr-btn { animation: qr-press .45s var(--ease-spring) 3.55s both; }
/* 2 · e-mail: o card "desenrola" de cima (clip-path + translateY), o QR pula (badge-pop) */
.qr-mail { display: grid; gap: .6em; padding: .95em; border-radius: 1em; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(var(--gold-200-rgb), .2); clip-path: inset(0 0 0 0 round 1em); }
.qr-scene[data-step="1"] .qr-mail { animation: qr-unroll .8s var(--ease-out) .25s both; }
.qr-mail-from { display: flex; align-items: center; gap: .55em; font-size: .74em; line-height: 1.25; }
.qr-mail-from b { display: block; color: var(--ivory); }
.qr-mail-from small { display: block; font-size: .9em; color: var(--mist); }
.qr-mail-time { margin-left: auto; color: var(--mist); font-size: .9em; }
.qr-avatar { flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold-btn); color: var(--night-950); font-weight: 800; font-size: 1em; }
.qr-mail-subject { font-weight: 700; font-size: .86em; line-height: 1.3; color: var(--ivory); }
.qr-mail-body { font-size: .72em; line-height: 1.45; color: var(--mist); }
.qr-code-box { display: grid; justify-items: center; gap: .45em; padding: .75em; border-radius: .8em; background: var(--paper); color: var(--night-950); transform: scale(.5); }
.qr-scene[data-step="1"] .qr-code-box { animation: badge-pop .7s var(--ease-spring) 1.25s both; }
.qr-scene[data-step="3"] .qr-code-box, .qr-scene[data-step="2"] .qr-code-box { transform: none; }
.qr-code { width: 8.2em; height: 8.2em; shape-rendering: crispEdges; fill: currentColor; }
.qr-code-label { font-size: .6em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
/* 3 · scanner: câmera escura, QR inclinado, moldura com cantos e laser varrendo 2 vezes (translateY); ao ler, moldura e status ficam verdes */
.qr-panel-scan { padding-bottom: 1.5em; }
.qr-cam { position: relative; flex: 1; min-height: 0; border-radius: 1em; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 40%, #0A2626, var(--night-950)); border: 1px solid rgba(var(--ivory-rgb), .06); }
.qr-cam-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--gold-200-rgb), .06) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--gold-200-rgb), .06) 1px, transparent 1px); background-size: 2.4em 2.4em; }
.qr-frame { position: relative; width: 11em; height: 11em; display: grid; place-items: center; color: var(--gold-400); }
.qr-frame i { position: absolute; width: 1.7em; height: 1.7em; border: 2px solid currentColor; }
.qr-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: .6em; }
.qr-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: .6em; }
.qr-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: .6em; }
.qr-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: .6em; }
.qr-code-scan { width: 8em; height: 8em; padding: .45em; border-radius: .5em; background: var(--paper); color: var(--night-950); transform: rotate(-4deg); box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.qr-laser { position: absolute; left: .5em; right: .5em; top: .5em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, currentColor, transparent); box-shadow: 0 0 10px 2px rgba(var(--gold-400-rgb), .45); transform: translateY(10em); }
.qr-scene[data-step="2"] .qr-laser { animation: qr-laser 1.1s var(--ease-io) 0s 2 alternate both; }
.qr-scene[data-step="2"] .qr-frame { animation: qr-frame-ok .45s var(--ease-out) 2.4s both; }
.qr-scan-status { position: relative; height: 1.7em; overflow: hidden; font-size: .78em; font-weight: 700; letter-spacing: .06em; }
.qr-scan-status > span { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center; gap: .4em; }
.qr-scan-reading { color: var(--gold-200); transform: translateY(-115%); }
.qr-scan-ok { color: var(--success); }
.qr-scan-ok .ic { width: 1.2em; height: 1.2em; stroke-width: 2.6; }
.qr-scene[data-step="2"] .qr-scan-reading { animation: qr-slide-out .4s var(--ease-out) 2.45s both; }
.qr-scene[data-step="2"] .qr-scan-ok { animation: qr-slide-in .4s var(--ease-out) 2.45s both; }
/* 4 · pronto: check dourado pula e se desenha, título em gradiente, badge verde pulsando, estrelas cintilando */
.qr-panel-done { align-items: center; justify-content: center; text-align: center; gap: .55em; padding-top: 3em;
  background: radial-gradient(90% 55% at 50% 32%, rgba(var(--gold-400-rgb), .16), transparent 70%), radial-gradient(110% 60% at 50% 105%, rgba(var(--wine-500-rgb), .4), transparent 70%); }
.qr-sparks { position: absolute; inset: 0; pointer-events: none; }
.qr-sparks svg { position: absolute; left: var(--x); top: var(--y); width: 1.1em; height: 1.1em; fill: var(--gold-200); stroke: none; animation: twinkle var(--d, 2.4s) var(--ease-io) var(--dl, 0s) infinite; }
.qr-ok { width: 5.8em; height: 5.8em; border-radius: 50%; display: grid; place-items: center; margin-bottom: .6em; background: var(--grad-gold-btn); color: var(--night-950); box-shadow: 0 0 44px rgba(var(--gold-400-rgb), .55), inset 0 1px 0 rgba(255,255,255,.6); }
.qr-ok .ic { width: 2.7em; height: 2.7em; stroke-width: 2.6; stroke-dasharray: 1; }
.qr-scene[data-step="3"] .qr-ok { animation: badge-pop .7s var(--ease-spring) .2s both; }
.qr-scene[data-step="3"] .qr-ok .ic { animation: draw .7s var(--ease-out) .55s both; }
.qr-done-title { font-family: var(--font-display); font-stretch: 75%; font-weight: 800; font-size: 1.95em; line-height: 1; text-transform: uppercase; letter-spacing: .01em;
  background-image: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-block: .08em; margin-block: -.08em; }
.qr-done-sub { font-size: .9em; color: var(--ivory); }
.qr-done-badge { display: inline-flex; align-items: center; gap: .5em; margin-top: .4em; padding: .45em .9em; border-radius: 99em; font-size: .62em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--success); background: rgba(95,211,141,.12); border: 1px solid rgba(95,211,141,.38); }
.qr-done-badge i { width: .6em; height: .6em; border-radius: 50%; background: currentColor; --pulse-rgb: 95, 211, 141; animation: pulse-glow 2s infinite; }
.qr-scene[data-step="3"] .qr-done-title { animation: fade-up .7s var(--ease-out) .6s both; }
.qr-scene[data-step="3"] .qr-done-sub { animation: fade-up .7s var(--ease-out) .75s both; }
.qr-scene[data-step="3"] .qr-done-badge { animation: badge-pop .7s var(--ease-spring) .95s both; }
/* trilha de etapas sob o celular (sincronizada com data-step) */
.qr-rail { position: relative; z-index: 1; list-style: none; display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.qr-rail li { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .7rem; border-radius: var(--radius-full); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); border: 1px solid rgba(var(--gold-200-rgb), .14); background: rgba(255,255,255,.02); transition: color .4s, border-color .4s, background .4s, box-shadow .4s; }
.qr-rail li i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background .4s, box-shadow .4s; }
.qr-rail li.is-active { color: var(--gold-200); border-color: rgba(var(--gold-400-rgb), .55); background: rgba(var(--gold-400-rgb), .1); box-shadow: 0 0 24px -8px rgba(var(--gold-400-rgb), .5); }
.qr-rail li.is-active i { background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }
.qr-rail li.is-done { color: var(--success); border-color: rgba(95,211,141,.3); }
/* cards de passo em sincronia: borda/glow, número acende, barra de progresso da etapa (scaleX no tempo da etapa), concluído = verde */
.passo .passo-num { transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.passo.is-active { border-color: rgba(var(--gold-200-rgb), .42); box-shadow: 0 0 0 1px rgba(var(--gold-400-rgb), .22), 0 30px 60px -30px rgba(0,0,0,.85), 0 0 46px -14px rgba(var(--gold-400-rgb), .38); }
.passo.is-active .passo-num { background: var(--gold-400); color: var(--night-950); border-color: var(--gold-400); box-shadow: 0 0 16px rgba(var(--gold-400-rgb), .55); }
.passo.is-active .card-icon { background: var(--grad-gold-btn); color: var(--night-950); }
.passo.is-done .passo-num { color: var(--success); border-color: rgba(95,211,141,.5); background: rgba(95,211,141,.1); }
.passo-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--gold-500), var(--gold-200)); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.passo.is-active .passo-bar { animation: step-fill var(--step-dur, 3.6s) linear both; }
.passo.is-done .passo-bar { transform: scaleX(1); background: linear-gradient(90deg, rgba(95,211,141,.55), rgba(95,211,141,.9)); }
/* touch (hover: none): sem estado de etapa nos cards (o JS já não aplica .is-active/.is-done); só o .is-hover do scroll muda o visual */
@media (hover: none) { .passo-bar { display: none; } }
/* pausa fora da tela / aba oculta (o JS liga .is-paused e para o timer) */
.qr-scene.is-paused *, .qr-scene.is-paused *::before, .qr-scene.is-paused *::after, .passos-grid.is-paused .passo-bar { animation-play-state: paused !important; }
@media (max-width: 960px) {
  .passos-layout { grid-template-columns: 1fr; }
  .qr-scene { order: -1; width: 100%; }
}
@media (max-width: 760px) { /* celular 10.5px → 231×362 + trilha ≈ 420px */
  .qr-scene { --qr-fs: 10.5px; --qr-h: 34.5em; gap: .7rem; padding-top: .5rem; }
  .qr-scene::before { width: min(130%, 300px); }
  .qr-rail { gap: .3rem; }
  .qr-rail li { font-size: .56rem; padding: .28rem .5rem; gap: .3rem; letter-spacing: .08em; }
}
/* passos em 1 coluna abaixo de 640px (antes: .passos-layout .passos-grid vencia a regra ≤600 e ficava 2×2 estreito no celular).
   Card horizontal compacto: ícone 56px à esquerda, título + descrição à direita, número no canto; barra/estados intactos. */
@media (max-width: 639px) {
  .passos-layout .passos-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
  .passos-grid .passo { height: auto; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1.15rem 1.15rem 1.3rem; }
  .passo .card-icon { grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; }
  .passo .card-title { grid-column: 2; font-size: 1.1rem; margin: .15rem 0 .3rem; padding-right: 3rem; }
  .passo .card-desc { grid-column: 2; font-size: .9rem; line-height: 1.55; }
  .passo-num { top: 1.1rem; right: 1.1rem; }
}
/* touch (hover: none): o estado ativo da aula vem do trilho, não da faixa central: .is-lit quando a ponta do ::after
   alcança o centro do ícone; apaga se o filete recuar. As aulas já passadas seguem acesas. Desktop: só :hover. */
@media (hover: none) {
  .prog-item.is-lit { transform: translateY(-4px); }
  .prog-item.is-lit .prog-icon { transform: rotate(-8deg) scale(1.08); background: var(--grad-gold-btn); color: var(--night-950); border-color: transparent; box-shadow: 0 14px 28px -12px rgba(var(--gold-400-rgb), .75); }
  .prog-item.is-lit .prog-icon::after { animation: prog-pulse .9s var(--ease-out) both; }
  .prog-item.is-lit .prog-icon .ic { animation: prog-ic-pop .7s var(--ease-spring) both; }
  .prog-item.is-lit .prog-time { color: var(--gold-100); background: rgba(var(--gold-400-rgb), .22); border-color: rgba(var(--gold-400-rgb), .75); box-shadow: 0 0 14px -4px rgba(var(--gold-400-rgb), .6); }
  .prog-item.is-lit .card-title { color: transparent; -webkit-text-fill-color: transparent; transform: translateX(3px); }
  .prog-item.is-lit .card-desc { color: rgba(var(--ivory-rgb), .9); transform: translateX(3px); }
  .prog-list .prog-item, .prog-item .prog-icon, .prog-item .prog-time, .prog-list .prog-item .card-title, .prog-list .prog-item .card-desc { transition-duration: .45s; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-list::before { transform: none !important; } .prog-list::after { transform: scaleY(1) !important; } /* trilho desenhado e cheio */
  .prog-list .prog-row { opacity: 1 !important; animation: none !important; } /* sem cascata */
  .prog-icon::after, .prog-icon .ic { animation: none !important; } /* sem pulso/pipoca no ativo */
  .qr-type { clip-path: none !important; }
  .qr-code-box, .qr-laser { transform: none !important; }
  .qr-scan-reading { transform: translateY(-115%) !important; }
  .qr-frame { color: var(--success) !important; }
  .qr-ok .ic { stroke-dashoffset: 0 !important; }
}

/* keyframes das duas cenas (também copiados para o DS) */
@keyframes line-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes step-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes qr-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -2% 0 0); } }
@keyframes qr-caret { 0% { transform: scaleY(0); } 6%, 88% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes qr-focus { 0% { border-color: rgba(143,221,186,.18); box-shadow: 0 0 0 0 rgba(0,155,96,0); } 12%, 80% { border-color: var(--gold-400); box-shadow: 0 0 0 3px rgba(0,155,96,.16); } 100% { border-color: rgba(143,221,186,.35); box-shadow: 0 0 0 0 rgba(0,155,96,0); } }
@keyframes qr-tick { from { background-color: rgba(255,255,255,.03); background-size: 0; border-color: rgba(143,221,186,.45); } to { background-color: var(--gold-400); background-size: 1.1em; border-color: var(--gold-400); box-shadow: 0 0 12px rgba(0,155,96,.5); } }
@keyframes qr-btn-wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes qr-btn-text { to { color: var(--night-950); } }
@keyframes qr-press { 0%, 100% { transform: scale(1); } 45% { transform: scale(.94); } }
@keyframes qr-unroll { from { clip-path: inset(0 0 100% 0 round 1em); transform: translateY(-12px); } to { clip-path: inset(0 0 0 0 round 1em); transform: none; } }
@keyframes qr-laser { from { transform: translateY(0); } to { transform: translateY(10em); } }
@keyframes qr-frame-ok { to { color: var(--success); transform: scale(.96); } }
@keyframes qr-slide-out { from { transform: translateY(0); } to { transform: translateY(-115%); } }
@keyframes qr-slide-in { from { transform: translateY(115%); } to { transform: translateY(0); } }

/* keyframes da Programação (grade de aulas; também copiados para o DS) */
@keyframes prog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes prog-pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes prog-ic-pop { 0% { transform: scale(.6) rotate(-18deg); } 60% { transform: scale(1.14) rotate(5deg); } 100% { transform: none; } }

/* ============================================================ INSCRIÇÕES ENCERRADAS (CONFIG.inscricoesEncerradas)
   <html class="inscricoes-encerradas"> é aplicado no <head>, antes da pintura. */
html.inscricoes-encerradas [data-aberto] { display: none !important; }
html:not(.inscricoes-encerradas) [data-encerrado] { display: none !important; }
.lead-closed { text-align: center; }
.lead-closed .lead-card-head { justify-content: center; }
.lead-closed-title { margin-bottom: .75rem; }
.lead-closed-msg { color: rgba(var(--ivory-rgb), .85); max-width: 480px; margin: 0 auto; }
.lead-resend { display: grid; gap: 1rem; margin: 1.75rem auto 0; padding: clamp(1rem, 3vw, 1.5rem); max-width: 480px; text-align: left; border-radius: var(--radius-lg); border: 1px solid rgba(var(--gold-200-rgb), .16); background: rgba(0,0,0,.45); }
.lead-resend-title { display: flex; align-items: flex-start; gap: .55rem; margin: 0; font-weight: 700; color: var(--ivory); line-height: 1.4; }
.lead-resend-title .ic { flex: none; margin-top: .15rem; color: var(--gold-400); }
.lead-resend .btn[type="submit"] { width: 100%; }
.lead-resend-msg { margin: 0; padding: .75rem 1rem; border-radius: var(--radius-md); font-size: .95rem; line-height: 1.5; text-align: center; overflow-wrap: anywhere; border: 1px solid rgba(var(--gold-200-rgb), .25); background: rgba(var(--gold-400-rgb), .08); color: rgba(var(--ivory-rgb), .92); }
.lead-resend-msg b { color: var(--gold-200); }
.lead-resend-msg.is-error { border-color: rgba(255,107,91,.35); background: rgba(255,107,91,.06); }
.lead-resend-msg a { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }
.passos-nota a { color: var(--gold-200); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Intensivo UNITINS: card de Local sozinho (sem programação nem pôster) ---------- */
.local-wrap { max-width: 640px; }
.card-event--solo { grid-template-columns: minmax(0, 1fr); grid-column: auto; }
