/* Mokkup — cores das peças do plugin como sistema: estrutura azul,
   revestimento cor de madeira, ripas laranja. */
:root {
  --noite: #0C1626;
  --chapa: #132238;
  --linha: #26405F;
  --papel: #EDF2F8;
  --nevoa: #9FB1C8;
  --mdf: #D9B88A;
  --estrutura: #5AA9FF;
  --ripa: #FF8A3D;
  --display: "Unbounded", system-ui, sans-serif;
  --texto: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--noite);
  color: var(--papel);
  font: 400 1.0625rem/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
strong { font-weight: 600; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; }
:focus-visible { outline: 2px solid var(--estrutura); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font: 600 1.15rem/1.3 var(--texto); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--papel); color: var(--noite); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.intro { max-width: 62ch; margin-top: 18px; color: var(--nevoa); font-size: 1.15rem; }
.fine { font-size: .875rem; color: var(--nevoa); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; justify-content: center; }

/* ── Topo ── */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--noite) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha);
}
.brand { font: 600 1.25rem/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--mdf); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--nevoa); }
.top nav a:hover { color: var(--papel); }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  font: 600 1rem/1 var(--texto); text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-solid { background: var(--ripa); color: #1B0F04; }
.btn-solid:hover { background: #FFA05E; }
.btn-line { border-color: var(--linha); color: var(--papel); }
.btn-line:hover { border-color: var(--estrutura); }
.btn-small { padding: 10px 18px; font-size: .9rem; }
.btn-wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Hero ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  max-width: 1320px; margin-inline: auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px);
}
.lede { margin-top: 24px; font-size: 1.2rem; max-width: 46ch; color: var(--nevoa); }
.lede strong { color: var(--papel); }
.hero .fine { margin-top: 20px; }

.bench {
  border: 1px solid var(--linha); border-radius: 28px;
  background:
    linear-gradient(var(--linha) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, var(--linha) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--chapa);
  background-blend-mode: normal;
  overflow: hidden;
}
.stage {
  --zoom: 1;
  height: clamp(300px, 38vw, 420px);
  perspective: 1200px;
  display: grid; place-items: center;
  cursor: grab; touch-action: pan-y;
  background: radial-gradient(closest-side, transparent 40%, var(--chapa) 100%);
}
.stage:active { cursor: grabbing; }
.rot, .piece { transform-style: preserve-3d; position: relative; width: 0; height: 0; }
.rot { transition: transform .9s cubic-bezier(.2, .7, .2, 1); transform: scale(var(--zoom)); }
.piece { transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.slat, .plate { position: absolute; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .5s, filter .9s; }
.dragging .rot { transition: none; }
.instant .slat, .instant .plate, .instant .piece { transition: none; }
.slat { background: linear-gradient(180deg, #E3C59B, var(--mdf) 55%, #C6A273); }
.slat.kerf { box-shadow: inset 1.5px 0 0 rgba(58, 34, 10, .6); }
.plate {
  left: 0; top: 0; transform-origin: 0 0;
  background: color-mix(in srgb, var(--estrutura) 30%, transparent);
  border: 1.5px solid var(--estrutura);
}

.panel { padding: 20px 24px 22px; background: var(--chapa); border-top: 1px solid var(--linha); }
.modes { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--noite); border: 1px solid var(--linha); }
.modes button {
  appearance: none; border: 0; background: none; color: var(--nevoa);
  font: 500 .9rem/1 var(--texto); padding: 9px 14px; border-radius: 999px; cursor: pointer;
}
.modes button[aria-pressed="true"] { background: var(--estrutura); color: #06182E; }
.radius { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 18px; font-size: .95rem; }
.radius output { font-variant-numeric: tabular-nums; min-width: 6ch; text-align: right; font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--ripa); }
.readout { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 16px 0 14px; }
.readout dt { font-size: .85rem; color: var(--nevoa); }
.readout dd { font: 600 1.5rem/1.2 var(--display); color: var(--mdf); font-variant-numeric: tabular-nums; }

/* ── Faixas ── */
.band { padding-block: clamp(64px, 9vw, 128px); border-top: 1px solid var(--linha); }
.band-tight { padding-block: clamp(48px, 6vw, 88px); }

/* ── Vídeos ── */
.video {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--linha);
  background: radial-gradient(120% 120% at 20% 0%, #1C3352, var(--chapa));
  display: grid; place-items: center;
}
.video-main { margin-top: 40px; border-radius: 28px; }
.video-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.video figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(6, 14, 26, .85));
  font-weight: 500; font-size: .95rem; pointer-events: none;
}
.video-main figcaption { font-size: 1.1rem; padding: 60px 28px 22px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  appearance: none; border: 0; cursor: pointer;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ripa); display: grid; place-items: center;
}
.play::before { content: ""; border-left: 22px solid #1B0F04; border-block: 14px solid transparent; margin-left: 6px; }
.video-row .play { width: 56px; height: 56px; }
.video-row .play::before { border-left-width: 16px; border-block-width: 10px; margin-left: 4px; }
.soon { color: var(--nevoa); font-size: .95rem; padding: 6px 14px; border: 1px dashed var(--linha); border-radius: 999px; }
.playing figcaption { display: none; }

/* ── Problema ── */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 60ch; color: var(--nevoa); font-size: 1.1rem; }
.prose strong { color: var(--papel); }

