/* ══ Yield marketing site ═════════════════════════════════════════════════
   Visual language: a wooden game plate, not a glass card. Every surface is
   built from three ingredients — a notched clip-path corner, a hard-edged
   shadow with zero blur, and a two-tone border that fakes a bevel. Those
   three together are what separate "16-bit game UI" from "dark mode website";
   drop any one of them and it slides straight back to stock CSS.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Shell ─────────────────────────────────────────────────────────────── */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.wrap-narrow { max-width: 780px; }

.band { padding: 104px 0; position: relative; }

/* Alternating grounds keep an eight-section page from reading as one slab. */
.loop-band,
.demo-band,
.plat-band,
.faq-band   { background: var(--night-850); }
.world-band,
.install-band { background: var(--night-800); }

/* A pixel seam between bands: dashes drawn with a repeating gradient rather
   than a border, so the rhythm stays blocky instead of hairline-smooth. */
.band + .band::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--plate-line) 0 8px,
    transparent 8px 16px
  );
  opacity: 0.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold-500);
  color: var(--night-900);
  padding: 12px 20px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Section headings ──────────────────────────────────────────────────── */

.sec-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.sec-head h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }

.sec-sub {
  margin-top: 16px;
  color: var(--ink-300);
  font-size: 1.06rem;
}

/* ── The plate: the one surface every card is built from ───────────────── */

.plate {
  position: relative;
  background: var(--plate);
  clip-path: var(--cut);
  border: 2px solid var(--plate-line);
  box-shadow: var(--shadow-hard);
  padding: 26px;
}

/* clip-path crops the border on the notched corners, so the bevel is drawn
   as an inset ring on a pseudo-element that follows the same clip. */
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: var(--cut);
  border-top: 2px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  --btn-face: var(--gold-500);
  --btn-edge: var(--gold-600);
  --btn-ink:  #2a1f00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--btn-ink);
  background: var(--btn-face);
  border: none;
  clip-path: var(--cut);
  --notch: 7px;
  cursor: pointer;
  /* The offset shadow IS the button's depth. Pressing shifts the element
     into its own shadow, which is why the travel and the shrink match. */
  box-shadow: 4px 4px 0 var(--btn-edge);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
}
.btn:hover { filter: brightness(1.08); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--btn-edge); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--btn-edge); }

.btn-gold { --btn-face: var(--gold-500); --btn-edge: var(--gold-600); --btn-ink: #2a1f00; }
.btn-wood {
  --btn-face: var(--night-600);
  --btn-edge: var(--wood-700);
  --btn-ink: var(--ink-100);
  box-shadow: 4px 4px 0 var(--btn-edge), inset 0 0 0 2px var(--plate-line-2);
}
.btn-wood:hover { box-shadow: 5px 5px 0 var(--btn-edge), inset 0 0 0 2px var(--grass-400); }
.btn-wood:active { box-shadow: 0 0 0 var(--btn-edge), inset 0 0 0 2px var(--plate-line-2); }

.btn-sm  { padding: 10px 18px; font-size: 0.88rem; }
.btn-lg  { padding: 17px 36px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 7, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.site-head.is-stuck {
  border-bottom-color: var(--plate-line);
  background: rgba(11, 15, 7, 0.95);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { clip-path: var(--cut); --notch: 6px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-500);
  letter-spacing: 0.04em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
}

.head-nav { display: flex; gap: 26px; }
.head-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-300);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.head-nav a:hover { color: var(--gold-400); border-bottom-color: var(--gold-500); }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 96px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* Nearest-neighbour: a blurred tilemap is the fastest way to make pixel art
     look cheap. Sharp-but-uneven upscaling is the trade every pixel game makes. */
  image-rendering: pixelated;
  transform: scale(1.04);
}

/* Two scrims, not one. A flat overlay dims the art evenly and kills it; a
   vertical gradient plus a left-weighted horizontal one darkens only the
   column the copy sits in and lets the village stay bright on the right.
   Keep the right-hand stops low — this image is the single most persuasive
   thing on the page and the first draft buried it under 90% black. */
