/* LP do Box: abertura, índice, passagem para o jogo e informações da turma. */
.box-cohort {
  display: inline-block;
  margin: 0;
  color: #b9c6ff;
  font-weight: 750;
  font-size: .82rem;
  letter-spacing: .075em;
  line-height: 1.3;
  text-transform: uppercase;
}
#inicio .hero-actions { margin-top: .6rem; }
#inicio .hero-actions > .button,
#produtos > #bonus.box-offer-transition > .button {
  width: min(100%, 23rem);
  min-height: clamp(3.3rem, 6vw, 3.75rem);
  padding-inline: clamp(.8rem, 3.5vw, 1.35rem);
  justify-content: center;
  font-size: clamp(.8rem, 1.45vw, .95rem);
  line-height: 1.25;
  text-align: center;
}
#inicio .hero-actions > .button { justify-self: center; }
#conteudo { isolation: isolate; background: #000; }
#inicio::before { background: transparent; }
.intro-transition, .intro-transition .ticker { background: transparent; border-block: 0; }
#produtos { background: transparent; border-top: 0; }
.box-index-panel {
  padding: clamp(1rem, 2.6vw, 2.5rem);
  background: linear-gradient(155deg, #121216, #09090c 75%);
  border: 1px solid #ffffff1f;
  border-radius: .85rem;
  box-shadow: inset 0 1px #ffffff08, 0 3px 0 #151518, 0 12px 28px #0009;
}
.box-lights {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.box-lights::before, .box-lights::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 80%;
  background: radial-gradient(ellipse closest-side, var(--light-color), transparent);
}
.box-lights::before {
  --light-color: rgb(75 109 211 / 8%);
  left: -9%;
  top: 8%;
}
.box-lights::after {
  --light-color: rgb(152 85 184 / 7%);
  right: -8%;
  bottom: 3%;
}
.box-light-point {
  position: absolute;
  width: var(--diameter);
  height: var(--diameter);
  --tint: 111 175 242;
  background: radial-gradient(circle closest-side,
    rgb(var(--tint) / .82) 0%, rgb(var(--tint) / .65) 9%,
    rgb(var(--tint) / .22) 25%, rgb(var(--tint) / .065) 52%, transparent);
}
.box-light-point:nth-child(even) { --tint: 177 140 239; }
@media (max-width: 760px) {
  .box-light-point:nth-child(n + 5) { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .box-light-point {
    animation: box-point-x var(--time-x) ease-in-out var(--phase) infinite alternate,
               box-point-y var(--time-y) ease-in-out var(--phase) infinite alternate;
  }
  /* Separate periods bend the path without a synchronized turn or brightness pulse. */
  @keyframes box-point-x {
    from { transform: translateX(calc(-1 * var(--travel-x))); }
    to { transform: translateX(var(--travel-x)); }
  }
  @keyframes box-point-y {
    from { translate: 0 calc(-1 * var(--travel-y)); }
    to { translate: 0 var(--travel-y); }
  }
  .box-lights::before { animation: box-light-drift 19s ease-in-out -5s infinite alternate; }
  .box-lights::after { animation: box-light-drift 23s ease-in-out -8s infinite alternate-reverse; }
  @keyframes box-light-drift {
    from { transform: translate(-7%, 4%); }
    to { transform: translate(7%, -4%); }
  }
}
@media (forced-colors: active) {
  .box-lights { display: none; }
}
#produtos .box-index-heading {
  display: block;
  margin-bottom: clamp(.875rem, 2.3vw, 2rem);
}
#produtos .box-index-heading h2 {
  color: #f7f7fc;
  line-height: 1;
  text-wrap: balance;
}
#produtos .box-index-item > strong { overflow-wrap: anywhere; }
#produtos .box-index-foot { flex-wrap: wrap; }
#produtos .box-index-total { color: #dedde9; white-space: nowrap; }
#produtos .box-index-cta {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
#produtos .box-index-cta svg {
  flex: 0 0 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}
