/* =========================================================
   ROTTINA — Guia de primeiros passos
   DNA visual da LP oficial 07: Sora · creme #EBE3D6 · paper #F7F3ED · ink #041E1A · verde #1CA55D
   ========================================================= */

@font-face { font-family: 'Sora'; font-weight: 400; font-display: swap; src: url(../fonts/sora-400.woff) format('woff'); }
@font-face { font-family: 'Sora'; font-weight: 500; font-display: swap; src: url(../fonts/sora-500.woff) format('woff'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url(../fonts/sora-600.woff) format('woff'); }

:root {
  --cream: #ebe3d6; --paper: #f7f3ed; --ink: #041e1a;
  --green: #1ca55d; --green-hi: #34d27d; --green-lg: #138a4e; --green-ink: #0b6e3c;
  --tx-2: rgba(4, 30, 26, .72); --tx-3: rgba(4, 30, 26, .6);
  --line: rgba(4, 30, 26, .12); --line-2: rgba(4, 30, 26, .22);
  --shadow: drop-shadow(0 50px 60px rgba(4, 30, 26, .22)) drop-shadow(0 14px 22px rgba(4, 30, 26, .14));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px; --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px; --nav-h: 52px;
  --thread-x: 0px;            /* deslocamento do conteúdo dos capítulos para o fio (desktop) */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 16px); }
body { font-family: var(--font); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
::selection { background: var(--green); color: var(--ink); }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }
main, .site-footer { overflow-x: clip; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; transition: top .3s var(--ease); }
.skip-link:focus { top: 16px; }
.accent { color: var(--green-lg); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.04; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-2); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(28, 165, 93, .16); }
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line { display: block; }

/* Grão (como na LP) */
.grain { position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .08; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.02  0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 1.4 -0.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Botões (padrão "ver planos" da LP) ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 58px; padding: 0 30px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; background: var(--green); color: #02130c;
  box-shadow: 0 0 0 1px rgba(19, 138, 78, .45), 0 18px 40px -16px rgba(19, 138, 78, .55);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), transform .25s var(--ease); overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn .btn-arrow { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 34px -28px rgba(4, 30, 26, .45); }
.btn--ghost::after { display: none; }
.btn--ghost .btn-wa { color: var(--green-lg); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--green-hi); box-shadow: 0 0 0 1px rgba(19, 138, 78, .6), 0 22px 48px -14px rgba(19, 138, 78, .6); }
  .btn:hover::after { transform: translateX(120%); }
  .btn:hover .btn-arrow { transform: translateX(4px); }
  .btn--ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
  .btn--ghost:hover .btn-wa { color: var(--green-hi); transform: none; }
}
.btn:active { transform: scale(.985); }

/* ---------- Header + navegação dos passos ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.site-header.is-scrolled { background: rgba(235, 227, 214, .82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { width: 128px; flex: none; }
.brand img { width: 100%; height: auto; }

.steps-nav { height: 0; overflow: hidden; opacity: 0; transition: height .5s var(--ease), opacity .4s var(--ease); }
.site-header.show-steps .steps-nav { height: var(--nav-h); opacity: 1; }
.steps-nav .container { position: relative; height: var(--nav-h); display: flex; align-items: center; }
.steps-nav__current { display: none; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.steps-nav__current #nav-n { color: var(--green-ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.steps-nav__list { display: flex; gap: 4px; width: 100%; }
.steps-nav__list li { flex: 1; }
.steps-nav__list a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--tx-3); white-space: nowrap; transition: color .3s, background .3s; }
.steps-nav__list a span { font-size: 11px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.steps-nav__list a:hover { color: var(--ink); background: rgba(4, 30, 26, .05); }
.steps-nav__list a.is-done { color: var(--tx-2); }
.steps-nav__list a.is-done span { color: var(--green-ink); }
.steps-nav__list a.is-active { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.steps-nav__list a.is-active span { color: var(--green-ink); }
.steps-nav__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-nav__bar i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 72px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(100% / 6) 100%;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; right: -16vw; top: 46%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .2) 0%, rgba(28, 165, 93, .06) 35%, transparent 65%); filter: blur(20px); }
.hero__inner { display: grid; grid-template-columns: 1.6fr .7fr; gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { margin-top: 26px; font-size: clamp(44px, 5.4vw, 88px); letter-spacing: -.055em; line-height: .98; }
.hero__lead { margin-top: 30px; max-width: 34ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--tx-2); line-height: 1.6; }
.hero .btn { margin-top: 38px; }

/* Sumário: os seis passos (sequência real → numeração) */
.toc ol { counter-reset: none; border-top: 1px solid var(--line-2); }
.toc li { border-bottom: 1px solid var(--line-2); }
.toc a { display: flex; align-items: center; gap: 18px; padding: 15px 4px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); transition: color .3s, padding .4s var(--ease); }
.toc__n { width: 30px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--green-ink); font-variant-numeric: tabular-nums; }
.toc a::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; transform: rotate(135deg); opacity: .35; transition: opacity .3s, transform .4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .toc a:hover { padding-left: 12px; color: var(--green-ink); } .toc a:hover::after { opacity: 1; transform: rotate(135deg) translate(2px, -2px); } }

