body { background: var(--ivory); min-height: 100vh; }
body.dark-shell { background: var(--ink-950); }

/* ===== Shell ===== */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); background: rgba(251, 248, 242, .82); border-bottom: 1px solid rgba(214, 206, 188, .55); }
.topbar-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 20px; padding-top: calc(12px + env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-900); text-decoration: none !important; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink-900); display: grid; place-items: center; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-300) 35%, transparent); }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { font-family: var(--font-display); font-size: 17px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.topnav { margin-left: auto; display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.topnav a.active, .topnav a:hover { background: var(--paper); color: var(--ink-900); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); display: grid; place-items: center; font-weight: 800; font-size: 14px; text-decoration: none !important; }

.tabbar { display: none; }
main.page { max-width: 760px; margin: 0 auto; padding: 24px 20px 120px; }
main.page.wide { max-width: 980px; }

@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar-in .avatar { margin-left: auto; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60; background: rgba(11, 26, 42, .94); backdrop-filter: blur(12px); border-radius: 22px; padding: 6px; box-shadow: var(--shadow-lg); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; color: var(--ink-300); font-size: 11px; font-weight: 700; text-decoration: none; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.active { background: color-mix(in srgb, var(--gold-300) 12%, transparent); color: var(--gold-300); }
  main.page { padding: 18px 16px 120px; }
}

/* ===== Auth ===== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--ink-950); }
.auth-art { position: relative; overflow: hidden; padding: 48px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background:
  radial-gradient(900px 500px at 10% 0%, color-mix(in srgb, var(--forest-500) 55%, transparent), transparent 60%),
  radial-gradient(700px 520px at 100% 100%, color-mix(in srgb, var(--gold-500) 28%, transparent), transparent 60%), var(--ink-950); }
.auth-art::after { content: ""; position: absolute; inset: 0; 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 baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
.auth-art .brand { color: #fff; }
.auth-art .brand-name small { color: var(--ink-300); }
.auth-quote { position: relative; z-index: 1; max-width: 460px; }
.auth-quote h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.08; }
.auth-quote h1 em { font-style: italic; color: var(--gold-300); }
.auth-quote p { color: var(--ink-300); font-size: 16px; margin-top: 18px; }
.auth-verse { position: relative; z-index: 1; border-left: 2px solid var(--gold-500); padding-left: 16px; color: var(--ink-300); font-family: var(--font-display); font-style: italic; font-size: 17px; max-width: 420px; }
.auth-verse span { display: block; font-family: var(--font-sans); font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-500); margin-top: 8px; font-weight: 700; }
.auth-panel { background: var(--ivory); display: grid; place-items: center; padding: 40px 24px; border-radius: 28px 0 0 28px; }
.auth-card { width: min(400px, 100%); }
.auth-card h2 { font-size: 32px; margin-bottom: 6px; }
.auth-card .muted { margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 14px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { padding: 28px 22px 46px; min-height: 0; gap: 34px; }
  .auth-quote h1 { font-size: 32px; }
  .auth-verse { display: none; }
  .auth-panel { border-radius: 26px 26px 0 0; margin-top: -24px; align-items: start; padding-top: 32px; }
}

/* ===== Cards ===== */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 20px; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== Home ===== */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; color: #fff; background:
  radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--gold-500) 35%, transparent), transparent 65%),
  radial-gradient(520px 300px at 0% 100%, color-mix(in srgb, var(--forest-500) 55%, transparent), transparent 65%), var(--ink-900);
  box-shadow: var(--shadow-lg); }
.hero h1 { color: #fff; font-size: clamp(28px, 5vw, 38px); font-weight: 400; }
.hero h1 em { color: var(--gold-300); font-style: italic; }
.hero .muted { color: var(--ink-300); }
.hero-row { display: flex; align-items: center; gap: 22px; }
.hero-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ring { flex: none; width: 104px; height: 104px; position: relative; }
.ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring-label b { font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.ring-label small { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-300); }
.lock-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 10px 14px; border-radius: 999px; font-size: 13.5px; color: var(--gold-100); }
@media (max-width: 520px) { .hero { padding: 22px; } .ring, .ring svg { width: 84px; height: 84px; } .ring-label b { font-size: 24px; } }

