/* ==========================================================================
   Verify Page · Web3 product (post-2026-05-13 rebrand, see tasks/REBRAND-2026-05-13.md)
   Design system: white default + dark banded hero, Poppins sans, royal-blue accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg:        #ffffff;   /* default white */
  --bg-dark:   #16171c;   /* hero / banded dark sections */
  --surface:   #ffffff;
  --surface-2: #f7f7f9;   /* card / hover light */
  --hairline:  #e6e8ed;
  --hairline-strong: #d4d7de;
  --hairline-on-dark: #2a2c34;

  /* Ink */
  --ink:       #16171c;
  --ink-2:     #5a5d6b;
  --ink-3:     #8a8d99;
  --ink-4:     #b8bac4;
  --ink-on-dark:  #ffffff;
  --ink-2-on-dark: #a8acb8;

  /* Accents */
  --accent:    #4566e0;   /* royal blue — hue-shifted from 0xecho indigo */
  --accent-2:  #22c993;   /* emerald — replaces 0xecho mint */

  /* Tier ticks (data semantic; not part of brand palette) */
  --master:    #1a1817;
  --gold:      #b8881e;
  --green:     #2d6a4f;
  --bronze:    #a06a3a;
  --gray:      #84807a;
  --danger:    #a13d2d;

  /* Type — kept var name --serif for backward compat (now points to Poppins) */
  --serif:     'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --sans:      'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Rhythm */
  --r-1: 4px;  --r-2: 8px;  --r-3: 12px;  --r-4: 16px;
  --r-5: 24px; --r-6: 32px; --r-7: 48px;  --r-8: 64px; --r-9: 96px;

  --radius:    12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

/* ==========================================================================
   Type scale (editorial)
   ========================================================================== */
h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}
h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}

/* ==========================================================================
   Top nav
   ========================================================================== */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(250, 248, 243, 0.85);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 500; font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: var(--r-4); }
.nav-links { display: flex; gap: var(--r-5); }
.nav-links a {
  font-size: 14px; color: var(--ink-2);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--ink); }

.lang-switch {
  display: inline-flex; gap: 0;
  font-size: 12px; color: var(--ink-3);
  font-family: var(--mono);
}
.lang-switch button {
  background: transparent; border: none;
  padding: 4px 8px; cursor: pointer;
  color: var(--ink-3);
  border-radius: 4px;
}
.lang-switch button.active { color: var(--ink); background: var(--surface-2); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
  transition: opacity .15s ease, transform .1s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn.outline {
  background: transparent; color: var(--ink);
  border-color: var(--hairline-strong);
}
.btn.outline:hover { border-color: var(--ink); background: var(--surface-2); }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.ghost {
  background: transparent; color: var(--ink-2);
  border-color: transparent;
}
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn:disabled { opacity: 0.5; cursor: wait; }

.cta {  /* legacy class — keep working */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  cursor: pointer;
}
.cta:hover { opacity: 0.88; }

.btn-secondary {  /* legacy */
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink); font-size: 13px; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--ink); }

/* ==========================================================================
   Inputs
   ========================================================================== */
.input, input[type="text"]:not([class]), input[type="email"]:not([class]),
input[type="search"]:not([class]), .search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease;
}
.input:focus, input:focus, .search-input:focus {
  border-color: var(--ink);
}
.input::placeholder, input::placeholder, .search-input::placeholder { color: var(--ink-3); }

.field-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field-help {
  font-size: 12px; color: var(--ink-3); margin-top: 6px;
}

/* ==========================================================================
   Hero (index.html)
   ========================================================================== */
.hero {
  padding: var(--r-8) 40px var(--r-7);
  max-width: 980px; margin: 0 auto;
}
.hero .eyebrow { margin-bottom: var(--r-4); display: inline-flex; align-items: center; gap: 8px; }
.hero .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}
.hero h1 { margin-bottom: var(--r-4); max-width: 16ch; }
.hero .lede { max-width: 56ch; margin-bottom: var(--r-6); }

