/* Layout: coluna única (520px) sob a faixa de mel; cabeçalho com avatar; cartões claros; botões em pílula; menu flutuante só com ícones */
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; color: var(--fg); background-color: var(--bg); background-image: var(--sky); background-repeat: no-repeat;
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sky-top); }
button, input, textarea { font: inherit; color: inherit; }
a, button { touch-action: manipulation; }
/* Links de texto clicáveis ganham área de toque maior sem mudar o layout */
button.link { position: relative; }
button.link::after { content: ""; position: absolute; inset: -12px -8px; }
button { cursor: pointer; transition: transform .15s ease, background-color .2s ease, border-color .2s ease; }
button:active { transform: scale(.97); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app {
  max-width: 520px; margin: 0 auto; min-height: 100vh;
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  padding-block: 0 calc(124px + env(safe-area-inset-bottom, 0px));
}

/* Cabeçalho */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: calc(16px + env(safe-area-inset-top, 0px)) 8px; margin-top: calc(-1 * env(safe-area-inset-top, 0px)); }
.who-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--on-sky); background: var(--sky-glass); border: 1.5px solid var(--sky-glass-line); }
.who { display: grid; min-width: 0; color: var(--on-sky); }
.who strong { font-weight: 600; font-size: 19px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 13.5px; color: var(--on-sky-soft); display: flex; align-items: center; gap: 6px; }
.round { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--sky-glass); border: 1px solid var(--sky-glass-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.round svg { width: 21px; height: 21px; stroke: var(--on-sky); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.round.solid { background: var(--surface-solid); border-color: var(--line); }
.round.solid svg { stroke: var(--fg); }

/* Tipografia */
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.h-display { font-family: var(--font-display); font-size: 34px; line-height: 1.08; font-weight: 600; letter-spacing: -.028em; }
.h-sec { font-family: var(--font-display); font-size: 23px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.on-sky { color: var(--on-sky); }
p { margin: 0; }
.view { display: grid; gap: 22px; padding-top: 8px; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sec-row a, .sec-row button.link { font-size: 13.5px; }
.sky-title { text-align: center; color: var(--on-sky); font-weight: 500; font-size: 15.5px; }
.card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Cartões de vidro */
.card {
  background: var(--surface); border: 1px solid var(--glass-line); border-radius: var(--r);
  padding: 18px; display: grid; gap: 14px; min-width: 0; box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.card.soft { background: var(--surface-2); box-shadow: none; border-color: transparent; }

/* Botões em pílula */
.btn { position: relative; overflow: hidden; border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 600; background: var(--btn); color: var(--on-btn); min-height: 52px; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 20px -12px var(--glow); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease; }
.btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.ghost { background: var(--surface-solid); color: var(--fg); border: 1px solid var(--line); box-shadow: none; }
.btn.block { width: 100%; }
.btn.sos { background: var(--sos); color: #fff; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pill { color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Próxima prática */
.next-top { display: flex; align-items: center; gap: 14px; }
.next-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.next-ico svg { width: 26px; height: 26px; stroke: var(--on-grad); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.next-top strong { font-family: var(--font-display); font-weight: 600; font-size: 21px; display: block; line-height: 1.25; }
.meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Faixa de dias */
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-inline: -2px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 1 0 50px; border: 1px solid var(--glass-line); background: var(--surface); border-radius: 26px; padding: 10px 0 8px; display: grid; gap: 8px; justify-items: center; font-size: 13px; font-weight: 600; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.day b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.day.has b { box-shadow: inset 0 0 0 2px var(--accent-2); }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); padding-top: 14px; padding-bottom: 12px; }
.day[aria-pressed="true"] b { background: var(--btn); color: var(--on-btn); }

/* Humor e atividades */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mood { border: 1px solid var(--line); background: var(--surface-solid); border-radius: 22px; padding: 10px 2px 8px; display: grid; justify-items: center; gap: 4px; line-height: 1.15; color: var(--fg); }
.mood .face { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mood .face .eye { fill: currentColor; stroke: none; }
.mood small { font-size: 12px; color: var(--muted); font-weight: 500; text-align: center; }
.mood[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 12px 20px -12px var(--glow); }
.mood[aria-pressed="true"] small { color: var(--on-accent); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 56px; }
.pass-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--muted); }
.pass-eye svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pass-eye .slash { display: none; }
.pass-eye[aria-pressed="true"] .slash { display: block; }
.view:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface-solid); border-radius: 999px; padding: 10px 16px; font-size: 14.5px; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .ck { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; }

/* Explorar: chips com ícone redondo */
.cats { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-inline: -2px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--glass-line); font-weight: 500; font-size: 14.5px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cat i { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-solid); display: grid; place-items: center; }
.cat svg { width: 21px; height: 21px; stroke: var(--fg); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cat.on i { background: var(--btn); }
.cat.on svg { stroke: var(--on-btn); }

/* Jardim */
.garden-card { display: grid; grid-template-columns: 1fr 138px; gap: 12px; align-items: center; }
.art { width: 138px; height: 138px; border-radius: 69px 69px 24px 24px / 60px 60px 24px 24px; background: linear-gradient(180deg, #FFE08F, #F5B63A); display: grid; place-items: center; overflow: hidden; }
.art svg { width: 118px; height: auto; display: block; margin-top: 8px; }
.garden-card strong { font-family: var(--font-display); font-weight: 600; font-size: 23px; display: block; line-height: 1.2; }
.progress { height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent-2); transition: width .3s; border-radius: 7px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--glass-line); border-radius: 22px; padding: 14px 10px; display: grid; gap: 2px; text-align: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.stat b { font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Frase */
.quote { font-family: var(--font-serif); font-size: 24px; line-height: 1.25; font-weight: 500; font-style: normal; letter-spacing: -.015em; }
.quote-author { font-size: 14px; color: var(--muted); font-weight: 500; }
.quote-card { background: var(--surface); }
textarea, input[type="text"], input[type="email"], input[type="password"] { width: 100%; border: 1px solid var(--line); background: var(--surface-solid); border-radius: 20px; padding: 14px 16px; resize: vertical; transition: border-color .15s ease, box-shadow .15s ease; }
textarea:focus-visible, input[type="text"]:focus-visible, input[type="email"]:focus-visible, input[type="password"]:focus-visible { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { min-height: 100px; }
::placeholder { color: var(--muted); opacity: .8; }

/* Semana */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; }
.wcol { display: grid; grid-template-rows: 1fr auto auto; gap: 5px; height: 100%; justify-items: center; }
.wbar-wrap { width: 100%; display: flex; align-items: end; justify-content: center; }
.wbar { width: 100%; max-width: 28px; border-radius: 14px; background: var(--accent-2); min-height: 6px; }
.wbar.empty { background: var(--line); }
.wdots { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.wlabel { font-size: 12px; color: var(--muted); font-weight: 600; }
.wcol.today .wlabel { color: var(--fg); font-weight: 700; }
.insight { background: var(--accent-soft); border-radius: 18px; padding: 12px 14px; font-size: 14px; }

/* Calma */
.ex-list { display: grid; gap: 10px; }
.ex { display: grid; grid-template-columns: 52px 1fr auto; gap: 2px 14px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--glass-line); border-radius: 26px; padding: 14px 16px 14px 14px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.ex-ico, .ex-ico.warm, .ex-ico.sky, .ex-ico.mint { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; grid-row: span 2; background: var(--grad); }
.ex-ico svg { width: 24px; height: 24px; stroke: var(--on-grad); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ex strong { font-size: 16.5px; font-weight: 600; }
.ex .pat { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; font-size: 12.5px; grid-row: span 2; text-align: right; max-width: 9ch; }
.ex .small { grid-column: 2; }

/* Respiração */
.breath-stage { display: grid; justify-items: center; gap: 18px; padding-block: 10px; }
.orb-wrap { width: min(74vw, 290px); aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; position: relative; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line); }
.orb-ring::after { content: ""; position: absolute; inset: 10%; border-radius: 50%; border: 1px solid var(--line); }
.orb { width: 40%; aspect-ratio: 1; border-radius: 50%; transition-property: width; transition-timing-function: ease-in-out;
  background: var(--orb); box-shadow: 0 0 60px -6px var(--glow); }
.phase { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -.015em; text-align: center; }
.count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; max-width: 32ch; }
.ground-num { font-family: var(--font-display); font-size: 96px; line-height: 1; font-weight: 600; color: var(--accent-2); letter-spacing: -.03em; }

/* Bolha */
.bubble-zone { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; }
.bubble { max-width: 85%; padding: 22px; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; text-align: center; font-size: 15px; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.7);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.96), rgba(255, 224, 143, .55) 62%, rgba(245, 182, 58, .4)); box-shadow: inset 0 0 30px rgba(255,255,255,.5), var(--shadow); color: #2B2118; }
.bubble.pop { animation: pop .7s ease-in forwards; }
@keyframes pop { 40% { transform: scale(1.12) } 100% { transform: scale(.2) translateY(-140px); opacity: 0 } }

/* Sons */
.snd { display: grid; gap: 14px; }
.snd-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; }
.snd-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-solid); display: grid; place-items: center; }
.snd-btn svg { width: 20px; height: 20px; stroke: var(--fg); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snd-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.snd-btn[aria-pressed="true"] svg { stroke: var(--on-accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Desafios */
.chal { display: grid; gap: 12px; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--accent-2); }

/* Diário */
.entry { position: relative; padding: 14px 4px 14px 18px; display: grid; gap: 6px; border-radius: 14px; transition: background-color .15s ease; }
.entry::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent-2); opacity: .55; }
.entry + .entry { border-top: 1px solid var(--line); }
.entry p { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (hover: hover) { .entry:hover { background: var(--surface-2); } }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--glass-line); padding: 4px; border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1 0 auto; border: 0; background: transparent; border-radius: 999px; padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