.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; gap: 12px; }
.section-h h2 { font-size: 24px; }

.block-label { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.block-label .eyebrow { color: var(--ink-500); }
.block-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-list { display: flex; flex-direction: column; gap: 10px; }
.day { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; text-decoration: none !important; color: inherit; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; position: relative; }
.day:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.day-num { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-family: var(--font-display); font-size: 22px; background: var(--paper); color: var(--ink-700); }
.day-body { flex: 1; min-width: 0; }
.day-body h4 { font-size: 17px; font-weight: 500; }
.day-body p { margin: 2px 0 0; font-size: 13px; color: var(--text-3); }
.day-state { flex: none; font-size: 12px; font-weight: 700; }
.day.is-done .day-num { background: var(--forest-100); color: var(--forest-700); }
.day.is-current { border-color: var(--gold-300); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-500) 12%, transparent); }
.day.is-current .day-num { background: var(--ink-900); color: var(--gold-300); }
.day.is-locked { background: transparent; border-style: dashed; cursor: default; }
.day.is-locked:hover { transform: none; box-shadow: none; }
.day.is-locked .day-num, .day.is-locked h4 { color: var(--text-3); }

.metric { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.metric .label { color: var(--text-3); font-weight: 600; font-size: 12.5px; }
.metric .val { font-family: var(--font-display); font-size: 26px; margin-top: 4px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.metric .val.neg { color: var(--danger); }
.metric .val.pos { color: var(--forest-500); }
.metric .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.live-card { border-radius: 24px; padding: 22px; background: linear-gradient(135deg, var(--forest-900), var(--forest-700)); color: #fff; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.live-card h3 { color: #fff; font-size: 21px; }
.live-card p { color: var(--forest-100); margin: 4px 0 0; font-size: 14px; }
.live-date { flex: none; text-align: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 10px 14px; min-width: 76px; }
.live-date b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1; }
.live-date small { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-300); font-weight: 700; }

/* ===== Day page ===== */
.day-head { margin: 8px 0 22px; }
.day-head .eyebrow { display: flex; gap: 10px; align-items: center; }
.day-head h1 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 400; margin-top: 10px; }
.day-head p { color: var(--text-2); font-size: 16px; margin-top: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.steps { display: flex; gap: 6px; margin: 18px 0 0; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--gold-500); }

