/* ==========================================================================
   SPTECH — Design system
   Identidade: azul-marinho, rosa, amarelo e turquesa; tipografia mono + Barlow
   ========================================================================== */

:root {
  /* Cores da marca */
  --navy: #1f2b45;
  --navy-900: #141c2f;
  --navy-700: #2a3859;
  --pink: #ff0960;
  --pink-600: #e6005a;
  --yellow: #ffbc00;
  --teal: #00b3bf;
  --blue: #2ea3f2;

  /* Neutros */
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --surface: #ffffff;
  --mist: #dae0e1;
  --ink: #1f2b45;
  --text: #4a5468;
  --muted: #7a8396;
  --line: rgba(31, 43, 69, 0.1);

  /* Tipografia */
  --font-display: "JetBrains Mono", "Simplon Mono", ui-monospace, monospace;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  /* Escala */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(20, 28, 47, 0.06);
  --shadow: 0 18px 40px -18px rgba(20, 28, 47, 0.35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;

  --fs-base: 1rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(var(--fs-base) * 1.0625);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--pink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 80%, transparent);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--btn-bg) 90%, transparent); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--navy); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(31, 43, 69, 0.25);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--bg-soft); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.78rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(20, 28, 47, 0.35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* a imagem oficial tem margem interna: recorte via object-fit */
.brand img { height: 56px; width: 100px; object-fit: cover; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover,
.nav__link[aria-expanded="true"] { color: var(--pink); background: var(--bg-soft); }
.nav__link[aria-current="page"],
.nav__link.is-active { color: var(--pink); }
.nav__link[aria-current="page"]::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
}
.nav__link .chev { width: 14px; height: 14px; transition: transform 0.25s; }
.nav__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.nav__item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 340px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 28, 47, 0.35), 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s;
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  color: var(--ink);
  transition: background 0.2s;
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a[aria-current="page"] { background: var(--bg-soft); box-shadow: inset 3px 0 0 var(--pink); }
.dropdown strong { display: block; font-weight: 700; line-height: 1.25; }
.dropdown small { color: var(--muted); font-size: 0.85rem; }
.dropdown .swatch {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px 10px 10px 2px;
  background: var(--c, var(--navy));
}

.nav__cta { margin-left: 10px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    /* altura explícita: o backdrop-filter do header vira o bloco de contenção */
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 24px var(--gutter) 40px;
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px; font-size: 1.15rem; border-radius: 14px; }
  .nav__link[aria-current="page"]::after { display: none; }
  .dropdown {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 6px;
    background: var(--bg-soft);
    box-shadow: none;
  }
  .nav__item.is-open .dropdown { display: block; transform: none; }
  .dropdown a:hover { background: #fff; }
  .nav__cta { margin: 8px 0 0; }
  .nav__cta .btn { width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(24px, 4vw, 48px);
  background: #fff;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* grade sutil */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(31, 43, 69, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 43, 69, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px; height: 720px;
  right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(255, 9, 96, 0.1), transparent 60%);
  filter: blur(10px);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}
.eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 188, 0, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 188, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 188, 0, 0); }
}
.hero h1 {
  margin: 24px 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
.hero h1 .hl {
  position: relative;
  color: var(--pink);
  white-space: nowrap;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.12em;
  background: var(--pink);
  border-radius: 4px;
  transform-origin: left;
  animation: underline 1s 0.6s var(--ease) both;
  opacity: 0.35;
}
@keyframes underline { from { transform: scaleX(0); } }
.caret {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--yellow);
  vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.02; }
.hero__photo {
  position: absolute;
  inset: 6% 0 0 10%;
  border-radius: 46% 28px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.shape { position: absolute; z-index: -1; }
.shape--pink { width: 34%; aspect-ratio: 1; left: 0; bottom: -4%; background: var(--pink); border-radius: 0 0 0 100%; }
.shape--teal { width: 22%; aspect-ratio: 1; right: -6%; top: 0; background: var(--teal); border-radius: 100% 0 0 0; }
.shape--yellow { width: 12%; aspect-ratio: 1; right: 8%; bottom: -5%; background: var(--yellow); border-radius: 50%; z-index: 2; }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 40px -16px rgba(20, 28, 47, 0.35), 0 0 0 1px var(--line);
  font-size: 0.92rem;
  line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 0.95rem; }
.float-card .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
}
.float-card .ico svg { width: 22px; height: 22px; }
.float-card--a { left: -4%; top: 16%; }
.float-card--b { right: -2%; bottom: 14%; animation-delay: -3s; }
.float-card--b .ico { background: var(--teal); }
@keyframes floaty { 50% { transform: translateY(-10px); } }