.hero-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,15,7,0.72) 0%, rgba(11,15,7,0.20) 40%, rgba(11,15,7,0.70) 100%),
    linear-gradient(100deg,
      rgba(11,15,7,0.93) 0%,
      rgba(11,15,7,0.86) 34%,
      rgba(11,15,7,0.44) 62%,
      rgba(11,15,7,0.10) 100%);
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 130px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--night-900));
}

.hero-inner { max-width: 720px; }

.hero h1 {
  font-size: clamp(3.1rem, 8.5vw, 5.6rem);
  margin: 14px 0 22px;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.7);
}
.hero h1 .hl { color: var(--gold-500); }

.lede {
  font-size: 1.16rem;
  color: var(--ink-200);
  max-width: 620px;
  margin-bottom: 34px;
}
.lede em { color: var(--gold-400); font-style: normal; font-weight: 600; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-300);
}
.hero-chips li { display: flex; align-items: center; gap: 8px; }

.dot { width: 9px; height: 9px; flex: none; }
.dot-live { background: var(--grass-300); box-shadow: 0 0 10px var(--grass-300); }
.dot-soon { background: var(--soil-300); }
.dot-free { background: var(--gold-500); box-shadow: 0 0 10px var(--gold-600); }

/* ── The loop ──────────────────────────────────────────────────────────── */

.loop-steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.loop-step {
  position: relative;
  flex: 1 1 0;
  max-width: 330px;
  background: var(--plate);
  clip-path: var(--cut);
  border: 2px solid var(--plate-line);
  box-shadow: var(--shadow-hard);
  padding: 34px 26px 28px;
  text-align: center;
}

.loop-num {
  position: absolute;
  top: -2px; left: -2px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--night-900);
  background: var(--gold-500);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  padding-right: 16px;
  padding-bottom: 16px;
}

.loop-icon { font-size: 2.5rem; margin-bottom: 12px; line-height: 1; }
.loop-step h3 { font-size: 1.85rem; color: var(--gold-400); margin-bottom: 10px; }
.loop-step p { color: var(--ink-300); font-size: 0.97rem; }

.loop-arrow {
  align-self: center;
  font-size: 1.8rem;
  color: var(--grass-400);
  flex: none;
}

/* ── Feature showcase ──────────────────────────────────────────────────── */

/* The rail sits above the stage rather than beside it. Sharing the row cost
   the screenshot ~300px of width, which reproduced the exact problem this
   section exists to fix: a 620px game panel scaled into a column until its
   menus were unreadable. Full width, the shot lands at ~590px — larger than
   the panel is in game. */
.showcase { display: grid; gap: 18px; }

.tab-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 10px 13px;
  text-align: center;
  font-family: var(--font-ui);
  color: var(--ink-300);
  background: var(--plate);
  border: 2px solid var(--plate-line);
  clip-path: var(--cut);
  --notch: 8px;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast),
              border-color var(--dur-fast), transform var(--dur-fast);
}
.tab:hover { border-color: var(--grass-400); transform: translateY(-3px); }

.tab.is-active {
  background: var(--night-600);
  border-color: var(--gold-500);
  color: var(--ink-100);
  box-shadow: inset 0 -4px 0 var(--gold-500);
}

.tab-ico { font-size: 1.5rem; line-height: 1; }
.tab-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.tab-txt strong { font-size: 0.92rem; font-weight: 700; }
.tab-txt em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--ink-400);
  line-height: 1.3;
}
.tab.is-active .tab-txt em { color: var(--grass-300); }

.tab-stage {
  background: var(--plate);
  border: 2px solid var(--plate-line);
  clip-path: var(--cut);
  box-shadow: var(--shadow-lift);
  padding: 30px;
}

