/* Page styles for the landing page and the live board. Everything here builds
   on app/css/laptop.css: same paper, same ink, same single blue accent, same
   window cards. Nothing in this file restyles a shared class. */

/* ---- hero -------------------------------------------------------------- */
.hero { padding: 18px 0 8px; }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 34px; align-items: center;
}
.hero-copy h1 { margin-bottom: 14px; max-width: 15ch; }
.hero-copy .lede { font-size: 16px; max-width: 46ch; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; margin: 0 0 14px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 2px; background: var(--accent); display: block; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.hero-win .win-body { padding: 14px 16px 16px; }
.beats { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.beats li { display: flex; gap: 11px; align-items: flex-start; }
.beat-n {
  flex: none; width: 21px; height: 21px; border-radius: 6px; margin-top: 1px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
}
.beats b { font-weight: 600; font-size: 13.5px; display: block; }
.beats small { display: block; line-height: 1.45; }
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* labels wrap on a narrow screen, so the numbers sit on the bottom edge and
   still line up across the three cells */
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 17px; margin-top: auto; }
.hero-stats small { line-height: 1.3; }
#stat-note { margin-top: 10px; }

/* ---- board head -------------------------------------------------------- */
.board-sec { margin-top: 34px; scroll-margin-top: 76px; }
.board-head {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
}
.board-title { display: flex; align-items: center; gap: 10px; }
.board-title h2 { margin: 0; }
/* one line under the head, so the fee columns on every card read correctly
   without repeating the same sentence on each of them */
.board-note { flex: 1 1 100%; margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 78ch; }
.pill.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); display: block; }
.pill.live.off i { background: var(--ink-3); }
.board-tools { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.search { position: relative; display: block; }
.search input {
  height: 34px; width: 250px; padding-left: 31px; border-radius: 9px; font-size: 13.5px;
}
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-ic {
  position: absolute; left: 10px; top: 50%; width: 13px; height: 13px; margin-top: -7px;
  border: 1.6px solid var(--ink-3); border-radius: 50%; pointer-events: none;
}
.search-ic::after {
  content: ""; position: absolute; right: -4px; bottom: -3px; width: 6px; height: 1.6px;
  background: var(--ink-3); border-radius: 1px; transform: rotate(45deg);
}
.pairing { height: 34px; width: auto; min-width: 130px; font-size: 13.5px; border-radius: 9px; }
.board-more { display: flex; justify-content: center; margin-top: 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- token card -------------------------------------------------------- */
.tok { display: block; }
.tok .win-body { padding: 14px; display: grid; gap: 12px; }
.tok-hit { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.tok-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.tok .win-bar .title { font-weight: 600; color: var(--ink); letter-spacing: .01em; }

.tok-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tok-id { min-width: 0; }
.tok-name {
  display: block; font-family: var(--display); font-size: 15.5px; font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tok-pair { display: block; font-size: 12px; color: var(--ink-3); }

.tok-price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tok-p { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tok-unit { font-size: 12.5px; }
.tok-chg { margin-left: auto; font-size: 13px; font-weight: 600; }

/* a small ledger instead of tiles: a narrow card has room for a label on the
   left and its number on the right, and nothing has to be truncated */
.tok-rows { margin: 0; padding: 10px 11px; display: grid; gap: 5px; background: var(--paper); border-radius: var(--r-sm); }
.tok-rows > div { display: flex; align-items: baseline; gap: 10px; }
.tok-rows dt { font-size: 12px; color: var(--ink-3); }
/* a row the card is hiding: the flex rule above would otherwise beat [hidden] */
.tok-rows > div[hidden] { display: none; }
.tok-rows dd { margin: 0 0 0 auto; font-size: 13px; font-weight: 500; text-align: right; }

.tok-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tok .ca { padding: 6px 8px; }
.tok .ca span { color: var(--ink-2); }
.tok-copy { position: relative; z-index: 2; }

.tok-logo.ph { font-size: 16px; letter-spacing: -0.02em; color: var(--ink-2); }

/* skeleton cards keep the same shape as a real card so nothing jumps */
.sk-line { height: 11px; border-radius: 5px; }
.sk-logo { width: 40px; height: 40px; border-radius: 10px; }

.board-msg { grid-column: 1 / -1; }
.board-msg .btn { margin-top: 6px; }

@media (max-width: 860px) {
  .hero { padding-top: 6px; }
  .hero-in { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy h1 { max-width: none; }
  .board-head { align-items: flex-start; }
  .board-tools { margin-left: 0; width: 100%; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .seg { flex: 1 1 auto; }
  .seg button { flex: 1 1 auto; }
  .pairing { flex: 1 1 130px; }
}
@media (max-width: 400px) {
  .board { grid-template-columns: 1fr; }
}
