/* ==========================================================================
   Seca Barriga · Desafio Barriga Trincada
   Paleta e tipografia da identidade visual (Montserrat + script Sacramento)
   ========================================================================== */

:root {
  /* marca */
  --terra: #C65D3A;          /* principal: superfícies e títulos grandes */
  --terra-ink: #A94C2C;      /* texto pequeno e botões sobre claro (contraste AA) */
  --terra-deep: #8E3E23;
  --brown: #2E211D;
  --brown-2: #3D2C26;
  --ivory: #F4EDE4;
  --paper: #FBF7F2;
  --white: #FFFDFB;
  --nude: #D9B8A6;
  --peach: #E7A58B;
  --peach-soft: #F2CDBB;
  --muted: #6B5750;
  --line: rgba(46, 33, 29, .12);
  --line-strong: rgba(46, 33, 29, .22);

  /* tipografia */
  --font: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;
  --fs-tag: .72rem;
  --fs-body: 1rem;
  --fs-q: clamp(1.45rem, 5.2vw, 2rem);

  /* forma e espaço */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --gutter: 20px;
  --topbar-h: 60px;
  --col: 560px;
  --wide: 1080px;

  /* movimento */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  --shadow-btn: 0 14px 30px -14px rgba(169, 76, 44, .75);
  --shadow-card: 0 1px 0 rgba(46, 33, 29, .04), 0 18px 40px -24px rgba(46, 33, 29, .35);

  --page-bg: var(--ivory);
  --page-fg: var(--brown);
}

body[data-tone="dark"] { --page-bg: var(--brown); --page-fg: var(--ivory); }
body[data-tone="terra"] { --page-bg: var(--terra-ink); --page-fg: var(--white); }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s var(--ease-out), color .45s var(--ease-out);
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.flip { transform: scaleX(-1); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--brown); color: var(--ivory); border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.noscript { padding: 24px; text-align: center; }

/* Grão sutil de papel sobre tudo (estático, sem custo de animação) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- movimento: entrada das telas ---------- */

@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes riseSoft { from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(6px); } }
@keyframes leave { to { opacity: 0; transform: translate3d(0, -10px, 0); } }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes pop { 0% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes run { to { stroke-dashoffset: -100; } }
@keyframes photoIn { from { transform: scale(1.08); } }
@keyframes arcIn { from { opacity: 0; transform: scale(.86); } }
@keyframes fadeIn { from { opacity: 0; } }

[data-r] { animation: rise .55s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 55ms + 40ms); }
@media (min-width: 641px) {
  [data-r] { animation-name: riseSoft; }
}

.js [data-reveal]:not(.in) { opacity: 0; transform: translate3d(0, 24px, 0); }
.js [data-reveal].in { animation: rise .75s var(--ease-out) backwards; }

/* ---------- decoração lateral (desktop) ---------- */

.decor { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; display: none; }
.decor-arc { position: absolute; border-radius: 50%; border: 70px solid var(--terra); opacity: .07; transition: opacity .5s var(--ease-out); }
.decor-a { width: 560px; height: 560px; left: -260px; bottom: -220px; }
.decor-b { width: 420px; height: 420px; right: -200px; top: 80px; border-width: 50px; }
body[data-tone="dark"] .decor-arc, body[data-tone="terra"] .decor-arc { border-color: var(--ivory); opacity: .05; }
@media (min-width: 1100px) {
  .decor { display: block; }
  body[data-screen="intro"] .decor, body[data-screen="final"] .decor { display: none; }
}

/* ---------- topo ---------- */

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--topbar-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--page-bg);
  transition: background-color .45s var(--ease-out);
}
body[data-screen="intro"] .topbar { display: none; }
body[data-screen="final"] .topbar { box-shadow: 0 1px 0 var(--line); }
.topbar-logo { width: 104px; transition: filter .45s var(--ease-out); }
body[data-tone="dark"] .topbar-logo, body[data-tone="terra"] .topbar-logo { filter: brightness(0) invert(1); }

.back {
  position: absolute; left: 10px; top: 8px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color .2s var(--ease-out), transform .15s var(--ease-out);
}
.back:active { transform: scale(.92); }
@media (hover: hover) { .back:hover { background: rgba(127, 90, 70, .12); } }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); overflow: hidden; }
body[data-tone="dark"] .progress, body[data-tone="terra"] .progress { background: rgba(255, 255, 255, .14); }
.progress-fill {
  display: block; height: 100%; background: var(--terra); transform-origin: left; transform: scaleX(0);
  transition: transform .6s var(--ease-out);
}
body[data-tone="terra"] .progress-fill { background: var(--ivory); }

/* ---------- palco e telas ---------- */

.stage { position: relative; z-index: 1; outline: none; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding-top: var(--topbar-h); }
.screen.is-leaving { position: absolute; inset: 0 0 auto; pointer-events: none; animation: leave .22s var(--ease-in) forwards; }
.screen[data-tone="dark"] { color: var(--ivory); }
.screen[data-tone="terra"] { color: var(--white); }

.wrap { width: min(100%, var(--col)); margin-inline: auto; padding: 28px var(--gutter) 24px; flex: 1; display: flex; flex-direction: column; }
.wrap.wide { width: min(100%, var(--wide)); }
.wrap.center { justify-content: center; align-items: center; text-align: center; }

.dock {
  position: sticky; bottom: 0; z-index: 5; width: min(100%, var(--col)); margin-inline: auto;
  padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--page-bg) 72%, transparent);
}

