/* =========================================================
   Efecto Imán — design tokens
   Branco dominante, vermelho só como acento (Von Restorff).
   Espaçamento em escala de 4/8. Hierarquia por peso e cor,
   não só por tamanho (Refactoring UI).
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --surface: #F6F4F3;
  --surface-2: #EFECEA;
  --line: #ECE7E5;
  --ink: #17110F;
  --ink-2: #5F5653;
  --ink-3: #A29894;
  --red: #D92D3A;
  --red-press: #B92330;
  --red-50: #FDF1F2;
  --red-100: #F9DCDF;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 20px;
  --tabs-h: 76px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* fundos de reserva enquanto os banners não existem */
  --grad-ink: radial-gradient(120% 90% at 100% 100%, rgba(217,45,58,.55) 0%, rgba(217,45,58,0) 60%), #17110F;
  --grad-soft: radial-gradient(120% 90% at 100% 100%, #F9DCDF 0%, rgba(249,220,223,0) 65%), #F6F4F3;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: #ECE9E7; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
[data-lucide], svg.lucide { width: 20px; height: 20px; stroke-width: 1.75; flex: none; }

/* ---------- moldura de celular no desktop ---------- */
.stage { min-height: 100dvh; display: grid; place-items: center; }
.phone {
  position: relative; width: 100%; max-width: 420px; height: 100dvh;
  background: var(--bg); overflow: hidden; display: flex; flex-direction: column;
}
@media (min-width: 640px) {
  .stage { padding: 32px; }
  .phone { height: min(860px, calc(100dvh - 64px)); border-radius: 44px; box-shadow: 0 40px 90px -30px rgba(23,17,15,.35), 0 0 0 1px rgba(23,17,15,.06); }
}

/* ---------- barra superior (só nas telas internas) ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5; height: 60px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.nav:empty { display: none; }
.nav .t { flex: 1; text-align: center; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .2s; }
.nav.scrolled .t { opacity: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background .15s; }
.icon-btn:active { background: var(--surface); }

/* ---------- área rolável ---------- */
.screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(var(--tabs-h) + 32px); }
.screen.has-nav { padding-top: 60px; }
.screen.no-tabs { padding-bottom: 120px; }
.screen::-webkit-scrollbar { display: none; }
.enter { animation: enter .45s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }

/* ---------- tipografia ---------- */
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kicker.red { color: var(--red); }
.display { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.05; letter-spacing: -.01em; }
.display em, .title em { font-style: italic; color: var(--red); }
.title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -.005em; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.body { font-size: 16px; color: var(--ink-2); }
.small { font-size: 14px; color: var(--ink-2); }
.tiny { font-size: 12.5px; color: var(--ink-3); }

