:root {
  /* Tons pastel da SAS Kids (os mesmos do site). A app é sempre clara, como o site. */
  color-scheme: light;
  --bg: #fffdf8;
  --card: #ffffff;
  --text: #2f3657;
  --muted: #646b8a;
  --border: #ece9f5;
  --primary: #13878a;
  --primary-text: #ffffff;
  --teal: #1fa5a8;
  --coral: #ff7f6e;
  --mint: #d8f3e8; --sky: #dcefff; --butter: #fff3c4; --pink: #ffe0ea; --lilac: #ebe2fb; --peach: #ffe3d3;
  --brand-gradient: linear-gradient(135deg, #1fa5a8, #13878a);
  --good: #1d8a4f;
  --good-bg: #ddf5e8;
  --bad: #d64545;
  --bad-bg: #ffe4e4;
  --warn: #a8700f;
  --warn-bg: #fff3c4;
  --radius: 20px;
  --shadow: 0 6px 18px rgba(47, 54, 87, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 720px; margin: 0 auto; padding: 16px 16px 96px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 24px 0 10px; }
h3 { font-size: 1rem; margin: 0; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; padding: 40px 0; }
.hidden { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.spread { justify-content: space-between; }

button, .btn {
  font: inherit;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
button.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
button.good { background: var(--good-bg); color: var(--good); border-color: transparent; font-weight: 600; }
button.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; font-weight: 600; }
button.link { border: none; background: none; color: var(--primary); padding: 6px; }
button:disabled { opacity: .5; cursor: default; }
button.block { width: 100%; padding: 12px; }

input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
input[type=checkbox], input[type=radio] { width: auto; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .9rem; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 4px 12px 4px 0; }

.header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.balance {
  background: var(--brand-gradient); color: #fff;
  border-radius: var(--radius); padding: 18px; text-align: center; margin-bottom: 14px;
}
.balance .big { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 5;
}
.tabs button {
  flex: 1; max-width: 140px; border: none; background: none;
  font-size: .78rem; padding: 6px 2px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tabs button .ic { font-size: 1.3rem; }
.tabs button.active { color: var(--primary); font-weight: 700; }
.badge {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; text-align: center;
}

.pts { font-weight: 700; white-space: nowrap; }
.pts.plus { color: var(--good); }
.pts.minus { color: var(--bad); }
.pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.approved { background: var(--good-bg); color: var(--good); }
.pill.rejected { background: var(--bad-bg); color: var(--bad); }

.task {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; width: 100%; text-align: left;
}
.task .check {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem;
}
.task.pending .check { border-color: var(--warn); background: var(--warn-bg); }
.task.approved .check { border-color: var(--good); background: var(--good); color: #fff; }
.task.rejected .check { border-color: var(--bad); background: var(--bad-bg); color: var(--bad); }

.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.profile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 10px; text-align: center; font-weight: 700; white-space: normal;
}
.profile .emoji { font-size: 2.6rem; display: block; margin-bottom: 6px; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal .sheet {
  background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto;
  border-radius: 18px 18px 0 0; max-height: 92dvh; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
@media (min-width: 600px) {
  .modal { align-items: center; }
  .modal .sheet { border-radius: 18px; }
}
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  z-index: 30; max-width: calc(100% - 32px);
}
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.err { color: var(--bad); font-size: .9rem; min-height: 1.2em; margin-top: 6px; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; }
.day.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.day .dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); font-size: .72rem; text-align: center; }
.day.active .dot { background: var(--primary-text); color: var(--primary); }

/* Gráfico semanal */
:root { --gain: #1fa5a8; --loss: #ff7f6e; --grid: #f1eee6; }
.chart { margin-top: 12px; }
.chart svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.chart .bar-gain { fill: var(--gain); }
.chart .bar-loss { fill: var(--loss); }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--muted); stroke-width: 1; opacity: .5; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .axis.now { fill: var(--text); font-weight: 700; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit.on, .chart .hit:hover { fill: var(--text); fill-opacity: .05; }
.chart-cap { min-height: 1.3em; margin-top: 4px; }
.legend { display: flex; gap: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.gain { background: var(--gain); }
.sw.loss { background: var(--loss); }

/* Fotos dos filhos */
.avatar { border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: middle; flex: none; }
.avatar-emoji { display: inline-block; text-align: center; line-height: 1; flex: none; }
.avatar.xs { width: 22px; height: 22px; } .avatar-emoji.xs { font-size: 1.1rem; }
.avatar.sm { width: 32px; height: 32px; } .avatar-emoji.sm { font-size: 1.5rem; }
.avatar.md { width: 48px; height: 48px; } .avatar-emoji.md { font-size: 2rem; }
.avatar.lg { width: 84px; height: 84px; } .avatar-emoji.lg { font-size: 2.6rem; }
.profile .emoji .avatar.lg { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--primary); }
h1.row, h2.row { gap: 10px; }
.photo-edit { width: 120px; height: 120px; border-radius: 50%; touch-action: none; cursor: grab; border: 2px solid var(--border); }

/* Títulos compridos das tarefas passam para a linha de baixo em vez de ficarem por cima dos pontos. */
.task { white-space: normal; }
.task .grow { min-width: 0; overflow-wrap: anywhere; }
.task .pts, .card .pts { flex: none; }
.card .grow b { overflow-wrap: anywhere; }

/* Comparação entre irmãos */
.sibs .sib { padding: 8px 0; }
.sibs .sib + .sib { border-top: 1px solid var(--border); }
.sibs .sib.me b { color: var(--text); }
.sib-track { height: 8px; margin-top: 6px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.sib-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--gain); }
.sib-track i.neg { background: var(--loss); }

/* Ecrãs com separadores: só o conteúdo faz scroll e a barra fica sempre em baixo (iPad incluído). */
#app.shell { max-width: none; padding: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
#app.shell > .scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#app.shell > .scroll > .inner { max-width: 720px; margin: 0 auto; padding: 16px 16px 24px; }
#app.shell > .tabs { position: static; flex: none; }

/* Missões (tarefas com prazo) — no turquesa do ícone da app */
.special {
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px; color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 6px 18px rgba(11, 127, 132, .25);
}
.special.over { background: linear-gradient(135deg, #6b7280, #4b5563); box-shadow: none; }
.special .sp-title { font-size: 1.15rem; }
.special .sp-pts { font-weight: 800; font-size: 1.2rem; background: rgba(255,255,255,.2); padding: 2px 10px; border-radius: 999px; }
.special .sp-count { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 8px 0 10px; letter-spacing: .02em; }
.special .sp-result { margin-top: 10px; font-weight: 700; }
.special .sp-result .pts { color: #fff; }
.special button.primary { background: #fff; color: #0a6d72; border-color: #fff; font-weight: 700; margin-top: 4px; }
.special button.link { color: #fff; }
.special .pill.pending { background: rgba(255,255,255,.9); }
.special-row { border-left: 4px solid #14b3b8; }

/* Tocar na foto para a mudar */
.avatar-btn { position: relative; border: none; background: none; padding: 0; border-radius: 50%; line-height: 0; cursor: pointer; flex: none; }
.avatar-btn .cam {
  position: absolute; right: -4px; bottom: -4px; font-size: .7rem; line-height: 1;
  background: var(--card); border: 1px solid var(--border); border-radius: 50%; padding: 3px;
}

/* ---------- Página de apresentação (quem ainda não entrou) ---------- */
#app.landing {
  max-width: none; padding: 0;
  --l-ink: #2f3657; --l-muted: #646b8a; --l-teal: #1fa5a8; --l-teal-dark: #13878a;
  --l-mint: #d8f3e8; --l-peach: #ffe3d3; --l-lilac: #ebe2fb; --l-butter: #fff3c4; --l-sky: #dcefff; --l-pink: #ffe0ea;
  /* A página é sempre clara, mesmo com o telemóvel em modo escuro. */
  --card: #fff; --text: var(--l-ink); --muted: var(--l-muted); --border: #e4e2f0; --primary: var(--l-teal-dark); --primary-text: #fff;
  background: #fffdf8; color: var(--l-ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif;
}
body:has(#app.landing) { background: #fffdf8; }
.landing h1, .landing h2, .landing h3 { color: var(--l-ink); letter-spacing: -.01em; }
.landing a { color: inherit; }
.landing .logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--l-teal-dark); }
.landing .logo.big { font-size: 1.8rem; text-align: center; margin: 8px 0 4px; }
.landing .cta { background: var(--l-teal); color: #fff; border: none; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 1.02rem; box-shadow: 0 6px 16px rgba(31, 165, 168, .28); }
.landing .cta:hover { background: var(--l-teal-dark); }
.landing .cta.small { padding: 9px 18px; font-size: .95rem; box-shadow: none; }
.landing .cta.block { width: 100%; margin-top: 14px; }
.landing .ghost { background: #fff; color: var(--l-ink); border: 2px solid #e4e2f0; border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 1.02rem; }

.lp-nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc((100% - 1120px) / 2)); background: rgba(255, 253, 248, .9); backdrop-filter: blur(8px); border-bottom: 1px solid #f1eee6; }
.lp-nav nav { display: flex; gap: 20px; margin-left: auto; }
.lp-nav nav a { text-decoration: none; color: var(--l-muted); font-weight: 600; }
.lp-nav nav a:hover { color: var(--l-ink); }

.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 48px 16px 24px; }
.lp-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 14px 0 16px; }
.lp-hero .hl { color: var(--l-teal); }
.lp-hero .lead { font-size: 1.15rem; color: var(--l-muted); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero-art { width: 100%; border-radius: 28px; box-shadow: 0 20px 40px rgba(47, 54, 87, .1); }
.pill { display: inline-block; background: var(--l-butter); color: #8a6a10; border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--l-muted); font-size: .95rem; }
.ticks li::before { content: "✓ "; color: var(--l-teal); font-weight: 800; }

.lp-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1120px; margin: 24px auto 0; padding: 0 16px; }
.lp-gallery figure { margin: 0; background: #fff; border-radius: 22px; padding: 8px 8px 10px; box-shadow: 0 6px 18px rgba(47, 54, 87, .07); }
.lp-gallery img { width: 100%; display: block; border-radius: 16px; }
.lp-gallery figcaption { text-align: center; font-weight: 700; font-size: .9rem; margin-top: 8px; }

.lp-section { max-width: 1120px; margin: 0 auto; padding: 64px 16px 8px; }
.lp-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-align: center; margin: 0 0 10px; }
.lp-section .sub { text-align: center; color: var(--l-muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto 30px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border-radius: 24px; padding: 22px; }
.tile .ic { font-size: 2rem; }
.tile h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.tile p, .feat p, .steps p { color: var(--l-muted); margin: 0; }
.tile.c0 { background: var(--l-mint); } .tile.c1 { background: var(--l-sky); } .tile.c2 { background: var(--l-butter); }
.tile.c3 { background: var(--l-pink); } .tile.c4 { background: var(--l-lilac); } .tile.c5 { background: var(--l-peach); }

.lp-band { max-width: none; background: var(--l-lilac); margin-top: 64px; padding-bottom: 56px; border-radius: 48px 48px 0 0; }
.steps { list-style: none; padding: 0; margin: 30px auto 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { background: #fff; border-radius: 24px; padding: 22px; }
.steps .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--l-teal); color: #fff; font-weight: 800; font-size: 1.1rem; }
.steps h3 { margin: 12px 0 6px; font-size: 1.1rem; }

.feat { display: flex; gap: 14px; background: #fff; border: 2px solid #f1eee6; border-radius: 22px; padding: 18px; }
.feat .ic { font-size: 1.6rem; flex: none; width: 48px; height: 48px; display: grid; place-items: center; background: var(--l-mint); border-radius: 14px; }
.feat h3 { font-size: 1.05rem; margin: 2px 0 4px; }

.lp-quote { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; }
.lp-quote img { width: 100%; border-radius: 28px; }
.lp-quote h2 { text-align: left; }
.lp-quote p { font-size: 1.12rem; color: var(--l-muted); }

.faq { max-width: 760px; margin: 24px auto 0; display: grid; gap: 10px; }
.faq details { background: #fff; border: 2px solid #f1eee6; border-radius: 18px; padding: 14px 18px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--l-muted); margin-top: 8px; }

.lp-auth { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; padding-bottom: 64px; }
.lp-auth h2, .lp-auth .sub { text-align: left; margin-left: 0; }
.auth-art { width: 100%; max-width: 460px; border-radius: 28px; }
.auth-card { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 18px 40px rgba(47, 54, 87, .12); border: 2px solid var(--l-mint); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f5f3fb; border-radius: 999px; padding: 4px; margin-bottom: 8px; }
.auth-tabs button { border: none; background: none; border-radius: 999px; padding: 10px; font-weight: 700; color: var(--l-muted); }
.auth-tabs button.active { background: #fff; color: var(--l-teal-dark); box-shadow: 0 2px 8px rgba(47, 54, 87, .1); }
.auth-form label { display: block; font-weight: 600; font-size: .92rem; margin: 12px 0 4px; }
.auth-form input:not([type=checkbox]) { width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #e4e2f0; border-radius: 14px; background: #fff; color: var(--l-ink); }
.auth-form input:focus { outline: none; border-color: var(--l-teal); }
.auth-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--l-muted); }
.auth-form .check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--l-teal); flex: none; }
.auth-form .link { display: block; margin: 8px auto 0; color: var(--l-teal-dark); }
.auth-form .hint { font-size: .85rem; color: var(--l-muted); text-align: center; margin-top: 12px; }

.lp-foot { text-align: center; padding: 32px 16px 40px; background: var(--l-mint); color: var(--l-muted); }
.lp-foot p { margin-top: 6px; font-size: .9rem; }

.lp-compact { max-width: 440px; margin: 0 auto; padding: 24px 16px 40px; }
.compact-art { width: 100%; border-radius: 24px; margin: 12px 0 16px; }

@media (max-width: 960px) {
  .lp-gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .lp-nav nav { display: none; }
  .lp-nav .cta { margin-left: auto; }
  .lp-hero, .lp-quote, .lp-auth { grid-template-columns: 1fr; gap: 24px; }
  .lp-hero { padding-top: 24px; text-align: center; }
  .lp-hero .lead { margin: 0 auto; }
  .hero-cta, .ticks { justify-content: center; }
  .hero-art { order: -1; }
  .lp-quote h2, .lp-auth h2, .lp-auth .sub { text-align: center; }
  .auth-art { display: none; }
  .lp-section { padding-top: 48px; }
}
@media (max-width: 520px) {
  .lp-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .hero-cta button { flex: 1; }
}
.landing .check a, .landing .hint a, .lp-foot .legal a { color: var(--l-teal-dark); }
.landing .logo { display: flex; align-items: center; gap: 8px; }
.landing .logo-ic { width: 38px; height: 38px; }
.landing .logo-txt { height: 26px; }
.landing .auth-art.mascot { max-width: 300px; display: block; margin: 8px auto 0; border-radius: 0; }
.lp-foot .foot-logo { height: 52px; }
.lp-compact .compact-mascot { display: block; width: 150px; margin: 4px auto 0; }
.lp-compact .compact-logo { display: block; height: 40px; margin: 6px auto 18px; }
@media (max-width: 760px) { .landing .auth-art.mascot { display: block; max-width: 200px; } }

/* ---------- Aspeto da app (igual ao site) ---------- */
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
.card { border: 2px solid #f1eee6; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
button, .btn { border: 2px solid var(--border); border-radius: 999px; padding: 9px 16px; font-weight: 600; }
button.primary { background: var(--teal); border-color: var(--teal); box-shadow: 0 6px 14px rgba(31, 165, 168, .25); }
button.primary:hover { background: var(--primary); }
button.block { padding: 13px; }
button.link { border: none; box-shadow: none; font-weight: 700; color: var(--primary); }
input, select, textarea { border: 2px solid var(--border); border-radius: 14px; background: #fff; padding: 11px 14px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }

.brandbar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 14px; }
.brandbar .bb-ic { width: 34px; height: 34px; }
.brandbar .bb-txt { height: 22px; }

.balance {
  position: relative; overflow: hidden; text-align: left; padding: 20px 22px; min-height: 120px;
  background: linear-gradient(135deg, var(--mint), var(--sky)); color: var(--text);
  border-radius: 28px; box-shadow: var(--shadow);
}
.balance .big { color: var(--primary); font-size: 2.8rem; }
.balance > div { position: relative; max-width: 62%; }
.balance .bal-mascot { position: absolute; right: 6px; bottom: -14px; height: 150px; pointer-events: none; }

.tabs { background: #fff; border-top: 2px solid #f1eee6; padding-top: 8px; box-shadow: 0 -6px 18px rgba(47, 54, 87, .05); }
.tabs button { border: none; border-radius: 16px; padding: 6px 2px 4px; font-weight: 600; }
.tabs button .ic { font-size: 1.35rem; padding: 2px 16px; border-radius: 999px; }
.tabs button.active { color: var(--primary); }
.tabs button.active .ic { background: var(--mint); }
.badge { background: var(--coral); }

.task { border: 2px solid #f1eee6; box-shadow: var(--shadow); padding: 15px 16px; border-radius: 20px; }
.task .check { width: 32px; height: 32px; border-width: 3px; }
.task.pending { background: #fffbea; }
.task.approved { background: #f1fbf5; }

.profiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.profile { border: none; border-radius: 24px; padding: 22px 10px; box-shadow: var(--shadow); background: var(--sky); }
.profile:nth-child(6n+1) { background: var(--mint); } .profile:nth-child(6n+2) { background: var(--pink); }
.profile:nth-child(6n+3) { background: var(--butter); } .profile:nth-child(6n+4) { background: var(--lilac); }
.profile:nth-child(6n+5) { background: var(--peach); }
.who { text-align: center; } .who-mascot { height: 140px; margin-bottom: 4px; }

.modal { background: rgba(47, 54, 87, .4); }
.modal .sheet { border-radius: 28px 28px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .modal .sheet { border-radius: 28px; } }
.toast { background: var(--text); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 600; }
.day { border-width: 2px; }
.day.active { background: var(--teal); border-color: var(--teal); }
.pill.pending { background: var(--butter); }
.special { border-radius: 24px; }
.special-row { border-left-color: var(--teal); }

/* A mascote dança quando um filho completa uma tarefa */
.dance { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 253, 248, .82); backdrop-filter: blur(3px); animation: dance-in .25s ease-out; cursor: pointer; }
.dance.out { opacity: 0; transition: opacity .3s; }
.dance-mascot { width: min(64vw, 260px); }
.dance-mascot svg { width: 100%; height: auto; overflow: visible; display: block; }
.dance-bubble { background: #fff; border: 3px solid var(--mint); border-radius: 22px; padding: 12px 18px; font-weight: 800; font-size: 1.15rem;
  color: var(--text); max-width: 300px; text-align: center; box-shadow: var(--shadow); margin-bottom: 6px; animation: bubble 2.6s ease-in-out; }
.dance svg g { transform-box: fill-box; }
.dance .m-all { transform-origin: 50% 100%; animation: m-hop .5s ease-in-out infinite; }
.dance .m-head { transform-origin: 50% 90%; animation: m-head .5s ease-in-out infinite; }
.dance .m-arm-l { transform-origin: 100% 100%; animation: m-arm-l .5s ease-in-out infinite; }
.dance .m-arm-r { transform-origin: 0% 50%; animation: m-arm-r .5s ease-in-out infinite; }
.dance .m-leg-l { transform-origin: 50% 0%; animation: m-leg-l .5s ease-in-out infinite; }
.dance .m-leg-r { transform-origin: 0% 0%; animation: m-leg-r .5s ease-in-out infinite; }
.dance .m-shadow { transform-origin: 50% 50%; animation: m-shadow .5s ease-in-out infinite; }
.dance-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dance-stars i { position: absolute; top: -40px; left: calc(6% + var(--i) * 12%); font-style: normal; font-size: 1.8rem;
  animation: star-fall 2.4s ease-in calc(var(--i) * .12s) forwards; }
@keyframes dance-in { from { opacity: 0; } }
@keyframes bubble { 0% { transform: scale(.6); } 12% { transform: scale(1.06); } 20%, 100% { transform: scale(1); } }
@keyframes m-hop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-22px) rotate(4deg); } }
@keyframes m-head { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes m-arm-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(22deg); } }
@keyframes m-arm-r { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-38deg); } }
@keyframes m-leg-l { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(16deg); } }
@keyframes m-leg-r { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-22deg); } }
@keyframes m-shadow { 0%, 100% { transform: scaleX(1); opacity: .08; } 50% { transform: scaleX(.7); opacity: .04; } }
@keyframes star-fall { to { transform: translateY(110vh) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dance .m-all, .dance .m-head, .dance g, .dance-stars i { animation: none; }
}

/* Instalar a app */
.landing section[id] { scroll-margin-top: 76px; }
.landing .ghost.small { padding: 8px 14px; font-size: .92rem; text-decoration: none; border-width: 2px; }
.lp-nav .install-link { margin-left: 0; white-space: nowrap; }
.lp-nav nav + .install-link { margin-left: 4px; }
.lp-install { background: var(--l-sky); max-width: none; border-radius: 48px; margin: 64px 12px 0; padding-bottom: 48px; }
.lp-install > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.inst-tabs { max-width: 420px; margin: 0 auto 26px; background: #fff; }
.inst-tabs button.active { background: var(--l-teal); color: #fff; }
.inst-quick { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; color: var(--l-muted); font-weight: 600; flex-wrap: wrap; }
.inst-quick.hidden { display: none; }
.inst-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.inst-steps.hidden { display: none; }
.inst-steps li { background: #fff; border-radius: 24px; padding: 14px 14px 18px; position: relative; box-shadow: 0 6px 18px rgba(47, 54, 87, .07); }
.inst-steps .inst-img { width: 100%; max-width: 200px; display: block; margin: 0 auto 10px; }
.inst-steps .num { position: absolute; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--l-teal); color: #fff; font-weight: 800; box-shadow: 0 4px 10px rgba(31, 165, 168, .3); }
.inst-steps h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.inst-steps p { margin: 0; color: var(--l-muted); font-size: .95rem; }
.inst-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.inst-tips .tile { background: #fff; }
.inst-tips .tile p { color: var(--l-muted); margin: 0; }
@media (max-width: 960px) { .inst-steps { grid-template-columns: repeat(3, 1fr); } .inst-tips { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .lp-install { margin: 48px 0 0; border-radius: 32px; }
  .lp-nav { gap: 8px; }
  .lp-nav .install-link { margin-left: auto; }
  .lp-nav .cta { margin-left: 0; }
  .landing .logo-txt { height: 22px; }
}
@media (max-width: 560px) {
  .inst-steps { grid-template-columns: 1fr; }
  .inst-steps li { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; align-items: center; text-align: left; }
  .inst-steps .inst-img { grid-row: span 2; margin: 0; }
  .inst-steps h3, .inst-steps p { grid-column: 2; }
}
@media (max-width: 380px) { .lp-nav .logo-txt { display: none; } }
@media (max-width: 440px) {
  .hide-sm { display: none; }
  .lp-nav { padding-left: 12px; padding-right: 12px; }
  .landing .ghost.small, .landing .cta.small { padding: 8px 12px; }
}
@media (max-width: 560px) { .inst-steps h3 { align-self: end; } .inst-steps p { align-self: start; } }