/* ---------- componentes ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 14px 24px; border: 0; border-radius: 16px;
  background: var(--terra-ink); color: var(--white); box-shadow: var(--shadow-btn);
  font-weight: 800; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .12s var(--ease-out), opacity .2s;
}
.btn-arrow { transition: transform .25s var(--ease-out); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.btn-xl { min-height: 62px; font-size: 1.06rem; border-radius: 18px; }
.btn-light { background: var(--ivory); color: var(--brown); box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .55); }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--terra-deep); }
  .btn-light:hover:not(:disabled) { background: var(--white); }
  .btn:hover:not(:disabled) .btn-arrow { transform: translateX(4px); }
}

.link-btn { background: none; border: 0; padding: 8px; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--peach-soft); color: var(--brown); font-size: .78rem; font-weight: 600; line-height: 1.3;
}

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }

.fineprint { margin: 18px 0 0; font-size: .76rem; line-height: 1.5; opacity: .72; }

/* ---------- cabeçalho das perguntas ---------- */

.q-head { margin-bottom: 24px; }
.q-tag { margin: 0 0 10px; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }
.q-tag.light, .screen[data-tone="dark"] .q-tag { color: var(--peach); }
.q-title { margin: 0; font-size: var(--fs-q); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; }
.q-sub { margin: 10px 0 0; color: var(--muted); font-size: .98rem; }
.screen[data-tone="dark"] .q-sub { color: rgba(244, 237, 228, .78); }
.nm { color: var(--terra-ink); }
.screen[data-tone="dark"] .nm { color: var(--peach); }
.screen[data-tone="terra"] .nm { color: var(--peach-soft); }

/* ---------- intro ---------- */

.scr-intro { padding-top: 0; }
.intro { flex: 1; display: flex; flex-direction: column; }
.intro-art { position: relative; height: 50svh; min-height: 330px; max-height: 520px; overflow: hidden; }
.intro-arc { display: none; position: absolute; aspect-ratio: 1; border-radius: 50%; background: var(--terra); animation: arcIn 1.1s var(--ease-out) backwards; }
.intro-photo {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.intro-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; animation: photoIn 1.4s var(--ease-out) backwards; }
.intro-script {
  position: absolute; right: 18px; bottom: 26%; margin: 0; max-width: 11ch; text-align: right;
  font-family: var(--script); font-size: 2.1rem; line-height: .95; color: var(--white);
  text-shadow: 0 2px 18px rgba(46, 33, 29, .55); transform: rotate(-7deg);
  animation: fadeIn 1s var(--ease-out) .9s backwards;
}
.intro-copy { position: relative; z-index: 2; margin-top: -54px; padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom)); width: min(100%, var(--col)); margin-inline: auto; }
.intro-logo { width: 132px; margin-bottom: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-ink); }
.eyebrow-inf { width: 34px; height: 17px; fill: none; stroke: var(--terra); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; animation: draw 1.8s var(--ease-out) .35s backwards; }
.intro-title { margin: 0; font-size: clamp(2rem, 8.6vw, 3.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; }
.intro-lead { margin: 14px 0 24px; color: var(--muted); font-size: 1.02rem; max-width: 44ch; }
.intro-proof { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: .86rem; color: var(--muted); }
.intro-proof b { color: var(--brown); }
.intro-proof-sep { margin: 0 6px; }
.intro-proof-avs { display: flex; flex: none; }
.intro-proof-avs i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ivory);
  background: var(--peach-soft); color: var(--terra-deep); font-style: normal; font-weight: 800; font-size: .78rem;
}
.intro-proof-avs i + i { margin-left: -9px; }
.intro-proof-avs i:nth-child(2) { background: var(--nude); }
.intro-proof-avs i:nth-child(3) { background: var(--terra); color: var(--white); }
.intro-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .82rem; color: var(--muted); }
.intro-meta li { display: flex; align-items: center; gap: 5px; }
.intro-meta li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--nude); margin-right: 12px; }
.intro-meta b { color: var(--brown); }

@media (min-width: 960px) {
  .intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: min(100%, 1180px); margin-inline: auto; padding: 32px 40px; gap: 56px; }
  .intro-copy { order: -1; margin: 0; padding: 0; width: auto; }
  .intro-logo { width: 170px; margin-bottom: 36px; }
  .intro-art { height: min(86vh, 760px); max-height: none; overflow: visible; }
  .intro-arc { display: block; width: 115%; left: 10%; top: 8%; }
  .intro-photo { inset: 0 6% 0 10%; border-radius: 320px 320px 36px 36px; -webkit-mask-image: none; mask-image: none; box-shadow: 0 40px 80px -40px rgba(46, 33, 29, .55); }
  .intro-script { z-index: 2; right: auto; left: 16%; bottom: 7%; font-size: 3rem; max-width: 9ch; text-align: left; }
}

/* ---------- opções ---------- */

.opts { display: grid; gap: 10px; }
.opts.is-grid { grid-template-columns: 1fr; }
@media (min-width: 480px) { .opts.is-grid { grid-template-columns: 1fr 1fr; } }

.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px 14px 18px;
  text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .12s var(--ease-out);
}
.opt:active { transform: scale(.985); }
@media (hover: hover) { .opt:hover { border-color: var(--nude); box-shadow: var(--shadow-card); } }
.opt[aria-checked="true"], .opt[aria-pressed="true"] { border-color: var(--terra); background: var(--white); box-shadow: 0 0 0 4px rgba(198, 93, 58, .12); }

.opt-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ivory); color: var(--terra-ink); flex: none; transition: background-color .2s, color .2s; }
.opt[aria-pressed="true"] .opt-ico, .opt[aria-checked="true"] .opt-ico { background: var(--terra); color: var(--white); }
.opt-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.opt-l { font-weight: 600; line-height: 1.3; }
.opt-d { font-size: .84rem; color: var(--muted); }