.fpanel {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.fpanel[hidden] { display: none; }
.fpanel:focus-visible { outline-offset: 6px; }

/* Wide shots (the planner calendar, the card browser) take the whole width —
   squeezing a 1300px table into a half column is exactly the "menus too small
   to read" problem this layout exists to solve. The copy then spans too, with
   its bullets in two columns so the paragraph keeps a readable measure
   instead of running the full 1000px. */
.fshot.wide { grid-column: 1 / -1; }
.fshot.wide ~ .fcopy { grid-column: 1 / -1; }
.fshot.wide ~ .fcopy > p { max-width: 68ch; }
.fshot.wide ~ .fcopy .ticks { grid-template-columns: 1fr 1fr; gap: 11px 30px; }

.zoom {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 2px solid var(--plate-line-2);
  background: var(--night-900);
  clip-path: var(--cut);
  --notch: 8px;
  cursor: zoom-in;
  transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.zoom:hover { border-color: var(--gold-500); transform: translateY(-3px); }
.zoom img { width: 100%; height: auto; }

.zoom-hint {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--night-900);
  background: var(--gold-500);
  clip-path: var(--cut);
  --notch: 5px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: translateY(0); }

.fcopy h3 { font-size: 1.95rem; color: var(--gold-400); margin-bottom: 14px; }
.fcopy > p { color: var(--ink-200); margin-bottom: 18px; }
.fcopy em { color: var(--gold-400); font-style: normal; font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 11px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  color: var(--ink-300);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--grass-500);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 22%, 86% 8%, 40% 72%);
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  background: var(--night-900);
  border: 1px solid var(--plate-line);
  padding: 1px 6px;
  color: var(--gold-400);
}

.fnote { margin-top: 16px; font-size: 0.87rem; color: var(--ink-400); }
.linkish {
  font: inherit;
  color: var(--sky-400);
  background: none;
  border: none;
  border-bottom: 1px dashed currentColor;
  padding: 0;
  cursor: zoom-in;
}
.linkish:hover { color: var(--gold-400); }

/* ── Media slots ───────────────────────────────────────────────────────────
   One component for every piece of art on the page, so a PNG can be swapped
   for a GIF or an MP4 without touching layout. See site/assets/media/README.md
   for the filename each slot expects.

   Slots hold their aspect ratio before the file loads: without that, dropping
   in a GIF of different proportions reflows the whole section and the reveal
   animations fire against a moving target. */
.slot {
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  background: var(--night-900);
  border: 2px solid var(--plate-line-2);
  clip-path: var(--cut);
  --notch: 8px;
  overflow: hidden;
}
.slot > img, .slot > video { width: 100%; height: auto; display: block; }

/* Zoomable slots get the same affordance as .zoom did. */
.slot[data-zoom] { cursor: zoom-in; transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out); }
.slot[data-zoom]:hover { border-color: var(--gold-500); transform: translateY(-3px); }

.slot-tag {
  position: absolute;
  left: 10px; top: 10px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-900);
  background: var(--grass-300);
  clip-path: var(--cut);
  --notch: 4px;
  z-index: 2;
}

/* Two shots side by side — used where one image can't carry the feature on
   its own (a deck list means little without a review session next to it). */
.slot-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* Missing-file state, written by js/main.js. Deliberately loud: this should
   be impossible to miss in review and impossible to mistake for finished art. */
.slot.is-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 240px;
  padding: 28px;
  text-align: center;
  border-style: dashed;
  border-color: var(--soil-400);
  background:
    repeating-linear-gradient(45deg,
      rgba(173, 113, 56, 0.05) 0 10px,
      transparent 10px 20px),
    var(--night-900);
}
.slot.is-empty > img, .slot.is-empty > video { display: none; }
.slot-ph-ico { font-size: 2rem; line-height: 1; }
.slot-ph-name {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: var(--gold-400);
  word-break: break-all;
}
.slot-ph-hint { font-size: 0.78rem; color: var(--ink-400); max-width: 34ch; }

/* ── Grow the place ────────────────────────────────────────────────────── */

.grow-rows { display: grid; gap: 78px; }

.grow-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.grow-row:nth-child(even) > .grow-media { order: 2; }
.grow-row:nth-child(even) > .grow-copy  { order: 1; }

