/* ==========================================================================
   BiancoLab · Imersão de Jato de Plasma
   Conceito: "o arco de plasma" — seções escuras (tecnologia) alternam com
   seções porcelana (pele/resultado). Assinatura: arco elétrico violeta.
   ========================================================================== */

/* fontes self-hosted (subset latin, variáveis) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/Fraunces-400-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/IBMPlexMono-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/IBMPlexMono-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-400-700-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-400-700-normal.woff2') format('woff2');
}

:root {
  /* mundo escuro */
  --ink: #131017;
  --ink-2: #1b1622;
  --ink-line: #2e2739;
  --on-ink: #ede8f2;
  --on-ink-muted: #a79fb3;
  /* mundo claro */
  --porcelain: #f6f1ea;
  --porcelain-2: #ede5da;
  --paper: #ffffff;
  --on-light: #241f2b;
  --on-light-muted: #675f70;
  --light-line: #ddd2c4;
  /* plasma */
  --plasma: #a487ff;
  --plasma-deep: #5b3ddb;
  --plasma-deep-hover: #4a2fc0;
  /* type */
  --display: "Fraunces", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; }

::selection { background: rgba(164, 135, 255, 0.35); }

.shell { width: min(1160px, calc(100% - clamp(48px, 8vw, 80px))); margin-inline: auto; }

/* ---------- utilitários de tipo ---------- */

.mono-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plasma);
  margin: 0 0 18px;
}
.light .mono-tag, .light-deep .mono-tag { color: var(--plasma-deep); }

h1, h2 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5.6vw, 4.35rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.9rem); }
h3 {
  font-family: var(--body);
  font-weight: 650;
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.section-head { max-width: 44rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-sub { color: var(--on-ink-muted); margin: 18px 0 0; max-width: 40rem; }
.light .section-sub, .light-deep .section-sub { color: var(--on-light-muted); }

.fine-print {
  font-size: 0.85rem;
  color: var(--on-ink-muted);
  max-width: 46rem;
  margin: 26px 0 0;
}
.light .fine-print, .light-deep .fine-print { color: var(--on-light-muted); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 6px;
  font-weight: 650;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: var(--plasma-deep);
  color: #fff;
  box-shadow: 0 10px 34px rgba(91, 61, 219, 0.35);
}
.btn-primary:hover { background: var(--plasma-deep-hover); transform: translateY(-1px); }
.btn-primary:focus-visible, a:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--plasma);
  outline-offset: 2px;
}
.btn-small { min-height: 42px; padding: 0 20px; background: var(--plasma-deep); color: #fff; font-size: 0.94rem; }
.btn-small:hover { background: var(--plasma-deep-hover); }
.btn-block { width: 100%; }

.link-quiet {
  font-weight: 550;
  color: var(--on-ink-muted);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-quiet:hover { color: var(--plasma); border-color: var(--plasma); }
.light .link-quiet, .light-deep .link-quiet { color: var(--on-light-muted); border-color: var(--light-line); }
.light .link-quiet:hover, .light-deep .link-quiet:hover { color: var(--plasma-deep); border-color: var(--plasma-deep); }

.section-cta { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(19, 16, 23, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-line);
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand em { font-style: normal; color: var(--plasma); }
.site-nav { display: flex; gap: 26px; font-size: 0.93rem; color: var(--on-ink-muted); }
.site-nav a:hover { color: var(--on-ink); }
@media (max-width: 780px) { .site-nav { display: none; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(58% 42% at 78% 30%, rgba(91, 61, 219, 0.16), transparent 70%),
    var(--ink);
  padding: clamp(40px, 7vh, 90px) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
.hero-copy { padding-bottom: clamp(48px, 7vh, 96px); }
.hero-sub { color: var(--on-ink-muted); max-width: 34rem; margin: 24px 0 34px; font-size: 1.13rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-facts {
  display: flex;
  gap: clamp(24px, 4vw, 52px);
  margin: 44px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--ink-line);
}
.hero-facts div { margin: 0; }
.hero-facts dt {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--on-ink);
}
.hero-facts dd { margin: 2px 0 0; font-size: 0.86rem; color: var(--on-ink-muted); }

.hero-figure { position: relative; margin: 0; align-self: end; }
.hero-figure img { position: relative; z-index: 2; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }

.arc { position: absolute; inset: -6% -10% 0; width: 120%; height: 106%; z-index: 1; }
.arc-halo { fill: rgba(91, 61, 219, 0.14); }
.arc-bolt {
  fill: none;
  stroke: var(--plasma);
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  animation: flicker 5.5s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.9; }
  46% { opacity: 0.9; }
  48% { opacity: 0.25; }
  50% { opacity: 1; }
  52% { opacity: 0.55; }
  54% { opacity: 0.95; }
}

.hero-figure figcaption {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 26px;
  background: rgba(19, 16, 23, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--plasma);
  padding: 12px 18px;
  border-radius: 4px;
}
.hero-figure figcaption strong { display: block; font-size: 1rem; }
.hero-figure figcaption span { font-size: 0.8rem; color: var(--on-ink-muted); }

.hero-strip {
  border-top: 1px solid var(--ink-line);
  color: var(--on-ink-muted);
  padding: 18px 0;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 480px) {
  .hero-facts { gap: 18px; }
  .hero-facts dt { font-size: 1.05rem; white-space: nowrap; }
  .hero-facts dd { font-size: 0.78rem; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-figure { max-width: 420px; margin-top: 12px; }
  .only-wide { display: none; }
}

/* ---------- seções claras ---------- */

.light { background: var(--porcelain); color: var(--on-light); }
.light-deep { background: var(--porcelain-2); color: var(--on-light); }
.light, .light-deep, .dark { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--ink); color: var(--on-ink); }

/* protocolos */

.protocol-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--light-line);
  border: 1px solid var(--light-line);
}
.protocol-grid li {
  background: var(--porcelain);
  padding: 26px 24px 28px;
  transition: background-color 0.25s ease;
}
.protocol-grid li:hover { background: var(--paper); }
.protocol-grid strong { display: block; font-size: 1.06rem; font-weight: 650; margin-bottom: 6px; }
.protocol-grid span { font-size: 0.93rem; color: var(--on-light-muted); }

/* pontos de fulguração como marcador */
.dots {
  display: block;
  width: 34px;
  height: 10px;
  margin-bottom: 16px;
  background-image: radial-gradient(circle 3px, var(--plasma-deep) 96%, transparent);
  background-size: 12px 10px;
  background-repeat: repeat-x;
}

/* resultados */

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
}
.result-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(36, 31, 43, 0.08);
}
.result-card img { width: 100%; }
.result-card figcaption { padding: 16px 20px 18px; }
.result-card figcaption strong { display: block; font-weight: 650; margin-bottom: 4px; }
.result-card .mono-tag { margin: 0; font-size: 0.7rem; color: var(--on-light-muted); }