.search-wrap {
  display: flex; gap: var(--r-2);
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
  max-width: 720px;
}
.search-wrap:focus-within {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline) inset;
}
.search-wrap .search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 18px;
  font-size: 16px;
}
.search-wrap .search-input:focus { box-shadow: none; }
.search-btn {
  padding: 14px 26px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: 9px;
  font-weight: 500; font-size: 14px;
  cursor: pointer;
}
.search-btn:hover { opacity: 0.88; }
.search-btn:disabled { opacity: 0.5; cursor: wait; }

.detection {
  margin-top: var(--r-3);
  font-family: var(--mono);
  font-size: 12px; color: var(--ink-3);
  height: 22px;
}
.detection .badge {
  display: inline-block; padding: 2px 10px;
  background: var(--surface-2); border-radius: 100px;
  color: var(--ink); margin-left: 8px;
  font-family: var(--sans);
}

.examples { margin-top: var(--r-5); display: flex; flex-wrap: wrap; gap: 8px; }
.example-chip {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 100px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  font-family: var(--mono);
  transition: all .15s ease;
}
.example-chip:hover { color: var(--ink); border-color: var(--ink); background: var(--surface-2); }

/* ==========================================================================
   Type bar (entity tabs on index.html)
   ========================================================================== */
.type-bar {
  display: flex; gap: 0; padding: 0 40px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg); overflow-x: auto;
}
.type-tab {
  padding: 14px 18px;
  font-size: 14px; color: var(--ink-3);
  background: transparent; border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  transition: color .15s ease;
}
.type-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.type-tab.disabled { color: var(--ink-4); cursor: not-allowed; }
.type-tab:hover:not(.disabled):not(.active) { color: var(--ink-2); }
.type-tab .pill {
  font-size: 10px; padding: 1px 7px;
  background: var(--surface-2);
  border-radius: 100px; color: var(--ink-3);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--r-5);
}
.card-title {
  font-size: 11px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: var(--r-4);
}

/* ==========================================================================
   Project page (project.html)
   ========================================================================== */
.proj-shell {
  max-width: 1200px; margin: 0 auto;
  padding: var(--r-7) 40px var(--r-8);
}
.proj-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: var(--r-7);
  flex-wrap: wrap; gap: var(--r-4);
  padding-bottom: var(--r-5);
  border-bottom: 1px solid var(--hairline);
}
.proj-meta h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}
.proj-meta p {
  color: var(--ink-3);
  font-size: 14px; margin-top: 8px;
  font-family: var(--mono);
}
.proj-meta p a { color: var(--ink); border-bottom: 1px solid var(--hairline-strong); }
.proj-meta p a:hover { border-bottom-color: var(--ink); }
.proj-actions { display: flex; gap: 8px; }

.trust-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--r-4); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

#bubbleMap {
  width: 100%;
  min-height: 300px;
  height: min(50vw, 560px);
  background:
    radial-gradient(ellipse at center, #ffffff 0%, var(--surface-2) 100%);
  border-radius: var(--radius);
  touch-action: none;
}
#bubbleMap svg { touch-action: none; }
.legend { display: flex; flex-wrap: wrap; gap: var(--r-4); margin-top: var(--r-4); }
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
  font-family: var(--mono);
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Team list */
#teamList .row {
  display: flex; align-items: center; gap: var(--r-3);
  padding: var(--r-3) 0;
  border-bottom: 1px solid var(--hairline);
}
#teamList .row:last-child { border-bottom: none; }
#teamList img {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
}
#teamList .who { flex: 1; min-width: 0; }
#teamList .who .name {
  font-weight: 500; font-size: 14px; color: var(--ink);
}
#teamList .who .meta {
  font-size: 12px; color: var(--ink-3);
  margin-top: 1px;
  font-family: var(--mono);
}
#teamList .voucher-left {
  font-size: 11px; color: var(--bronze);
  margin-top: 3px;
  font-family: var(--mono);
}
#teamList .row.revoked { opacity: 0.5; }
#teamList .row.revoked .name { text-decoration: line-through; }

/* Tick badges */
.tick {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; color: white;
  font-family: var(--serif);
  font-weight: 500;
  position: relative;
}
.tick::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.2;
}