/* ---------- Guia: fio da jornada ---------- */
.guide { position: relative; }
.thread { display: none; }

.chapter { position: relative; padding: clamp(90px, 12vw, 170px) 0 clamp(40px, 6vw, 80px); }
.chapter__head { position: relative; max-width: 760px; margin-bottom: clamp(48px, 6vw, 84px); }
.chapter__node { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 14px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  color: var(--green-ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease); }
.chapter.is-reached .chapter__node { background: var(--green); color: #02130c; box-shadow: 0 0 0 6px rgba(28, 165, 93, .16), 0 12px 30px -10px rgba(19, 138, 78, .6); }
.chapter__label { margin-top: 26px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--green-ink); }
.chapter h2 { margin-top: 10px; font-size: clamp(36px, 5vw, 72px); letter-spacing: -.05em; max-width: 16ch; }
.chapter__lead { margin-top: 22px; max-width: 46ch; font-size: clamp(16px, 1.25vw, 19px); color: var(--tx-2); line-height: 1.65; }

/* Momento (mídia + legenda) */
.beat { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.beat + .beat, .note + .beat, .flow + .beat { margin-top: clamp(72px, 9vw, 130px); }
.beat--flip { grid-template-columns: .75fr 1.45fr; }
.beat--flip .beat__media { order: 2; }
.beat--tablet { grid-template-columns: 1fr 1fr; }
.beat--tablet.beat--flip { grid-template-columns: 1fr 1fr; }
.beat--card { grid-template-columns: 1.2fr .8fr; }
.beat--card.beat--flip { grid-template-columns: .8fr 1.2fr; }
.beat--solo { grid-template-columns: 1fr; }
.beat--solo .beat__media { max-width: 1040px; }
.beat__media { position: relative; display: flex; justify-content: center; perspective: 1600px; }
.beat__media::before { content: ''; position: absolute; z-index: -1; inset: 10% 6%; border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .14), transparent 65%); filter: blur(30px); }
.beat__text h3 { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.035em; line-height: 1.15; }
.beat__text p { margin-top: 14px; max-width: 34ch; font-size: 16.5px; color: var(--tx-2); line-height: 1.65; }

/* Bloco leve só de texto (sem captura) */
.note { display: flex; align-items: flex-start; gap: 18px; max-width: 560px; padding: 24px 26px; border-radius: 22px; background: rgba(247, 243, 237, .7); box-shadow: inset 0 0 0 1px var(--line); }
.note__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green-ink); background: rgba(28, 165, 93, .12); }
.note__icon svg { width: 22px; height: 22px; }
.note h3 { font-size: 19px; letter-spacing: -.03em; }
.note p { margin-top: 6px; color: var(--tx-2); font-size: 15.5px; }

