/* 31proverbios — identidade: laranja #F25A28, preto #141414, creme #F3EFE4. Archivo + Literata (Escrituras). */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --laranja: #F25A28;
  --laranja-forte: #D9461A;
  --preto: #141414;
  --creme: #F3EFE4;

  --fundo: #F3EFE4;
  --papel: #FBF8F1;
  --papel-2: #ECE5D5;
  --texto: #141414;
  --texto-2: #5E5A52;
  --linha: #DDD5C4;
  --laranja-suave: #FBE2D6;
  --feito: #FCE6DB;
  --agua: #3E8EAE;
  --erro: #B8321A;
  --aviso-ok: #E8E1CF;
  --aviso-erro: #F7D9CE;
  --abas-fundo: rgba(251, 248, 241, .92);
  --forte-fundo: #141414;
  --forte-texto: #F3EFE4;
  --forte-suave: #B9B2A4;
  --sombra: 0 1px 0 rgba(20, 20, 20, .04), 0 10px 30px -18px rgba(20, 20, 20, .35);

  --display: 'Archivo', system-ui, sans-serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
  --raio: 22px;
  --raio-p: 12px;
  --abas-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fundo: #141414; --papel: #1E1D1B; --papel-2: #2A2825; --texto: #F3EFE4; --texto-2: #A8A296; --linha: #34322E;
    --laranja-suave: #3A2219; --feito: #2D1E17; --agua: #5FB0CF; --erro: #FF8A6B; --aviso-ok: #26241F; --aviso-erro: #3E2018;
    --abas-fundo: rgba(30, 29, 27, .92); --forte-fundo: #F25A28; --forte-texto: #141414; --forte-suave: #3B1A0C;
    --sombra: 0 10px 30px -18px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fundo: #141414; --papel: #1E1D1B; --papel-2: #2A2825; --texto: #F3EFE4; --texto-2: #A8A296; --linha: #34322E;
  --laranja-suave: #3A2219; --feito: #2D1E17; --agua: #5FB0CF; --erro: #FF8A6B; --aviso-ok: #26241F; --aviso-erro: #3E2018;
  --abas-fundo: rgba(30, 29, 27, .92); --forte-fundo: #F25A28; --forte-texto: #141414; --forte-suave: #3B1A0C;
  --sombra: 0 10px 30px -18px rgba(0, 0, 0, .8); color-scheme: dark;
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.topo { view-transition-name: topo; }
.abas { view-transition-name: abas; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 1rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
a { color: inherit; text-decoration-color: var(--laranja); text-underline-offset: 3px; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.discreto { color: var(--texto-2); font-size: .9rem; }
.ic { flex: none; }

/* ---------- Marca ---------- */
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.marca .simbolo { height: 30px; width: auto; }
.marca .logotipo { height: 17px; width: auto; }
.logotipo.claro { display: none; }
:root[data-theme="dark"] .logotipo.escuro { display: none; }
:root[data-theme="dark"] .logotipo.claro { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logotipo.escuro { display: none; }
  :root:not([data-theme="light"]) .logotipo.claro { display: block; }
}
.link-discreto { background: none; border: 0; padding: .5rem .35rem; color: var(--texto-2); font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.link-discreto:hover { color: var(--texto); }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--laranja); color: var(--preto); font-weight: 700; font-size: 1rem; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s;
}
.botao:hover { background: var(--laranja-forte); }
.botao:active { transform: scale(.96); }
.botao.secundario { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 2px var(--texto); }
.botao.secundario:hover { background: var(--texto); color: var(--fundo); }
.botao.escuro { background: var(--texto); color: var(--fundo); }
.botao.escuro:hover { background: var(--laranja); color: var(--preto); }
.largo-total { width: 100%; }
.botao-icone { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--texto); color: var(--fundo); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .15s; }
.botao-icone:hover { background: var(--laranja); color: var(--preto); }
.botao-icone:active { transform: scale(.94); }

