/* =========================================================
   ROTTINA — LP Cinematográfica
   Design system: tokens, base, componentes, seções, motion
   Canvas creme #EBE3D6 · Paper #F7F3ED · Ink #041E1A · Verde #1CA55D
   ========================================================= */

:root {
  /* Marca */
  --ink: #041e1a;
  --ink-2: #0a2a24;
  --deep: #041e1a;
  --deep-2: #0a2a24;
  --green: #1ca55d;
  --green-hi: #34d27d;
  --green-lg: #138a4e;   /* verde para texto grande sobre creme (3,5:1) */
  --green-ink: #0b6e3c;  /* verde para texto pequeno sobre creme (5:1) */
  --green-glow: rgba(28, 165, 93, .28);
  --cream: #ebe3d6;
  --paper: #f7f3ed;

  /* Texto (sobre creme) */
  --tx-strong: #041e1a;
  --tx: #041e1a;
  --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);
  --heading: #041e1a;
  --accent: var(--green-lg);

  /* Sombras de device (tinta, nunca preto puro) */
  --device-shadow: drop-shadow(0 50px 60px rgba(4, 30, 26, .26)) drop-shadow(0 14px 22px rgba(4, 30, 26, .16));

  /* Layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(110px, 14vw, 200px);
  --radius: 22px;
  --header-h: 84px;   /* altura do header fixo: safe area das cenas sticky */

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* Tipografia */
  --font: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-hero: clamp(52px, 7.6vw, 124px);
  --fs-h2: clamp(38px, 5.4vw, 80px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-lead: clamp(16px, 1.25vw, 19px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; background: var(--cream); }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--tx);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: var(--ink); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; border-radius: 6px; }

.accent { color: var(--accent); }
.muted { color: var(--tx-2); }

.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);
}
.eyebrow.no-dot::before { display: none; }

h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; color: var(--heading); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.03em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); color: var(--tx-2); max-width: 46ch; line-height: 1.7; }

/* Linhas com máscara (reveal) */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > .line { display: block; will-change: transform; }

