:root {
  --noite: #100a1a;
  --tinta: #1b1226;
  --lilas: #d2c2f4;
  --paper-dim: #d0c4d5;
  --surface: #1a112a;
  --night-line: #3f3153;
}

.chapter { padding-block: clamp(72px,8vw,126px); }
.chapter--hero { padding-block: 0 clamp(44px, 6vw, 88px); position: relative; isolation: isolate; }
.chapter--hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 77% 34%, #3d2559 0, #211431 23%, transparent 53%);
}
.chapter--hero::after { display: none; }
.hero-layout { position: relative; min-block-size: 0; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; min-inline-size: 0; }
.wordmark {
  display: flex; inline-size: 100%; min-block-size: 64px; gap: 12px; margin-block-end: clamp(20px,4vw,68px);
  border-block-end: 1px solid #ffffff20; font-size: clamp(1rem,1.8vw,1.22rem);
  letter-spacing: -.035em; padding: 0; align-items: center;
}
.wordmark::before { transform: rotate(-10deg); box-shadow: 4px 0 0 -2px var(--noite), 6px 0 0 -2px var(--sol); }
.hero-copy > .eyebrow { color: #e1d2f2; font-size: .875rem; font-weight: 650; margin-block-end: 12px; }
.hero-title {
  font-stretch: 108%; max-inline-size: 19ch; margin-block-end: 20px; line-height: .995;
  letter-spacing: -.065em; font-size: clamp(2rem, 7.65vw, 4.65rem);
}
.hero-title > span { padding-block-end: .13em; overflow: clip; margin-block-end: -.1em; }
.hero-title > span + span { margin-block-start: .23em; color: var(--sol); }
.studio-plan::after {
  content: ""; display: block; width: min(64%, 250px); height: .052em; transform: rotate(-2deg);
  transform-origin: left center; border-radius: 50%; background: currentColor; opacity: .75;
  margin-block: .17em .02em;
}
.hero-copy .hero-support { color: var(--paper-dim); line-height: 1.47; margin-block-start: 13px; }
.hero-copy .hero-highlight { line-height: 1.41; }
.hero-copy .cta { margin-block-start: 19px; }
.hero-copy .hero-notice { color: #c9b9d7; max-inline-size: 53ch; margin-block-start: 15px; }
.studio-stage.hero-art {
  height: auto; width: 100%; min-height: 0; aspect-ratio: 1 / 1.05; margin: 20px 0 -3px;
  position: relative; align-self: center; overflow: visible; isolation: isolate;
}
.studio-stage.hero-art::before, .studio-stage.hero-art::after { display: none; }
.studio-orbit {
  position: absolute; inset: 5% 5% 4%; border: 1px solid #b193d429; border-radius: 50%;
  transform: rotate(-17deg) scaleY(.76);
  box-shadow: 0 0 0 24px #b193d408, 0 0 0 52px #b193d407;
}
.studio-orbit::after { content: ""; position: absolute; inset: 12%; border: 1px dashed #b193d429; border-radius: 50%; }
.studio-poster {
  position: absolute; width: 36%; aspect-ratio: 9/16; overflow: hidden; border-radius: 19px;
  border: 4px solid #322543; background: #2b1a42; box-shadow: 0 16px 28px #0a071760;
  transform: rotate(var(--lean)); opacity: .83; pointer-events: none;
}
.studio-poster svg { width: 100%; height: 100%; }
.studio-poster--left { inset: 16% auto auto 5%; --lean: -15deg; filter: brightness(.72) saturate(.78); }
.studio-poster--right { inset: 22% 5% auto auto; --lean: 15deg; filter: brightness(.64) saturate(.77); }
.studio-device {
  position: absolute; z-index: 1; inset: 5% auto auto 25%; inline-size: 49%; aspect-ratio: 9 / 16;
  padding: clamp(5px, 1vw, 10px); border-radius: clamp(21px, 4vw, 52px);
  border: 1px solid #b0a1c8; background: #0f0b18;
  box-shadow: inset 0 0 0 2px #524560, 0 1px 0 1px #171024, 0 32px 52px #07051094;
  transform: rotate(2deg); transform-origin: center 60%;
}
.studio-device-inner { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: clamp(16px,3.5vw,42px); background: #181128; isolation: isolate; }
.studio-device-inner::before {
  content: ""; position: absolute; top: 4%; left: 39%; width: 22%; height: 3.3%; z-index: 3;
  background: #0e0b15; border: 1px solid #262037; border-radius: 20px;
}
.studio-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.studio-light {
  position: absolute; inset: 23% -20% 7% 29%; opacity: .58; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse, #ffcc62a1, transparent 66%); transform-origin: 50% 35%;
}
.studio-grain { position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(transparent 0 2px,#0b061b7d 3px 4px); }
.studio-segments { position: absolute; inset: 11% 7% auto; display: flex; gap: 4px; }
.studio-segments span { height: 3px; flex: 1; border-radius: 99px; background: #e2d5e250; overflow: hidden; }
.studio-segments span::after { content: ""; height: 100%; display: block; background: var(--sol); transform: scaleX(0); transform-origin: left; }
.studio-segments span:first-child::after { transform: scaleX(1); }
.studio-caption {
  position: absolute; z-index: 1; inset: 17% 11% auto; text-align: center;
  font: 900 clamp(.85rem,2.25vw,1.65rem)/1 Archivo, sans-serif; letter-spacing: -.04em; margin: 0;
  text-wrap: balance; color: var(--papel); text-shadow: 0 2px 7px #000;
}
.studio-caption--after { opacity: 0; color: #ffe68a; }
.studio-subtitle {
  position: absolute; bottom: 13px; inset-inline: 0; text-align: center; color: var(--papel);
  font-weight: 670; font-size: clamp(.6rem,1.3vw,.75rem); text-shadow: 0 1px 3px #000;
}
.studio-slate {
  position: absolute; z-index: 2; bottom: -4%; inset-inline: 4%; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #584269; border-radius: 16px;
  background: #221633; box-shadow: 0 14px 32px #0b071961; padding: 11px 1px;
}
.studio-slate > div { display: grid; gap: 2px; text-align: center; padding-inline: 5px; min-inline-size: 0; }
.studio-slate > div + div { border-inline-start: 1px solid #584269; }
.studio-slate b { font: 900 clamp(1.45rem,3.05vw,2.65rem)/1 Archivo, sans-serif; color: var(--sol); letter-spacing: -.075em; }
.studio-slate span { color: var(--lilas); font-size: clamp(.6875rem,1.3vw,.875rem); font-weight: 550; }
.studio-show .studio-device { animation: studio-device-enter 720ms var(--ease) both; }
.studio-show .studio-scene { animation: studio-scene 3.5s 320ms var(--ease) both; }
.studio-show .studio-light { animation: studio-light 3.25s .16s var(--ease) both; }
.studio-show .studio-caption--before { animation: studio-caption-out 3.7s .18s var(--ease) both; }
.studio-show .studio-caption--after { animation: studio-caption-in 3.7s .18s var(--ease) both; }
.studio-show .studio-segments span:nth-child(2)::after { animation: studio-timing 1.6s .6s linear both; }
.studio-show .studio-segments span:nth-child(3)::after { animation: studio-timing 1.6s 2.2s linear both; }
.studio-complete .studio-caption--before { opacity: 0; }
.studio-complete .studio-caption--after { opacity: 1; }
.studio-complete .studio-segments span::after { transform: scaleX(1); }
.studio-show:not(.in-view) *, .studio-show:not(.in-view) *::after { animation-play-state: paused; }
@keyframes studio-device-enter { from { opacity: .28; transform: translateY(30px) rotate(-7deg) scale(.94); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes studio-scene { 0% { transform: scale(1.3) translate(-3%,4%); } 52% { transform: scale(1.14) translateY(3%); } 100% { transform: scale(1); } }
@keyframes studio-light { 0%,36% { opacity: .03; transform: scale(.66); } 60% { opacity: .91; } 100% { opacity: .58; transform: scale(1); } }
@keyframes studio-caption-out { 0%,6% { opacity: 0; transform: translateY(9px); } 21%,43% { opacity: 1; transform: none; } 60%,100% { opacity: 0; transform: translateY(-5px); } }
@keyframes studio-caption-in { 0%,47% { opacity: 0; transform: translateY(8px); } 70%,100% { opacity: 1; transform: none; } }
@keyframes studio-timing { to { transform: scaleX(1); } }
.chapter--ferida { background: var(--papel); color: var(--tinta); }
.ferida-pause { min-block-size: clamp(260px,46vh,470px); }
.feed-frame { border-radius: 14px; transform: rotate(-4deg); }
.chapter--verdade { background: #181021; color: var(--papel); }
.day-frame { border-radius: 16px; border: 1px solid #b094cc72; box-shadow: none; background: #291b39; }
.day-frame svg { border-radius: 12px; }
.chapter--virada { background: #20132e; color: var(--papel); border-block: 1px solid var(--night-line); }
.turn-number { font-size: clamp(4.5rem, 12vw, 11rem); color: var(--sol); }
.turn-count { color: var(--lilas); }
.wall-grid { border-radius: 11px; border: 1px solid #694f86; transform: rotate(-3deg); box-shadow: 0 20px 40px #09051075; }
.wall-grid > * { border-radius: 2px; }
.chapter--mecanismo { background: #120c1d; border-block-end: 1px solid var(--night-line); }
.chapter--mecanismo .method-intro h2 { color: var(--papel); }
.phase { border-block-start: 1px solid #735991; position: relative; }
.phase h3 { color: #ddd0ee; }
.phase.is-current h3 { color: var(--sol); }
.method-grid, .phase-grid { background: #20132e; border: 1px solid #604b78; box-shadow: none; border-radius: 12px; }
.method-grid > [data-frame], .phase-grid > [data-frame], .closing-grid > [data-frame] { border-radius: 3px; }
.method-grid > .is-filled:nth-child(4n+2) { transition-delay: 28ms; }
.method-grid > .is-filled:nth-child(4n+3) { transition-delay: 56ms; }
.method-grid > .is-filled:nth-child(4n+4) { transition-delay: 84ms; }
.method-grid > [data-frame]:not(.is-filled) { background: #2c1d3d; }
.chapter--diferencial { background: var(--papel); }
.process-frame { border-radius: 13px; }
.chapter--conta { background: #1e102c; color: var(--papel); }
.chapter--conta h2 { color: var(--lilas); }
.calculator { background: #130d21; border-radius: 22px; border: 1px solid #664e81; box-shadow: 0 14px 34px #0c061533; }
.calculator .calc-notice { background: #221632; border-radius: 6px; }
.calc-control > output { color: var(--sol); }
.calc-scale { display: flex; justify-content: space-between; color: var(--paper-dim); font-size: 13px; }
.chapter--provas { background: #fff; }
.chapter--quem { padding: 0; }
.fit-side:first-child { background: #110a1a; }
.fit-side li { border-block-end-color: #867395; }
.chapter--oferta { background: #21132d; border-block-start: 1px solid var(--night-line); }
.chapter--oferta .wrap { justify-items: start; }
.chapter--oferta h2 { text-align: start; }
.receipt {
  padding: clamp(22px,4.5vw,52px); margin-block-start: 24px; border-radius: 21px;
  border: 1px solid #e8d9b5; box-shadow: 0 24px 68px #0a06146e;
}
.receipt::before, .receipt::after { display: none; }
.receipt [data-price] { color: #351c4b; font-size: clamp(4rem,11vw,7.5rem); }
.receipt-price { border-block-start: 1px dashed #a189a6; padding-block-start: 22px; }
.receipt li::before { border: 0; border-block-end: 2px solid var(--violeta); border-inline-start: 2px solid var(--violeta); width: 12px; height: 7px; transform: rotate(-42deg); }
.chapter--garantia { background: #f6ebd8; }
.chapter--duvidas { background: var(--papel); padding-block-start: clamp(62px,8vw,110px); }
.faq { margin-block-start: 4px; }
.faq summary::after { transition: rotate 240ms var(--ease); }
.faq details[open] summary::after { rotate: 180deg; }
.faq details[open] > p { animation: studio-answer 240ms var(--ease) both; }
@keyframes studio-answer { from { transform: translateY(-5px); opacity: .65; } to { transform: none; opacity: 1; } }
.chapter--fechamento { background: radial-gradient(ellipse at 85% 38%, #38204f, #120c1d 56%); border-block-end: 1px solid var(--night-line); }
.closing-grid { border-radius: 15px; border-color: #755496; box-shadow: 0 26px 60px #0e061d87; }
.buy-bar { background: #160e23; border-block-start-color: #553866; }
@media (min-width: 760px) {
  .chapter--hero { padding-block-end: clamp(68px,8vw,130px); }
  .hero-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(18px,3vw,58px); padding-block-start: 85px; }
  .wordmark { position: absolute; inset: -74px 0 auto auto; width: min(100%, 630px); justify-content: flex-start; }
  .hero-copy { align-self: center; }
  .hero-title { font-size: clamp(2.65rem,4.35vw,4.65rem); max-inline-size: 19ch; }
  .hero-copy > p { max-inline-size: 52ch; }
  .studio-stage.hero-art { margin: 26px 0 0; aspect-ratio: 1 / 1.19; }
  .studio-device { width: 51%; inset-block-start: 7%; }
  .studio-poster--left { inset-block-start: 22%; }
  .studio-poster--right { inset-block-start: 29%; }
  .studio-slate { inset-inline: 8%; bottom: 9%; }
  .chapter--oferta .wrap { grid-template-columns: minmax(0,1fr) minmax(0,1.14fr); gap: clamp(30px,7vw,105px); align-items: center; }
  .receipt { margin: 0; }
  .faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 45px; align-items: start; }
}
@media (max-width: 430px) {
  .wordmark { min-block-size: 56px; margin-block-end: 21px; }
  .hero-copy > .eyebrow { font-size: .79rem; margin-block-end: 10px; }
  .hero-title { font-size: clamp(1.84rem,8.3vw,2.22rem); margin-block-end: 14px; }
  .hero-copy .hero-highlight, .hero-copy .hero-support { font-size: 1rem; }
  .hero-copy .hero-notice { margin-block-start: 13px; }
  .studio-stage.hero-art { margin-block-start: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-show .studio-caption--before { opacity: 0; }
  .studio-show .studio-caption--after { opacity: 1; }
  .studio-show .studio-segments span::after { transform: scaleX(1); }
}