.head { padding: 28px 0 8px; }
.head .title, .head .display { margin-top: 6px; }
.head .body { margin-top: 10px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.link { font-size: 14px; font-weight: 600; color: var(--red); padding: 6px 0; }

/* ---------- botões ---------- */
.btn {
  height: 56px; width: 100%; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; background: var(--ink); color: #fff; transition: transform .12s var(--ease), background .15s;
}
.btn:active { transform: scale(.98); }
.btn.red { background: var(--red); }
.btn.red:active { background: var(--red-press); }
.btn.soft { background: var(--surface); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); height: 48px; font-weight: 500; }
.btn.done { background: var(--red-50); color: var(--red); }
.dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 16px var(--gutter) calc(20px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 72%, rgba(255,255,255,0)); }
.dock:empty { display: none; }
.dock .btn + .btn { margin-top: 6px; }
.dock.above-tabs { bottom: var(--tabs-h); }
/* botão principal único (Continuar, Desbloquear, Completar…): encostado embaixo, largura total, topo em arco */
.dock.arch { padding: 0; background: none; }
.dock.arch .btn {
  height: 62px; border-radius: 50% 50% 0 0 / 30px 30px 0 0; font-size: 16.5px; padding-top: 4px;
  box-shadow: 0 -10px 30px -12px rgba(23,17,15,.35);
}
.dock.arch .btn.red { box-shadow: 0 -10px 30px -12px rgba(217,45,58,.55); }
.dock:not(.above-tabs).arch .btn { height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
.dock.arch .btn:active { transform: none; filter: brightness(.94); }
.btn { white-space: nowrap; }
.screen.has-cta { padding-bottom: calc(var(--tabs-h) + 90px); }

/* ---------- superfícies ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 20px; }
.card.white { background: #fff; box-shadow: 0 1px 2px rgba(23,17,15,.04), 0 8px 24px -12px rgba(23,17,15,.12); }
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); transition: transform .12s var(--ease), background .15s;
}
.item:active { transform: scale(.985); background: var(--surface-2); }
.item .lead { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.item .lead.red { background: var(--red); color: #fff; }
.item .txt { flex: 1; min-width: 0; }
.item .txt b { display: block; font-weight: 600; font-size: 15.5px; }
.item .txt span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 1px; }
.item .end { color: var(--ink-3); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.chip.red { background: var(--red-50); color: var(--red); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* skeleton para conteúdo em produção */
.sk { height: 10px; border-radius: 6px; background: var(--surface-2); margin: 9px 0; }
.card .sk { background: #E7E3E1; }
.pending { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E5B94E; }

/* ---------- onboarding ---------- */
.ob { min-height: 100%; display: flex; flex-direction: column; padding-top: 56px; }
.ob-art { height: 300px; display: grid; place-items: center; position: relative; }
.ob-copy { margin-top: 24px; }
.dots { display: flex; gap: 6px; margin-top: 28px; }
.dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 22px; background: var(--ink); }

/* arte do ímã: dois campos que se atraem */
.magnet { position: relative; width: 220px; height: 220px; }
.magnet .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--red-100); animation: pulse 3.6s var(--ease) infinite; }
.magnet .ring:nth-child(2) { animation-delay: 1.2s; }
.magnet .ring:nth-child(3) { animation-delay: 2.4s; }
.magnet .core { position: absolute; inset: 70px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; box-shadow: 0 20px 40px -14px rgba(217,45,58,.6); }
.magnet .core svg { width: 34px; height: 34px; stroke-width: 1.6; }
@keyframes pulse { 0% { transform: scale(.45); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- diagnóstico ---------- */
.progress { height: 4px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .5s var(--ease); }
.q-step { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 0; }
.opt {
  width: 100%; min-height: 60px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface);
  font-weight: 500; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background .15s, box-shadow .15s, transform .12s var(--ease);
}
.opt:active { transform: scale(.985); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #D6CFCC; flex: none; display: grid; place-items: center; transition: .15s; }
.opt.sel { background: var(--red-50); box-shadow: inset 0 0 0 1.5px var(--red); }
.opt.sel .radio { border-color: var(--red); background: var(--red); }
.opt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.reveal { text-align: center; padding-top: 48px; }
.reveal .orb { width: 168px; height: 168px; margin: 28px auto 8px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.reveal .orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--red-50) 0%, rgba(253,241,242,0) 70%); animation: breathe 4s ease-in-out infinite; }
.reveal .orb span { position: relative; width: 112px; height: 112px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 56px; line-height: 1; animation: pop .7s var(--ease) both .15s; box-shadow: 0 24px 48px -18px rgba(217,45,58,.65); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@keyframes breathe { 50% { transform: scale(1.18); } }

/* ---------- hoy ---------- */
.today { background: var(--ink); color: #fff; border-radius: 28px; padding: 22px 22px 20px; position: relative; overflow: hidden; }
.today::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(217,45,58,.55), rgba(217,45,58,0) 70%); }
.today .kicker { color: rgba(255,255,255,.55); position: relative; }
.today .big { font-family: var(--serif); font-size: 64px; line-height: 1; margin-top: 10px; position: relative; }
.today .big small { font-size: 22px; color: rgba(255,255,255,.5); margin-left: 4px; }
.ticks { display: grid; grid-template-columns: repeat(21, 1fr); gap: 3px; margin-top: 18px; position: relative; }
.ticks i { height: 22px; border-radius: 3px; background: rgba(255,255,255,.14); }
.ticks i.on { background: #fff; }
.ticks i.now { background: var(--red); }
.today .meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.55); position: relative; }