/* ---------- Grain (adaptado ao creme) ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: .09; 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 ---------- */
.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), transform .4s 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: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 .btn-arrow { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; color: var(--tx-strong);
  padding-bottom: 6px; position: relative;
}
.text-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: .35; transform-origin: right; transition: transform .6s var(--ease), opacity .3s;
}
.text-link:hover::after { opacity: 1; animation: underline .8s var(--ease); }
@keyframes underline { 0% { transform: scaleX(1); transform-origin: right; } 49% { transform: scaleX(0); transform-origin: right; } 50% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }
.text-link svg { width: 17px; height: 17px; transition: transform .45s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* =========================================================
   MOLDURAS — Celular e Tablet
   Regra: a moldura se adapta à mídia. Nada é esticado ou cortado.
   ========================================================= */

/* ---------- Celular ----------
   Capturas reais: 780×1686 (0,4626). Vídeos: 390×842 (0,4632).
   Tela = faixa superior (status bar, 14% da largura) + mídia exata + faixa inferior (home indicator, 6%).
   Proporção externa resultante: 1 : 2,2746. */
.phone {
  --pw: 300px;
  position: relative; width: var(--pw); aspect-ratio: 1000 / 2275; flex: none;
  filter: var(--device-shadow);
}
.phone__body {
  position: absolute; inset: 0; border-radius: calc(var(--pw) * .165);
  background: linear-gradient(145deg, #2a2f2d 0%, #121514 28%, #0a0c0b 60%, #1d211f 100%);
  padding: calc(var(--pw) * .032);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 0 0 2px rgba(0, 0, 0, .9),
    inset 0 1px 6px rgba(255, 255, 255, .1);
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #0b0d0c, #2b302e); }
.phone__btn--a { left: -2px; top: 19%; height: 5%; }
.phone__btn--b { left: -2px; top: 27%; height: 9%; }
.phone__btn--c { left: -2px; top: 38%; height: 9%; }
.phone__btn--d { right: -2px; top: 30%; height: 13%; background: linear-gradient(-90deg, #0b0d0c, #2b302e); }
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .135);
  background: var(--paper);
  box-shadow: 0 0 0 1px #000;
  isolation: isolate;
  --sb-fg: rgba(4, 30, 26, .78);
}
.phone__screen[data-tone="dark"] { --sb-fg: rgba(247, 243, 237, .85); }
.phone__island {
  position: absolute; z-index: 5; top: calc(var(--pw) * .028); left: 50%; transform: translateX(-50%);
  width: 31%; height: calc(var(--pw) * .074); border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone__island::after {
  content: ''; position: absolute; right: 14%; top: 50%; width: 9px; height: 9px; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #1d2a3a, #05080c 70%);
}
.status-bar {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: calc(var(--pw) * .131);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 11% 0 12%; font-size: calc(var(--pw) * .042); font-weight: 600; color: var(--sb-fg);
  letter-spacing: -.01em; transition: color .6s var(--ease);
}
.status-bar .sb-icons { display: flex; gap: 5px; align-items: center; }
.status-bar .sb-icons i { display: block; background: currentColor; border-radius: 2px; }
.status-bar .sb-sig { width: 15px; height: 9px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.status-bar .sb-bat { width: 20px; height: 9px; border-radius: 3px !important; opacity: .9; }

/* Camada de mídia: faixa superior + mídia + faixa inferior, com as cores reais de cada captura */
.screen-layer {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  background: var(--band, var(--paper));
  opacity: 0; transition: opacity .9s var(--ease), transform 1.2s var(--ease);
  transform: scale(1.03);
}
.phone .screen-layer { padding-top: 14%; padding-bottom: 6%; }
.phone .screen-layer::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 0; padding-bottom: 6%; background: var(--band-b, #fff); }
.screen-layer.is-active { opacity: 1; transform: scale(1); }
.screen-media { display: block; width: 100%; height: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; object-position: 50% 0; }
.screen-glare {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .02) 32%, transparent 46%);
}
.screen-glare::after {
  content: ''; position: absolute; inset: -40% -80%;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .06) 50%, transparent 56%);
  animation: sheen 9s var(--ease-io) infinite;
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.home-bar {
  position: absolute; z-index: 5; bottom: calc(var(--pw) * .018); left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px; border-radius: 99px; background: var(--sb-fg); opacity: .55;
}

/* ---------- Tablet (retrato) ----------
   Capturas reais: 1280×1708 e vídeo 1024×1366 (0,7494), inclusive a de modelos prontos.
   A tela assume a proporção exata da mídia; a moldura cresce em volta. */
.tablet {
  --tw: 500px; --ratio: 1280 / 1708;
  position: relative; width: min(var(--tw), 100%); container-type: inline-size;
  filter: var(--device-shadow);
}
.tablet--models { --ratio: 1280 / 1708; }
.tablet__body {
  position: relative; border-radius: 6.4cqw; padding: 3.6cqw;
  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);
}
.tablet__cam { position: absolute; z-index: 3; top: 1.8cqw; left: 50%; width: 1.1cqw; height: 1.1cqw; min-width: 5px; min-height: 5px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #1d2a3a, #05080c 70%); }
.tablet__screen { position: relative; aspect-ratio: var(--ratio); border-radius: 2.6cqw; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px #000; isolation: isolate; }
.tablet .screen-layer { background: var(--ink); }
/* Identificação: o bloco do PIN ocupa a parte de cima da captura, sobre fundo verde escuro.
   Zoom leve e uniforme a partir do topo: o logo e a unidade continuam inteiros e some só parte do fundo vazio. */
#op-tablet .screen-layer[data-slot="identificacao"] .screen-media { transform: scale(1.1); transform-origin: 50% 0; }

/* =========================================================
   PRELOADER + LETTERBOX (abertura cinematográfica)
   ========================================================= */
.preloader { display: none; }
html.is-loading .preloader {
  display: flex; position: fixed; inset: 0; z-index: 250;
  align-items: center; justify-content: center; flex-direction: column;
  background: var(--cream); color: var(--ink);
}
html.is-loading body { overflow: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; margin-top: -7vh; }
/* Símbolo "tt": favicon.png existente. O arquivo tem fundo branco opaco em volta do círculo;
   o clip-path apenas recorta esse branco (círculo medido: centro 49,8%/49,9%, raio 43,6%). */
.preloader__brand { width: clamp(64px, min(7vw, 11vh), 104px); opacity: 0; }
.preloader__brand img { display: block; width: 100%; height: auto; clip-path: circle(43.2% at 49.8% 49.9%); }
/* Palavras em escala de headline; limitadas também pela altura para não estourar em telas baixas */
.preloader__words { position: relative; height: 1.12em; overflow: hidden; margin-top: clamp(28px, 6vh, 64px); font-size: clamp(60px, min(20vw, 21vh), 184px); font-weight: 600; letter-spacing: -.055em; line-height: 1.12; }
.preloader__words span { display: block; transform: translateY(110%); white-space: nowrap; }
.preloader__words span:nth-child(2) { position: absolute; top: 0; left: 0; right: 0; }
.preloader__words span:nth-child(3) { position: absolute; top: 0; left: 0; right: 0; color: var(--green-lg); }
.preloader__words { text-align: center; min-width: 4.6em; }
.preloader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3);
}
.preloader__count { font-size: clamp(48px, 7vw, 96px); font-weight: 600; letter-spacing: -.05em; color: var(--ink); line-height: .9; font-variant-numeric: tabular-nums; }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }

.letterbox { position: fixed; left: 0; right: 0; z-index: 120; height: 0; background: var(--ink); pointer-events: none; }
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
html.is-loading .letterbox { height: 9vh; }

/* =========================================================
   HEADER (estrutura preservada; só contraste adaptado)
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .5s var(--ease), backdrop-filter .5s, box-shadow .5s, transform .6s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(235, 227, 214, .8);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
/* Logo oficial (igual ao app): símbolo com a bolinha verde e "rottina" em Sora 800. O tamanho segue o font-size. */
.brand { display: inline-flex; align-items: center; gap: .34em; flex: none; font-size: 22px; line-height: 1; }
.brand__symbol { display: block; width: 1.5em; height: 1.5em; border-radius: 50%; }
.brand__name { font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.desktop-nav { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(247, 243, 237, .55); box-shadow: inset 0 0 0 1px var(--line); }
.desktop-nav a { padding: 9px 18px; border-radius: 999px; font-size: 14px; color: var(--tx-2); transition: color .3s, background .3s; }
.desktop-nav a:hover { color: var(--tx-strong); background: rgba(4, 30, 26, .06); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); align-items: center; justify-content: center; }
.menu-toggle span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--ink); transition: background .3s; }
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.menu-toggle span::before { transform: translateY(-6px); }
.menu-toggle span::after { transform: translateY(6px); }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: rotate(45deg); }
.menu-open .menu-toggle span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 60px; background: rgba(235, 227, 214, .97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.mobile-menu a.mm-link { display: block; font-size: clamp(36px, 10vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.25; color: var(--ink); }
.mobile-menu a.mm-link span { color: var(--tx-3); font-size: 14px; letter-spacing: .1em; margin-right: 14px; vertical-align: middle; }
.mobile-menu .btn { margin-top: 40px; align-self: flex-start; }

/* =========================================================
   1 · ABERTURA (HERO)
   Desktop com motion: palco fixo (sticky) dentro de uma seção alta.
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero__stage { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px; right: -12vw; top: 50%;
  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__glow--2 { width: 50vw; height: 50vw; left: -20vw; right: auto; top: 85%; background: radial-gradient(circle, rgba(247, 243, 237, .9) 0%, transparent 65%); }
.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%;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero__beam {
  position: absolute; top: -20%; right: 18%; width: 2px; height: 140%;
  background: linear-gradient(to bottom, transparent, rgba(28, 165, 93, .35), transparent);
  transform: rotate(18deg); filter: blur(1px); opacity: .45;
}
.hero__vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 30%, transparent 60%, rgba(4, 30, 26, .05) 100%); }
.hero__bg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(to bottom, rgba(235, 227, 214, 0), var(--cream)); }

.hero__inner {
  flex: 1; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px;
  padding-top: 110px; padding-bottom: 50px;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title { position: relative; transform-origin: 50% 50%; will-change: transform; }
.hero h1 { font-size: var(--fs-hero); letter-spacing: -.055em; line-height: .96; margin-top: 30px; }
.hero__desc { margin-top: 34px; max-width: 24ch; font-size: clamp(19px, 1.7vw, 25px); font-weight: 500; letter-spacing: -.025em; line-height: 1.4; color: var(--tx-strong); }
.hero__detail { margin-top: 16px; max-width: 470px; color: var(--tx-2); font-size: 16px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 38px; }

.hero__visual { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; perspective: 1400px; will-change: transform; }
.hero__phone-wrap { position: relative; transform-style: preserve-3d; }
.hero__phone-wrap .phone { --pw: max(190px, min(clamp(230px, 19vw, 290px), calc((100vh - 230px) * .4396))); }
@supports (height: 100svh) { .hero__phone-wrap .phone { --pw: max(190px, min(clamp(230px, 19vw, 290px), calc((100svh - 230px) * .4396))); } }
.phone-shadow { position: absolute; left: 50%; bottom: -34px; width: 78%; height: 36px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(4, 30, 26, .32), transparent 70%); filter: blur(10px); }

.scroll-cue { position: absolute; left: 50%; bottom: 34px; width: 1px; height: 56px; transform: translateX(-50%); background: var(--line-2); overflow: hidden; display: none; }
.scroll-cue i { position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--green); animation: cue 1.8s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* Entrada da abertura (mobile e fallback): título primeiro, depois o resto */
html.has-motion .hero [data-intro="line"] { transform: translateY(110%); transition: transform 1.15s var(--ease); }
html.has-motion .hero [data-intro="line"]:nth-child(1) { transition-delay: .05s; }
html.has-motion .hero .line-mask + .line-mask [data-intro="line"] { transition-delay: .17s; }
html.has-motion .hero [data-intro="eyebrow"] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.has-motion .hero [data-hero-step] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.has-motion .hero__visual { opacity: 0; transform: translateY(50px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
html.intro-done .hero [data-intro="line"] { transform: none; }
html.intro-done .hero [data-intro="eyebrow"] { opacity: 1; transform: none; }
html.intro-done .hero [data-hero-step] { opacity: 1; transform: none; }
html.intro-done .hero [data-hero-step="1"] { transition-delay: .9s; }
html.intro-done .hero [data-hero-step="2"] { transition-delay: 1.05s; }
html.intro-done .hero [data-hero-step="3"] { transition-delay: 1.2s; }
html.intro-done .hero__visual.is-in { opacity: 1; transform: none; }

/* Cena da abertura (desktop): JS conduz título, celular e textos pelo scroll */
@media (min-width: 961px) {
  html.scene-on .hero { height: 230vh; }
  html.scene-on .hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
  html.scene-on .hero [data-hero-step],
  html.scene-on .hero__visual { transition: none; }
  html.scene-on .scroll-cue { display: block; }
}

/* =========================================================
   SEÇÕES — base
   ========================================================= */
.section { position: relative; padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; margin-bottom: clamp(60px, 8vw, 110px); }

/* Nenhum elemento decorativo pode alargar a viewport no mobile */
main, .site-footer { overflow-x: clip; }
.mobile-section { overflow: hidden; }

/* Reveal leve (somente com JS ativo) */
html.has-motion [data-reveal]:not(.is-in),
html.has-motion [data-reveal-group] > *:not(.is-in) { opacity: 0; transform: translateY(22px); }
[data-reveal], [data-reveal-group] > * { transition: opacity .9s var(--ease), transform 1s var(--ease); }

/* ---------- 2 · Padrão compartilhado (cena tipográfica) ---------- */
.shared { padding: clamp(140px, 18vw, 260px) 0; }
.shared__inner { display: grid; grid-template-columns: repeat(12, 1fr); row-gap: clamp(40px, 5vw, 70px); }
.shared__title { grid-column: 1 / span 11; font-size: clamp(42px, 6.6vw, 108px); letter-spacing: -.055em; line-height: 1; max-width: 15ch; }
.shared__title .w { display: inline-block; transition: opacity .25s linear; }
.shared__lead { grid-column: 7 / span 6; max-width: 44ch; font-size: clamp(17px, 1.35vw, 20px); padding-top: 26px; border-top: 1px solid var(--line-2); }

/* ---------- 3 · Um ponto de partida ---------- */
.start-section { padding-top: clamp(40px, 6vw, 90px); }
.start-section .tablet { --tw: clamp(270px, 28vw, 410px); }

/* ---------- Feature grids (3, 4, 5) ---------- */
.feature-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 6vw, 100px); align-items: center; }
.feature-grid--flip { grid-template-columns: 1.05fr .95fr; }
.feature-copy h2 { font-size: clamp(38px, 4.6vw, 70px); max-width: 13ch; }
.feature-copy .lead { margin-top: 28px; }

/* ---------- 4 · No tablet da casa ---------- */
.team-section { background: linear-gradient(to bottom, transparent, rgba(247, 243, 237, .55) 30%, rgba(247, 243, 237, .55) 70%, transparent); }
.team-section .tablet { --tw: clamp(300px, 34vw, 500px); }
.op-tabs { margin-top: 48px; }
.op-tablist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.op-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 0 0 18px; text-align: left; border-bottom: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--tx-3); transition: color .4s;
}
.op-tab__n { font-size: 12px; letter-spacing: .14em; font-variant-numeric: tabular-nums; color: var(--tx-3); transition: color .4s; }
.op-tab:hover { color: var(--tx-2); }
.op-tab[aria-selected="true"] { color: var(--tx-strong); }
.op-tab[aria-selected="true"] .op-tab__n { color: var(--green-ink); }
.op-tab .bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.op-tab[aria-selected="true"] .bar { transform: scaleX(var(--progress, 0)); }
.tablet-showcase { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1600px; }
.tablet-showcase .tablet { transform-style: preserve-3d; }
.showcase-glow { position: absolute; z-index: -1; inset: 8% 0; border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .16), transparent 65%); filter: blur(30px); }

