/* OSflow · site
   Conceito: a vida de uma OS. A página acompanha a OS-2026-001172 do chamado à fatura; o cabeçalho mostra o
   status avançando e a sala esfriando (28 °C → 22 °C), e o fundo vai do calor ao petróleo da barra lateral do app. */

/* Fontes do próprio app (Google Fonts, OFL), servidas localmente; variáveis, um arquivo por subconjunto */
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/figtree-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree'; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(../fonts/figtree-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* cores do app (src/app/globals.css do OSflow, convertidas de oklch) */
  --petroleo: #032733;     /* sidebar */
  --petroleo-2: #0f3845;   /* sidebar-accent */
  --noite: #021820;
  --primaria: #006575;     /* primary */
  --primaria-h: #00515e;
  --anel: #00929f;         /* ring */
  --ciano: #3bcfcf;        /* sidebar-primary */
  --ciano-claro: #67e8f9;  /* traços do logo */
  --ciano-50: #dbf2f3;     /* accent */
  --gelo: #f6fafb;         /* background */
  --texto: #081b24;        /* foreground */
  --texto-2: #52646c;      /* muted-foreground */
  --linha: rgba(3, 39, 51, .12);
  --sucesso: #007840;
  --atencao: #b45309;
  --perigo: #c51d28;
  --calor: #ff7a45;
  --noite-texto: #e3f1f3;
  --noite-texto-2: #9fbcc3;

  --f-display: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  --gut: max(20px, calc((100% - 1320px) / 2));
  --rail: clamp(150px, 15vw, 220px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --header: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--gelo);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--anel); outline-offset: 3px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--texto-2); }