.aviso { background: var(--aviso-ok); border-radius: var(--raio-p); padding: .85rem 1rem; margin: 0 0 .25rem; font-size: .95rem; font-weight: 500; }
.aviso.erro { background: var(--aviso-erro); color: var(--erro); }
.final-link { display: block; text-decoration: none; text-align: center; font-weight: 700; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form small { color: var(--texto-2); font-weight: 400; }
input, textarea, select {
  font: inherit; color: var(--texto); width: 100%;
  background: var(--papel); border: 2px solid var(--linha); border-radius: var(--raio-p);
  padding: .75rem .9rem; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--laranja); outline: none; box-shadow: 0 0 0 4px var(--laranja-suave); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
legend { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .75rem; padding: 0; display: flex; align-items: center; gap: .6rem; }
.passo-n { min-width: 46px; height: 30px; padding: 0 .5rem; border-radius: 999px; background: var(--laranja); color: var(--preto); font: 800 .85rem/30px var(--display); text-align: center; flex: none; }
.passos fieldset { background: var(--papel); border-radius: var(--raio); padding: 1.25rem; box-shadow: var(--sombra); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex !important; }
.chip input { position: absolute; opacity: 0; inset: 0; min-height: 0; }
.chip span { padding: .5rem 1rem; border-radius: 999px; border: 2px solid var(--linha); background: var(--papel); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chip input:checked + span { background: var(--texto); color: var(--fundo); border-color: var(--texto); }
.chip input:focus-visible + span { outline: 3px solid var(--laranja); outline-offset: 2px; }

.lista-escolha { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.escolha { display: flex !important; align-items: center; gap: .75rem !important; padding: .75rem .9rem; border-radius: var(--raio-p); background: var(--fundo); cursor: pointer; font-weight: 600; }
.escolha input { width: 20px; height: 20px; min-height: 0; accent-color: var(--laranja); flex: none; }
.escolha .ic { color: var(--laranja); }

/* ---------- Conta / onboarding ---------- */
.lp-topo { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 4vw, 2.5rem); max-width: 1200px; margin: 0 auto; }
.conta { max-width: 460px; margin: 0 auto; padding: 1.5rem 1rem 4rem; display: grid; gap: 1rem; }
.conta.largo { max-width: 640px; }
.conta h1 { font-size: clamp(2rem, 7vw, 2.6rem); }
.conta-sub { color: var(--texto-2); margin-bottom: .5rem; }
.conta-troca { text-align: center; color: var(--texto-2); }
.conta .form > .botao { margin-top: .5rem; }
.topo-acoes { display: flex; align-items: center; gap: .25rem; }

/* ---------- App ---------- */
.app { padding-bottom: calc(var(--abas-h) + env(safe-area-inset-bottom) + 1.25rem); }
.topo { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; max-width: 640px; margin: 0 auto; }
.topo form { margin: 0; }
.tela { max-width: 640px; margin: 0 auto; padding: 0 1rem; display: grid; gap: 1rem; }

.abas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--abas-fundo); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
.abas a { position: relative; flex: 1; max-width: 150px; height: var(--abas-h); display: grid; place-content: center; justify-items: center; gap: 3px; text-decoration: none; color: var(--texto-2); font-size: .74rem; font-weight: 700; }
.abas a.ativa { color: var(--texto); }
.abas a.ativa .ic { color: var(--laranja); }
.abas a.ativa::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--laranja); }

.bloco { background: var(--papel); border-radius: var(--raio); padding: 1.25rem; display: grid; gap: .9rem; box-shadow: var(--sombra); }
.bloco h2 { font-size: 1.3rem; display: flex; align-items: center; gap: .55rem; }
.bloco h2 .ic { color: var(--laranja); }
.bloco-sub { color: var(--texto-2); font-size: .92rem; margin-top: -.4rem; }
.vazio { color: var(--texto-2); }
.cabeca-simples { padding: .5rem 0 .25rem; }
.cabeca-simples h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
.cabeca-simples p { color: var(--texto-2); margin-top: .35rem; }

