@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #15302A; --bg-2: #0F241F; --card: #1D3E36; --line: #2A5148;
  --ink: #FFFFFF; --dim: #A9C4BB; --mint: #22C9A0; --green: #14A37F;
  --orange: #FF7A4D; --protein: #FF3D82; --carb: #FFAE00; --fat: #8B6BFF;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg-2); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

.story { position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; background: radial-gradient(120% 70% at 85% 0%, #1F4A40 0%, var(--bg) 55%, var(--bg-2) 100%); overflow: hidden; display: flex; flex-direction: column; }
@media (min-width: 520px) { body { display: flex; align-items: center; } .story { height: min(100dvh, 900px); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); } }

.bars { position: absolute; z-index: 5; top: calc(10px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; gap: 4px; }
.bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 3px; }
.bar.done i { width: 100%; }

.top { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: calc(24px + env(safe-area-inset-top)) 16px 0; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.brand svg { width: 32px; height: 32px; }
.brand b { color: var(--mint); font-weight: 800; }
.pause { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); }
.pause svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pause .i-play { display: none; fill: #fff; }
.story.paused .pause .i-play { display: block; }
.story.paused .pause .i-pause { display: none; }

.slides { position: relative; flex: 1; min-height: 0; }
.slide { position: absolute; inset: 0; padding: 22px 22px 16px; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
.slide.active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease; z-index: 1; }
.slide.past { transform: translateX(-24px); }

.kick, .step { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin: 0 0 10px; }
.step { display: inline-flex; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: rgba(34,201,160,.14); }
h1, h2 { margin: 0 0 14px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(34px, 10vw, 44px); }
h2 { font-size: clamp(30px, 8.6vw, 38px); }
h1 em, h2 em { font-style: normal; color: var(--mint); }
.lede { font-size: 16px; line-height: 1.45; color: var(--dim); margin: 0; }
.sub { margin: 0 0 4px; color: var(--dim); font-size: 15px; }
.note { margin: 16px 0 0; color: var(--dim); font-size: 14.5px; line-height: 1.45; }
.note .plus { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--mint); color: var(--bg-2); font-weight: 800; }
.url { margin: 0 0 16px; font-family: var(--mono); font-size: clamp(16px, 4.8vw, 19px); font-weight: 700; color: #fff; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.28); text-align: center; }

/* Capa */
.cover-ring { position: relative; width: min(62vw, 230px); aspect-ratio: 1; margin: 18px auto 22px; }
.cover-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.cover-ring circle { fill: none; stroke-width: 18; }
.cover-ring .bg { stroke: rgba(255,255,255,.08); }
.cover-ring .seg { stroke-linecap: round; stroke-dasharray: 0 516; }
.cover-ring .sp { stroke: var(--protein); }
.cover-ring .sc { stroke: var(--carb); }
.cover-ring .sf { stroke: var(--fat); }
.s-cover.active .sp { animation: segP 1.6s .3s cubic-bezier(.3,1,.4,1) forwards; }
.s-cover.active .sc { animation: segC 1.6s .5s cubic-bezier(.3,1,.4,1) forwards; }
.s-cover.active .sf { animation: segF 1.6s .7s cubic-bezier(.3,1,.4,1) forwards; }
@keyframes segP { to { stroke-dasharray: 210 516; stroke-dashoffset: 0; } }
@keyframes segC { from { stroke-dashoffset: -222; } to { stroke-dasharray: 120 516; stroke-dashoffset: -222; } }
@keyframes segF { from { stroke-dashoffset: -354; } to { stroke-dasharray: 52 516; stroke-dashoffset: -354; } }
.cr-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cr-in b { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.cr-in small { color: var(--dim); font-size: 14px; font-weight: 600; }

/* Passo 1 */
.os { display: grid; gap: 10px; }
.os-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; opacity: 0; transform: translateY(12px); }
.slide.active .os-card { animation: rise .5s ease forwards; }
.slide.active .os-card + .os-card { animation-delay: .25s; }
.os-card b { font-size: 15px; }
.os-card ol { margin: 6px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; color: #E3EFEA; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 8px; background: rgba(255,255,255,.1); font-weight: 700; color: #fff; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Telefone simulado */
.phone { background: #F1F7F4; color: #15302A; border-radius: 24px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.field { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14.5px; opacity: 0; transform: translateY(8px); }
.field span { color: #6E857D; font-weight: 600; }
.field b { font-weight: 800; }
.slide.active .f1 { animation: rise .4s .2s ease forwards; }
.slide.active .f2 { animation: rise .4s .6s ease forwards; }
.slide.active .f3 { animation: rise .4s 1s ease forwards; }
.goal { background: #14A37F; color: #fff; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: scale(.94); }
.slide.active .goal { animation: pop .5s 1.6s cubic-bezier(.3,1.4,.5,1) forwards; }
.goal span { font-size: 13px; opacity: .9; font-weight: 600; }
.goal b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* Passo 3: scan */
.scan { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.scan img { display: block; width: 100%; height: auto; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mint); box-shadow: 0 0 18px 6px rgba(34,201,160,.6); opacity: 0; }
.slide.active .scanline { animation: sweep 1.8s .2s ease-in-out 2 alternate; }
@keyframes sweep { 0% { top: 0; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.tag { position: absolute; padding: 6px 10px; border-radius: 99px; background: rgba(15,36,31,.86); font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; transform: scale(.8); }
.tag b { color: var(--protein); }
.t1 { left: 18%; top: 66%; } .t2 { left: 50%; top: 18%; } .t3 { left: 12%; top: 40%; }
.slide.active .t1 { animation: pop .4s 2.2s cubic-bezier(.3,1.4,.5,1) forwards; }
.slide.active .t2 { animation: pop .4s 2.6s cubic-bezier(.3,1.4,.5,1) forwards; }
.slide.active .t3 { animation: pop .4s 3s cubic-bezier(.3,1.4,.5,1) forwards; }

/* Passo 4: lista */
.item { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; opacity: 0; transform: translateX(14px); }
.item span { font-size: 22px; }
.item p { margin: 0; flex: 1; font-weight: 700; font-size: 14.5px; display: flex; flex-direction: column; }
.item small { color: #6E857D; font-weight: 600; font-size: 12px; }
.item b { color: #E0306F; font-family: var(--mono); font-size: 15px; }
.slide.active .item { animation: slideIn .4s ease forwards; }
.slide.active .item:nth-child(2) { animation-delay: .3s; }
.slide.active .item:nth-child(3) { animation-delay: .6s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.reg { margin-top: 4px; background: #14A37F; color: #fff; text-align: center; font-weight: 800; border-radius: 14px; padding: 13px; opacity: 0; }
.slide.active .reg { animation: rise .4s 1.1s ease forwards, glow 1.4s 1.6s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,163,127,.6); } 50% { box-shadow: 0 0 0 10px rgba(20,163,127,0); } }

/* Passo 5 */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 18px; }
.d { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--dim); }
.d.now { color: #fff; }
.r { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.1); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); transform: scale(.4); opacity: 0; }
.slide.active .r { animation: pop .45s cubic-bezier(.3,1.4,.5,1) forwards; }
.slide.active .d:nth-child(2) .r { animation-delay: .1s; } .slide.active .d:nth-child(3) .r { animation-delay: .2s; } .slide.active .d:nth-child(4) .r { animation-delay: .3s; } .slide.active .d:nth-child(5) .r { animation-delay: .4s; } .slide.active .d:nth-child(6) .r { animation-delay: .5s; } .slide.active .d:nth-child(7) .r { animation-delay: .6s; }
.r60 { background: conic-gradient(var(--mint) 0 60%, rgba(255,255,255,.1) 60% 100%); }
.r70 { background: conic-gradient(var(--mint) 0 70%, rgba(255,255,255,.1) 70% 100%); }
.r80 { background: conic-gradient(var(--mint) 0 80%, rgba(255,255,255,.1) 80% 100%); }
.r90 { background: conic-gradient(var(--mint) 0 90%, rgba(255,255,255,.1) 90% 100%); }
.r100 { background: var(--mint); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.perks li { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; font-size: 14.5px; font-weight: 600; opacity: 0; transform: translateY(8px); }
.perks span { font-size: 18px; }
.slide.active .perks li { animation: rise .4s ease forwards; }
.slide.active .perks li:nth-child(1) { animation-delay: .7s; } .slide.active .perks li:nth-child(2) { animation-delay: 1s; } .slide.active .perks li:nth-child(3) { animation-delay: 1.3s; } .slide.active .perks li:nth-child(4) { animation-delay: 1.6s; }

/* Final */
.s-end { text-align: center; align-items: center; }
.big-cta { position: relative; z-index: 4; margin-top: 22px; display: inline-flex; padding: 17px 28px; border-radius: 18px; background: var(--mint); color: var(--bg-2); font-weight: 800; font-size: 18px; text-decoration: none; animation: glowMint 1.5s ease-in-out infinite; }
@keyframes glowMint { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,201,160,.6); transform: scale(1); } 50% { box-shadow: 0 0 0 12px rgba(34,201,160,0); transform: scale(1.03); } }
.again { position: relative; z-index: 4; margin-top: 16px; color: var(--dim); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Áreas de toque */
.tap { position: absolute; z-index: 3; top: 70px; bottom: 96px; }
.tap-prev { left: 0; width: 32%; }
.tap-next { right: 0; width: 68%; }
.s-end.active ~ .tap { pointer-events: none; }

/* Botões fixos */
.actions { position: relative; z-index: 6; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
.act { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 8px; border-radius: 16px; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.act svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.act-app { background: var(--mint); color: var(--bg-2); }
.act-ig { background: linear-gradient(45deg, #F9A326 0%, #EE2A7B 50%, #8A3AB9 100%); color: #fff; }
.act-ig .dot { fill: #fff; stroke: none; }
.act-site { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
@media (max-width: 360px) { .act { font-size: 12.5px; gap: 4px; } .act svg { width: 16px; height: 16px; } }

@media (max-height: 700px) {
  .slide { padding-top: 12px; }
  h1 { font-size: 30px; } h2 { font-size: 27px; margin-bottom: 10px; }
  .cover-ring { width: 160px; margin: 10px auto 14px; }
  .note { margin-top: 10px; font-size: 13.5px; }
  .phone { padding: 10px; gap: 6px; }
  .field, .item { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .big-cta { animation: none; }
}
