/* Conferência Amplitude 2027 — identidade: Anton + IBM Plex Mono, 5 cores do KV */
:root {
  --cobalto: #1F3FB8;
  --mostarda: #E8A92B;
  --tijolo: #D9522A;
  --areia: #F0E8D8;
  --grafite: #16171B;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 12vw, 168px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grafite); color: var(--grafite);
  font: 400 clamp(15px, 1.15vw, 17px)/1.65 var(--mono);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mostarda); outline-offset: 3px; }
::selection { background: var(--mostarda); color: var(--grafite); }

.wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 16px; background: var(--mostarda); color: var(--grafite); }
.skip:focus { top: 16px; }
section { padding-block: var(--sec); position: relative; }

/* Tipografia */
.h-xl, .h-lg, .mega, .day h3, .sp b, .rows b, .stats b, .plan h3, .lots b, .hotels b {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .95; letter-spacing: .005em;
}
.h-xl { font-size: clamp(44px, 7.4vw, 112px); text-wrap: balance; }
.h-lg { font-size: clamp(30px, 4vw, 56px); line-height: 1; text-wrap: balance; }
.mega { font-size: clamp(64px, 14.6vw, 232px); line-height: .88; }
.eyebrow, .label, .meta-row, .note, .ficha dt {
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { color: var(--tijolo); padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid currentColor; }
.lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.55; max-width: 46ch; }
.center { text-align: center; margin-inline: auto; }
.note { opacity: .6; margin-top: 32px; }
.split { display: grid; gap: clamp(24px, 5vw, 80px); grid-template-columns: 1.25fr 1fr; align-items: end; }
.split p + p { margin-top: 1.2em; }