.player { position: relative; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; background: var(--ink-900); box-shadow: var(--shadow-lg); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink-300); padding: 20px; background: radial-gradient(400px 220px at 50% 0%, color-mix(in srgb, var(--gold-500) 18%, transparent), transparent 70%), var(--ink-900); }
.player-empty b { display: block; font-family: var(--font-display); color: #fff; font-size: 22px; font-weight: 400; margin-bottom: 4px; }
.step-card { margin-top: 28px; }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--ink-900); color: var(--gold-300); flex: none; }
.step-n.done { background: var(--forest-500); color: #fff; }
.step-h h2 { font-size: 22px; }
.step-h .meta { margin-left: auto; font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.watch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

.objective { background: var(--paper); border-radius: 20px; padding: 18px 20px; font-size: 15px; color: var(--ink-800); }
.verses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.verses.one { grid-template-columns: 1fr; }
@media (max-width: 640px) { .verses { grid-template-columns: 1fr; } }
.verse { scroll-snap-align: start; background: var(--ink-900); color: #fff; border-radius: 20px; padding: 20px; position: relative; overflow: hidden; }
.verse::before { content: "“"; position: absolute; top: -18px; right: 14px; font-family: var(--font-display); font-size: 120px; color: color-mix(in srgb, var(--gold-300) 14%, transparent); }
.verse p { font-family: var(--font-display); font-size: 17px; line-height: 1.45; margin: 0; }
.verse span { display: block; margin-top: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.phrases { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.phrases li { padding: 14px 16px 14px 44px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-family: var(--font-display); font-size: 17px; line-height: 1.4; position: relative; }
.phrases li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 12px; height: 2px; background: var(--gold-500); }

/* ===== Activity ===== */
.act-section { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-top: 14px; }
.act-section > h3 { font-size: 20px; }
.act-section > .intro { color: var(--text-2); margin: 6px 0 18px; font-size: 14.5px; }
.act-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 4px; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; gap: 8px; align-items: end; padding: 12px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); position: relative; }
.row .field { margin: 0; }
.row .field > label { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.row .input { padding: 10px 12px; font-size: 14.5px; border-radius: 10px; }
.row-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--text-3); cursor: pointer; font-size: 16px; }
.row-x:hover { background: var(--danger-bg); color: var(--danger); }
.row.has-x { padding-right: 38px; }
.add-row { margin-top: 10px; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--ink-700); border-radius: 14px; padding: 12px; width: 100%; font-weight: 700; cursor: pointer; font-size: 14px; }
.add-row:hover { background: var(--paper); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr 1fr !important; } .row .span-2 { grid-column: 1 / -1; } }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; user-select: none; }
.pill input:checked + span { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.pills.sm .pill span { padding: 6px 11px; font-size: 13px; }

.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--paper); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s; color: var(--text-2); }
.scale input:checked + span { background: var(--gold-500); color: var(--on-gold, var(--ink-950)); transform: scale(1.06); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--gold-600) 90%, transparent); }
.scale input:focus-visible + span { outline: 2px solid var(--ink-900); }
.scale-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 420px) { .scale span { height: 34px; font-size: 12.5px; border-radius: 8px; } }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; margin: 0; cursor: pointer; background: #fff; }
.check input:checked { background: var(--ink-900); border-color: var(--ink-900); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--gold-300); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check:has(input:checked) { border-color: var(--ink-700); background: var(--ivory); }
.check-list { display: grid; gap: 8px; }