#produtos { padding-bottom: 0; }
/* Paint only the neighboring chapter or paper above the common backdrop. */
/* The dark lip sits behind a lit bevel. The CSS face meets the chapter flush. */
#produtos .course-passage { height: clamp(2.75rem, 7vw, 7.5rem); }
.course-passage.product-logic, #produtos > .course-passage-out { background: transparent; }
.wave-logic { --wave-depth: #8e1028; --wave-light: #ed4c69; --wave-mid: #bf1939; }
.wave-bias { --wave-depth: #163d83; --wave-light: #4988dc; --wave-mid: #2955a0; }
.wave-narrative, .wave-out { --wave-depth: #681a74; --wave-light: #c363d1; --wave-mid: #873292; }
#produtos > .course-passage-out {
  height: clamp(2.5rem, 5.5vw, 6rem);
  --chapter-bg: var(--chapter-previous);
}
.wave-depth { fill: var(--wave-depth); }
.wave-shade { stop-color: var(--wave-depth); }
.wave-light { stop-color: var(--wave-light); }
.wave-mid { stop-color: var(--wave-mid); }
.course-passage .passage-trace { stroke: var(--wave-light); stroke-width: 1; stroke-opacity: .28; }
@media (forced-colors: active) {
  .course-passage .wave-depth, .course-passage path[fill] { fill: Canvas; }
  .course-passage .passage-trace { stroke: CanvasText; stroke-opacity: 1; }
}
.cut-paper, .cut-evening { --from: transparent; --to: #f3f3f3; }
/* All layers share the laboratory's original arc. */
.cut-paper { --paper-arc: url(#surface-curve-5); --paper-edge: clamp(2px, .24vw, 4px); }
.cut-paper .transition-surface, .cut-paper::before, .cut-paper::after { clip-path: var(--paper-arc); }
.cut-paper::before, .cut-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cut-paper::before {
  transform: translateY(calc(-2 * var(--paper-edge)));
  background: linear-gradient(100deg, #323137, #605e66 52%, #39383e);
}
.cut-paper::after {
  transform: translateY(calc(-1 * var(--paper-edge)));
  background: linear-gradient(100deg, #85848b, #b5b4b8 52%, #959499);
}
#grupo, .closing { background: transparent; border-block: 0; }
#grupo::before, .closing::before { content: none; }
#duvidas::before { border-top: 0; }
.teacher::before { mask-image: linear-gradient(#000 calc(100% - 3rem), transparent); }
.closing { background-image: linear-gradient(transparent calc(100% - 2.5rem), #050505); }
.site-footer { position: relative; isolation: isolate; }
.box-offer-transition {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas: "title courses" "action courses";
  align-items: center;
  gap: 1.25rem clamp(2rem, 8vw, 7rem);
  max-width: 62rem;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
}
.box-offer-transition h3 {
  grid-area: title;
  align-self: end;
  margin: 0;
  font: 400 clamp(2.6rem, 4.6vw, 4.3rem)/.95 BoxFslDisplay, Impact, sans-serif;
}
.box-offer-transition h3 em { color: var(--cyan); font-style: normal; }
#produtos > #bonus.box-offer-transition > .button {
  grid-area: action; align-self: start; width: fit-content;
}
.box-spines {
  grid-area: courses;
  display: grid;
  gap: .35rem;
  list-style: none;
  padding: 0 .8rem 0 0;
  margin: 0;
}
.box-spines li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .82rem 1.1rem .82rem 1.4rem;
  background: linear-gradient(90deg, #ffffff18, transparent .65rem), var(--spine-paper);
  border: 1px solid var(--spine-edge);
  border-inline-start-width: .3rem;
  border-radius: .48rem .18rem .18rem .48rem;
  box-shadow: inset 0 -3px 0 #0003;
  color: #fff;
}
.box-spine-logic { --spine-paper: var(--box-logic); --spine-edge: #ef657e; translate: .45rem; }
.box-spine-bias { --spine-paper: var(--box-bias); --spine-edge: #779bff; }
.box-spine-narrative { --spine-paper: var(--box-narrative); --spine-edge: #d188d9; translate: .8rem; }
.box-spines strong { font: 400 clamp(1.25rem, 2.25vw, 2rem)/1.05 BoxFslDisplay, Impact, sans-serif; }
.box-spines span { flex: none; font-size: .875rem; }
@media (max-width: 700px) {
  .box-offer-transition {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "courses" "action";
    max-width: 30rem;
    row-gap: 1rem;
  }
  .box-offer-transition h3 br { display: none; }
  .box-spines li { padding: .65rem .75rem; }
  #produtos > #bonus.box-offer-transition > .button { width: 100%; }
}
#compra .offer-card .box-cohort { margin-top: .75rem; }
#compra .box-release-note {
  margin: 0 0 .85rem;
  color: #c3c3d3;
  font-size: .9rem;
  line-height: 1.5;
}
#compra .box-release-note strong { color: #f7f7fc; }

@media (forced-colors: active) {
  #compra .box-release-note, #produtos .box-index-total { color: CanvasText; }
}

/* Light chapter ink matches the lettering on the three covers. */
.course-chapter .course-chapter-count > b,
.course-chapter .course-chapter-head > p,
.course-chapter .product-copy h3,
.course-chapter .product-copy h3 em,
.course-chapter .product-copy > p,
.course-chapter .product-copy > p.product-lead,
.course-chapter .box-chapter-topics { color: #fff; }

#inicio :is(.cover-bias, .cover-narrative) :is(.cover-icon, strong) { color: #fff; }

/* Render the cropped course wordmarks in white, preserving transparent areas. */
.wordmark-filter { position: absolute; pointer-events: none; }
.course-logo-title .title-art:not([hidden]) { display: block; }
.course-logo-title .title-art img {
  display: block;
  width: clamp(16rem, 29vw, 27rem);
  max-width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(0) invert(1);
}
#narrativa .title-art img {
  aspect-ratio: 560 / 248;
  object-position: center 95.8%;
  margin-inline-start: -4.8%;
}
#vieses .title-art img {
  width: clamp(17.5rem, 32vw, 29.5rem);
  aspect-ratio: 1122 / 570;
  object-position: center 92.3%;
  transform: translateX(-9%);
  filter: url(#avesso-ink) brightness(0) invert(1);
}
.course-logo-title .title-art:not([hidden]) + .title-fallback { display: none; }
#compra .box-guarantee-note {
  margin: 0 0 .6rem;
  color: #c3c3d3;
  font-size: .9rem;
  line-height: 1.5;
}
#compra .box-guarantee-note strong { color: #f7f7fc; }

/* Keep the existing desktop composition with the course introduction first in reading order. */
@media (min-width: 901px) {
  .product-logic .product-visual, .product-narrative .product-visual { grid-area: 1 / 1; }
}

.course-chapter .product-copy h3, .teacher h2 {
  margin-bottom: clamp(1rem, 1.6vw, 1.5rem);
}
.closing h2 { margin-bottom: clamp(1.25rem, 2vw, 1.875rem); }

/* These destinations can be several chapters away. Land before their controls are used. */
html:has(#oferta:target, .course-chapter:target) { scroll-behavior: auto; }
#inicio .launch-base { pointer-events: none; }
#inicio .plinth-geometry path { pointer-events: visiblePainted; }

@media (max-width: 760px) {
  #duvidas { row-gap: 1rem; }
  #duvidas .faq-intro h2 { margin-bottom: 0; }
  #duvidas .faq-intro .faq-back { display: none; }
  /* The document already reserves the sticky header with scroll-padding. */
  .product.course-chapter { scroll-margin-top: 0; }

  #produtos .course-chapter-head { padding-block: .6rem; margin-bottom: .65rem; }
  .course-chapter .product-inner { row-gap: 1rem; }
  .course-chapter .product-copy h3 { margin-top: .5rem; }
  .js .course-chapter .product-copy.reveal { opacity: 1; transform: none; translate: none; transition: none; }

  #inicio .launch-cover { transform-style: flat; }
  #inicio .launch-cover:is(:hover, :focus-visible) { --cover-hover: 0px; }
  #inicio .cover-face { transform: none; pointer-events: none; }
  #inicio .launch-cover::before { pointer-events: auto; }

  .intro-transition .ticker-track { width: 100%; animation: none; }
  .intro-transition .ticker-group {
    width: 100%; justify-content: center; gap: .6rem; padding: 0;
    font-size: clamp(1.05rem, 4.6vw, 1.6rem);
  }
  .intro-transition .ticker-group + .ticker-group,
  .intro-transition .ticker-group > :nth-child(n+4) { display: none; }
}

#inicio .launch-cover:is(.is-pressed, :active, :focus-visible) .cover-face {
  outline: 3px solid white; outline-offset: -4px;
}
#inicio .launch-cover:is(.is-pressed, :active) .cover-face { filter: brightness(1.15); }
@media (max-width: 360px) {
  #compra .offer-card { display: flex; flex-direction: column; align-items: stretch; }
  #compra .box-offer-action { margin-bottom: .75rem; }
  #compra .box-guarantee-note, #compra .box-release-note { order: 1; }
}
.course-scene-trigger:active .course-scene-action { box-shadow: inset 0 0 0 2px currentColor; }
#laboratorio .lab-tab:active, #laboratorio .lab-choices button:active {
  background: var(--lab-wash); box-shadow: inset 0 0 0 2px var(--lab-accent);
}
@media (prefers-reduced-motion: no-preference) {
  #inicio .cover-face { transition: filter 100ms ease-out; }
  .course-scene-action { transition: box-shadow 100ms ease-out; }
  #laboratorio .lab-tab, #laboratorio .lab-choices button {
    transition: background-color 120ms ease-out, border-color 120ms ease-out;
  }
}
