/* Local Model Dojo — design system v2 (SOP-applied)
   Built from: docs/LOCAL_MODEL_DOJO_WEBSITE_DESIGN.md
   Brand foundation kept (#0b0f14, #6ee7b7, system stack).
   Evolutions: tighter type, eyebrow chips, .stat blocks, hover-shift cards,
   consistent section rhythm. */
:root {
  --bg:        #0b0f14;
  --bg-2:      #131a22;
  --bg-3:      #1b242e;
  --bg-elev:   #1f2937;
  --fg:        #e6edf3;
  --fg-dim:    #8a96a4;
  --fg-quiet:  #5e6b78;
  --accent:    #6ee7b7;
  --accent-2:  #f0c674;
  --link:      #58a6ff;
  --border:    #263341;
  --border-2:  #2f3d4d;
  --ok:        #6ee7b7;
  --fail:      #f87171;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --space-section: 96px;
  --max-w:     1120px;
  --shadow:    0 8px 32px rgba(0,0,0,0.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration: none; transition: color .12s; }
a:hover { color: #8ef2c8; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

code, pre, kbd, samp { font-family: Consolas, "SF Mono", ui-monospace, monospace; }
code { background: var(--bg-3); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; font-size: 0.9em; }
pre { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; line-height: 1.5; font-size: 14px; }
pre code { background: transparent; border: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -9999px; top: 0; padding: 8px 16px; background: var(--accent); color: var(--bg); font-weight: 700; }
.skip:focus { left: 8px; top: 8px; z-index: 1000; }

/* ---------- Top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.topnav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.4px; color: var(--fg);
}
.topnav .brand img { width: 28px; height: 28px; }
.topnav .brand .accent { color: var(--accent); }
.topnav nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.topnav nav a {
  color: var(--fg-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
}
.topnav nav a:hover { color: var(--fg); background: var(--bg-2); }
.topnav nav a.donate { color: var(--accent-2); }
.topnav nav a.cta {
  background: var(--accent); color: var(--bg);
  padding: 8px 16px; font-weight: 700;
  margin-left: 6px;
}
.topnav nav a.cta:hover { background: #8ef2c8; }
@media (max-width: 900px) {
  .topnav { padding: 12px 16px; flex-wrap: wrap; }
  .topnav nav { gap: 0; }
  .topnav nav a { padding: 6px 10px; font-size: 13px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .12s, border-color .12s, color .12s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 6px; }
.btn.large { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-primary:hover { background: #8ef2c8; color: var(--bg); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-warn { background: var(--accent-2); color: var(--bg); border-color: var(--accent-2); }
.btn-warn:hover { background: #f5d18a; color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---------- Layout ---------- */
main { display: block; }
section { padding: var(--space-section) 24px; max-width: var(--max-w); margin: 0 auto; }
section.tight { padding-top: 48px; padding-bottom: 48px; }
section.full { max-width: none; padding-left: 0; padding-right: 0; }
section.full > .inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.dim { color: var(--fg-dim); }

@media (max-width: 700px) {
  :root { --space-section: 64px; }
  section { padding: var(--space-section) 18px; }
}

/* ---------- Eyebrow chip ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--accent);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(110, 231, 183, 0.06);
  margin-bottom: 16px;
}
.eyebrow.warn { color: var(--accent-2); background: rgba(240, 198, 116, 0.06); }
.eyebrow.muted { color: var(--fg-dim); background: transparent; }

/* ---------- Section headers ---------- */
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head h2 { margin-bottom: 12px; }
section h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.5px; font-weight: 800; }
section h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.3px; font-weight: 800; }
section h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
section p + h3, section ul + h3 { margin-top: 28px; }
.lede { color: var(--fg-dim); font-size: 17px; line-height: 1.6; max-width: 680px; }
.section-head .lede { margin-top: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(110,231,183,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(240,198,116,0.05) 0%, transparent 55%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -1px; max-width: 920px; margin: 0 auto 18px; font-weight: 800; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .stripe { color: var(--accent-2); }
.hero .sub { color: var(--fg-dim); font-size: 18px; line-height: 1.55; max-width: 680px; margin: 0 auto 32px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero.compact { padding: 64px 24px 48px; }

/* ---------- Stat band (NEW: real benchmark numbers under hero) ---------- */
.stat-band {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.stat-band .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat {
  display: flex; flex-direction: column; gap: 4px;
}
.stat .num {
  font-size: 32px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; line-height: 1;
  font-feature-settings: "tnum";
}
.stat .num.alt { color: var(--accent-2); }
.stat .label { font-size: 13px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.stat .note { font-size: 13px; color: var(--fg-dim); }

/* ---------- Cards + grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--border-2); }
.card.featured { border-color: var(--accent); }
.card.featured:hover { border-color: #8ef2c8; }
.card .icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-3); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 12px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }

/* ---------- Tier cards (pricing) ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: var(--max-w); margin: 0 auto;
}
.tier {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
  position: relative;
}
.tier:hover { transform: translateY(-2px); }
.tier.featured { border-color: var(--accent); }
.tier.warn { border-color: var(--accent-2); }
.tier .tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  background: var(--bg-3); color: var(--fg-dim); border: 1px solid var(--border);
  margin-bottom: 14px; align-self: flex-start;
}
.tier.featured .tag { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.tier.warn .tag { background: var(--accent-2); color: var(--bg); border-color: var(--accent-2); }
.tier .name { font-size: 12px; font-weight: 700; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 6px; }
.tier h2 { font-size: 22px; margin-bottom: 8px; }
.tier .price { font-size: 38px; font-weight: 800; line-height: 1; margin: 4px 0 6px; letter-spacing: -1px; }
.tier .price small { font-size: 14px; color: var(--fg-dim); font-weight: 500; letter-spacing: 0; }
.tier .descriptor { color: var(--fg-dim); font-size: 13px; line-height: 1.55; margin-bottom: 16px; }
.tier ul { list-style: none; margin: 0 0 18px; padding: 0; flex-grow: 1; }
.tier ul li { padding: 4px 0; font-size: 13.5px; line-height: 1.45; color: var(--fg); display: flex; gap: 8px; }
.tier ul li::before { content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.tier ul li.no::before { content: "·"; color: var(--fg-quiet); }
.tier .cta { width: 100%; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 10px;
  transition: border-color .15s;
}
.faq details:hover { border-color: var(--border-2); }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; padding: 16px 20px;
  font-weight: 700; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--accent); font-weight: 800; font-size: 22px; line-height: 1;
  transition: transform .15s;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div, .faq details > p {
  padding: 0 20px 18px; color: var(--fg-dim); line-height: 1.6; font-size: 15px;
}
.faq details > div p, .faq details > div ul { margin-bottom: 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--fg-dim); margin-bottom: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 11px 14px;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--fg); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px;
  transition: border-color .12s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
table.data th, table.data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { color: var(--fg-dim); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 0.6px; }
table.data tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Leaderboard ---------- */
.lb-filter {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 24px;
}
.lb-filter button {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--fg-dim);
  padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600;
  border-radius: 999px; cursor: pointer; transition: border-color .12s, color .12s;
}
.lb-filter button:hover { color: var(--fg); border-color: var(--border-2); }
.lb-filter button.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.lb-row {
  display: grid; grid-template-columns: 56px 1fr 130px;
  gap: 16px; align-items: center;
  padding: 16px 18px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.lb-row .rank { font-size: 26px; font-weight: 800; color: var(--accent); font-feature-settings: "tnum"; text-align: center; }
.lb-row .meta h3 { font-size: 17px; margin: 0 0 4px; }
.lb-row .meta .desc { color: var(--fg-dim); font-size: 13px; line-height: 1.4; }
.lb-row .stat-col { text-align: right; font-feature-settings: "tnum"; }
.lb-row .stat-col .top { font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.lb-row .stat-col .lbl { color: var(--fg-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 2px; }
@media (max-width: 600px) {
  .lb-row { grid-template-columns: 40px 1fr; }
  .lb-row .stat-col { grid-column: 1 / -1; text-align: left; }
}

/* ---------- Prose blocks (legal pages) ---------- */
.prose { max-width: 740px; margin: 0 auto; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 22px; }
.prose p, .prose ul, .prose ol { color: var(--fg-dim); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--fg); }
.prose .notice {
  background: var(--bg-2); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0;
}
.prose .notice p { color: var(--fg); margin-bottom: 8px; }
.prose .notice p:last-child { margin-bottom: 0; }
.prose pre { font-size: 13px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 60px;
  margin-top: 64px;
  background: var(--bg-2);
}
footer .inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 18px 32px;
  justify-content: space-between; align-items: flex-start;
}
footer .col { display: flex; flex-direction: column; gap: 8px; }
footer .col h4 { font-size: 12px; color: var(--fg-quiet); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 700; }
footer .col a { color: var(--fg-dim); font-size: 14px; }
footer .col a:hover { color: var(--accent); }
footer .meta {
  border-top: 1px solid var(--border);
  margin-top: 28px; padding-top: 20px;
  text-align: center; color: var(--fg-quiet); font-size: 12px;
}

/* ---------- Legacy compat ----------
   Blog posts + the hardware-value page were generated against the v1
   stylesheet. These selectors keep them styled until those pages are
   regenerated against the v2 system. */
.topnav .links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.topnav .links a {
  color: var(--fg-dim); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .12s, background .12s;
}
.topnav .links a:hover { color: var(--fg); background: var(--bg-2); }
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-bottom: 12px; }
footer .foot-links a { color: var(--fg-dim); font-size: 14px; }
footer .foot-links a:hover { color: var(--accent); }
footer > div:not(.inner):not(.foot-links) { text-align: center; color: var(--fg-quiet); font-size: 12px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
