:root {
  --brand: #1f6f78;        /* cor principal */
  --brand-2: #e8f3f3;
  --accent: #ff7a59;       /* destaque / descontos */
  --ink: #142326;
  --muted: #5f6f72;
  --line: #e3e9ea;
  --bg: #ffffff;
  --soft: #f4f7f7;
  --err: #d64545;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--brand); }
#app { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 16px 120px; }

/* topo */
.top { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.back { font-size: 22px; color: var(--muted); padding: 8px 8px 8px 0; }
.logo { font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.logo.big { font-size: 22px; display: block; text-align: center; margin: 24px 0 8px; }
.count { color: var(--muted); font-size: 15px; } .count b { color: var(--ink); }
.bar { height: 6px; background: var(--soft); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 9px; transition: width .4s; }

/* telas */
.screen { padding-top: 28px; animation: in .3s ease; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
h1 { font-size: 28px; line-height: 1.15; text-align: center; margin: 8px 0 12px; letter-spacing: -.02em; }
h2 { font-size: 24px; line-height: 1.25; text-align: center; margin: 0 0 10px; letter-spacing: -.01em; }
h3 { margin: 0 0 12px; font-size: 18px; }
.sub { color: var(--muted); text-align: center; line-height: 1.5; margin: 0 0 20px; }
.sub.left { text-align: left; margin: 8px 0 0; font-size: 14px; }
.pre { white-space: pre-line; }
.badge { display: block; width: max-content; margin: 0 auto 24px; padding: 6px 14px; border-radius: 99px; background: var(--brand-2); color: var(--brand); font-weight: 700; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; text-align: center; }
.err { color: var(--err); text-align: center; font-size: 15px; margin: 10px 0; }
.accent { color: var(--brand); }

/* landing */
.genders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.gender { background: var(--soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s; }
.gender:active { transform: scale(.97); }
.gender .ico { font-size: 84px; padding: 22px 0 10px; }
.gender .glabel { background: var(--brand); color: #fff; font-weight: 700; padding: 14px; }

/* opções */
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 18px 16px; min-height: 64px; border-radius: var(--radius); background: var(--soft); border: 2px solid transparent; font-weight: 600; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line); }
.opt.on { border-color: var(--brand); background: var(--brand-2); }
.oi { font-size: 26px; } .oi.r { margin-left: auto; }
.box { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid #b9c6c8; background: #fff; }
.opt.on .box { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--brand); }

/* info */
.info { text-align: center; padding-top: 48px; }
.hero { font-size: 96px; width: 180px; height: 180px; margin: 0 auto 28px; border-radius: 50%; background: var(--brand-2); display: grid; place-items: center; }

/* medidas */
.toggle { display: flex; width: max-content; margin: 8px auto 28px; background: var(--soft); border-radius: 99px; padding: 4px; }
.toggle button { padding: 10px 26px; border-radius: 99px; font-weight: 600; color: var(--muted); }
.toggle .on { background: var(--brand); color: #fff; }
.measure { display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.big-in { width: 92px; font: 800 64px/1 'Plus Jakarta Sans', sans-serif; text-align: center; border: 0; border-bottom: 2px solid var(--line); outline: none; color: var(--ink); background: transparent; }
.big-in.w { width: 170px; }
.big-in:focus { border-color: var(--brand); }
.u { font-weight: 700; font-size: 20px; margin-right: 10px; }
.field { width: 100%; padding: 18px 16px; font: 600 18px 'Plus Jakarta Sans', sans-serif; border: 2px solid var(--line); border-radius: var(--radius); outline: none; margin: 12px 0 8px; background: #fff; color: var(--ink); }
.field:focus { border-color: var(--brand); }
.tip { display: flex; gap: 12px; background: var(--soft); border-radius: var(--radius); padding: 16px; margin: 24px 0 16px; font-size: 14px; }
.tip span { font-size: 22px; } .tip p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }

/* checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check.small { font-size: 12px; }
.check input { position: absolute; opacity: 0; }
.check > span { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 2px solid #b9c6c8; background: #fff; }
.check input:checked + span { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--brand); }
.check em { font-style: normal; }

/* rodapé */
.foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.offer .foot { position: static; padding: 8px 0 24px; background: none; }
.cta { width: 100%; max-width: 448px; padding: 18px; border-radius: var(--radius); background: var(--brand); color: #fff; font-weight: 700; font-size: 18px; transition: opacity .2s, transform .1s; }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .4; cursor: default; }
.cta.sm { width: auto; padding: 10px 18px; font-size: 15px; }
.link { color: var(--muted); text-decoration: underline; padding: 8px; }

/* loading */
.center { text-align: center; padding-top: 64px; }
.ring { position: relative; width: 180px; height: 180px; margin: 0 auto 28px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--soft); } .ring .prog { stroke: var(--brand); stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; }
.steps { list-style: none; padding: 0; margin: 24px auto; max-width: 300px; text-align: left; }
.steps li { padding: 8px 0 8px 32px; position: relative; color: var(--muted); transition: color .3s; }
.steps li::before { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }

/* oferta */
.sticky { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 10px 0; background: var(--bg); font-weight: 800; color: var(--brand); border-bottom: 1px solid var(--line); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.offer { padding-top: 20px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 20px; }
.chips div { background: var(--soft); border-radius: 12px; padding: 12px; text-align: center; }
.chips small { display: block; color: var(--muted); font-size: 12px; } .chips b { font-size: 18px; }
.plans { display: flex; flex-direction: column; gap: 10px; }
.plan { display: flex; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); text-align: left; }
.plan.on { border-color: var(--brand); background: var(--brand-2); }
.radio { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #b9c6c8; }
.plan.on .radio, .pm.on .radio { border: 7px solid var(--brand); }
.pl { flex: 1; display: flex; flex-direction: column; } .pl small { color: var(--muted); }
.pr { display: grid; justify-items: end; } .pr s { color: var(--muted); font-size: 13px; } .pr b { font-size: 20px; }
.pr em { font-style: normal; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.guar { text-align: center; font-weight: 600; color: var(--brand); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; }
.fine.green { color: var(--brand); }
.card { background: var(--soft); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); } .kv small { color: var(--muted); }
.muted { color: var(--muted); display: block; margin-top: 12px; }
.ticks { padding: 0; list-style: none; margin: 8px 0 0; } .ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.bmi .scale { position: relative; height: 10px; border-radius: 9px; margin: 40px 0 8px; background: linear-gradient(90deg, #6cb4e8 0 14%, #5ec28a 14% 40%, #f2b84b 40% 60%, #e8665f 60%); }
.bmi .scale i { position: absolute; top: -6px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); }
.bmi .scale i span { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.bmi .labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.copy { text-align: center; color: var(--muted); font-size: 12px; }

/* checkout */
.modal { position: fixed; inset: 0; background: rgba(10, 20, 22, .55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; animation: in .2s; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.x { position: absolute; right: 12px; top: 8px; font-size: 30px; color: var(--muted); }
.row { display: flex; justify-content: space-between; padding: 8px 0; } .row.red span:last-child { color: var(--accent); }
.row.total { border-top: 1px solid var(--line); font-weight: 800; font-size: 18px; margin-top: 4px; padding-top: 12px; }
.cap { display: block; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 16px 0 10px; }
.pm { display: flex; align-items: center; gap: 12px; width: 100%; padding: 18px 16px; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; font-weight: 600; }
.pm.on { border-color: var(--brand); } .pm em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); font-weight: 700; }
