:root {
  color-scheme: dark;
  --background: #0b0b0e;
  --surface: #151519;
  --line: #303036;
  --text: #f7f5f1;
  --muted: #bdbbc1;
  --gold: #f4c363;
  --ink: #171007;
  font-family: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; color: var(--text); background: var(--background); }
h1, h2, p { margin: 0; }
h1, h2, .price { font-family: Archivo, Inter, system-ui, sans-serif; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.after-black {
  padding: clamp(20px, 3vw, 32px) clamp(20px, 5vw, 48px) 20px;
  background: radial-gradient(ellipse 70% 410px at 46% 0%, #291e13 0%, #0b0b0e 95%);
}
.wrap { max-width: 1100px; margin-inline: auto; }

.intro {
  display: grid;
  grid-template-areas: "portrait copy";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px clamp(20px, 3vw, 36px);
  max-width: 960px;
  margin: 0 auto 20px;
}
.intro-copy { grid-area: copy; }
.intro-campaign {
  margin-bottom: 10px;
  color: #f7e8d8;
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.closed-stamp {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: clamp(10px, 1.1vw, 14px) clamp(12px, 1.55vw, 20px);
  isolation: isolate;
  border: 2px solid #ef8b78;
  border-radius: 8px;
  background: radial-gradient(ellipse at top left, #47231e 0%, #241313 80%);
  color: #ffad98;
  box-shadow: 0 10px 34px #08060680, inset 0 0 26px #ea6d531a;
  font-size: clamp(1.25rem, 2.5vw, 2.15rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: .015em;
  text-align: center;
  text-transform: uppercase;
}
.closed-stamp::before {
  position: absolute;
  inset: 4px;
  border: 1px solid #ef8b7880;
  border-radius: 4px;
  content: "";
  pointer-events: none;
}
.closed-stamp span { color: #ffd2c4; }
.intro-lead {
  max-width: 44ch;
  margin-top: 12px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}
.intro-lead span { color: var(--gold); }
.intro-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.hero-projecao {
  grid-area: portrait;
  position: relative;
  width: min(100%, 440px);
  justify-self: center;
  background: radial-gradient(ellipse at 40% 58%, #4d321f 0%, #261c14 41%, transparent 72%);
  aspect-ratio: 3 / 2;
  isolation: isolate;
}
.hero-projecao > :is(img, svg, .hero-projecao-predio, .hero-projecao-movel) {
  position: absolute;
  height: auto;
}
.hero-projecao-fellipe {
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 49%;
}
.hero-projecao-luzes {
  z-index: 2;
  inset: 0;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-projecao-leque { transform-origin: 25% 93%; }
.hero-projecao-particulas--perto { opacity: .75; }
.hero-projecao-particulas--longe { opacity: .45; }
.hero-projecao-ias {
  position: absolute;
  z-index: 5;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.hero-projecao-ias li {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(18px, 7%, 46px);
  aspect-ratio: 1;
  border: 1px solid rgba(108, 203, 255, .6);
  border-radius: 9px;
  background: rgba(16, 31, 48, .9);
  box-shadow: 0 0 13px rgba(69, 167, 248, .4), inset 0 0 9px rgba(69, 167, 248, .17);
}
.hero-projecao-ias li:nth-child(1) { left: 29%; top: 49%; rotate: -11deg; }
.hero-projecao-ias li:nth-child(2) { left: 37%; top: 39%; rotate: 8deg; }
.hero-projecao-ias li:nth-child(3) { left: 42%; top: 55%; rotate: -7deg; }
.hero-projecao-ias img,
.hero-projecao-ias svg { display: block; width: 66%; height: 66%; object-fit: contain; }
.hero-projecao-predio {
  z-index: 2;
  top: 1%;
  right: 4%;
  width: 29%;
  filter: drop-shadow(0 4px 13px rgba(82, 195, 248, .35));
}
.hero-projecao-familias {
  z-index: 3;
  top: 0;
  left: 34%;
  width: 31%;
  filter: drop-shadow(0 3px 11px rgba(82, 195, 248, .33));
}
.hero-projecao-casa {
  z-index: 3;
  top: 27%;
  right: 0;
  width: 53%;
  filter: drop-shadow(0 7px 20px rgba(245, 164, 52, .28));
}
.hero-projecao-predio > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}
.hero-projecao-hidrossanitario {
  position: absolute;
  top: 24%;
  left: 20%;
  width: 70%;
  height: auto;
  opacity: .9;
  filter: brightness(1.4) drop-shadow(0 1px 1px rgba(28, 20, 10, .75));
}
/* Recortes da mesma imagem, com animações independentes. */
.hero-projecao-movel {
  z-index: 4;
  background: url("/media/black-hero-animado/mobiliario.webp") no-repeat;
  filter: drop-shadow(0 2px 8px rgba(82, 195, 248, .3));
}
.hero-projecao-poltrona {
  top: 25%;
  left: 31%;
  width: 6.5%;
  aspect-ratio: 63 / 100;
  background-size: 238.1% 100%;
  background-position: left center;
}
.hero-projecao-mesa {
  top: 33%;
  left: 48%;
  width: 10%;
  aspect-ratio: 87 / 100;
  background-size: 172.4% 100%;
  background-position: right center;
}
.hero-projecao-planta {
  z-index: 4;
  top: 70%;
  left: 46%;
  width: 13%;
  filter: drop-shadow(0 0 10px rgba(82, 195, 248, .46));
  rotate: -11deg;
}
.hero-projecao-bomba {
  z-index: 4;
  right: 2%;
  bottom: 0;
  width: 17%;
  filter: drop-shadow(0 7px 15px rgba(82, 195, 248, .28));
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-projecao-surgir {
    from { opacity: 0; transform: translate(var(--projecao-x), var(--projecao-y)) scale(.35); }
    to { opacity: 1; transform: none; }
  }
  @keyframes hero-projecao-flutuar {
    0%, 100% { translate: 0 0; }
    50% { translate: var(--projecao-flutua-x) var(--projecao-flutua-y); }
  }
  @keyframes hero-luz-respirar {
    0%, 100% { opacity: .82; scale: 1; }
    50% { opacity: 1; scale: 1.04; }
  }
  @keyframes hero-luz-subir {
    0% { opacity: 0; translate: -5px 20px; }
    28% { opacity: .85; }
    75% { opacity: .58; }
    100% { opacity: 0; translate: 10px -30px; }
  }
  .hero-projecao-leque { animation: hero-luz-respirar 4.7s ease-in-out .18s 3; }
  .hero-projecao-particulas--perto { animation: hero-luz-subir 3.5s ease-out .2s 4; }
  .hero-projecao-particulas--longe { animation: hero-luz-subir 4.1s ease-out .8s 3; }
  .hero-projecao-ias li {
    --projecao-flutua-x: 4px;
    --projecao-flutua-y: -9px;
    animation: hero-projecao-flutuar 4s ease-in-out .4s 4;
  }
  .hero-projecao-ias li:nth-child(2) {
    --projecao-flutua-x: -5px;
    --projecao-flutua-y: -12px;
    animation-delay: .85s;
  }
  .hero-projecao-ias li:nth-child(3) {
    --projecao-flutua-x: 5px;
    --projecao-flutua-y: -7px;
    animation-delay: 1.3s;
  }
  .hero-projecao-casa {
    --projecao-x: -39%;
    --projecao-y: 58%;
    --projecao-flutua-x: 3px;
    --projecao-flutua-y: -11px;
    animation: hero-projecao-surgir 1.2s cubic-bezier(.18, .67, .23, 1) .24s both,
      hero-projecao-flutuar 4.8s ease-in-out 1.44s 3;
  }
  .hero-projecao-bomba {
    --projecao-x: -218%;
    --projecao-y: -13%;
    --projecao-flutua-x: -4px;
    --projecao-flutua-y: -9px;
    animation: hero-projecao-surgir 1.05s cubic-bezier(.18, .67, .23, 1) .64s both,
      hero-projecao-flutuar 4.2s ease-in-out 1.69s 3;
  }
  .hero-projecao-planta {
    --projecao-x: -45%;
    --projecao-y: 43%;
    --projecao-flutua-x: 4px;
    --projecao-flutua-y: -8px;
    animation: hero-projecao-surgir .9s cubic-bezier(.18, .67, .23, 1) .85s both,
      hero-projecao-flutuar 3.6s ease-in-out 1.75s 3;
  }
  .hero-projecao-predio {
    --projecao-x: -105%;
    --projecao-y: 110%;
    --projecao-flutua-x: -3px;
    --projecao-flutua-y: -9px;
    animation: hero-projecao-surgir 1.2s cubic-bezier(.18, .67, .23, 1) .54s both,
      hero-projecao-flutuar 5.2s ease-in-out 1.74s 3;
  }
  .hero-projecao-familias {
    --projecao-x: -2%;
    --projecao-y: 126%;
    --projecao-flutua-x: 5px;
    --projecao-flutua-y: -8px;
    animation: hero-projecao-surgir 1s cubic-bezier(.18, .67, .23, 1) .78s both,
      hero-projecao-flutuar 4.4s ease-in-out 1.78s 3;
  }
  .hero-projecao-poltrona {
    --projecao-x: 20%;
    --projecao-y: 270%;
    --projecao-flutua-x: -3px;
    --projecao-flutua-y: -8px;
    animation: hero-projecao-surgir 1.1s cubic-bezier(.18, .67, .23, 1) .94s both,
      hero-projecao-flutuar 4.7s ease-in-out 2.04s 3;
  }
  .hero-projecao-mesa {
    --projecao-x: -135%;
    --projecao-y: 230%;
    --projecao-flutua-x: 3px;
    --projecao-flutua-y: -7px;
    animation: hero-projecao-surgir 1.1s cubic-bezier(.18, .67, .23, 1) 1.08s both,
      hero-projecao-flutuar 4.3s ease-in-out 2.18s 3;
  }
}

@media (max-width: 760px) {
  .intro {
    grid-template-areas: "copy" "portrait";
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    text-align: center;
  }
  .intro-lead { margin-inline: auto; }
}

.courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.course {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 8px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.course-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
}
.course-head img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #3a383c;
  border-radius: 12px;
}
.course-topic { display: block; margin-bottom: 4px; color: var(--gold); font-size: .875rem; font-weight: 600; }
.course h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.02; letter-spacing: -.035em; }
.course > p { color: var(--muted); line-height: 1.4; }
.modules { border-top: 1px solid var(--line); }
.modules summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 600;
}
.modules summary::-webkit-details-marker { display: none; }
.modules summary::after {
  content: "";
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  background: linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat,
              linear-gradient(var(--gold), var(--gold)) center / 1px 100% no-repeat;
}
.modules[open] summary::after { background-size: 100% 1px, 0 0; }
.modules ol { margin: 0; padding: 0 0 4px 1.45rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.modules li + li { margin-top: 5px; }
.modules li::marker { color: var(--gold); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 14px;
  border: 1px solid #4b4743;
  border-radius: 9px;
  color: var(--text);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: #242126; border-color: var(--gold); }

.combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  margin-top: 12px;
  padding: 14px clamp(15px, 2vw, 22px);
  border: 1px solid #7b5e34;
  border-radius: 18px;
  background: linear-gradient(108deg, #1b1712 0%, #2b2012 100%);
  scroll-margin-top: 16px;
}
.combo-discount {
  display: inline-block;
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  background: var(--gold);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 800;
  line-height: 1.2;
}
.combo h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.05; letter-spacing: -.03em; }
.combo p { margin-top: 5px; color: #dbd0c2; line-height: 1.4; }
.combo-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price { color: var(--gold); font-size: clamp(1.85rem, 3.2vw, 2.45rem); font-weight: 900; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.button-combo { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.button-combo:hover { border-color: #ffda91; background: #ffda91; }

footer { color: var(--muted); font-size: .875rem; text-align: center; padding: 0 20px 14px; }

@media (min-width: 961px) {
  .course > p { min-height: 5.6em; }
  .modules summary { min-height: 36px; }
}

@media (min-width: 1200px) {
  .course > p { min-height: 4.2em; }
}

@media (max-width: 960px) {
  .courses { grid-template-columns: minmax(0, 1fr); }
  .combo { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 961px) and (max-height: 760px) {
  .after-black { padding-top: 16px; padding-bottom: 9px; }
  .intro { margin-bottom: 12px; }
  .hero-projecao { width: min(100%, 320px); }
  .course { padding-block: 12px; gap: 7px; }
  .course-head { grid-template-columns: minmax(0, 1fr) 56px; }
  .combo { padding-block: 12px; }
  footer { padding-bottom: 7px; }
}

@media (min-width: 1200px) {
  body {
    --espaco-vertical: clamp(0px, calc(100svh - 650px), 325px);
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .after-black {
    padding-top: calc(16px + var(--espaco-vertical) * .07);
    padding-bottom: calc(9px + var(--espaco-vertical) * .04);
  }
  .wrap { max-width: calc(1100px + var(--espaco-vertical) * .25); }
  .intro {
    max-width: calc(960px + var(--espaco-vertical) * .5);
    margin-bottom: calc(12px + var(--espaco-vertical) * .045);
  }
  .hero-projecao { width: min(100%, calc(320px + var(--espaco-vertical) * .8)); }
  .intro-campaign { font-size: calc(.875rem + var(--espaco-vertical) * .006); }
  .closed-stamp {
    font-size: clamp(1.25rem, calc(2.5vw + var(--espaco-vertical) * .012), calc(2.15rem + var(--espaco-vertical) * .024));
  }
  .intro-lead {
    max-width: 100%;
    font-size: calc(clamp(1.0625rem, 1.5vw, 1.25rem) + var(--espaco-vertical) * .019);
  }
  .intro-note { font-size: calc(1rem + var(--espaco-vertical) * .010); }
  .course {
    padding-block: calc(12px + var(--espaco-vertical) * .028);
    gap: calc(7px + var(--espaco-vertical) * .014);
  }
  .course-head {
    grid-template-columns: minmax(0, 1fr) calc(56px + var(--espaco-vertical) * .095);
  }
  .combo { padding-block: calc(12px + var(--espaco-vertical) * .022); }
  footer {
    margin-top: auto;
    padding-bottom: calc(7px + var(--espaco-vertical) * .025);
  }
}
