/* RWF — Real World Farm™ mainnet mint · clean pixel, robinhood green */

/* self-hosted fonts — no third-party origin, no render-blocking fetch */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/press-start-2p.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/vt323.woff2') format('woff2');
}

:root {
  --hood: #00c805;
  --hood-d: #00a205;
  --hood-glow: rgba(0, 200, 5, .16);
  --ink: #17301a;
  --ink-soft: #3c5a40;
  --leaf: #2e6b33;
  --olive: #7fa05b;
  --bg: #ffffff;
  --tint: #f2faee;
  --tint-2: #e9f6e3;
  --line: #dcecd4;
  --gold: #e8c34b;
  --gold-d: #c79a2e;
  --soil: #96714a;
  --wood: #d9c19a;
  --wood-d: #b39b74;
  --red: #c03a3a;
  --px: 3px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'VT323', monospace;
  font-size: 21px;
  line-height: 1.45;
  overflow-x: hidden;
}
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--leaf); }
b { font-weight: 700; }
.green { color: var(--hood); }
.gold { color: var(--gold-d); }
sup { font-size: .45em; }
.mono { font-family: 'VT323', monospace; letter-spacing: .5px; }

::selection { background: var(--hood); color: #fff; }

.cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
footer.cv { contain-intrinsic-size: auto 320px; }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 42px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 2px solid var(--line);
}
.brand canvas { width: 105px; height: 33px; display: block; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.chip {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; letter-spacing: .5px;
  color: var(--leaf);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--tint);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.chip--live i {
  width: 8px; height: 8px; background: var(--hood); display: inline-block;
  animation: blink 1.2s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ---------------- buttons ---------------- */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #fff; background: var(--hood);
  border: 0; cursor: pointer;
  text-decoration: none;
  display: inline-block;
  padding: 14px 20px;
  box-shadow:
    0 -3px 0 0 var(--hood), 0 3px 0 0 var(--hood),
    -3px 0 0 0 var(--hood), 3px 0 0 0 var(--hood),
    0 6px 0 0 var(--hood-d), -3px 3px 0 0 var(--hood-d), 3px 3px 0 0 var(--hood-d);
  transition: transform .06s steps(2), filter .12s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 -3px 0 0 var(--hood), 0 3px 0 0 var(--hood), -3px 0 0 0 var(--hood), 3px 0 0 0 var(--hood); }
.btn:disabled { cursor: not-allowed; filter: saturate(.2) brightness(1.05); transform: none; }
.btn--sm { font-size: 9px; padding: 10px 12px; }
.btn--big { font-size: 13px; padding: 18px 24px; }
.btn--ghost {
  background: #fff; color: var(--leaf);
  box-shadow:
    0 -3px 0 0 #fff, 0 3px 0 0 #fff, -3px 0 0 0 #fff, 3px 0 0 0 #fff,
    0 0 0 3px #fff, 0 -6px 0 0 var(--line), 0 6px 0 0 var(--line), -6px 0 0 0 var(--line), 6px 0 0 0 var(--line);
}
.btn--ghost:hover { color: var(--hood); }
.btn--connect.on { background: var(--leaf); box-shadow: 0 -3px 0 0 var(--leaf), 0 3px 0 0 var(--leaf), -3px 0 0 0 var(--leaf), 3px 0 0 0 var(--leaf), 0 6px 0 0 #245427, -3px 3px 0 0 #245427, 3px 3px 0 0 #245427; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdf9 55%, #eef7e8 100%);
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  padding: clamp(44px, 8vh, 84px) 20px 12px;
  position: relative; z-index: 2;
}
.logo, .wordmark, .tag, .ctas, .domain, .scroll-hint { opacity: 0; }
.logo {
  width: min(420px, 78vw); height: auto;
  display: block; margin: 0 auto;
}
html.ready .logo { animation: settle .7s steps(6) both; }
@keyframes settle {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.wordmark {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(13px, 2.6vw, 20px);
  color: var(--leaf);
  margin-top: 26px;
}
html.ready .wordmark { animation: settle .7s steps(6) .12s both; }
.tag {
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--ink-soft);
  max-width: 680px; margin: 22px auto 0;
}
html.ready .tag { animation: settle .7s steps(6) .22s both; }
.tag b { color: var(--ink); }
.tag .green { color: var(--hood); }
.ctas {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
html.ready .ctas { animation: settle .7s steps(6) .32s both; }
.domain {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: var(--olive);
  margin-top: 30px; letter-spacing: 1px;
}
html.ready .domain { animation: settle .7s steps(6) .42s both; }
.scroll-hint {
  font-size: 18px; color: var(--olive);
  margin-top: 10px;
}
html.ready .scroll-hint { animation: settle .7s steps(6) .5s both; }
.scroll-hint .arrow { display: inline-block; animation: bob 1.4s steps(2) infinite; color: var(--hood); }
@keyframes bob { 50% { transform: translateY(4px); } }
.farm {
  display: block;
  width: 100%;
  position: relative; z-index: 1;
  margin-top: -6px;
  cursor: crosshair;
}

/* ---------------- ticker ---------------- */
.ticker {
  background: var(--hood);
  overflow: hidden;
  contain: content;
  border-top: 3px solid var(--hood-d);
  border-bottom: 3px solid var(--hood-d);
}
.ticker-track {
  display: inline-flex; white-space: nowrap;
  animation: tick 30s linear infinite;
  padding: 9px 0;
  will-change: transform;
}
.ticker-track span {
  font-family: 'VT323', monospace;
  font-size: 20px; color: #fff;
  padding: 0 34px;
  letter-spacing: 1px;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------- strip ---------------- */
.strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 6vw, 90px);
  padding: 34px 20px;
  background: #fff;
  border-bottom: 2px solid var(--line);
}
.stat { text-align: center; }
.stat b {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(15px, 2.4vw, 22px);
  color: var(--hood); display: block;
}
.stat-live { display: flex !important; align-items: center; justify-content: center; gap: 10px; }
.stat-live i {
  width: 9px; height: 9px; background: var(--hood);
  animation: blink 1.2s steps(2, start) infinite;
}
.stat > span {
  font-size: 18px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ---------------- sections ---------------- */
.section { padding: clamp(64px, 10vh, 110px) 20px; background: var(--bg); }
.section--first { padding-top: clamp(34px, 5vh, 54px); }
.section--tint { background: var(--tint); }
.container { max-width: 1120px; margin: 0 auto; }
.kicker {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: var(--hood);
  letter-spacing: 2px; margin-bottom: 16px;
}
h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(19px, 3.4vw, 30px);
  line-height: 1.5; color: var(--ink);
  margin-bottom: 18px;
}
.lead { font-size: clamp(21px, 2.4vw, 24px); color: var(--ink-soft); max-width: 780px; }

.grid3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 42px;
}
.card {
  position: relative;
  background: #fff;
  padding: 26px 22px 24px;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line);
  transition: transform .12s steps(3), box-shadow .12s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 -3px 0 0 var(--hood), 0 3px 0 0 var(--hood), -3px 0 0 0 var(--hood), 3px 0 0 0 var(--hood), 0 10px 0 0 var(--hood-glow);
}
.card-num {
  position: absolute; top: 18px; right: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: var(--line);
}
.card:hover .card-num { color: var(--hood); }
.card-ico { width: 56px; height: 56px; display: block; margin-bottom: 14px; }
.card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px; color: var(--leaf); margin-bottom: 10px;
}
.card p { font-size: 19px; color: var(--ink-soft); }

