@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("inter-latin.woff2") format("woff2");
}

/* Tokens do Design System do app (src/styles.css), tema escuro. */
:root {
  color-scheme: dark;
  --bg: #080a0d;
  --bg-2: #0f1216;
  --s1: #15191e;
  --s2: #1b2026;
  --s3: #242a31;
  --line: #2a3037;
  --tx: #f5f7f8;
  --tx-2: #a9b0b7;
  --tx-3: #6f7882;
  --inv: #080a0d;
  --lime: #b7ff3c;
  --lime-press: #96d92f;
  --blue: #3d8bff;
  --ok: #45d483;
  --warn: #ffb547;
  --bad: #ff5c63;
  --info: #53b8ff;

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-raise: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 12px 32px -12px rgb(0 0 0 / 0.7);
  --shadow-overlay: 0 8px 24px rgb(0 0 0 / 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --top-h: 64px;
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 24px);
  scrollbar-color: var(--s3) var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--lime);
}

::selection { background: var(--lime); color: var(--inv); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--s3); border: 3px solid var(--bg); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: #313840; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

[hidden] { display: none !important; }

.tab { font-variant-numeric: tabular-nums; }
.muted { color: var(--tx-2); }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -48px; z-index: 50;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--lime); color: var(--inv); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.i {
  width: 1.125em; height: 1.125em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out),
    color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--lime); color: var(--inv); }
.btn-primary:active { background: var(--lime-press); }

.btn-secondary { background: var(--s2); border-color: var(--line); color: var(--tx); }

.btn-ghost { background: transparent; color: var(--tx); border-color: var(--line); }