.mono { font-family: var(--f-mono); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--petroleo); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  background: var(--primaria); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -10px rgba(0,101,117,.75);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: var(--primaria-h); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: .95rem; }
.btn--ghost { background: rgba(255,255,255,.4); color: var(--texto); box-shadow: inset 0 0 0 1px var(--linha); }
.btn--ghost:hover { background: rgba(255,255,255,.85); }
.btn--ciano { background: var(--ciano); color: var(--petroleo); box-shadow: 0 12px 30px -12px rgba(59,207,207,.6); }
.btn--ciano:hover { background: #63dddd; }
.btn--ghost-night { background: transparent; color: var(--noite-texto); box-shadow: inset 0 0 0 1px rgba(227,241,243,.28); }
.btn--ghost-night:hover { background: rgba(255,255,255,.07); }
.btn svg { flex: none; }

/* ---------- marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 750; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: inherit; color: var(--primaria); }

/* ---------- cabeçalho com a OS em andamento ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--gut);
  background: color-mix(in srgb, var(--gelo) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .6s, border-color .6s, color .6s;
}
.top.is-scrolled { border-bottom-color: var(--linha); }
.top__nav { justify-self: end; display: flex; align-items: center; gap: 18px; }
.top__link { text-decoration: none; font-weight: 650; font-size: .95rem; opacity: .78; }
.top__link:hover, .top__link[aria-current="page"] { opacity: 1; }
.top__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ciano); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.track {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 14px;
  border-radius: 99px; box-shadow: inset 0 0 0 1px var(--linha); background: rgba(255,255,255,.6);
  font-family: var(--f-mono); font-size: .8rem; white-space: nowrap;
  transition: background .6s, box-shadow .6s;
}
.track__num { color: var(--texto-2); transition: color .6s; }
.track__st {
  --c: #2563eb;
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 9px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 55%, #000);
  font-family: var(--f-body); font-weight: 650; font-size: .82rem;
  transition: background .5s, color .5s;
}
.track__st::before { content: ''; position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--c); transition: background .5s; }
.track__st.tick { animation: tick .45s var(--ease); }
.track__temp { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; font-variant-numeric: tabular-nums; }
.therm { position: relative; width: 8px; height: 20px; border-radius: 99px; background: rgba(3,39,51,.12); overflow: hidden; }
.therm::after {
  content: ''; position: absolute; inset: auto 0 0; height: var(--h, 90%); border-radius: inherit;
  background: var(--tc, var(--calor)); transition: height .9s var(--ease), background .9s;
}
@keyframes tick { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }

body[data-phase="frio"] .therm::after { --tc: var(--anel); }
body[data-phase="noite"] .top { background: color-mix(in srgb, var(--noite) 72%, transparent); color: var(--noite-texto); border-bottom-color: rgba(255,255,255,.06); }
body[data-phase="noite"] .track { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
body[data-phase="noite"] .track__num { color: var(--noite-texto-2); }
body[data-phase="noite"] .track__st { background: color-mix(in srgb, var(--c) 22%, var(--noite)); color: #fff; }
body[data-phase="noite"] .therm { background: rgba(255,255,255,.12); }
body[data-phase="noite"] .therm::after { --tc: var(--ciano); }
body[data-phase="noite"] .top .btn--sm { background: var(--ciano); color: var(--petroleo); box-shadow: none; }
body[data-phase="noite"] .brand b { color: var(--ciano); }

/* ---------- janela (moldura das telas desktop) ---------- */
.win {
  position: relative; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(3,39,51,.09), 0 2px 4px rgba(3,39,51,.05), 0 40px 80px -28px rgba(3,39,51,.45);
}
.win__bar {
  position: relative; height: 30px; display: flex; align-items: center; justify-content: center;
  background: #edf3f4; border-bottom: 1px solid rgba(3,39,51,.08);
}
.win__bar::before {
  content: ''; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%;
  background: #ff6159; box-shadow: 14px 0 0 #ffbd2e, 28px 0 0 #28c941; opacity: .85;
}
.win__bar span {
  font-family: var(--f-mono); font-size: 11px; color: #56676e; letter-spacing: .01em;
  padding: 3px 12px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(3,39,51,.06);
  max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.win img { width: 100%; }
.win__shot { position: relative; }

/* ---------- celular ---------- */
.phone {
  position: relative; width: 260px; padding: 3.4%;
  border-radius: 15% / 7%;
  background: linear-gradient(150deg, #1d4a57, #021820 55%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 2px 3px rgba(0,0,0,.2), 0 40px 70px -24px rgba(3,24,32,.55);
}
.phone::before {
  content: ''; position: absolute; z-index: 2; left: 50%; top: 2.4%; width: 24%; aspect-ratio: 4.4;
  transform: translateX(-50%); border-radius: 99px; background: #021820;
}
.phone img { width: 100%; border-radius: 12% / 5.6%; }

/* ---------- papel (PDF gerado pelo sistema) ---------- */
.paper {
  position: relative; background: #fff; border-radius: 6px; padding: 0;
  box-shadow: 0 0 0 1px rgba(3,39,51,.08), 0 30px 60px -24px rgba(3,39,51,.5);
}
.paper img { border-radius: 6px; }
.paper::after {
  content: 'PDF'; position: absolute; top: -10px; right: -10px; padding: 4px 9px; border-radius: 8px;
  background: var(--perigo); color: #fff; font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(197,29,40,.8);
}

/* ---------- deck: pilha 3D de telas com troca automática ---------- */
.deck {
  --dx: 5%; --dy: -6.5%; --dz: 80px;
  position: relative; display: grid; transform-style: preserve-3d;
}
.deck__card {
  grid-area: 1 / 1; transform-style: preserve-3d;
  --k: calc(min(var(--p, 0), var(--cap, 3)) * (1 + var(--spread, 0)));
  transform: translate3d(calc(var(--k) * var(--dx)), calc(var(--k) * var(--dy)), calc(var(--k) * var(--dz) * -1));
  transition: transform .9s var(--ease), opacity .6s;
  cursor: pointer;
}
.deck__card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: var(--petroleo); opacity: calc(var(--p, 0) * .08); transition: opacity .9s;
}
.deck__card[data-front] { cursor: default; }
.deck__card.is-leaving { animation: deck-leave .6s cubic-bezier(.55, 0, .8, .2) forwards; }
@keyframes deck-leave {
  to { transform: translate3d(-12%, 26%, 200px) rotateZ(-7deg); opacity: 0; }
}

.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
  position: relative; border: 0; background: transparent; cursor: pointer;
  padding: 10px 14px 14px; border-radius: 10px;
  font-family: var(--f-mono); font-size: .8rem; color: var(--texto-2);
  transition: color .3s, background .3s;
}
.tab:hover { color: var(--texto); background: rgba(3,39,51,.05); }
.tab[aria-selected="true"] { color: var(--texto); }
.tab__bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--linha); overflow: hidden; }
.tab__bar::after { content: ''; position: absolute; inset: 0; background: var(--primaria); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab__bar::after { transform: scaleX(1); }
.is-auto .tab[aria-selected="true"] .tab__bar::after { animation: fill var(--dur, 3800ms) linear forwards; }
.is-paused .tab[aria-selected="true"] .tab__bar::after { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: max(780px, 100svh);
  padding: calc(var(--header) + clamp(48px, 9vh, 110px)) var(--gut) 40px;
  display: grid; grid-template-rows: auto 1fr; align-items: start;
  background:
    radial-gradient(900px 520px at 88% 6%, rgba(255,122,69,.20), transparent 62%),
    radial-gradient(700px 500px at 60% 70%, rgba(59,207,207,.10), transparent 70%),
    linear-gradient(180deg, #fbf1ea 0%, #f5f4f1 48%, #f2f8f9 100%);
}
.hero__copy { position: relative; z-index: 3; max-width: 640px; }
.hero h1 { font-weight: inherit; }
.eyebrow { display: block; font-family: var(--f-mono); font-size: .82rem; font-weight: 400; letter-spacing: 0; color: var(--primaria); margin: 0 0 22px; }
.hero__title {
  display: block;
  font-size: clamp(3rem, 5.6vw, 6.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 800;
  margin: 0 0 28px;
}
.mark { position: relative; isolation: isolate; white-space: nowrap; }
.mark::after {
  content: ''; position: absolute; z-index: -1; left: .02em; right: .06em; bottom: .05em; height: .15em;
  border-radius: 99px; background: var(--ciano);
  transform-origin: left; animation: draw 1s .6s cubic-bezier(.7, 0, .2, 1) both;
}
@keyframes draw { from { transform: scaleX(0); } }
.hero__lede { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--texto-2); max-width: 30em; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin: 18px 0 0; font-family: var(--f-mono); font-size: .78rem; color: var(--texto-2); display: flex; align-items: center; gap: 8px; }
.hero__note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }

.hero__stage {
  position: absolute; z-index: 1;
  top: calc(var(--header) + 140px); right: -9vw; width: min(57vw, 1040px);
  perspective: 2200px; perspective-origin: 20% 30%;
  --p: 0;
}
.hero__rig {
  --rx: 20deg; --ry: -24deg; --rz: 6deg; --tx: 0; --ty: 0;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) + var(--ty) * 1deg)) rotateY(calc(var(--ry) + var(--tx) * 1deg)) rotateZ(var(--rz)) translateY(calc(var(--p) * -60px));
  animation: rig-in 1.6s var(--ease) both;
}
@keyframes rig-in { from { transform: rotateX(48deg) rotateY(-34deg) rotateZ(12deg) translateY(120px); opacity: 0; } }
.deck--hero { --dx: 5.2%; --dy: -4.6%; --dz: 90px; --spread: calc(var(--p) * 1.1); }
body:not(.is-loaded) .deck--hero .deck__card { transform: none; }
.deck--hero .deck__card { transition: transform 1.4s var(--ease), opacity .6s; }
.hero__phone {
  position: absolute; left: -7%; bottom: -16%; width: 24%; z-index: 5;
  transform: translateZ(220px) rotateZ(-3deg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.hero__tabs { position: relative; z-index: 3; margin-top: 56px; align-self: start; }

/* ---------- intro ---------- */
.intro { padding: 40px var(--gut); background: #f2f8f9; }
.intro__text {
  max-width: 920px; margin: 0 0 0 calc(var(--rail) + 40px);
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.28; letter-spacing: -.02em; color: var(--texto-2);
}
.intro__text strong { color: var(--texto); font-weight: 700; }

/* ---------- etapas (seções da OS) ---------- */
.stage {
  display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 40px;
  padding: clamp(80px, 12vh, 140px) var(--gut);
}
.stage__rail { position: relative; }
.stage__rail::before { content: ''; position: absolute; left: 6px; top: 0; bottom: -200px; width: 1px; background: linear-gradient(var(--linha), transparent); }
.stage__n, .stage__st { position: sticky; display: block; }
.stage__n {
  top: calc(var(--header) + 28px); padding-left: 22px;
  font-family: var(--f-mono); font-weight: 500; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -.06em; color: var(--primaria);
}
.stage__n::before { content: ''; position: absolute; left: 1px; top: .32em; width: 11px; height: 11px; border-radius: 50%; background: var(--c, var(--primaria)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--primaria)) 18%, transparent); }
.stage__st {
  top: calc(var(--header) + 36px + clamp(2.6rem, 4.6vw, 4.4rem)); margin-left: 22px; width: max-content; max-width: 100%;
  padding: 3px 11px; border-radius: 99px; font-size: .86rem; font-weight: 650;
  background: color-mix(in srgb, var(--c, var(--primaria)) 12%, #fff); color: color-mix(in srgb, var(--c, var(--primaria)) 55%, #000);
}

.stage__copy h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 22px; }
.stage__copy p { color: var(--texto-2); max-width: 36em; }
.stage__copy--wide { max-width: 880px; margin-bottom: clamp(36px, 6vh, 64px); }
.kw { color: var(--primaria); }
.who { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .8rem; color: var(--texto-2); margin-bottom: 18px; }
.who__dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
kbd { font-family: var(--f-mono); font-size: .85em; padding: 1px 7px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha), 0 1px 0 var(--linha); color: var(--texto); }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px; background: var(--ciano-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23006575' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }

/* 01 — a tela "pousa" na mesa com o scroll */
.stage--aberta { background: linear-gradient(#f2f8f9, var(--gelo)); }
.land { perspective: 2000px; --p: 1; }
.land__win {
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--p)) * 34deg)) translateY(calc((1 - var(--p)) * 90px)) scale(calc(.9 + var(--p) * .1));
}
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  transform: translate(calc(-1 * var(--ax, 50%)), calc(-100% - 20px)); white-space: nowrap;
  font-family: var(--f-mono); font-size: .76rem; color: #fff; background: var(--petroleo);
  padding: 7px 11px; border-radius: 9px; box-shadow: 0 12px 24px -10px rgba(2,24,32,.6);
  opacity: clamp(0, calc((var(--p) - .82) * 7), 1); transition: opacity .3s;
}
.pin b { color: var(--ciano); font-weight: 600; margin-right: 4px; }
.pin::before { content: ''; position: absolute; left: var(--ax, 50%); bottom: -9px; width: 2px; height: 9px; translate: -50% 0; background: var(--ring-c, var(--anel)); }
.pin::after {
  content: ''; position: absolute; left: var(--ax, 50%); bottom: -33px; width: 44px; height: 24px; translate: -50% 0; rotate: -4deg;
  border: 2px solid var(--ring-c, var(--anel)); border-radius: 50%;
}
.pin--warm { --ring-c: var(--calor); }
.pin--warm b { color: #ffb38f; }
.pin--l { --ax: 18%; }
.pin--r { --ax: 82%; }

/* 02 — orçamento: deck + PDF */
.stage--orcamento { background: linear-gradient(var(--gelo), #eef5f6); }
.orc { position: relative; perspective: 2000px; padding: 4% 0 10%; }
.deck--orc { --cap: 2.5; --dx: 3%; --dy: -6%; --dz: 70px; transform: rotateX(8deg) rotateY(-14deg) rotateZ(1.5deg); }
.orc__paper { position: absolute; z-index: 4; right: -2%; bottom: -2%; width: 30%; transform: rotate(4deg); }
.orc__tabs { margin-top: 20px; }

/* 03 — dois celulares que se sobrepõem com o scroll */
.stage--aprovada { background: linear-gradient(#eef5f6, #f4f8f9); }
.phones { position: relative; height: 640px; --p: 1; }
.phones .phone { position: absolute; }
.phones__back { width: 240px; left: 4%; top: 60px; transform: rotate(-7deg) translateY(calc((1 - var(--p)) * -40px)); opacity: .96; }
.phones__front { width: 280px; left: 40%; top: 0; transform: translateY(calc((1 - var(--p)) * 160px)) rotate(calc(3deg - var(--p) * 3deg)); }
.tag {
  position: absolute; z-index: 3; font-family: var(--f-mono); font-size: .78rem; white-space: nowrap;
  padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--texto);
  box-shadow: 0 0 0 1px var(--linha), 0 14px 30px -14px rgba(3,39,51,.4);
  transform: translateY(calc((1 - var(--p)) * 60px)); opacity: clamp(0, calc((var(--p) - .45) * 4), 1);
}
.tag--a { right: 0; top: -34px; color: var(--sucesso); }
.tag--b { left: 0; top: 570px; }
.tag--b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); margin-right: 8px; }

/* interlúdio — seis perfis; os status correm atrás do cartão */
.recess { position: relative; overflow: hidden; padding: clamp(90px, 14vh, 150px) var(--gut); background: #e8f0f2; display: grid; place-items: center; }
.recess__rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 20px 0; opacity: .95; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip-s {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font-weight: 650; font-size: 1rem; padding: 12px 20px; border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 55%, #000);
}
.chip-s::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip-s small { font-family: var(--f-mono); font-weight: 400; font-size: .78rem; }
.recess__card {
  position: relative; z-index: 2; width: min(700px, 100%);
  background: #fff; border-radius: 22px; padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 0 0 1px var(--linha), 0 40px 90px -30px rgba(3,39,51,.45);
}
.recess__kick { font-family: var(--f-mono); font-size: .8rem; color: var(--texto-2); padding: 6px 12px; border-radius: 8px; background: #eef4f5; display: inline-block; }
.recess__card h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 14px; }
.recess__card > p { color: var(--texto-2); }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin-top: 20px; }
.roles li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--linha); font-size: .94rem; color: var(--texto-2); }
.roles li::before { content: ''; grid-row: span 2; align-self: center; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.roles b { color: var(--texto); font-weight: 700; }

/* 04 — agenda */
.stage--agendada { background: linear-gradient(#f4f8f9, #e9f2f4); }
.ag__stage { perspective: 2000px; padding: 6% 0 2%; }
.deck--ag { --cap: 2.5; --dx: 3%; --dy: -6%; --dz: 70px; transform: rotateX(10deg) rotateY(-16deg) rotateZ(2deg); }

/* 05 — app do técnico (o fundo esfria) */
.stage--execucao {
  color: var(--noite-texto);
  padding-top: clamp(200px, 30vh, 320px);
  background:
    radial-gradient(900px 300px at 70% 0%, rgba(103,232,249,.22), transparent 70%),
    linear-gradient(#e9f2f4 0, #9fd3db 90px, #2c7c8a 200px, var(--petroleo) 340px, var(--petroleo) 100%);
}
.stage--execucao .stage__copy p, .stage--execucao .who { color: var(--noite-texto-2); }
.stage--execucao .stage__n { color: var(--ciano); }
.stage--execucao .stage__rail::before { background: linear-gradient(rgba(255,255,255,.14), transparent); }
.stage--execucao .stage__st { background: color-mix(in srgb, var(--c) 30%, var(--petroleo)); color: #fff; }
.stage--execucao .kw { color: var(--ciano); }

.flow { position: relative; outline: none; }
.flow__stage { position: relative; height: clamp(500px, 50vw, 620px); perspective: 1500px; touch-action: pan-y; user-select: none; }
.flow__item {
  position: absolute; left: 50%; top: 0; width: clamp(210px, 21vw, 270px);
  transform: translateX(-50%) translateX(calc(var(--o, 0) * 70%)) translateZ(calc(var(--a, 0) * -200px)) rotateY(calc(var(--o, 0) * -30deg));
  transition: transform .8s var(--ease), opacity .6s, filter .6s;
  opacity: var(--op, 1); filter: brightness(calc(1 - var(--a, 0) * .22));
  cursor: pointer;
}
.flow__item .phone { width: 100%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 50px 80px -30px rgba(0,0,0,.7); }
.flow__item.is-active { cursor: grab; }
.flow__bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.flow__caption { margin: 0; min-width: min(380px, 60vw); text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; color: #fff; }
.flow__btn { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem; transition: background .2s; }
.flow__btn:hover { background: rgba(255,255,255,.16); }
.flow__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.flow__dot { position: relative; width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.18); cursor: pointer; overflow: hidden; }
.flow__dot::before { content: ''; position: absolute; inset: -10px 0; }
.flow__dot::after { content: ''; position: absolute; inset: 0; background: var(--ciano); transform: scaleX(0); transform-origin: left; }
.flow__dot[aria-current="true"]::after { transform: scaleX(1); }
.flow.is-auto .flow__dot[aria-current="true"]::after { animation: fill 4200ms linear forwards; }
.flow.is-paused .flow__dot[aria-current="true"]::after { animation-play-state: paused; }

/* simulador: casa de máquinas sem sinal */
.sim {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  margin-top: clamp(70px, 11vh, 120px); padding: clamp(24px, 3.5vw, 40px); border-radius: 24px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
}
.sim h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; color: #fff; }
.sim__copy p { color: var(--noite-texto-2); margin: 0; }
.sim__app { background: #fff; color: var(--texto); border-radius: 20px; padding: 18px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); }
.sim__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sim__net {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  font-size: .85rem; font-weight: 650; background: #dcf7e8; color: #0f6b3d; transition: background .3s, color .3s;
}
.sim__net::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sim.is-off .sim__net { background: #fdecd3; color: #8f4d00; }
.sim__toggle {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--texto-2);
}
.sim__toggle span { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #d7e2e5; transition: background .25s; }
.sim__toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.sim__toggle[aria-pressed="true"] span { background: var(--atencao); }
.sim__toggle[aria-pressed="true"] span::after { transform: translateX(18px); }
.sim__acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sim__act {
  min-height: 46px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 650; font-size: .88rem;
  background: #eef5f6; color: var(--petroleo); box-shadow: inset 0 0 0 1px var(--linha); transition: background .2s, transform .15s;
}
.sim__act:hover { background: var(--ciano-50); }
.sim__act:active { transform: scale(.97); }
.sim__act[disabled] { opacity: .45; cursor: default; }
.sim__queue { margin-top: 14px; border-radius: 14px; background: #f4f8f9; padding: 12px 14px; min-height: 132px; }
.sim__count { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .88rem; font-weight: 650; margin-bottom: 8px; }
.sim__count b { font-family: var(--f-mono); font-weight: 500; color: var(--texto-2); font-size: .78rem; }
.sim__list { display: grid; gap: 6px; }
.sim__list li {
  display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 9px; background: #fff;
  box-shadow: 0 0 0 1px var(--linha); font-size: .84rem; animation: pop .35s var(--ease);
}
.sim__list li span { font-family: var(--f-mono); font-size: .74rem; color: var(--texto-2); }
.sim__list li.is-wait span { color: var(--atencao); }
.sim__list li.is-ok span { color: var(--sucesso); }
.sim__list li.is-out { animation: out .4s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes out { to { opacity: 0; transform: translateX(16px); } }
.sim__empty { font-size: .84rem; color: var(--texto-2); margin: 0; }

/* 06 — concluída: linha do tempo */
.stage--concluida { background: var(--petroleo); color: var(--noite-texto); border-top: 1px solid rgba(255,255,255,.04); }
.stage--concluida .stage__copy p, .stage--concluida .who { color: var(--noite-texto-2); }
.stage--concluida .stage__n, .stage--faturada .stage__n { color: var(--ciano); }
.stage--concluida .stage__rail::before, .stage--faturada .stage__rail::before { background: linear-gradient(rgba(255,255,255,.14), transparent); }
.stage--concluida .stage__st, .stage--faturada .stage__st { background: color-mix(in srgb, var(--c) 30%, var(--petroleo)); color: #fff; }
.stage--concluida .kw, .stage--faturada .kw { color: var(--ciano); }
.stage--concluida .win { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 90px -30px rgba(0,0,0,.75); }

/* 07 — faturada */
.stage--faturada { background: linear-gradient(var(--petroleo), #062f3c); color: var(--noite-texto); }
.stage--faturada .stage__copy p, .stage--faturada .who { color: var(--noite-texto-2); }
.fat__stage { perspective: 2000px; padding: 6% 0 2%; }
.deck--fat { --cap: 2.5; --dx: 3%; --dy: -6%; --dz: 70px; transform: rotateX(10deg) rotateY(-16deg) rotateZ(2deg); }
.stage--faturada .tab, .stage--prev .tab { color: var(--noite-texto-2); }
.stage--faturada .tab:hover, .stage--prev .tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.stage--faturada .tab[aria-selected="true"], .stage--prev .tab[aria-selected="true"] { color: #fff; }
.stage--faturada .tab__bar, .stage--prev .tab__bar { background: rgba(255,255,255,.14); }
.stage--faturada .tab__bar::after, .stage--prev .tab__bar::after { background: var(--ciano); }
.stage--faturada .win { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 90px -30px rgba(0,0,0,.75); }

.done {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(48px, 8vh, 80px);
  padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09);
  font-family: var(--f-mono); font-size: .82rem; color: var(--noite-texto-2);
}
.done ol { display: flex; flex-wrap: wrap; gap: 6px; }
.done li { display: inline-flex; align-items: center; gap: 6px; }
.done li + li::before { content: '→'; opacity: .5; margin-right: 2px; }
.done strong { color: #fff; font-weight: 600; }

/* claro de novo: módulos que não são uma etapa */
.feature { padding: clamp(90px, 13vh, 150px) var(--gut); }
.feature__head { max-width: 880px; margin-bottom: clamp(40px, 7vh, 72px); }
.feature__head h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 20px; }
.feature__head p { color: var(--texto-2); max-width: 40em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-family: var(--f-mono); font-size: .8rem; color: var(--texto-2); }
.kicker::before { content: ''; width: 22px; height: 3px; border-radius: 99px; background: var(--ciano); }

/* preventivas e PMOC */
.stage--prev { background: linear-gradient(#062f3c, var(--petroleo)); color: var(--noite-texto); border-top: 1px solid rgba(255,255,255,.05); }
.stage--prev .feature__head p, .stage--prev .kicker { color: var(--noite-texto-2); }
.stage--prev .kw { color: var(--ciano); }
.prev { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.prev__stage { perspective: 2000px; }
.deck--prev { --cap: 2.5; --dx: 3%; --dy: -5%; --dz: 60px; transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg); }
.prev__side { display: grid; gap: 22px; justify-items: center; }
.prev__side .paper { width: min(100%, 300px); transform: rotate(-3deg); }
.prev__law { margin: 0; font-size: .92rem; color: var(--noite-texto-2); text-align: center; max-width: 22em; }
.prev__law strong { color: #fff; }
.prev__tabs { margin-top: 26px; }

/* painel com zoom leve e claro/escuro */
.stage--painel { background: linear-gradient(var(--petroleo) 0, #2c7c8a 120px, #cfe6ea 300px, #eef5f6 100%); padding-top: clamp(150px, 22vh, 230px); }
.zoom { position: relative; --p: 0; }
.zoom__grid { display: grid; grid-template-columns: minmax(280px, 430px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.zoom__copy h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 18px; }
.zoom__copy p { color: var(--texto-2); }
.zoom__frame { position: relative; }
.zoom__clip { overflow: hidden; position: relative; }
.zoom__clip img { transform-origin: 46% 26%; transform: scale(calc(1 + var(--p) * .14)); will-change: transform; transition: opacity .5s; }
.zoom__clip .zoom__dark { position: absolute; inset: 0; opacity: 0; }
.zoom__frame.is-dark .zoom__dark { opacity: 1; }
.zoom__frame.is-dark .win__bar { background: #0b1920; border-color: rgba(255,255,255,.06); }
.zoom__frame.is-dark .win__bar span { background: #061016; color: #9fbcc3; box-shadow: none; }
.zoom__note {
  position: absolute; left: 6%; bottom: -18px; z-index: 2;
  font-family: var(--f-mono); font-size: .78rem; padding: 9px 13px; border-radius: 10px; background: var(--petroleo); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(2,24,32,.6);
  opacity: clamp(0, calc((var(--p) - .45) * 4), 1); transform: translateY(calc((1 - var(--p)) * 20px));
}
.zoom__note::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff8a8a; margin-right: 8px; }
.theme-sw { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--linha); }
.theme-sw button { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 9px; font-size: .88rem; font-weight: 650; color: var(--texto-2); }
.theme-sw button[aria-pressed="true"] { background: var(--primaria); color: #fff; }

/* portal do cliente: leque de celulares */
.stage--portal { background: #eef5f6; }
.fan { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 20px 0 10px; }
.fan figure { position: relative; width: clamp(170px, 20vw, 250px); margin: 0 -18px; transition: transform .5s var(--ease); }
.fan figure:nth-child(1) { transform: rotate(-8deg) translateY(30px); }
.fan figure:nth-child(2) { transform: rotate(-3deg) translateY(6px); z-index: 2; }
.fan figure:nth-child(3) { transform: rotate(3deg) translateY(6px); z-index: 3; }
.fan figure:nth-child(4) { transform: rotate(8deg) translateY(30px); z-index: 2; }
.fan figure:hover { transform: translateY(-14px) rotate(0); z-index: 5; }
.fan .phone { width: 100%; }
.fan figcaption { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-mono); font-size: .76rem; color: var(--texto-2); }
.portal__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 90px; }
.portal__list li { padding: 16px 0; border-top: 1px solid var(--linha); color: var(--texto-2); }
.portal__list strong { display: block; color: var(--texto); }

/* migração do legado */
.stage--legado { background: linear-gradient(#eef5f6, #e2edf0); }
.leg { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.4fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.leg__stage { perspective: 2000px; padding: 5% 0 2%; }
.deck--leg { --cap: 2.5; --dx: 3%; --dy: -6%; --dz: 70px; transform: rotateX(9deg) rotateY(-14deg) rotateZ(1.5deg); }
.leg__tabs .tab { font-size: .76rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 26px 0 8px; }
.stats li { padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--linha); }
.stats b { display: block; font-family: var(--f-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats span { font-size: .85rem; color: var(--texto-2); }
.stats .is-bad b { color: var(--perigo); }
.stats .is-warn b { color: var(--atencao); }
.stats .is-ok b { color: var(--sucesso); }

/* o texto fica sempre por cima das pilhas inclinadas */
.stage__copy, .leg > .rv, .reg > .rv, .feature__head { position: relative; z-index: 2; }

/* tudo registrado */
.stage--registro { background: var(--gelo); }
.reg { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.reg__stage { perspective: 2000px; padding: 5% 0 2%; }
.deck--reg { --cap: 2.5; --dx: -3%; --dy: -6%; --dz: 70px; transform: rotateX(9deg) rotateY(14deg) rotateZ(-1.5deg); }
.quote {
  margin: 22px 0 0; padding: 16px 18px; border-left: 3px solid var(--ciano); border-radius: 0 12px 12px 0; background: #fff;
  box-shadow: 0 0 0 1px var(--linha); font-size: .95rem; color: var(--texto);
}
.quote b { font-weight: 700; }
.quote span { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: .74rem; color: var(--texto-2); }

/* o que vem no OSflow */
.kit { padding: clamp(80px, 12vh, 140px) var(--gut); background: var(--petroleo); color: var(--noite-texto); }
.kit > h2 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 20px; max-width: 20em; }
.kit p { color: var(--noite-texto-2); }
.kit .kw { color: var(--ciano); }
.kit__lede { max-width: 46em; margin: 0 0 48px; font-size: 1.1rem; }
.kit__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.kit__col h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.kit__col h3::before { content: ''; width: 22px; height: 5px; border-radius: 99px; background: var(--ciano); }
.kit__col li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); color: #b7cfd5; font-size: .97rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 64px; }
.facts li { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); color: var(--noite-texto-2); }
.facts strong { color: #fff; font-weight: 650; }

/* convite para o tutorial */
.guide { padding: clamp(70px, 10vh, 110px) var(--gut); background: var(--petroleo); color: var(--noite-texto); border-top: 1px solid rgba(255,255,255,.06); }
.guide__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 26px;
  background: radial-gradient(700px 300px at 100% 0%, rgba(59,207,207,.18), transparent 70%), #0a3341;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.guide h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 16px; }
.guide p { color: var(--noite-texto-2); }
.guide__list { counter-reset: g; display: grid; gap: 0; }
.guide__list li { counter-increment: g; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); }
.guide__list li::before { content: counter(g, decimal-leading-zero); font-family: var(--f-mono); font-size: .78rem; color: var(--ciano); }
.guide__list a { color: #fff; text-decoration: none; font-weight: 600; }
.guide__list a:hover { color: var(--ciano); }
.guide .btn { margin-top: 10px; }

/* perguntas frequentes */
.faq { padding: clamp(70px, 10vh, 120px) var(--gut); background: var(--petroleo); color: var(--noite-texto); border-top: 1px solid rgba(255,255,255,.06); }
.faq__inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 80px); }
.faq h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; }
.faq__intro { color: var(--noite-texto-2); margin-top: 16px; }
.faq details { border-top: 1px solid rgba(255,255,255,.1); }
.faq details:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ciano), var(--ciano)) center / 14px 2px no-repeat, linear-gradient(var(--ciano), var(--ciano)) center / 2px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { color: #b7cfd5; padding: 0 44px 22px 0; }
.faq details > div p { margin: 0 0 .7em; }
.faq a, .foot a { color: inherit; text-decoration-color: rgba(59,207,207,.6); text-underline-offset: 3px; }
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* fim: a OS faturada */
.end {
  position: relative; text-align: center; color: var(--noite-texto);
  padding: clamp(110px, 16vh, 180px) var(--gut) clamp(90px, 14vh, 150px);
  background: linear-gradient(var(--petroleo), var(--noite));
}
.end__kicker { font-family: var(--f-mono); color: var(--noite-texto-2); margin: 0; }
.end__temp {
  font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(6rem, 21vw, 17rem); line-height: .9; letter-spacing: -.06em; margin: 6px 0 10px; color: #fff;
}
.end__temp sup { font-size: .32em; vertical-align: .95em; letter-spacing: 0; color: var(--ciano); margin-left: .04em; }
.end__title { font-size: clamp(1.8rem, 3.8vw, 3.2rem); letter-spacing: -.035em; line-height: 1.05; margin-bottom: 18px; }
.end__lede { color: var(--noite-texto-2); max-width: 34em; margin: 0 auto 34px; }
.end__cta { justify-content: center; }

/* ---------- WhatsApp ---------- */
.wa-ico { flex: none; }
.btn--wa { background: #25d366; color: #0b2a17; box-shadow: 0 12px 30px -12px rgba(37,211,102,.55); }
.btn--wa:hover { background: #3ee07a; }
.end__talk { margin: 30px 0 0; color: var(--noite-texto-2); }
.end__talk a { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; color: var(--ciano); font-weight: 650; text-decoration: underline; text-decoration-color: rgba(59,207,207,.4); text-underline-offset: 4px; }
.end__talk a:hover { text-decoration-color: currentColor; }
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px 0 15px; border-radius: 99px; background: #25d366; color: #0b2a17; font-weight: 650; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.wa-fab:hover { background: #3ee07a; }
.js .wa-fab:not(.is-on) { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }

/* ---------- rodapé ---------- */
.foot { padding: clamp(56px, 8vh, 84px) var(--gut) 32px; background: var(--noite); color: #86a3aa; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.06); }
.foot p { margin: 0; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.foot__about { display: grid; gap: 16px; max-width: 30em; }
.brand--foot { color: var(--noite-texto); font-size: 1.15rem; }
.brand--foot img { width: 30px; height: 30px; }
.brand--foot b { color: var(--ciano); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot__nav a { text-decoration: none; color: #c2d8dd; }
.foot__nav a:hover { color: #fff; }
.maker { justify-self: end; width: min(100%, 480px); padding: 26px; border-radius: 20px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.foot .maker__kicker { margin-bottom: 14px; font-family: var(--f-mono); font-size: .78rem; }
.maker__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.maker__logo .maker__a { width: 40px; height: auto; }
.maker__logo .maker__word { width: 150px; height: auto; }
.foot .maker__name { margin: 14px 0 4px; color: var(--noite-texto); font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; }
.foot .maker__desc { margin-bottom: 12px; }
.maker__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.foot .maker__list a { color: var(--noite-texto); text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.foot .maker__list a:hover { color: var(--ciano); }
.maker__list span:last-child { color: var(--noite-texto); text-align: right; }
.maker__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.maker__cta .btn { flex: 1 1 auto; min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: .95rem; }
.foot .maker__cta .btn--wa { color: #0b2a17; }
.foot .maker__cta .btn--ghost-night { color: var(--noite-texto); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; }

/* ---------- ampliar tela (lightbox) ---------- */
[data-zoom] { cursor: zoom-in; }
.lb {
  width: min(1500px, 96vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden;
}
.lb::backdrop { background: rgba(2,24,32,.82); backdrop-filter: blur(4px); }
.lb img { width: 100%; height: auto; max-height: calc(94vh - 52px); object-fit: contain; background: #f2f6f7; }
.lb--phone { width: auto; }
.lb--phone img { width: auto; max-width: 92vw; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 10px 0 18px; font-size: .92rem; color: var(--texto-2); }
.lb__bar p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__close { flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; background: #eef4f5; cursor: pointer; font-size: 1.2rem; }

/* ---------- revelação no scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .kit__col.rv:nth-child(2) { transition-delay: .08s; }
  .js .kit__col.rv:nth-child(3) { transition-delay: .16s; }
  .js .kit__col.rv:nth-child(4) { transition-delay: .24s; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero__copy { max-width: 720px; }
  .hero__stage { position: relative; top: auto; right: auto; width: min(100%, 860px); margin: 70px auto 0; justify-self: center; }
  .hero__tabs { margin-top: 70px; }
  .split, .faq__inner, .sim, .prev, .leg, .reg, .guide__card, .zoom__grid { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .phones { max-width: 560px; }
  .kit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prev__side { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .prev__side .paper { width: 200px; }
  .prev__law { text-align: left; }
  .portal__list { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --header: 60px; }
  .top { grid-template-columns: auto 1fr auto; gap: 10px; }
  .track { justify-self: center; height: 36px; padding: 0 4px 0 6px; gap: 6px; font-size: .74rem; }
  .track__num, .top__link { display: none; }
  .track__st { font-size: .76rem; padding: 2px 8px; }
  .track__temp { padding-right: 6px; }
  .top .brand span { display: none; }
  .stage { grid-template-columns: 1fr; gap: 18px; }
  .stage__rail { display: flex; align-items: center; gap: 12px; }
  .stage__rail::before { display: none; }
  .stage__n, .stage__st { position: static; }
  .stage__n { font-size: 2.2rem; padding-left: 22px; }
  .stage__st { margin: 0; }
  .stage__n::before { top: .32em; }
  .intro__text { margin-left: 0; }
  .hero__phone { width: 26%; left: -2%; }
  .phones { height: 560px; }
  .phones__back { width: 200px; left: 0; }
  .phones__front { width: 240px; left: auto; right: 0; }
  .tag--a { left: auto; right: 4%; top: -20px; }
  .tag--b { left: 6%; top: auto; bottom: 30px; }
  .pin { font-size: .64rem; padding: 5px 8px; }
  .pin::after { width: 34px; height: 18px; bottom: -27px; }
  .stage--execucao { padding-top: 170px; }
  .flow__item { width: 200px; transform: translateX(-50%) translateX(calc(var(--o, 0) * 62%)) translateZ(calc(var(--a, 0) * -220px)) rotateY(calc(var(--o, 0) * -34deg)); }
  .flow__stage { height: 470px; }
  .facts { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; gap: 36px; }
  .maker { justify-self: stretch; width: auto; }
  .wa-fab { right: 14px; bottom: 14px; width: 56px; padding: 0; justify-content: center; }
  .wa-fab span { display: none; }
  .roles { grid-template-columns: 1fr; }
  .fan figure { margin: 0 -30px; }
  .fan figure:nth-child(1), .fan figure:nth-child(4) { display: none; }
  .orc__paper { width: 34%; right: 0; }
}

@media (max-width: 520px) {
  .kit__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .win__bar { height: 22px; }
  .win__bar::before { width: 6px; height: 6px; margin-top: -3px; left: 8px; box-shadow: 9px 0 0 #ffbd2e, 18px 0 0 #28c941; }
  .win__bar span { font-size: 9px; padding: 2px 8px; }
  .phones { height: 500px; }
  .phones__back { width: 170px; }
  .phones__front { width: 215px; }
  .tab { padding: 8px 10px 12px; font-size: .74rem; }
  .tab__bar { left: 10px; right: 10px; }
  .sim__acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats b { font-size: 1.5rem; }
  .prev__side { grid-template-columns: 1fr; justify-items: center; }
  .prev__law { text-align: center; }
  .pin { display: none; }
  .fan figure { width: 46%; margin: 0 -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .zoom__note { opacity: 1; transform: none; }
}

/* =====================================================================
   TUTORIAL (tutorial.html): guia em capítulos, com índice fixo
   ===================================================================== */
.page-doc { background: var(--gelo); }
.page-doc .top { grid-template-columns: auto 1fr auto; background: color-mix(in srgb, var(--gelo) 86%, transparent); border-bottom-color: var(--linha); }
.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; background: var(--ciano); transform-origin: left; transform: scaleX(var(--read, 0)); }

.doc-hero {
  padding: calc(var(--header) + clamp(40px, 7vh, 80px)) var(--gut) clamp(40px, 6vh, 64px);
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(59,207,207,.18), transparent 65%),
    linear-gradient(#eaf4f5, var(--gelo));
  border-bottom: 1px solid var(--linha);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: .78rem; color: var(--texto-2); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primaria); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.doc-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.045em; font-weight: 800; max-width: 15em; margin-bottom: 20px; }
.doc-hero__lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--texto-2); max-width: 44em; }
.doc-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-family: var(--f-mono); font-size: .8rem; color: var(--texto-2); }
.doc-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.doc-hero__meta span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); }
.doc-hero .hero__cta { margin-top: 28px; }

.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); padding: clamp(40px, 6vh, 70px) var(--gut) clamp(80px, 12vh, 120px); }
.toc { position: sticky; top: calc(var(--header) + 24px); align-self: start; max-height: calc(100vh - var(--header) - 48px); overflow: auto; padding-right: 8px; }
.toc__title { font-family: var(--f-mono); font-size: .76rem; color: var(--texto-2); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.toc ol { counter-reset: t; display: grid; gap: 2px; }
.toc > ol > li { counter-increment: t; }
.toc ol a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 9px; text-decoration: none; font-size: .93rem; color: var(--texto-2); line-height: 1.3; transition: background .2s, color .2s; }
.toc > ol > li > a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: .74rem; padding-top: .15em; color: var(--anel); }
.toc ol a:hover { background: #fff; color: var(--texto); }
.toc ol a[aria-current="true"] { background: #fff; color: var(--texto); font-weight: 650; box-shadow: 0 0 0 1px var(--linha); }
.toc ol ol { margin: 2px 0 6px 28px; display: none; }
.toc li.is-open > ol { display: grid; }
.toc ol ol a { font-size: .86rem; padding: 5px 10px; }
.toc__cta { margin-top: 22px; padding: 16px; border-radius: 14px; background: var(--petroleo); color: var(--noite-texto); font-size: .9rem; }
.toc__cta p { margin: 0 0 10px; color: var(--noite-texto-2); }
.toc__cta .btn { width: 100%; min-height: 42px; font-size: .9rem; }
.toc-mobile { display: none; }

.article { min-width: 0; max-width: 900px; }
.chapter { padding-bottom: clamp(48px, 8vh, 80px); margin-bottom: clamp(48px, 8vh, 80px); border-bottom: 1px solid var(--linha); }
.chapter:last-child { border-bottom: 0; }
.chapter__n { font-family: var(--f-mono); font-size: .8rem; color: var(--anel); margin: 0 0 8px; }
.chapter > h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.06; margin-bottom: 16px; }
.chapter > p, .step__body > p, .article li { color: #2d434c; }
.article h3 { font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 10px; }
.article h4 { font-family: var(--f-display); font-size: 1.05rem; margin: 22px 0 8px; }
.article a:not(.btn) { color: var(--primaria); text-underline-offset: 3px; }
.article strong { font-weight: 700; color: var(--texto); }
.article code { font-family: var(--f-mono); font-size: .86em; padding: 1px 6px; border-radius: 6px; background: #e8f1f2; }

.lead { font-size: 1.12rem; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin-top: 44px; }
.step__num {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--petroleo); color: var(--ciano); font-family: var(--f-mono); font-weight: 600; font-size: .95rem;
}
.step__body { min-width: 0; }
.step__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.step__head h3 { margin: 0; }
.role {
  --c: var(--primaria);
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 11%, #fff); color: color-mix(in srgb, var(--c) 55%, #000);
  font-size: .78rem; font-weight: 650;
}
.role::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
.role--admin { --c: #0f3845; }
.role--coord { --c: #7c3aed; }
.role--atend { --c: #2563eb; }
.role--tec { --c: #0e9fb0; }
.role--fin { --c: #059669; }
.role--cli { --c: #d97706; }
.st-chip {
  --c: #2563eb;
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 99px; white-space: nowrap;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 55%, #000); font-size: .82em; font-weight: 650;
}
.st-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.do { counter-reset: d; display: grid; gap: 8px; margin: 14px 0 0; }
.do > li { counter-increment: d; position: relative; padding-left: 34px; }
.do > li::before {
  content: counter(d); position: absolute; left: 0; top: .12em; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--ciano-50); color: var(--primaria); font-family: var(--f-mono); font-size: .74rem; font-weight: 600;
}
.bul { display: grid; gap: 6px; margin: 12px 0 0; }
.bul li { position: relative; padding-left: 20px; }
.bul li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--anel); }

.shot { margin: 22px 0 0; }
.shot figcaption { margin-top: 10px; font-size: .86rem; color: var(--texto-2); }
.shot figcaption b { color: var(--texto); font-weight: 650; }
.shot .win { box-shadow: 0 0 0 1px rgba(3,39,51,.1), 0 24px 50px -28px rgba(3,39,51,.45); }
.shot--phones { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.shot--phones figure { width: 220px; }
.shot--phones .phone { width: 100%; }
.shot--phones figcaption { text-align: left; }
.shot--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.shot--paper .paper { width: min(100%, 420px); }

.tip, .note {
  margin: 22px 0 0; padding: 14px 16px 14px 46px; border-radius: 14px; position: relative; font-size: .96rem;
  background: #fff; box-shadow: 0 0 0 1px var(--linha);
}
.tip::before, .note::before {
  content: ''; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--ciano-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9V16h7v-2.1A6 6 0 0 0 12 3zM9.5 19h5M10.5 21.5h3' fill='none' stroke='%23006575' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note { background: #fff8ec; box-shadow: 0 0 0 1px #f3dfbf; }
.note::before { background: #fdecd3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8v5M12 16.5v.5M10.3 3.9 2.6 17.5A2 2 0 0 0 4.3 20.5h15.4a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z' fill='none' stroke='%23b45309' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tip p, .note p { margin: 0; color: #2d434c; }
.tip b, .note b { color: var(--texto); }

.try {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 26px 0 0;
  padding: 16px 18px; border-radius: 14px; background: var(--petroleo); color: var(--noite-texto);
}
.try p { margin: 0; color: var(--noite-texto); font-size: .95rem; }
.try p b { color: #fff; }
.try .btn { min-height: 42px; font-size: .9rem; }

.table-wrap { overflow-x: auto; margin: 20px 0 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--linha); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--linha); vertical-align: top; }
.tbl thead th { border-top: 0; font-family: var(--f-mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--texto-2); background: #f4f8f9; }
.tbl td:first-child { white-space: nowrap; }

/* diagrama dos estados da OS */
.states { margin: 24px 0 0; padding: 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--linha); }
.states__main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.states__main .st-chip { font-size: .8rem; padding: 5px 11px; }
.states__arrow { flex: 0 0 22px; margin: 0 4px; height: 2px; background: #b9cdd2; position: relative; }
.states__arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #b9cdd2; border-right-width: 0; }
.states__side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 620px) { .states__side { grid-template-columns: 1fr; } }
.states__side div { padding: 12px 14px; border-radius: 12px; background: #f4f8f9; font-size: .88rem; color: var(--texto-2); }
.states__side .st-chip { margin-bottom: 6px; }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.next a {
  display: block; padding: 18px 20px; border-radius: 16px; text-decoration: none; background: #fff; box-shadow: 0 0 0 1px var(--linha);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.next a:hover { box-shadow: 0 0 0 2px var(--anel); transform: translateY(-2px); }
.next small { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--texto-2); }
.next b { font-family: var(--f-display); font-size: 1.08rem; color: var(--texto); }

.page-doc .end { padding-top: clamp(90px, 13vh, 140px); }

@media (max-width: 1000px) {
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 28px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--linha); }
  .toc-mobile summary { cursor: pointer; padding: 14px 16px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
  .toc-mobile summary::after { content: '▾'; color: var(--texto-2); }
  .toc-mobile ol { counter-reset: t; padding: 0 12px 12px; display: grid; gap: 2px; }
  .toc-mobile li { counter-increment: t; }
  .toc-mobile a { display: flex; gap: 10px; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--texto-2); font-size: .95rem; }
  .toc-mobile a::before { content: counter(t, decimal-leading-zero); font-family: var(--f-mono); font-size: .74rem; padding-top: .2em; color: var(--anel); }
}
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__num { width: 36px; height: 36px; border-radius: 11px; font-size: .85rem; }
  .shot--pair { grid-template-columns: 1fr; }
  .shot--phones figure { width: calc(50% - 9px); }
  .next { grid-template-columns: 1fr; }
  .page-doc .top__nav .top__link { display: none; }
}

/* pilhas inclinadas: folga do lado da borda da página (o lado mais "perto" cresce com a perspectiva) */
.orc .deck, .ag__stage .deck, .fat__stage .deck, .leg__stage .deck { width: 90%; }
.reg__stage .deck { width: 90%; margin-left: 10%; }
@media (max-width: 1100px) {
  .orc .deck, .ag__stage .deck, .fat__stage .deck, .leg__stage .deck, .reg__stage .deck { width: 94%; margin-left: 0; }
}

/* colunas de grid nunca crescem pelo conteúdo */
.stage > *, .split > *, .leg > *, .reg > *, .prev > *, .zoom__grid > *, .sim > *, .guide__card > *, .faq__inner > *, .doc > * { min-width: 0; }
.ticks--row { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); max-width: 1000px; }
.top .btn--sm { white-space: nowrap; }
.top .btn .sm { display: none; }
@media (max-width: 820px) {
  .top .btn .lg { display: none; }
  .top .btn .sm { display: inline; }
  .top .btn--sm { padding: 0 12px; font-size: .88rem; }
}
@media (max-width: 360px) {
  .track__temp { display: none; }
}
@media (max-width: 620px) {
  .tbl--perfis th:nth-child(3), .tbl--perfis td:nth-child(3) { display: none; }
}

/* desempenho: seções fora da tela não entram no cálculo de estilo e layout até chegarem perto */
body[data-cv] :is(.stage, .recess, .feature, .kit, .guide, .faq, .end, .foot) { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
