:root {
  /* Palette sampled directly from geospur.com's live computed styles --
     Spur Store is downstream of GeoSpur and should read as the same
     family, not a coincidentally-similar cousin. Slate neutrals, blue
     primary, teal as the trust/verification accent. No orange anywhere. */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-border: #e2e8f0;
  --color-border-soft: #eef2f7;

  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-tint: #eff6ff;
  --color-primary-contrast: #ffffff;

  --color-verified: #0d9488;
  --color-verified-bg: #f0fdfa;
  --color-danger: #e11d48;
  --color-danger-bg: #fff1f2;

  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 20px;
  --max-width: 1180px;

  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-2: 0 14px 34px rgba(15, 23, 42, 0.1), 0 3px 10px rgba(15, 23, 42, 0.06);

  /* Hero design system -- dark, high-contrast, distinct from the light
     content below it. The dark itself IS GeoSpur's own ink color
     (#0f172a), not an unrelated near-black -- the hero is a fill of the
     same navy the rest of the page uses for text. */
  --ink: #0f172a;
  --ink-raised: #1e293b;
  --ink-line: #334155;
  --accent: #60a5fa;
  --accent-strong: #3b82f6;
  --line-on-ink: rgba(255, 255, 255, 0.1);
  --text-on-ink: #f8fafc;
  --text-on-ink-soft: #94a3b8;

  --font-display: "Archivo", "Segoe UI Semibold", "Arial Narrow", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-dark);
}

a:hover {
  color: var(--color-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* --- Header ------------------------------------------------------------ */

header.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: relative;
  z-index: 5;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-mark rect {
  fill: var(--ink);
}

.brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.brand-word span {
  color: var(--color-primary);
}

nav.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

nav.site-nav a:hover {
  color: var(--color-text);
}

nav.site-nav a.site-nav-cta {
  color: var(--color-primary-contrast);
  background: var(--ink);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
}

nav.site-nav a.site-nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-primary-contrast);
}

/* --- Layout / typography ------------------------------------------------ */

main {
  padding: 2.5rem 0 4rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 640px;
}

.subtle {
  color: var(--color-muted);
}

.small {
  font-size: 0.875rem;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-primary-contrast);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn.secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-1);
}

.btn.reject {
  background: var(--color-danger);
}

.btn.reject:hover {
  background: #7f1d1d;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* --- Hero ------------------------------------------------------------------
   Full-bleed dark section, breaking from the light body below it on purpose
   -- this is the one place on the site allowed to be loud. Everything past
   the trust strip returns to the calmer light system. */

main:has(.hero-v2) {
  padding-top: 0;
}

.hero-v2 {
  background: var(--ink);
  color: var(--text-on-ink);
  margin: 0 calc(50% - 50vw);
  padding-top: 2.5rem;
}

.hero-v2-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: 3rem;
  padding: 4.5rem 1.75rem 3.5rem;
  max-width: 1280px;
}

.hero-copy {
  max-width: 580px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.32);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero-v2 h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.35rem;
  color: var(--text-on-ink);
  text-wrap: balance;
}

.hero-v2 .lede {
  color: var(--text-on-ink-soft);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 520px;
}

.hero-v2 .btn-row {
  margin-top: 1.75rem;
}

.hero-v2 .btn.secondary {
  color: var(--text-on-ink);
  border-color: var(--line-on-ink);
}

.hero-v2 .btn.secondary:hover {
  background: var(--ink-raised);
  border-color: var(--accent);
  color: var(--accent);
}

.hero-v2 .hero-note {
  color: var(--text-on-ink-soft);
  opacity: 0.75;
  margin-top: 0.75rem;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.robot-svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}

.trust-strip {
  border-top: 1px solid var(--line-on-ink);
  background: var(--ink-raised);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  padding: 1.1rem 1.5rem;
  max-width: 1140px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-on-ink-soft);
}