@media (hover: hover) {
  .btn-primary:hover { background: #c6ff66; }
  .btn-secondary:hover { background: var(--s3); }
  .btn-ghost:hover { background: var(--s1); border-color: #39414a; }
  .btn .i { transition: transform 200ms var(--ease-out); }
  .btn:hover .i { transform: translateX(2px); }
}

span.btn { cursor: default; }
span.btn:active { transform: none; }

/* ---------- Topo ---------- */

.top {
  position: sticky; top: 0; z-index: 40;
  height: var(--top-h);
  background: rgb(8 10 13 / 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.top.is-scrolled { border-bottom-color: var(--line); }

.top-row { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em;
  text-decoration: none;
}
.mark { width: 26px; height: 26px; flex: none; }

.top-nav { display: none; gap: 4px; margin-left: 12px; }
.top-nav a {
  padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--tx-2); font-size: 0.875rem; font-weight: 500; text-decoration: none;
  transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out);
}
@media (hover: hover) { .top-nav a:hover { color: var(--tx); background: var(--s1); } }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-quiet {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  color: var(--tx-2); font-size: 0.875rem; font-weight: 600; text-decoration: none;
  border-radius: var(--r-sm);
}
@media (hover: hover) { .link-quiet:hover { color: var(--tx); } }

@media (min-width: 900px) {
  .top-nav { display: flex; }
}

/* ---------- Mês: herói + passos + trilho ---------- */

.month {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.hero { padding: 48px 0 8px; }

.hero h1 {
  font-size: clamp(2.5rem, 9.5vw, 4.5rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero h1 span { display: block; color: var(--tx-2); }

.lede {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.0625rem, 2.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--tx-2);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions.center { justify-content: center; }

.fine { margin-top: 20px; font-size: 0.875rem; color: var(--tx-2); max-width: 40ch; }

.section-head h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.section-head p {
  margin-top: 12px; max-width: 52ch;
  color: var(--tx-2); font-size: 1.0625rem; line-height: 1.55;
}
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.steps { padding: 24px 0 24px; }
.steps .section-head { margin-bottom: 40px; }

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.step-date {
  display: flex; flex-direction: column; align-items: flex-start;
  color: var(--tx-2); font-size: 0.75rem; font-weight: 500; text-transform: lowercase;
  line-height: 1.2;
}
.step-date .tab {
  font-size: 2rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em;
  color: var(--tx-2);
  transition: color 300ms var(--ease-out);
}
.step.is-current .step-date .tab { color: var(--lime); }

.step-body h3 {
  font-size: clamp(1.375rem, 3.6vw, 1.75rem);
  line-height: 1.15; letter-spacing: -0.025em; font-weight: 700;
}
.step-body > p {
  margin-top: 10px; max-width: 46ch;
  color: var(--tx-2); font-size: 1.0625rem; line-height: 1.55;
}
.step-card { margin-top: 24px; max-width: 440px; }

/* Trilho: o calendário. No celular ele vem logo depois do herói. */
.rail { order: -1; grid-row: 2; }
.flow { display: contents; }
.hero { grid-row: 1; }
.steps { grid-row: 3; }

.stage { display: none; }

@media (min-width: 1024px) {
  .month {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: start;
  }
  .flow { display: block; grid-column: 1; grid-row: 1; }
  .rail { grid-column: 2; grid-row: 1; order: 0; align-self: stretch; }
  .hero { padding: 96px 0 24px; min-height: calc(100svh - var(--top-h) - 40px); display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(3rem, 3.6vw + 0.75rem, 3.875rem); max-width: none; }
  .rail-sticky {
    position: sticky; top: calc(var(--top-h) + 16px);
    padding-top: 32px;
    display: flex; flex-direction: column; gap: 12px;
  }
  .steps { padding-bottom: 12vh; }
  .step {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 24px;
    align-content: start;
    padding: 40px 0;
  }
  .step-date .tab { font-size: 2.5rem; }
}

/* Com altura para o calendário e o cartão juntos, o cartão de cada dia sobe para o trilho. */
@media (min-width: 1024px) and (min-height: 880px) {
  html.js .step { min-height: 50vh; }
  html.js .rail-sticky { padding-top: 16px; }
  html.js .cal-grid .d { height: 40px; }
  html.js .stage {
    display: grid;
    position: relative;
  }
  html.js .stage > .step-card {
    grid-area: 1 / 1;
    align-self: start;
    margin: 0; max-width: none;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    filter: blur(4px);
    transition: opacity 260ms var(--ease-out), transform 420ms var(--ease-out),
      filter 300ms var(--ease-out), visibility 0s linear 420ms;
  }
  html.js .stage > .step-card.is-active {
    opacity: 1; visibility: visible; transform: none; filter: none;
    transition: opacity 320ms var(--ease-out) 60ms, transform 520ms var(--ease-out) 60ms,
      filter 360ms var(--ease-out) 60ms, visibility 0s;
  }
}

/* ---------- Cartões (os do app) ---------- */

.card {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raise);
}

.ui { padding: 20px; font-size: 0.875rem; }

.ui-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.ui-head h4 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.ui-head .muted { font-size: 0.8125rem; }
.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.with-icon .i { color: var(--tx-2); }

.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px;
  border-radius: var(--r-pill);
  background: var(--s2); border: 1px solid var(--line);
  color: var(--tx-2); font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}

.count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  background: var(--lime); color: var(--inv); font-size: 0.75rem; font-weight: 700;
}

.status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.s-ok { color: var(--ok); }
.s-warn { color: var(--warn); }
.s-bad { color: var(--bad); }
.s-none { color: var(--tx-2); }
.s-none i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--tx-3); }

/* Configuração */
.setup { display: grid; gap: 14px; }
.setup > div { display: grid; gap: 8px; }
.setup dt { color: var(--tx-2); font-size: 0.8125rem; font-weight: 600; }
.setup dd { display: grid; gap: 8px; }

.plain { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.plain li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; background: var(--s2);
}
.setup dt .muted { font-weight: 500; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--s2); border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 600;
}
.pills .muted { font-weight: 500; font-size: 0.75rem; }

