/* museworks — landing page. Shares tokens + small components (mode chip, tell box,
   proof stamps, pre, rules) with styles.css; everything here is page layout.
   Mobile-first at 430px; desktop from 860px. */

.landing { background: var(--paper); }
.landing main, .landing .hero-l, .landing .nav, .landing .foot { position: relative; z-index: 1; }

.inner { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--spruce); margin: 0 0 14px;
}
.landing h1, .landing h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); }
.landing h1 em, .landing h2 em {
  font-style: normal;
  background: var(--ring); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.landing h2 { font-size: clamp(30px, 7.4vw, 52px); line-height: 1.04; }
.landing h3 { font-family: var(--display); font-weight: 700; font-size: 21px; margin: 0 0 6px; }
.section-lede { font-size: clamp(16px, 4.2vw, 19px); color: var(--ink-soft); max-width: 56ch; margin: 16px 0 0; }
.prose p { font-size: 17px; color: var(--ink-soft); margin: 0 0 14px; max-width: 54ch; }
.prose b { color: var(--ink); }
.prose code, .landing code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); border-radius: 6px; padding: 1px 6px; color: var(--ink); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 800; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px; padding: 14px 24px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ring { background: var(--ring); color: #fff; box-shadow: 0 10px 28px rgba(217, 112, 90, .32); }
.btn-ring:hover { box-shadow: 0 14px 34px rgba(217, 112, 90, .4); }
.btn-ink { background: var(--ink); color: var(--paper); padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost.copied { color: var(--spruce); border-color: var(--spruce); }

/* ---------------------------------------------------------------- nav */
.nav {
  display: flex; align-items: center; gap: 14px;
  max-width: 1160px; margin: 0 auto; padding: 14px 20px 0;
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand .wordmark { font-size: 25px; }
.nav-links { display: none; gap: 24px; margin-left: 26px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; }

/* ---------------------------------------------------------------- hero */
.hero-l { text-align: center; padding: 44px 20px 0; max-width: 1240px; margin: 0 auto; }
.hero-l h1 { font-size: clamp(38px, 10.4vw, 82px); line-height: .98; max-width: 15ch; margin-inline: auto; }
.lede { font-size: clamp(16.5px, 4.3vw, 20px); color: var(--ink-soft); max-width: 60ch; margin: 22px auto 0; }
.lede b { color: var(--clay); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* the window: the live floor in a frame */
.window {
  margin: 44px auto 0; max-width: 1180px;
  background: var(--ink); border-radius: 22px; padding: 0 0 0;
  box-shadow: 0 30px 80px rgba(44, 50, 46, .28), 0 4px 14px rgba(44, 50, 46, .12);
  overflow: hidden; text-align: left;
}
.window-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; font-family: var(--mono); font-size: 11px; color: #9aa69e; }
.window-title { color: var(--brass); font-weight: 700; letter-spacing: .04em; }
.window-note { display: none; }
.window-open { margin-left: auto; color: #d9d4c5; text-decoration: none; }
.window-open:hover { color: #fff; }

.landing .stage {
  position: relative; width: 100%; height: auto; min-height: 0;
  aspect-ratio: 4 / 3.3; margin: 0; border: 0; border-radius: 0; box-shadow: none;
}
.wake {
  position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%);
  font: inherit; font-weight: 800; font-size: 13.5px; color: var(--ink);
  background: rgba(255, 253, 248, .94); border: 0; border-radius: 999px; padding: 10px 18px;
  box-shadow: 0 8px 24px rgba(44, 50, 46, .3); cursor: pointer; white-space: nowrap;
}

.facts {
  list-style: none; margin: 30px auto 0; padding: 0; max-width: 1180px;
  display: grid; gap: 10px; text-align: left;
}
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.facts b { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink); }
.facts span { font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- bands */
.band { padding: 76px 0; }
.band-paper { background: var(--paper-2); }
.split { display: grid; gap: 28px; }

/* steps */
.steps { display: grid; gap: 16px; margin-top: 34px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px 20px; box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ring); color: #fff; font-family: var(--display); font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.step p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 16px; }
.step pre { font-size: 11.5px; padding: 13px 14px; border-radius: 14px; }

/* the rule */
.stamps { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 11px; }
.stamps li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.stamps .proof { margin: 0 8px 0 0; font-size: 10px; vertical-align: 1px; }
.stamps i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.aside { font-size: 14.5px !important; border-left: 3px solid var(--brass); padding-left: 14px; }

.ledger-demo { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; align-self: start; }
.ledger-demo figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px dashed var(--line); background: var(--paper); }
.ledger-demo figcaption span:first-child { color: var(--clay); font-weight: 700; }
.ledger-demo .row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.ledger-demo .amt { font-family: var(--mono); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--spruce); }
.ledger-demo .desc { font-size: 15px; font-weight: 700; }
.ledger-demo .desc small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--ink-faint); }
.ledger-demo .row .proof { grid-column: 2; justify-self: start; margin: 2px 0 0; }
.ledger-demo .struck .amt { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: var(--clay); text-decoration-thickness: 2px; }
.ledger-demo .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 18px; background: var(--ink); color: var(--paper); }
.ledger-demo .total span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #b9c2bb; }
.ledger-demo .total strong { font-family: var(--mono); font-size: 26px; color: #9fe3c4; font-variant-numeric: tabular-nums; }
.ledger-demo .total-sub { background: #242a27; padding-block: 11px; }
.ledger-demo .total-sub strong { font-size: 15px; color: #8a958e; text-decoration: line-through; text-decoration-color: var(--clay); }

/* cast */
.castline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.castline article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px 14px 18px; box-shadow: var(--shadow); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.castline article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.castline img { width: 100%; max-width: 190px; aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto 2px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.castline article:hover img { transform: translateY(-5px) rotate(-3deg); }
.castline h3 { margin-bottom: 5px; }
.castline p { font-size: 13.5px; color: var(--ink-soft); margin: 9px 0 0; line-height: 1.4; }
.bench-pill { display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #fff; background: var(--c); border-radius: 6px; padding: 2px 8px; }

/* live wall */
.band-ink { background: var(--ink); }
.band-ink h2, .band-ink .section-lede { color: var(--paper); }
.band-ink .section-lede { color: #b9c2bb; }
.band-ink .eyebrow { color: var(--brass); }
.livewall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 34px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden; }
.livewall > div { background: #262c29; padding: 18px 16px 20px; }
.livewall .k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #7f8f85; margin-bottom: 6px; }
.livewall .v { display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(26px, 7vw, 38px); line-height: 1; color: #ece7d8; font-variant-numeric: tabular-nums; }
.livewall .v.money { color: #f0a08f; }
.livewall-note { font-family: var(--mono); font-size: 11px; color: #7f8f85; margin: 16px 2px 0; }

/* for muses */
#muses pre { font-size: 12px; align-self: start; box-shadow: var(--shadow-lift); }
#muses .rules { margin-top: 18px; }
#muses .rules li { font-size: 15px; }

/* final CTA */
.band-cta { text-align: center; background:
  radial-gradient(60% 80% at 20% 0%, rgba(224,164,60,.2), transparent 70%),
  radial-gradient(60% 80% at 85% 10%, rgba(31,122,92,.15), transparent 70%), var(--paper-2); }
.band-cta .section-lede { margin-inline: auto; }
.cta-mascot { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(44,50,46,.2)); margin-bottom: 8px; }
.band-cta .tell { margin: 26px auto 22px; max-width: 560px; }

.foot {
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  padding: 28px 20px; padding-bottom: max(28px, env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: none; color: var(--ink-faint);
}

/* scroll reveal — small, once, and only where it helps the read */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .castline .reveal:nth-child(2n) { transition-delay: .08s; }
.steps .reveal:nth-child(3), .castline .reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------------------------------------------------------------- desktop */
@media (min-width: 860px) {
  .inner, .nav { padding-inline: 32px; }
  .nav-links { display: flex; }
  .hero-l { padding-top: 64px; }
  .window-note { display: inline; }
  .landing .stage { aspect-ratio: 16 / 8.6; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .band { padding: 112px 0; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .split-rule { grid-template-columns: 1.05fr .95fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .castline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .castline p { font-size: 13px; }
  .livewall { grid-template-columns: repeat(6, 1fr); }
  .ledger-demo .row { grid-template-columns: 120px 1fr auto; }
  .ledger-demo .row .proof { grid-column: auto; margin: 0; }
  .foot { flex-direction: row; justify-content: space-between; max-width: 1160px; margin: 0 auto; text-align: left; padding-inline: 32px; }
}

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