/* ---------- 5 · Também pelo celular ---------- */
.mobile-section { padding-bottom: clamp(40px, 5vw, 80px); }
.mobile-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 6vw, 110px); align-items: center; }
.mobile-grid { grid-template-columns: .8fr 1.2fr; }
.mobile-grid .feature-copy h2 { max-width: none; font-size: clamp(30px, 3.2vw, 48px); }
.phone-stage { position: relative; display: flex; flex-direction: column; align-items: center; perspective: 1400px; }
.phone-stage .phone { --pw: clamp(240px, 21vw, 300px); }
.phone-stage__ring { position: absolute; top: 50%; left: 50%; width: 130%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.phone-stage__ring--2 { width: 170%; opacity: .6; }

/* ---------- Recursos (sticky preservado) ---------- */
.management-section { padding-top: 0; }
.res-tablist { display: none; }
.res-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); }
.res-list { position: relative; }
.res-item { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .28; transition: opacity .7s var(--ease); cursor: pointer; }
.res-item:first-child { min-height: 50vh; }
.res-item:last-child { min-height: 60vh; }
.res-item.is-active { opacity: 1; }
.res-item .res-index { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--green-ink); }
.res-item .res-index::after { content: ''; width: 60px; height: 1px; background: currentColor; opacity: .5; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.res-item.is-active .res-index::after { transform: scaleX(1); }
.res-item h3 { margin-top: 22px; font-size: clamp(30px, 3.2vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
.res-item p { margin-top: 18px; color: var(--tx-2); max-width: 42ch; font-size: 17px; }
.res-stage { position: relative; }
.res-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); display: flex; align-items: center; justify-content: center; }
.res-sticky .phone { --pw: max(200px, min(clamp(230px, 20vw, 300px), calc((100vh - var(--header-h) - 130px) * .4396))); }
@supports (height: 100svh) { .res-sticky .phone { --pw: max(200px, min(clamp(230px, 20vw, 300px), calc((100svh - var(--header-h) - 130px) * .4396))); } }
.res-progress { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.res-progress i { display: block; width: 2px; height: 26px; border-radius: 2px; background: var(--line-2); transition: background .5s, height .5s var(--ease); }
.res-progress i.is-active { background: var(--green); height: 46px; }
.res-label { position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-3); white-space: nowrap; }

/* ---------- 6 · Da pendência à correção ---------- */
.fix-section { background: linear-gradient(to bottom, transparent, rgba(247, 243, 237, .6) 25%, rgba(247, 243, 237, .6) 75%, transparent); }
.fix-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: clamp(60px, 7vw, 100px); }
.fix-head h2 { font-size: clamp(38px, 4.6vw, 70px); max-width: 16ch; }
.fix-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; justify-items: center; }
.fix-step .phone { --pw: clamp(190px, 17vw, 250px); }
.fix-link { position: relative; width: 100%; height: 40px; display: flex; align-items: center; padding: 0 clamp(10px, 2vw, 28px); }
.fix-link__line { position: relative; flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.fix-link__line i { position: absolute; inset: 0; background: var(--green); transform: scaleX(var(--fill, 1)); transform-origin: left; }
.fix-link__node { flex: none; width: 12px; height: 12px; margin-left: -2px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); transition: border-color .5s var(--ease); }
.fix-link.is-on .fix-link__node { border-color: var(--green); }
.fix-step { position: relative; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
html.scene-on .fix-step:not(.is-on) { opacity: .0; transform: translateY(40px) scale(.96); }

/* ---------- 6B · Perdas e desperdícios ----------
   Celular à esquerda, texto e abas à direita (mesmo componente de abas da Execução).
   No desktop com cena: entrada presa com intertítulo e o celular vindo do fundo com troca de foco. */
.loss-section { isolation: isolate; }
.loss-stage { position: relative; }
.loss-dim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 72% 68% at 50% 52%, rgba(4, 30, 26, 0) 34%, rgba(4, 30, 26, .4) 100%), rgba(4, 30, 26, .05);
}
.loss-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 6vw, 100px); align-items: center; }
.loss-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.loss-ring { position: absolute; z-index: -1; top: 46%; left: 50%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .14), transparent 62%); pointer-events: none; }
.loss-phone-wrap { position: relative; will-change: transform; }
.loss-phone-wrap .phone { --pw: clamp(240px, 21vw, 300px); }
.loss-head { position: relative; will-change: transform; }
.loss-head .eyebrow { margin-bottom: 26px; }
.loss-title { font-size: clamp(36px, 4.1vw, 60px); max-width: 15ch; }
.loss-accent { transition: color 1s var(--ease); }
.loss-title.is-green .loss-accent { color: var(--accent); }
.loss-lead { margin-top: 28px; }
.loss-tabs { margin-top: 40px; }
.loss-tabs .op-tablist { grid-template-columns: repeat(3, 1fr); }
.loss-desc { margin-top: 22px; min-height: 5.2em; }
.loss-desc p { display: none; max-width: 46ch; color: var(--tx-2); font-size: 16px; line-height: 1.6; }
.loss-desc p.is-active { display: block; animation: panelIn .6s var(--ease); }