.task { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-md); background: var(--surface); }
.task + .task { margin-top: 8px; }
.task .check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #D6CFCC; flex: none; display: grid; place-items: center; color: #fff; transition: .2s; }
.task.done .check { background: var(--red); border-color: var(--red); }
.task.done .check svg { width: 15px; height: 15px; stroke-width: 3; }
.task .txt { flex: 1; }
.task .txt b { display: block; font-weight: 600; font-size: 15.5px; }
.task.done .txt b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.task .txt span { font-size: 13.5px; color: var(--ink-3); }

.sos {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: var(--r-lg);
  background: var(--red-50); color: var(--ink);
}
.sos .lead { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.sos b { display: block; font-weight: 600; }
.sos span { font-size: 13.5px; color: var(--ink-2); }

.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { display: none; }
.bonus { flex: none; width: 168px; min-height: 176px; border-radius: var(--r-lg); padding: 18px; background: var(--surface); display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; text-align: left; scroll-snap-align: start; }
.bonus .ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--red); }
.bonus b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--ink); }
.bonus span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- jornada ---------- */
.week { margin-top: 24px; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { aspect-ratio: 1; border-radius: 14px; background: var(--surface); display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--ink-2); position: relative; transition: transform .12s var(--ease); }
.day:active { transform: scale(.94); }
.day.on { background: var(--ink); color: #fff; }
.day.now { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.day.locked { color: #CFC7C4; }

.do-list { list-style: none; margin-top: 12px; }
.do-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.do-list li + li { border-top: 1px solid var(--line); }
.do-list .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.do-list.yes .mk { background: var(--red-50); color: var(--red); }
.do-list.no .mk { background: var(--surface-2); color: var(--ink-2); }
.do-list .mk svg { width: 13px; height: 13px; stroke-width: 2.6; }
.do-list .grow { flex: 1; }

/* ---------- método ---------- */
.module { display: flex; gap: 16px; width: 100%; padding: 20px; border-radius: var(--r-lg); background: var(--surface); align-items: flex-start; transition: transform .12s var(--ease); }
.module:active { transform: scale(.985); }
.module .num { font-family: var(--serif); font-size: 40px; line-height: .9; color: var(--red); width: 28px; flex: none; }
.module .txt { flex: 1; }
.module .txt b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.module .txt span { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 4px; }
.mini-bar { height: 3px; border-radius: 99px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--red); }

.player { aspect-ratio: 16/10; border-radius: var(--r-lg); background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center; margin-top: 8px; }
.player::after { content: ""; position: absolute; inset: auto -40px -120px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(217,45,58,.5), rgba(217,45,58,0) 70%); }
.player .play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; position: relative; z-index: 1; }
.player .play svg { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }
.player .dur { position: absolute; left: 16px; bottom: 14px; font-size: 12.5px; color: rgba(255,255,255,.6); z-index: 1; }