.trust-item .icon {
  flex: none;
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 780px) {
  .hero-v2-inner {
    grid-template-columns: 1fr;
    padding-top: 2.75rem;
  }

  .hero-art {
    order: -1;
  }

  .robot-svg {
    max-width: 260px;
  }
}

/* --- How it works ------------------------------------------------------- */

.how-it-works {
  padding: 4.5rem 0 1.5rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.section-lede {
  margin-top: 0;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* --- Manifesto ------------------------------------------------------------ */

.manifesto {
  padding: 5rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.manifesto-inner {
  max-width: 760px;
  text-align: center;
}

.manifesto-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-primary-tint);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1.5rem;
}

.manifesto-lead {
  font-size: 1.2rem;
  color: var(--color-muted);
  margin: 0 auto 1.75rem;
  max-width: 600px;
  line-height: 1.55;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--color-primary-dark);
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.manifesto-sub {
  font-size: 1.08rem;
  color: var(--color-muted);
  margin: 0 auto;
  max-width: 520px;
}

/* --- Timeline (How it works) ----------------------------------------------- */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 720px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 6px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-border) 14%, var(--color-border) 86%, transparent 100%);
  opacity: 0.5;
}

.timeline-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.75rem;
  position: relative;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.timeline-marker svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary-dark);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.timeline-body {
  padding-top: 0.35rem;
}

.timeline-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  letter-spacing: -0.005em;
}

code.cmd {
  display: block;
  margin-top: 0.85rem;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  white-space: pre;
  max-width: 100%;
  box-shadow: var(--shadow-1);
}

/* --- Protocol pointer -------------------------------------------------------
   The full code-sample explorer now lives on the protocol site at "/" --
   this is a short pointer back to it, not a duplicate. */

.protocol-pointer {
  padding: 3rem 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.protocol-pointer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.protocol-pointer-inner .section-heading,
.protocol-pointer-inner h2 {
  margin-bottom: 0.5rem;
}

/* --- Market / why now -------------------------------------------------------- */

.market {
  padding: 1rem 0 5.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.stat-tile {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  line-height: 1;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 0.15rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.buyer-strip {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.5rem;
}

.buyer-strip-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-muted);
  flex: none;
}

.buyer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.buyer-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* --- Cards / catalog ------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
  color: var(--color-text);
}

.card .category {
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.card .card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* --- Badges ---------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.verified {
  background: var(--color-verified-bg);
  color: var(--color-verified);
}

.badge.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge.status-approved {
  background: var(--color-verified-bg);
  color: var(--color-verified);
}

.badge.status-rejected {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

/* --- Stars ------------------------------------------------------------------ */

.stars {
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* --- Empty state -------------------------------------------------------------- */

.empty-state {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--color-muted);
  margin-top: 1.5rem;
}

/* --- Detail page ---------------------------------------------------------------- */

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-1);
}

.panel h2 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-muted);
}

ol.steps-list {
  padding-left: 1.25rem;
}

ul.plain-list {
  padding-left: 1.25rem;
}

ul.capability-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

ul.capability-list li {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.85rem;
}

dl.kv {
  margin: 0;
}

dl.kv dt {
  font-weight: 600;
  margin-top: 0.6rem;
}

dl.kv dt:first-child {
  margin-top: 0;
}

dl.kv dd {
  margin: 0.1rem 0 0;
  color: var(--color-muted);
}

/* --- Forms ------------------------------------------------------------------------ */

form.rate-form,
form.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.star-radio {
  display: flex;
  gap: 0.5rem;
}

.star-radio label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.star-radio input {
  margin: 0;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
select {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  background: var(--color-surface);
  color: var(--color-text);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.review-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.token-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 320px;
}

.hint {
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* --- Footer -------------------------------------------------------------------------- */

footer.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 3.5rem 0 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-brand .brand-mark rect {
  fill: var(--ink);
}

.footer-brand .brand-mark path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-brand .brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
}

.footer-brand .brand-word span {
  color: var(--color-primary);
}

.footer-tagline {
  max-width: 320px;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 0.9rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--color-primary-dark);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-soft);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 780px;
}