/* Tela 02: as análises roladas pela LP, com o topo do app fixo */
.loss-scroll { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); }
.loss-scroll__top { flex: none; display: block; width: 100%; height: auto; }
.loss-scroll__view { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.loss-scroll__body { display: block; width: 100%; height: auto; max-width: none; will-change: transform; }

/* Destaque saindo da tela: um recorte da captura sai da tela e volta (posição medida no JS).
   Usado no custo das perdas, no progresso do dia, no responsável e prazo e no aviso de pendência. */
.pop-callout {
  position: absolute; z-index: 4; left: 0; top: 0; width: 0; pointer-events: none;
  border-radius: var(--pr, 12px); overflow: hidden; isolation: isolate;
  opacity: 0; transform: none; transform-origin: 50% 50%;
  box-shadow: 0 0 0 1px rgba(4, 30, 26, .08), 0 34px 60px -26px rgba(4, 30, 26, .55);
  transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.pop-callout img { display: block; width: 100%; height: auto; }
.pop-callout::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.pop-callout.is-on { opacity: 1; }
.pop-callout.is-out { transform: translate3d(var(--cx, 0px), var(--cy, 0px), 0) scale(var(--cs, 1.2)); }
.pop-callout.is-out::after { animation: pillSweep 1.1s var(--ease) .45s both; }

/* Tela 03: pulso suave no alerta e as três bolinhas da repetição */
.loss-frame { position: relative; }
.loss-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.loss-pulse { position: absolute; left: 3.85%; width: 92.3%; top: 25.2%; height: 23%; border-radius: 6.1% / 11.3%; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.loss-pulse.is-on { opacity: 1; box-shadow: inset 0 0 0 2px rgba(28, 165, 93, .75); animation: lossPulse 1.8s var(--ease-io) infinite; }
@keyframes lossPulse {
  0% { box-shadow: inset 0 0 0 2px rgba(28, 165, 93, .75), 0 0 0 0 rgba(28, 165, 93, .45); }
  70% { box-shadow: inset 0 0 0 2px rgba(28, 165, 93, .35), 0 0 0 calc(var(--pw, 300px) * .05) rgba(28, 165, 93, 0); }
  100% { box-shadow: inset 0 0 0 2px rgba(28, 165, 93, .75), 0 0 0 0 rgba(28, 165, 93, 0); }
}
.loss-dots { display: flex; gap: 8px; margin-top: 30px; opacity: 0; transition: opacity .5s var(--ease); }
.loss-dots.is-visible { opacity: 1; }
.loss-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.loss-dots i.on { background: var(--green); box-shadow: 0 0 0 4px rgba(28, 165, 93, .16); }

/* Desktop com cena: a dobra fica presa por cerca de 0,6 tela durante a entrada */
@media (min-width: 961px) {
  html.scene-on .loss-section { padding: 0; }
  html.scene-on .loss-pin { height: 160vh; height: 160svh; }
  html.scene-on .loss-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: clip; }
  html.scene-on .loss-phone-wrap .phone { --pw: max(200px, min(clamp(230px, 20vw, 300px), calc((100vh - var(--header-h) - 150px) * .4396))); }
  @supports (height: 100svh) { html.scene-on .loss-phone-wrap .phone { --pw: max(200px, min(clamp(230px, 20vw, 300px), calc((100svh - var(--header-h) - 150px) * .4396))); } }
}

/* Celular e tablet estreito: sem prender a tela; título pela máscara, texto antes do aparelho */
@media (max-width: 960px) {
  /* título e apoio, depois o celular e, logo abaixo dele, as abas: a troca de tela fica à vista */
  .loss-grid { grid-template-columns: 1fr; gap: 0; }
  .loss-copy { display: contents; }
  .loss-head { order: 1; }
  .loss-lead { order: 2; }
  .loss-visual { order: 3; margin-top: 52px; }
  .loss-tabs { order: 4; margin-top: 36px; }
  .loss-dots { margin-top: 24px; }
  .loss-phone-wrap .phone { --pw: clamp(230px, 62vw, 290px); }
  .loss-title { max-width: 16ch; }
  html.has-motion .loss-section [data-loss-line] { transform: translateY(110%); transition: transform 1.1s var(--ease); }
  html.has-motion .loss-section .line-mask:nth-child(2) [data-loss-line] { transition-delay: .14s; }
  html.has-motion .loss-section .line-mask:nth-child(3) [data-loss-line] { transition-delay: .28s; }
  html.has-motion .loss-section #loss-eyebrow,
  html.has-motion .loss-section [data-loss-step] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  html.has-motion .loss-section.is-in [data-loss-line] { transform: none; }
  html.has-motion .loss-section.is-in #loss-eyebrow { opacity: 1; transform: none; }
  html.has-motion .loss-section.is-in [data-loss-step] { opacity: 1; transform: none; transition-delay: .3s; }
}
@media (max-width: 600px) {
  .loss-tabs .op-tablist { gap: 10px; }
  .loss-tabs .op-tab { font-size: 13px; }
}

/* ---------- 7 · Outras unidades ---------- */
.scale-section { background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(28, 165, 93, .09), transparent 70%); }
.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 7vw, 120px); align-items: center; }
.scale-grid h2 { font-size: clamp(38px, 4.6vw, 70px); max-width: 14ch; }
.scale-grid .lead { margin-top: 28px; }
.scale-ladder { border-top: 1px solid var(--line-2); }
.ladder-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line-2); }
.ladder-number { font-size: clamp(40px, 4vw, 60px); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--tx-3); font-variant-numeric: tabular-nums; transition: color .6s; }
.ladder-row:hover .ladder-number, .ladder-row.is-in .ladder-number { color: var(--green-lg); }
.ladder-row h3 { font-size: 22px; }
.ladder-units { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-2); }
.unit-dots { display: flex; gap: 6px; }
.unit-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.unit-dots i.on { background: var(--green); }