.grow-copy h3 { font-size: 2.05rem; color: var(--gold-400); margin-bottom: 12px; }
.grow-copy > p { color: var(--ink-200); margin-bottom: 16px; }

.grow-kicker {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grass-300);
  margin-bottom: 6px;
}

/* ── Inline demos ──────────────────────────────────────────────────────── */

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.demo-card { display: flex; flex-direction: column; padding: 30px; }
.demo-title { font-size: 1.8rem; color: var(--gold-400); }
.demo-sub { color: var(--ink-400); font-size: 0.9rem; margin-bottom: 22px; }

/* Flashcard */
.fc { perspective: 1200px; cursor: pointer; margin-bottom: 16px; }
.fc-inner {
  position: relative;
  min-height: 210px;
  transform-style: preserve-3d;
  transition: transform 520ms var(--ease-spring);
}
.fc.is-flipped .fc-inner { transform: rotateY(180deg); }

.fc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 26px;
  background: var(--night-700);
  border: 2px solid var(--plate-line-2);
  clip-path: var(--cut);
  --notch: 8px;
}
.fc-back { transform: rotateY(180deg); background: var(--night-600); border-color: var(--grass-700); }

.fc-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
}
.fc-back .fc-label { color: var(--grass-300); }
.fc-text { font-size: 1.12rem; color: var(--ink-100); line-height: 1.45; }
.fc-flip { margin-top: auto; font-size: 0.8rem; color: var(--ink-400); }

/* display:grid/flex on these outbids the UA's [hidden]{display:none}, so both
   the grading row and the payout chips rendered before they were earned. */
.fc-grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.fc-grade[hidden], .payout[hidden] { display: none; }
.fc-grade button {
  padding: 11px 6px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-100);
  background: var(--night-600);
  border: 2px solid var(--plate-line-2);
  clip-path: var(--cut);
  --notch: 6px;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.fc-grade button:hover { border-color: var(--gold-500); color: var(--gold-400); }
.fc-grade [data-g="again"]:hover { border-color: var(--berry-400); color: var(--berry-400); }
.fc-grade [data-g="easy"]:hover  { border-color: var(--grass-300); color: var(--grass-300); }

.fc-out {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-400);
  min-height: 2.6em;
}
.fc-out strong { color: var(--gold-400); }

/* Timer */
.timer { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }

.timer-ring {
  --pct: 0;
  position: relative;
  width: 152px; height: 152px;
  flex: none;
  display: grid;
  place-items: center;
  gap: 2px;
  border-radius: 50%;
  /* conic-gradient is the whole progress indicator — no SVG, no JS redraw of
     geometry, just one custom property the tick handler moves. */
  background:
    conic-gradient(var(--gold-500) calc(var(--pct) * 1%), var(--night-700) 0);
}
.timer-ring::after {
  content: '';
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--plate);
  border: 2px solid var(--plate-line);
}
.timer-time, .timer-state { position: relative; z-index: 1; }
.timer-time {
  font-family: var(--font-display);
  font-size: 2.7rem;
  color: var(--ink-100);
  line-height: 1;
}
.timer-state { font-size: 0.74rem; color: var(--ink-400); text-align: center; }

.crop { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 152px; }
.crop-sprite {
  font-size: 2.2rem;
  line-height: 1;
  text-align: center;
  transition: font-size 400ms var(--ease-spring);
}
.crop.g1 .crop-sprite { font-size: 3rem; }
.crop.g2 .crop-sprite { font-size: 3.9rem; }
.crop.g3 .crop-sprite { font-size: 4.8rem; }
.crop-soil {
  height: 26px;
  margin-top: 10px;
  background:
    repeating-linear-gradient(90deg, var(--soil-500) 0 6px, var(--soil-600) 6px 12px);
  border-top: 4px solid var(--soil-400);
}

