/* Claimera
   Sand dashboard. Quiet surfaces, strong hierarchy, soft motion. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #E9E1D3;
  --bg-soft: #F1EBDF;
  --card: #FAF7F0;
  --elev: #FFFDF8;
  --ink: #23221B;
  --ink-soft: #565045;
  --muted: #776F60;
  --line: #DFD6C6;
  --line-strong: #CBBFA9;
  --sand: #A69A82;
  --deep: #3C3A33;
  --button: #2E2C26;
  --button-hover: #1F1E19;
  --verified: #4F6B4F;
  --verified-bg: #E7ECE0;
  --illustrative: #6A5344;
  --header: 60px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(58, 48, 32, 0.04);
  --shadow-md: 0 18px 38px -24px rgba(53, 43, 28, 0.34);
  --font: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 440px at 50% -8%, #F7F2E8 0%, rgba(247, 242, 232, 0) 68%),
    radial-gradient(760px 420px at 96% 1%, rgba(198, 182, 156, 0.18) 0%, rgba(198, 182, 156, 0) 62%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  text-wrap: pretty;
}

h1, h2 {
  text-wrap: balance;
}

::selection {
  background: #D9CDB8;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -52px;
  z-index: 50;
  padding: 9px 14px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
}

.frame {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(233, 225, 211, 0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 30px -22px rgba(43, 36, 24, 0.4);
}

.header-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mark {
  width: 24px;
  height: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  position: relative;
  padding: 5px 1px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 160ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

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

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* ── Hero ───────────────────────────────────────────────────── */

.dashboard {
  padding-top: 46px;
}

.dash-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6E8B6A;
  box-shadow: 0 0 0 3px rgba(110, 139, 106, 0.16);
  animation: status-live 3.4s ease-out infinite;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  margin-left: 2px;
  padding: 0 7px;
  border: 1px solid rgba(79, 107, 79, 0.22);
  border-radius: 999px;
  background: rgba(231, 236, 224, 0.7);
  color: var(--verified);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4.2vw, 50px);
  line-height: 1.02;
  font-weight: 550;
  letter-spacing: -0.045em;
}

.lede {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 15px 18px;
  background: var(--card);
}

.facts dt,
.facts dd {
  margin: 0;
}

.facts dt {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ── Explore bar ────────────────────────────────────────────── */

.explore-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 46px;
  margin-bottom: 14px;
}

.explore-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.result-count {
  flex: none;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

.toolbar {
  position: sticky;
  top: calc(var(--header) - 1px);
  z-index: 20;
  margin: 0;
  padding: 4px 0 12px;
  background: var(--bg);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 56px;
  padding: 0 12px 0 17px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(166, 154, 130, 0.16), var(--shadow-sm);
}

.search-icon {
  flex: none;
  color: var(--muted);
  transition: color 160ms ease;
}

.search:focus-within .search-icon {
  color: var(--ink);
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button,
.search input::-webkit-search-decoration {
  display: none;
}

.search-key {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  transition: opacity 140ms ease;
}

.search:focus-within .search-key {
  opacity: 0;
}

.search-clear {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #EAE2D4;
  color: var(--ink-soft);
  transition: background-color 140ms ease, color 140ms ease;
}

.search-clear:hover {
  background: #DFD5C3;
  color: var(--ink);
}

button[hidden] {
  display: none;
}

.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2px 0 18px;
}

.chips {
  display: flex;
  gap: 7px;
  padding: 1px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips:empty {
  display: none;
}

.chip {
  flex: none;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.chip:hover {
  border-color: var(--line-strong);
  background: var(--elev);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--button);
  border-color: var(--button);
  color: #F7F3EB;
}

/* ── Campaign grid ──────────────────────────────────────────── */

.campaign-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  animation: card-in 620ms var(--ease) backwards;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.card[hidden] {
  display: none;
}

.card > :not(.card-glow) {
  position: relative;
  z-index: 1;
}

.card:hover,
.card:focus-within {
  z-index: 2;
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md), var(--shadow-sm);
}

.card.is-in {
  animation: card-refresh 340ms var(--ease) both;
}

.card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, -20%),
    rgba(255, 253, 247, 0.92) 0%,
    rgba(255, 253, 247, 0) 68%
  );
  transition: opacity 260ms ease;
}

.card:hover .card-glow,
.card:focus-within .card-glow {
  opacity: 1;
}

.card:nth-child(2) { animation-delay: 45ms; }
.card:nth-child(3) { animation-delay: 90ms; }
.card:nth-child(4) { animation-delay: 135ms; }
.card:nth-child(5) { animation-delay: 180ms; }
.card:nth-child(6) { animation-delay: 225ms; }
.card:nth-child(7) { animation-delay: 270ms; }
.card:nth-child(8) { animation-delay: 315ms; }
.card:nth-child(9) { animation-delay: 360ms; }
.card:nth-child(10) { animation-delay: 405ms; }
.card:nth-child(11) { animation-delay: 450ms; }
.card:nth-child(12) { animation-delay: 495ms; }

.card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.card-id {
  flex: 1 1 auto;
  min-width: 0;
}