/* ---------- Molduras (a mídia define a proporção; nada é esticado) ---------- */
.frame { position: relative; width: 100%; transform-style: preserve-3d; }
/* sombras: box-shadow nas molduras retangulares (mais leve que filter ao animar); drop-shadow só no tablet, como na LP */
.frame--tablet { filter: var(--shadow); }
.frame img { width: 100%; height: auto; }
.frame--browser { border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px rgba(4, 30, 26, .1), 0 50px 80px -40px rgba(4, 30, 26, .38), 0 14px 26px -14px rgba(4, 30, 26, .2); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; background: #efe9df; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(4, 30, 26, .16); }
.frame--tablet { max-width: 440px; container-type: inline-size; }
.frame__bezel { padding: 3.6cqw; border-radius: 6.4cqw; background: linear-gradient(150deg, #282d2b 0%, #101312 30%, #0a0c0b 65%, #1b1f1d 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 2px rgba(0, 0, 0, .9); }
.frame__bezel img { border-radius: 2.6cqw; }
.frame--card img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(4, 30, 26, .08), 0 44px 70px -36px rgba(4, 30, 26, .38), 0 12px 24px -12px rgba(4, 30, 26, .18); }

/* ---------- Fluxo da pendência (usa os status reais do Plano de ação) ---------- */
.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; }
.flow__chip { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.flow__chip--no { background: #c8102e; color: #fff; box-shadow: none; }
.flow__chip--ok { background: rgba(28, 165, 93, .14); color: var(--green-ink); box-shadow: inset 0 0 0 1px rgba(19, 138, 78, .35); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--grey { background: #9aa3a0; } .dot--orange { background: #f39200; } .dot--green { background: var(--green); }
.flow__arrow { position: relative; width: clamp(22px, 4vw, 48px); height: 2px; margin: 0 8px; background: var(--line-2); }
.flow__arrow::after { content: ''; position: absolute; right: -1px; top: 50%; width: 7px; height: 7px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }

/* ---------- Encerramento ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(120px, 16vw, 220px) 0; }
.closing__glow { position: absolute; z-index: -1; left: 50%; top: 55%; width: min(1000px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .22), rgba(28, 165, 93, .05) 42%, transparent 66%); }
.closing h2 { margin: 0 auto; max-width: 12ch; font-size: clamp(44px, 7vw, 108px); letter-spacing: -.06em; line-height: .96; }
.closing p { margin: 26px auto 0; max-width: 40ch; color: var(--tx-2); font-size: clamp(16px, 1.3vw, 19px); }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 30px; padding-top: 34px; padding-bottom: 40px; font-size: 13px; color: var(--tx-3); }
.footer-inner img { width: 110px; height: auto; }
.footer-inner nav { display: flex; gap: 22px; }
.footer-inner nav a:hover { color: var(--ink); }

/* =========================================================
   MOTION (só com JS ativo e sem movimento reduzido)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .line { transform: translateY(110%); transition: transform 1.15s var(--ease); }
  html.js .hero .line-mask + .line-mask .line { transition-delay: .12s; }
  html.js .hero [data-intro] { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  html.js .hero .toc li { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  html.js.is-ready .hero .line, html.js.is-ready .hero [data-intro], html.js.is-ready .hero .toc li { opacity: 1; transform: none; }
  html.js.is-ready .hero .eyebrow { transition-delay: .05s; }
  html.js.is-ready .hero .hero__lead { transition-delay: .35s; }
  html.js.is-ready .hero .btn[data-intro] { transition-delay: .48s; }
  html.js.is-ready .hero .toc li:nth-child(1) { transition-delay: .45s; } html.js.is-ready .hero .toc li:nth-child(2) { transition-delay: .52s; }
  html.js.is-ready .hero .toc li:nth-child(3) { transition-delay: .59s; } html.js.is-ready .hero .toc li:nth-child(4) { transition-delay: .66s; }
  html.js.is-ready .hero .toc li:nth-child(5) { transition-delay: .73s; } html.js.is-ready .hero .toc li:nth-child(6) { transition-delay: .80s; }

  html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
  html.js [data-reveal] { transition: opacity .9s var(--ease), transform 1s var(--ease); }

  /* Molduras assentam na composição (inclinação → plano), como os devices da LP */
  html.js [data-frame]:not(.is-in) { opacity: 0; transform: translateY(56px) rotateX(12deg) scale(.95); }
  html.js [data-frame] { transition: opacity 1s var(--ease), transform 1.3s var(--ease); }
  html.js .frame--card:not(.is-in) { transform: translateY(40px) rotate(-1.5deg) scale(.96); }

  /* Fluxo: cada status acende em sequência */
  html.js [data-flow] .flow__chip, html.js [data-flow] .flow__arrow { opacity: .18; transition: opacity .6s var(--ease), transform .6s var(--ease); }
  html.js [data-flow] .flow__chip { transform: translateY(8px); }
  html.js [data-flow].is-in .flow__chip, html.js [data-flow].is-in .flow__arrow { opacity: 1; transform: none; }
  html.js [data-flow].is-in li:nth-child(2) { transition-delay: .25s; } html.js [data-flow].is-in li:nth-child(3) { transition-delay: .4s; }
  html.js [data-flow].is-in li:nth-child(4) { transition-delay: .65s; } html.js [data-flow].is-in li:nth-child(5) { transition-delay: .8s; }
  html.js [data-flow].is-in li:nth-child(6) { transition-delay: 1.05s; } html.js [data-flow].is-in li:nth-child(7) { transition-delay: 1.2s; }
}

/* =========================================================
   DESKTOP LARGO: fio vertical da jornada à esquerda
   ========================================================= */
@media (min-width: 1100px) {
  :root { --thread-x: 84px; }
  .chapter .container { padding-left: calc(var(--gutter) + var(--thread-x)); }
  /* centro do marcador (48px) exatamente sobre o fio: fio a 20px do início do container */
  .chapter__node { position: absolute; left: calc(var(--thread-x) * -1 + 20px - 24px); top: 0; }
  .chapter__label { margin-top: 12px; }
  .thread { display: block; position: absolute; top: clamp(90px, 12vw, 170px); bottom: 0; width: 2px; border-radius: 2px; background: var(--line-2);
    left: calc(max(0px, (100% - var(--container) - var(--gutter) * 2) / 2) + var(--gutter) + 20px - 1px); }
  .thread i { position: absolute; inset: 0; background: linear-gradient(var(--green), var(--green-lg)); transform-origin: top; transform: scaleY(var(--p, 0)); border-radius: 2px; }
}

/* =========================================================
   TABLET E CELULAR
   ========================================================= */
@media (max-width: 1099px) {
  .steps-nav__list a { padding: 0 9px; font-size: 12.5px; }
}
@media (max-width: 960px) {
  .steps-nav__list { display: none; }
  .steps-nav__current { display: block; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 56px); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .beat, .beat--flip, .beat--tablet, .beat--tablet.beat--flip, .beat--card, .beat--card.beat--flip { grid-template-columns: 1fr; gap: 30px; }
  .beat--flip .beat__media { order: 0; }
  .beat__text { order: -1; }                         /* legenda antes da imagem: lê, depois vê */
  .beat__text p { max-width: 52ch; }
  .frame--tablet { max-width: min(400px, 82vw); }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; --nav-h: 46px; }
  .brand { width: 108px; }
  .site-header .btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
  .hero .btn { width: 100%; }
  .toc a { font-size: 16px; padding: 14px 2px; }
  .frame--browser { border-radius: 12px; }
  .frame__bar { height: 24px; gap: 5px; padding: 0 11px; }
  .frame__bar i { width: 7px; height: 7px; }
  .frame--card img { border-radius: 12px; }
  .flow__chip { height: 36px; padding: 0 13px; font-size: 13px; }
  .flow__arrow { width: 18px; margin: 0 6px; }
  .closing__ctas { flex-direction: column; align-items: stretch; }
  .closing__ctas .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ---------- Ampliar captura (toque/clique) ---------- */
.frame img { cursor: zoom-in; }
.frame__zoom { position: absolute; z-index: 3; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(4, 30, 26, .78); color: var(--paper); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(4, 30, 26, .5); transition: transform .3s var(--ease), background .3s; }
.frame__zoom svg { width: 18px; height: 18px; }
.frame--tablet .frame__zoom { right: calc(3.6cqw + 10px); bottom: calc(3.6cqw + 10px); }
@media (hover: hover) and (pointer: fine) { .frame__zoom { opacity: 0; } .frame:hover .frame__zoom, .frame__zoom:focus-visible { opacity: 1; } .frame__zoom:hover { background: var(--ink); transform: scale(1.06); } }
.zoom { margin: auto; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 0; background: transparent; overflow: auto; overscroll-behavior: contain; }
.zoom::backdrop { background: rgba(4, 30, 26, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.zoom[open] { display: grid; place-items: center; }
.zoom__img { max-width: min(96vw, 1440px); max-height: 92vh; max-height: 92dvh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); cursor: zoom-out; }
.zoom__close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.zoom__close svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  /* no celular a captura ampliada ocupa a largura toda e pode ser rolada/pinçada */
  .zoom[open] { place-items: start center; }
  .zoom__img { max-width: none; width: 100vw; max-height: none; border-radius: 0; margin: auto 0; }
  .zoom__img.is-wide { width: 200vw; }
}

/* Fluxo da pendência em coluna no celular (linha do tempo) */
@media (max-width: 600px) {
  .flow { flex-direction: column; align-items: flex-start; gap: 0; }
  .flow__arrow { width: 2px; height: 16px; margin: 4px 0 4px 20px; }
  .flow__arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
}


/* =========================================================
   RODADA 2 — componentes da narrativa em 7 capítulos
   ========================================================= */

/* Abertura: atalhos por perfil (mesma página) */
.roles { margin-top: 40px; }
.roles__title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--tx-2); }
.roles__list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.role { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 26px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: -.015em;
  background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 34px -28px rgba(4, 30, 26, .45);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease); }
.role .btn-arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.role:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .role:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); } .role:hover .btn-arrow { transform: translateX(4px); } }

/* Espaçamento entre blocos dos capítulos */
.beat + .diagram, .diagram + .beat, .track + .beat, .beat + .bridge, .record + .beat, .beat + .aside, .team + .beat { margin-top: clamp(64px, 8vw, 110px); }
.beat + .chapter__end, .beat--solo + .chapter__end { margin-top: clamp(48px, 6vw, 80px); }

/* 02 · Equipe: dois passos curtos */
.team { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0 18px; max-width: 980px; }
.team__step { max-width: none; }
/* alvo do atalho Gestor: compensa o deslocamento da animação de entrada (22px) e deixa respiro abaixo do header */
#gestor { scroll-margin-top: 24px; }
.team__arrow { position: relative; align-self: center; width: 44px; height: 2px; background: var(--line-2); }
.team__arrow::after { content: ''; position: absolute; right: -1px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }

/* Diagrama de caminhos: [início] → divide → caminhos → reencontram → [fim] */
.diagram { display: grid; grid-template-columns: minmax(0, 1fr) 56px auto; align-items: center; max-width: 1160px; }
.diagram--fork { grid-template-columns: auto 56px minmax(0, 1fr) 56px auto; }
.diagram__rows { display: grid; grid-auto-rows: 1fr; gap: 18px; }
.diagram__line { align-self: stretch; width: 100%; height: 100%; overflow: visible; }
.diagram__line path { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.diagram__node { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; text-align: center;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 34px -26px rgba(4, 30, 26, .45); }
.diagram__node--start { background: var(--ink); color: var(--paper); box-shadow: 0 18px 34px -22px rgba(4, 30, 26, .6); }
.diagram__node--strong { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--green), 0 18px 40px -22px rgba(19, 138, 78, .55); }
.diagram__node--ok { background: var(--green); color: #02130c; box-shadow: 0 0 0 6px rgba(28, 165, 93, .16), 0 18px 40px -16px rgba(19, 138, 78, .6); }
.diagram__ok { display: inline-flex; align-items: center; gap: 8px; }
.diagram__ok svg { width: 18px; height: 18px; }
.diagram__q { font-size: 16px; }

.path { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px 22px; border-radius: 22px; background: rgba(247, 243, 237, .8); box-shadow: inset 0 0 0 1px var(--line); }
.path--alt { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; }
.path--alt::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1.5px dashed var(--line-2); pointer-events: none; }
.path--alt { box-shadow: none; }
.path__tag { align-self: flex-start; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-2); background: rgba(4, 30, 26, .06); }
.path__tag--rec { color: #02130c; background: var(--green); }
.path__tag--a, .path__tag--b { color: var(--green-ink); background: rgba(28, 165, 93, .12); }
.path__body { display: flex; align-items: flex-start; gap: 14px; }
.path__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--green-ink); background: rgba(28, 165, 93, .12); }
.path__icon svg { width: 20px; height: 20px; }
.path h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.25; }
.path p { margin-top: 4px; font-size: 15px; color: var(--tx-2); line-height: 1.55; }
.path__title { margin-top: -2px; }
.path .flow { gap: 8px 0; }
.path .flow__chip { height: 36px; padding: 0 14px; font-size: 13.5px; }
.path .flow__arrow { width: clamp(16px, 2vw, 28px); margin: 0 6px; }
.flow__chip--soft { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--tx-2); font-weight: 500; }
.flow--alt .flow__chip { background: transparent; color: var(--tx-2); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); }

