/* ---------------------------------------------------------------------
   Tokens — lifted directly from ponsfamily.com's own computed styles
   (light theme): #F4F4F4 page, white/#ECECEC cards, #111 ink, the lime
   #D4FC50 accent on pill buttons, Inter, fully-rounded pills, 20px card
   radius. IBM Plex Mono is kept only for on-chain data (addresses, tx
   hashes, amounts) — pons doesn't monospace those, but it's a widely
   understood convention for ledger data and reads fine alongside Inter.
--------------------------------------------------------------------- */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #ececec;
  --ink: #111111;
  --ink-muted: rgba(17, 17, 17, 0.55);
  --ink-faint: rgba(17, 17, 17, 0.38);
  --border: rgba(17, 17, 17, 0.1);
  --border-soft: rgba(17, 17, 17, 0.06);
  --accent: #d4fc50;
  --accent-wash: rgba(212, 252, 80, 0.28);
  --accent-ink: #111111;
  /* Same hue as --accent, darkened for legibility as text — the raw lime
     is ~1:1 contrast against --bg (invisible); this holds ~5:1. */
  --accent-text: #4c7000;
  --pill-dark: rgba(17, 17, 17, 0.72);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --max: 1220px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 40px;
}

@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
}

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------------
   Topbar
--------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 244, 244, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}

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

.wordmark__logo {
  height: 44px;
  width: auto;
  display: block;
}

.topnav {
  display: flex;
  gap: 20px;
  margin-left: 4px;
  font-size: 14px;
}

.topnav a {
  text-decoration: none;
  color: var(--ink-muted);
}
.topnav a:hover { color: var(--ink); }

.topnav__right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.topnav__cta {
  padding: 9px 18px;
  font-size: 13px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
}
.icon-link:hover { color: var(--ink); }

@media (max-width: 620px) {
  .topnav { display: none; }
}

/* ---------------------------------------------------------------------
   Buttons — fully-rounded pills, same as pons' Connect/Create buttons
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: #c3f22e; }

.btn--ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--surface);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--text {
  padding: 12px 6px;
  color: var(--ink-muted);
  font-weight: 400;
}
.btn--text:hover { color: var(--ink); }

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  padding-top: clamp(56px, 10vh, 100px);
  padding-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__logo {
  width: min(320px, 32vw);
  height: auto;
  flex-shrink: 0;
  display: block;
  /* Line the image up with the HOLD COUPONS. line rather than the top of
     the kicker text above it. */
  margin-top: 42px;
}

@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  /* Unwrap hero__content so its children become direct flex items of
     .hero, alongside hero__logo — lets the image slot in between the
     lead paragraph and the action buttons instead of only ever landing
     above or below the whole text block. */
  .hero__content {
    display: contents;
  }
  .hero__kicker {
    order: 1;
    margin-bottom: 0;
  }
  .hero__title {
    order: 2;
    margin-bottom: 0;
  }
  .hero__lead {
    order: 3;
    margin-bottom: 0;
  }
  .hero__logo {
    order: 4;
    width: min(220px, 60vw);
    margin-top: 0;
  }
  .hero__actions {
    order: 5;
  }
}

.hero__kicker {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--accent);
  text-shadow: 0 6px 20px rgba(17, 17, 17, 0.3);
}

