/* Zero Wrinkles 21 — creme quente, verde profundo (o mesmo verde dos mapas nos vídeos), dourado discreto */
:root {
  --bg: #f5f1ea; --surface: #fffdf9; --soft: #ece6db; --line: #e2dbcf;
  --ink: #1c2a24; --muted: #69746e; --deep: #163a2d; --green: #2ecc71; --green-ink: #1f8a4f; --gold: #c8a25c; --warm: #e07a3f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 18px; --shadow: 0 1px 2px rgba(22, 58, 45, .06), 0 6px 20px rgba(22, 58, 45, .06);
  --tab: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.boot { text-align: center; padding: 40vh 0; color: var(--muted); }

.view { max-width: 520px; margin: 0 auto; padding: 16px 18px calc(var(--tab) + 28px + var(--safe-b)); }
.view.no-tabs { padding-bottom: calc(28px + var(--safe-b)); }
.pad { padding: 0 2px; }
.small { font-size: 14px; } .muted { color: var(--muted); } .fine { font-size: 13px; color: var(--muted); }
.fine a, .err a { text-decoration: underline; }
.eyebrow { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--green-ink); font-weight: 600; margin: 0 0 6px; }
.display { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.1; margin: 0 0 10px; letter-spacing: -.01em; }
.display.sm { font-size: 26px; }
.display em, .brand em { font-style: italic; color: var(--green-ink); }
h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0 0 8px; }
.sec { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 26px 2px 10px; }

/* ícones */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.inline { width: 15px; height: 15px; vertical-align: -2px; }
.ic.warm { color: var(--warm); } .ic.big { width: 44px; height: 44px; color: var(--gold); }