.opt-mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: 1.5px solid var(--line-strong); color: var(--white);
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.opt-mark.is-round { border-radius: 50%; }
.opt-mark .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.opt-mark .ck, .proc-ico .ck { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s var(--ease-out) .06s; }
.opt[aria-checked="true"] .opt-mark, .opt[aria-pressed="true"] .opt-mark { background: var(--terra-ink); border-color: var(--terra-ink); animation: pop .38s var(--ease-pop); }
.opt[aria-checked="true"] .ck, .opt[aria-pressed="true"] .ck { stroke-dashoffset: 0; }

/* ---------- campos ---------- */

.field { display: flex; flex-direction: column; gap: 12px; }
.input {
  width: 100%; min-height: 60px; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line-strong);
  background: var(--white); color: var(--brown); font: 600 1.12rem var(--font);
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out);
}
.input::placeholder { color: rgba(107, 87, 80, .6); font-weight: 400; }
.input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(198, 93, 58, .14); }
.field-err { margin: -4px 0 0; font-size: .86rem; color: var(--terra-deep); font-weight: 600; animation: rise .3s var(--ease-out); }
.field-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.field-note .ico { width: 16px; height: 16px; }

/* ---------- sliders ---------- */

.measure { padding: 8px 18px; }
.slider { padding: 14px 0; }
.slider + .slider { border-top: 1px solid var(--line); }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.slider-head label { font-weight: 600; color: var(--muted); }
.slider-out { font-size: 1rem; color: var(--muted); }
.slider-out b { font-size: 2rem; font-weight: 800; color: var(--brown); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.slider-row { display: flex; align-items: center; gap: 12px; }
.step-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white);
  font-size: 1.3rem; font-weight: 600; line-height: 1; cursor: pointer; color: var(--brown);
  transition: transform .12s var(--ease-out), border-color .2s;
}
.step-btn:active { transform: scale(.9); }
@media (hover: hover) { .step-btn:hover { border-color: var(--terra); } }

.range { -webkit-appearance: none; appearance: none; flex: 1; height: 44px; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--terra) var(--p), var(--nude) var(--p)); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--nude); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--terra); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%;
  background: var(--white); border: 7px solid var(--terra-ink); box-shadow: 0 6px 16px -6px rgba(46, 33, 29, .5);
  transition: transform .15s var(--ease-out);
}
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 7px solid var(--terra-ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(231, 165, 139, .6); }