/* ---------- 8 · Planos ---------- */
.pricing-heading { text-align: center; max-width: 1000px; margin: 0 auto; }
.pricing-heading h2 { font-size: clamp(34px, 4.5vw, 66px); text-wrap: balance; }
.pricing-heading p { margin: 26px auto 0; max-width: 52ch; color: var(--tx-2); font-size: var(--fs-lead); }
.billing-toggle {
  position: relative; display: flex; width: fit-content; margin: 50px auto 0; padding: 5px; border-radius: 999px;
  background: rgba(247, 243, 237, .7); box-shadow: inset 0 0 0 1px var(--line-2);
}
.billing-toggle button { position: relative; z-index: 1; height: 46px; padding: 0 30px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--tx-2); transition: color .4s; display: inline-flex; align-items: center; gap: 10px; }
.billing-toggle button[aria-selected="true"] { color: var(--paper); }
.billing-toggle { transition: box-shadow .4s var(--ease); }
.billing-toggle:hover { box-shadow: inset 0 0 0 1px rgba(19, 138, 78, .5), 0 18px 40px -20px rgba(19, 138, 78, .5); }
.billing-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--ink); transition: transform .6s var(--ease), width .6s var(--ease); overflow: hidden; }
/* mesmo brilho diagonal do botão "ver planos" (.btn::after) */
.billing-pill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.billing-toggle:hover .billing-pill::after { transform: translateX(120%); }
.billing-toggle.is-sweep .billing-pill::after { animation: pillSweep .9s var(--ease); }
@keyframes pillSweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column; padding: 38px 34px 34px; border-radius: 28px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(4, 30, 26, .3);
  transition: box-shadow .6s var(--ease);
  overflow: hidden; isolation: isolate;
}
.plan-card::after {
  content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1.1s var(--ease);
}
.plan-card:hover::after { transform: translateX(120%); }
.plan-featured::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .1) 50%, transparent 65%); }
.plan-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(28, 165, 93, .1), transparent 45%); opacity: 0; transition: opacity .5s; }
.plan-card:hover::before { opacity: 1; }
.plan-card:hover { box-shadow: inset 0 0 0 1px rgba(19, 138, 78, .45), 0 40px 70px -36px rgba(19, 138, 78, .38); }
/* Rotina: card destacado (inverte para tinta) */
.plan-featured {
  --heading: var(--paper); --tx-strong: var(--paper); --tx-2: rgba(235, 227, 214, .74); --tx-3: rgba(235, 227, 214, .6); --line: rgba(235, 227, 214, .14);
  background: radial-gradient(120% 70% at 50% 0%, rgba(28, 165, 93, .32), transparent 60%), var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 165, 93, .55), 0 40px 90px -40px rgba(4, 30, 26, .65);
  color: var(--paper);
}
.plan-featured:hover { box-shadow: inset 0 0 0 1px rgba(52, 210, 125, .8), 0 50px 100px -40px rgba(4, 30, 26, .7); }
.plan-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.unit-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--tx-2); }
.popular { padding: 6px 12px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: .06em; background: var(--green); color: #02130c; }
.plan-card h3 { margin-top: 28px; font-size: 34px; letter-spacing: -.045em; }
.plan-description { margin-top: 10px; color: var(--tx-2); font-size: 15px; min-height: 48px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 30px; overflow: hidden; }
.price .currency { font-size: 17px; font-weight: 500; color: var(--tx-2); }
.price strong { font-size: clamp(46px, 4.4vw, 62px); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--tx-strong); font-variant-numeric: tabular-nums; display: inline-block; }
.price .period { font-size: 15px; color: var(--tx-2); white-space: nowrap; }
.billing-note { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--tx-3); min-height: 1.5em; }
.billing-note.is-annual { color: var(--tx-2); font-weight: 500; }
.plan-benefits { margin: 24px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 11px; }
.plan-benefits li { display: flex; gap: 11px; font-size: 14px; color: var(--tx-2); line-height: 1.45; }
.plan-benefits svg { flex: none; width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.plan-purchase { margin-top: auto; }
.plan-purchase .btn { width: 100%; }
.plan-card:not(.plan-featured) .btn { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-card:not(.plan-featured) .btn:hover { background: var(--ink); color: var(--paper); }
.pricing-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; font-size: 15px; color: var(--tx-2); }
.plan-guarantee { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 600; color: var(--tx-strong); background: rgba(247, 243, 237, .7); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-guarantee svg { width: 18px; height: 18px; color: var(--green-ink); }

/* ---------- FAQ (accordion preservado) ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(50px, 7vw, 120px); align-items: start; }
.faq-intro { position: sticky; top: 130px; }
.faq-intro h2 { font-size: clamp(34px, 3.5vw, 52px); }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item h3 { font-size: inherit; letter-spacing: normal; line-height: inherit; }
.faq-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 0; text-align: left; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.025em; color: var(--tx-strong); transition: color .3s; }
.faq-trigger:hover { color: var(--green-ink); }
.faq-icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: background .4s, box-shadow .4s; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--green); box-shadow: none; color: #02130c; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 60px 30px 0; color: var(--tx-2); max-width: 62ch; opacity: 0; transform: translateY(-8px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.faq-item.is-open .faq-panel p { opacity: 1; transform: none; transition-delay: .1s; }

/* =========================================================
   9 · FECHAMENTO — segundo hero, sem device
   ========================================================= */
.final-section { position: relative; overflow: clip; isolation: isolate; text-align: center; }
.final-stage { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 120px 0 90px; }
.final-orb { position: absolute; z-index: -1; left: 50%; top: 60%; width: min(1100px, 130vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(28, 165, 93, .24), rgba(28, 165, 93, .06) 40%, transparent 66%); filter: blur(10px); }
.final-horizon { position: absolute; z-index: -1; left: -10%; right: -10%; top: 90%; height: 1px; background: linear-gradient(90deg, transparent, rgba(28, 165, 93, .6), transparent); }
.final-inner { position: relative; }
.final-inner .eyebrow { justify-content: center; }
.final-inner h2 { margin: 30px auto 0; max-width: 11ch; font-size: clamp(44px, min(8.6vw, 14svh), 148px); letter-spacing: -.06em; line-height: .95; }
.final-sub { margin: 38px auto 0; max-width: 520px; color: var(--tx-2); font-size: var(--fs-lead); }
.final-inner .btn { margin-top: 44px; height: 64px; padding: 0 36px; font-size: 16px; }
@media (min-width: 0px) {
  html.scene-on .final-section { height: 240vh; }
  html.scene-on .final-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--header-h) + 24px) 0 32px; align-items: safe center; }
}

