/* onni.health · totem. Canvas fixo 1080×1920 (retrato), escalado para caber na tela.
   Paleta da onni.ai com o azul mais claro da arte de referência. */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy-0: #000926;   /* fundo do logo (medido) */
  --navy-1: #061638;
  --navy-2: #0b2253;
  --navy-3: #12306d;
  --line: rgb(150 200 245 / 0.18);
  --line-2: rgb(150 200 245 / 0.32);
  --ink: #f4f9ff;
  --ink-2: #a8c5e6;    /* 10.6:1 no navy-0 */
  --ink-3: #7f9fc4;    /* 6.9:1 no navy-0 */
  --accent: #3db4f2;   /* azul claro da arte (brilho do fio): marcas, CTA, foco */
  --accent-2: #8fd3fa; /* passo claro do mesmo azul, texto pequeno no navy */
  --on-accent: #001437;/* texto sobre o accent: 8.4:1 */
  --paper: #eef6fd;
  --paper-ink: #06142f;
  --paper-ink-2: #3a5577; /* 7.1:1 no paper */
  --accent-deep: #0b6aa8; /* accent para texto no paper: 5.3:1 */
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --r: 28px;
  --pad: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--navy-0); overflow: hidden; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
body.kiosk, body.kiosk * { cursor: none !important; }
img { -webkit-user-drag: none; user-select: none; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; }

#stage { position: absolute; left: 0; top: 0; width: 1080px; height: 1920px; transform-origin: 0 0; overflow: hidden; background: var(--navy-0); }

/* ── header ─────────────────────────────────────────────── */
#bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; height: 150px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; background: var(--navy-0); border-bottom: 1px solid var(--line); }
#bar .logo-btn img { height: 92px; width: auto; }
.bar-title { width: 560px; text-align: right; height: 40px; overflow: hidden; font-size: 26px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.bar-title-in { display: block; }

/* ── dock ───────────────────────────────────────────────── */
#dock { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 170px; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--navy-0); border-top: 1px solid var(--line); }
.dock-btn { min-width: 230px; height: 104px; padding: 0 34px 0 26px; border-radius: 52px; border: 2px solid var(--line-2); display: inline-flex; align-items: center; gap: 14px; font-size: 30px; font-weight: 600; color: var(--ink); transition: transform var(--spring-snappy-dur) var(--spring-snappy), background-color var(--spring-snappy-dur) var(--spring-snappy); }
.dock-btn svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.dock-btn:active { transform: scale(0.96); background: var(--navy-2); }
.dock-btn[hidden] { display: inline-flex; visibility: hidden; }
.dock-crumbs { flex: 1; text-align: center; font-size: 22px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-crumbs b { color: var(--ink-2); font-weight: 600; }

/* ── screens ────────────────────────────────────────────── */
#screens { position: absolute; inset: 0; }
.screen { position: absolute; left: 0; width: 1080px; top: 150px; height: 1600px; background: var(--navy-0); overflow: hidden; }
.screen.full { top: 0; height: 1920px; }

.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: block; }

.kicker { font-size: 24px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2); }
.h1 { font-size: 92px; line-height: 1.02; font-weight: 750; letter-spacing: -0.025em; margin: 0; }
.h2 { font-size: 64px; line-height: 1.05; font-weight: 750; letter-spacing: -0.02em; margin: 0; }
.lead { font-size: 34px; line-height: 1.38; color: var(--ink-2); margin: 0; }
.accent { color: var(--accent); }

.btn { height: 124px; border-radius: 62px; padding: 0 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 34px; font-weight: 700; transition: transform var(--spring-snappy-dur) var(--spring-snappy), background-color var(--spring-snappy-dur) var(--spring-snappy); }
.btn svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: scale(0.975); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-2); }
.btn-ghost { border: 2px solid var(--line-2); color: var(--ink); }
.btn-ghost:active { background: var(--navy-2); }
.btn-wide { width: 100%; }

/* ── attract ────────────────────────────────────────────── */
.attract { cursor: pointer; }
.attract .art { position: absolute; right: -150px; top: 0; height: 1920px; width: 907px; object-fit: cover; }
.attract .scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--navy-0) 0%, var(--navy-0) 34%, rgb(0 9 38 / 0.86) 50%, rgb(0 9 38 / 0.25) 72%, rgb(0 9 38 / 0) 100%),
  linear-gradient(0deg, var(--navy-0) 0%, rgb(0 9 38 / 0.92) 16%, rgb(0 9 38 / 0) 36%); }
