/* ============================================================
   $NORMIE — layout
   ------------------------------------------------------------
   One rule runs through all of it: every box is a rectangle of
   white with a hard black edge and a hard black shadow. Depth
   comes from offset, never from blur. The only curves on the
   page are in the drawing.

   Every interactive control has a 44px minimum hit box. That is
   not a guess — sub-40px targets failed the audit at 375px on
   CATEWHEEL and had to be fixed twice.
   ============================================================ */

.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 28px);
  }
}

/* Anything that could out-grow the viewport scrolls inside itself rather
   than pushing the page sideways. */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   TYPE
   ============================================================ */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400; /* Archivo Black has one weight; 700 triggers a fake bold */
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.92;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 9vw, 104px);
}

h2 {
  font-size: clamp(30px, 5.2vw, 58px);
}

h3 {
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.05;
}

p {
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 0 0 14px;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}

.hl {
  background: var(--orange);
  color: var(--paper);
  padding: 0 0.14em;
}

strong {
  font-weight: 700;
}

/* ============================================================
   CONTROLS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: var(--edge-hi) solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--drop);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}

.btn:hover {
  background: var(--orange-hot);
}

/* Pressing moves the box onto its own shadow — the shadow does not move, so
   the whole thing reads as a physical key going down. */
.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--ink);
}

.btn.ghost {
  background: var(--paper);
}

.btn.ghost:hover {
  background: var(--paper-3);
}

.btn.small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn.small:active {
  transform: translate(3px, 3px);
}

/* A disabled control is exempt from the contrast minimum, but this one is
   the primary call to action before launch — the state people see FIRST. */
.btn[aria-disabled="true"],
.btn:disabled {
  background: var(--paper-3);
  color: var(--ink-2);
  cursor: not-allowed;
  box-shadow: var(--drop);
  pointer-events: none;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: var(--edge) solid var(--ink);
  background: var(--paper);
  text-decoration: none;
}

.icon-link:hover {
  background: var(--orange);
}

.icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* ============================================================
   HEADER
   ============================================================ */

.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--bar);
  background: var(--paper);
  border-bottom: var(--edge-hi) solid var(--ink);
}

.bar .shell {
  height: var(--bar-inner);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border: var(--edge) solid var(--ink);
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--paper);
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .bar-links .icon-link.optional {
    display: none;
  }
  .brand span {
    font-size: 17px;
  }
}

/* ---- the ticker tape ----
   An orange band of scrolling terms directly under the header. It states the
   deal in six words before anyone has scrolled. */
.tape {
  background: var(--orange);
  color: var(--ink);
  border-bottom: var(--edge-hi) solid var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}

.tape-track {
  display: inline-flex;
  gap: 0;
  animation: tape 42s linear infinite;
  will-change: transform;
}

.tape span {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-inline: 22px;
}

@keyframes tape {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tape-track {
    animation: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: clamp(38px, 6vw, 76px) 0 clamp(34px, 5vw, 64px);
  border-bottom: var(--edge-hi) solid var(--ink);
}

/* minmax(0, …), NOT 1fr.
   A bare `1fr` is `minmax(auto, 1fr)`, and `auto` floors the track at its
   content's MIN-CONTENT width. The contract-address row holds a nowrap
   string, so its min-content is the whole address — which quietly widened
   this column to 491px inside a 375px viewport and pushed the entire page
   sideways. Flooring every track at 0 lets the child's own overflow-x do
   the scrolling, which is what it is there for. Same reasoning applies to
   every grid on this page that contains a nowrap descendant. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art {
    order: -1;
    max-width: 380px;
  }
}

h1 .orange {
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}

.hero .lede {
  margin-top: 20px;
}

.hero-art {
  border: var(--edge-hi) solid var(--ink);
  box-shadow: var(--drop-lg);
  background: var(--paper);
  margin: 0;
}

.hero-art img {
  width: 100%;
}

.hero-art figcaption {
  border-top: var(--edge-hi) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 12px;
  text-align: center;
}

/* ---- contract address ---- */
.ca {
  display: flex;
  align-items: stretch;
  margin-top: 26px;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--drop);
  max-width: 620px;
}