/* Cabeça do dia: anel em volta do símbolo + "07/31" */
.dia-cabeca { text-align: center; padding-top: .25rem; }
.dia-nav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.dia-nav a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--texto-2); }
.dia-nav a:hover { background: var(--papel-2); color: var(--texto); }
.dia-data { color: var(--texto-2); font-size: .92rem; font-weight: 500; }
.dia-topo { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: .75rem; }
.anel { position: relative; width: 112px; height: 112px; flex: none; transition: --p 1s cubic-bezier(.2,.8,.2,1); }
.anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anel circle { fill: none; stroke-width: 9; }
.anel .trilho { stroke: var(--papel-2); }
.anel .arco { stroke: var(--laranja); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); }
.anel img { position: absolute; inset: 0; margin: auto; width: 50px; height: auto; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
.anel.cheio img { transform: scale(1.12) rotate(-6deg); }
.dia-numero { font-size: clamp(3.6rem, 18vw, 5rem); font-weight: 900; letter-spacing: -.05em; line-height: .9; color: var(--laranja); text-align: left; }
.dia-numero small { display: block; font-size: .95rem; letter-spacing: 0; font-weight: 600; color: var(--texto-2); margin-top: .35rem; }
.dia-progresso { color: var(--texto-2); font-size: .95rem; margin-top: .85rem; display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; justify-content: center; font-weight: 500; }
.dia-progresso b { color: var(--texto); }
.dia-progresso .ic { color: var(--laranja); }
.sequencia { display: inline-flex; align-items: center; gap: .25rem; }
.sequencia::before { content: '·'; margin-right: .3rem; }

.meta-cartao { position: relative; overflow: hidden; background: var(--forte-fundo); color: var(--forte-texto); border-radius: var(--raio); padding: 1.3rem 1.3rem 1.4rem; display: grid; gap: .45rem; text-decoration: none; }
.meta-rotulo { display: flex; align-items: center; gap: .4rem; color: var(--laranja); font-size: .88rem; font-weight: 700; }
:root[data-theme="dark"] .meta-rotulo { color: var(--preto); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meta-rotulo { color: var(--preto); } }
.meta-titulo { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.025em; position: relative; }
.meta-porque { color: var(--forte-suave); font-size: .95rem; position: relative; }
.meta-marco { font-size: .9rem; font-weight: 600; border-top: 1px solid color-mix(in srgb, var(--forte-texto) 18%, transparent); padding-top: .55rem; margin-top: .2rem; position: relative; }
.meta-editar { position: absolute; top: 1rem; right: 1rem; z-index: 1; font-size: .82rem; font-weight: 700; color: inherit; opacity: .75; text-decoration: none; }
.meta-editar:hover { opacity: 1; }

/* Como acordei */
.acordei { display: grid; gap: .85rem; }
.hora { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.hora input { width: auto; flex: none; }
.humor { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.humor button { display: grid; justify-items: center; gap: 2px; padding: .55rem 0; border: 2px solid transparent; border-radius: var(--raio-p); background: var(--fundo); cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.humor button span { font-size: 1.5rem; filter: grayscale(.8); opacity: .8; transition: filter .2s, opacity .2s; }
.humor button small { font-size: .7rem; color: var(--texto-2); font-weight: 600; }
.humor button[aria-checked="true"] { border-color: var(--laranja); background: var(--laranja-suave); transform: translateY(-3px); }
.humor button[aria-checked="true"] span { filter: none; opacity: 1; animation: pop .45s ease; }

/* Hábitos */
.habitos { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.habito { position: relative; border-radius: 16px; background: var(--fundo); transition: background .3s; }
.habito-linha { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .85rem .9rem; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 16px; }
.contador .habito-linha { cursor: default; padding-bottom: .4rem; }
.habito-icone { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--papel); color: var(--texto); flex: none; transition: background .3s, color .3s, transform .3s; }
.habito-nome { flex: 1; font-weight: 600; transition: color .3s; }
.caixa { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 2.5px solid var(--linha); display: grid; place-items: center; flex: none; transition: background .25s, border-color .25s; }
.caixa svg { width: 18px; height: 18px; fill: none; stroke: var(--preto); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s ease .08s; }
.habito.feito { background: var(--feito); }
.habito.feito .habito-icone { background: var(--laranja); color: var(--preto); }
.habito.feito .caixa { background: var(--laranja); border-color: var(--laranja); }
.habito.feito .caixa svg { stroke-dashoffset: 0; }
.habito.feito .habito-nome { color: var(--texto-2); }
.habito.agora .caixa { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
.habito.agora .habito-icone { animation: girinho .6s cubic-bezier(.3,1.6,.5,1); }
.faisca { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--laranja); pointer-events: none; animation: faisca .6s ease-out forwards; }
.contagem { font-size: .9rem; color: var(--texto-2); font-variant-numeric: tabular-nums; font-weight: 600; }
.contagem b { color: var(--texto); font-weight: 800; }
.copos { display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); gap: .3rem; padding: 0 .9rem .9rem; }
.copo { height: 42px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.copo::before { content: ''; position: absolute; inset: 3px 5px; border: 2px solid var(--agua); border-radius: 3px 3px 8px 8px; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); background: var(--papel); }
.copo span { position: absolute; left: 7px; right: 7px; bottom: 5px; height: 0; background: var(--agua); clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); border-radius: 0 0 6px 6px; transition: height .45s cubic-bezier(.3,1.3,.5,1); }
.copo.cheio span { height: calc(100% - 12px); }
.habito-unidade { display: block; color: var(--texto-2); padding: 0 .9rem .8rem; margin-top: -.4rem; font-size: .8rem; }

/* Leitura do dia */
.leitura-dia blockquote, .favoritos blockquote, .citacao { margin: 0; padding-left: 1rem; border-left: 4px solid var(--laranja); }
.leitura-dia blockquote p, .favoritos blockquote p, .citacao p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
blockquote cite, .citacao cite { display: block; margin-top: .4rem; color: var(--texto-2); font-style: normal; font-size: .88rem; font-weight: 600; }
.status-consid { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--texto-2); }
.status-consid.feito { color: var(--texto); }
.status-consid.feito .ic { color: var(--laranja); }

/* Fechamento */
.tarefas { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.tarefas li { display: flex; align-items: center; gap: .6rem; padding: .55rem .4rem .55rem .75rem; background: var(--fundo); border-radius: var(--raio-p); animation: entrar .35s ease; font-weight: 500; transition: opacity .2s; }
.tarefas li span:nth-child(2) { flex: 1; }
.tarefa-marca { color: var(--laranja); display: grid; }
.remover { border: 0; background: none; cursor: pointer; color: var(--texto-2); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.remover:hover { background: var(--papel-2); color: var(--texto); }
.nova-tarefa { display: flex; gap: .5rem; }
.selo-area { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.selo { width: 100px; height: 100px; border-radius: 50%; background: var(--laranja); color: var(--preto); display: grid; place-content: center; text-align: center; transform: rotate(-12deg) scale(0); opacity: 0; font-size: .78rem; font-weight: 700; line-height: 1.15; }
.selo b { font-family: var(--display); font-size: 1.5rem; font-weight: 900; letter-spacing: -.04em; }
.encerrado .selo { transform: rotate(-12deg) scale(1); opacity: 1; }
.encerrado.agora .selo { animation: carimbo .6s cubic-bezier(.3,1.5,.5,1); }

/* ---------- Leitura ---------- */
.leitura-cabeca { text-align: center; display: grid; gap: .55rem; padding-bottom: .5rem; }
.leitura-cabeca h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
.leitura-dica { color: var(--texto-2); font-size: .92rem; max-width: 30em; margin: 0 auto; }
.link-ntlh { justify-self: center; font-size: .88rem; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; background: var(--papel-2); text-decoration: none; }
.link-ntlh:hover { background: var(--laranja); color: var(--preto); }
.versos { list-style: none; margin: 0; background: var(--papel); border-radius: var(--raio); padding: .5rem; box-shadow: var(--sombra); }
.verso { border-radius: 14px; transition: background .2s; }
.verso-linha { display: flex; align-items: flex-start; }
.verso-texto { flex: 1; background: none; border: 0; text-align: left; padding: .7rem .6rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; cursor: pointer; border-radius: 14px; }
.verso-texto sup { font-family: var(--display); font-size: .72rem; font-weight: 800; color: var(--laranja); margin-right: .35rem; vertical-align: .45em; }
.verso.anotado .verso-texto { text-decoration: underline; text-decoration-color: var(--laranja); text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
.verso.aberto { background: var(--fundo); }
.estrela { flex: none; width: 44px; height: 44px; margin-top: .3rem; border: 0; background: none; cursor: pointer; color: var(--linha); display: grid; place-items: center; border-radius: 50%; }
.estrela:hover { color: var(--texto-2); }
.verso.favorito .estrela { color: var(--laranja); }
.verso.favorito .estrela svg { fill: var(--laranja); }
.estrela.agora svg { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.anotacao { padding: 0 .6rem .7rem; }
.credito { color: var(--texto-2); font-size: .8rem; text-align: center; }

/* Considerações do capítulo */
.consideracoes { background: var(--forte-fundo); color: var(--forte-texto); border-radius: var(--raio); padding: 1.4rem 1.25rem; display: grid; gap: 1rem; }
.consideracoes h2 { font-size: 1.5rem; }
.consideracoes h2 span { display: block; font-size: .85rem; font-weight: 700; letter-spacing: 0; color: var(--laranja); margin-bottom: .3rem; }
:root[data-theme="dark"] .consideracoes h2 span { color: var(--preto); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .consideracoes h2 span { color: var(--preto); } }
.consideracoes label { display: grid; gap: .4rem; font-weight: 700; }
.consideracoes label small { font-weight: 400; color: var(--forte-suave); }
.consideracoes textarea { background: color-mix(in srgb, var(--forte-texto) 8%, var(--forte-fundo)); color: var(--forte-texto); border-color: color-mix(in srgb, var(--forte-texto) 20%, transparent); }
.consideracoes textarea::placeholder { color: var(--forte-suave); }
.consideracoes .botao { justify-self: start; background: var(--forte-texto); color: var(--forte-fundo); }
.consideracoes .botao:hover { background: var(--laranja); color: var(--preto); }
.consideracoes textarea { font-weight: 400; }

.capitulos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: .5rem; }
.capitulos a { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: var(--papel); border-radius: 16px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; transition: transform .15s; }
.capitulos a:active { transform: scale(.94); }
.capitulos a.passado { background: var(--papel-2); }
.capitulos a.hoje { background: var(--laranja); color: var(--preto); }
.ponto { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--laranja); }
.capitulos a.hoje .ponto { background: var(--preto); }

/* ---------- Jornada ---------- */
.numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 0; }
.numeros div { background: var(--papel); border-radius: 16px; padding: .9rem 1rem; box-shadow: var(--sombra); }
.numeros dt { color: var(--texto-2); font-size: .85rem; font-weight: 600; }
.numeros dd { margin: 0; font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: 1.05; letter-spacing: -.04em; }
.numeros small { font-size: .95rem; color: var(--texto-2); font-weight: 600; letter-spacing: 0; }
@media (min-width: 520px) { .numeros { grid-template-columns: repeat(4, 1fr); } }
.grade-dias { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.dia-celula { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .9rem; overflow: hidden; background: var(--fundo); }
.dia-celula::before { content: ''; position: absolute; inset: 0; background: conic-gradient(var(--laranja) calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%); mask: radial-gradient(circle, transparent 58%, #000 60%); }
.dia-celula.completo { background: var(--laranja); color: var(--preto); }
.dia-celula.completo::before { display: none; }
.dia-celula.futuro { color: var(--linha); background: transparent; border: 2px dashed var(--linha); }
.dia-celula.hoje { box-shadow: 0 0 0 3px var(--texto); }
.dc-n { position: relative; }
.dc-humor { position: absolute; bottom: -2px; right: -2px; font-size: .75rem; }
.legenda { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; color: var(--texto-2); font-size: .8rem; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: -.5rem; vertical-align: -1px; }
.lg.completo { background: var(--laranja); }
.lg.parcial { background: conic-gradient(var(--laranja) 50%, var(--fundo) 0); }
.lg.vazio { background: var(--fundo); box-shadow: inset 0 0 0 1px var(--linha); }
.favoritos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.fav-nota { margin-top: .5rem; color: var(--texto-2); font-size: .95rem; padding-left: 1rem; }
.conclusao { background: var(--laranja); color: var(--preto); border-radius: var(--raio); padding: 1.6rem 1.25rem; text-align: center; display: grid; gap: .8rem; justify-items: center; }
.conclusao img { width: 64px; }
.conclusao h2 { font-size: 2rem; }
.conclusao .botao { background: var(--preto); color: var(--creme); }
.espera { text-align: center; display: grid; gap: 1rem; padding-top: 1.5rem; justify-items: center; }
.espera img { width: 84px; }
.espera h1 { font-size: 2.2rem; }
.espera > p { color: var(--texto-2); }

/* ---------- Refúgio ---------- */
.perfil { background: var(--papel); border-radius: var(--raio); overflow: hidden; box-shadow: var(--sombra); }
.perfil-capa { position: relative; height: 120px; background: var(--laranja); overflow: hidden; }
.perfil-capa::before, .perfil-capa::after { content: ''; position: absolute; left: -20%; right: -20%; border-radius: 50%; border-top: 16px solid var(--preto); }
.perfil-capa::before { top: 55px; height: 260px; transform: rotate(-6deg); }
.perfil-capa::after { top: 85px; height: 260px; transform: rotate(-4deg); border-top-width: 10px; }
.perfil-corpo { padding: 0 1.25rem 1.25rem; display: grid; gap: .55rem; }
.perfil-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: -46px; }
.avatar { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--papel); background: var(--texto); color: var(--fundo); display: grid; place-items: center; font: 900 2rem/1 var(--display); letter-spacing: -.04em; overflow: hidden; position: relative; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.perfil-acoes { display: flex; gap: .4rem; flex-wrap: nowrap; justify-content: flex-end; padding-bottom: .2rem; }
.botao.pequeno { min-height: 38px; padding: .4rem .85rem; font-size: .85rem; white-space: nowrap; }
.perfil-nome { font-size: 1.6rem; margin-top: .4rem; }
.perfil-handle { color: var(--texto-2); font-weight: 600; margin-top: -.35rem; }
.perfil-bio { font-size: 1rem; }
.perfil-dados { display: flex; flex-wrap: wrap; gap: .35rem .9rem; color: var(--texto-2); font-size: .9rem; font-weight: 500; }
.perfil-dados b { color: var(--texto); font-weight: 800; }
.perfil-dados span { display: inline-flex; align-items: center; gap: .3rem; }
.perfil-dados .ic { color: var(--laranja); }

.escrever { display: grid; gap: .75rem; }
.escrever textarea { border: 0; background: transparent; padding: .25rem 0; font-size: 1.15rem; min-height: 90px; box-shadow: none !important; }
.escrever-rodape { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--linha); padding-top: .75rem; }
.etiquetas { display: flex; flex-wrap: wrap; gap: .35rem; }
.etiqueta-btn { border: 2px solid var(--linha); background: none; border-radius: 999px; padding: .3rem .75rem; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--texto-2); transition: all .2s; }
.etiqueta-btn[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: var(--fundo); }
.privado { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--texto-2); }
.escrever-acoes { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.contador-chars { font-size: .8rem; color: var(--texto-2); font-variant-numeric: tabular-nums; }
.contador-chars.limite { color: var(--erro); font-weight: 700; }
.citar { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--texto-2); cursor: pointer; }
.citar input { width: 18px; height: 18px; min-height: 0; accent-color: var(--laranja); }

.abas-perfil { display: flex; gap: .25rem; border-bottom: 2px solid var(--linha); overflow-x: auto; }
.abas-perfil a { padding: .75rem 1rem; font-weight: 700; text-decoration: none; color: var(--texto-2); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.abas-perfil a.ativa { color: var(--texto); border-color: var(--laranja); }
.filtros { display: flex; gap: .35rem; flex-wrap: wrap; }
.filtros a { padding: .3rem .8rem; border-radius: 999px; background: var(--papel); font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--texto-2); }
.filtros a.ativa { background: var(--texto); color: var(--fundo); }

.linha-tempo { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.pensamento { background: var(--papel); border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: .5rem; box-shadow: var(--sombra); }
.pensamento.novo { animation: nascer-post .6s cubic-bezier(.2,.9,.3,1.2); }
.pensamento.saindo { animation: sair-post .3s ease forwards; }
.pensamento.fixado { box-shadow: inset 4px 0 0 var(--laranja), var(--sombra); }
.pens-topo { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--texto-2); font-weight: 600; }
.pens-topo .tag { background: var(--laranja-suave); color: var(--texto); padding: .15rem .6rem; border-radius: 999px; font-weight: 700; }
.pens-topo .pin { color: var(--laranja); display: inline-flex; align-items: center; gap: .2rem; }
.pens-menu { margin-left: auto; display: flex; gap: .1rem; }
.pens-menu button { border: 0; background: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--texto-2); }
.pens-menu button:hover { background: var(--papel-2); color: var(--texto); }
.pens-menu button[aria-pressed="true"] { color: var(--laranja); }
.pens-texto { font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.pens-texto[contenteditable="true"] { outline: 2px solid var(--laranja); border-radius: 8px; padding: .25rem .4rem; }
.pensamento .citacao p { font-size: 1rem; }
.consid-item { background: var(--papel); border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: .5rem; box-shadow: var(--sombra); }
.consid-item h3 { font-size: 1.15rem; }
.consid-item h3 a { text-decoration: none; }
.consid-item dl { margin: 0; }
.consid-item dt { font-size: .8rem; font-weight: 800; color: var(--laranja); }
.consid-item dd { margin: 0 0 .4rem; white-space: pre-wrap; }
.estado-vazio { text-align: center; padding: 2rem 1rem; color: var(--texto-2); display: grid; gap: .5rem; justify-items: center; }
.estado-vazio img { width: 54px; opacity: .9; }
.estado-vazio strong { color: var(--texto); font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }

.avatar-editar { display: flex; align-items: center; gap: 1rem; }
.avatar-editar input[type=file] { padding: .55rem; }

/* ---------- Metas / admin ---------- */
.editar-habitos { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.editar-habitos li { background: var(--fundo); border-radius: 16px; padding: .75rem; display: grid; gap: .6rem; }
.eh-linha { display: flex; align-items: center; gap: .6rem; }
.eh-opcoes { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.eh-opcoes label { flex: 1 1 120px; font-size: .85rem !important; }
.eh-opcoes .remover-check { flex: 0 0 auto; display: flex !important; align-items: center; gap: .4rem; min-height: 50px; color: var(--erro); }
.remover-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--erro); }
.novo-habito { border-top: 2px dashed var(--linha); padding-top: 1rem; }
.novo-habito legend { font-size: 1.05rem; }
.perigo h2 { color: var(--erro); }
.admin-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.admin-lista li { background: var(--papel); border-radius: 16px; padding: 1rem; display: grid; gap: .4rem; }
.admin-senha { display: flex; gap: .5rem; margin-top: .3rem; }

/* ---------- Tema / feedback ---------- */
.tema-botao { width: 44px; height: 44px; border-radius: 50%; border: 0; background: none; color: var(--texto-2); cursor: pointer; display: grid; place-items: center; }
.tema-botao:hover { background: var(--papel-2); color: var(--texto); }
.tema-botao .ic-sol { display: none; }
:root[data-theme="dark"] .tema-botao .ic-lua { display: none; }
:root[data-theme="dark"] .tema-botao .ic-sol { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tema-botao .ic-lua { display: none; }
  :root:not([data-theme="light"]) .tema-botao .ic-sol { display: block; }
}
.salvo { position: fixed; left: 50%; bottom: calc(var(--abas-h) + env(safe-area-inset-bottom) + 12px); transform: translate(-50%, 10px); background: var(--texto); color: var(--fundo); padding: .5rem 1.05rem; border-radius: 999px; font-size: .85rem; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 30; }
.salvo.mostrar { opacity: 1; transform: translate(-50%, 0); }
.salvo.erro { background: var(--erro); color: #fff; }
.confete { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes girinho { 0% { transform: scale(1) rotate(0); } 50% { transform: scale(1.15) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes faisca { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } }
@keyframes nascer-post { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes sair-post { to { opacity: 0; transform: translateX(30px); } }
@keyframes carimbo { 0% { transform: rotate(-40deg) scale(2.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Apoio ---------- */
.selo-apoiador { display: inline-flex; align-items: center; gap: .25rem; vertical-align: 2px; background: var(--laranja); color: var(--preto); font-size: .72rem; font-weight: 800; padding: .15rem .55rem; border-radius: 999px; }
.link-apoiar { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; font-size: .88rem; font-weight: 700; color: var(--laranja); text-decoration: none; margin-top: .2rem; }
.link-apoiar:hover { text-decoration: underline; }
.apoio-cartao { display: flex; gap: 1rem; align-items: flex-start; background: var(--laranja-suave); border-radius: var(--raio); padding: 1.2rem; overflow: hidden; transition: opacity .3s, transform .3s, max-height .4s; max-height: 400px; animation: entrar .5s ease; }
.apoio-cartao img { width: 42px; flex: none; }
.apoio-cartao p { font-size: .95rem; }
.apoio-titulo { font-family: var(--display); font-weight: 800; font-size: 1.15rem !important; letter-spacing: -.02em; margin-bottom: .3rem !important; }
.apoio-acoes { display: flex; align-items: center; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.apoio-cartao.saindo { opacity: 0; transform: translateY(-8px); max-height: 0; padding-top: 0; padding-bottom: 0; }
.apoio-valor { font: 900 clamp(4.5rem, 20vw, 8rem)/.85 var(--display); letter-spacing: -.06em; color: var(--laranja); }
.apoio-valor span { font-size: .28em; letter-spacing: 0; vertical-align: .9em; margin-right: .1em; color: var(--texto); }
.apoiar { max-width: 680px; margin: 0 auto; padding: 1.5rem 1rem 4rem; display: grid; gap: 2.5rem; }
.apoiar-pre { color: var(--laranja); font-weight: 700; }
.apoiar-topo h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); font-weight: 900; letter-spacing: -.05em; line-height: .95; margin-top: .4rem; }
.apoiar-sub { color: var(--texto-2); font-size: 1.15rem; margin-top: 1rem; }
.apoiar-valor { background: var(--papel); border-radius: 28px; padding: 1.8rem 1.4rem; display: grid; gap: 1rem; justify-items: start; box-shadow: var(--sombra); }
.apoiar-valor .botao[disabled] { opacity: .55; cursor: not-allowed; }
.apoiar-nota { color: var(--texto-2); font-size: .9rem; }
.apoiar-verso { margin: 0; padding: 1.4rem 1.4rem 1.4rem 1.6rem; border-left: 5px solid var(--laranja); background: var(--forte-fundo); color: var(--forte-texto); border-radius: 0 22px 22px 0; }
.apoiar-verso p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }
.apoiar-verso cite { display: block; margin-top: .6rem; font-style: normal; font-weight: 700; color: var(--forte-suave); }
.apoiar-destino h2, .apoiar-porque h2 { font-size: 1.8rem; margin-bottom: 1rem; }
.apoiar-destino ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.apoiar-destino li { display: flex; gap: .9rem; background: var(--papel); border-radius: 18px; padding: 1rem 1.1rem; }
.apoiar-destino li .ic { color: var(--laranja); margin-top: .1rem; }
.apoiar-destino p, .apoiar-porque p { color: var(--texto-2); }
.apoiar-voltar { text-align: center; font-weight: 600; }
