/* Quantas Proteínas: site
   Identidade compartilhada com o app: creme, laranja de ação e uma cor por macro. */

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500-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: #FBF7F2;
  --paper: #FFFFFF;
  --sand: #F3EEE5;
  --line: #EAE2D4;
  --ink: #241F18;
  --ink-soft: #6F665A;
  --orange: #FF6B45;
  --orange-deep: #E25730;
  --protein: #FF3D82;
  --carb: #FFAE00;
  --fat: #8B6BFF;
  --teal: #14B8A6;
  --teal-deep: #0F8F81;
  --danger: #F0304F;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1120px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--fat); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 8px; }

/* Botões: o laranja é reservado para a ação principal */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px/1 var(--sans); padding: 16px 22px; border-radius: 14px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-small { padding: 11px 16px; font-size: 14px; border-radius: 11px; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 900; background: rgba(251,247,242,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Herói: título + prato interativo */
.hero { padding: 48px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); max-width: 11ch; }
.hero-lede { font-size: 19px; color: var(--ink-soft); max-width: 46ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero { padding-top: 28px; } }

.plate-demo { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 22px 22px 20px; box-shadow: 0 1px 2px rgba(36,31,24,.04), 0 18px 50px rgba(36,31,24,.08); }
.plate-stage { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin: 0 auto; }
.plate-stage svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .ring-bg { fill: none; stroke: var(--sand); stroke-width: 14; }
.ring .seg { fill: none; stroke-width: 14; stroke-linecap: butt; transition: stroke-dasharray .7s cubic-bezier(.3,1.2,.4,1), stroke-dashoffset .7s cubic-bezier(.3,1.2,.4,1); }
.ring .seg.p { stroke: var(--protein); }
.ring .seg.c { stroke: var(--carb); }
.ring .seg.f { stroke: var(--fat); }
.plate { position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #FFFFFF 0 55%, #F6F1E8 56% 64%, #FFFFFF 65% 100%); box-shadow: inset 0 0 0 1px var(--line), 0 10px 26px rgba(36,31,24,.10); }
.plate-food { position: absolute; font-size: clamp(30px, 8.5vw, 42px); line-height: 1; transform: translate(-50%, -50%); user-select: none; animation: dropIn .55s cubic-bezier(.3,1.6,.5,1) both; }
.plate-food.leaving { animation: dropOut .25s ease forwards; }
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -130%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes dropOut { to { opacity: 0; transform: translate(-50%, -50%) scale(.3); } }
.plate-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.plate-center .num { font: 700 clamp(44px, 12vw, 64px)/1 var(--mono); color: var(--protein); background: rgba(255,255,255,.86); padding: 4px 10px; border-radius: 14px; }
.plate-center .unit { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--ink-soft); background: rgba(255,255,255,.86); padding: 2px 8px; border-radius: 8px; }

.macro-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 16px; text-align: center; }
.macro-legend dt { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; gap: 6px; }
.macro-legend dt::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--ink-soft); }
.macro-legend .m-p dt::before { background: var(--protein); }
.macro-legend .m-c dt::before { background: var(--carb); }
.macro-legend .m-f dt::before { background: var(--fat); }
.macro-legend .m-k dt::before { background: var(--orange); border-radius: 50%; }
.macro-legend dd { margin: 2px 0 0; font: 700 17px/1.2 var(--mono); }

.food-picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.food-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--sans); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.food-chip:hover { border-color: var(--ink-soft); }
.food-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.food-chip .em { font-size: 17px; }
.plate-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 12.5px; color: var(--ink-soft); }
.link-btn { background: none; border: none; padding: 4px 0; font: 700 13px/1 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Seções */
.section { padding: 88px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--ink-soft); }

/* Como funciona: é um passo a passo de verdade, então numeração faz sentido */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { position: relative; padding: 0 28px 0 0; counter-increment: step; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font: 700 18px/1 var(--mono); color: #fff; margin-bottom: 18px; }
.step:nth-child(1)::before { background: var(--orange); }
.step:nth-child(2)::before { background: var(--teal); }
.step:nth-child(3)::before { background: var(--fat); }
.step h3 { font-size: 23px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 34px; } .step, .step + .step { padding: 0; border-left: none; } }

/* Recursos: lista em duas colunas, sem caixas idênticas */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; list-style: none; padding: 0; margin: 0; }
.feature { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 25px; }
.fi-1 { background: rgba(255,61,130,.12); } .fi-2 { background: rgba(20,184,166,.13); } .fi-3 { background: rgba(255,174,0,.16); }
.fi-4 { background: rgba(139,107,255,.13); } .fi-5 { background: rgba(255,107,69,.13); } .fi-6 { background: rgba(36,31,24,.07); }
.feature h3 { font-size: 19px; margin-bottom: 5px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 26px; } }

/* Baixar */
.download { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.qr-card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 22px; text-align: center; }
.qr-card img { width: 100%; height: auto; border-radius: 10px; image-rendering: pixelated; }
.qr-card p { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.qr-card .url { display: block; margin-top: 6px; font: 700 13px/1.4 var(--mono); color: var(--ink); word-break: break-all; }
.mobile-open { display: none; }
.is-mobile .qr-card { display: none; }
.is-mobile .mobile-open { display: block; margin-bottom: 28px; }
.is-mobile .download { grid-template-columns: 1fr; }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; gap: 32px; } .qr-card { max-width: 320px; } }

.os-tabs { display: inline-flex; gap: 4px; background: var(--sand); padding: 4px; border-radius: 14px; margin-bottom: 26px; }
.os-tab { font: 700 15px/1 var(--sans); padding: 12px 18px; border: none; border-radius: 10px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.os-tab[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,31,24,.12); }
.os-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: os; display: flex; flex-direction: column; gap: 16px; }
.os-panel li { counter-increment: os; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 17px; }
.os-panel li::before { content: counter(os); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--mono); }
.os-panel .key { display: inline-block; font: 700 14px/1 var(--sans); background: var(--paper); border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 8px; padding: 4px 8px; margin: 0 2px; white-space: nowrap; }
.os-note { margin-top: 22px; padding: 14px 16px; border-left: 4px solid var(--teal); background: rgba(20,184,166,.08); border-radius: 0 12px 12px 0; font-size: 15px; }

/* Planos */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; align-items: stretch; }
.plan { border-radius: 26px; padding: 30px; }
.plan-free { background: var(--paper); border: 1px solid var(--line); }
.plan-pro { background: var(--ink); color: var(--bg); }
.plan h3 { font-size: 26px; }
.plan .price { font: 700 36px/1.1 var(--mono); margin: 14px 0 4px; }
.plan .price-note { font-size: 14px; opacity: .75; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 16px; }
.plan li::before { content: '✓'; font-weight: 700; color: var(--teal); }
.plan-pro li::before { color: var(--carb); }
.badge-soon { display: inline-block; font-size: 13px; font-weight: 700; background: var(--carb); color: var(--ink); border-radius: 999px; padding: 4px 10px; margin-left: 8px; vertical-align: middle; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

.waitlist label.field { display: block; font-size: 14px; margin-bottom: 6px; }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input[type="email"] { flex: 1; min-width: 0; font: 500 16px/1 var(--sans); padding: 14px 14px; border-radius: 12px; border: 2px solid rgba(251,247,242,.25); background: rgba(251,247,242,.08); color: var(--bg); }
.waitlist input[type="email"]::placeholder { color: rgba(251,247,242,.5); }
.waitlist input[type="email"]:focus { outline: none; border-color: var(--carb); }
.waitlist .consent { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin-top: 14px; font-size: 13.5px; line-height: 1.45; opacity: .9; }
.waitlist .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--carb); }
.waitlist .consent a { color: var(--carb); }
.waitlist .hp { position: absolute; left: -5000px; }
.form-msg { margin-top: 10px; font-size: 14px; color: var(--carb); min-height: 1em; }
@media (max-width: 480px) { .waitlist .row { flex-direction: column; } }

/* Dúvidas */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 28px/1 var(--mono); color: var(--orange); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }
.faq details p + p { margin-top: -10px; }

