/* Vou pra Pipa — UI base compartilhada (tokens + layout + componentes) */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --ink: #111018;
  --ink-muted: #4b5568;
  --ink-faint: #7b8194;
  --line: #e2e5ec;
  --brand: #ea580c;
  --brand-deep: #c2410c;
  --brand-soft: #ffedd5;
  --accent: #ea580c;
  --accent-secondary: #fb923c;
  --accent-soft: #fff7ed;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --nav-h: 64px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 12px) 16px 0;
}

@media (min-width: 900px) {
  .shell { padding-top: 24px; }
}

/* Cabeçalho simples de página */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Cards */
.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 16px; }

/* Botões/links CTA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.26);
}
.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--brand-deep);
}

/* Chips (full-bleed horizontal) */
.hscroll {
  display: flex;
  gap: 10px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-padding-left: 16px;
  scroll-padding-right: 16px;
}
.hscroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.chip:active { transform: scale(.97); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.22);
}
.chip svg { width: 16px; height: 16px; color: currentColor; flex-shrink: 0; }

/* Seções */
.section { margin-top: 16px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 10px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-meta { font-size: .75rem; color: var(--ink-faint); font-weight: 600; }

/* Estados */
.empty {
  text-align: center;
  padding: 28px 18px;
  color: var(--ink-faint);
  font-size: .9rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #fafbfc;
}
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }
