/* =============================================================
   Página inicial (17/10/2026): topo que muda com o ramo, a cena
   "da bagunça ao sistema", a calculadora e os planos dos sistemas.
   Identidade: a rosa azul (brilho e espinhos) e títulos com um
   destaque em Instrument Serif itálico.
   ============================================================= */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2'); }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h1 .serif, h2 .serif { color: var(--accent); }

/* ---------- topo ---------- */
.ini-hero { position: relative; overflow: hidden; padding: 72px 0 88px; isolation: isolate; }
.ini-rosa { position: absolute; z-index: -1; right: -8%; top: -6%; width: min(760px, 70vw); aspect-ratio: 1; pointer-events: none; opacity: .5; filter: blur(2px) saturate(1.2); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 75%); mask-image: radial-gradient(closest-side, #000 30%, transparent 75%); }
.ini-rosa img { width: 100%; height: 100%; object-fit: contain; animation: rosa-respira 9s ease-in-out infinite alternate; }
@keyframes rosa-respira { from { transform: scale(1); opacity: .85; } to { transform: scale(1.05); opacity: 1; } }
html[data-theme="light"] .ini-rosa { opacity: .22; }
.ini-hero::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.ini-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ini-hero h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin: 14px 0 0; max-width: 14ch; text-wrap: balance; }
.ini-hero h1 .serif { font-size: 1.08em; letter-spacing: -0.02em; display: inline-block; }
.ini-hero h1 [data-ramo-l1], .ini-hero h1 [data-ramo-l2] { display: inline; transition: opacity .28s ease, filter .28s ease; }
.ini-hero h1.trocando [data-ramo-l1], .ini-hero h1.trocando [data-ramo-l2], .ini-hero .trocando[data-ramo-sub] { opacity: 0; filter: blur(6px); }
.ini-hero .sub { margin-top: 20px; font-size: 18.5px; color: var(--ink-2); max-width: 44ch; min-height: 3.2em; transition: opacity .28s ease, filter .28s ease; }