.detail-panel {
  position: fixed;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 14px 16px; min-width: 240px;
  pointer-events: none; opacity: 0; transition: opacity .15s;
  font-size: 13px; z-index: 200;
  box-shadow: 0 10px 32px rgba(26, 24, 23, 0.08);
}
.detail-panel.show { opacity: 1; }
.detail-panel h4 {
  font-family: var(--serif);
  font-size: 16px; font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}
.detail-panel .meta {
  color: var(--ink-3); font-size: 12px;
  font-family: var(--mono);
}

/* Me badge */
.me-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--hairline);
  border-radius: 100px;
  background: var(--surface);
}
.me-badge img {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
}

/* ==========================================================================
   Admin page
   ========================================================================== */
.admin-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px;
  background: var(--surface-2);
  padding: var(--r-3);
  border-radius: var(--radius);
  margin-bottom: var(--r-4);
  border: 1px solid var(--hairline);
}
.admin-form input {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 13px; color: var(--ink);
  outline: none;
}
.admin-form input:focus { border-color: var(--ink); }
.admin-form button {
  padding: 11px 22px;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--radius);
  font-weight: 500; cursor: pointer;
  font-size: 13px;
}

/* ==========================================================================
   Misc
   ========================================================================== */
.empty {
  text-align: center;
  padding: var(--r-7) var(--r-4);
  color: var(--ink-3);
  font-size: 14px;
  font-family: var(--serif);
  font-style: italic;
}

.alert {
  background: rgba(161, 61, 45, 0.06);
  border: 1px solid rgba(161, 61, 45, 0.25);
  color: var(--danger);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: var(--r-3);
}

.disclaimer {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: var(--r-5) auto 0;
  max-width: 1100px;
  font-size: 13px;
  color: var(--ink-2);
  display: flex; gap: 12px; align-items: start;
  font-family: var(--serif);
}
.disclaimer strong { color: var(--ink); font-weight: 600; }

footer {
  border-top: 1px solid var(--hairline);
  padding: var(--r-6) 40px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--mono);
  margin-top: var(--r-8);
}

/* Coming soon card on disabled tabs */
.coming-soon-card {
  max-width: 720px; margin: var(--r-8) auto;
  padding: 0 40px; text-align: center;
}
.coming-soon-card .card { padding: var(--r-7) var(--r-5); }

/* Results section (verify search) */
.results { max-width: 1100px; margin: var(--r-7) auto 0; padding: 0 40px; display: none; }
.results.active { display: block; }
.results h2 { margin-bottom: var(--r-4); }
.summary-card {
  display: flex; align-items: start; gap: var(--r-4);
  padding: var(--r-5);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  margin-bottom: var(--r-5);
}
.summary-card.verified {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(45, 106, 79, 0.04), var(--surface));
}
.summary-card.unverified {
  border-color: var(--hairline-strong);
}
.status-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 24px;
  flex-shrink: 0;
}
.status-icon.ok { background: var(--green); color: white; }
.status-icon.no { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--hairline-strong); }
.summary-text h3 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.summary-text p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.exchange-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--r-3);
}
.exchange-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--r-4);
  transition: border-color .15s ease;
}
.exchange-card:hover { border-color: var(--hairline-strong); }
.exchange-card.match { border-color: var(--green); }
.exchange-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--r-3); }
.exchange-name { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.ex-logo {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 500; font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
}
.tag {
  padding: 2px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag.ok { background: rgba(45, 106, 79, 0.1); color: var(--green); }
.tag.no { background: var(--surface-2); color: var(--ink-3); }
.tag.unknown { background: var(--surface-2); color: var(--ink-3); }
.tag.error { background: rgba(161, 61, 45, 0.1); color: var(--danger); }
.exchange-body { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.exchange-body .person { color: var(--ink); font-weight: 500; margin-top: 4px; font-family: var(--serif); font-size: 15px; }
.exchange-body .role { color: var(--ink-3); font-size: 12px; }
.exchange-link {
  display: inline-block; margin-top: 10px;
  font-size: 12px; color: var(--ink);
  font-family: var(--mono);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
}
.exchange-link:hover { border-bottom-color: var(--ink); }

/* Map section */
.map-section { max-width: 1200px; margin: var(--r-9) auto var(--r-7); padding: 0 40px; }
.map-header {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: var(--r-5); flex-wrap: wrap; gap: var(--r-4);
}
.map-header h2 { font-size: 32px; }
.map-header p {
  color: var(--ink-3); font-size: 14px;
  margin-top: 8px; max-width: 56ch;
  font-family: var(--serif);
}
.map-controls { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 100px; }
.map-btn {
  padding: 7px 14px; background: transparent;
  border: none; color: var(--ink-3);
  border-radius: 100px;
  font-size: 13px; cursor: pointer;
  font-family: var(--mono);
}
.map-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--hairline-strong); }
.map-btn:hover:not(.active) { color: var(--ink-2); }

/* ==========================================================================
   Marketing landing page
   ========================================================================== */
.lp-section {
  max-width: 1100px; margin: 0 auto; padding: var(--r-9) 40px;
}
.lp-section + .lp-section { padding-top: 0; }
.lp-section h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: var(--r-5); max-width: 22ch; }
.lp-section .lede { max-width: 60ch; margin-bottom: var(--r-6); }