/* Rodapé */
.footer { padding: 54px 0 40px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .legal { margin-top: 26px; font-size: 13px; max-width: 70ch; }
.footer button.link-btn { font-size: 14.5px; font-weight: 500; text-decoration: none; }
.footer button.link-btn:hover { text-decoration: underline; }

/* Páginas legais */
.doc { max-width: 760px; padding: 48px 0 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 10px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 34px; }
.doc h2 { font-size: 24px; margin: 38px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #3d362c; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 700; }
.doc .todo { background: rgba(255,174,0,.22); padding: 0 4px; border-radius: 4px; }
.doc .callout { margin: 18px 0; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 600px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc td { padding: 4px 0; border: none; } .doc tr { padding: 10px 0; border-bottom: 1px solid var(--line); } .doc td:first-child { font-weight: 700; } }

.center-page { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 60px 0; }
.center-page h1 { font-size: clamp(36px, 6vw, 60px); max-width: 14ch; }
.center-page p { font-size: 18px; color: var(--ink-soft); max-width: 50ch; }

/* Consentimento de cookies */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1500; max-width: 760px; margin: 0 auto; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 18px 20px; display: flex; gap: 18px; align-items: center; box-shadow: 0 16px 50px rgba(36,31,24,.3); }
.cookie-bar p { font-size: 14.5px; line-height: 1.5; flex: 1; }
.cookie-bar a { color: var(--carb); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.cookie-bar .btn { padding: 11px 14px; font-size: 14px; border-radius: 11px; }
.cookie-bar .btn-ghost { color: var(--bg); border-color: rgba(251,247,242,.5); }
.cookie-bar .btn-ghost:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 700px) { .cookie-bar { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: stretch; } .cookie-actions .btn { flex: 1; } }

.modal-backdrop { position: fixed; inset: 0; background: rgba(36,31,24,.5); z-index: 1600; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; } }
.modal { background: var(--bg); border-radius: 22px; width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; padding: 26px; }
.modal h2 { font-size: 24px; margin-bottom: 8px; }
.modal > p { color: var(--ink-soft); font-size: 15px; }
.pref { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pref h3 { font-size: 16px; margin-bottom: 4px; letter-spacing: 0; }
.pref p { font-size: 14px; color: var(--ink-soft); }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 15px; background: var(--line); transition: background-color .2s ease; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: .55; }
.switch input:focus-visible + .track { outline: 3px solid var(--fat); outline-offset: 2px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .plate-food, .plate-food.leaving { animation: none; }
  .ring .seg { transition: none; }
}