/* ---------- mensagens ---------- */
.seg { display: flex; gap: 6px; overflow-x: auto; margin: 4px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 36px; padding: 0 16px; border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .15s; }
.seg button.on { background: var(--ink); color: #fff; }
.seg button.secret { display: inline-flex; align-items: center; gap: 6px; color: var(--red); background: var(--red-50); }
.seg button.secret svg { width: 14px; height: 14px; }
.seg button.secret.on { background: var(--red); color: #fff; }
.seg button.me::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-left: 7px; vertical-align: middle; }
.msg { padding: 18px; border-radius: var(--r-lg); background: var(--surface); }
.msg + .msg { margin-top: 10px; }
.msg-top { display: flex; justify-content: space-between; align-items: center; }
.bubble { margin: 14px 0 14px auto; max-width: 86%; background: var(--red); color: #fff; padding: 12px 14px 10px; border-radius: 20px 20px 6px 20px; }
.bubble .sk { background: rgba(255,255,255,.35); margin: 6px 0; height: 9px; }
.msg-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.msg-meta dt { color: var(--ink-3); }
.msg-meta dd .sk { margin: 6px 0; }
.copy { margin-top: 14px; height: 44px; width: 100%; border-radius: 12px; background: #fff; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.copy.ok { color: var(--red); }

/* ---------- guia ---------- */
.breath { text-align: center; padding: 28px 20px 24px; border-radius: 28px; background: var(--red-50); }
.breath .circle { width: 132px; height: 132px; margin: 6px auto 16px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 22px; transform: scale(.7); transition: transform 4s ease-in-out; box-shadow: 0 0 0 18px rgba(217,45,58,.08), 0 0 0 36px rgba(217,45,58,.05); }
.breath .circle.in { transform: scale(1); }

/* ---------- abas ---------- */
.tabs {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: var(--tabs-h);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.9); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-top: 1px solid var(--line);
}
.tabs:empty { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink-3); font-size: 11px; font-weight: 600; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.tab.on::before { content: ""; position: absolute; top: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--red); }

/* ---------- celebração (pico-fim) ---------- */
.overlay { position: absolute; inset: 0; z-index: 20; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px; animation: fadein .3s ease both; }
.overlay[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.burst { position: relative; width: 200px; height: 200px; display: grid; place-items: center; }
.burst::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--red-50) 0 8deg, transparent 8deg 20deg); animation: spin 18s linear infinite, grow .8s var(--ease) both; mask: radial-gradient(circle, #000 35%, transparent 70%); -webkit-mask: radial-gradient(circle, #000 35%, transparent 70%); }
.burst span { position: relative; width: 96px; height: 96px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; animation: pop .6s var(--ease) both .1s; box-shadow: 0 24px 48px -18px rgba(217,45,58,.7); }
.burst span svg { width: 44px; height: 44px; stroke-width: 2.4; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scale(.3); opacity: 0; } }
.overlay .title { margin-top: 18px; }
.overlay .body { margin-top: 10px; max-width: 280px; }
.overlay .btn { margin-top: 32px; max-width: 320px; }