.days-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.days-chips li {
  min-width: 42px; height: 30px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--line);
  color: var(--tx-2); font-size: 0.75rem; font-weight: 600;
}
.days-chips li.on { background: var(--s2); color: var(--tx); border-color: #3a424b; }
.days-chips li.done { background: rgb(183 255 60 / 0.12); border-color: rgb(183 255 60 / 0.35); color: var(--lime); }
.days-chips.small li { min-width: 38px; height: 26px; }

/* Semana */
.row-metric {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.row-metric:first-of-type { border-top: 0; padding-top: 0; }
.row-metric > div:first-child { min-width: 0; flex: 1; display: grid; gap: 8px; }
.rm-label { font-weight: 600; }
.rm-value { display: grid; justify-items: end; gap: 4px; text-align: right; }

.bar { height: 6px; border-radius: var(--r-pill); background: var(--s3); overflow: hidden; max-width: 180px; }
.bar span {
  display: block; height: 100%; width: calc(var(--v) * 100%);
  border-radius: inherit; background: var(--tx-2);
  transform-origin: left center;
}
.b-ok { background: var(--ok) !important; }
.b-warn { background: var(--warn) !important; }

.ui .btn-block { margin-top: 16px; }

/* Avisos */
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: var(--r-md);
  background: var(--s2); border: 1px solid var(--line);
}
.notice + .notice { margin-top: 8px; }
.notice-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.notice.is-read { background: transparent; }
.notice.is-read .notice-dot { background: var(--s3); }
.notice.is-read .notice-title { color: var(--tx-2); }
.notice-title { font-weight: 600; }
.notice .muted { margin-top: 2px; font-size: 0.8125rem; }
.ui-foot { margin-top: 12px; font-size: 0.8125rem; }

/* O que vence */
.due-list { display: grid; }
.due {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.due:first-child { border-top: 0; padding-top: 0; }
.due-title { font-weight: 600; }
.due-meta { margin-top: 2px; color: var(--tx-2); font-size: 0.8125rem; }
.due.is-today .due-state { color: var(--warn); font-weight: 600; }
.due.is-paid .due-state { color: var(--ok); }
.due-actions { display: flex; gap: 8px; }
.due-list.compact .due { padding: 10px 0; }
.due-list.compact .due:first-child { padding-top: 0; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 14px;
}
.stats > div { padding: 10px 12px; border-radius: var(--r-md); background: var(--s2); min-width: 0; }
.stats dt { color: var(--tx-2); font-size: 0.75rem; font-weight: 500; line-height: 1.3; }
.stats dd { margin-top: 4px; font-weight: 600; font-size: 0.875rem; white-space: nowrap; transition: color 240ms var(--ease-out); }
.stats dd.flash { color: var(--ok); }

/* Insight */
.insight-title { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; }
.insight-body { margin-top: 6px; color: var(--tx-2); line-height: 1.55; }
.insight-impact {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 10px 12px; border-radius: var(--r-md); background: var(--s2);
  font-size: 0.8125rem;
}

/* Fechar mês */
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stepper li {
  position: relative; padding-top: 12px;
  color: var(--tx-2); font-size: 0.75rem; font-weight: 600; line-height: 1.25;
}
.stepper li::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  border-radius: var(--r-pill); background: var(--s3);
}
.stepper li.done { color: var(--tx-2); }
.stepper li.done::before { background: var(--lime); opacity: 0.55; }
.stepper li.current { color: var(--tx); }
.stepper li.current::before { background: var(--lime); }

/* ---------- Calendário ---------- */

.cal { position: relative; padding: 18px 18px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-month { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }

.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-week { margin-bottom: 4px; }
.cal-week li { text-align: center; color: var(--tx-2); font-size: 0.6875rem; font-weight: 600; padding: 4px 0; }

.cal-grid { position: relative; gap: 2px; }
.cal-grid .d {
  position: relative; height: 44px;
  display: grid; place-items: center;
  color: var(--tx-2); font-size: 0.875rem; font-weight: 500;
  transition: color 300ms var(--ease-out), opacity 300ms var(--ease-out);
}
.cal-grid .d > span { position: relative; z-index: 1; }
.cal-grid .d > .dot { position: absolute; left: 50%; bottom: 5px; margin-left: -2.5px; }
.cal-grid .d.is-past { opacity: 0.55; }

.day {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-md);
  background: transparent; cursor: pointer;
  color: var(--tx); font-weight: 700; font-size: 0.875rem;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms var(--ease-out), color 200ms var(--ease-out);
}
.day > .dot { position: absolute; left: 50%; bottom: 5px; margin-left: -2.5px; }
@media (hover: hover) { .day:hover { background: var(--s2); } }
.day[aria-current="date"] { color: var(--lime); }
.day[aria-current="date"]:hover { background: transparent; }

.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; flex: none; }
.dot-me { background: var(--lime); }
.dot-due { background: var(--warn); }
.dot-info { background: var(--info); }