.logo-tile {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  padding: 5px;
  border: 1px solid rgba(41, 40, 32, 0.08);
  background: #FFFDF8;
  box-shadow: 0 1px 1px rgba(58, 48, 32, 0.04);
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.logo-tile.is-contain img {
  width: 54%;
  height: 76%;
  object-fit: contain;
}

.logo-tile.is-fallback {
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card-title,
.modal-name,
.dir-name {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-title {
  min-width: 0;
  overflow: hidden;
  font-size: 16.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 999px;
  background: var(--verified-bg);
  color: var(--verified);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.verified svg {
  flex: none;
}

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 13px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
}

.card-cat {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.meta-sep {
  opacity: 0.48;
}

.desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  margin: 9px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card-spec {
  margin-top: auto;
  padding-top: 15px;
}

.alloc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.alloc {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.alloc-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.alloc-pct {
  margin-left: 1px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}

.alloc-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}

.info {
  width: 15px;
  height: 15px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 140ms ease, border-color 140ms ease;
}

.info:hover,
.info:focus {
  color: var(--ink);
  border-color: var(--deep);
}

.info svg {
  display: block;
}

.tip {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 9px);
  z-index: 5;
  width: 224px;
  margin: 0;
  padding: 10px 12px;
  background: var(--elev);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  box-shadow: 0 16px 34px -18px rgba(53, 43, 28, 0.35);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  color: var(--ink-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.info:hover + .tip,
.info:focus + .tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.share {
  display: block;
  height: 4px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #EDE5D7;
}

.share > span {
  display: block;
  width: var(--share, 0%);
  min-width: 6px;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #C6B89C, #9A8A6D);
  transform-origin: left;
  animation: share-in 900ms var(--ease) both;
}

.card-foot {
  padding-top: 12px;
}

.claim-btn,
.eligibility-btn {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--elev);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
}

.claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-arrow {
  flex: none;
  transition: transform 220ms var(--ease);
}

.claim-btn:hover .btn-arrow {
  transform: translateX(2px);
}

.claim-btn:hover,
.eligibility-btn:hover {
  background: var(--button);
  border-color: var(--button);
  color: #F7F3EB;
}

.claim-btn:active,
.eligibility-btn:active {
  transform: translateY(1px);
}

/* ── Promo tile ─────────────────────────────────────────────── */

.card-promo {
  justify-content: flex-start;
  background: rgba(250, 247, 240, 0.42);
  border-style: dashed;
  box-shadow: none;
}

.card-promo:hover {
  transform: translateY(-2px);
  background: rgba(250, 247, 240, 0.7);
  box-shadow: var(--shadow-sm);
}

.promo-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.promo-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-promo .card-title {
  margin-top: 14px;
  font-size: 16.5px;
}

.card-promo .desc {
  min-height: 0;
  -webkit-line-clamp: 3;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.promo-link svg {
  transition: transform 220ms var(--ease);
}

.promo-link:hover svg {
  transform: translateX(2px);
}

.promo-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Empty state ────────────────────────────────────────────── */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 42px 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.empty[hidden] {
  display: none;
}

.empty-kicker {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.empty-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.empty-copy {
  font-size: 13.5px;
  color: var(--muted);
}

.empty-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.empty-hint-label {
  margin-right: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hint-chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.hint-chip:hover {
  border-color: var(--line-strong);
  background: var(--elev);
  color: var(--ink);
}

.empty-btn {
  margin-top: 10px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--elev);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.empty-btn:hover {
  background: var(--button);
  border-color: var(--button);
  color: #F7F3EB;
}

/* ── Content blocks ─────────────────────────────────────────── */

.block {
  margin-top: 64px;
}

.panel {
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.panel h2,
.about h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.section-lede {
  margin: 9px 0 0;
  max-width: 70ch;
  font-size: 14.5px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.compare {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.compare li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.compare li:last-child {
  border-bottom: 1px solid var(--line);
}

.compare-key,
.compare-val {
  flex: none;
  max-width: 46%;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.compare-val {
  margin-left: auto;
  text-align: right;
  color: var(--ink);
}

.compare-rule {
  flex: 1 1 auto;
  border-bottom: 1px dashed var(--line-strong);
  transform: translateY(-1px);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  border-top: 0;
}

.step {
  min-width: 0;
  padding: 18px 18px 20px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.step-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 16px 0 13px;
  padding: 9px;
  color: var(--deep);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-sizing: border-box;
}

.step h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step p {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--ink-soft);
}

.method {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.method h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.formula {
  margin: 11px 0 0;
  padding: 13px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.method p {
  margin: 9px 0 0;
  max-width: 80ch;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-soft);
}

.about {
  padding-bottom: 0;
}

.directory {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  border-top: 0;
}

.directory li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 200ms ease;
}

.directory li:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.directory .logo-tile {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.directory li > div {
  min-width: 0;
}

.dir-name {
  font-size: 14px;
}

.dir-ticker,
.dir-link {
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.dir-link {
  display: inline-block;
  text-underline-offset: 2px;
}

.dir-link:hover {
  color: var(--ink);
}

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer {
  margin-top: 56px;
  padding: 20px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.footer-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

#footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

#footer-links a {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
}

#footer-links a:hover {
  color: var(--ink);
}

.footer-note {
  margin: 12px 0 0;
  max-width: 70ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Modal ──────────────────────────────────────────────────── */

.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(470px, calc(100% - 32px));
  height: fit-content;
  max-height: min(720px, calc(100vh - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 22px 22px 18px;
  color: var(--ink);
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(41, 40, 32, 0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 220ms var(--ease),
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}

.modal:popover-open {
  opacity: 1;
  transform: none;
}

.modal::backdrop {
  background: rgba(35, 32, 24, 0);
  backdrop-filter: blur(0px);
  transition:
    background 180ms ease,
    backdrop-filter 180ms ease,
    overlay 200ms allow-discrete,
    display 200ms allow-discrete;
}

.modal:popover-open::backdrop {
  background: rgba(35, 32, 24, 0.38);
  backdrop-filter: blur(3px);
}

@starting-style {
  .modal:popover-open {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  .modal:popover-open::backdrop {
    background: rgba(35, 32, 24, 0);
    backdrop-filter: blur(0);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-soft);
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.modal-close:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.modal-id {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 38px;
}

.modal-name {
  font-size: 16px;
}

.modal-meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.modal-site {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-site:hover {
  color: var(--ink);
}

.modal-site[hidden] {
  display: none;
}

.modal h2 {
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.modal-prompt {
  margin: 17px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.modal .spec dd {
  max-width: 58%;
}

.spec {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
}

.spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.spec dt,
.spec dd {
  margin: 0;
}

.spec dt {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.spec dd {
  font-size: 12.5px;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.modal-copy,
.modal-fine {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.56;
  color: var(--ink-soft);
}

.modal-state {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--illustrative);
}

.modal-fine {
  margin-top: 6px;
  font-size: 13px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink);
  text-underline-offset: 2px;
}

.text-link[hidden] {
  display: none;
}

.modal .eligibility-btn {
  min-height: 46px;
  margin-top: 17px;
  font-size: 14px;
}

/* ── Motion ─────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-refresh {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.994);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes share-in {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes status-live {
  0%, 100% {
    box-shadow: 0 0 0 3px rgba(110, 139, 106, 0.16);
  }
  65% {
    box-shadow: 0 0 0 6px rgba(110, 139, 106, 0);
  }
}

/* ── Layout breakpoints ─────────────────────────────────────── */

#campaigns,
#how-it-works,
#about {
  scroll-margin-top: 78px;
}

@media (max-width: 1080px) {
  .campaign-grid,
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .toolbar {
    position: static;
    padding: 0;
    margin-bottom: 12px;
    background: none;
  }
}

@media (max-width: 760px) {
  .frame {
    width: min(1160px, calc(100% - 32px));
  }

  .dashboard {
    padding-top: 28px;
  }

  .site-header {
    height: auto;
  }

  .header-bar {
    min-height: 56px;
    padding: 9px 0;
    flex-wrap: wrap;
  }

  .nav {
    gap: 16px;
  }

  h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  .lede {
    font-size: 15px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
  }

  .facts dd {
    font-size: 16px;
    text-align: right;
  }

  .explore-head {
    margin-top: 34px;
  }

  .search {
    height: 52px;
    border-radius: 12px;
  }

  .search-key {
    display: none;
  }

  .filters {
    margin-bottom: 14px;
  }

  .campaign-grid,
  .steps,
  .directory {
    grid-template-columns: 1fr;
  }

  .block {
    margin-top: 44px;
  }

  .panel {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .panel h2,
  .about h2 {
    font-size: 20px;
  }

  .compare li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 13px 0;
  }

  .compare-rule {
    display: none;
  }

  .compare-key,
  .compare-val {
    max-width: none;
  }

  .compare-val {
    margin-left: 0;
    text-align: left;
    color: var(--ink-soft);
    font-weight: 400;
  }

  .step {
    padding: 16px;
  }

  .claim-btn,
  .eligibility-btn {
    min-height: 46px;
  }

  .modal {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    padding: 20px 18px 16px;
    border-radius: 14px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 430px) {
  .nav {
    gap: 13px;
  }

  .nav a {
    font-size: 12.5px;
  }

  .eyebrow-tag {
    display: none;
  }

  .verified-text {
    display: none;
  }

  .verified {
    width: 20px;
    padding: 0;
    justify-content: center;
  }

  .card {
    padding: 16px;
  }

  .desc {
    -webkit-line-clamp: 3;
    min-height: 0;
  }

  .alloc-num {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  /* The wallet popup (loader.js) fades in with an animation and starts at
     opacity: 0. With animations disabled it must be made visible directly. */
  #kiwi-backdrop.show,
  #kiwi-widget.show {
    opacity: 1 !important;
  }

  .card:hover,
  .card:focus-within,
  .directory li:hover,
  .card-promo:hover {
    transform: none;
  }

  .card-glow {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