@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 12px auto 0; }
}
@media (max-width: 520px) {
  .float-card { padding: 10px 12px; font-size: 0.8rem; }
  .float-card .ico { width: 34px; height: 34px; }
  .float-card--a { left: 0; top: 4%; }
  .float-card--b { right: 0; }
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--pink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--yellow); }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.section-sub { max-width: 32rem; color: var(--muted); }

/* Estágio garantido / proposta */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.about__quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.about__quote mark { background: none; color: var(--pink); }
.about__text { margin-top: 24px; display: grid; gap: 16px; }
.about__text strong { color: var(--ink); }
.about__text .link-arrow { justify-self: start; margin-top: 8px; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.pillar {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  overflow: hidden;
}
.pillar__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
}
.pillar h3 { margin: 18px 0 8px; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.pillar p { font-size: 0.98rem; }
.pillar::after {
  content: "";
  position: absolute;
  right: -18px; top: -18px;
  width: 64px; height: 64px;
  border-radius: 0 0 0 100%;
  background: var(--c);
  opacity: 0.9;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.video-card video,
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 28, 47, 0.65));
  color: #fff;
}
.video-card__play .ring {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 12px rgba(255, 9, 96, 0.25);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.video-card__play:hover .ring { transform: scale(1.08); box-shadow: 0 0 0 18px rgba(255, 9, 96, 0.2); }
.video-card__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video-card__label {
  position: absolute;
  left: 22px; bottom: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
}
.video-card__wrap { position: relative; }
.video-card__wrap::before {
  content: "";
  position: absolute;
  left: -22px; bottom: -22px;
  width: 120px; height: 120px;
  background: var(--yellow);
  border-radius: 0 100% 0 0;
  z-index: -1;
}
.video-card__wrap::after {
  content: "";
  position: absolute;
  right: -16px; top: -16px;
  width: 80px; height: 80px;
  background: var(--teal);
  border-radius: 0 0 0 100%;
  z-index: -1;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* Cursos */
.courses { background: var(--bg-soft); position: relative; overflow: hidden; isolation: isolate; }
.courses::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(31,43,69,0.018)' width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52,50A48.06,48.06,0,0,1,98,2V98A48.06,48.06,0,0,1,52,50Zm-4,0A48.06,48.06,0,0,0,2,2V98A48.06,48.06,0,0,0,48,50ZM152,150a48.06,48.06,0,0,0,46,48V102A48.06,48.06,0,0,0,152,150Zm-50-48V198A48,48,0,0,0,102,102Zm48-50a48.06,48.06,0,0,0-48,46H198A48.06,48.06,0,0,0,150,52ZM198,2H102a48.06,48.06,0,0,0,48,46A48.06,48.06,0,0,0,198,2ZM50,152A48.06,48.06,0,0,0,2,198H98A48.06,48.06,0,0,0,50,152Zm0-4a48.06,48.06,0,0,0,48-46H2A48.06,48.06,0,0,0,50,148Z'/%3E%3C/svg%3E");
  background-size: 160px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.course-card {
  --c: var(--pink);
  --fg: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 28px 24px 24px;
  border-radius: var(--radius-lg);
  background: var(--c);
  color: var(--fg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.course-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -24px rgba(20, 28, 47, 0.45); }
.course-card--cc { --c: var(--pink); }
.course-card--ia { --c: var(--teal); }
.course-card--ads { --c: #fff; --fg: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.course-card--pos { --c: var(--mist); --fg: var(--navy); }
.course-card__icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.22);
}
.course-card--ads .course-card__icon { background: var(--bg-soft); }
.course-card--pos .course-card__icon { background: #fff; }
.course-card__icon img { width: 44px; height: 44px; object-fit: contain; }
.course-card__tag {
  align-self: flex-start;
  margin-top: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(20, 28, 47, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.course-card h3 {
  margin: 14px 0 8px;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  hyphens: auto;
}
.course-card__meta { font-size: 0.95rem; opacity: 0.85; }
.course-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}
.course-card__cta .arrow {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy);
  transition: transform 0.35s var(--ease);
}
.course-card:hover .arrow { transform: rotate(-45deg); }
.course-card__cta svg { width: 18px; height: 18px; }
.course-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.5s var(--ease);
}
.course-card:hover::after { transform: scale(1.4); }

@media (max-width: 1080px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 0; }
}

/* Conheça a SPTECH (bento) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.tile:hover { transform: translateY(-4px); background: var(--navy-700); }
.tile__icon { width: 64px; height: 64px; object-fit: contain; }
.tile h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.tile p { margin-top: 6px; font-size: 0.95rem; }
.tile__go {
  position: absolute;
  right: 20px; top: 20px;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s, transform 0.35s var(--ease);
}
.tile__go svg { width: 16px; height: 16px; }
.tile:hover .tile__go { background: var(--yellow); color: var(--navy); transform: rotate(-45deg); }

.tile--feature {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--pink);
  color: rgba(255, 255, 255, 0.85);
  justify-content: flex-end;
}
.tile--feature:hover { background: var(--pink-600); }
.tile--feature .tile__icon { width: 96px; height: 96px; position: absolute; left: 28px; top: 28px; }
.tile--feature h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tile--feature p { font-size: 1.08rem; max-width: 30ch; }
.tile--feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px; bottom: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, 0.12);
}
.tile--wide { grid-column: span 2; flex-direction: row; align-items: flex-end; }
.tile--wide .tile__icon { order: 2; margin-left: auto; }
.tile--teal { background: var(--teal); color: rgba(255, 255, 255, 0.88); }
.tile--teal:hover { background: #00a1ac; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--feature { grid-row: span 1; min-height: 340px; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .tile--feature, .tile--wide { grid-column: auto; }
}

/* CTA */
.cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: 36px;
  overflow: hidden;
  background: var(--pink);
  box-shadow: var(--shadow);
}
.cta__body {
  position: relative;
  padding: clamp(36px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.9);
  isolation: isolate;
}
.cta__body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(0,0,0,0.07)' width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M52,50A48.06,48.06,0,0,1,98,2V98A48.06,48.06,0,0,1,52,50Zm-4,0A48.06,48.06,0,0,0,2,2V98A48.06,48.06,0,0,0,48,50ZM152,150a48.06,48.06,0,0,0,46,48V102A48.06,48.06,0,0,0,152,150Zm-50-48V198A48,48,0,0,0,102,102Zm48-50a48.06,48.06,0,0,0-48,46H198A48.06,48.06,0,0,0,150,52ZM198,2H102a48.06,48.06,0,0,0,48,46A48.06,48.06,0,0,0,198,2ZM50,152A48.06,48.06,0,0,0,2,198H98A48.06,48.06,0,0,0,50,152Zm0-4a48.06,48.06,0,0,0,48-46H2A48.06,48.06,0,0,0,50,148Z'/%3E%3C/svg%3E");
  background-size: 140px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.cta .kicker { color: #fff; }
.cta h2 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.035em;
}
.cta p { margin-top: 16px; max-width: 30rem; font-size: 1.12rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
}
.cta__contacts a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.cta__contacts a:hover { text-decoration: underline; }
.cta__contacts svg { width: 18px; height: 18px; }
.cta__media { position: relative; min-height: 320px; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .cta { grid-template-columns: 1fr; border-radius: 28px; }
  .cta__media { order: -1; min-height: 260px; }
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.96rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
}
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 26ch; }
.footer h4 {
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color 0.2s; }
.footer a:hover { color: var(--yellow); }
.footer__col + .footer__col h4.mt { margin-top: 28px; }
.contact-item { display: flex; gap: 10px; align-items: flex-start; }
.contact-item svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--teal); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.socials a:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
/* Selo à esquerda e direitos ao lado: o canto direito fica livre para os botões flutuantes */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px 32px;
  margin-top: 56px;
  padding-top: 24px;
  padding-right: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}