.hero__lead {
  margin: 0 0 34px;
  max-width: 62ch;
  font-size: 19px;
  color: var(--ink-muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------------
   Contract "stub" — a plain rounded card, pons-style
--------------------------------------------------------------------- */
.stub { padding-bottom: 48px; }

.stub__paper {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.stub__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.stub__row--address {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: nowrap;
}

.stub__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.stub__symbol {
  font-weight: 400;
  color: var(--ink-muted);
}

.stub__chain {
  font-size: 13px;
  color: var(--ink-faint);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.live-dot.is-live {
  background: #22a559;
  box-shadow: 0 0 0 3px rgba(34, 165, 89, 0.16);
}

.stub__address {
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-muted);
}

.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.copy-btn:hover:not(:disabled) { border-color: var(--ink); }
.copy-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Stats — big tabular numbers, quiet dividers
--------------------------------------------------------------------- */
.stats {
  display: flex;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

@media (max-width: 620px) {
  .stats { flex-direction: column; }
}

.stat {
  flex: 1;
  padding: 26px 24px;
  border-left: 1px solid var(--border-soft);
}
.stat:first-child { border-left: none; }

@media (max-width: 620px) {
  .stat { border-left: none; border-top: 1px solid var(--border-soft); padding: 20px 0; }
  .stat:first-child { border-top: none; }
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-muted);
}

.snapshot-line {
  max-width: var(--max);
  margin: 14px auto 0;
  padding-inline: 20px;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---------------------------------------------------------------------
   Sections
--------------------------------------------------------------------- */
.section {
  padding-block: 68px;
  border-top: 1px solid var(--border-soft);
}

.section__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.section__lead {
  margin: 0 0 32px;
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 16.5px;
}

/* ---------------------------------------------------------------------
   Top 3 — rounded white cards like pons' own token cards
--------------------------------------------------------------------- */
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.top3-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease;
}
.top3-card:hover { border-color: var(--ink); }

.top3-card__rank {
  font-size: 12px;
  color: var(--ink-faint);
}

.top3-card__symbol {
  font-size: 21px;
  font-weight: 600;
  margin-top: 8px;
}

.top3-card__pair {
  color: var(--ink-faint);
  font-weight: 400;
}

.top3-card__logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-top: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
}

.top3-card__mcap {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  margin-top: 16px;
  color: var(--ink);
}

.top3-card__mcap-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-faint);
  display: block;
  margin-top: 2px;
}

.empty-note {
  grid-column: 1 / -1;
  color: var(--ink-faint);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------------
   Flow (how it runs)
--------------------------------------------------------------------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr; gap: 28px; }
}

.flow__step {
  position: relative;
  padding: 0 18px 0 0;
}

@media (max-width: 800px) {
  .flow__step { padding-right: 0; }
}

.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 14px;
}

.flow__step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.flow__step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* ---------------------------------------------------------------------
   Qualify rules
--------------------------------------------------------------------- */
.rules {
  display: flex;
  flex-direction: column;
}

.rules__item {
  padding-block: 22px;
  border-top: 1px solid var(--border-soft);
}
.rules__item:first-child { border-top: none; padding-top: 0; }

.rules__item h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 600;
}

.rules__item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 60ch;
}

#rule-min-holding, #rule-interval {
  font-family: var(--font-mono);
  background: var(--accent-wash);
  padding: 1px 6px;
  border-radius: 5px;
}

/* ---------------------------------------------------------------------
   Ledger (recent redemptions)
--------------------------------------------------------------------- */
.ledger {
  display: flex;
  flex-direction: column;
}

.ledger-row {
  padding-block: 18px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
}
.ledger-row:first-child { border-top: none; padding-top: 0; }

.ledger-row__date {
  font-size: 12px;
  color: var(--ink-faint);
  grid-column: 1 / -1;
}

.ledger-row__claim {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.ledger-row__purchases {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 6px;
}

.ledger-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}
.ledger-item strong { color: var(--ink); font-weight: 600; }
.ledger-item--quiet { color: var(--ink-faint); font-style: italic; font-family: var(--font-sans); }

.ledger-item a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
}
.ledger-item a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.footer {
  padding-block: 40px 60px;
  border-top: 1px solid var(--border-soft);
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer__address {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.footer__links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.footer__links a { text-decoration: none; color: var(--ink-muted); }
.footer__links a:hover { color: var(--ink); }

.footer__disclaimer {
  max-width: 62ch;
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.footer__generated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  margin: 0;
  opacity: 0.85;
}