/* ---------- Laterais do herói (só em telas largas) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-rail { display: none; }
@media (min-width: 1560px) {
  .hero-rail { display: flex; flex-direction: column; gap: 18px; position: absolute; top: 40px; bottom: 40px; justify-content: center; width: min(236px, calc((100% - var(--wrap)) / 2 - 48px)); }
  .hero-rail-left { left: 24px; align-items: flex-start; }
  .hero-rail-right { right: 24px; align-items: flex-end; }
}
.rail-card { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 16px 16px 14px; box-shadow: 0 10px 30px rgba(36,31,24,.07); animation: floaty 7s ease-in-out infinite; }
.rail-card:nth-child(2) { animation-delay: -2.3s; }
.rail-card:nth-child(3) { animation-delay: -4.6s; }
.hero-rail-left .rail-card:nth-child(1) { transform: rotate(-3deg); }
.hero-rail-left .rail-card:nth-child(2) { transform: rotate(2deg); }
.hero-rail-left .rail-card:nth-child(3) { transform: rotate(-1.5deg); }
.hero-rail-right .rail-card:nth-child(1) { transform: rotate(2.5deg); }
.hero-rail-right .rail-card:nth-child(2) { transform: rotate(-2deg); }
.hero-rail-right .rail-card:nth-child(3) { transform: rotate(1.5deg); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.rail-food { display: flex; align-items: center; gap: 12px; }
.rail-food .em { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--sand); }
.rail-food .em.t-p { background: rgba(255,61,130,.12); }
.rail-food .em.t-c { background: rgba(255,174,0,.16); }
.rail-food .em.t-t { background: rgba(20,184,166,.13); }
.rail-food .em.t-f { background: rgba(139,107,255,.13); }
.rail-food .name { font-size: 13.5px; line-height: 1.3; color: var(--ink-soft); }
.rail-food .val { display: block; white-space: nowrap; margin-bottom: 2px; font: 700 21px/1.1 var(--mono); color: var(--protein); }
.rail-food .val small { font: 500 12px/1 var(--sans); color: var(--ink-soft); margin-left: 3px; }
.rail-tip { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rail-tip .tag { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--carb); padding: 5px 8px; border-radius: 6px; }
.rail-tip p { margin-top: 10px; font-size: 14.5px; line-height: 1.4; }
.rail-tip a { display: inline-block; margin-top: 10px; font-weight: 700; font-size: 13.5px; color: var(--carb); text-underline-offset: 3px; }

/* ---------- Tutorial: celular simulado (só animação, dados de exemplo) ---------- */
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .tour { grid-template-columns: 1fr; gap: 34px; justify-items: center; } }
.phone { position: relative; width: 300px; height: 610px; border-radius: 46px; background: #1d1913; padding: 12px; box-shadow: 0 30px 70px rgba(36,31,24,.25), inset 0 0 0 2px #3a332a; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #1d1913; z-index: 5; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: var(--bg); }
.scr { position: absolute; inset: 0; padding: 54px 16px 18px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.scr.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease, visibility 0s; }
.scr-title { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.scr-sub { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.demo-badge { position: absolute; top: 14px; right: 14px; z-index: 6; font: 700 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: rgba(255,255,255,.85); border: 1px solid var(--line); padding: 4px 6px; border-radius: 6px; }

/* 1. Câmera */
.scr-cam { background: #14110d; color: #fff; align-items: center; }
.scr-cam .scr-sub { color: rgba(255,255,255,.65); }
.viewfinder { position: relative; width: 100%; aspect-ratio: 1; margin-top: 26px; }
.viewfinder::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#fff,#fff) left top / 36px 3px no-repeat, linear-gradient(#fff,#fff) left top / 3px 36px no-repeat, linear-gradient(#fff,#fff) right top / 36px 3px no-repeat, linear-gradient(#fff,#fff) right top / 3px 36px no-repeat, linear-gradient(#fff,#fff) left bottom / 36px 3px no-repeat, linear-gradient(#fff,#fff) left bottom / 3px 36px no-repeat, linear-gradient(#fff,#fff) right bottom / 36px 3px no-repeat, linear-gradient(#fff,#fff) right bottom / 3px 36px no-repeat; opacity: .9; }
.demo-plate { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, #fff 0 56%, #F1EBE0 57% 65%, #fff 66%); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.demo-plate span { position: absolute; font-size: 38px; line-height: 1; transform: translate(-50%, -50%); }
.demo-plate .a { left: 50%; top: 30%; } .demo-plate .b { left: 30%; top: 56%; } .demo-plate .c { left: 70%; top: 56%; } .demo-plate .d { left: 50%; top: 76%; }
.shutter { margin-top: auto; width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
.shutter::after { content: ''; width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.scr-cam.is-active .shutter::after { animation: shutterPress 3.8s ease both; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.scr-cam.is-active .flash { animation: flash 3.8s ease both; }
@keyframes shutterPress { 0%, 52% { transform: scale(1); } 58% { transform: scale(.78); } 66%, 100% { transform: scale(1); } }
@keyframes flash { 0%, 56% { opacity: 0; } 60% { opacity: .9; } 76%, 100% { opacity: 0; } }

/* 2. Análise */
.scr-scan { align-items: center; justify-content: center; text-align: center; }
.scan-ring { position: relative; width: 180px; height: 180px; }
.scan-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scan-ring circle { fill: none; stroke-width: 10; }
.scan-ring .bg { stroke: var(--sand); }
.scan-ring .fg { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 490; stroke-dashoffset: 490; }
.scr-scan.is-active .scan-ring .fg { animation: ringFill 2.6s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.scan-ring .cutlery { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; }
.scr-scan.is-active .cutlery { animation: clink 3.8s ease both; }
@keyframes clink { 0%, 66% { transform: rotate(0); } 70% { transform: rotate(-14deg) scale(1.08); } 74% { transform: rotate(10deg); } 78% { transform: rotate(-12deg) scale(1.08); } 82%, 100% { transform: rotate(0); } }
.scan-msg { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.approve-pill { margin-top: 14px; font-weight: 700; font-size: 14px; color: #fff; background: var(--teal); padding: 9px 16px; border-radius: 999px; opacity: 0; }
.scr-scan.is-active .approve-pill { animation: popIn .4s 2.85s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

/* 3. Itens */
.items-total { margin: 14px 0 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255,61,130,.1); display: flex; align-items: baseline; gap: 8px; }
.items-total b { white-space: nowrap; font: 700 30px/1 var(--mono); color: var(--protein); }
.items-total span { font-size: 12.5px; color: var(--ink-soft); }
.item-row { display: grid; grid-template-columns: 34px 1fr auto 26px; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); opacity: 0; }
.item-row .em { font-size: 22px; }
.item-row .nm { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.item-row .nm small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-soft); }
.item-row .pv { font: 700 13px/1 var(--mono); color: var(--protein); }
.item-row .ok { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: transparent; }
.scr-items.is-active .item-row { animation: rowIn .35s ease both; }
.scr-items.is-active .item-row:nth-of-type(2) { animation-delay: .15s; }
.scr-items.is-active .item-row:nth-of-type(3) { animation-delay: .3s; }
.scr-items.is-active .item-row:nth-of-type(4) { animation-delay: .45s; }
.scr-items.is-active .item-row .ok { animation: tick .3s ease both; }
.scr-items.is-active .item-row:nth-of-type(1) .ok { animation-delay: 1.2s; }
.scr-items.is-active .item-row:nth-of-type(2) .ok { animation-delay: 1.6s; }
.scr-items.is-active .item-row:nth-of-type(3) .ok { animation-delay: 2s; }
.scr-items.is-active .item-row:nth-of-type(4) .ok { animation-delay: 2.4s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tick { to { background: var(--teal); border-color: var(--teal); color: #fff; } }
.demo-btn { margin-top: auto; text-align: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--orange); border-radius: 14px; padding: 14px; }
.scr-items.is-active .demo-btn { animation: press 3.8s ease both; }
@keyframes press { 0%, 82% { transform: scale(1); } 87% { transform: scale(.95); background: var(--orange-deep); } 92%, 100% { transform: scale(1); } }

/* 4. Resumo do dia */
.day-ring { position: relative; width: 150px; height: 150px; margin: 16px auto 6px; }
.day-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.day-ring circle { fill: none; stroke-width: 12; }
.day-ring .bg { stroke: var(--sand); }
.day-ring .fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 402; stroke-dashoffset: 402; }
.scr-day.is-active .day-ring .fg { animation: dayFill 1.4s .2s cubic-bezier(.3,1,.4,1) forwards; }
@keyframes dayFill { to { stroke-dashoffset: 119; } }
.day-ring .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day-ring .mid b { font: 700 26px/1 var(--mono); }
.day-ring .mid span { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.mbar { margin-top: 10px; }
.mbar .lbl { display: flex; justify-content: space-between; font-size: 12px; }
.mbar .lbl b { font-family: var(--mono); }
.mbar .track { height: 9px; border-radius: 6px; background: var(--sand); margin-top: 4px; overflow: hidden; }
.mbar .fill { height: 100%; border-radius: 6px; width: 0; }
.mbar.p .fill { background: var(--protein); } .mbar.c .fill { background: var(--carb); } .mbar.f .fill { background: var(--fat); }
.scr-day.is-active .mbar.p .fill { animation: w82 1.2s .5s ease forwards; }
.scr-day.is-active .mbar.c .fill { animation: w76 1.2s .65s ease forwards; }
.scr-day.is-active .mbar.f .fill { animation: w64 1.2s .8s ease forwards; }
@keyframes w82 { to { width: 82%; } } @keyframes w76 { to { width: 76%; } } @keyframes w64 { to { width: 64%; } }
.day-msg { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: rgba(20,184,166,.12); font-size: 13px; line-height: 1.4; opacity: 0; }
.day-msg b { color: var(--teal-deep); }
.scr-day.is-active .day-msg { animation: popIn .4s 1.8s ease both; }

/* 5. Histórico */
.chart { position: relative; display: flex; align-items: flex-end; gap: 9px; height: 230px; margin-top: 22px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.chart .goal { position: absolute; left: 0; right: 0; bottom: 75%; border-top: 2px dashed var(--orange); }
.chart .goal span { position: absolute; right: 0; top: -20px; font: 700 10.5px/1 var(--mono); color: var(--orange); }
.chart .bar { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--teal); height: 0; }
.chart .bar.over { background: var(--danger); }
.chart .bar.today { background: var(--orange); }
.scr-hist.is-active .bar { animation: grow .7s cubic-bezier(.3,1.3,.5,1) forwards; }
.scr-hist.is-active .bar:nth-child(3) { animation-delay: .06s; } .scr-hist.is-active .bar:nth-child(4) { animation-delay: .12s; }
.scr-hist.is-active .bar:nth-child(5) { animation-delay: .18s; } .scr-hist.is-active .bar:nth-child(6) { animation-delay: .24s; }
.scr-hist.is-active .bar:nth-child(7) { animation-delay: .3s; } .scr-hist.is-active .bar:nth-child(8) { animation-delay: .36s; }
.bar.h1 { --h: 68%; } .bar.h2 { --h: 72%; } .bar.h3 { --h: 84%; } .bar.h4 { --h: 61%; } .bar.h5 { --h: 74%; } .bar.h6 { --h: 70%; } .bar.h7 { --h: 52%; }
@keyframes grow { to { height: var(--h); } }
.chart-days { display: flex; gap: 9px; padding: 6px 2px 0; }
.chart-days span { flex: 1; text-align: center; font: 500 11px/1 var(--mono); color: var(--ink-soft); }
.hist-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 11.5px; color: var(--ink-soft); }
.hist-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hist-legend .l1 { background: var(--teal); } .hist-legend .l2 { background: var(--danger); } .hist-legend .l3 { background: var(--orange); }
.hist-note { margin-top: auto; font-size: 12.5px; color: var(--ink-soft); }

/* Lista de passos ao lado do celular */
.tour-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 520px; width: 100%; }
.tour-step button { width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: transparent; border: none; border-radius: 18px; padding: 14px 14px 16px; cursor: pointer; font: inherit; color: inherit; position: relative; overflow: hidden; }
.tour-step button:hover { background: rgba(36,31,24,.04); }
.tour-step .n { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font: 700 15px/1 var(--mono); color: var(--ink-soft); transition: all .2s ease; }
.tour-step .tt { display: block; font-weight: 700; line-height: 1.2; font-size: 18px; letter-spacing: -0.01em; margin-top: 2px; }
.tour-step .tp { font-size: 15px; color: var(--ink-soft); margin-top: 4px; display: none; }
.tour-step button[aria-current="step"] { background: var(--bg); }
.tour-step button[aria-current="step"] .n { background: var(--orange); border-color: var(--orange); color: #fff; }
.tour-step button[aria-current="step"] .tp { display: block; }
.tour-step .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); }
.tour.playing .tour-step button[aria-current="step"] .prog { animation: prog var(--tour-ms, 4200ms) linear forwards; }
@keyframes prog { to { width: 100%; } }
.tour-ctrl { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-left: 14px; }
.tour-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Conteúdos / blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(36,31,24,.10); }
.post-art { height: 150px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 46px; }
.post-art.a1 { background: rgba(255,61,130,.12); } .post-art.a2 { background: rgba(20,184,166,.13); } .post-art.a3 { background: rgba(255,174,0,.18); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-kicker { font: 700 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.post-card h3 { font-size: 21px; margin-top: 10px; letter-spacing: -0.015em; }
.post-card p { margin-top: 8px; font-size: 15.5px; color: var(--ink-soft); }
.post-more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 15px; color: var(--orange-deep); }
.section-foot { margin-top: 30px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head-row .section-head { margin-bottom: 0; }

/* Artigo */
.post-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 30px; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { color: var(--ink-soft); }
.doc .lead { font-size: 19px; color: var(--ink); }
.article-cta { margin: 40px 0 0; padding: 24px; border-radius: 22px; background: var(--ink); color: var(--bg); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.article-cta p { color: var(--bg); font-size: 17px; max-width: 40ch; }
.doc .sources { font-size: 14.5px; }
.doc .sources li { color: var(--ink-soft); }
.blog-list { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .rail-card { animation: none; }
  .scr, .scr * { animation-duration: .01ms !important; animation-delay: 0s !important; }
}
.doc.blog-list-page { padding-bottom: 20px; }
.section-foot.doc { padding: 10px 0 70px; }
.tour-caption { display: none; }
@media (max-width: 860px) {
  .tour > div:last-child { width: 100%; }
  .tour-steps { flex-direction: row; justify-content: center; gap: 10px; max-width: none; }
  .tour-step button { grid-template-columns: 40px; padding: 4px 4px 8px; border-radius: 50%; }
  .tour-step button[aria-current="step"] { background: transparent; }
  .tour-step .tt, .tour-step button[aria-current="step"] .tp { display: none; }
  .tour-step .prog { left: 8px; right: 8px; border-radius: 2px; }
  .tour-caption { display: block; min-height: 4.6em; margin-top: 14px; text-align: center; font-size: 16px; color: var(--ink-soft); }
  .tour-caption strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 2px; }
  .tour-ctrl { justify-content: center; padding-left: 0; margin-top: 6px; }
  .phone { width: 262px; height: 530px; border-radius: 42px; }
  .scr { padding-top: 48px; }
  .viewfinder { margin-top: 16px; }
  .chart { height: 190px; }
  .tour { gap: 18px; }
}