.calc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line-strong); font-size: 14.5px; }
.calc b { font-family: var(--font-display); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--ink-900); }
.calc.big { border: 0; background: var(--ink-900); color: var(--ink-300); padding: 16px 18px; border-radius: 16px; margin-top: 12px; }
.calc.big b { color: #fff; font-size: 26px; }
.calc .neg { color: var(--danger) !important; }
.calc.big .neg { color: #FFB4A3 !important; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.compare > div { border-radius: 16px; padding: 14px 16px; background: var(--paper); }
.compare > div:last-child { background: var(--ink-900); color: var(--ink-300); }
.compare > div:last-child b { color: #fff; }
.compare small { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.compare b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.callout { border-radius: 16px; padding: 14px 16px; background: var(--gold-100); color: #6F5524; font-size: 14px; margin-top: 12px; }
.callout.green { background: var(--forest-100); color: var(--forest-700); }
.phase-badge { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, var(--ink-900), var(--ink-800)); color: #fff; margin-top: 12px; }
.phase-badge .n { width: 54px; height: 54px; border-radius: 16px; background: var(--gold-500); color: var(--on-gold, var(--ink-950)); font-family: var(--font-display); font-size: 28px; display: grid; place-items: center; flex: none; }
.phase-badge h4 { color: #fff; font-size: 19px; font-weight: 500; }
.phase-badge p { margin: 2px 0 0; color: var(--ink-300); font-size: 13.5px; }
.debt-list { display: grid; gap: 8px; margin-top: 10px; }
.debt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ivory); border: 1px solid var(--line); }
.debt .p { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ink-900); color: var(--gold-300); font-weight: 800; font-size: 13px; flex: none; }
.debt .d { flex: 1; min-width: 0; }
.debt .d b { display: block; font-size: 14.5px; }
.debt .d small { color: var(--text-3); }
.budget { width: 100%; border-collapse: collapse; margin-top: 8px; }
.budget td { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.budget td:first-child { width: 28px; color: var(--gold-600); font-weight: 800; }
.budget td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.budget tr.total td { border-bottom: 0; font-weight: 800; padding-top: 14px; }
.save-state { position: sticky; bottom: 96px; z-index: 5; display: flex; justify-content: center; pointer-events: none; margin-top: 18px; }
.save-state span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-sm); }
@media (min-width: 761px) { .save-state { bottom: 18px; } }

.finish { margin-top: 30px; border-radius: 26px; padding: 26px; text-align: center; background: radial-gradient(400px 200px at 50% 0%, color-mix(in srgb, var(--gold-500) 25%, transparent), transparent 70%), var(--ink-900); color: #fff; }
.finish h3 { color: #fff; font-size: 26px; font-weight: 400; }
.finish p { color: var(--ink-300); }
.finish .btn { margin-top: 10px; }

.retro { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.retro th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 0 8px; }
.retro td { background: var(--ivory); padding: 10px 8px; font-size: 14px; vertical-align: top; }
.retro td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.retro td:last-child { border-radius: 0 12px 12px 0; }
.delta { font-weight: 800; color: var(--forest-500); }
.delta.neg { color: var(--danger); }

.locked-page { text-align: center; padding: 60px 10px; }
.locked-page .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--ink-900); display: grid; place-items: center; margin: 0 auto 18px; color: var(--gold-300); }
.countdown-big { font-family: var(--font-display); font-size: 44px; color: var(--ink-900); margin: 10px 0; font-variant-numeric: tabular-nums; }

.install-tip { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 18px; padding: 14px 16px; margin-top: 16px; }

@media print {
  .topbar, .tabbar, .btn, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .act-section { break-inside: avoid; box-shadow: none; }
}

/* ajustes finos */
.row .input-money .input, .input-money .input { padding-left: 38px; }
.section-h { flex-wrap: wrap; }
.section-h > span { font-size: 12.5px; }
@media (max-width: 760px) { .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } .section-h > span { flex-basis: 100%; } }
.compare small { display: block; font-size: 11px; letter-spacing: .04em; line-height: 1.35; }
.compare b { font-size: 22px; }

.input-money::before { content: attr(data-cur); }
.row .input-money .input, .input-money .input { padding-left: 46px; }

/* ===== Multiproduto ===== */
.brand-logo { width: 38px; height: 38px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; background: var(--ink-900); flex: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold-300) 30%, transparent); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero > *:not(.hero-cover) { position: relative; z-index: 1; }
.hero-cover { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; mix-blend-mode: luminosity; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-900) 15%, transparent 85%); }

.store-hero { padding: 8px 0 6px; }
.store-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 400; margin-top: 8px; }
.store-hero h1 em { font-style: italic; color: var(--gold-600); }
.store-hero > p { font-size: 16px; margin-top: 8px; }
.resume { margin-top: 20px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px; background: var(--ink-900); color: #fff; text-decoration: none !important; box-shadow: var(--shadow-lg); transition: transform .2s var(--ease); max-width: 620px; }
.resume:hover { transform: translateY(-2px); }
.resume-ico { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--on-gold, var(--ink-950)); }
.resume-ico svg { width: 18px; height: 18px; margin-left: 2px; }
.resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.resume-txt small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--gold-300); }
.resume-txt b { font-family: var(--font-display); font-weight: 500; font-size: 18px; margin-top: 2px; }
.resume-txt span { font-size: 13.5px; color: var(--ink-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume > svg { color: var(--gold-300); flex: none; }

.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; color: var(--text); text-decoration: none !important; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; position: relative; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--ink-900) 55%, transparent); border-color: color-mix(in srgb, var(--gold-500) 45%, var(--line)); }
.pcard-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-900); }
.pcard-cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pcard:hover .pcard-cover > img { transform: scale(1.04); }
.pcard-art { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--gold-500) 45%, transparent), transparent 60%),
  radial-gradient(110% 100% at 0% 100%, color-mix(in srgb, var(--forest-500) 70%, transparent), transparent 65%), var(--ink-900); }
