:root {
  --blue: #1554d6;
  --blue-bright: #1a62f0;
  --green: #0c6b32;
  --green-bright: #1b9a45;
  --ink: #173047;
  --muted: #526477;
  --line: #d7e2ee;
  --soft: #f4f7fb;
  --white: #fff;
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #e7eef6;
  line-height: 1.45;
}
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, p { margin-top: 0; }
h1 { font-size: 1.65rem; letter-spacing: -.03em; line-height: 1.15; margin-bottom: .35rem; }
h2 { font-size: 1.05rem; margin: 1.1rem 0 .45rem; }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute;
  left: .5rem;
  top: -3rem;
  background: #fff;
  padding: .5rem .8rem;
  z-index: 5;
}
.skip:focus { top: .5rem; }
.app-shell {
  width: min(440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--soft);
  position: relative;
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}
.app-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.app-brand img { width: 42px; height: 36px; object-fit: contain; }
.app-brand strong { display: block; font-size: 1.05rem; letter-spacing: -.03em; line-height: 1; }
.app-brand small { color: var(--muted); font-weight: 700; }
.c-blue { color: var(--blue-bright); }
.c-green { color: var(--green-bright); }
.app-cuidar .app-brand small { color: var(--green); }
.text-link { font-weight: 800; text-decoration: none; }
.app-main { padding: 1rem 1rem 1.4rem; }
.app-main.has-tabs { padding-bottom: 6.2rem; }
.lead, .hint { color: var(--muted); }
.hint { font-size: .92rem; }
.center { text-align: center; }
.stack { display: grid; gap: .75rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem 1rem;
  margin: .7rem 0;
}
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: grid;
  gap: .2rem;
  text-decoration: none;
  color: inherit;
}
.card-link:hover { border-color: #b7c9e4; }
label { display: grid; gap: .3rem; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1.5px solid #d5e0ec;
  border-radius: 12px;
  padding: .75rem .8rem;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 16px; margin: 0 0 .8rem; padding: .8rem; }
legend { font-weight: 800; padding: 0 .25rem; }
.choices { display: grid; gap: .45rem; }
.choice, .check { display: flex; align-items: flex-start; gap: .55rem; font-weight: 700; }
.choice {
  border: 1.5px solid #d5e0ec;
  border-radius: 14px;
  padding: .7rem .75rem;
  background: #fff;
}
.choice small { display: block; font-weight: 600; color: var(--muted); }
.choice:has(input:checked) { border-color: var(--blue); background: #eef4ff; }
.app-cuidar .choice:has(input:checked) { border-color: var(--green); background: #eef8f2; }
.choice input, .check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--blue); color: #fff; }
.app-cuidar .btn-primary { background: var(--green); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid #d5e0ec; margin-top: .45rem; }
.preco { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .2rem; }
.preco small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.person { display: grid; gap: .15rem; }
.pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .15rem .55rem;
  background: #e7eef8;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
}
.pill-buscando { background: #e7eefc; color: var(--blue); }
.pill-aceito, .pill-aguardando_pix { background: #fff4df; color: #8a5a00; }
.pill-agendado, .pill-concluido { background: #e7f6ee; color: var(--green); }
.pill-cancelado, .pill-sem_cuidadores { background: #f3f5f8; color: #5c6b7a; }
.banner { border-radius: 14px; padding: .75rem .85rem; font-weight: 700; }
.banner-ok { background: #e8f7ee; color: #0c6b32; }
.banner-erro { background: #fff1f2; color: #9f1239; }
.pix-marca {
  margin: 0;
  font-weight: 800;
  letter-spacing: .14em;
  color: #0c6b32;
}
.pix-qr {
  width: min(220px, 70%);
  height: auto;
  display: block;
  margin: .2rem auto .6rem;
  border: 8px solid #fff;
  border-radius: 12px;
  background: #fff;
}
.pix textarea { min-height: 72px; font-size: .78rem; word-break: break-all; }
.pix .btn-ghost { margin-top: 0; }
.codigo { font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.trilha { display: flex; gap: .35rem; list-style: none; padding: 0; margin: .4rem 0 1rem; }
.trilha li {
  flex: 1;
  text-align: center;
  font-size: .68rem;
  font-weight: 800;
  color: #8aa;
  border-top: 3px solid #d5e0ec;
  padding-top: .35rem;
}
.trilha .feito { color: var(--green); border-color: var(--green); }
.trilha .agora { color: var(--blue); border-color: var(--blue); }
.app-cuidar .trilha .agora { color: var(--green); border-color: var(--green); }
.passos { font-weight: 800; color: var(--blue); margin-bottom: .2rem; }
.dia { display: grid; grid-template-columns: 1.1fr .8fr .8fr; gap: .4rem; align-items: end; }
.dia .check { align-items: center; min-height: 44px; }
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(440px, 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 4;
}
.tabbar a {
  position: relative;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: .78rem;
  padding: .85rem .2rem 1rem;
}
.tabbar a[aria-current="page"] { color: var(--blue); }
.app-cuidar .tabbar a[aria-current="page"] { color: var(--green); }
.badge {
  position: absolute;
  top: .35rem;
  right: .55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #9f1239;
  color: #fff;
  font-size: .68rem;
  line-height: 1.1rem;
}
details summary { cursor: pointer; font-weight: 800; }
:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
@media (min-width: 900px) {
  body { padding: 1.2rem 0; }
  .app-shell { min-height: calc(100vh - 2.4rem); border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px rgba(23, 48, 71, .12); }
  .tabbar { border-radius: 0 0 28px 28px; }
}