.ca .label {
  display: flex;
  align-items: center;
  padding: 0 13px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.ca code {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 13px;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.ca .copy {
  flex: none;
  width: 48px;
  border: 0;
  border-left: var(--edge) solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ca .copy:hover {
  background: var(--orange);
}

.ca .copy svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- the paid strip ---- */
.paid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 26px;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
}

.paid-item {
  padding: 16px 18px;
}

.paid-item + .paid-item {
  border-left: var(--edge) solid var(--ink);
}

@media (max-width: 520px) {
  .paid {
    grid-template-columns: minmax(0, 1fr);
  }
  .paid-item + .paid-item {
    border-left: 0;
    border-top: var(--edge) solid var(--ink);
  }
}

.paid-v {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1;
}

.paid-v.btc {
  color: var(--orange-deep);
}

.paid-k {
  margin-top: 7px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

/* ---- countdown ---- */
.clock {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.clock .t {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--ink);
  color: var(--paper);
  padding: 5px 13px;
  font-variant-numeric: tabular-nums;
}

.clock .cap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
}

.pulse {
  width: 9px;
  height: 9px;
  background: var(--good);
  border: 1px solid var(--ink);
  animation: blink 2.2s ease-in-out infinite;
}

.pulse.warm {
  background: var(--warn);
}

/* A round actually doing something: orange, and quick enough to read as
   activity rather than decoration. */
.pulse.busy {
  background: var(--orange);
  animation-duration: 0.7s;
}

/* While a round works the countdown is past due and counting nothing, so it
   steps back and lets the phase caption carry the line. */
.clock .t.working {
  background: var(--orange);
  color: var(--ink);
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS
   ============================================================ */

section {
  padding: clamp(48px, 6.5vw, 88px) 0;
  border-bottom: var(--edge-hi) solid var(--ink);
}

section.tinted {
  background: var(--paper-2);
}

section.dark {
  background: var(--ink);
  color: var(--paper);
}

section.dark .lede {
  color: #c9c6c0;
}

section.dark .eyebrow {
  color: var(--orange);
}

.head {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.head h2 {
  margin-bottom: 16px;
}

/* ============================================================
   THE SPLIT — two legs
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.leg {
  position: relative;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--drop-lg);
  padding: 30px 26px 26px;
  display: flex;
  flex-direction: column;
}

.leg .pct {
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 72px);
  line-height: 0.86;
  color: var(--orange);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  margin-bottom: 14px;
}

.leg h3 {
  margin-bottom: 12px;
}

.leg p {
  color: var(--ink-2);
  font-size: 15.5px;
  margin-bottom: 18px;
}

.leg .tag {
  margin-top: auto;
  align-self: flex-start;
  border: var(--edge) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
}

.leg.btc .tag {
  background: var(--orange);
  color: var(--ink);
}

/* ============================================================
   THE FOMO BOARD
   ============================================================ */

.fomo-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

.chip {
  border: var(--edge) solid currentColor;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip.live {
  color: var(--good);
}

.chip.stale {
  color: var(--warn);
}

.fomo-list {
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--drop-lg);
}

.fomo-row {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--paper-3);
}

.fomo-row:last-child {
  border-bottom: 0;
}

.fomo-row:hover {
  background: var(--orange-wash);
}

.fomo-rank {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-4);
}

.fomo-av {
  width: 36px;
  height: 36px;
  border: var(--edge) solid var(--ink);
  background: var(--paper-3);
  object-fit: cover;
}

.fomo-who {
  min-width: 0;
}

.fomo-handle {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fomo-wallet {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
}

.fomo-wallet:hover {
  color: var(--orange-deep);
  text-decoration: underline;
}

.fomo-pnl {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--good);
  white-space: nowrap;
}

.fomo-share {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--orange);
  border: var(--edge) solid var(--ink);
  padding: 4px 8px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .fomo-row {
    grid-template-columns: 30px 36px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 12px;
  }
  .fomo-pnl {
    display: none;
  }
  .fomo-av {
    width: 32px;
    height: 32px;
  }
}

.fomo-more {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-top: var(--edge) solid var(--ink);
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.fomo-more:hover {
  background: var(--orange);
}

.empty {
  padding: 34px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

/* ============================================================
   NUMBERS
   ============================================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
}

.stat {
  padding: 22px 20px;
  border-right: var(--edge) solid var(--ink);
}

.stat:last-child {
  border-right: 0;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .stat:nth-child(2n) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: var(--edge) solid var(--ink);
  }
}

@media (max-width: 460px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat {
    border-right: 0;
    border-bottom: var(--edge) solid var(--ink);
  }
  .stat:last-child {
    border-bottom: 0;
  }
}

.stat-v {
  font-family: var(--mono);
  overflow-wrap: anywhere;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.stat-k {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stat-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--ink-4);
}

/* ============================================================
   FLOW DIAGRAM
   ============================================================ */

.flow {
  border: var(--edge-hi) solid var(--paper);
  background: transparent;
  padding: clamp(20px, 3vw, 34px);
  overflow-x: auto;
}

.flow pre {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(10px, 1.35vw, 14px);
  line-height: 1.7;
  white-space: pre;
  color: var(--paper);
}

.flow .o {
  color: var(--orange);
}

/* ============================================================
   WALLET CHECKER
   ============================================================ */

.owed-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 720px;
}

.owed-form input {
  flex: 1;
  min-width: 260px;
  min-height: 52px;
  padding: 0 15px;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13.5px;
  box-shadow: var(--drop);
}

.owed-form input::placeholder {
  color: var(--ink-4);
}

.owed-out {
  margin-top: 26px;
  border: var(--edge-hi) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--drop-lg);
  padding: 24px;
  max-width: 720px;
}

.owed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 520px) {
  .owed-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* What has actually landed reads as the good number; what is queued is
   secondary. Before this, "owed" was the ONLY number, which made a wallet
   that had just been paid look like it never had been. */
.owed-v.paid {
  color: var(--good);
}

.owed-v {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1;
}

.owed-k {
  margin-top: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.owed-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--paper-3);
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ============================================================
   NOTES / FAQ
   ============================================================ */

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

@media (max-width: 820px) {
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
}

.note {
  border: var(--edge) solid var(--ink);
  background: var(--paper);
  padding: 22px;
}

.note h3 {
  font-size: 16px;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.note p {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}

.note p + p {
  margin-top: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 40px 0 52px;
  background: var(--paper);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.foot-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: var(--edge) solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.foot-links a:hover {
  background: var(--orange);
}

.foot-note {
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 70ch;
}

.foot-note a {
  color: var(--orange-deep);
}

/* ============================================================
   STATUS BANNER
   ============================================================ */

.banner {
  background: var(--ink);
  color: var(--paper);
  padding: 11px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.banner b {
  color: var(--orange);
}
