:root {
  --ink: #12382c;
  --muted: #6b8076;
  --forest: #134132;
  --mint: #ccecda;
  --canvas: #f1f6f1;
  --card: #fff;
  --leaf: #52c26b;
  --lavender: #e6e0fc;
  --peach: #ffe0b3;
  --rose: #c23b4a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #e8f6ee 0%, var(--canvas) 28%, #f6eef8 100%);
  color: var(--ink);
  min-height: 100vh;
}
h1, h2 { letter-spacing: -0.03em; }
h2 { margin: 28px 0 12px; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); font-weight: 700; font-size: 12px; }
.eyebrow.light { color: var(--mint); }
.muted, .fine { color: var(--muted); }
.fine { font-size: 13px; line-height: 1.45; }
.cite { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--forest); font-weight: 650; }
.card, .stack > article, .stack > p, .row-card, .request-card {
  background: var(--card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(18, 56, 44, 0.06);
}
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; margin-bottom: 12px; }
[hidden], label[hidden], .confirm-wrap[hidden] { display: none !important; }
input, textarea, select, button {
  font: inherit;
  border-radius: 12px;
  border: 1px solid #d7e4dc;
  padding: 10px 12px;
}
button {
  background: var(--forest);
  color: #fff;
  border: 0;
  font-weight: 650;
  cursor: pointer;
  width: 100%;
}
button.ghost, .tabs button { background: transparent; color: var(--forest); width: auto; }
a.btn {
  display: inline-block;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  padding: 12px 16px;
  border-radius: 14px;
  margin-top: 8px;
}
.error { color: var(--rose); }
.ok { color: #1f7a4d; }
.banner { margin: 12px 20px 0; }
.banner-in { margin: 0 0 12px; }
.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--forest);
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; }
.logo { width: 32px; height: 32px; display: grid; place-items: center; background: #1d6a4f; border-radius: 10px; }
.top #who { margin-left: auto; opacity: 0.85; font-size: 14px; }
.top .ghost { color: #fff; }
.tabs { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; }
.tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.tabs a.on { background: var(--mint); }
.plan-strip {
  margin: 12px 0 20px;
  padding: 16px 18px;
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.plan-strip.free { background: #fff4d6; color: #6a4b12; }
.plan-strip.premium { background: var(--forest); color: #fff; }
.plan-strip a { color: inherit; font-weight: 700; margin-left: auto; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pricing h2 span { font-size: 1rem; color: var(--muted); }
.featured { border: 2px solid var(--leaf); }
.featured-law { background: linear-gradient(135deg, #134132, #1f6a8a); color: #fff; }
.featured-law .eyebrow, .featured-law .cite, .featured-law a.btn { color: #fff; }
.featured-law a.btn { background: #fff; color: var(--forest); }
main { padding: 0 20px 48px; max-width: 980px; margin: 0 auto; }
.page-hero { margin: 8px 0 20px; }
.page-hero h1 { font-size: 2rem; margin: 0 0 6px; }
.page-hero p { margin: 0; color: var(--muted); max-width: 42rem; }
.score-card {
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12), transparent 40%), var(--forest);
  color: #fff;
  border-radius: 32px;
  padding: 24px;
  min-height: 168px;
  box-shadow: 0 16px 32px rgba(19, 65, 50, 0.22);
}
.score-row { display: flex; align-items: baseline; gap: 6px; }
.score-row strong { font-size: 64px; line-height: 1; }
.score-row span { font-size: 22px; opacity: 0.72; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat { background: var(--forest); color: #fff; border-radius: 20px; padding: 16px; }
.stat span { display: block; opacity: 0.75; font-size: 13px; }
.stat strong { font-size: 28px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.row-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pill { background: var(--mint); color: var(--forest); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge { border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.badge.pending { background: #ffe7b8; color: #8c5c12; }
.badge.removed { background: #cfeeda; color: #1a6642; }
.badge.review { background: #fff1b8; color: #7a5d10; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.grid .wide, .grid button { grid-column: 1 / -1; }
.grid .check { flex-direction: row; align-items: center; font-weight: 650; }
.grid .check input { width: auto; }
.hash-grid { display: grid; gap: 10px; margin-bottom: 24px; }
.hash-grid article { background: #fff; border-radius: 16px; padding: 14px; }
.hash-grid span { display: block; font-weight: 700; margin-bottom: 6px; }
.hash-grid code { font-size: 12px; color: var(--muted); word-break: break-all; }
.danger-card { border: 1px solid #f3c4cb; margin-top: 20px; }
.danger-card h2 { margin-top: 0; color: var(--rose); }
button.danger { background: var(--rose); }
.meter { height: 14px; background: rgba(0,0,0,0.06); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.meter i { display: block; height: 100%; background: var(--leaf); border-radius: 999px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.steps article { background: #fff; border-radius: 20px; padding: 16px; }
.filters, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filters a {
  text-decoration: none;
  background: #fff;
  color: var(--forest);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
}
.filters a.on { background: var(--mint); }
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { flex: 1; }
.search button { width: auto; padding-inline: 18px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.links a, .text-link { color: var(--forest); font-weight: 700; }
.request-form { display: grid; gap: 8px; margin-top: 12px; }
.letter { white-space: pre-wrap; font-size: 13px; color: var(--muted); }
.warn { border: 1px solid #f0d48a; background: #fff8e8; }
.goal p { margin: 0; }
.cites { color: var(--muted); }
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
}
.auth-blob { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; }
.auth-blob-a { width: 280px; height: 280px; background: #9be7c2; top: -60px; right: -40px; opacity: 0.55; }
.auth-blob-b { width: 240px; height: 240px; background: #cbbafc; bottom: 40px; left: -60px; opacity: 0.45; }
.auth-card {
  position: relative;
  width: min(440px, 100%);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 32px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 50px rgba(19, 65, 50, 0.12);
  text-align: center;
}
.auth-mark {
  width: 84px; height: 84px; margin: 0 auto 12px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 34px;
  background: linear-gradient(135deg, #52c26b, #134132, #2a6fd6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(19, 65, 50, 0.28);
}
.auth-card h1 { margin: 8px 0; font-size: 2rem; }
.lede { color: var(--muted); margin: 0 0 18px; }
.auth-tabs {
  display: flex; background: #f3faf6; border-radius: 999px; padding: 5px; margin-bottom: 16px;
}
.auth-tabs a, .auth-tabs button, .auth-tabs .auth-tab {
  flex: 1;
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--forest);
  font-weight: 650;
  padding: 10px 8px;
  border-radius: 999px;
  width: auto;
  max-width: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.auth-tabs a.on, .auth-tabs button.on, .auth-tabs .auth-tab.on { background: var(--forest); color: #fff; }
.auth-form { text-align: left; }
.switch-hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.switch-hint a { color: var(--forest); font-weight: 700; }
.chips { justify-content: center; }
.chips span {
  background: rgba(19, 65, 50, 0.08);
  color: var(--forest);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .score-row strong { font-size: 48px; }
}