@media (max-width: 720px) {
  .protocol-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
}

/* ---------- prática ---------- */

.video-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.video-card { margin: 0; }
.video-card video {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--ink-line);
  background: var(--ink-2);
}
.video-card figcaption {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-top: 10px;
}

@media (max-width: 880px) {
  .video-rail { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- programa ---------- */

.program-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.program-intro { position: sticky; top: 96px; }
.program-intro .btn { margin-top: 30px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--light-line);
}
.timeline li:last-child { border-bottom: 1px solid var(--light-line); }
.tl-time {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plasma-deep);
  padding-top: 3px;
}
.timeline details summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline details summary::-webkit-details-marker { display: none; }
.timeline details summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--plasma-deep);
  transition: transform 0.2s ease;
}
.timeline details[open] summary::after { transform: rotate(45deg); }
.timeline details ul {
  margin: 14px 0 4px;
  padding-left: 18px;
  color: var(--on-light-muted);
  font-size: 0.97rem;
}
.timeline details li { display: list-item; border: none; padding: 3px 0; grid-template-columns: none; }

@media (max-width: 880px) {
  .program-grid { grid-template-columns: 1fr; }
  .program-intro { position: static; }
}
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .tl-time { padding-top: 0; }
  .mono-tag { font-size: 0.68rem; letter-spacing: 0.1em; }
}

/* ---------- professora ---------- */

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.teacher-photo { margin: 0; position: relative; }
.teacher-photo img {
  border-radius: 8px;
  border: 1px solid var(--ink-line);
}
.teacher-photo::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--plasma-deep);
  border-radius: 8px;
  z-index: -1;
}
.teacher-copy blockquote {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--plasma);
  margin: 22px 0 26px;
  padding-left: 20px;
  border-left: 2px solid var(--plasma-deep);
}
.cred-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  color: var(--on-ink-muted);
}
.cred-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid var(--ink-line);
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plasma);
}

@media (max-width: 880px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .teacher-photo { max-width: 380px; }
}

/* ---------- bônus ---------- */

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.bonus-grid article {
  background: var(--paper);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  padding: 28px 26px;
}
.bonus-grid p { margin: 0; color: var(--on-light-muted); font-size: 0.97rem; }
.bonus-plus {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--on-ink);
}
.bonus-plus p { color: var(--on-ink-muted) !important; }
.bonus-plus h3 { color: var(--plasma); }

@media (max-width: 720px) { .bonus-grid { grid-template-columns: 1fr; } }

/* ---------- inscrição ---------- */

.signup {
  background:
    radial-gradient(50% 60% at 18% 12%, rgba(91, 61, 219, 0.18), transparent 70%),
    var(--ink);
}
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.signup-copy .hero-facts { margin-top: 36px; }

.lead-form {
  background: var(--porcelain);
  color: var(--on-light);
  border-radius: 12px;
  padding: clamp(24px, 3.4vw, 40px);
  display: grid;
  gap: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 650; }
.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--light-line);
  background: var(--paper);
  color: var(--on-light);
}
.field input::placeholder { color: rgba(103, 95, 112, 0.55); }
.field select { appearance: auto; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--on-light-muted);
  cursor: pointer;
}
.consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--plasma-deep); }
.lead-form .form-note { color: var(--on-light-muted); margin: 0; text-align: center; }

@media (max-width: 880px) {
  .signup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- CTA mobile fixo ---------- */

.mobile-cta {
  display: none;
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--plasma-deep);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
@media (max-width: 780px) {
  .mobile-cta { display: flex; }
  .mobile-cta.is-hidden { transform: translateY(90px); opacity: 0; pointer-events: none; }
  body { padding-bottom: 76px; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: 26px 0;
  font-size: 0.88rem;
  color: var(--on-ink-muted);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer a:hover { color: var(--plasma); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