/* Elementos do KV como máscara: herdam a cor do texto */
.mk { display: block; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.mk-logo { -webkit-mask-image: url("assets/logo.svg"); mask-image: url("assets/logo.svg"); aspect-ratio: 1581 / 653; }
.mk-logo-onda { -webkit-mask-image: url("assets/logo-onda.svg"); mask-image: url("assets/logo-onda.svg"); aspect-ratio: 1313 / 890; }
.mk-lideranca { -webkit-mask-image: url("assets/w-lideranca.svg"); mask-image: url("assets/w-lideranca.svg"); aspect-ratio: 1508 / 829; }
.mk-voluntariado { -webkit-mask-image: url("assets/w-voluntariado.svg"); mask-image: url("assets/w-voluntariado.svg"); aspect-ratio: 1689 / 583; }
.mk-visao { -webkit-mask-image: url("assets/w-visao.svg"); mask-image: url("assets/w-visao.svg"); aspect-ratio: 1141 / 853; }
.mk-inscricoes { -webkit-mask-image: url("assets/w-inscricoes.svg"); mask-image: url("assets/w-inscricoes.svg"); aspect-ratio: 1387 / 830; }
.mk-onda { -webkit-mask-image: url("assets/onda.svg"); mask-image: url("assets/onda.svg"); aspect-ratio: 1655 / 212; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 26px; background: var(--mostarda); color: var(--grafite);
  font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--mostarda); border-radius: 2px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { background: var(--areia); border-color: var(--areia); }
.btn:hover span { transform: translateX(5px); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--areia); border-color: rgba(240, 232, 216, .45); }
.btn-ghost:hover { color: var(--grafite); }
.btn-sm { padding: 11px 16px; font-size: 11px; }
.btn-lg { padding: 22px 36px; font-size: 15px; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Navegação */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--areia);
  transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.on { background: rgba(22, 23, 27, .78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-color: rgba(240, 232, 216, .12); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.nav-logo { width: 78px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.nav.on .nav-logo { opacity: 1; transform: none; }
.nav nav { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav nav a { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; opacity: .75; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }

/* Hero */
.hero { background: var(--cobalto); color: var(--areia); min-height: 100svh; padding: 84px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.hero-in { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.meta-row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(240, 232, 216, .4); }
.hero-logo { width: min(100%, 132vh); margin-inline: auto; animation: rise 1.1s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; animation: rise 1.1s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.wave { display: flex; align-items: center; gap: 4px; height: clamp(72px, 14vh, 140px); padding-inline: var(--pad); margin-top: clamp(20px, 3vh, 40px); }
.wave i { flex: 1; min-width: 0; height: calc(var(--h) * 100%); background: currentColor; border-radius: 1px; transform-origin: center; animation: pulse var(--d) ease-in-out var(--o) infinite alternate; }
@keyframes pulse { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* Ficha técnica */
.ficha { background: var(--grafite); color: var(--areia); padding-block: 0; border-bottom: 1px solid rgba(240, 232, 216, .14); }
.ficha-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.ficha-in > div { padding: 26px 20px 26px 0; }
.ficha-in > div + div { padding-left: 20px; border-left: 1px solid rgba(240, 232, 216, .14); }
.ficha dt { color: var(--mostarda); margin-bottom: 6px; }
.ficha dd { font-weight: 500; }
.ficha dd small { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.5; opacity: .7; }

/* Manifesto */
.manifesto { background: var(--grafite); color: var(--areia); }
.dict { font-size: clamp(20px, 2.2vw, 30px); }
.dict b { font-weight: 600; }
.dict i { opacity: .45; font-style: normal; }
.dict-def { max-width: 52ch; margin-top: 12px; opacity: .7; }
.manifesto .mega { color: var(--mostarda); margin-block: clamp(36px, 6vw, 88px); }
.scrub { font-size: clamp(22px, 3.1vw, 44px); line-height: 1.3; font-weight: 500; max-width: 26em; letter-spacing: -.01em; }
.scrub span { opacity: .16; transition: opacity .4s; }
.scrub span.on { opacity: 1; }

/* Sobre */
.sobre { background: var(--areia); }
.novidade {
  margin-top: clamp(56px, 8vw, 112px); background: var(--cobalto); color: var(--areia);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 32px;
  padding: clamp(28px, 5vw, 72px) clamp(24px, 5vw, 72px) 0; overflow: hidden;
}
.novidade > div { padding-bottom: clamp(28px, 5vw, 72px); }
.novidade .eyebrow { color: var(--mostarda); margin-bottom: 24px; }
.novidade p:last-child { margin-top: 20px; opacity: .85; }
.novidade img { width: min(100%, 420px); justify-self: end; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--grafite); }
.stats li { padding: 24px 16px 0 0; }
.stats b { display: block; font-size: clamp(72px, 10vw, 152px); color: var(--cobalto); }
.stats span { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }

/* Faixa de palavras */
.words { background: var(--mostarda); color: var(--grafite); overflow: hidden; padding-block: clamp(28px, 4vw, 56px); }
.words-track { display: flex; align-items: center; gap: clamp(48px, 8vw, 120px); width: max-content; padding-right: clamp(48px, 8vw, 120px); animation: slide 36s linear infinite; }
.words .mk { height: clamp(90px, 15vw, 220px); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Convidados */
.convidados { background: #fff; }
.label { margin: clamp(48px, 7vw, 96px) 0 20px; color: var(--grafite); opacity: .65; }
.speakers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp { aspect-ratio: 4 / 5; padding: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; color: var(--areia); transition: transform .5s var(--ease); }
.sp:hover { transform: translateY(-8px); }
.sp span { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.sp b { font-size: clamp(48px, 7.2vw, 116px); line-height: .88; }
.sp-a { background: var(--cobalto); }
.sp-b { background: var(--mostarda); color: var(--grafite); }
.sp-c { background: var(--tijolo); }
.rows li { display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 16px; padding: clamp(16px, 2vw, 26px) 0; border-top: 1px solid var(--grafite); transition: color .25s, padding .35s var(--ease); }
.rows li:last-child { border-bottom: 1px solid var(--grafite); }
.rows li:hover { color: var(--cobalto); padding-left: 12px; }
.rows i { font-style: normal; font-size: 12px; color: var(--tijolo); font-weight: 500; }
.rows b { font-size: clamp(28px, 4.4vw, 64px); }
.rows span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* Programação */
.prog { background: var(--areia); }
.days { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.day header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 3px solid var(--grafite); }
.day h3 { font-size: clamp(48px, 6vw, 88px); color: var(--cobalto); }
.day header p { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.tl li { display: grid; grid-template-columns: 68px 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(22, 23, 27, .18); }
.tl time { font-weight: 600; font-size: 14px; }
.tl em { font-style: normal; font-size: 12px; opacity: .55; white-space: nowrap; }
.tl small { display: inline-block; margin-left: 6px; padding: 2px 8px; background: var(--tijolo); color: var(--areia); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.tl .hl span { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; color: var(--cobalto); line-height: 1.15; }
.tl .hl small { font-family: var(--mono); }
.tl .free { display: block; text-align: center; padding: 18px 0; background: var(--mostarda); border: 0; margin-block: 10px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }

/* Investimento */
.invest { background: var(--grafite); color: var(--areia); }
.invest .eyebrow { color: var(--mostarda); }
.invest-title { color: var(--mostarda); width: min(560px, 78%); margin: 0 auto clamp(20px, 3vw, 36px); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: clamp(40px, 6vw, 72px); align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: clamp(24px, 3.4vw, 44px); border: 1px solid rgba(240, 232, 216, .22); }
.plan h3 { font-size: clamp(30px, 3.6vw, 52px); color: var(--mostarda); }
.plan-sub { font-size: 13px; opacity: .7; margin-top: 10px; }
.lots { margin: 28px 0 32px; flex: 1; }
.lots li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(240, 232, 216, .22); opacity: .55; transition: opacity .3s; }
.lots li > span { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lots small { display: block; font-size: 12px; font-weight: 400; letter-spacing: .04em; opacity: .75; margin-top: 2px; }
.lots b { font-size: clamp(36px, 4.4vw, 60px); white-space: nowrap; }
.lots li.now { opacity: 1; }
.lots li.now b { color: var(--mostarda); }
.lots li.now > span::after { content: "Lote atual"; display: table; margin-top: 8px; padding: 3px 8px; background: var(--mostarda); color: var(--grafite); font-size: 10px; vertical-align: 2px; }
.lots li.off { opacity: .3; }
.lots li.off b { text-decoration: line-through; }
.incluso { margin-top: 12px; padding: clamp(24px, 3.4vw, 44px); background: var(--cobalto); }
.incluso .label { margin: 0 0 18px; color: var(--mostarda); opacity: 1; }
.incluso ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.incluso li { font-weight: 500; padding-top: 14px; border-top: 1px solid rgba(240, 232, 216, .4); }

/* Hospedagem */
.hotel { background: var(--areia); }
.hotels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(40px, 6vw, 72px); }
.hotels li { padding: clamp(22px, 3vw, 36px); background: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.hotels b { font-size: clamp(34px, 4vw, 56px); }
.hotels span { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tijolo); }

/* FAQ */
.faq { background: #fff; }
.faq-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq .eyebrow { margin-bottom: 28px; }
details { border-top: 1px solid var(--grafite); }
details:last-child { border-bottom: 1px solid var(--grafite); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--tijolo); transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 40px 24px 0; max-width: 60ch; }

/* CTA final */
.final { background: var(--cobalto); color: var(--areia); text-align: center; overflow: hidden; padding-bottom: 0; }
.final-in { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 36px); }
.final .mk-logo-onda { width: min(300px, 56vw); color: var(--mostarda); }
.final-wave { width: 100%; margin-top: clamp(48px, 8vw, 104px); opacity: .5; }

/* Rodapé */
.foot { background: var(--grafite); color: var(--areia); padding-block: 40px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.foot-in { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; }
.foot p { opacity: .7; }
.foot-r { text-align: right; }

/* Revelação no scroll (só com JS ativo) */
.js .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.speakers .rv:nth-child(2), .stats .rv:nth-child(2), .hotels .rv:nth-child(2), .plans .rv:nth-child(2) { transition-delay: .1s; }
.speakers .rv:nth-child(3), .stats .rv:nth-child(3), .hotels .rv:nth-child(3) { transition-delay: .2s; }
.stats .rv:nth-child(4) { transition-delay: .3s; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav-logo { opacity: 1; transform: none; }
  .split, .days, .plans, .faq-in, .novidade { grid-template-columns: 1fr; }
  .split { align-items: start; }
  .ficha-in, .stats { grid-template-columns: 1fr 1fr; }
  .ficha-in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ficha-in > div:nth-child(n+3) { border-top: 1px solid rgba(240, 232, 216, .14); }
  .novidade img { width: min(70%, 300px); justify-self: center; }
  .novidade > div { padding-bottom: 8px; }
  .speakers, .hotels, .incluso ul { grid-template-columns: 1fr; }
  .sp { aspect-ratio: auto; min-height: 200px; }
  .sp b { font-size: clamp(56px, 17vw, 96px); }
  .hotels li { min-height: 150px; }
  .rows li { grid-template-columns: 32px 1fr; }
  .rows span { grid-column: 2; }
  .meta-row span:first-child { max-width: 22ch; }
  .hero-cta .btn { flex: 1 1 100%; }
  .foot-in { grid-template-columns: 1fr; gap: 20px; }
  .foot-in .mk { width: 120px; }
  .foot-r { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .scrub span { opacity: 1; }
}