/* 03 · nota final dos acessos */
.aside { display: flex; align-items: center; gap: 12px; max-width: 640px; font-size: 16px; color: var(--tx-2); }
.aside__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(28, 165, 93, .15); }

/* 05 · trilha da execução */
.track { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 10px; max-width: 1080px; padding-top: 4px; }
.track::before { content: ''; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 13px; height: 2px; background: var(--line-2); }
.track::after { content: ''; position: absolute; left: calc(100% / 14); top: 13px; height: 2px; width: calc(100% - 100% / 7); background: var(--green); transform-origin: left; transform: scaleX(var(--tp, 1)); }
.track__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.track__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--green), 0 0 0 5px var(--cream); }
.track__step--alert .track__dot { background: #c8102e; box-shadow: 0 0 0 5px var(--cream); }
.track__label { font-size: 14px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.track__step--alert .track__label { color: #b0122c; }

/* 05 → 06 · ponte */
.bridge { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }
.bridge__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--green-ink); }
.bridge__link svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .bridge__link:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* 07 · o que fica registrado */
.record { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.record li { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.01em; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.record li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #02130c; background: var(--green); }
.record li span svg { width: 13px; height: 13px; }
.chapter__end { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; max-width: 24ch; }

/* Encerramento: um CTA principal */
.btn--lg { height: 64px; padding: 0 36px; font-size: 16px; }

/* ---------- Motion dos componentes novos ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-diagram] .diagram__line path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease); }
  html.js [data-diagram] .diagram__line--join path { transition-delay: .55s; }
  html.js [data-diagram] .path, html.js [data-diagram] .diagram__node { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
  html.js [data-diagram] .diagram__node--start { transition-delay: 0s; }
  html.js [data-diagram] .path:nth-child(1) { transition-delay: .2s; }
  html.js [data-diagram] .path:nth-child(2) { transition-delay: .34s; }
  html.js [data-diagram] .diagram__node--end { transition-delay: .9s; }
  html.js [data-diagram].is-in .diagram__line path { stroke-dashoffset: 0; }
  html.js [data-diagram].is-in .path, html.js [data-diagram].is-in .diagram__node { opacity: 1; transform: none; }

  html.js [data-track]::after { transition: transform 1.6s var(--ease); }
  html.js [data-track]:not(.is-in) { --tp: 0; }
  html.js [data-track] .track__step { opacity: .25; transition: opacity .5s var(--ease); }
  html.js [data-track].is-in .track__step { opacity: 1; }
  html.js [data-track].is-in .track__step:nth-child(2) { transition-delay: .2s; } html.js [data-track].is-in .track__step:nth-child(3) { transition-delay: .4s; }
  html.js [data-track].is-in .track__step:nth-child(4) { transition-delay: .6s; } html.js [data-track].is-in .track__step:nth-child(5) { transition-delay: .85s; }
  html.js [data-track].is-in .track__step:nth-child(6) { transition-delay: 1.05s; } html.js [data-track].is-in .track__step:nth-child(7) { transition-delay: 1.3s; }
}

/* ---------- Componentes novos no tablet/celular ---------- */
@media (max-width: 960px) {
  .hero__copy .roles { margin-top: 34px; }
  .team { grid-template-columns: 1fr; gap: 0; }
  .team__arrow { justify-self: start; width: 2px; height: 28px; margin: 8px 0 8px 41px; }
  .team__arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }

  /* Diagrama vira coluna: início ↓ caminhos ↓ fim */
  .diagram, .diagram--fork { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .diagram__line { display: none; }
  .diagram__rows { gap: 14px; grid-auto-rows: auto; }
  .diagram__node { align-self: center; }
  .diagram__node--start::after, .diagram__rows::after { content: none; }
  .diagram--fork .diagram__node--start { margin-bottom: 34px; position: relative; }
  .diagram__node--end { margin-top: 34px; position: relative; }
  .diagram--fork .diagram__node--start::before, .diagram__node--end::before { content: ''; position: absolute; left: 50%; width: 2px; height: 22px; background: var(--green); transform: translateX(-50%); }
  .diagram--fork .diagram__node--start::before { top: calc(100% + 6px); }
  .diagram__node--end::before { bottom: calc(100% + 6px); }

  .track { grid-template-columns: 1fr; gap: 14px; padding-left: 4px; }
  .track::before, .track::after { left: 13px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .track::after { transform-origin: top; transform: scaleY(var(--tp, 1)); }
  .track__step { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .track__label { font-size: 15px; }
}
@media (max-width: 600px) {
  .roles__list { flex-direction: column; }
  .role { justify-content: space-between; width: 100%; }
  .path { padding: 18px; }
  .path .flow { flex-direction: column; align-items: flex-start; }
  .path .flow__arrow { width: 2px; height: 12px; margin: 3px 0 3px 18px; }
  .path .flow__arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .bridge .flow { flex-direction: row; align-items: center; }
  .bridge .flow__arrow { width: 22px; height: 2px; margin: 0 8px; }
  .bridge .flow__arrow::after { left: auto; right: -1px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
  .record li { height: auto; min-height: 38px; padding: 8px 14px 8px 10px; font-size: 13.5px; }
  .btn--lg { width: 100%; }
}


/* =========================================================
   IMPRESSÃO / PDF — guia linear e limpo
   ========================================================= */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  :root { --gutter: 0px; }
  html, body { background: #fff !important; color: var(--ink); scroll-behavior: auto; }
  body { font-size: 11.5pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  *, *::before, *::after { animation: none !important; transition: none !important; }

  /* fora da impressão: fixos, navegação, motion e decoração */
  .site-header, .skip-link, .grain, .thread, .hero__bg, .closing__glow, .beat__media::before,
  .roles, .toc, .frame__zoom, .zoom, .bridge__link, .closing__ctas, .site-footer nav { display: none !important; }

  /* tudo visível, sem estados de animação */
  [data-reveal], [data-frame], [data-flow], [data-diagram], [data-track], .hero .line, .hero [data-intro],
  [data-diagram] .path, [data-diagram] .diagram__node, [data-track] .track__step { opacity: 1 !important; transform: none !important; }
  [data-diagram] .diagram__line path { stroke-dashoffset: 0 !important; }
  .track::after { transform: none !important; }

  .container { max-width: none; padding: 0; }
  .hero { min-height: 0; padding: 0 0 10mm; display: block; border-bottom: 1px solid var(--line-2); }
  .hero__inner { display: block; }
  .hero h1 { font-size: 34pt; margin-top: 4mm; }
  .hero__lead { font-size: 13pt; margin-top: 4mm; }

  /* capítulos em sequência, cada um começando em página nova */
  .chapter { padding: 0; break-before: page; }
  .chapter .container { padding-left: 0 !important; }
  .chapter__head { margin-bottom: 8mm; max-width: none; }
  .chapter__node { position: static !important; width: auto; height: auto; padding: 1.5mm 3mm; border-radius: 99px; background: var(--green) !important; color: #02130c !important; box-shadow: none !important; font-size: 10pt; }
  .chapter__label { margin-top: 3mm; }
  .chapter h2 { font-size: 24pt; max-width: none; }
  .chapter__lead { font-size: 11.5pt; max-width: none; }

  /* legenda + captura juntas, nunca separadas por quebra de página */
  .beat, .beat--flip, .beat--tablet, .beat--card, .beat--solo { display: flex !important; flex-direction: column; break-inside: avoid; page-break-inside: avoid; margin-top: 8mm !important; }
  .beat__text { order: -1; }                 /* legenda antes da captura, como no celular */
  .beat { align-items: stretch !important; }  /* sem isso a moldura do tablet (container-type) colapsa a 0px na coluna */
  .beat .beat__media { order: 0 !important; }
  #primeiro-acesso { break-before: auto; margin-top: 10mm; }   /* abertura e capítulo 01 na mesma página */
  .beat__text { margin-bottom: 4mm; }
  .beat__text h3 { font-size: 14pt; }
  .beat__text p { font-size: 11pt; max-width: none; }
  .beat__media { display: block; perspective: none; }
  .frame { filter: none !important; box-shadow: none !important; margin: 0 auto; }
  .frame--browser { box-shadow: 0 0 0 1px var(--line-2) !important; max-height: 150mm; }
  .frame--browser img { max-height: 140mm; width: auto; max-width: 100%; margin: 0 auto; }
  .frame--tablet { max-width: 72mm; filter: none !important; }
  .frame--card { max-width: 150mm; }
  .frame--card img { box-shadow: 0 0 0 1px var(--line-2) !important; }

  .team, .diagram, .diagram--fork, .track, .record, .bridge, .aside, .note { break-inside: avoid; page-break-inside: avoid; margin-top: 6mm !important; }
  .team { grid-template-columns: 1fr auto 1fr; }
  .diagram__node, .path, .note, .record li { box-shadow: inset 0 0 0 1px var(--line-2) !important; }
  .diagram__node--ok { background: var(--green) !important; }
  .diagram__node--start { background: var(--ink) !important; }
  .chapter__end { margin-top: 6mm; font-size: 15pt; }

  .closing { padding: 12mm 0 0; break-before: page; text-align: left; }
  .closing h2 { font-size: 28pt; max-width: none; margin: 0; }
  .closing p { margin: 4mm 0 0; max-width: none; }
  .closing__inner::after { content: 'Acesse: app.rottina.com.br'; display: block; margin-top: 6mm; font-weight: 600; color: var(--green-ink); }
  .site-footer { border-top: 1px solid var(--line-2); margin-top: 10mm; }
  .footer-inner { padding: 4mm 0 0; }
}


/* Seta + etapa agrupadas: numa quebra de linha, a seta acompanha a etapa (nunca fica solta) */
.flow__step { display: inline-flex; align-items: center; }
.flow__step .flow__arrow { display: inline-block; flex: none; }
.flow__step .flow__chip { flex: none; }
@media (max-width: 600px) {
  .path .flow__step { flex-direction: column; align-items: flex-start; }
  .bridge .flow__step { flex-direction: row; align-items: center; }
}

/* Movimento reduzido: tudo visível, sem animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
}