/* ---------- Footer ---------- */
.site-footer { position: relative; padding: 90px 0 40px; border-top: 1px solid var(--line-2); background: var(--cream); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 24px; }
.footer-main > div p { margin-top: 22px; color: var(--tx-2); font-size: 14px; }
.footer-main nav { display: flex; flex-direction: column; gap: 12px; }
.footer-main nav > span { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-3); margin-bottom: 8px; }
.footer-main nav a { font-size: 14px; color: var(--tx-2); display: inline-flex; align-items: center; gap: 6px; transition: color .3s; width: fit-content; }
.footer-main nav a:hover { color: var(--tx-strong); }
.footer-main nav a svg { width: 14px; height: 14px; }
.footer-instagram-link { width: 46px !important; height: 46px; border-radius: 50%; justify-content: center; box-shadow: inset 0 0 0 1px var(--line-2); }
.footer-instagram-link:hover { box-shadow: inset 0 0 0 1px var(--green); color: var(--green-ink) !important; }
.footer-instagram-link svg { width: 20px !important; height: 20px !important; }
.footer-wordmark { margin: 80px auto 0; width: 100%; max-width: 1240px; user-select: none; pointer-events: none; container-type: inline-size; }
/* "rottina" em Sora 800, ocupando a largura toda (proporção medida da palavra: --wm) */
.footer-wordmark span { display: block; font-size: calc(100cqw / var(--wm, 3.42)); font-weight: 800; letter-spacing: -.025em; line-height: .78; color: var(--green); white-space: nowrap; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--tx-3); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-2); transition: color .3s; }
.footer-bottom a:hover { color: var(--tx-strong); }
.footer-bottom svg { width: 14px; height: 14px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 180; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(880px, calc(100% - 32px)); padding: 20px 24px; border-radius: 20px;
  background: rgba(247, 243, 237, .96); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -30px rgba(4, 30, 26, .45);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.cookie-banner-content { display: flex; align-items: center; gap: 24px; }
.cookie-banner-text p { font-size: 13px; line-height: 1.6; color: var(--tx-2); }
.cookie-banner-text strong { color: var(--tx-strong); }
.cookie-banner-text a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; gap: 10px; flex: none; }
.cookie-btn { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.cookie-btn-reject { color: var(--tx-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.cookie-btn-reject:hover { color: var(--tx-strong); background: rgba(4, 30, 26, .06); }
.cookie-btn-accept { background: var(--green); color: #02130c; }
.cookie-btn-accept:hover { background: var(--green-hi); }


/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1200px) {
  .op-tablist { grid-template-columns: 1fr 1fr; row-gap: 22px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .plan-card { padding: 34px 26px 28px; }
  .price strong { font-size: clamp(40px, 4vw, 52px); }
}

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; }
}

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 64px; padding-top: 128px; text-align: left; }
  .hero__visual { padding-bottom: 40px; }
  .hero__phone-wrap .phone { --pw: clamp(230px, 46vw, 290px); }

  .section-head, .fix-head { grid-template-columns: 1fr; gap: 26px; }
  .shared__title { grid-column: 1 / -1; }
  .shared__lead { grid-column: 1 / -1; }

  .feature-grid, .feature-grid--flip, .mobile-grid, .scale-grid, .faq-grid { grid-template-columns: 1fr; }
  .tablet-showcase { order: 2; }
  .phone-stage { order: -1; }
  .faq-intro { position: static; }
  .feature-copy h2, .scale-grid h2, .fix-head h2 { max-width: 18ch; }

  /* Recursos no mobile: storytelling por scroll equivalente ao desktop.
     O celular fica fixo numa faixa logo abaixo do header; os 5 textos rolam por baixo dela
     e cada um troca a tela ao cruzar o meio da janela de leitura (lógica do desktop). */
  .res-tablist { display: none; }
  .res-layout { display: flex; flex-direction: column; }
  /* a faixa cobre desde o topo da tela: com o header recolhido, o texto que sobe não aparece acima do celular */
  .res-stage { order: -1; position: sticky; top: 0; z-index: 2; margin: 0 calc(var(--gutter) * -1); padding: calc(var(--header-h) + 14px) var(--gutter) 0; background: var(--cream); }
  .res-stage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 40px; background: linear-gradient(var(--cream), rgba(235, 227, 214, 0)); pointer-events: none; }
  .res-sticky { position: relative; top: auto; height: auto; padding: 0 0 14px; flex-direction: column; gap: 14px; }
  /* tamanho pela altura: sempre sobra uma janela de leitura abaixo da faixa */
  .res-sticky .phone { --pw: clamp(130px, calc((100vh - var(--header-h) - 300px) * .4396), 240px); }
  @supports (height: 100svh) { .res-sticky .phone { --pw: clamp(130px, calc((100svh - var(--header-h) - 300px) * .4396), 240px); } }
  .res-progress { position: static; transform: none; flex-direction: row; gap: 8px; }
  .res-progress i { width: 18px; height: 3px; }
  .res-progress i.is-active { width: 36px; height: 3px; }
  .res-label { display: none; }
  .res-item { min-height: 62vh; min-height: 62svh; padding: 40px 0; cursor: default; }
  .res-item:first-child { min-height: 52vh; min-height: 52svh; padding-top: 56px; }
  .res-item:last-child { min-height: 68vh; min-height: 68svh; }
  .res-item h3 { font-size: clamp(28px, 7.4vw, 40px); }
  .res-item p { font-size: 16px; }
  .management-section { padding-top: clamp(40px, 8vw, 80px); }

  .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .cookie-banner-content { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: flex-end; }
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Tríptico vira coluna no celular/tablet estreito */
@media (max-width: 760px) {
  .fix-flow { grid-template-columns: 1fr; row-gap: 6px; }
  .fix-step .phone { --pw: min(60vw, 250px); }
  .fix-link { width: 40px; height: 64px; flex-direction: column; justify-content: center; padding: 6px 0; }
  .fix-link__line { flex: 1; width: 2px; height: auto; }
  .fix-link__line i { transform: scaleY(var(--fill, 1)); transform-origin: top; }
  .fix-link__node { margin: -2px 0 0; transform: rotate(135deg); }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .header-inner { height: 72px; }
  .brand { font-size: 19px; }
  .hero h1 { font-size: clamp(46px, 13.6vw, 70px); }
  .hero__inner { padding-top: 112px; gap: 56px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 22px; }
  .hero__actions .btn { width: 100%; white-space: normal; text-align: center; padding: 0 22px; }
  .op-tablist { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .ladder-row { grid-template-columns: 60px 1fr; }
  .ladder-units { grid-column: 2; align-items: flex-start; flex-direction: row-reverse; justify-content: flex-end; }
  .footer-main { grid-template-columns: 1fr; }
  .billing-toggle button { padding: 0 24px; }
  .final-inner .btn { height: auto; min-height: 64px; padding: 16px 26px; white-space: normal; text-align: center; max-width: 100%; }
  .plan-card { padding: 32px 24px 26px; }
  .faq-panel p { padding-right: 0; }
  /* Recursos (só celular): aparelho maior, mais próximo da dobra "Na mão de quem faz".
     Menos vazio na faixa (respiros 14→8px, degradê 40→12px) e o espaço ganho vai para o aparelho,
     preservando a janela de leitura da copy abaixo dele. */
  .res-stage { padding-top: calc(var(--header-h) + 8px); }
  .res-stage::after { height: 12px; }
  .res-sticky { gap: 8px; padding-bottom: 8px; }
  .res-sticky .phone { --pw: clamp(130px, calc((100vh - var(--header-h) - 278px) * .4396), 240px); }
  @supports (height: 100svh) { .res-sticky .phone { --pw: clamp(130px, calc((100svh - var(--header-h) - 278px) * .4396), 240px); } }
}

/* =========================================================
   MOVIMENTO REDUZIDO — todo o conteúdo visível, sem cenas
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
  .shared__title .w { opacity: 1 !important; }
  .fix-step { opacity: 1 !important; transform: none !important; }
}
