/* UsageArc public site — mirrors the app's design tokens (lib/ui/theme/tokens.dart) */
:root {
  --bg: #ffffff;
  --ink: #0a0a0b;
  --ink2: #8a8a8e;
  --ink3: #b8b8be;
  --hairline: #ececef;
  --safe: #2fbf71;
  --watch: #f5a623;
  --critical: #ff453a;
  --radius: 18px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
header {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.brand svg { display: block; }

nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  color: var(--ink2);
  text-decoration: none;
}

nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* ---------- type ---------- */
h1 {
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 44px 0 12px;
}

h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 28px 0 8px;
}

p { margin: 0 0 16px; }

a { color: var(--ink); }

.lede {
  font-size: 19px;
  color: var(--ink2);
  line-height: 1.55;
  margin-bottom: 28px;
}

.meta {
  font-size: 13px;
  color: var(--ink2);
  margin: 0 0 32px;
}

.small { font-size: 13px; color: var(--ink2); }

section { padding: 56px 0; }

section + section { border-top: 1px solid var(--hairline); }

ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 8px; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 { margin: 0 0 6px; }
.card p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }

/* ---------- meters (hero ornament) ---------- */
.meter-demo {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  margin: 32px 0 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

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

.row .label { width: 68px; font-size: 14px; color: var(--ink2); font-weight: 600; }

.track {
  display: block;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: #ececed;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.row .pct { width: 54px; text-align: right; font-weight: 800; font-size: 15px; }

/* ---------- hero shot ---------- */
.hero-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 40px 0 0;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

/* ---------- tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 20px;
}

th, td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

th { font-weight: 800; color: var(--ink); }
td { color: var(--ink2); }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: #fafafb;
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 20px;
}

.callout strong { font-weight: 800; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0 56px;
  font-size: 13px;
  color: var(--ink2);
}

footer a { color: var(--ink2); }

footer .fnav { display: flex; gap: 18px; margin-bottom: 14px; font-weight: 700; }

@media (max-width: 520px) {
  section { padding: 40px 0; }
  .row .label { width: 56px; }
}
