/* RioPerform · continuidade, contraste e demonstração · setembro de 2026
   Complementa styles.css e preserva as seções e a identidade da LP. */

:root {
  --pedra: #a6a09a;
  --pedra-dim: #948a81;
  --border-subtle: #302a26;
  --border-strong: #443831;
  --thread: #c87551;
  --coral-hover: #e46643;
  --t-display: clamp(2.7rem, 1.45rem + 3.6vw, 4.3rem);
}

[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body { background: #0b0b0b; }
body::after { opacity: .023; }
main { position: relative; isolation: isolate; }
main > section > .wrap { position: relative; z-index: 2; }
main > section > .wrap > * { min-width: 0; }
button, select { font: inherit; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
select:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
.btn { min-height: 44px; white-space: normal; text-align: center; }
.pular-conteudo {
  position: fixed; top: 8px; left: 16px; z-index: 150;
  padding: 12px 18px; background: var(--offwhite); color: var(--preto);
  transform: translateY(-150%); border-radius: 4px;
}
.pular-conteudo:focus { transform: none; }

/* Um mesmo campo visual atravessa as seções escuras. */
.page-atmosphere {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none; contain: paint;
  background:
    radial-gradient(ellipse 760px 720px at 100% 5%, rgba(217,79,48,.095), transparent 76%),
    radial-gradient(ellipse 720px 1150px at 0% 26%, rgba(166,78,45,.06), transparent 76%),
    radial-gradient(ellipse 800px 900px at 100% 47%, rgba(217,79,48,.07), transparent 75%);
}
.ambient-orbit {
  position: absolute; right: -380px; width: 1180px; height: 720px;
  background: url('assets/flow-lines.svg') center / contain no-repeat;
  opacity: .13; transform: rotate(-13deg);
}
.ambient-orbit:nth-child(1) { top: 10%; }
.ambient-orbit:nth-child(2) { top: 27%; left: -520px; right: auto; transform: rotate(170deg); opacity: .085; }
.ambient-orbit:nth-child(3) { top: 44%; transform: rotate(-19deg); opacity: .1; }
.bloco { background: transparent; }
.bloco::before { display: none; }
.bloco-elev { background: linear-gradient(180deg, transparent, rgba(24,21,19,.7) 20%, rgba(24,21,19,.7) 80%, transparent); }
.sec-escolha::after { display: none; }
.reading-thread {
  position: absolute; inset: 0 auto auto 0; width: 100%;
  z-index: 1; overflow: hidden; pointer-events: none;
}
.reading-thread path { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.thread-track { stroke: rgba(171,112,79,.2); }
.thread-progress { stroke: var(--thread); opacity: .65; }
.thread-point { fill: #d77e58; }
.thread-halo { fill: rgba(200,117,81,.12); }

/* As curvas derivam do movimento da marca, sem competir com o título. */
.abertura::before {
  top: -260px; left: auto; right: -340px; width: 1100px; height: 1000px;
  aspect-ratio: auto;
  background: radial-gradient(ellipse, rgba(217,79,48,.15), rgba(119,60,36,.04) 42%, transparent 68%);
  transform: translate3d(var(--light-x,0px),var(--light-y,0px),0);
  transition: transform 1s var(--ease);
}
.abertura::after {
  inset: 2% -17% auto auto; width: 88%; height: 96%;
  opacity: .29;
  background: url('assets/flow-lines.svg') center / contain no-repeat;
  mask-image: linear-gradient(90deg,transparent,#000 24%,#000 90%,transparent);
  transform: translate3d(var(--ribbon-x,0px),var(--ribbon-y,0px),0) rotate(-11deg);
  transition: transform 1.2s var(--ease);
}
.abertura-texto h1 { max-width: 14ch; }
.titulo-acento { color: #e8ac92; }
.abertura-texto .chamada { max-width: 47ch; }
.abertura-texto .micro { max-width: 47ch; color: #a89b90; font-size: .83rem; }
.figura-shell { transform: none; transform-style: flat; }
.figura-shell .figura {
  transform: none; border-color: #544034;
  background: linear-gradient(145deg,rgba(255,255,255,.025),transparent 60%), rgba(20,18,17,.96);
  box-shadow: none;
}
.figura::before { opacity: .18; }
.fig { filter: none; }
.fig .fig-hora, .fig .fig-carimbo { fill: #a79a8e; }
.figura-toolbar, .figura-foot { color: #aa9b8e; }
.conversa-legenda {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 48px; padding-inline: 2px;
  font-size: 11px; color: #9c9188;
}
.conversa-play {
  min-height: 44px; padding: 6px 0 6px 12px;
  border: 0; background: transparent; color: #d5b5a0;
  font-size: 11px; cursor: pointer;
}
.conversa-play:hover { color: var(--offwhite); }
.fig [data-dig] { opacity: 0; }
.conversa-anim .fig [data-msg] { opacity: 0; transform: translateY(5px); transition: opacity .3s, transform .3s; }
.conversa-anim .fig [data-msg].dentro { opacity: 1; transform: none; }
.conversa-anim .fig [data-dig].dentro { opacity: 1; }
.fig-dash, .scroll-cue span { animation: none; }
.scroll-cue span { opacity: .8; }
.card, .escolha-opcao { background: #11100f; }
.card::after { background: radial-gradient(ellipse at var(--x,50%) var(--y,0%),rgba(217,79,48,.065),transparent 75%); }
.escolha-quando { background: #1d1916; border-color: #3a3029; }
.sec-escolha .escolha::after { background: #161310; color: #b5a292; }
.sec-capacidades .card { min-height: 225px; }

/* A parte clara começa com uma transição suave, na mesma seção. */
.tema-claro { background: var(--claro-0); }
.sec-metodo {
  border-top: 0;
  background: radial-gradient(ellipse 820px 380px at 80% 0%,rgba(217,79,48,.045),transparent 80%), var(--claro-0);
}
.sec-metodo::before {
  display: block; top: -72px; height: 72px; z-index: 0;
  background: linear-gradient(180deg,rgba(249,249,247,0),var(--claro-0));
}
.sec-metodo::after { display: none; }
.sec-metodo .metodo-cabecalho h2 { max-width: 21ch; }
.sec-metodo .lista-indicadores li::after { display: none; }
.sec-faq {
  background: linear-gradient(180deg,var(--claro-0),#f0efea 26%,#f0efea 74%,var(--claro-0));
}
.sec-faq .pergunta summary { align-items: center; }
.sec-faq .pergunta summary::after { flex-shrink: 0; }
.pergunta-corpo { height: auto; opacity: 1; will-change: auto; }
.escolha:hover .escolha-opcao { opacity: 1; }
.passo.ativo::after { transform: scaleY(1); }
.sec-metodo .passo.ativo .passo-num { background: var(--coral); color: var(--preto); border-color: var(--coral); }
.sec-encerra::after {
  inset: 0 -10% 0 auto; width: 72%; height: 100%; border: 0; border-radius: 0;
  background: url('assets/flow-lines.svg') center / contain no-repeat;
  opacity: .14; box-shadow: none; transform: rotate(-10deg);
}
.sec-encerra h2 { max-width: 18ch; }
.rodape { background: #0b0b0b; }
.barra-fixa { padding-bottom: max(12px,env(safe-area-inset-bottom)); visibility: hidden; }
.barra-fixa.visivel { visibility: visible; }
.zap { visibility: hidden; opacity: 0; }
.zap.visivel { visibility: visible; opacity: 1; }

/* A interação usa o fluxo de cinco etapas que já existia. */
.demo-experience {
  grid-column: 1 / -1; min-width: 0; margin-top: 48px;
  border: 1px solid #524033; border-radius: 8px;
  overflow: hidden; background: #14110f;
}
.demo-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; padding: 24px 28px; border-bottom: 1px solid #372c24;
}
.demo-kicker { font: 500 10px/1.6 var(--f-mono); letter-spacing: .13em; color: #dcac8d; }
.demo-note { margin-top: 6px; max-width: 46ch; font-size: 11px; color: #aa9c90; line-height: 1.7; }
.demo-controls { flex: 0 1 460px; min-width: 410px; display: flex; align-items: flex-end; gap: 12px; }
.demo-selector { flex: 1; min-width: 0; }
.demo-controls label { display: block; margin-bottom: 6px; color: #c3b2a4; font-size: 12px; }
.demo-controls select {
  width: 100%; min-height: 46px; padding: 10px 12px;
  color: #f4e2d5; background: #241c16; border: 1px solid #70503b;
  border-radius: 4px; font-size: 14px; cursor: pointer;
}
.demo-controls option { background: #241c16; color: #f4e2d5; }
.demo-screen { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 258px; }
.demo-incoming, .demo-answer { min-width: 0; padding: 30px 32px 32px; }
.demo-incoming { background: linear-gradient(140deg,rgba(255,255,255,.018),transparent 80%); }
.demo-screen-label { font: 500 10px/1.7 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #b4a190; }
.demo-signal { display: inline-block; width: 5px; height: 5px; margin: 0 6px 1px 0; border-radius: 50%; background: #b9815d; }
.demo-incoming blockquote {
  margin: 21px 0 15px; padding: 16px 18px;
  border: 1px solid #4b3b2f; border-radius: 2px 12px 12px 12px;
  background: #211b16; color: #f1ddd0; font-size: 1.03rem; line-height: 1.6;
}
.demo-context { color: #ae9b8a; font: 400 10px/1.8 var(--f-mono); }
.demo-answer {
  border-left: 1px solid #372c24;
  background: radial-gradient(ellipse at 95% 0%,rgba(217,79,48,.09),transparent 80%);
}
.demo-answer h3 { margin-top: 21px; max-width: 30ch; font-size: clamp(1.2rem,1rem + .4vw,1.45rem); line-height: 1.4; color: #f5e9df; }
.demo-answer > p:not(.demo-screen-label) { margin-top: 12px; max-width: 48ch; font-size: .9rem; color: #c6b5a5; line-height: 1.7; }
.demo-stamp { display: inline-block; margin-top: 19px; font: 500 9px/1.6 var(--f-mono); letter-spacing: .1em; color: #dfac85; }
.sec-mecanica .demo-experience .fluxo {
  margin: 0; border: 0; border-radius: 0;
  border-top: 1px solid #372c24; border-bottom: 1px solid #372c24;
  background: #372c24; gap: 0;
}
.sec-mecanica .demo-experience .fluxo-etapa {
  padding: 24px 20px; min-height: 155px; background: #15120f;
  border-color: #372c24;
}
.sec-mecanica .demo-experience .fluxo-num { margin: 0 0 16px 14px; color: #ab9684; }
.sec-mecanica .demo-experience .fluxo-etapa p { font-size: 12px; line-height: 1.7; color: #c4b6aa; }
.sec-mecanica .demo-experience .fluxo-etapa::before { background: #372c24; opacity: 1; transform: none; }
.sec-mecanica .demo-experience .fluxo-etapa::after { left: 20px; top: 30px; opacity: 1; background: #15120f; border-color: #806247; }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='active'] { background: #2b1b12; }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='active'] p { color: #f5d9c3; }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='active']::before,
.sec-mecanica .demo-experience .fluxo-etapa[data-state='done']::before { background: var(--thread); }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='active']::after { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 4px rgba(217,79,48,.1); }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='done']::after { background: #bc8b62; border-color: #bc8b62; }
.sec-mecanica .demo-experience .fluxo-etapa[data-state='active'] .fluxo-num { color: #eaae86; }
.demo-bottom { padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.demo-playback { display: flex; align-items: center; gap: 20px; flex: 1; }
.demo-play { min-width: 178px; flex-shrink: 0; font-size: 13px; }
.demo-status { max-width: 68ch; min-height: 58px; font-size: 12px; line-height: 1.75; color: #b7a391; }
.demo-contact { flex: 0 1 210px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; color: #deb28e; font-size: 12px; line-height: 1.6; }
.demo-contact:hover { color: #f5d9c3; }
.demo-noscript { padding: 0 28px 24px; font-size: 12px; }
.revelar { opacity: 1; transform: none; }
.revelar[data-reveal-pending] { opacity: 0; transform: translateY(18px); }
.revelar.dentro { opacity: 1; transform: none; transition: opacity .65s var(--ease),transform .65s var(--ease); }

@media (max-width: 940px) {
  .abertura::after { width: 125%; right: -35%; top: 8%; opacity: .21; }
  .ambient-orbit { right: -680px; opacity: .085; }
  .ambient-orbit:nth-child(2) { left: -740px; }
  .reading-thread { opacity: .6; }
  .demo-toolbar { flex-wrap: wrap; }
  .demo-controls { flex: 1 1 100%; min-width: 0; }
  .demo-screen { min-height: 278px; }
  .demo-incoming, .demo-answer { padding: 26px 24px; }
  .sec-mecanica .demo-experience .fluxo { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .sec-mecanica .demo-experience .fluxo-etapa { min-height: 174px; padding-inline: 12px; border-bottom: 0; }
  .sec-mecanica .demo-experience .fluxo-etapa::after { left: 12px; }
  .demo-bottom { align-items: flex-start; }
  .demo-playback { flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 620px) {
  :root { --t-display: clamp(2.3rem,1.5rem + 4.8vw,3.35rem); }
  html { scroll-padding-top: 78px; }
  .abertura-texto h1 { max-width: 15ch; }
  .abertura::before { right: -540px; transform: none; }
  .abertura::after { width: 170%; right: -68%; opacity: .2; transform: rotate(-11deg); transition: none; }
  .ambient-orbit { display: none; }
  .reading-thread { opacity: .48; }
  .sec-metodo::before { top: -40px; height: 40px; }
  .sec-capacidades .card { min-height: 0; }
  .conversa-legenda { font-size: 10px; }
  .demo-experience { margin-top: 32px; }
  .demo-toolbar { align-items: stretch; flex-direction: column; gap: 18px; padding: 21px 20px; }
  .demo-controls { flex: auto; min-width: 0; flex-direction: column; align-items: stretch; }
  .demo-controls select { font-size: 16px; }
  .demo-screen { grid-template-columns: 1fr; }
  .demo-incoming, .demo-answer { padding: 24px 20px; }
  .demo-incoming blockquote { font-size: .97rem; }
  .demo-answer { border-left: 0; border-top: 1px solid #372c24; min-height: 272px; }
  .sec-mecanica .demo-experience .fluxo { grid-template-columns: 1fr; }
  .sec-mecanica .demo-experience .fluxo-etapa { min-height: 0; padding: 17px 18px; display: flex; gap: 14px; align-items: baseline; border: 0; }
  .sec-mecanica .demo-experience .fluxo-etapa + .fluxo-etapa { border-top: 1px solid #372c24; }
  .sec-mecanica .demo-experience .fluxo-etapa::before { inset: 0 auto 0 0; width: 2px; height: auto; }
  .sec-mecanica .demo-experience .fluxo-etapa::after { display: none; }
  .sec-mecanica .demo-experience .fluxo-num { margin: 0; flex: 0 0 22px; }
  .demo-bottom { flex-direction: column; gap: 12px; padding: 22px 20px; }
  .demo-playback { width: 100%; }
  .demo-play { width: 100%; min-width: 0; }
  .demo-status { max-width: none; width: 100%; min-height: 92px; }
  .demo-contact { flex: auto; width: 100%; }
  .sec-encerra::after { width: 140%; right: -55%; opacity: .15; }
  .zap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .revelar, .revelar[data-reveal-pending] { opacity: 1 !important; transform: none !important; }
  .abertura::before, .abertura::after { transform: none !important; transition: none !important; }
  .conversa-anim .fig [data-msg] { opacity: 1 !important; transform: none !important; }
  .conversa-anim .fig [data-dig] { opacity: 0 !important; }
  .thread-halo { display: none; }
}

@media print {
  .page-atmosphere, .reading-thread, .demo-controls, .demo-playback, .conversa-play { display: none !important; }
  .revelar[data-reveal-pending] { opacity: 1; transform: none; }
  .fig [data-msg] { opacity: 1 !important; transform: none !important; }
}