/* Lumi */
.chat { display: grid; gap: 10px; min-height: 240px; align-content: start; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 22px; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .3s ease both; }
.msg.bot { background: var(--surface); border: 1px solid var(--glass-line); border-bottom-left-radius: 8px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.msg.me { justify-self: end; background: var(--btn); color: var(--on-btn); border-bottom-right-radius: 8px; }
.chat-form { display: flex; gap: 8px; position: sticky; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); padding-block: 8px; }
.chat-form input { flex: 1; min-width: 0; border-radius: 999px; box-shadow: var(--shadow); }
.bot-head { display: flex; align-items: center; gap: 12px; color: var(--on-sky); }
.bot-head .muted { color: var(--on-sky-soft); }
.bot-av { width: 50px; height: 50px; border-radius: 50%; background: var(--sky-glass); border: 1.5px solid var(--sky-glass-line); display: grid; place-items: center; }
.bot-av svg { width: 24px; height: 24px; stroke: var(--on-sky); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Crise */
.crisis { background: var(--sos-soft); border: 1px solid var(--sos-soft); border-radius: 24px; padding: 16px; display: grid; gap: 8px; }
.crisis .num { font-family: var(--font-display); font-size: 38px; font-weight: 600; color: var(--sos); user-select: all; line-height: 1.1; letter-spacing: -.02em; }

/* Menu flutuante: só ícones, aba ativa em círculo branco */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; pointer-events: none; padding: 0 max(16px, env(safe-area-inset-left, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)); }
/* Menu líquido: barra café; o círculo de mel desliza até a aba ativa, o ícone sobe para dentro dele e o nome aparece embaixo */
.nav-in { --n: 5; --d: 58px; --pad: 6px; pointer-events: auto; position: relative; max-width: 400px; height: 68px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 0 var(--pad); border-radius: 22px;
  background: #2B2118; box-shadow: 0 18px 36px -14px rgba(43, 33, 24, .6); }
.nav-ind { position: absolute; z-index: 0; top: calc(var(--d) / -2 + 2px); width: var(--d); height: var(--d); border-radius: 50%; box-sizing: border-box;
  left: calc(var(--pad) + (100% - 2 * var(--pad)) / var(--n) * var(--i, 0) + ((100% - 2 * var(--pad)) / var(--n) - var(--d)) / 2);
  background: var(--btn); border: 6px solid var(--bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  transition: left .6s cubic-bezier(.68, -.4, .27, 1.4); }
/* as duas "gotas" laterais fazem a barra escorrer suavemente para dentro do círculo */
.nav-ind::before, .nav-ind::after { content: ""; position: absolute; top: 50%; width: 18px; height: 18px; background: transparent; }
.nav-ind::before { left: -22px; border-top-right-radius: 18px; box-shadow: 2px -9px 0 0 var(--bg); }
.nav-ind::after { right: -22px; border-top-left-radius: 18px; box-shadow: -2px -9px 0 0 var(--bg); }
.nav button { position: relative; z-index: 1; border: 0; background: none; height: 68px; display: grid; place-items: center; color: rgba(255,252,245,.72); -webkit-tap-highlight-color: transparent; }
.nav button:active { transform: none; }
.nav svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s cubic-bezier(.22, 1, .36, 1), color .3s; }
.nav .lbl { position: absolute; bottom: 9px; font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: #FFFCF5; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .5s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.nav button[aria-current="page"] { color: var(--on-btn); }
.nav button[aria-current="page"] svg { transform: translateY(-30px); }
.nav button[aria-current="page"] .lbl { opacity: 1; transform: none; transition-delay: .12s; }

/* Sobreposições */
.overlay { position: fixed; inset: 0; z-index: 20; background-color: var(--bg); overflow-y: auto;
  padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
/* Todas as sobreposições, inclusive a do SOS, usam o tema claro (o app não tem tela escura) */
.overlay-in { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
[data-close] { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; font-size: 0; flex: none; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: none; color: var(--fg); position: relative; }
[data-close]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: translate(-30%, -50%) rotate(45deg); }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head h1 { flex: 1; text-align: center; font-size: 17px; font-weight: 600; margin-right: 46px; }

/* Abertura com deslize */
.welcome { position: fixed; inset: 0; z-index: 25; background: linear-gradient(170deg, #FFE08F 0%, #F8C251 46%, #F1AF3B 100%); color: #2B2118; overflow: hidden;
  padding: calc(34px + env(safe-area-inset-top, 0px)) max(22px, env(safe-area-inset-left, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-rows: auto 1fr auto; }
.welcome-in { max-width: 520px; width: 100%; margin: 0 auto; display: grid; grid-template-rows: auto 1fr auto; min-height: 100%; }
.w-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; }
.w-brand .logo-mark { height: 46px; width: auto; color: #fff; }
.w-brand .logo-rule { width: 1.5px; height: 32px; background: #fff; }
.w-brand .logo-word { display: grid; gap: 4px; line-height: 1; text-transform: uppercase; color: #fff; }
.w-brand .logo-word b { font-weight: 600; font-size: 18px; letter-spacing: .24em; }
.w-brand .logo-word small { font-size: 9px; letter-spacing: .5em; }
.w-title { font-family: var(--font-display); font-size: clamp(40px, 11.5vw, 54px); line-height: 1.04; font-weight: 600; letter-spacing: -.035em; }
.w-sub { margin-top: 20px; font-size: 15.5px; color: rgba(43,33,24,.78); max-width: 34ch; }
.w-dots { display: flex; gap: 6px; margin-top: 18px; }
.w-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(43,33,24,.22); }
.w-dots i:first-child { width: 26px; background: #2B2118; }
.w-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.w-art .o1, .w-art .o2, .w-art .o3 { position: absolute; border-radius: 50%; }
.w-art .o1 { width: min(56vw, 232px); aspect-ratio: 406 / 607; border-radius: 50% / 32%; border: 2px solid rgba(255,255,255,.85); }
.w-art .o2 { width: min(44vw, 180px); aspect-ratio: 406 / 607; border-radius: 50% / 32%; border: 1px solid rgba(255,255,255,.45); }
.w-art .o3 { width: min(30vw, 124px); aspect-ratio: 1; background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #FFF6DC 45%, #FFE6A0 100%); box-shadow: 0 0 70px 10px rgba(255,255,255,.55); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(.82) } 50% { transform: scale(1.12) } }
.swipe { position: relative; height: 66px; border-radius: 999px; background: rgba(255,252,245,.72); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: grid; place-items: center; user-select: none; touch-action: none; overflow: hidden; color: #2B2118; font-weight: 600; }
.swipe .handle { position: absolute; left: 7px; top: 7px; width: 52px; height: 52px; border-radius: 50%; background: #2B2118; display: grid; place-items: center; cursor: grab; touch-action: none; border: 0; }
.swipe .handle svg { width: 24px; height: 24px; stroke: #FFE08F; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.swipe .end { position: absolute; right: 7px; top: 7px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.6); display: grid; place-items: center; }
.swipe .end svg { width: 22px; height: 22px; stroke: #2B2118; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); z-index: 30; bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  background: var(--fg); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); animation: rise .25s ease both; }
.disclaimer { font-size: 13px; color: var(--muted); }
.disclaimer b { color: var(--fg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }

/* Planos e paywall */
.perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.perks li { position: relative; padding-left: 28px; font-size: 15px; }
.perks li::after { content: ""; position: absolute; left: 3px; top: 5px; width: 5px; height: 10px; border: solid var(--accent-2); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: var(--surface-solid); border: 1.5px solid var(--line); border-radius: 24px; padding: 16px; width: 100%; }
.plan-l { display: grid; min-width: 0; }
.plan .price { font-family: var(--font-display); font-size: 26px; font-weight: 600; display: grid; text-align: right; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan em { position: absolute; top: -10px; right: 16px; background: var(--btn); color: var(--on-btn); font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan[aria-pressed="true"] { border-color: var(--accent-2); background: var(--accent-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Elevação e hover (referência: estados de card/botão do shadcn/ui) — só em telas com ponteiro */
@media (hover: hover) {
  .btn:not(:disabled) { transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, border-color .2s ease; }
  .btn:not(:disabled):hover { transform: translateY(-1px); background: var(--btn-hover); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 28px -14px var(--glow); }
  .btn.ghost:not(:disabled):hover { background: var(--surface-solid); }
  .btn.sos:not(:disabled):hover { background: var(--sos); }
  .btn.ghost:hover { border-color: var(--accent-2); }
  .ex, .plan, .day, .chip, .cat, .stat { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
  .ex:hover, .plan:hover { border-color: var(--accent-2); box-shadow: var(--shadow); }
  .chip:hover, .cat:hover { border-color: var(--accent-2); }
  .day:hover, .stat:hover { transform: translateY(-2px); }
}

.on-sky .eyebrow, .on-sky .muted { color: var(--on-sky-soft); }
.on-sky .h-display { color: var(--on-sky); }
.sos-hero { border: 0; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; border-radius: 999px; padding: 9px 20px 9px 9px; background: var(--sos-soft); color: var(--fg); }
.sos-hero .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--sos); flex: none; position: relative; }
.sos-hero .dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sos); opacity: .4; animation: ping 2.4s ease-out infinite; }
.sos-hero strong { display: block; font-size: 16.5px; font-weight: 600; }
@keyframes ping { from { transform: scale(.8); opacity: .6 } to { transform: scale(1.4); opacity: 0 } }

/* Entrada em cascata dos itens de lista ao trocar de aba */
.ex-list .ex, .cats .cat, .days .day, .chips .chip, .moods .mood, .stats .stat {
  opacity: 0; animation: item-in .5s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i,0) * 45ms + .05s);
}
@keyframes item-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ex-list .ex, .cats .cat, .days .day, .chips .chip, .moods .mood, .stats .stat { opacity: 1; animation: none; } }

/* Abertura: o arco da logo com o sol que respira e a lótus boiando */
.w-art .o3 { transform-origin: center; translate: 0 -28%; }
.w-art .o4 { position: absolute; width: min(34vw, 142px); aspect-ratio: 360 / 215; height: auto; color: #fff; translate: 0 62%; filter: drop-shadow(0 6px 10px rgba(122,80,0,.25)); }
.welcome-in { height: 100%; }
.w-art { min-height: 0; margin-block: 18px; }
.w-title { text-wrap: initial; }
/* o arco se ajusta à altura que sobra na tela, para nunca encostar no botão de deslizar */
.w-art .o1 { width: auto; height: min(100%, 360px); }
.w-art .o2 { width: auto; height: min(80%, 288px); }
.w-art .o3 { width: auto; height: min(36%, 124px); }
.w-art .o4 { width: auto; height: min(24%, 84px); }
.welcome { grid-template-rows: minmax(0, 1fr); }
.welcome-in { grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; }
.plan .price { white-space: nowrap; }

/* =====================================================================
   Efeitos do app (sem bibliotecas, funcionam offline): cartões que entram ao rolar, inclinação 3D ao tocar,
   botões que espirram líquido, bolinha de respiração que balança como gota, água na abertura e paywall em vidro.
   ===================================================================== */
:root { --spring: cubic-bezier(.22, 1, .36, 1); }

/* Cartões entram ao rolar (translate/filter separados para não brigar com a inclinação) */
.rv { opacity: 0; translate: 0 26px; filter: blur(6px); transition: opacity .8s var(--spring), translate .9s var(--spring), filter .8s var(--spring); }
.rv.in { opacity: 1; translate: none; filter: none; }

/* Inclinação 3D para onde o dedo toca */
.press3d { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--spring), opacity .8s var(--spring), translate .9s var(--spring), filter .8s var(--spring), box-shadow .2s ease, border-color .2s ease; }
.press3d.pressing { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(.985); transition-duration: .12s, .8s, .9s, .8s, .2s, .2s; }

/* Botões espirram líquido a partir do toque */
.btn { --splash: rgba(255, 255, 255, .5); }
.btn.ghost { --splash: rgba(245, 182, 58, .28); }
.btn:not([data-close])::before { content: ""; position: absolute; left: var(--px, 50%); top: var(--py, 50%); width: 14px; aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: var(--splash); translate: -50% -50%; scale: 0; opacity: 0; pointer-events: none; }
.btn.splash:not([data-close])::before { animation: splash .75s var(--spring); }
@keyframes splash { 0% { scale: 0; opacity: .95; rotate: 0deg; } 100% { scale: 42; opacity: 0; rotate: 140deg; } }

/* A bolinha de respiração e o sol da abertura balançam como uma gota */
.orb { animation: wobble 7s ease-in-out infinite; }
.w-art .o3 { animation: breathe 7s ease-in-out infinite, wobble 6s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 56% 44% 52% 48% / 46% 55% 45% 54%; }
  66% { border-radius: 45% 55% 47% 53% / 54% 46% 56% 44%; }
}

/* Abertura: água ondulando dentro do arco, camadas em 3D que seguem o dedo */
.w-art { perspective: 900px; }
.w-art > * { transform-style: preserve-3d; }
.w-art { transform-style: preserve-3d; }
.w-art .o1, .w-art .o2, .w-art .water, .w-art .o3, .w-art .o4 { transition: transform .6s var(--spring); }
.w-art .o1, .w-art .water { transform: rotateY(calc(var(--tx, 0) * 16deg)) rotateX(calc(var(--ty, 0) * -12deg)); }
.w-art .o2 { transform: rotateY(calc(var(--tx, 0) * 16deg)) rotateX(calc(var(--ty, 0) * -12deg)) translateZ(-30px); }
.w-art .o3 { translate: calc(var(--tx, 0) * 22px) calc(-28% + var(--ty, 0) * 16px); }
.w-art .o4 { translate: calc(var(--tx, 0) * 36px) calc(62% + var(--ty, 0) * 24px); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px) rotate(-2deg); } }
.w-art .water { position: absolute; height: min(100%, 360px); aspect-ratio: 406 / 607; border-radius: 50% / 32%; overflow: hidden; }
.w-art .water i { position: absolute; left: 0; bottom: 0; width: 200%; height: 42%; background-repeat: repeat-x; background-size: 50% 100%; animation: wave 8s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 22 Q150 0 300 22 T600 22 T900 22 T1200 22 V120 H0Z' fill='%23ffffff' fill-opacity='.34'/%3E%3C/svg%3E"); }
.w-art .water i:nth-child(2) { height: 38%; animation-duration: 12s; animation-direction: reverse; opacity: .8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 8 300 30 T600 30 T900 30 T1200 30 V120 H0Z' fill='%23FFF6DC' fill-opacity='.4'/%3E%3C/svg%3E"); }
@keyframes wave { to { transform: translateX(-50%); } }

/* Paywall: vidro sobre manchas de mel que se movem como líquido */
.overlay.paywall { isolation: isolate; }
.paywall .liquid { position: fixed; inset: 0; z-index: -1; pointer-events: none; filter: blur(40px) saturate(1.15); overflow: hidden; }
.paywall .liquid i { position: absolute; width: 78vw; max-width: 420px; aspect-ratio: 1; opacity: .9; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  background: radial-gradient(circle at 38% 36%, #FFE59E, #F5B63A 58%, rgba(245,182,58,0) 72%); animation: blob 16s ease-in-out infinite alternate; }
.paywall .liquid i:nth-child(1) { left: -20%; top: 8%; }
.paywall .liquid i:nth-child(2) { right: -24%; top: 34%; animation-duration: 21s; background: radial-gradient(circle at 40% 40%, #F7C04F, #D9981C 58%, rgba(217,152,28,0) 72%); }
.paywall .liquid i:nth-child(3) { left: 10%; bottom: -14%; animation-duration: 19s; animation-delay: -5s; background: radial-gradient(circle at 40% 40%, #FFF0C2, #FFD36B 55%, rgba(255,211,107,0) 72%); }
.paywall .liquid i:nth-child(4) { right: -6%; top: -6%; width: 46vw; animation-duration: 24s; opacity: .55; background: radial-gradient(circle at 40% 40%, #FFE7A8, #C98A2E 58%, rgba(201, 138, 46,0) 72%); }
@keyframes blob {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { transform: translate(-8%, 9%) rotate(40deg) scale(1.12); border-radius: 58% 42% 35% 65% / 55% 38% 62% 45%; }
  100% { transform: translate(7%, -7%) rotate(-20deg) scale(.94); border-radius: 37% 63% 48% 52% / 63% 52% 48% 37%; }
}
.paywall .overlay-in { position: relative; }
.paywall .card, .paywall .plan { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.75);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 26px 50px -32px rgba(122,80,0,.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); }
.paywall .plan { background: rgba(43,33,24,.74); border-color: rgba(255,255,255,.14); color: #FFFCF5; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 30px 56px -30px rgba(43,33,24,.8); }
.paywall .plan .muted, .paywall .plan .price small { color: rgba(255,252,245,.66); -webkit-text-fill-color: rgba(255,252,245,.66); }
.paywall .plan .price { background: linear-gradient(180deg, #FFF3CC 10%, #F5B63A 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; translate: none; filter: none; }
  .btn:not([data-close])::before, .w-art .water i, .paywall .liquid i { animation: none; }
}

/* ---------- Ansiedade e depressão: dois botões de SOS, pequenos passos e energia ---------- */
.sos-pair { display: grid; gap: 10px; }
.sos-hero.heavy { background: rgba(245, 182, 58, .18); }
.sos-hero.heavy .dot { background: var(--btn); }
.sos-hero.heavy .dot::after { border-color: var(--accent-2); }
.steps-card { gap: 12px; }
.steps { display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid); font-size: 15.5px; font-weight: 500; color: var(--fg); transition: background-color .2s, border-color .2s, color .2s; }
.step i { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.6px solid var(--accent-2); transition: background-color .25s, transform .4s var(--spring); }
.step[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--muted); }
.step[aria-pressed="true"] span { text-decoration: line-through; text-decoration-color: var(--accent-2); }
.step[aria-pressed="true"] i { background: var(--btn); border-color: var(--btn); animation: stepPop .45s var(--spring); }
.step[aria-pressed="true"] i::after { content: ""; position: absolute; left: 7.5px; top: 3.5px; width: 5px; height: 10px; border: solid var(--on-btn); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes stepPop { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: none; } }
.energy { display: flex; gap: 8px; flex-wrap: wrap; }
.energy .chip { gap: 10px; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars b { width: 4px; border-radius: 2px; background: currentColor; opacity: .25; }
.bars b:nth-child(1) { height: 5px; } .bars b:nth-child(2) { height: 9px; } .bars b:nth-child(3) { height: 14px; }
.bars.b1 b:nth-child(1), .bars.b2 b:nth-child(-n+2), .bars.b3 b { opacity: 1; }
/* o aviso flutuante centraliza com "translate" para a animação de entrada (que usa transform) não tirar ele do centro */
.toast { transform: none; translate: -50% 0; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); text-align: center; }

/* =====================================================================
   Guia de estilo (DESIGN-guia.md) no app: superfícies planas, fio de 1px no lugar de vidro e sombra,
   cantos de 28px nos cartões e 20px nos controles internos, números em SF Pro 600.
   O vidro fica só no paywall (pedido do dono), que tem regra mais específica.
   ===================================================================== */
.card, .ex, .stat, .day, .cat, .msg.bot, .tabs, .quote-card {
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.card { border-radius: 28px; padding: 20px; }
.card.soft { background: var(--surface-2); border-color: transparent; }
.ex { border-radius: 28px; }
.stat { border-radius: 22px; padding: 16px 10px; }
.stat b { font-size: 28px; letter-spacing: -.02em; }
.day, .mood { border-radius: 20px; }
.chip, .step { border-radius: 999px; }
.step { border-radius: 20px; }
.tabs { border-radius: 999px; background: rgba(43, 33, 24, .05); border-color: transparent; }
.tabs button[aria-selected="true"] { background: var(--surface-solid); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.sos-hero { border-radius: 28px; }
.garden-card .art { border-radius: 28px 28px 22px 22px / 60px 60px 22px 22px; }
.crisis { border-radius: 28px; }
.btn.ghost { border-color: var(--line); }
.round { box-shadow: none; }
.chat-form input { box-shadow: none; }

/* ---------- Pote de humor do mês ---------- */
.jar-card { gap: 12px; }
.jar { display: block; width: min(100%, 300px); aspect-ratio: 1 / 1.08; margin: 4px auto 0; touch-action: pan-y; cursor: grab; }
.jar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.jar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.jar-legend i { width: 12px; height: 12px; border-radius: 50%; }
.jm1 { background: radial-gradient(circle at 35% 30%, #fff 0, #8A6A55 35%, #5E4434 100%); }
.jm2 { background: radial-gradient(circle at 35% 30%, #fff 0, #C99A67 35%, #9A6A3C 100%); }
.jm3 { background: radial-gradient(circle at 35% 30%, #fff 0, #F3E2BE 35%, #D9BE86 100%); }
.jm4 { background: radial-gradient(circle at 35% 30%, #fff 0, #FFD36B 35%, #E9A42A 100%); }
.jm5 { background: radial-gradient(circle at 35% 30%, #fff 0, #FFB066 35%, #F07A2A 100%); }

/* ---------- Venda única: tela de compra para quem ainda não liberou o acesso ---------- */
body.locked .nav { display: none; }
body.locked .app { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.buy-card { gap: 16px; }
.buy-card .perks { margin: 4px 0; }
