/* Claimera
   Sand dashboard. Secondary text is darker than the original swatches
   so labels stay readable on the cream surfaces. */

@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: #F0EADF;
  --card: #F8F5EE;
  --elev: #FCFAF5;
  --ink: #292820;
  --ink-soft: #5C564C;
  --muted: #6A6458;
  --line: #D9D1C3;
  --line-strong: #C9BEAE;
  --sand: #A69A82;
  --deep: #48463C;
  --button: #3C3A33;
  --button-hover: #292820;
  --illustrative: #6A5344;
  --header: 52px;
  --shadow: 0 10px 24px rgba(58, 48, 32, 0.06);
  --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: var(--bg);
  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: -48px;
  z-index: 50;
  padding: 8px 12px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(233, 225, 211, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

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

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

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

.nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

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

.noscript {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
}

.dashboard {
  padding-top: 28px;
}

.dash-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px 40px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 8px 0 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.038em;
}

.lede {
  margin: 12px 0 0;
  max-width: 40rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.facts {
  margin: 0;
  padding: 2px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

.facts div:first-child {
  border-top: 0;
}

.facts dt,
.facts dd {
  margin: 0;
  font-size: 12.5px;
}

.facts dt {
  color: var(--muted);
  font-weight: 400;
}

.facts dd {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 16px 14px;
  background: var(--card);
  border: 1px solid transparent;
  border-radius: 12px;
  animation: card-in 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.card:hover,
.card:focus-within {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -55%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 268deg,
    rgba(120, 104, 82, 0) 292deg,
    rgba(110, 96, 76, 0.9) 326deg,
    rgba(255, 250, 242, 1) 346deg,
    rgba(110, 96, 76, 0.75) 360deg
  );
  animation: card-light 11s linear infinite;
}

.card-glow::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 11px;
  background: var(--card);
}

.card:nth-child(3n + 2) .card-glow::before {
  animation-duration: 13.5s;
  animation-delay: -4.5s;
}

.card:nth-child(3n) .card-glow::before {
  animation-duration: 9.5s;
  animation-delay: -7s;
}

.card:hover .card-glow::before,
.card:focus-within .card-glow::before {
  animation-duration: 4.8s;
}

.card:nth-child(2) { animation-delay: 50ms; }
.card:nth-child(3) { animation-delay: 100ms; }
.card:nth-child(4) { animation-delay: 150ms; }
.card:nth-child(5) { animation-delay: 200ms; }
.card:nth-child(6) { animation-delay: 250ms; }
.card:nth-child(7) { animation-delay: 300ms; }
.card:nth-child(8) { animation-delay: 350ms; }
.card:nth-child(9) { animation-delay: 400ms; }
.card:nth-child(10) { animation-delay: 450ms; }
.card:nth-child(11) { animation-delay: 500ms; }
.card:nth-child(12) { animation-delay: 550ms; }

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.logo-tile {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(41, 40, 32, 0.08);
  background: transparent;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.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;
}

.category {
  margin: 3px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
  color: var(--muted);
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

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

.card-title {
  min-width: 0;
  font-size: 17px;
  line-height: 1.2;
}

.ticker {
  margin: 0;
  flex: none;
  padding: 3px 8px;
  border: 1px solid #E3D9C8;
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6E7D62;
  flex: none;
  animation: status-live 3.2s ease-in-out infinite;
}

.alloc {
  display: flex;
  align-items: flex-start;
  margin: 16px 0 0;
  color: var(--ink);
  line-height: 0.88;
  white-space: nowrap;
}

.alloc-num {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.048em;
  font-variant-numeric: tabular-nums;
}

.alloc-pct {
  margin-top: 5px;
  margin-left: 1px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
}

.label-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.alloc-label {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

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

.info svg {
  display: block;
}

.tip {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  margin: 0;
  padding: 10px 12px;
  background: var(--elev);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(58, 48, 32, 0.08);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  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;
}

.desc {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card-foot {
  margin-top: auto;
  padding-top: 2px;
}

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

.spec div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 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;
}

.claim-btn,
.eligibility-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: #F6F2EA;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 160ms ease, transform 160ms ease;
}

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

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

.empty {
  margin: 0;
  padding: 20px;
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
}

.block {
  margin-top: 52px;
}

.panel {
  padding: 20px 22px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

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

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

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

.compare li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 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;
}

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

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

.step {
  min-width: 0;
  padding-right: 22px;
}

.step + .step {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.step-index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.step-icon {
  display: block;
  margin: 12px 0;
  color: var(--deep);
}

.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.5;
  color: var(--ink-soft);
}

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

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

.formula {
  margin: 10px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

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

.about {
  padding-bottom: 4px;
}

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

.directory li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.directory .logo-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.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);
}

.site-footer {
  margin-top: 42px;
  padding: 18px 0 32px;
  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: 13.5px;
  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;
}

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

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

/* Campaign popups use the native HTML popover attribute: no JavaScript needed.
   Claim Rewards opens one; the close button, Escape, or a click outside closes it. */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 40px));
  height: fit-content;
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 20px 20px 16px;
  color: var(--ink);
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(41, 40, 32, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

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

.modal::backdrop {
  background: rgba(41, 40, 32, 0);
  transition:
    background 160ms ease,
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

.modal:popover-open::backdrop {
  background: rgba(41, 40, 32, 0.36);
}

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

  .modal:popover-open::backdrop {
    background: rgba(41, 40, 32, 0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-soft);
}

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

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

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

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

.modal h2 {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

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

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

.modal-copy,
.modal-fine {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  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;
}

body:has(.modal:popover-open) {
  overflow: hidden;
}

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

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

@media (max-width: 860px) {
  .dash-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .facts {
    max-width: none;
  }
}

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

  .dashboard {
    padding-top: 18px;
  }

  .campaign-grid {
    margin-top: 16px;
  }

  .site-header {
    height: auto;
  }

  .header-bar {
    min-height: 52px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .nav {
    gap: 16px;
  }

  h1 {
    font-size: 32px;
  }

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

  .step {
    padding-right: 0;
  }

  .step + .step {
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .compare li {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 12px 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;
  }

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

  .block {
    margin-top: 36px;
  }

  .panel {
    padding: 16px 16px 14px;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 12px;
  }

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

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

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

@keyframes card-light {
  to {
    transform: rotate(360deg);
  }
}

@keyframes status-live {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(110, 125, 98, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(110, 125, 98, 0);
  }
}

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

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

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

  .card {
    border-color: var(--line);
  }

  .card-glow {
    display: none;
  }
}