.payout { display: flex; gap: 10px; margin-top: 14px; }
.pay {
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  clip-path: var(--cut);
  --notch: 5px;
  animation: pay-in 500ms var(--ease-spring) both;
}
.pay-gold { background: var(--gold-500); color: #2a1f00; }
.pay-exp  { background: var(--sky-400); color: #04202e; animation-delay: 120ms; }

@keyframes pay-in {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

/* ── The world mosaic ──────────────────────────────────────────────────── */

/* Four tiles on a 2x2. A 3-column grid with a 2x2 hero tile leaves the fourth
   panel orphaned on a row of its own, and these four screenshots have wildly
   different aspect ratios, so a uniform cell that crops from the top — where
   every panel's title and first controls are — is the one layout that stays
   tidy whatever gets captured next. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 48px;
}

.mtile {
  position: relative;
  display: block;
  padding: 0;
  text-align: left;
  background: var(--plate);
  border: 2px solid var(--plate-line);
  clip-path: var(--cut);
  box-shadow: var(--shadow-hard);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-base) var(--ease-out);
}
.mtile:hover { border-color: var(--gold-500); transform: translateY(-4px); }

.mtile img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  object-position: top center;
}

.mcap {
  display: block;
  padding: 18px 20px 20px;
  background: linear-gradient(180deg, rgba(11,15,7,0.4), var(--plate) 30%);
}
.mcap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-400);
  margin-bottom: 4px;
}
.mcap { font-size: 0.9rem; color: var(--ink-300); }

.world-extra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wx { display: flex; gap: 13px; align-items: flex-start; }
.wx > span { font-size: 1.7rem; line-height: 1.2; flex: none; }
.wx strong { display: block; color: var(--ink-100); font-size: 0.98rem; margin-bottom: 3px; }
.wx p { color: var(--ink-400); font-size: 0.88rem; }

/* ── Platforms ─────────────────────────────────────────────────────────── */

.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.plat { display: flex; flex-direction: column; padding-top: 34px; }
.plat.live { border-color: var(--gold-600); box-shadow: var(--shadow-hard), var(--shadow-glow); }

.plat-status {
  position: absolute;
  top: 0; right: 0;
  padding: 6px 14px 6px 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}
.status-live { background: var(--grass-400); color: #0d1a04; }
.status-dev  { background: var(--soil-400); color: #241203; }
.status-soon { background: var(--night-600); color: var(--ink-400); box-shadow: inset 0 0 0 2px var(--plate-line-2); }

.plat-ico { font-size: 2.3rem; line-height: 1; margin-bottom: 12px; }
.plat h3 { font-size: 1.65rem; color: var(--ink-100); margin-bottom: 10px; }
.plat p { color: var(--ink-300); font-size: 0.92rem; margin-bottom: 18px; }
.plat .btn { margin-top: auto; }
.plat-note {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px dashed var(--plate-line);
  font-size: 0.82rem;
  color: var(--ink-400);
}

/* ── Pricing ───────────────────────────────────────────────────────────── */

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.price-card { display: flex; flex-direction: column; min-width: 0; padding-top: 34px; }
.price-card.is-featured { border-color: var(--gold-600); box-shadow: var(--shadow-hard), var(--shadow-glow); }

.price-badge {
  position: absolute;
  top: 0; right: 0;
  padding: 6px 14px 6px 18px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
}

.price-card h3 { font-size: 1.65rem; color: var(--ink-100); margin-bottom: 10px; }

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.price-amount strong {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--gold-400);
}
.price-amount span {
  font-size: 0.88rem;
  color: var(--ink-400);
}

.price-note {
  font-size: 0.86rem;
  color: var(--ink-300);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--plate-line);
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--ink-200);
}
.price-list li {
  position: relative;
  padding-left: 18px;
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--grass-300);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; }

.price-foot {
  text-align: center;
  color: var(--ink-400);
  font-size: 0.88rem;
  max-width: 680px;
  margin: 28px auto 0;
}
.price-foot a,
.faq details p a {
  color: var(--gold-400);
  text-decoration: underline;
  text-decoration-color: rgba(240, 192, 64, 0.4);
  text-underline-offset: 3px;
}
.price-foot a:hover,
.faq details p a:hover { color: var(--gold-300); }

/* ── Install ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 34px;
}
.step { padding-top: 34px; }
.step-n {
  position: absolute;
  top: -2px; left: -2px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--night-900);
  background: var(--gold-500);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  padding: 0 18px 18px 0;
}
.step h3 { font-size: 1.55rem; color: var(--gold-400); margin-bottom: 8px; }
.step p { color: var(--ink-300); font-size: 0.94rem; margin-bottom: 16px; }
.step strong { color: var(--ink-100); }

/* A download button with nowhere to point yet renders as a labelled pending
   state rather than a dead link. js/main.js flips it the moment the href is
   set to a real URL. */
.btn[data-download][data-pending] {
  --btn-face: var(--night-600);
  --btn-edge: var(--wood-700);
  --btn-ink: var(--ink-400);
  cursor: not-allowed;
  box-shadow: 4px 4px 0 var(--btn-edge), inset 0 0 0 2px var(--plate-line);
}
.btn[data-download][data-pending]:hover { filter: none; transform: none; }
.btn[data-download][data-pending]:active { transform: none; }

.install-foot {
  text-align: center;
  color: var(--ink-400);
  font-size: 0.94rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 54px 20px 24px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink-100);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-500);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 24px 22px;
  color: var(--ink-300);
  font-size: 0.96rem;
}
.faq details[open] { border-color: var(--gold-600); }

