@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #f8fafc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f8fafc;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0f172a;
  color: white;
  font-weight: 900;
}

.install {
  display: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: #0f172a;
  color: white;
  font-weight: 700;
}

.hero {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.muted {
  color: #64748b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.label {
  font-size: 0.78rem;
  color: #64748b;
}

.value {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 6px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
}

.panel h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.form {
  display: grid;
  gap: 10px;
}

.form input,
.form select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
}

.primary {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  background: #0f172a;
  color: white;
  font-weight: 700;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #f1f5f9;
}

.row:last-child {
  border-bottom: 0;
}

.income {
  color: #15803d;
  font-weight: 700;
}

.expense {
  color: #b91c1c;
  font-weight: 700;
}

.status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #475569;
}

@media (max-width: 700px) {
  .shell {
    padding: 12px;
  }

  .cards,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 16px;
  }

  .install {
    display: block;
  }
}
