/* CELA Wallet overview page (L183). Layout only, on top of wallet-console.css (the real console's stylesheet, copied
   byte for byte), so the page and the demo use the wallet's own tokens, cards, pills, rows and buttons. */
.wp a { color: inherit; text-decoration: none; }
.wp-home { color: var(--text); }
.wp-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600;
  color: var(--muted); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.wp-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* Hero: text + demo */
.wp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 44px; align-items: start; padding: 34px 0 10px; }
.wp-hero-text { padding-top: 28px; }
.wp-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ok); }
.wp-title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 16px; }
.wp-lead { color: var(--muted); font-size: 16.5px; line-height: 1.7; margin: 0 0 18px; max-width: 560px; }
.wp-pills { margin-bottom: 22px; }
.wp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.wp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); color: var(--text) !important; font-weight: 650; font-size: 14.5px; }
.wp-btn:hover { background: rgba(255, 255, 255, 0.09); }
.wp-btn.primary { background: var(--ok); border-color: transparent; color: #04120a !important; }
.wp-btn.primary:hover { background: #55e597; }
.wp-btn .nav-icon { width: 18px; height: 18px; }

/* Demo frame: a window around the real console layout */
.demo { position: relative; border-radius: 26px; padding: 14px 14px 10px; background: var(--panel-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line), 0 0 80px rgba(61, 220, 132, 0.06); }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.demo-label { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.demo-seg { width: 100%; margin-bottom: 14px; }
.demo-seg button { flex: 1 1 0; min-width: 0; padding: 0 8px; font-size: 13px; }
.demo-view { min-height: 520px; }
.demo .hero { padding: 18px 18px 0; }
.demo .chart-wrap { margin: 14px -18px 0; height: 84px; }
.demo .hero-balance .big { font-size: 46px; }
.demo .page-head { margin-top: 0; }
.demo .page-title { font-size: 22px; }
.demo .kv { grid-template-columns: 130px minmax(0, 1fr); font-size: 13px; }
.demo .fl { grid-template-columns: 110px minmax(0, 1fr); }
.demo-status { min-height: 1.4em; padding: 0 4px; }

/* Sections */
.wp-sec { margin-top: 56px; }
.wp-sec > h2 { margin-bottom: 6px; }
.wp-h { font-size: clamp(22px, 2.6vw, 30px); font-weight: 760; letter-spacing: -0.02em; text-transform: none; color: var(--text); margin: 0 2px 16px; }
.wp-p { color: var(--muted); max-width: 760px; line-height: 1.7; margin: 0 2px 16px; }
.wp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wp-grid .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wp-card-t { font-size: 16px; font-weight: 720; }
.wp-grid .card p, .wp-paper p { margin: 0; line-height: 1.6; font-size: 13.5px; }
.wp-wrap { white-space: normal !important; overflow: visible !important; line-height: 1.5; }
.wp-steps .round-icon { font-weight: 800; color: var(--ok); background: rgba(61, 220, 132, 0.12); }
.wp-stats { margin-bottom: 12px; }
.wp-stats .stat .lab { white-space: normal; line-height: 1.35; }
#economics .kv dd { line-height: 1.55; }
#economics .banner { margin-top: 12px; }
.wp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wp-two .card { margin: 0; }
.wp-col-h { margin-bottom: 10px; }
.wp-list { margin: 0; padding: 0; list-style: none; }
.wp-list li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; }
.wp-list li:first-child { border-top: 0; }
.wp-list li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.wp-two .card:last-child .wp-list li::before { background: var(--warn); }
.wp-list b { color: var(--text); }
#limits .row, #status .row { align-items: flex-start; }
#status .row { align-items: center; }
.wp-paper { display: flex; gap: 18px; align-items: flex-start; }
.wp-paper .wp-cta { margin-top: 14px; }
.wp-foot { max-width: none; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); }
.wp-foot a { color: var(--muted); }

@media (max-width: 980px) {
  .wp-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wp-hero-text { padding-top: 0; }
  .demo { max-width: 520px; width: 100%; margin: 0 auto; }
  .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wp-nav a:not(:first-child) { display: none; }
  .wp-nav .pill { display: none; }
  .wp-hero { padding-top: 18px; }
  .wp-grid, .wp-two { grid-template-columns: minmax(0, 1fr); }
  .demo { padding: 10px 10px 6px; border-radius: 22px; }
  .demo-view { min-height: 0; }
  .demo .kv, .demo .fl { grid-template-columns: minmax(0, 1fr); }
  .wp-paper { flex-direction: column; }
  main { padding-bottom: 40px; }
}

/* Q-Infinite brand (L184): wordmark "Q-INFINITE" in ink with a green Q; the mark is brand/q-infinite-mark.svg. */
.wp-brand { color: var(--text); letter-spacing: 0.18em; }
.wp-q { color: var(--ok); }
.wp-mark { box-shadow: none; border-radius: 8px; }
.wp-endorse { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 14px; }
.wp-endorse img { height: 40px; width: auto; }
.wp-endorse span { color: var(--muted); font-size: 13px; }

/* L185: the reels sit inside the sections they explain (video beside the content), not in a carousel */
.wp-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.wp-split[data-side="right"] { grid-template-columns: minmax(0, 1fr) 300px; }
.wp-split-main { min-width: 0; }
.wp-split .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-split .wp-two { grid-template-columns: minmax(0, 1fr); }
.wp-split .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-vid { margin: 0; position: sticky; top: 84px; }
.wp-vid video { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: var(--radius); background: var(--panel-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line); }
.wp-vid figcaption { margin: 10px 4px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) {
  .wp-split, .wp-split[data-side="right"] { grid-template-columns: minmax(0, 1fr); }
  .wp-split[data-side="right"] .wp-vid { order: -1; }
  .wp-vid { position: static; max-width: 340px; margin: 0 auto; }
}
@media (max-width: 640px) { .wp-split .wp-grid, .wp-split .wp-stats { grid-template-columns: minmax(0, 1fr); } .wp-split .wp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