/* ── Closer ────────────────────────────────────────────────────────────── */

.closer { text-align: center; }
.closer-banner {
  width: 240px; height: auto;
  margin: 0 auto 26px;
  clip-path: var(--cut);
  --notch: 14px;
  border: 2px solid var(--plate-line);
}
.closer h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.closer p { color: var(--ink-300); margin-bottom: 32px; }
.closer .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-foot { border-top: 2px solid var(--plate-line); padding: 34px 0; background: var(--night-850); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { clip-path: var(--cut); --notch: 5px; }
.foot-brand strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold-500); }
.foot-brand span { font-size: 0.84rem; color: var(--ink-400); }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 0.88rem; color: var(--ink-400); }
.foot-nav a:hover { color: var(--gold-400); }

/* ── Lightbox ──────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(6, 9, 4, 0.94);
  backdrop-filter: blur(6px);
  animation: lb-in var(--dur-base) var(--ease-out);
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border: 3px solid var(--gold-600);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

.lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 46px; height: 46px;
  font-size: 1.2rem;
  color: var(--ink-100);
  background: var(--night-700);
  border: 2px solid var(--plate-line-2);
  clip-path: var(--cut);
  --notch: 7px;
  cursor: pointer;
}
.lb-close:hover { border-color: var(--gold-500); color: var(--gold-400); }

/* ── Reveal on scroll ──────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-spring);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .tab-rail { grid-template-columns: repeat(4, 1fr); }
  .grow-row { grid-template-columns: 1fr; gap: 24px; }
  .grow-row:nth-child(even) > .grow-media,
  .grow-row:nth-child(even) > .grow-copy { order: initial; }
  .grow-rows { gap: 56px; }
  .plat-grid, .price-grid, .world-extra { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .band { padding: 76px 0; }
  .loop-steps { flex-direction: column; align-items: center; }
  .loop-step { max-width: 460px; width: 100%; }
  .loop-arrow { transform: rotate(90deg); }
  .fpanel { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .head-nav { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 64px 0 88px; }
  .hero-ctas .btn { width: 100%; }
  .tab-rail { grid-template-columns: repeat(2, 1fr); }
  .tab-txt em { display: none; }
  .slot-pair { grid-template-columns: 1fr; }
  .tab-stage { padding: 18px; }
  .mosaic { grid-template-columns: 1fr; }
  .plat-grid, .price-grid, .world-extra { grid-template-columns: 1fr; }
  .timer { flex-direction: column; gap: 18px; }
  .crop { width: 100%; height: auto; }
  .foot-inner { flex-direction: column; text-align: center; }
}