.pcard-art::after { content: ""; position: absolute; inset: 0; 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 baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E"); }
.pcard-logo { max-width: 46%; max-height: 52%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,.35)); }
.pcard-mono { position: relative; z-index: 1; font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--gold-300); font-style: italic; letter-spacing: -.02em; }
.pcard-kind { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink-950) 72%, transparent); color: var(--gold-300); backdrop-filter: blur(6px); }
.pcard-done, .pcard-lock { position: absolute; right: 14px; top: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-500); color: #fff; }
.pcard-lock { background: color-mix(in srgb, var(--ink-950) 72%, transparent); color: var(--gold-300); }
.pcard-body { padding: 18px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 21px; font-family: var(--font-display); }
.pcard-body > p { margin: 6px 0 0; font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-progress { margin-top: 16px; height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.pcard-progress i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-500), color-mix(in srgb, var(--gold-500) 70%, #fff)); }
.pcard-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pcard-status { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.pcard-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink-900); white-space: nowrap; }
.pcard-cta svg { transition: transform .2s var(--ease); }
.pcard:hover .pcard-cta svg { transform: translateX(3px); }
.pcard-exp { margin-top: 8px; font-size: 12px; color: var(--warn); font-weight: 700; }
.pcard.is-store .pcard-cover > img, .pcard.is-store .pcard-art { filter: saturate(.75); }
.pcard.is-store .pcard-cta { color: var(--gold-600); }
.pcard.is-store:not([href]) { cursor: default; }
.pcard.is-store:not([href]):hover { transform: none; box-shadow: none; }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }

.material { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--text); text-decoration: none !important; transition: border-color .2s, transform .2s var(--ease); }
.material:hover { border-color: var(--gold-300); transform: translateY(-1px); }
.material-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600); flex: none; }
.material > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.material small { color: var(--text-3); font-size: 12.5px; }
.material > svg { color: var(--text-3); }
.btn svg { flex: none; }

/* Logo da plataforma (Configurações › Marca) */
.brand-logo.brand-icon { background: transparent; box-shadow: none; border-radius: 10px; }
.brand-wide { display: flex; align-items: center; height: 46px; }
.brand-wide img { height: 100%; width: auto; max-width: 260px; object-fit: contain; object-position: left center; }
.auth-art .brand-wide { height: 56px; }
.auth-art .brand-wide img { max-width: 280px; }
@media (max-width: 640px) { .brand-wide { height: 34px; } .brand-wide img { max-width: 170px; } }