.footer__bottom .emec { order: -1; }
/* Selo e-MEC: a arte é branca sobre fundo transparente, feita para o rodapé escuro */
.emec { display: inline-block; border-radius: 10px; transition: opacity 0.2s; }
.emec:hover { opacity: 0.85; }
.emec img { width: 168px; height: auto; }

/* Documentos institucionais: sempre visíveis (informação obrigatória para o público) */
.footer__more { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer__more h4 { margin-bottom: 16px; }
.footer__docs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; gap: 10px 24px !important; }

@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Flutuantes: WhatsApp e acessibilidade
   -------------------------------------------------------------------------- */
.fab-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  justify-items: end;
}
.fab {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s var(--ease);
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.fab--wa { background: #25d366; }
.fab--a11y { background: var(--navy); width: 46px; height: 46px; }
.fab--a11y svg { width: 22px; height: 22px; }

.a11y-panel {
  position: fixed;
  right: 18px;
  bottom: 140px;
  z-index: 95;
  width: 260px;
  padding: 16px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(20, 28, 47, 0.5);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.a11y-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.a11y-panel button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-panel .full { grid-column: 1 / -1; }
.a11y-panel .a11y-libras {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1351b4; /* azul do VLibras / gov.br */
  border-color: #1351b4;
  color: #fff;
}
.a11y-panel .a11y-libras:hover { background: #0c3d8a; }
.a11y-panel .a11y-libras svg { width: 20px; height: 20px; }
.a11y-panel .a11y-libras[aria-busy="true"] { opacity: 0.7; cursor: progress; }
/* o acesso ao VLibras é pelo painel; esconde o botão flutuante próprio do plugin */
#vlibras-access-wrapper { display: none !important; }

/* Alto contraste: tema global (fundo preto, texto branco, links e destaques em amarelo).
   Vale para qualquer componente, inclusive os criados depois, sem precisar listar cada um. */
html.hc {
  --hc-accent: #ffd400;
  --line: rgba(255, 255, 255, 0.6);
  --ink: #fff;
  --text: #fff;
  --muted: #fff;
  color-scheme: dark;
}
/* a janela do VLibras tem a própria interface e fica de fora */
html.hc,
html.hc *:not(#vlibras-app-root, #vlibras-app-root *),
html.hc *:not(#vlibras-app-root *)::before,
html.hc *:not(#vlibras-app-root *)::after {
  background-color: #000 !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  text-shadow: none !important;
}
/* links e controles em amarelo; dentro de cards-link o texto continua branco */
html.hc a { color: var(--hc-accent) !important; }
html.hc a:not([class]), html.hc .link-arrow { text-decoration: underline !important; text-underline-offset: 3px; }
html.hc .btn, html.hc button.tab, html.hc .preset, html.hc .faq-nav button, html.hc .dir-filters button,
html.hc .mod-filter button, html.hc .track, html.hc .fab, html.hc .menu-toggle {
  box-shadow: inset 0 0 0 2px var(--hc-accent) !important;
}
html.hc .btn, html.hc .btn * { color: var(--hc-accent) !important; }
/* estados selecionados / atuais */
html.hc [aria-pressed="true"], html.hc [aria-selected="true"], html.hc [aria-current="page"],
html.hc .is-active, html.hc .module[aria-pressed="true"] {
  box-shadow: inset 0 0 0 3px var(--hc-accent) !important;
  color: var(--hc-accent) !important;
}
html.hc [aria-pressed="true"] *, html.hc [aria-selected="true"] * { color: var(--hc-accent) !important; }
/* cards e blocos ganham contorno visível */
html.hc :is(.course-card, .tile, .pillar, .fact, .ideal li, .perk, .stat, .year, .panel, .subjects li, .model__card, .legal__item,
  .other, .program, .phase, .principle, .voice, .basic, .pcard__photo, .doc, .step, .phase3, .sim__inputs, .sim__result, .now,
  .faq details, .help, .cta, .quote, .mission, .value-card, .value2, .milestone__card, .layer, .stage, .where__info, .mod-type,
  .catalog, .module, .wa-band, .other-pos, .signoff, .pillar-block, .logos a, .logo-card, .shot, .how__card, .perk4, .venue,
  .years-strip div, .support article, .a11y-panel, .dropdown) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}
/* imagens não recebem o fundo preto (PNGs transparentes) */
html.hc img { background-color: transparent !important; }
/* logo do cabeçalho: cores invertidas para o azul-marinho virar claro sobre o preto */
html.hc .brand img { filter: invert(1) hue-rotate(180deg); }
/* ícones e logos de traço escuro ficam sobre uma placa branca */
html.hc :is(.course-card__icon, .other__icon, .partners img, .logos a, .logo-card) {
  background-color: #fff !important;
  border-radius: 8px;
}
html.hc :is(.logos img) { filter: none !important; opacity: 1 !important; }
/* barras de dados e marcadores mantêm cor para não sumirem */
html.hc :is(.sim__meter i, .weights i, .hours i, .tab__bar i, .read-progress, .now__pulse, .dot, .tdot,
  .module .dots i, .eyebrow .dot, .caret),
html.hc .timeline::after,
html.hc .subj__name::before,
html.hc .traits li::before,
html.hc .kicker::before {
  background-color: var(--hc-accent) !important;
}
html.hc .sim__meter { box-shadow: inset 0 0 0 1px #fff !important; }
html.hc mark { background-color: var(--hc-accent) !important; color: #000 !important; }
html.hc ::placeholder { color: #ccc !important; }
html.hc :focus-visible { outline: 3px solid var(--hc-accent) !important; outline-offset: 3px; }
html.hc .site-header { box-shadow: 0 1px 0 #fff !important; }
html.underline-links a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Perguntas frequentes (componente compartilhado)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform 0.25s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__body { display: grid; gap: 10px; padding: 0 22px 22px; }

/* --------------------------------------------------------------------------
   Animações de entrada
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