/* ---------- banners / capas (imagem por cima, gradiente de reserva por baixo) ---------- */
/* capa de borda a borda no topo da página (passa por trás da barra de voltar) */
.screen.has-hero { padding-top: 0; }
.hero-img { position: relative; margin: 0 calc(var(--gutter) * -1); aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.hero-img::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 96px; background: linear-gradient(to bottom, rgba(23,17,15,.55), rgba(23,17,15,0)); pointer-events: none; }
.hero-badges { position: absolute; left: var(--gutter); bottom: 16px; }
.nav.on-hero:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.on-hero:not(.scrolled) .icon-btn { color: #fff; background: rgba(23,17,15,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.banner-num { position: absolute; right: 18px; bottom: 6px; font-family: var(--serif); font-size: 96px; line-height: 1; color: rgba(255,255,255,.9); }
.player { background-size: cover; background-position: center; }

/* ---------- expert ---------- */
.expert { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 14px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 2px rgba(23,17,15,.04), 0 10px 28px -14px rgba(23,17,15,.18); }
.expert b { display: block; font-weight: 600; font-size: 15.5px; margin-top: 2px; }
.expert-photo { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.expert-photo.sm { width: 40px; height: 40px; border-radius: 50%; }
.play-mini { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex: none; }
.play-mini svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.by { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.by b { font-weight: 600; font-size: 14.5px; }

/* ---------- ofertas (order bump / upsell) ----------
   Estrutura fixa e alinhada ao topo em todos os cards:
   selos → ícone + título → descrição → botão (sempre na base). */
.offer {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 14px; width: 100%;
  padding: 20px; border-radius: var(--r-lg); color: #fff; text-align: left; overflow: hidden;
  background-size: cover; background-position: center; transition: transform .12s var(--ease);
}
.offer:active { transform: scale(.985); }
.offer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,17,15,.72) 0%, rgba(23,17,15,.9) 100%); }
.offer > * { position: relative; }
.offer-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.offer-lock { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; font-weight: 600; color: #fff; }
.offer-lock svg { width: 13px; height: 13px; }
.offer-lock .star { fill: #FFC857; stroke: #FFC857; }

.offer-head { display: flex; align-items: center; gap: 12px; }
.offer-icon { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #FF8A93; }
.offer-icon svg { width: 20px; height: 20px; }
.offer-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.offer-title em { color: #FF8A93; }
.offer-d { font-size: 13.5px; color: rgba(255,255,255,.72); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.offer-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.offer-cta svg { width: 16px; height: 16px; }

/* comprado: card claro, igual ao conteúdo já liberado no app */
.offer.is-mine { background: var(--surface); color: var(--ink); }
.offer.is-mine::before { display: none; }
.offer.is-mine .offer-lock { background: #fff; color: var(--red); backdrop-filter: none; -webkit-backdrop-filter: none; }
.offer.is-mine .offer-icon { background: #fff; color: var(--red); }
.offer.is-mine .offer-title em { color: var(--red); }
.offer.is-mine .offer-d { color: var(--ink-3); }
.offer.is-mine .offer-cta { background: var(--ink); color: #fff; }

/* carrossel de ofertas na Hoy: cards com a mesma altura */
.offer-rail { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
.offer-rail::-webkit-scrollbar { display: none; }
.offer-rail > .offer { flex: none; width: 86%; scroll-snap-align: start; }

/* página interna do produto comprado: ícone no lugar do número do módulo */
.banner-icon { position: absolute; right: 18px; bottom: 16px; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.banner-icon svg { width: 28px; height: 28px; }

/* caixa de preço na página de venda */
.price-box { margin-top: 20px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.price-box b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; color: var(--ink); }

/* login */
.input { display: block; width: 100%; height: 56px; margin-top: 6px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--ink); background: #fff; }
.btn:disabled { opacity: .6; }

/* carregando */
.spinner { width: 56px; height: 56px; border-radius: 50%; border: 4px solid var(--red-50); border-top-color: var(--red); animation: spin 0.9s linear infinite; }

/* dia liberado mas atrasado */
.day.late { background: var(--red-50); color: var(--red); }

/* ---------- pop-up de confirmação ---------- */
.sheet { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(23,17,15,.42); animation: fadein .2s ease both; }
.sheet-card { position: relative; width: 100%; background: #fff; border-radius: 28px 28px 0 0; padding: 12px 24px calc(20px + env(safe-area-inset-bottom)); animation: up .35s var(--ease) both; text-align: center; }
.sheet-grip { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 20px; }
.sheet-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin: 0 auto 14px; }
.sheet-ico svg { width: 24px; height: 24px; }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- toast ---------- */
.toast { position: absolute; left: 50%; bottom: calc(var(--tabs-h) + 16px); z-index: 30; transform: translate(-50%, 12px); padding: 10px 16px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s var(--ease); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

.player.has-video { background: #000; display: block; aspect-ratio: 16/9; }
.player.has-video::after { display: none; }
.player.has-video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* Método: módulos com as aulas dentro */
.mod-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; }
.mod-head { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; }
.mod-head .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--red); flex: none; width: 24px; }
.mod-head .end { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.mod-txt { flex: 1; min-width: 0; }
.mod-txt b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--ink); }
.mod-txt span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.mod-meta { display: flex; justify-content: space-between; margin: 14px 0 6px; font-size: 12.5px; color: var(--ink-3); }
.mod-card .mini-bar { margin: 0; }
.mod-clases { display: grid; gap: 8px; margin-top: 14px; }
.mod-clase { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; text-align: left; background: #fff; border: 0; border-radius: 14px; color: inherit; cursor: pointer; font: inherit; }
.mod-clase .lead { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; flex: none; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.mod-clase .lead.red { background: var(--red); color: #fff; }
.mod-clase .lead svg { width: 16px; height: 16px; }
.mod-clase:active { background: var(--surface-2); }
.mc-txt { flex: 1; min-width: 0; }
.mc-txt b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.mc-txt span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