/* ---------------- zigzag dividers ---------------- */
.zig { height: 14px; background-repeat: repeat-x; background-size: 28px 14px; }
.zig--down {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0h14v7h7v7H14 0z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.zig--up {
  background-color: var(--tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 14h14V7h7V0h7v14z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* ---------------- mint tiers ---------------- */
.preview-note {
  display: none;
  margin: 26px auto 0; max-width: 720px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; line-height: 1.9; text-align: center;
  color: #8a6d1f; background: #fdf6dd; padding: 14px 16px;
  box-shadow: 0 -3px 0 0 #efd98a, 0 3px 0 0 #efd98a, -3px 0 0 0 #efd98a, 3px 0 0 0 #efd98a;
}
body.demo .preview-note { display: block; }

.tiers {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; margin-top: 48px;
}
.tier {
  position: relative;
  background: #fff;
  padding: 0 0 20px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 -3px 0 0 var(--line), 0 3px 0 0 var(--line), -3px 0 0 0 var(--line), 3px 0 0 0 var(--line);
  transition: transform .12s steps(3), box-shadow .12s;
  --acc: var(--hood); --acc-d: var(--hood-d);
}
#tier1 { --acc: #d8a31f; --acc-d: #b3831a; }
#tier2 { --acc: #3e9adf; --acc-d: #2e7ab2; }
#tier3 { --acc: #d0552f; --acc-d: #a03a22; }
.tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 -3px 0 0 var(--acc), 0 3px 0 0 var(--acc), -3px 0 0 0 var(--acc), 3px 0 0 0 var(--acc), 0 12px 0 0 var(--hood-glow);
}
.tier--best { box-shadow: 0 -3px 0 0 var(--gold), 0 3px 0 0 var(--gold), -3px 0 0 0 var(--gold), 3px 0 0 0 var(--gold), 0 8px 0 0 rgba(232, 195, 75, .25); }
.tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; letter-spacing: .5px; white-space: nowrap;
  color: #fff; background: var(--olive);
  padding: 6px 9px 5px;
  box-shadow: 0 3px 0 0 rgba(23, 48, 26, .18);
}
.tier-badge--hot { background: var(--gold-d); animation: badgebob 1.6s steps(2) infinite; }
.tier-badge--base { background: var(--olive); }
@keyframes badgebob { 50% { transform: translateX(-50%) translateY(-3px); } }

/* mini pixel scene the plot lives in */
.tier-scene {
  position: relative; width: 100%; height: 118px;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #e8f6ff 0%, #f4fbef 52%, #f4fbef 74%, #cfeabc 74%, #c3e4ad 100%);
  border-bottom: 3px solid var(--line);
  overflow: hidden;
}
.tier-scene::before { /* pixel sun */
  content: ''; position: absolute; top: 12px; left: 14px;
  width: 10px; height: 10px; background: #f2d879;
  box-shadow: 4px 0 0 0 #f2d879, -4px 0 0 0 #f2d879, 0 4px 0 0 #f2d879, 0 -4px 0 0 #f2d879;
  animation: blink 2.4s steps(2, start) infinite;
}
.tier-scene::after { /* drifting pixel cloud */
  content: ''; position: absolute; top: 20px; left: -28px;
  width: 26px; height: 5px; background: #ffffff;
  box-shadow: 4px -4px 0 0 #ffffff, 12px -4px 0 0 #f0f7ee;
  animation: clouddrift 14s linear infinite;
}
@keyframes clouddrift { to { transform: translateX(480px); } }
.tier-scene canvas { width: 128px; height: 96px; margin-bottom: 4px; position: relative; z-index: 1; }
.tier:hover .tier-scene canvas { animation: sprout .3s steps(3); }
@keyframes sprout { 0% { transform: translateY(4px) scaleY(.94); } 100% { transform: none; } }

.tier-body {
  width: 100%; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center;
}
.tier h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; color: var(--ink); margin: 16px 0 0;
  text-align: center; letter-spacing: .5px;
}
/* wooden price sign */
.tier-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; color: #6b5335;
  background: var(--wood);
  padding: 8px 12px 7px; margin-top: 12px;
  box-shadow: 0 -2px 0 0 var(--wood-d), 0 2px 0 0 var(--wood-d), -2px 0 0 0 var(--wood-d), 2px 0 0 0 var(--wood-d), 0 4px 0 0 rgba(179, 155, 116, .45);
}
/* live yield stream */
.tier-yield {
  margin-top: 14px;
  display: flex; align-items: baseline; gap: 7px;
  font-size: 20px; color: var(--ink-soft);
}
.tier-yield .dot {
  width: 8px; height: 8px; align-self: center;
  background: var(--hood);
  animation: blink 1.2s steps(2, start) infinite;
}
.tier-yield b {
  font-family: 'Press Start 2P', monospace;
  font-size: 19px; color: var(--hood);
}
.tier-yield .unit { font-size: 17px; color: var(--olive); text-transform: uppercase; letter-spacing: .5px; }
/* per-ETH rate meter — the value ladder at a glance */
.tier-meter { width: 100%; margin-top: 12px; }
.tier-meter .bar {
  height: 12px; background: var(--tint);
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
  overflow: hidden;
}
.tier-meter .bar i {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--acc) 0 8px, var(--acc-d) 8px 10px);
  transform-origin: left;
  animation: meterfill .8s steps(8) both;
}
@keyframes meterfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tier-meter .lbl {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; color: var(--olive); letter-spacing: .5px;
  margin-top: 7px; text-align: center;
}
.tier-qty {
  display: flex; align-items: center; gap: 0;
  margin-top: 14px;
}
.tier-qty button {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px; width: 36px; height: 36px;
  color: var(--leaf); background: var(--tint);
  border: 0; cursor: pointer;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.tier-qty button:hover { color: var(--hood); background: var(--tint-2); }
.tier-qty button:disabled { color: var(--line); cursor: not-allowed; }
.tier-qty .q {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px; min-width: 52px; text-align: center;
  color: var(--ink);
}
.tier .btn--mint { margin-top: 14px; font-size: 10px; padding: 13px 12px; width: 100%; text-align: center; }
.tier-own {
  margin-top: 10px; font-size: 17px; color: var(--olive);
  min-height: 22px; text-align: center;
}
.tier-own b { color: var(--leaf); }
.tier-own .cap { color: var(--red); }
.tier-minted {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; color: var(--olive); letter-spacing: 1px; margin-top: 6px;
}

/* ---------------- my farm ---------------- */
.farm-panel {
  margin-top: 44px;
  background: #fff; padding: 26px 24px;
  box-shadow: 0 -3px 0 0 var(--hood), 0 3px 0 0 var(--hood), -3px 0 0 0 var(--hood), 3px 0 0 0 var(--hood), 0 10px 0 0 var(--hood-glow);
}
.farm-empty { text-align: center; font-size: 20px; color: var(--ink-soft); padding: 12px 0; }
.farm-body { display: none; }
.farm-panel.on .farm-empty { display: none; }
.farm-panel.on .farm-body { display: block; }
.farm-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.farm-head .fh-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px; color: var(--leaf);
}
.farm-head .fh-addr { font-size: 18px; color: var(--olive); }
.farm-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.fslot {
  background: var(--tint); padding: 12px 10px; text-align: center;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.fslot canvas { width: 64px; height: 48px; }
.fslot .fs-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px; color: var(--leaf); margin-top: 6px; letter-spacing: .5px;
}
.fslot .fs-count { font-size: 20px; color: var(--ink); margin-top: 4px; }
.fslot .fs-count b { color: var(--hood); font-size: 22px; }
.farm-totals {
  display: flex; flex-wrap: wrap; gap: clamp(16px, 4vw, 56px);
  justify-content: center;
  margin-top: 20px; padding: 18px 10px 6px;
  border-top: 2px solid var(--line);
}
.ftot { text-align: center; }
.ftot b {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(13px, 2vw, 18px); color: var(--hood); display: block;
}
.ftot span { font-size: 17px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.farm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.farm-msg { text-align: center; font-size: 19px; color: var(--ink-soft); margin-top: 12px; min-height: 24px; }
.farm-msg.ok { color: var(--hood-d); }
.farm-msg.err { color: var(--red); }

/* ---------------- faq ---------------- */
.faqs { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
details {
  background: #fff;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
summary {
  cursor: pointer; list-style: none;
  font-size: 22px; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
summary::before { content: '▸'; color: var(--hood); font-size: 18px; transition: transform .1s steps(2); }
details[open] summary::before { transform: rotate(90deg); }
details p { padding: 0 20px 18px 44px; color: var(--ink-soft); font-size: 20px; }
details p .mono { word-break: break-all; }

/* ---------------- wallet sheet ---------------- */
.wmodal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
  background: rgba(23, 48, 26, .45);
}
.wmodal.open { display: flex; }
.wsheet {
  width: min(420px, 100%);
  background: #fff;
  padding: 22px 20px 26px;
  box-shadow: 0 -3px 0 0 var(--hood), 0 3px 0 0 var(--hood), -3px 0 0 0 var(--hood), 3px 0 0 0 var(--hood), 0 10px 0 0 var(--hood-glow);
  animation: rise .18s steps(4) both;
  max-height: min(560px, 82vh); overflow-y: auto;
  overscroll-behavior: contain;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.wtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: var(--leaf); margin-bottom: 14px;
}
.wnote { font-size: 18px; color: var(--ink-soft); margin-bottom: 12px; }
.wrow {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  font-family: 'VT323', monospace; font-size: 21px; color: var(--ink);
  background: var(--tint); border: 0; cursor: pointer;
  text-decoration: none;
  padding: 13px 14px; margin-top: 10px;
  box-shadow: 0 -2px 0 0 var(--line), 0 2px 0 0 var(--line), -2px 0 0 0 var(--line), 2px 0 0 0 var(--line);
}
.wrow:hover { box-shadow: 0 -2px 0 0 var(--hood), 0 2px 0 0 var(--hood), -2px 0 0 0 var(--hood), 2px 0 0 0 var(--hood); }
.wicon {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Press Start 2P', monospace; font-size: 12px; color: var(--leaf);
  background: #fff;
}
.wicon img { width: 24px; height: 24px; }
.warr { margin-left: auto; color: var(--olive); }

/* ---------------- toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(90px);
  z-index: 300;
  font-family: 'VT323', monospace; font-size: 20px;
  color: #fff; background: var(--ink);
  padding: 13px 20px;
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
  transition: transform .2s steps(4);
  max-width: min(92vw, 560px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------------- footer ---------------- */
.footer {
  text-align: center;
  background: linear-gradient(180deg, #eef7e8, #e2f1d9);
  padding: 60px 20px 46px;
  border-top: 2px solid var(--line);
}
.footer canvas { width: 140px; height: 44px; }
.foot-word {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px; color: var(--leaf); margin-top: 16px;
}
.foot-links { display: flex; gap: 26px; justify-content: center; margin: 22px 0 14px; flex-wrap: wrap; }
.foot-links a {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; color: var(--leaf); text-decoration: none;
}
.foot-links a:hover { color: var(--hood); }
.footer p { font-size: 18px; color: var(--ink-soft); }

/* ---------------- reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s steps(6), transform .5s steps(6); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .farm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .grid3 { grid-template-columns: 1fr; }
  .chip { display: none; }
}
@media (max-width: 540px) {
  body { font-size: 19px; }
  .btn--big { font-size: 11px; padding: 15px 16px; }
  .tiers { grid-template-columns: 1fr; }
  .farm-grid { grid-template-columns: repeat(2, 1fr); }
  .nav .btn--sm { padding: 12px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .logo, .wordmark, .tag, .ctas, .domain, .scroll-hint { opacity: 1; }
  html.ready .logo, html.ready .wordmark, html.ready .tag, html.ready .ctas,
  html.ready .domain, html.ready .scroll-hint { animation: none; }
  .ticker-track { animation-duration: 90s; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wsheet { animation: none; }
}