.bmi { margin-top: 14px; padding: 18px; }
.bmi-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bmi-k { font-weight: 600; color: var(--muted); }
.bmi-v { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bmi-cat { margin-left: auto; }
.bmi-cat[data-k="normal"] { background: #EAD9C9; }
.bmi-cat[data-k="sobrepeso"] { background: var(--peach-soft); }
.bmi-cat[data-k^="obesidade"] { background: var(--terra-ink); color: var(--white); }
.bmi-scale { position: relative; height: 24px; margin: 16px 9px 4px; container-type: inline-size; }
.bmi-track {
  position: absolute; inset: 8px 0; border-radius: 99px;
  background: linear-gradient(to right, var(--nude) 0 14%, #EAD9C9 14% 40%, var(--peach) 40% 60%, var(--terra) 60% 100%);
}
/* Marcador de largura zero movido em unidades do container: não gera overflow horizontal. */
.bmi-marker { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transform: translateX(calc(var(--m, .3) * 100cqw)); transition: transform .35s var(--ease-out); }
.bmi-marker span { position: absolute; left: 0; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); border: 5px solid var(--brown); box-shadow: 0 4px 10px -3px rgba(46, 33, 29, .5); }
.bmi-ticks { position: relative; height: 18px; margin: 0 9px; font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bmi-ticks span { position: absolute; transform: translateX(-50%); }
.bmi-ticks span:nth-child(1) { left: 0; transform: none; }
.bmi-ticks span:nth-child(2) { left: 14%; }
.bmi-ticks span:nth-child(3) { left: 40%; }
.bmi-ticks span:nth-child(4) { left: 60%; }
.bmi-ticks span:nth-child(5) { left: 100%; transform: translateX(-100%); }

.goal { padding: 20px 18px; }
.goal-now { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.goal-now b { color: var(--brown); }
.goal-main { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 6px; flex-wrap: wrap; }
.goal-num { margin: 0; font-size: 1.2rem; color: var(--muted); }
.goal-val { font-size: 3.4rem; font-weight: 800; color: var(--brown); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.goal-delta { background: var(--terra-ink); color: var(--white); font-size: .9rem; }
.goal-note { margin: 10px 0 0; text-align: center; color: var(--muted); }
.goal-limits { display: flex; justify-content: space-between; padding: 0 52px; font-size: .74rem; color: var(--muted); }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day {
  height: 56px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 1.15rem; font-weight: 800; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background-color .2s var(--ease-out), color .2s, border-color .2s, transform .3s var(--ease-pop);
}
.day[aria-checked="true"] { background: var(--terra-ink); border-color: var(--terra-ink); color: var(--white); transform: translateY(-4px); box-shadow: var(--shadow-btn); }
.day:active { transform: scale(.94); }
.days-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: .74rem; color: var(--muted); }
.days-msg { margin: 20px 0 0; padding: 16px 18px; font-weight: 600; }
.days-msg.is-bump { animation: rise .35s var(--ease-out); }

/* ---------- processando ---------- */

.scr-processing .wrap { gap: 6px; }
.loader svg { width: 150px; height: 75px; overflow: visible; }
.lp-track, .lp-run { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.lp-track { stroke: rgba(244, 237, 228, .12); }
.lp-run { stroke: var(--peach); stroke-dasharray: 22 78; animation: run 1.5s linear infinite; }
.proc-pct { margin: 8px 0 2px; font-size: .95rem; color: rgba(244, 237, 228, .7); font-variant-numeric: tabular-nums; }
.proc-pct b { font-size: 1.3rem; color: var(--ivory); }
.scr-processing .q-title { margin-bottom: 20px; }
.proc-steps { width: 100%; max-width: 360px; margin: 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 12px; }
.proc-step { display: flex; align-items: center; gap: 12px; opacity: .45; transition: opacity .3s var(--ease-out); }
.proc-step[data-state="run"], .proc-step[data-state="done"] { opacity: 1; }
.proc-ico { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(244, 237, 228, .25); flex: none; transition: background-color .25s, border-color .25s; }
.proc-ico .ico { position: absolute; width: 15px; height: 15px; stroke-width: 2.6; color: var(--brown); }
.spin { position: absolute; inset: -1.5px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--peach); opacity: 0; }
.proc-step[data-state="run"] .spin { opacity: 1; animation: spin .8s linear infinite; }
.proc-step[data-state="done"] .proc-ico { background: var(--peach); border-color: var(--peach); }
.proc-step[data-state="done"] .ck { stroke-dashoffset: 0; }

/* ---------- pílula ---------- */

.pill-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(231, 165, 139, .16); color: var(--peach); font-size: var(--fs-tag); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.pill-tag .ico { width: 18px; height: 18px; }
.pill-fig { overflow: hidden; margin-bottom: 22px; aspect-ratio: 16 / 11; border-radius: 46% 54% 38% 62% / 40% 36% 64% 60%; }
.pill-fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: photoIn 1.2s var(--ease-out) backwards; }
.pill-stat { margin: 0 0 22px; padding: 16px 18px; border-radius: var(--r); background: rgba(244, 237, 228, .06); border: 1px solid rgba(244, 237, 228, .14); }
.pill-stat-n { margin: 0; }
.pill-stat-n b { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--peach); font-variant-numeric: tabular-nums; }
.pill-stat-l { margin: 6px 0 0; font-weight: 600; font-size: .98rem; line-height: 1.45; }
.pill-stat-s { margin: 8px 0 0; font-size: .72rem; line-height: 1.4; color: rgba(244, 237, 228, .6); }
.pill-title { margin: 0 0 14px; font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.pill-p { margin: 0 0 12px; font-size: 1.04rem; color: rgba(244, 237, 228, .86); }

/* ---------- mensagem da Julia (depois do IMC) ---------- */

@keyframes pushIn { 0% { opacity: 0; transform: translate3d(0, -40px, 0) scale(.94); } 70% { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes markIn { from { opacity: 0; transform: translateX(0); } }
@keyframes typingDot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }

.btn.is-quiet { background: transparent; color: var(--terra-ink); box-shadow: none; border: 1.5px solid var(--line-strong); }
@media (hover: hover) { .btn.is-quiet:hover:not(:disabled) { background: var(--paper); } }

.push {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 22px 44px -26px rgba(46, 33, 29, .5);
}
.scr-julia .push[data-r] { animation: pushIn .75s var(--ease-out) backwards; }
.push-av { position: relative; flex: none; width: 48px; height: 48px; }
.push-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--peach-soft); }
.push-av::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--terra); border: 2px solid var(--white); }
.push-txt { flex: 1; min-width: 0; }
.push-top { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: .86rem; }
.push-top span { color: var(--muted); font-size: .76rem; }
.push-msg { margin: 2px 0 0; font-size: .95rem; line-height: 1.4; font-weight: 600; }

.chat { list-style: none; margin: 0; padding: 0 0 8px; display: grid; gap: 8px; justify-items: start; }
.msg {
  max-width: 88%; padding: 12px 15px; border-radius: 6px 20px 20px 20px;
  background: var(--white); border: 1px solid var(--line); font-size: .98rem; line-height: 1.5;
  transform-origin: top left; animation: msgIn .42s var(--ease-out) backwards;
}
.msg + .msg:not(.msg-card) { border-radius: 20px; }
.msg-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingDot 1s var(--ease-out) infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }

.msg-card { max-width: 100%; width: 100%; padding: 18px; border-radius: 22px; box-shadow: var(--shadow-card); }
.bfc-k { margin: 0; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.bfc-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.bfc-bf { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.bfc-cat { margin-left: auto; }
.bfc-cat[data-k="atleta"], .bfc-cat[data-k="fitness"] { background: #EAD9C9; }
.bfc-cat[data-k="acima"] { background: var(--terra-ink); color: var(--white); }

.bfc-bar { display: flex; gap: 2px; height: 22px; }
.bfc-lean, .bfc-fat { height: 100%; transform-origin: left; animation: grow .9s var(--ease-out) .25s backwards; }
.bfc-lean { flex: 0 0 var(--lean, 60%); background: var(--brown); border-radius: 6px 0 0 6px; }
.bfc-fat { flex: 1; background: var(--terra); border-radius: 0 6px 6px 0; animation-delay: .45s; }
.bfc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 18px; }
.bfc-legend p { display: flex; gap: 8px; margin: 0; font-size: .86rem; line-height: 1.35; }
.bfc-legend b { display: block; font-size: 1.05rem; }
.bfc-legend small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.sw { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 3px; }
.sw-lean { background: var(--brown); }
.sw-fat { background: var(--terra); }

.bfc-scale { position: relative; height: 44px; margin: 0 8px; container-type: inline-size; }
.bfc-track {
  position: absolute; left: 0; right: 0; bottom: 6px; height: 8px; border-radius: 99px;
  background: linear-gradient(to right, var(--nude) 0 11.4%, #EAD9C9 11.4% 42.9%, var(--peach) 42.9% 62.9%, var(--terra) 62.9% 100%);
}
.bfc-flag, .bfc-you { position: absolute; left: 0; top: 0; bottom: 0; width: 0; pointer-events: none; }
.bfc-flag { transform: translateX(calc(var(--flag, .34) * 100cqw)); }
.bfc-you { transform: translateX(calc(var(--you, .5) * 100cqw)); animation: markIn 1s var(--ease-out) .6s backwards; }
.bfc-flag::before { content: ""; position: absolute; left: -1px; bottom: 0; width: 2px; height: 22px; background: var(--brown); }
.bfc-flag em { position: absolute; left: 0; top: 0; transform: translateX(-50%); font-style: normal; font-size: .68rem; font-weight: 600; white-space: nowrap; color: var(--muted); }
.msg-card.is-close .bfc-flag em { display: none; }
.bfc-you::before { content: ""; position: absolute; left: 0; bottom: 1px; width: 18px; height: 18px; transform: translateX(-50%); border-radius: 50%; background: var(--white); border: 5px solid var(--terra-ink); box-shadow: 0 4px 10px -3px rgba(46, 33, 29, .5); }
.bfc-you em { position: absolute; left: 0; bottom: 22px; transform: translateX(-50%); font-style: normal; font-size: .72rem; font-weight: 800; color: var(--terra-ink); }
.bfc-ticks { position: relative; height: 16px; margin: 4px 8px 0; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bfc-ticks span { position: absolute; }
.bfc-ticks span:first-child { left: 0; }
.bfc-ticks span:last-child { right: 0; }
.bfc-tick-goal { left: calc(var(--flag, .34) * 100%); transform: translateX(-50%); }
.bfc-src { margin: 12px 0 0; font-size: .72rem; line-height: 1.45; color: var(--muted); }

/* ---------- meta (gráfico) ---------- */

.chart { padding: 16px 14px 12px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.ch-line { fill: none; stroke: var(--terra); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; animation: draw 1.4s var(--ease-out) .35s backwards; }
.ch-area { animation: fadeIn 1s var(--ease-out) .9s backwards; }
.ch-dot { fill: var(--white); stroke: var(--brown); stroke-width: 4; }
.ch-end { fill: var(--terra); stroke: var(--white); transform-box: fill-box; transform-origin: center; animation: pop .5s var(--ease-pop) 1.5s backwards; }
.ch-lbl { font: 800 14px var(--font); fill: var(--brown); }
.ch-lbl-end { fill: var(--terra-ink); }
.ch-ax { font: 600 11px var(--font); fill: var(--muted); }
.chart figcaption { margin-top: 8px; font-size: .78rem; color: var(--muted); }

.milestones { list-style: none; margin: 22px 0 0; padding: 0 0 0 22px; position: relative; display: grid; gap: 16px; }
.milestones::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--nude); border-radius: 2px; }
.milestones li { position: relative; display: flex; flex-direction: column; }
.milestones li::before { content: ""; position: absolute; left: -22px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); border: 3px solid var(--terra); }
.milestones b { font-size: .9rem; }
.milestones span { color: var(--muted); font-size: .94rem; }

/* ---------- capítulo ---------- */

.chap-inf { width: 180px; height: 90px; margin-bottom: 20px; fill: none; stroke: rgba(255, 253, 251, .35); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 100; animation: draw 1.6s var(--ease-out) .1s backwards; }
.chap-tag { margin: 0 0 12px; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.chap-title { margin: 0; font-size: clamp(1.9rem, 7.4vw, 2.9rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.chap-body { margin: 16px 0 0; font-size: 1.05rem; max-width: 40ch; opacity: .92; }

/* ---------- parcial ---------- */

.habit-chips { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.hchip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.hchip .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; stroke-width: 2.6; flex: none; }
.hchip-l { font-weight: 600; flex: 1; }
.hchip-s { font-size: .8rem; font-weight: 600; }
.is-ok .ico { background: var(--brown); color: var(--ivory); }
.is-atencao .ico { background: var(--peach-soft); color: var(--terra-deep); }
.is-contra .ico { background: var(--terra-ink); color: var(--white); }
.hchip.is-contra .hchip-s { color: var(--terra-ink); }
.hchip.is-ok .hchip-s, .hchip.is-atencao .hchip-s { color: var(--muted); }

/* ---------- história ---------- */

.story { flex: 1; }
.story-hero { width: min(100%, var(--col)); margin-inline: auto; padding: 20px var(--gutter) 0; }
.story-photo { position: relative; overflow: hidden; border-radius: 220px 220px 28px 28px; aspect-ratio: 4 / 4.6; background: var(--nude); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: photoIn 1.4s var(--ease-out) backwards; }
.story-intro { padding-top: 22px; }
.story-title { margin: 0; font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
.story-body { width: min(100%, var(--col)); margin-inline: auto; padding: 8px var(--gutter) 20px; }
.story-body p { margin: 0 0 16px; font-size: 1.06rem; line-height: 1.7; }
.story-body p:first-child { font-weight: 600; font-size: 1.14rem; }
.script-quote { margin: 26px 0; font-family: var(--script); font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; color: var(--terra-ink); transform: rotate(-3deg); }
.script-quote.light { color: var(--peach); }
.story-photo2 { margin: 8px 0 26px; overflow: hidden; border-radius: 28px; aspect-ratio: 4 / 3; }
.story-photo2 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.story-body .signature { margin-top: 8px; font-family: var(--script); font-size: 2.6rem; font-weight: 400; line-height: 1; color: var(--terra-ink); }

@media (min-width: 960px) {
  .story { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; width: min(100%, var(--wide)); margin-inline: auto; padding: 32px 40px 0; }
  .story-hero { position: sticky; top: calc(var(--topbar-h) + 24px); align-self: start; padding: 0; width: auto; }
  .story-photo { aspect-ratio: auto; height: min(46vh, 480px); }
  .story-title { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
  .story-body { padding: 4px 0 20px; width: auto; }
  .scr-story .dock { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; width: min(100%, var(--wide)); padding-inline: 40px; }
  .scr-story .dock .btn { grid-column: 2; }
}

/* ---------- carrossel de resultados ---------- */

.carousel { margin-inline: calc(var(--gutter) * -1); }
.car-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 18px; scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.tcard { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); }
.tcard-img { aspect-ratio: 1; overflow: hidden; background: var(--nude); }
.tcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease-out); }
@media (hover: hover) { .tcard:hover .tcard-img img { transform: scale(1.04); } }
.tcard-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tcard-body .chip { align-self: flex-start; }
.tcard-q { margin: 0; font-size: .96rem; line-height: 1.55; flex: 1; }
.tcard-n { margin: 0; font-weight: 800; font-size: .88rem; color: var(--terra-ink); }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 16px; }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--brown); display: grid; place-items: center; cursor: pointer; transition: transform .12s var(--ease-out), border-color .2s; }
.car-btn:active { transform: scale(.92); }
@media (hover: hover) { .car-btn:hover { border-color: var(--terra); } }
.car-count { min-width: 56px; text-align: center; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (min-width: 700px) {
  .car-track { grid-auto-columns: 300px; }
  .carousel.is-compact .car-track { grid-auto-columns: 260px; }
}

/* ==========================================================================
   Página final: diagnóstico, protocolo e oferta
   ========================================================================== */

.scr-final { padding-top: var(--topbar-h); }
.final { flex: 1; }
.f-sec { padding-block: 56px; }
.f-inner { width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }
.f-inner.narrow { width: min(100%, 720px); }
.f-inner.center { text-align: center; }
@media (min-width: 960px) { .f-sec { padding-block: 92px; } .f-inner { padding-inline: 40px; } }

.f-h2 { margin: 0 0 18px; font-size: clamp(1.7rem, 5.6vw, 2.7rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.f-p { margin: 0 0 14px; font-size: 1.05rem; line-height: 1.7; }

/* diagnóstico */
.f-result { padding-top: 36px; }
.result-grid { display: grid; gap: 22px; justify-items: start; margin-bottom: 36px; }
.gauge-wrap { position: relative; width: 168px; }
.gauge { width: 100%; height: auto; transform: rotate(-90deg); }
.g-track, .g-fill { fill: none; stroke-width: 10; }
.g-track { stroke: rgba(217, 184, 166, .5); }
.g-fill { stroke: var(--terra); stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); transition: stroke-dashoffset 1.5s var(--ease-out); }
.gauge-wrap.is-on .g-fill { stroke-dashoffset: var(--off); }
.gauge-num { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; gap: 2px; }
.gauge-num b { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gauge-num span { font-size: 1rem; color: var(--muted); margin-top: 18px; }
.gauge-l { margin: 8px 0 0; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.f-title { margin: 0; font-size: clamp(1.9rem, 6.4vw, 3rem); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.f-lead { margin: 14px 0 0; font-size: 1.06rem; line-height: 1.65; max-width: 56ch; color: var(--brown-2); }
@media (min-width: 860px) {
  .result-grid { grid-template-columns: 240px 1fr; align-items: center; gap: 56px; }
  .gauge-wrap { width: 240px; }
}

.habit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .habit-list { grid-template-columns: 1fr 1fr; } }
.hrow { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.hrow-ico .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; stroke-width: 2.6; }
.hrow-top { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.hrow-top span { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.hrow.is-contra .hrow-top span { color: var(--terra-ink); }
.hrow.is-ok .hrow-top span, .hrow.is-atencao .hrow-top span { color: var(--muted); }
.hrow-t { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* protocolo */
.f-proto { background: linear-gradient(180deg, var(--ivory), #EADCCD); }
.proto { max-width: 880px; margin-inline: auto; background: var(--white); border-radius: var(--r-lg); box-shadow: 0 40px 80px -48px rgba(46, 33, 29, .55); overflow: hidden; padding: 0 20px 26px; }
@media (min-width: 760px) { .proto { padding: 0 40px 40px; } }
.proto-head { position: relative; overflow: hidden; margin: 0 -20px 24px; padding: 28px 20px; background: var(--terra-ink); color: var(--white); }
@media (min-width: 760px) { .proto-head { margin: 0 -40px 32px; padding: 36px 40px; } }
.proto-inf { position: absolute; right: -40px; top: 50%; width: 260px; height: 130px; transform: translateY(-50%); fill: none; stroke: rgba(255, 253, 251, .14); stroke-width: 10; }
.proto-k { margin: 0; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.proto-name { margin: 4px 0 2px; font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.proto-why { margin: 0; font-family: var(--script); font-size: 1.9rem; line-height: 1.1; color: var(--peach-soft); }
.proto-h { margin: 28px 0 12px; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }

.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { display: flex; flex-direction: column; padding: 14px; border-radius: 16px; background: var(--ivory); }
.metric span { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.metric b { margin-top: 4px; font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.metric small { font-size: .78rem; color: var(--muted); }

.prio { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 10px; }
.prio li { counter-increment: p; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: start; }
.prio li::before { content: counter(p); grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--terra); color: var(--white); font-weight: 800; }
.prio b { font-size: .95rem; }
.prio span { color: var(--muted); font-size: .95rem; }
.proto-p { margin: 0; color: var(--brown-2); }

.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wday { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--ivory); border-left: 5px solid var(--terra); }
.wday.is-cardio { border-left-color: var(--peach); }
.wday.is-forca { border-left-color: var(--brown); }
.wday.is-leve { border-left-color: var(--nude); }
.wday.is-descanso { background: transparent; border: 1.5px dashed var(--line-strong); border-left-width: 5px; color: var(--muted); }
.wday-d { font-weight: 800; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; }
.wday-t { font-weight: 600; font-size: .94rem; line-height: 1.3; }
.wday-m { font-size: .8rem; color: var(--muted); text-align: right; }
@media (min-width: 900px) {
  .week { grid-template-columns: repeat(7, 1fr); }
  .wday { grid-template-columns: 1fr; align-content: start; min-height: 150px; border-left-width: 0; border-top: 5px solid var(--terra); padding: 14px 12px; gap: 6px; }
  .wday.is-cardio { border-top-color: var(--peach); }
  .wday.is-forca { border-top-color: var(--brown); }
  .wday.is-leve { border-top-color: var(--nude); }
  .wday.is-descanso { border-left-width: 1.5px; border-top-width: 5px; }
  .wday-m { text-align: left; margin-top: auto; }
}

.proto-cols { display: grid; gap: 0 32px; }
@media (min-width: 760px) { .proto-cols { grid-template-columns: 1fr 1fr; } }
.proto-challenge { display: flex; gap: 12px; align-items: flex-start; margin: 28px 0 0; padding: 16px 18px; border-radius: 16px; border: 1.5px dashed var(--terra); background: #FFF6F1; }
.proto-challenge .ico { color: var(--terra); width: 30px; height: 30px; }

/* ponte */
.f-bridge { background: var(--brown); color: var(--ivory); }
.bridge-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .bridge-grid { grid-template-columns: .8fr 1fr; gap: 64px; } }

/* colagem com as duas fotos da Julia */
@keyframes floatIn { from { opacity: 0; transform: translate3d(28px, 36px, 0) rotate(12deg); } }
.collage { position: relative; width: min(100%, 440px); margin: 0 auto 28px; padding: 0 14% 22% 0; }
.collage-main { overflow: hidden; aspect-ratio: 4 / 5; border-radius: 220px 220px 28px 28px; background: var(--brown-2); }
.collage-main img, .collage-float img { width: 100%; height: 100%; object-fit: cover; }
.collage-main img { object-position: 50% 30%; }
.collage-float {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 24px; border: 6px solid var(--brown); transform: rotate(5deg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-out);
}
.collage.in .collage-float { animation: floatIn .9s var(--ease-out) .3s backwards; }
@media (hover: hover) { .collage:hover .collage-float { transform: rotate(1deg) translateY(-6px); } }
.collage-script {
  position: absolute; z-index: 3; left: 0; bottom: -24px; margin: 0; max-width: 9ch;
  font-family: var(--script); font-size: clamp(1.9rem, 7vw, 2.5rem); line-height: .95; color: var(--peach);
  transform: rotate(-7deg);
}
.collage.in .collage-script { animation: fadeIn .8s var(--ease-out) .7s backwards; }
.bridge-logo { width: 190px; margin-top: 18px; filter: brightness(0) invert(1); opacity: .95; }
.f-bridge .nm { color: var(--peach); }

/* packs */
.packs { display: grid; gap: 12px; margin-top: 10px; }
@media (min-width: 760px) { .packs { grid-template-columns: 1fr 1fr; } .pack.is-bonus { grid-column: 1 / -1; } }
.pack {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; border-radius: 22px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) { .pack:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(46, 33, 29, .45); } }
.pack-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--terra-ink); color: var(--white); }
.pack-ico .ico { width: 26px; height: 26px; }
.pack-tag { margin: 0; font-size: var(--fs-tag); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.pack-t { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; padding-right: 76px; }
.pack-d { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.pack-use { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .86rem; font-weight: 600; }
.pack-use .ico { width: 18px; height: 18px; color: var(--terra); stroke-width: 2.4; }
.pack-count { position: absolute; right: 18px; top: 18px; padding: 5px 12px; border-radius: 999px; background: var(--brown); color: var(--ivory); font-size: .78rem; font-weight: 800; }
.pack.is-bonus { background: linear-gradient(120deg, var(--terra-ink), var(--terra)); color: var(--white); border-color: transparent; }
.pack.is-bonus .pack-ico { background: var(--ivory); color: var(--terra-ink); }
.pack.is-bonus .pack-tag, .pack.is-bonus .pack-d { color: rgba(255, 253, 251, .9); }
.pack.is-bonus .pack-use .ico { color: var(--peach-soft); }
.pack.is-bonus .pack-count { background: var(--ivory); color: var(--terra-ink); }

.pillars { list-style: none; margin: 28px 0 0; padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-radius: 24px; background: var(--brown); color: var(--ivory); }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(4, 1fr); padding: 26px 32px; } }
.pillars li { display: flex; align-items: center; gap: 10px; font-size: .84rem; font-weight: 600; line-height: 1.3; }
@media (min-width: 860px) { .pillars li { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; } }
.pillars .ico { width: 30px; height: 30px; color: var(--peach); }

/* números */
.f-stats { background: var(--terra-ink); color: var(--white); padding-block: 48px; }
.f-stats .q-tag.light { color: var(--peach-soft); }
.stats { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } .f-stats { padding-block: 64px; } }
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 253, 251, .28); }
.stat b { font-size: clamp(2rem, 7vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .92rem; line-height: 1.4; opacity: .9; }

/* prova */
.f-proof { background: var(--paper); overflow: hidden; }

/* pra quem é */
.who-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who { padding: 26px; border-radius: 24px; }
.who h3 { margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; }
.who ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.who li { display: flex; gap: 12px; align-items: flex-start; }
.who .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 2.6; margin-top: -1px; }
.who.is-yes { background: var(--white); border: 1px solid var(--line); }
.who.is-yes .ico { background: var(--terra-ink); color: var(--white); }
.who.is-no { background: #EADCCD; }
.who.is-no .ico { background: var(--brown); color: var(--ivory); }

/* oferta */
.f-offer { background: radial-gradient(120% 80% at 50% 0%, var(--terra), var(--terra-deep)); }
.offer { position: relative; max-width: 540px; margin-inline: auto; padding: 30px 22px 24px; border-radius: 30px; background: var(--white); box-shadow: 0 50px 90px -40px rgba(46, 33, 29, .7); text-align: center; }
@media (min-width: 600px) { .offer { padding: 40px 40px 30px; } }
.offer-tag { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--brown); color: var(--ivory); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.timer { display: inline-flex; align-items: center; gap: 10px; margin: 4px 0 16px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ivory); font-size: .84rem; font-weight: 600; color: var(--muted); }
.timer strong { padding: 4px 12px; border-radius: 999px; background: var(--terra-ink); color: var(--white); font-size: 1rem; font-variant-numeric: tabular-nums; }
.timer.is-over strong { background: var(--muted); }
.offer-t { margin: 0 0 18px; font-size: clamp(1.4rem, 5vw, 1.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.offer-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; text-align: left; }
.offer-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.offer-list .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--peach-soft); color: var(--terra-deep); stroke-width: 2.8; }
.offer-list small { color: var(--muted); font-weight: 400; }
.price { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.price s { color: var(--muted); font-size: .95rem; }
.price-now { margin: 2px 0 0; font-size: clamp(2.6rem, 11vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--terra-ink); }
.price-now small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.price-inst { margin: 8px 0 0; font-weight: 600; color: var(--brown-2); }
.guarantee { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--ivory); text-align: left; }
.guarantee .ico { width: 36px; height: 36px; color: var(--terra-ink); }
.guarantee p { margin: 0; font-size: .88rem; line-height: 1.45; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: .8rem; color: var(--muted); }
.secure .ico { width: 16px; height: 16px; }

/* faq */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--terra-ink); transition: transform .3s var(--ease-out); }
.faq details[open] summary .ico { transform: rotate(90deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; }
.faq details[open] p { animation: rise .35s var(--ease-out); }

/* fechamento */
.f-close { background: var(--brown); color: var(--ivory); }
.f-close .f-h2 { margin-bottom: 26px; }
.f-close .btn { max-width: 440px; }
.f-close .nm { color: var(--peach); }
.f-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(244, 237, 228, .14); display: grid; justify-items: center; gap: 8px; font-size: .8rem; color: rgba(244, 237, 228, .7); }
.f-foot img { width: 140px; filter: brightness(0) invert(1); opacity: .9; }
.f-foot p { margin: 8px 0 0; max-width: 48ch; }

/* CTA fixo e aviso */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--white); box-shadow: 0 -18px 40px -24px rgba(46, 33, 29, .5);
  transform: translate3d(0, 110%, 0); visibility: hidden;
  transition: transform .4s var(--ease-out), visibility 0s linear .4s;
}
.sticky-cta.is-on { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
.sticky-cta .btn { max-width: 520px; margin-inline: auto; display: flex; }
@media (min-width: 860px) {
  .sticky-cta { left: auto; right: 24px; bottom: 24px; width: 380px; border-radius: 22px; padding: 12px; }
}

.toast {
  position: fixed; left: 50%; top: calc(var(--topbar-h) + 12px); z-index: 80; width: min(92vw, 420px);
  padding: 14px 18px; border-radius: 14px; background: var(--brown); color: var(--ivory); font-weight: 600; font-size: .92rem; text-align: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate3d(-50%, -8px, 0); transition: opacity .25s var(--ease-out), transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate3d(-50%, 0, 0); }

/* notificação de quem entrou */
.notif {
  position: fixed; z-index: 70; left: 12px; right: 12px; top: calc(var(--topbar-h) + 10px); margin-inline: auto; max-width: 380px;
  display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 10px;
  background: var(--white); color: var(--brown); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgba(46, 33, 29, .55);
  opacity: 0; visibility: hidden; transform: translate3d(0, -14px, 0) scale(.97);
  transition: opacity .25s var(--ease-in), transform .3s var(--ease-in), visibility 0s linear .3s;
}
.notif.is-on {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility 0s;
}
.notif-av { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--terra); color: var(--white); font-weight: 800; }
.notif.is-on .notif-av { animation: pop .45s var(--ease-pop) .1s backwards; }
.notif-txt { margin: 0; flex: 1; font-size: .88rem; line-height: 1.35; }
.notif-txt small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.notif-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.notif-x .ico { width: 18px; height: 18px; }
@media (hover: hover) { .notif-x:hover { background: var(--ivory); color: var(--brown); } }
@media (min-width: 860px) {
  .notif { left: 24px; right: auto; top: auto; bottom: 24px; margin: 0; transform: translate3d(-16px, 0, 0) scale(.97); }
}

/* ---------- movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .lp-run { stroke-dasharray: 100 0; }
}