/* Marcar / desmarcar como assistida */
.watch-on { display: inline-grid; place-items: center; }
.watch-on > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.watch-on .w-undo { visibility: hidden; color: #B3412F; }
@media (hover: hover) { .watch-on:hover .w-on { visibility: hidden; } .watch-on:hover .w-undo { visibility: visible; } }

/* Blocos de conteúdo da aula */
.lesson-blocks { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.lesson-blocks .section-h:first-child { margin-top: 0; }
.blk { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; position: relative; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,.04)); }
.blk-bare .section-h { margin-top: 4px; }
.blk-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-right: 150px; }
.blk-h h2, .blk-t { font-size: 20px; margin: 0; }
.blk-t { margin-bottom: 10px; }
.blk-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold-500) 14%, transparent); color: var(--gold-700, #8a6a2c); flex: none; }
.blk-ico svg { width: 18px; height: 18px; }
.blk-req, .blk-meta { position: absolute; top: 26px; right: 22px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.blk-req { color: #9a5b12; background: #FBF1DF; padding: 4px 9px; border-radius: 999px; top: 24px; }
.rich { font-size: 15.5px; line-height: 1.65; color: var(--ink-800); }
.rich p { margin: 0 0 12px; } .rich p:last-child, .rich ul:last-child, .rich ol:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 12px; padding-left: 22px; } .rich li { margin: 4px 0; }
.rich a { color: var(--forest-500); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.callout { display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; padding: 18px 20px; box-shadow: none; }
.callout b { display: block; margin-bottom: 4px; font-size: 15px; }
.callout .rich { font-size: 15px; }
.co-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.callout.tip { background: #F2F8F4; border-color: #D3E7DA; } .callout.tip .co-ic { background: #DCEFE3; color: #1F6B52; }
.callout.info { background: #F1F5FA; border-color: #D6E1EE; } .callout.info .co-ic { background: #DDE8F4; color: #2F5C8A; }
.callout.warning { background: #FDF5EA; border-color: #F1DDBD; } .callout.warning .co-ic { background: #F8E6C8; color: #9A5B12; }
.callout.important { background: color-mix(in srgb, var(--gold-500) 9%, #fff); border-color: color-mix(in srgb, var(--gold-500) 35%, #fff); } .callout.important .co-ic { background: color-mix(in srgb, var(--gold-500) 22%, #fff); color: var(--gold-700, #8a6a2c); }
.mats { display: grid; gap: 10px; }
.mat { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none !important; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; background: #FDFCF8; }
.mat:hover { border-color: color-mix(in srgb, var(--gold-500) 55%, transparent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11,26,42,.06); }
.mat-k { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 900; letter-spacing: .04em; background: var(--ink-900); color: var(--gold-300); flex: none; }
.mat-k.link { background: color-mix(in srgb, var(--forest-500) 14%, #fff); color: var(--forest-500); }
.mat-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mat-t b { font-size: 15px; } .mat-t small { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.mat-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--ink-900); white-space: nowrap; }
.ex-q label { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 15px; line-height: 1.4; }
.ex-n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-900); color: var(--gold-300); font-size: 12px; display: grid; place-items: center; flex: none; margin-top: -1px; }
.ex-q textarea { min-height: 92px; resize: vertical; }
.blk-save { font-size: 12.5px; color: var(--text-3); text-align: right; margin-top: 4px; }
.ck-prog { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 800; color: var(--text-3); margin: -4px 0 12px; }
.ck-prog i { flex: 1; height: 6px; border-radius: 3px; background: #F0ECE2; overflow: hidden; }
.ck-prog i b { display: block; height: 100%; background: var(--forest-500); border-radius: 3px; transition: width .25s; }
.ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ck label { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; font-size: 15px; line-height: 1.45; transition: background .15s, border-color .15s; }
.ck label:hover { border-color: var(--line-strong); }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.ck-box svg { width: 14px; height: 14px; }
.ck label.on { background: color-mix(in srgb, var(--forest-500) 7%, #fff); border-color: color-mix(in srgb, var(--forest-500) 30%, #fff); }
.ck label.on .ck-box { background: var(--forest-500); border-color: var(--forest-500); color: #fff; }
.ck label.on > span:last-child { color: var(--text-3); text-decoration: line-through; }
.ck input:focus-visible + .ck-box { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.blk-cta { text-align: center; background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.blk-cta .blk-t { color: #fff; } .blk-cta .muted { color: var(--ink-300); margin: 0 0 14px; }
@media (max-width: 640px) { .blk { padding: 18px; border-radius: 18px; } .blk-h { padding-right: 0; } .blk-req, .blk-meta { position: static; display: inline-block; margin: -6px 0 12px; } .mat-go span, .mat-go { font-size: 12px; } }

.verse p { padding-right: 34px; }

/* Capa do produto no topo da jornada: imagem nítida à direita, fundindo com a cor do produto */
.hero-cover { left: auto; width: 64%; opacity: 1; mix-blend-mode: normal; background-position: center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 70%); }
.hero-cover::after { background: linear-gradient(90deg, var(--ink-900) 0%, color-mix(in srgb, var(--ink-900) 30%, transparent) 45%, transparent 100%), linear-gradient(0deg, color-mix(in srgb, var(--ink-900) 55%, transparent), transparent 55%); }
@media (max-width: 640px) { .hero-cover { width: 100%; opacity: .38; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); } }
/* logo do produto no topo da jornada (quando não há capa) */
.hero-logo { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 32%; height: 78%; display: grid; place-items: center; pointer-events: none; }
.hero-logo::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--gold-300) 20%, transparent), transparent 100%); }
.hero-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,0,0,.45)); }
@media (max-width: 640px) { .hero-logo { right: -6%; width: 46%; height: 70%; opacity: .22; } }
.hero > .hero-logo { position: absolute; z-index: 0; }