/* topo */
.top { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.top p { margin: 0; }
.brand { font-family: var(--serif); font-size: 26px; margin: 0; font-weight: 600; }
.bar { display: flex; align-items: center; gap: 8px; margin: 0 -6px 14px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; }
.bar h1 { flex: 1; text-align: center; font-family: var(--serif); font-size: 19px; margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); cursor: pointer; padding: 0; flex: none; }
.icon-btn.ghost { visibility: hidden; } .icon-btn.sm { width: 32px; height: 32px; } .icon-btn.sm .ic { width: 16px; height: 16px; }
.icon-btn.on { background: var(--deep); color: #fff; border-color: var(--deep); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn.primary:active { transform: scale(.98); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.block { display: flex; width: 100%; margin: 12px 0; }
.btn:disabled { opacity: .6; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; } .row .btn { flex: 1; }

/* cards */
.card { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin: 0 0 14px; }
.card.soft { background: var(--soft); box-shadow: none; }
.card.soft p:last-child { margin-bottom: 0; }
.hero-card .hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.link-card { display: flex; align-items: center; gap: 14px; }
.link-card > div { flex: 1; } .link-card b { display: block; } .link-card span { font-size: 14px; color: var(--muted); }
.link-card > .ic:first-child { color: var(--green-ink); }
.milestone p:last-child { font-family: var(--serif); font-size: 17px; }

/* anel de progresso */
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; } .ring .track { stroke: var(--soft); } .ring .fill { stroke: var(--green); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.ring-txt b { font-family: var(--serif); font-size: 28px; } .ring-txt span { font-size: 12px; color: var(--muted); }
.gift-locked, .hero-card { text-align: left; }
.gift-locked .ring, .card .ic.big + h2 ~ .ring { margin: 10px auto 0; }

/* linhas de aula */
.lrows { margin-top: 6px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; object-position: center 22%; }
.lrow div { flex: 1; min-width: 0; } .lrow b { display: block; } .lrow span { font-size: 13px; color: var(--muted); }
.lrow i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); }
.lrow i .ic { width: 16px; height: 16px; }
.lrow.done i { background: var(--green); color: #fff; } .lrow.done b { color: var(--muted); }

/* números */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; }
.stats:has(.stat:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border-radius: var(--r); padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.stat .ic { color: var(--green-ink); width: 20px; height: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; margin-top: 4px; } .stat span { font-size: 12px; color: var(--muted); }

/* plano */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day { aspect-ratio: .72; background: var(--surface); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px; box-shadow: var(--shadow); text-align: center; }
.day .dn { font-family: var(--serif); font-size: 20px; font-weight: 600; } .day .dn .ic { width: 18px; height: 18px; }
.day .dt { font-size: 9.5px; line-height: 1.15; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day.done { background: var(--deep); color: #fff; } .day.done .dt { color: #cfe3d8; }
.day.cur { outline: 2.5px solid var(--green); }
.day.future { opacity: .55; box-shadow: none; }

/* biblioteca */
.lgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.lcard { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.lcard img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 25%; }
.lcard div { padding: 10px 12px 12px; } .lcard b { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.2; }
.lcard span { font-size: 12px; color: var(--muted); } .lcard em { display: block; font-style: normal; font-size: 12px; color: var(--green-ink); margin-top: 2px; }
.lcard:first-child { grid-column: span 2; } .lcard:first-child img { aspect-ratio: 16/10; object-position: center 30%; }

.lesson-hero { position: relative; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; }
.lesson-hero img { width: 100%; aspect-ratio: 16/11; object-fit: cover; object-position: center 30%; }
.lh-meta { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.lh-meta span { background: rgba(255, 253, 249, .92); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; }
.safety { display: flex; gap: 10px; align-items: flex-start; background: #eaf5ee; color: #1d5a3a; border-radius: 14px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.safety .ic { width: 18px; height: 18px; margin-top: 2px; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
.steps li a { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--surface); border-radius: 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.steps img { width: 56px; height: 70px; border-radius: 12px; object-fit: cover; object-position: center 25%; }
.steps b { display: block; } .steps span { font-size: 13px; color: var(--muted); }

/* player */
.view.dark { background: #0f1714; color: #f3efe7; max-width: none; min-height: 100vh; padding: 0; }
body:has(.view.dark) { background: #0f1714; }
.player { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; padding: 10px 14px calc(14px + var(--safe-b)); }
.p-top { display: flex; align-items: center; gap: 10px; }
.icon-btn.dark { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.p-prog { flex: 1; display: flex; gap: 3px; } .p-prog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.p-prog i.done { background: var(--green); } .p-prog i.on { background: #fff; }
.p-title { display: none; }
.p-stage { position: relative; margin: 10px 0; border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 9/16; max-height: 62vh; align-self: center; width: 100%; max-width: calc(62vh * 9 / 16); }
.p-stage video, .p-practice > img { width: 100%; height: 100%; object-fit: cover; }
.p-practice { position: absolute; inset: 0; }
.p-practice > img { filter: brightness(.45) saturate(.8); }
.p-timer { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 112px; height: 112px; display: grid; place-content: center; text-align: center; }
.p-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); } .p-timer circle { fill: rgba(15, 23, 20, .55); stroke-width: 7; }
.p-timer .track { stroke: rgba(255, 255, 255, .18); } .p-timer .fill { stroke: var(--green); fill: none; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.p-timer b { position: relative; font-family: var(--serif); font-size: 38px; line-height: 1; } .p-timer span { position: relative; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.mirror-wrap { position: absolute; inset: 0; }
.mirror-wrap video, .mirror video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.mirror-wrap #guide, .mirror #guide { position: absolute; inset: 6% 8% 12%; }
.p-info { text-align: center; padding: 0 10px; min-height: 96px; }
.p-info .eyebrow { color: var(--green); } .p-info h2 { color: #fff; margin-bottom: 2px; } .p-info .muted { color: #a9b5ae; margin: 0; }
.p-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding-top: 8px; }
.p-ctrl .icon-btn { background: rgba(255, 255, 255, .08); border-color: transparent; color: #fff; }
.p-ctrl .icon-btn.on { background: var(--green); color: #0f1714; }
.p-ctrl .btn.primary { background: var(--green); border-color: var(--green); color: #0f1714; min-width: 140px; }

/* guia do rosto */
.face-guide { width: 100%; height: 100%; overflow: visible; }
.mk-face { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2.5; stroke-dasharray: 7 6; }
.mk-feat { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-linecap: round; }
.mk-line { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
.mk-line.thin { stroke-width: 3; }
.mk-dot { fill: var(--green); stroke: #fff; stroke-width: 2.5; }
.mk-glow { fill: rgba(46, 204, 113, .35); animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mk-zone { fill: rgba(46, 204, 113, .3); stroke: var(--green); stroke-width: 3; animation: pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { opacity: .35; transform: scale(1.25); } }
.mk-zone { animation-name: pulse2; } @keyframes pulse2 { 50% { opacity: .5; } }

/* espelho */
.mirror { position: relative; aspect-ratio: 3/4; background: #1b2420; border-radius: 22px; overflow: hidden; margin-bottom: 14px; }
.cam-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 30px; background: rgba(15, 23, 20, .82); color: #e7efe9; }
.cam-off[hidden] { display: none; } .cam-off .ic { width: 34px; height: 34px; color: var(--green); } .cam-off p { font-size: 14px; max-width: 260px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -18px; padding-left: 18px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.tip { color: var(--green-ink); font-weight: 600; margin: 6px 2px 4px; }

/* campos */
.field { display: block; margin: 0 0 14px; } .field span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px; font-size: 16px; }
.field input:focus, .field select:focus { outline: 2px solid var(--green); border-color: transparent; }
.err { color: #b3412b; font-size: 14px; min-height: 0; margin: -4px 0 6px; }

/* login / boas-vindas */
.login { display: flex; flex-direction: column; min-height: calc(100vh - 44px); }
.login-hero { margin: -16px -18px 0; height: 44vh; min-height: 260px; overflow: hidden; position: relative; }
.login-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.login-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg)); }
.login-card { margin-top: -30px; position: relative; }
.welcome { padding-top: 10vh; }

/* bônus */
.bonus-list { display: grid; gap: 10px; margin-bottom: 14px; }
.bonus { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); }
.bonus div { flex: 1; } .bonus b { display: block; } .bonus span { font-size: 13px; color: var(--muted); }
.bi { width: 46px; height: 46px; border-radius: 14px; background: #f4ecdc; color: #8f6b2a; display: grid; place-items: center; flex: none; }
.bonus.locked { opacity: .6; }
.lock-card { display: flex; gap: 14px; align-items: flex-start; } .lock-card > .ic { color: var(--gold); margin-top: 2px; } .lock-card .btn { margin-top: 6px; }
.guide .gsec { background: var(--surface); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.guide h3 { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.guide ul, .guide ol { padding-left: 20px; margin: 6px 0; } .guide li { margin: 4px 0; }
.guide p { margin: 6px 0; } .note { font-size: 13px; color: var(--muted); font-style: italic; }
.quiz .opt { display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-radius: 16px; padding: 16px; margin: 10px 0; box-shadow: var(--shadow); font-weight: 600; }
.cert { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); margin-top: 4px; }

/* progresso */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.photos figure { margin: 0; } .photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; }
.photos figcaption { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.compare { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-top { position: absolute; inset: 0; }
.compare input { position: absolute; left: 0; right: 0; bottom: 12px; width: 90%; margin: 0 5%; accent-color: var(--green); }
.compare .cl, .compare .cr { position: absolute; top: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.compare .cl { left: 10px; } .compare .cr { right: 10px; }
.timeline { list-style: none; padding: 0; margin: 0 0 10px; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 14px 18px; position: relative; } .timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li.on::before { background: var(--green); } .timeline b { display: block; font-family: var(--serif); } .timeline span { font-size: 14px; color: var(--muted); }

/* tela de conclusão */
.done-view { text-align: center; padding-top: 12vh; }
.burst { width: 96px; height: 96px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.burst .ic { width: 48px; height: 48px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }

/* barra de abas */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; background: rgba(255, 253, 249, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; max-width: 100px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
.tabbar a.on { color: var(--deep); font-weight: 600; } .tabbar a.on .ic { stroke-width: 2.2; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tab) + 24px + var(--safe-b)); transform: translate(-50%, 20px); background: var(--deep); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; opacity: 0; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
[hidden] { display: none !important; }
