:root {
  --paper: #f3efe6;
  --ink: #1a1a1a;
  --muted: #8a8478;
  --line: #1c1c1c;
  --card: #ffffff;
  --blue: #3557f6;
  --blue-deep: #2746d6;
  --orange: #ff6a1a;
  --green: #2f9d62;
  --violet: #6d6ef5;
  --shadow: 0 1px 0 rgba(28, 28, 28, 0.04);
  --radius: 22px;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }

.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.side {
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px;
}
.mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand strong { display: block; font-size: 15px; letter-spacing: -0.03em; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14.5px;
  color: #2a2a2a;
}
.nav a .ico { width: 18px; text-align: center; opacity: 0.8; }
.nav a.active { background: var(--ink); color: white; }
.nav a:hover:not(.active) { background: rgba(0,0,0,0.05); }

.main { padding: 18px 22px 40px; }
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 44px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font: inherit;
  background: transparent;
  font-size: 14px;
}
.who { font-size: 14px; white-space: nowrap; color: #333; }
.who button {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  margin-left: 8px;
}

.grid-5 {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 14px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 14px;
  margin-top: 14px;
}
.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f6a62;
  font-weight: 600;
}
.card h2 { margin: 6px 0 8px; font-size: 28px; letter-spacing: -0.04em; font-weight: 650; }
.lede { margin: 0; color: #4d4944; font-size: 14px; line-height: 1.45; }
.stat {
  font-size: 40px;
  letter-spacing: -0.05em;
  font-weight: 650;
  margin: 8px 0 2px;
  line-height: 1;
}
.sub { color: var(--muted); font-size: 13px; }
.spark { width: 100%; height: 52px; margin-top: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.btn:hover { background: var(--blue-deep); }
.btn.ghost {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.intro .btn { margin-top: 16px; }

.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-head h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.legend li { display: flex; justify-content: space-between; gap: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.donut-wrap { display: grid; grid-template-columns: 148px 1fr; gap: 8px; align-items: center; }
.donut {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), #ece7df 0);
}
.donut.blue { background: conic-gradient(var(--blue) calc(var(--p) * 1%), #ece7df 0); }
.donut span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.bars { display: flex; align-items: flex-end; gap: 18px; height: 160px; margin-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i {
  display: block;
  width: 100%;
  max-width: 64px;
  background: var(--blue);
  border-radius: 8px 8px 4px 4px;
  min-height: 6px;
}
.bar em { font-style: normal; font-size: 12px; color: var(--muted); }

.table-card { margin-top: 14px; padding: 8px 8px 4px; }
.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px 6px;
}
.table-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.03em; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #7a756c;
  font-weight: 600;
  padding: 10px 12px;
}
td { padding: 12px; border-top: 1px solid #ece7df; }
.token { font-variant-numeric: tabular-nums; color: #3d6b45; font-weight: 650; }
.token.off { color: var(--muted); font-weight: 500; }
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
}

.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.page-title h1 { margin: 0; font-size: 32px; letter-spacing: -0.04em; }
form.stack, .stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: #4e4a44; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  font: inherit;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.error { color: #9a2b2b; margin: 8px 0 0; }
.filters { display: flex; gap: 8px; align-items: center; }
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card { width: min(420px, 100%); }
.login-card h1 { margin: 8px 0 4px; letter-spacing: -0.04em; }

.landing { max-width: 1120px; margin: 0 auto; padding: 28px 22px 64px; }
.land-top { display: flex; justify-content: space-between; align-items: center; }
.hero { padding: 42px 0 18px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: end; }
.hero h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 10px 0;
  font-weight: 650;
}
.hero p { font-size: 18px; line-height: 1.45; max-width: 540px; color: #3c3832; }
.hero-card h2 { margin-top: 0; }
.section { margin-top: 28px; }
.section h2 { font-size: 32px; letter-spacing: -0.04em; margin-bottom: 6px; }
.phones { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.phone {
  width: 210px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 32px;
  padding: 8px;
}
.phone img { width: 100%; border-radius: 24px; display: block; background: #efeae0; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.app-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 600;
}
.app-link span { color: var(--blue); font-weight: 600; font-size: 13px; }
.foot { margin-top: 36px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }

@media (max-width: 1100px) {
  .grid-5, .grid-3, .hero, .apps { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { padding-bottom: 0; }
  .nav { flex-direction: row; overflow: auto; }
  .hero, .apps, .form-grid, .grid-3, .grid-5, .donut-wrap { grid-template-columns: 1fr; }
  .who { display: none; }
}