/* Hero with CTAs */
.lp-hero {
  max-width: 800px; margin: 0 auto; padding: var(--r-9) 40px var(--r-7);
  text-align: center;
}
.lp-hero h1 { max-width: 20ch; margin: 0 auto var(--r-4); }
.lp-hero .lede { max-width: 56ch; margin: 0 auto var(--r-6); }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .lp-hero { padding: var(--r-7) 20px var(--r-5); }
}

/* Problem cards (3-up) */
.lp-problems {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r-4);
  margin-top: var(--r-5);
}
@media (max-width: 880px) { .lp-problems { grid-template-columns: 1fr; } }
.lp-problem {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--r-5);
}
.lp-problem .num {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  color: var(--ink-4); margin-bottom: var(--r-3); line-height: 1;
}
.lp-problem h3 { font-family: var(--serif); font-size: 20px; font-weight: 500; margin-bottom: var(--r-2); }
.lp-problem p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* How it works steps */
.lp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--r-4);
  counter-reset: step;
}
@media (max-width: 880px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step {
  position: relative;
  padding: var(--r-5) var(--r-4) var(--r-4);
  border-top: 1px solid var(--hairline-strong);
}
.lp-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.1em;
  position: absolute; top: -1px; left: 0;
  background: var(--bg); padding: 0 12px 0 0;
  transform: translateY(-50%);
}
.lp-step h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: 8px;
}
.lp-step p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* Comparison table */
.lp-compare {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.lp-compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-compare th, .lp-compare td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--hairline);
}
.lp-compare th {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--surface-2);
}
.lp-compare tr:last-child td { border-bottom: none; }
.lp-compare td.hl {
  background: rgba(45, 106, 79, 0.05);
  color: var(--ink); font-weight: 500;
}
.lp-compare .row-name { font-family: var(--serif); font-weight: 500; }

/* Final CTA */
.lp-final-cta {
  text-align: center;
  padding: var(--r-9) 40px;
  border-top: 1px solid var(--hairline);
}
.lp-final-cta h2 {
  font-size: clamp(36px, 5vw, 56px); margin: 0 auto var(--r-4);
  max-width: 18ch;
}
.lp-final-cta p {
  font-family: var(--serif); font-size: 18px;
  color: var(--ink-2); margin-bottom: var(--r-5);
  max-width: 50ch; margin-left: auto; margin-right: auto;
}