/* ── Etapas ── */
.steps { counter-reset: etapa; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; border-top: 2px solid var(--estrutura); }
.steps li { counter-increment: etapa; padding: 22px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--linha); }
.steps li::before { content: counter(etapa); display: block; font: 600 2.4rem/1 var(--display); color: var(--estrutura); margin-bottom: 14px; }
.steps p { margin-top: 8px; color: var(--nevoa); font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 56px; margin-top: 64px; }
.facts li { color: var(--nevoa); padding-left: 18px; border-left: 3px solid var(--mdf); }
.facts strong { color: var(--papel); }

/* ── Galeria ── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 20px; }
.shot { border: 1px solid var(--linha); border-radius: 20px; background: var(--chapa); overflow: hidden; }
.shot svg { display: block; width: 100%; padding: 18px; }
.shot svg path, .shot svg rect { fill: color-mix(in srgb, var(--mdf) 16%, transparent); stroke: var(--mdf); stroke-width: 2.5; }
.shot svg .wall { fill: none; stroke: var(--nevoa); stroke-dasharray: 6 6; stroke-width: 1.5; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot figcaption { padding: 12px 18px 16px; font-weight: 500; font-size: .95rem; border-top: 1px solid var(--linha); }

/* ── Para quem ── */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.trio h3 { font: 600 1.25rem/1.25 var(--display); letter-spacing: -.01em; color: var(--mdf); }
.trio p { margin-top: 12px; color: var(--nevoa); }

/* ── História ── */
.band-story { background: var(--chapa); }
.timeline { margin-top: 56px; max-width: 860px; }
.timeline li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--linha); }
.timeline time { font: 600 1.15rem/1.35 var(--display); color: var(--estrutura); }
.timeline p { margin-top: 6px; color: var(--nevoa); max-width: 62ch; }
.timeline .now time, .timeline .now h3 { color: var(--ripa); }
.name { margin-top: 64px; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: var(--noite); border: 1px solid var(--linha); }
.name p { max-width: 68ch; color: var(--nevoa); }
.name strong { color: var(--papel); }
.name .equation { font: 400 clamp(1.2rem, 3.2vw, 2.2rem)/1.3 var(--display); color: var(--nevoa); margin-bottom: 20px; max-width: none; }
.equation span { color: var(--papel); }
.equation span:last-child { color: var(--mdf); font-weight: 600; }

/* ── Comprar ── */
.buy { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.included { margin-top: 28px; display: grid; gap: 10px; }
.included li { padding-left: 28px; position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--mdf); border-bottom: 2.5px solid var(--mdf); transform: rotate(-45deg); }
.buy-box { padding: 32px; border-radius: 28px; background: var(--chapa); border: 1.5px solid var(--mdf); display: grid; gap: 14px; }
.buy-box p { color: var(--nevoa); }
.buy-box .price { font: 600 1.7rem/1.2 var(--display); color: var(--papel); }

/* ── FAQ ── */
.faq { max-width: 860px; }
.faq h2 { margin-bottom: 36px; }
.faq details { border-top: 1px solid var(--linha); }
.faq details:last-child { border-bottom: 1px solid var(--linha); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.7rem/1 var(--texto); color: var(--estrutura); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--nevoa); max-width: 68ch; }

/* ── Manifesto ── */
.band-manifesto { background: var(--chapa); }
.creed { margin-top: 36px; display: grid; gap: 18px; max-width: 30em; font: 400 clamp(1.15rem, 2.1vw, 1.55rem)/1.4 var(--texto); }
.creed p:last-child { color: var(--mdf); font-weight: 600; }
.band-manifesto .actions.center { justify-content: flex-start; margin-top: 44px; }

/* ── Rodapé ── */
.foot { border-top: 1px solid var(--linha); padding-block: 44px; font-size: .95rem; color: var(--nevoa); }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 48px; }
.foot .brand { margin-bottom: 10px; }
.foot .fine { grid-column: 1 / -1; max-width: none; }

/* ── Telas menores ── */
@media (max-width: 960px) {
  .hero, .split, .buy, .foot-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .steps li, .steps li + li { padding: 22px 20px 22px 0; border-left: 0; border-top: 2px solid var(--estrutura); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .stage { --zoom: .68; }
  .video-row, .facts, .steps { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .modes button { padding: 9px 11px; }
  .radius { grid-template-columns: 1fr auto; }
  .radius input { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rot, .piece, .slat, .plate { transition: none; }
}