/* O anel que anda entre os dias. */
.ring {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 0; height: 0;
  border-radius: var(--r-md);
  background: rgb(183 255 60 / 0.1);
  box-shadow: inset 0 0 0 1.5px var(--lime);
  opacity: 0;
  pointer-events: none;
  transition: transform 520ms var(--ease-out), width 520ms var(--ease-out),
    height 520ms var(--ease-out), opacity 200ms var(--ease-out);
}
.ring.is-on { opacity: 1; }
.ring.no-anim { transition: none; }

.cal-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--tx-2); font-size: 0.75rem;
}
.cal-legend li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Painel final ---------- */

.panel-section { padding: 88px 0 72px; border-top: 1px solid var(--line); background: var(--bg-2); }
.panel-section .section-head { margin-bottom: 40px; }

.panel {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.piece { position: relative; }
.from {
  color: var(--tx-2); font-size: 0.75rem; font-weight: 500; white-space: nowrap;
}

@media (min-width: 720px) {
  .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-pulse { grid-column: 1 / -1; }
  .p-habits { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .panel { grid-template-columns: 1.25fr 1fr 1fr; }
  .p-pulse { grid-column: 1; grid-row: 1 / span 2; }
  .p-train { grid-column: 2; }
  .p-due { grid-column: 3; }
  .p-habits { grid-column: 2 / span 2; grid-row: 2; }
  .p-money { grid-column: 1 / -1; }
}

.pulse { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pulse > div { flex: 1; min-width: 180px; }
.ringchart { width: 96px; height: 96px; flex: none; }
.rc-track { fill: none; stroke: var(--s3); stroke-width: 7; }
.rc-value {
  fill: none; stroke: var(--lime); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 213.6; stroke-dashoffset: calc(213.6 * (1 - var(--v)));
  transform: rotate(-90deg); transform-origin: 40px 40px;
}
.rc-text { fill: var(--tx); font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pulse-label .status { font-size: 1.125rem; }
.pulse-label .status i { width: 10px; height: 10px; }
.pulse-caption { margin-top: 6px; color: var(--tx-2); line-height: 1.5; max-width: 36ch; }

.domains { margin-top: 18px; border-top: 1px solid var(--line); }
.domains li {
  display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.domains li:last-child { border-bottom: 0; padding-bottom: 0; }
.domains li > span:first-child { font-weight: 600; }
.domains .tab { font-weight: 700; }

.big { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.big .muted { font-size: 1.25rem; font-weight: 600; }
.p-train .days-chips { margin: 14px 0 12px; }

.grid8 { width: 100%; border-collapse: separate; border-spacing: 4px; margin: -4px; }
.grid8 th { font-size: 0.75rem; font-weight: 500; color: var(--tx-2); text-align: center; padding: 0 0 2px; }
.grid8 tbody th {
  text-align: left; color: var(--tx-2); font-size: 0.8125rem; font-weight: 600;
  white-space: nowrap; padding-right: 8px; width: 1%;
}
.grid8 td { height: 26px; border-radius: var(--r-xs); }
.c-ok { background: rgb(69 212 131 / 0.75); }
.c-warn { background: rgb(255 181 71 / 0.75); }
.c-bad { background: rgb(255 92 99 / 0.8); }
.c-none { background: var(--s3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; color: var(--tx-2); font-size: 0.75rem; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

.money { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1080px) { .money { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.money > div { padding: 12px 14px; border-radius: var(--r-md); background: var(--s2); min-width: 0; }
.money dt { color: var(--tx-2); font-size: 0.8125rem; }
.money dd { margin-top: 4px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.note { margin-top: 20px; text-align: center; color: var(--tx-2); font-size: 0.875rem; }

/* Montagem: cada peça entra na ordem em que apareceu no mês. */
html.js .panel.is-pending .piece { opacity: 0; transform: translateY(18px) scale(0.985); }
html.js .panel .piece {
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i) * 110ms);
}
html.js .panel.is-pending .from { opacity: 0; }
html.js .panel .from { transition: opacity 400ms var(--ease-out); transition-delay: calc(var(--i) * 110ms + 380ms); }
html.js .panel.is-pending .rc-value { stroke-dashoffset: 213.6; }
html.js .panel .rc-value { transition: stroke-dashoffset 1100ms var(--ease-out) 620ms; }

/* ---------- Meta ---------- */

.target-section { padding: 96px 0; border-top: 1px solid var(--line); }
.target { display: grid; gap: 40px; align-items: center; }
.target-copy h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 700;
  max-width: 16ch;
}
.target-copy p { margin-top: 14px; max-width: 46ch; color: var(--tx-2); font-size: 1.0625rem; line-height: 1.55; }

.target-card { max-width: 420px; width: 100%; }
.target-read { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.target-status { min-height: 24px; }
.target-card .bar { margin-top: 14px; max-width: none; }
.target-line { margin-top: 12px; font-size: 0.8125rem; }
.target-card .btn { margin-top: 16px; }

.target-card[data-state="none"] [data-when="set"],
.target-card[data-state="set"] [data-when="none"] { display: none; }
html.js .target-card[data-state="set"] .bar span { animation: grow 600ms var(--ease-out); }
@keyframes grow { from { transform: scaleX(0); } }

@media (min-width: 900px) {
  .target { grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; }
}

/* ---------- Limites ---------- */

.limits-section { padding: 88px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
.limits-section .section-head { margin-bottom: 36px; }
.limits { display: grid; gap: 32px; }
.limits h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.checks li, .crosses li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; line-height: 1.5;
}
.checks .i { color: var(--ok); margin-top: 3px; }
.crosses li { color: var(--tx-2); }
.crosses .i { color: var(--tx-3); margin-top: 3px; }
@media (min-width: 820px) { .limits { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Fecho ---------- */

.close-section { padding: 112px 0 104px; border-top: 1px solid var(--line); }
.close { text-align: center; display: flex; flex-direction: column; align-items: center; }
.mark-lg { width: 48px; height: 48px; margin-bottom: 24px; }
.close h2 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 700;
}
.close p { margin-top: 16px; max-width: 44ch; color: var(--tx-2); font-size: 1.0625rem; line-height: 1.55; }

/* ---------- Rodapé ---------- */

.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 0.8125rem; }
.foot-row .brand-sm { font-size: 0.9375rem; margin-right: auto; }
.brand-sm .mark { width: 20px; height: 20px; }

/* ---------- Celular ---------- */

@media (max-width: 639px) {
  .top-actions .link-quiet { padding: 0 8px; }
  .hero { padding-top: 36px; }
  .actions .btn { flex: 1 1 auto; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; padding: 28px 0; }
  .step-body { display: contents; }
  .step-date { grid-row: 1; }
  .step-date .tab { font-size: 1.625rem; }
  .step-body h3 { grid-column: 2; align-self: center; }
  .step-body > p { grid-column: 1 / -1; margin-top: 12px; }
  .step-card { grid-column: 1 / -1; max-width: none; }
  .ui { padding: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .stats dd { margin-top: 0; }
  .due { flex-wrap: wrap; }
  .domains li { grid-template-columns: 1fr auto 88px; }
  .panel-section, .limits-section { padding: 64px 0; }
  .target-section { padding: 64px 0; }
  .close-section { padding: 80px 0; }
}

@media (max-width: 380px) {
  .top-actions .btn-sm { padding: 0 10px; }
  .days-chips li { min-width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; transition-delay: 0ms !important; }
}

@media (min-width: 1024px) and (max-height: 879px) {
  .rail-sticky { padding-top: 16px; gap: 12px; top: calc(var(--top-h) + 12px); }
  .cal { padding: 14px 16px 12px; }
  .cal-grid .d { height: 34px; }
  .cal-legend { display: none; }
  .stage .ui { padding: 16px; }
  .stage .due { padding: 9px 0; }
  .stage .row-metric { padding: 8px 0; }
}