/* Demo banner */
.demo-banner {
  background: var(--ink); color: var(--bg);
  padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.demo-banner .b-text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.demo-banner .b-cta {
  background: var(--bg); color: var(--ink);
  padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 500;
  font-family: var(--sans);
}

/* ==========================================================================
   Rebrand 2026-05-13 utilities — banded dark sections, hash labels, accents
   See tasks/REBRAND-2026-05-13.md
   ========================================================================== */

.banded-dark {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
}
.banded-dark h1,
.banded-dark h2,
.banded-dark h3,
.banded-dark .logo { color: var(--ink-on-dark); }
.banded-dark h1 em,
.banded-dark h2 em { color: var(--accent); }
.banded-dark p,
.banded-dark .lede,
.banded-dark .eyebrow { color: var(--ink-2-on-dark); }
.banded-dark a { color: var(--ink-on-dark); }
.banded-dark .btn {
  background: var(--accent); color: var(--ink-on-dark);
  border-color: var(--accent);
}
.banded-dark .btn:hover { opacity: 0.9; }
.banded-dark .btn.outline {
  background: transparent; color: var(--ink-on-dark);
  border-color: var(--hairline-on-dark);
}
.banded-dark .btn.outline:hover {
  border-color: var(--ink-on-dark); background: rgba(255,255,255,0.05);
}

.hash-label {
  font-family: var(--mono);
  font-weight: 500; font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hash-label::before { content: '#'; margin-right: 0.05em; }

.accent-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  color: var(--accent);
  background: transparent;
}
.banded-dark .accent-pill { color: var(--accent); border-color: var(--accent); }

/* Primary CTA accent variant — indigo bg */
.btn.accent {
  background: var(--accent); color: var(--ink-on-dark);
  border-color: var(--accent);
}
.btn.accent:hover { opacity: 0.9; }

/* Responsive */
@media (max-width: 720px) {
  nav, .type-bar { padding: 14px 20px; }
  .hero { padding: var(--r-7) 20px var(--r-5); }
  .proj-shell, .results, .map-section, .coming-soon-card { padding-left: 20px; padding-right: 20px; }
  .summary-card { flex-direction: column; align-items: start; }
  .admin-form { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-right { gap: 8px; }
}

/* Mobile small (≤ 540px) — iPhone SE / 13 mini / Pixel 5 */
@media (max-width: 540px) {
  /* Tighter nav padding */
  nav, .type-bar { padding: 12px 16px; }
  .logo { font-size: 15px; }
  .logo-mark { width: 22px; height: 22px; font-size: 11px; }

  /* Hero / section padding */
  .hero, .lp-hero { padding: var(--r-6) 16px var(--r-5); }
  .proj-shell, .results, .map-section, .coming-soon-card,
  .lp-section, .lp-final-cta { padding-left: 16px; padding-right: 16px; }
  .lp-final-cta { padding-top: var(--r-7); padding-bottom: var(--r-7); }

  /* Headings: shrink min of clamp() ranges so 375px doesn't get 40-56px headers */
  .hero h1, .lp-hero h1 { font-size: clamp(28px, 8vw, 40px); line-height: 1.1; }
  .proj-meta h1 { font-size: clamp(26px, 7vw, 36px); }
  .lp-final-cta h2 { font-size: clamp(26px, 7vw, 36px); }
  h2 { font-size: 22px; }

  /* Body copy / lede tighter */
  .lede, .lp-hero .lede { font-size: 15px; line-height: 1.5; }
  .lp-problem h3, .lp-step h3 { font-size: 17px; }
  .lp-problem p, .lp-step p { font-size: 13px; }
  .lp-problem .num { font-size: 26px; }

  /* Bubble map: give mobile users a real viewport (was min(50vw, 560px) = 187px on 375px) */
  #bubbleMap { height: clamp(320px, 80vw, 480px); }

  /* CTA buttons stack full-width */
  .lp-cta-row { flex-direction: column; align-items: stretch; }
  .lp-cta-row .btn { width: 100%; text-align: center; }

  /* Trust-grid sidebar / project actions stack edge-to-edge */
  .proj-actions { flex-wrap: wrap; }
  .proj-actions .btn { flex: 1 1 auto; }

  /* Comparison table: reduce padding so it doesn't overflow */
  .lp-compare th, .lp-compare td { padding: 10px 12px; font-size: 13px; }

  /* Demo banner tighter */
  .demo-banner { padding: 10px 16px; }
  .demo-banner .b-text { font-size: 11px; }

  /* Forms */
  .admin-form { gap: var(--r-3); }
  input, textarea, select { font-size: 16px; } /* prevent iOS auto-zoom on focus */
}