.attract .logo { position: absolute; left: var(--pad); top: 110px; width: 560px; height: auto; }
.attract .hero { position: absolute; left: var(--pad); top: 560px; width: 640px; }
.attract .hero .h1 { font-size: 104px; }
.attract .hero .lead { margin-top: 40px; width: 560px; }
.attract .ticker { position: absolute; left: var(--pad); right: var(--pad); top: 1360px; }
.attract .ticker .kicker { color: var(--ink-3); }
.attract .tick-box { position: relative; height: 70px; margin-top: 14px; overflow: hidden; }
.attract .tick { position: absolute; left: 0; top: 0; font-size: 54px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.attract .tick-dots { display: flex; gap: 12px; margin-top: 22px; }
.attract .tick-dots i { width: 14px; height: 14px; border-radius: 7px; background: var(--line-2); }
.attract .tick-dots i.on { background: var(--accent); }
.attract .cta { position: absolute; left: var(--pad); right: var(--pad); bottom: 110px; height: 168px; border-radius: 84px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; gap: 28px; padding: 0 30px 0 56px; }
.attract .cta-txt { font-size: 46px; font-weight: 750; letter-spacing: -0.01em; flex: 1; white-space: nowrap; }
.attract .cta svg.ecg { width: 210px; height: 80px; flex: none; fill: none; stroke: var(--on-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.attract .hand { width: 108px; height: 108px; border-radius: 54px; background: var(--on-accent); display: grid; place-items: center; }
.attract .hand svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ── hub ────────────────────────────────────────────────── */
.hub { padding: 56px var(--pad) 0; }
.hub .h1 { font-size: 74px; }
.hub .lead { margin-top: 14px; font-size: 30px; }
.hub .group { margin-top: 28px; }
.hub .arch-link { margin-top: 24px; width: 100%; height: 104px; border-radius: var(--r); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; text-align: left; transition: transform var(--spring-snappy-dur) var(--spring-snappy), background-color var(--spring-snappy-dur) var(--spring-snappy); }
.hub .arch-link:active { transform: scale(0.98); background: var(--navy-2); }
.hub .arch-link b { display: block; font-size: 31px; font-weight: 700; }
.hub .arch-link small { display: block; margin-top: 4px; font-size: 22px; color: var(--ink-2); }
.hub .arch-link svg, .arch-chip svg { width: 40px; height: 40px; fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.arch-chip { position: absolute; right: 18px; bottom: 18px; height: 72px; padding: 0 22px 0 26px; border-radius: 36px; background: var(--navy-0); border: 2px solid var(--line-2); display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; }
.arch-chip:active { background: var(--navy-2); }
/* arquitetura */
.arch { padding: 28px var(--pad) 0; }
.arch .seg { display: grid; grid-template-columns: 1fr 1fr; height: 96px; border-radius: 48px; border: 2px solid var(--line-2); position: relative; }
.arch .seg-ind { position: absolute; top: 6px; bottom: 6px; border-radius: 42px; background: var(--accent); }
.arch .seg button { position: relative; font-size: 28px; font-weight: 700; color: var(--ink-2); transition: color var(--spring-snappy-dur) var(--spring-snappy); }
.arch .seg button.on { color: var(--on-accent); }
.arch .arch-frame { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; overflow: hidden; }
.arch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--navy-0); }
.hub .group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.hub .group-h .ask { font-size: 24px; color: var(--ink-3); }
.hub .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile { position: relative; text-align: left; height: 172px; border-radius: var(--r); background: var(--navy-1); border: 2px solid var(--line); padding: 20px 26px; display: flex; flex-direction: column; justify-content: space-between; transition: transform var(--spring-snappy-dur) var(--spring-snappy), background-color var(--spring-snappy-dur) var(--spring-snappy), border-color var(--spring-snappy-dur) var(--spring-snappy); }
.tile:active { transform: scale(0.97); background: var(--navy-2); border-color: var(--accent); }
.tile.span2 { grid-column: span 2; }
.tile .t-n { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.tile .t-name { font-size: 33px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; padding-right: 64px; }
.tile .t-line { font-size: 23px; line-height: 1.3; color: var(--ink-2); padding-right: 20px; }
.tile .t-go { position: absolute; right: 22px; top: 22px; width: 64px; height: 64px; border-radius: 32px; background: var(--navy-3); display: grid; place-items: center; }
.tile .t-go svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ── solução ────────────────────────────────────────────── */
.sol { padding: 52px var(--pad) 0; }
.sol .h1 { margin-top: 22px; }
.sol .lead { margin-top: 30px; }
.sol .visual { position: relative; margin-top: 44px; height: 470px; border-radius: 32px; background: var(--navy-1); border: 2px solid var(--line); overflow: hidden; }
.sol .visual img { width: 100%; height: 100%; object-fit: cover; }
.flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow .glow { fill: none; stroke: var(--accent); stroke-width: 22; stroke-opacity: 0.14; stroke-linecap: round; }
.flow .core { fill: none; stroke: url(#flowgrad); stroke-width: 6; stroke-linecap: round; }
.flow .node circle { fill: var(--navy-0); stroke: var(--accent); stroke-width: 5; }
.flow .node text { font-family: var(--font); font-size: 23px; font-weight: 600; fill: var(--ink-2); }
.flow .node .nn { font-size: 18px; font-weight: 700; fill: var(--accent-2); text-anchor: middle; }
.sol .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border-top: 2px solid var(--line); }
.sol .fact { padding: 26px 26px 0 0; }
.sol .fact + .fact { padding-left: 26px; border-left: 2px solid var(--line); }
.sol .fact b { display: block; font-size: 34px; line-height: 1.1; font-weight: 750; letter-spacing: -0.01em; color: var(--ink); }
.sol .fact span { display: block; margin-top: 12px; font-size: 24px; line-height: 1.35; color: var(--ink-2); }
.sol .actions { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; display: grid; gap: 20px; }
.act-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.act-row .btn { padding: 0 34px 0 40px; white-space: nowrap; }
.btn-soft { background: var(--navy-3); color: var(--ink); }
.btn-soft:active { background: var(--navy-2); }

/* ── benefícios ─────────────────────────────────────────── */
.ben { padding: 52px var(--pad) 0; }
.ben .what { margin-top: 26px; background: var(--paper); color: var(--paper-ink); border-radius: 28px; padding: 30px 36px 34px; }
.ben .what-k { display: block; font-size: 22px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.ben .what p { margin: 12px 0 0; font-size: 33px; line-height: 1.34; font-weight: 500; }
.ben .gain { margin-top: 48px; font-size: 74px; }
.ben .pairs { margin-top: 40px; }
.ben .pairs-h { display: grid; grid-template-columns: 1fr 60px 1.25fr; gap: 0 22px; padding-bottom: 14px; font-size: 21px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.ben .pairs-h span:last-child { grid-column: 3; color: var(--accent-2); }
.ben .pair { display: grid; grid-template-columns: 1fr 60px 1.25fr; gap: 0 22px; align-items: center; padding: 26px 0; border-top: 2px solid var(--line); }
.ben .pair .how { font-size: 27px; line-height: 1.32; color: var(--ink-2); }
.ben .pair .to { width: 60px; height: 60px; border-radius: 30px; background: var(--navy-2); display: grid; place-items: center; }
.ben .pair .to svg { width: 32px; height: 32px; fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ben .pair .win { font-size: 29px; line-height: 1.3; font-weight: 650; color: var(--ink); }
.ben .actions { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; }

/* ── jornada ────────────────────────────────────────────── */
.steps { padding: 48px var(--pad) 0; }
.steps .top { display: flex; justify-content: space-between; align-items: baseline; }
.steps .count { font-size: 30px; font-weight: 700; color: var(--ink-2); height: 40px; overflow: hidden; position: relative; min-width: 120px; text-align: right; }
.steps .count span { display: block; }
.steps .h2 { margin-top: 18px; font-size: 60px; }
.steps .body { position: absolute; left: var(--pad); right: var(--pad); top: 250px; bottom: 210px; display: grid; grid-template-columns: 300px 1fr; gap: 36px; }
.rail { position: relative; padding-left: 34px; }
.rail .track { position: absolute; left: 8px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--line); }
.rail .ind { position: absolute; left: 4px; width: 12px; border-radius: 6px; background: var(--accent); top: 0; height: 0; }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.rail li { flex: 1; display: flex; }
.rail button { width: 100%; text-align: left; display: flex; align-items: center; gap: 16px; font-size: 27px; font-weight: 600; line-height: 1.15; color: var(--ink-3); transition: color var(--spring-snappy-dur) var(--spring-snappy); }
.rail button .rn { font-size: 20px; font-weight: 700; letter-spacing: 0.06em; width: 34px; flex: none; }
.rail button.on { color: var(--ink); }
.rail button.on .rn { color: var(--accent); }
.rail button.done { color: var(--ink-2); }
.card-frame { position: relative; overflow: hidden; border-radius: 32px; }
.card { position: absolute; inset: 0; border-radius: 32px; background: var(--paper); color: var(--paper-ink); padding: 44px 44px 40px; display: flex; flex-direction: column; }
.card .c-n { font-size: 140px; line-height: 0.9; font-weight: 800; letter-spacing: -0.045em; color: var(--accent-deep); }
.card .c-t { margin-top: 30px; font-size: 56px; line-height: 1.06; font-weight: 750; letter-spacing: -0.018em; }
.card .c-b { margin: 30px 0 0; font-size: 35px; line-height: 1.45; color: var(--paper-ink-2); }
.card .c-img { margin-top: 26px; border-radius: 20px; overflow: hidden; height: 250px; flex: none; }
.card .c-img img { width: 100%; height: 100%; object-fit: cover; }
.card .c-note { margin-top: auto; border-top: 2px solid rgb(6 20 47 / 0.12); padding-top: 24px; }
.card .c-note b { display: block; font-size: 22px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.card .c-note span { display: block; margin-top: 10px; font-size: 30px; line-height: 1.35; color: var(--paper-ink); font-weight: 500; }
.steps .nav { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; display: grid; grid-template-columns: 300px 1fr; gap: 36px; }
.steps .nav .btn-ghost[disabled] { opacity: 0.35; }
.steps .hint { position: absolute; left: 0; right: 0; bottom: 186px; text-align: center; font-size: 21px; color: var(--ink-3); }

/* ── demo ───────────────────────────────────────────────── */
.demo { padding: 52px var(--pad) 0; }
.demo .h1 { margin-top: 22px; }
.demo .try { margin-top: 56px; border-top: 2px solid var(--line); }
.demo .try-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; min-height: 176px; border-bottom: 2px solid var(--line); }
.demo .try-row b { font-size: 60px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; }
.demo .try-row span { font-size: 38px; line-height: 1.2; font-weight: 600; }
.demo .launch { margin-top: 64px; height: 168px; border-radius: 84px; font-size: 44px; padding: 0 40px 0 60px; }
.demo .launch svg { width: 64px; height: 64px; }
.demo .status { margin-top: 26px; font-size: 24px; color: var(--ink-3); text-align: center; }
.demo .talk { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding-top: 36px; border-top: 2px solid var(--line); }
.demo .talk p { margin: 0; font-size: 28px; line-height: 1.35; color: var(--ink-2); }
.demo .talk p b { color: var(--ink); }

#demo-layer { position: absolute; inset: 0; z-index: 40; background: var(--navy-0); }
#demo-layer[hidden] { display: none; }
.demo-top { height: 120px; display: flex; align-items: center; gap: 30px; padding: 0 40px; border-bottom: 1px solid var(--line); background: var(--navy-0); }
.demo-back { height: 84px; padding: 0 34px 0 22px; border-radius: 42px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 700; }
.demo-back svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.demo-name { font-size: 26px; font-weight: 600; color: var(--ink-2); }
.demo-frame { display: block; width: 1080px; height: 1800px; border: 0; background: #fff; }

/* ── idle ───────────────────────────────────────────────── */
#idle { position: absolute; inset: 0; z-index: 60; background: rgb(0 9 38 / 0.78); display: grid; place-items: center; }
#idle[hidden] { display: none; }
.idle-card { width: 820px; border-radius: 40px; background: var(--paper); color: var(--paper-ink); padding: 60px 64px 64px; text-align: center; }
.idle-ring { width: 200px; height: 200px; }
.idle-ring circle { fill: none; stroke-width: 12; }
.idle-ring .ring-bg { stroke: rgb(6 20 47 / 0.1); }
.idle-ring .ring-fg { stroke: var(--accent-deep); stroke-linecap: round; stroke-dasharray: 1; transform: rotate(-90deg); transform-origin: 100px 100px; }
.idle-ring .ring-n { font-family: var(--font); font-size: 64px; font-weight: 800; fill: var(--paper-ink); text-anchor: middle; }
.idle-card h2 { margin: 26px 0 0; font-size: 56px; font-weight: 750; letter-spacing: -0.02em; }
.idle-card p { margin: 16px 0 44px; font-size: 30px; line-height: 1.4; color: var(--paper-ink-2); }
.idle-card .btn { width: 100%; justify-content: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