.ini-ramos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.ini-ramos > span { font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.ini-ramos button { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 14.5px/1 var(--font); transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease); position: relative; overflow: hidden; }
.ini-ramos button:hover { color: var(--ink); border-color: var(--accent); }
.ini-ramos button[aria-pressed="true"] { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.ini-ramos button .barra { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(255,255,255,.7); }
.ini-ramos.auto button[aria-pressed="true"] .barra { animation: barra-ramo var(--ciclo, 4.5s) linear forwards; }
@keyframes barra-ramo { to { width: 100%; } }

.ini-hero .ctas { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.ini-preco { margin-top: 18px; font: 500 14px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.ini-preco b { color: var(--ink); font-weight: 600; }

/* tela que troca */
.ini-tela { position: relative; padding: 18px 0 40px; }
.ini-note { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 100px -30px rgba(3, 8, 20, .9), 0 0 0 1px rgba(255,255,255,.03), 0 0 120px -20px rgba(61, 107, 240, .35); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: 30% 50%; transition: transform .6s var(--ease); }
.ini-tela:hover .ini-note { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.ini-note-barra { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ini-note-barra i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.ini-note-barra span { margin-left: 10px; font: 500 12px/1 var(--mono); color: var(--ink-3); }
.ini-note-img { position: relative; aspect-ratio: 16 / 10; background: #fff; }
.ini-note-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .9s var(--ease); }
.ini-note-img img.on { opacity: 1; transform: none; }

.ini-aviso { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 12px 16px 12px 12px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -18px rgba(3, 8, 20, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14px; line-height: 1.3; transition: opacity .35s ease, transform .45s var(--ease); }
.ini-aviso .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ini-aviso .ic .ico { width: 18px; height: 18px; }
.ini-aviso b { display: block; color: var(--ink); font-weight: 600; }
.ini-aviso small { color: var(--ink-2); font-size: 12.5px; }
.ini-aviso.a1 { left: -28px; bottom: 6px; }
.ini-aviso.a2 { right: -14px; top: -6px; }
.ini-aviso.a2 .ic { background: rgba(76, 195, 138, .14); color: var(--ok); }
.ini-tela.trocando .ini-aviso { opacity: 0; transform: translateY(10px) scale(.97); }

/* ---------- tudo num lugar só: animação que roda sozinha, em loop (não depende da rolagem) ---------- */
.ini-bag { padding: 96px 0; }
.ini-bag-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ini-bag h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; }
.ini-bag-passos { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: p; }
.ini-bag-passos li { position: relative; padding-left: 44px; font-size: 18px; color: var(--ink-3); counter-increment: p; animation: passo var(--ciclo-bag) infinite; animation-delay: var(--d, 0s); }
.ini-bag-passos li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 2px; font: 500 13px/1.6 var(--mono); color: var(--ink-3); }
.ini-bag-passos li s { text-decoration-color: #ff4d6d; text-decoration-thickness: 2px; }
.ini-bag-passos li.fim { margin-top: 10px; font-size: 21px; font-weight: 600; animation-name: passo-fim; }
.ini-bag-passos li.fim::before { content: '✓'; color: var(--ok); font-size: 16px; }
@keyframes passo { 0%, 100% { color: var(--ink-3); transform: none; } 6%, 22% { color: var(--ink); transform: translateX(4px); } 30% { color: var(--ink-3); transform: none; } }
@keyframes passo-fim { 0%, 52% { color: var(--ink-3); } 62%, 92% { color: var(--accent); } 100% { color: var(--ink-3); } }
:root { --ciclo-bag: 11s; }

.ini-bag-palco { position: relative; aspect-ratio: 1.15; }
.ini-bag-app { position: absolute; inset: 12% 4% 12% 4%; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 40px 90px -30px rgba(3, 8, 20, .9), 0 0 140px -30px rgba(61, 107, 240, .5); animation: app-aparece var(--ciclo-bag) var(--ease) infinite; }
.ini-bag-app img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
@keyframes app-aparece { 0%, 50% { opacity: .18; transform: scale(.88); filter: blur(3px); } 62%, 94% { opacity: 1; transform: none; filter: none; } 100% { opacity: .18; transform: scale(.88); filter: blur(3px); } }
.pp { position: absolute; z-index: 2; padding: 16px 18px; border-radius: 12px; box-shadow: 0 22px 44px -14px rgba(0, 0, 0, .6); font-size: 15px; line-height: 1.35; opacity: 0; animation: papel var(--ciclo-bag) var(--ease) infinite; animation-delay: var(--d, 0s); }
/* cada papel entra, flutua e voa para o centro do sistema (--dx/--dy medidos no layout pelo inicio.js) */
@keyframes papel {
  0% { opacity: 0; transform: translateY(-36px) rotate(calc(var(--r) * 2.4)); }
  7% { opacity: 1; transform: rotate(var(--r)); }
  28% { opacity: 1; transform: translateY(-6px) rotate(var(--r)); }
  44% { opacity: 1; transform: rotate(var(--r)); }
  56% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.22) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(.22); }
}
.pp.planilha { --r: -8deg; --d: 0s; left: 0; top: 4%; width: 46%; padding: 0; overflow: hidden; background: #f7f9fb; color: #1d2733; font: 500 12.5px/1.2 var(--mono); }
.pp.planilha .bar { background: #1f7a4a; color: #fff; padding: 9px 12px; font: 600 12.5px/1 var(--font); }
.pp.planilha table { width: 100%; border-collapse: collapse; }
.pp.planilha td { border: 1px solid #d5dde5; padding: 6px 8px; }
.pp.planilha td.v { color: #c0392b; font-weight: 700; }
.pp.postit { --r: 7deg; --d: .35s; right: 2%; top: 0; width: 34%; background: #ffe066; color: #3a3000; font-weight: 700; }
.pp.caderno { --r: -5deg; --d: .7s; left: 8%; bottom: 2%; width: 40%; background: #fbf6e9; color: #2b2b2b; font: 500 14px/1.7 var(--mono); background-image: repeating-linear-gradient(#fbf6e9 0 22px, #c9d6ea 22px 23px); }
.pp.caderno s { text-decoration-color: #c0392b; }
.pp.zap { --r: 4deg; --d: 1.05s; right: 0; bottom: 8%; width: 50%; background: #202c33; color: #e9edef; }
.pp.zap small { display: block; color: #53bdeb; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ini-bag-passos li:nth-child(1) { --d: 0s; } .ini-bag-passos li:nth-child(2) { --d: 1.4s; } .ini-bag-passos li:nth-child(3) { --d: 2.8s; }

/* movimento leve e constante no topo */
.ini-aviso.a1 { animation: flutua 6s ease-in-out infinite; }
.ini-aviso.a2 { animation: flutua 7s ease-in-out -3s infinite; }
@keyframes flutua { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.ini-note { animation: respira-tela 9s ease-in-out infinite; }
@keyframes respira-tela { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- planos dos sistemas ---------- */
.ini-mais { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(120deg, var(--accent-soft), transparent 70%); }
.ini-mais b { display: block; font-size: 19px; color: var(--ink); }
.ini-mais span { color: var(--ink-2); font-size: 15.5px; }

/* ---------- celular ---------- */
@media (max-width: 900px) {
  .ini-hero { padding: 40px 0 64px; }
  .ini-hero-grid, .ini-bag-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .ini-rosa { right: -30%; top: -4%; width: 110vw; opacity: .32; }
  .ini-note { transform: none; }
  .ini-aviso { max-width: 230px; font-size: 13px; padding: 10px 12px 10px 10px; }
  .ini-aviso .ic { width: 30px; height: 30px; }
  .ini-aviso.a1 { left: -4px; bottom: 0; }
  .ini-aviso.a2 { right: -4px; top: -4px; }
  .ini-bag { padding: 64px 0; }
  .ini-bag-palco { width: min(100%, 440px); margin: 0 auto; aspect-ratio: 1.3; }
  .ini-bag h2 { font-size: 30px; }
  .ini-bag-passos { margin-top: 16px; gap: 8px; }
  .ini-bag-passos li { font-size: 16px; padding-left: 36px; }
  .ini-bag-passos li.fim { font-size: 18px; margin-top: 4px; }
  .pp { font-size: 12.5px; padding: 10px 12px; }
  .pp.planilha, .pp.caderno { font-size: 11px; }
}
@media (max-width: 520px) {
  .ini-ramos button { min-height: 38px; padding: 0 13px; font-size: 14px; }
  .ini-hero .sub { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .ini-rosa img, .ini-aviso, .ini-note, .ini-bag-passos li { animation: none; }
  .ini-bag .pp { display: none; }
  .ini-bag-app { animation: none; }
  .ini-bag-passos li { color: var(--ink); }
}

/* oferta de lançamento */
.ini-selo { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(76, 195, 138, .45); background: rgba(76, 195, 138, .1); color: var(--ink); font: 600 13.5px/1.2 var(--font); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.ini-selo:hover { background: rgba(76, 195, 138, .18); transform: translateY(-1px); }
.ini-selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: pulso-oferta 2s infinite; }
@keyframes pulso-oferta { 70% { box-shadow: 0 0 0 9px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }
.ini-oferta { margin: 18px 0 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(76, 195, 138, .4); background: rgba(76, 195, 138, .08); color: var(--ink-2); max-width: 62ch; }
.ini-oferta b { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .ini-selo i { animation: none; } }

/* =============================================================
   Topo de luxo: a rosa na redoma (17/10/2026)
   ============================================================= */
.lx-hero { position: relative; padding: 96px 0 40px; overflow: hidden; }
.lx-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 520px at 74% 38%, rgba(58, 110, 240, .16), transparent 70%); pointer-events: none; }
.lx-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.lx-hero h1 { font-size: clamp(52px, 6.6vw, 108px); line-height: .95; margin: 22px 0 0; max-width: 11ch; }
.lx-hero h1 em { display: inline; }
.lx-hero .sub { margin-top: 30px; font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 44ch; }
.lx-hero .ctas { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.lx-hero-txt > .eyebrow, .lx-hero-txt > .sub, .lx-hero-txt > .ctas, .lx-hero-txt > .ini-selo { opacity: 0; transform: translateY(24px); animation: lx-sobe 1.1s cubic-bezier(.16, 1, .3, 1) forwards; }
.lx-hero-txt > .eyebrow { animation-delay: .1s; }
.lx-hero-txt > .ini-selo { animation-delay: .25s; }
.lx-hero-txt > .sub { animation-delay: .9s; }
.lx-hero-txt > .ctas { animation-delay: 1.1s; }
@keyframes lx-sobe { to { opacity: 1; transform: none; } }

.lx-hero-arte { position: relative; display: flex; justify-content: center; }
.lx-redoma { position: relative; width: min(100%, 470px); aspect-ratio: 488 / 573; transform-origin: 50% 85%; will-change: transform; }
.lx-redoma img { position: relative; z-index: 2; display: block; width: 100%; height: auto; opacity: 0; transform: translateY(30px) scale(.96); filter: blur(12px); animation: lx-surge 2.2s cubic-bezier(.16, 1, .3, 1) .2s forwards; }
@keyframes lx-surge { to { opacity: 1; transform: none; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .8)); } }
/* aura azul atrás da rosa, respirando */
.lx-redoma .lx-aura { position: absolute; z-index: 1; left: 50%; top: 22%; width: 78%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(110, 160, 255, .55), rgba(58, 110, 240, .18) 55%, transparent); filter: blur(10px); opacity: 0; animation: lx-acende 2s ease 1.2s forwards, lx-pulsa 6s ease-in-out 3.2s infinite; }
@keyframes lx-acende { to { opacity: 1; } }
@keyframes lx-pulsa { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.14); opacity: .65; } }
/* feixe de luz vindo de cima */
.lx-redoma .lx-feixe { position: absolute; z-index: 0; left: 50%; top: -18%; width: 70%; height: 95%; translate: -50% 0; background: linear-gradient(180deg, rgba(207, 224, 255, 0), rgba(207, 224, 255, .14) 28%, rgba(207, 224, 255, 0)); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); opacity: 0; animation: lx-acende 2.4s ease 1s forwards; }
/* brilho que atravessa só o desenho (máscara com a própria imagem) */
.lx-redoma .lx-reflexo { position: absolute; z-index: 3; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); background-size: 260% 100%; background-position: 160% 0; -webkit-mask: url("../img/redoma-rosa.webp") center / contain no-repeat; mask: url("../img/redoma-rosa.webp") center / contain no-repeat; mix-blend-mode: screen; animation: lx-reflexo 7s cubic-bezier(.45, .05, .3, 1) 3s infinite; }
@keyframes lx-reflexo { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
/* partículas de luz subindo dentro da redoma */
.lx-redoma .lx-poeira { position: absolute; z-index: 3; left: 26%; right: 26%; top: 18%; bottom: 22%; pointer-events: none; }
.lx-redoma .lx-poeira i { position: absolute; bottom: 0; width: 3px; height: 3px; border-radius: 50%; background: #d8e6ff; box-shadow: 0 0 8px #9dbcff; opacity: 0; animation: lx-poeira 9s linear infinite; }
.lx-redoma .lx-poeira i:nth-child(1) { left: 10%; animation-delay: -1s; }
.lx-redoma .lx-poeira i:nth-child(2) { left: 32%; animation-delay: -4s; animation-duration: 11s; }
.lx-redoma .lx-poeira i:nth-child(3) { left: 55%; animation-delay: -6s; animation-duration: 8s; }
.lx-redoma .lx-poeira i:nth-child(4) { left: 75%; animation-delay: -2.5s; animation-duration: 12s; }
.lx-redoma .lx-poeira i:nth-child(5) { left: 88%; animation-delay: -7.5s; animation-duration: 10s; }
.lx-redoma .lx-poeira i:nth-child(6) { left: 45%; animation-delay: -9s; animation-duration: 9.5s; }
@keyframes lx-poeira { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .5; } 100% { transform: translateY(-220px); opacity: 0; } }

.lx-numeros { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.lx-numeros > div { padding: 30px 24px 28px; border-left: 1px solid var(--line); }
.lx-numeros > div:first-child { border-left: 0; padding-left: 0; }
.lx-numeros b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; color: transparent; background: linear-gradient(180deg, #fff, #9fb0cc); -webkit-background-clip: text; background-clip: text; }
.lx-numeros b i { font-style: normal; }
.lx-numeros span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; max-width: 22ch; }
.lx-ramo-tit { font-size: clamp(36px, 4.4vw, 62px); line-height: 1; margin: 14px 0 0; max-width: 14ch; }
#ramos { padding-top: 110px; }
#ramos .ini-hero-grid { gap: 64px; }

@media (max-width: 900px) {
  .lx-hero { padding: 24px 0 24px; }
  .lx-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .lx-hero-arte { order: -1; }
  .lx-redoma { width: min(56vw, 240px); margin: 0 auto 18px; }
  .lx-hero h1 { margin-top: 14px; }
  .lx-hero .sub { margin-top: 20px; font-size: 17px; }
  .lx-hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .lx-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 40px; }
  .lx-numeros > div { padding: 22px 14px; }
  .lx-numeros > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .lx-numeros > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  #ramos { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-hero-txt > *, .lx-redoma * { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .lx-redoma .lx-reflexo, .lx-redoma .lx-poeira { display: none; }
}
