/* For Brands page (/brands). Every class starts brx-. Bounty cards share one fixed size (480 px tall): a 168 px
   colour top and a body whose idea line is clamped to 9 lines, with the payment chip pinned to the bottom. */
.brx { color: #F8FAFC; font-family: var(--font-sans); }
.brx-wrap { max-width: 1280px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
@media (min-width: 1024px) { .brx-wrap { padding-left: 32px; padding-right: 32px; } }
.brx-sec { padding-top: 88px; }
@media (min-width: 1024px) { .brx-sec { padding-top: 112px; } }
.brx-eye { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #00B67A; }
.brx-h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 92px); line-height: 0.92; letter-spacing: -0.045em; max-width: 14ch; }
.brx-h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 60px); line-height: 0.95; letter-spacing: -0.04em; }
.brx-lede { margin: 0; font-size: 18px; line-height: 1.55; color: #D5DAE6; max-width: 620px; }
.brx-muted { color: #A9B1C7; }
.brx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; font-family: inherit; text-decoration: none; cursor: pointer; border: 0; transition: transform 0.15s, background-color 0.15s; }
.brx-btn:active { transform: scale(0.97); }
.brx-btn.p { background: #7C3AED; color: #F8FAFC; }
.brx-btn.p:hover { background: #6D28D9; color: #F8FAFC; }
.brx-btn.s { background: transparent; color: #F8FAFC; border: 1.5px solid #2A3350; }
.brx-btn.s:hover { border-color: #A9B1C7; color: #F8FAFC; }
.brx-btn:focus-visible, .brx button:focus-visible, .brx input:focus-visible, .brx select:focus-visible { outline: 2px solid #00B67A; outline-offset: 3px; }
.brx-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brx-stat { display: flex; flex-direction: column; gap: 6px; }
.brx-stat b { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -0.03em; }
.brx-stat span { font-size: 15px; line-height: 1.45; color: #D5DAE6; }
.brx-stat small { font-size: 12px; color: #A9B1C7; }
.brx-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.brx-tile { border-radius: 24px; border: 1px solid #2A3350; background: rgb(18 26 51 / 0.7); padding: 24px; }
.brx-sim { display: flex; flex-wrap: wrap; gap: 1px; background: #1C2440; border: 1px solid #1C2440; border-radius: 28px; overflow: hidden; }
.brx-sim > div { background: #121A33; padding: 28px 22px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .brx-sim > div { padding: 32px; } }
.brx-step { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: #A9B1C7; }
.brx-lab { font-size: 14px; font-weight: 700; color: #D5DAE6; }
.brx-big { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.brx-range { width: 100%; height: 32px; accent-color: #7C3AED; }
.brx-pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #2A3350; background: transparent; color: #F8FAFC; font-weight: 700; font-family: inherit; font-size: 14px; cursor: pointer; }
.brx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brx-field { display: flex; flex-direction: column; gap: 8px; }
.brx-in { height: 52px; border-radius: 14px; border: 1.5px solid #2A3350; background: #0B1020; color: #F8FAFC; padding: 0 16px; font-size: 18px; font-family: inherit; width: 100%; }
.brx-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
.brx-out .brx-big { font-size: clamp(30px, 3.4vw, 42px); }
.brx-cost { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px; border-radius: 20px; background: #0B1020; border: 1px solid #2A3350; }
.brx-cost > div { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; }
.brx-cost b { font-family: var(--font-display); font-weight: 800; font-size: 28px; }
.brx-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid #2A3350; font-size: 13px; font-weight: 700; }
.brx-deck { position: relative; flex: 1 1 420px; height: 520px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.brx-card { position: absolute; left: 50%; top: 16px; width: min(320px, 82%); margin-left: calc(min(320px, 82%) / -2); border-radius: 26px; overflow: hidden; background: #121A33; border: 1px solid #2A3350; box-shadow: 0 30px 60px rgb(0 0 0 / 0.45); transform-origin: 50% 110%; transition: transform 0.35s ease, opacity 0.35s ease; height: 480px; display: flex; flex-direction: column; }
.brx-deck.dragging .brx-card { transition: none; }
.brx-card-top { flex: none; height: 168px; box-sizing: border-box; padding: 22px 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.brx-card-top i { font-style: normal; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: #0B1020; color: #F8FAFC; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.brx-card-top strong { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 0.95; letter-spacing: -0.03em; }
.brx-card-body { flex: 1; min-height: 0; padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.brx-card-body p { margin: 0; font-size: 15px; line-height: 1.5; color: #D5DAE6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; }
.brx-card-body span { margin-top: auto; align-self: flex-start; padding: 8px 14px; border-radius: 12px; background: #0B1020; border: 1px solid #2A3350; font-size: 14px; font-weight: 700; }
.brx-round { width: 52px; height: 52px; border-radius: 999px; border: 1.5px solid #2A3350; background: transparent; color: #F8FAFC; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.brx-form { display: flex; flex-direction: column; gap: 14px; border-radius: 28px; background: #F8FAFC; color: #0B1020; padding: 28px 22px; }
@media (min-width: 768px) { .brx-form { padding: 36px; } }
.brx-form label { font-size: 14px; font-weight: 700; }
.brx-form input, .brx-form select { height: 52px; border-radius: 14px; border: 1.5px solid #C9CFDD; padding: 0 16px; font-size: 16px; font-family: inherit; background: #FFFFFF; color: #0B1020; width: 100%; }
.brx-modal { position: fixed; inset: 0; z-index: 80; background: rgb(11 16 32 / 0.88); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 14px 24px; }
.brx-modal[hidden] { display: none; }
.brx-dialog { width: 100%; max-width: 1120px; border-radius: 28px; background: #0B1020; border: 1px solid #2A3350; padding: 22px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 768px) { .brx-dialog { padding: 28px; } }
.brx-stepper { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.brx-stepper button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border-radius: 12px; border: 0; background: transparent; color: #A9B1C7; text-align: left; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.brx-stepper button i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; font-size: 12px; flex: none; background: #1C2440; color: #F8FAFC; }
.brx-stepper button.done { color: #F8FAFC; }
.brx-stepper button.done i { background: #00B67A; color: #0B1020; }
.brx-stepper button[aria-current="step"] { background: #121A33; color: #F8FAFC; }
.brx-stepper button[aria-current="step"] i { background: #7C3AED; }
.brx-screen { border-radius: 22px; background: #121A33; border: 1px solid #2A3350; overflow: hidden; }
.brx-kv { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 16px; border-radius: 14px; background: #0B1020; border: 1px solid #2A3350; }
.brx-notes { border-radius: 18px; border: 1px dashed #3B82F6; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.brx-notes[hidden], .brx-field[hidden] { display: none; }
html.brx-lock, html.brx-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .brx-card { transition: none; } }
/* Why play: argument, Play vs video bars, market ledger. */
.brx-why { display: flex; flex-direction: column; gap: 22px; }
.brx-why-h { font-size: clamp(44px, 7vw, 96px); max-width: 12ch; }
.brx-why-copy { max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.brx-why-lede { margin: 0; font-size: 22px; line-height: 1.4; }
.brx-why-copy .brx-muted { margin: 0; font-size: 17px; line-height: 1.6; }
.brx-vs { margin-top: 26px; border-top: 1px solid #1C2440; }
.brx-vs-key { margin: 16px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #A9B1C7; }
.brx-vs-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.brx-vs-key .k.p { background: #7C3AED; }
.brx-vs-key .k.v { background: #3A4258; margin-left: 14px; }
.brx-vs-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 48px; padding: 24px 0; border-bottom: 1px solid #1C2440; align-items: center; }
@media (max-width: 760px) { .brx-vs-row { grid-template-columns: minmax(0, 1fr); } }
.brx-vs-label strong { display: block; font-size: 17px; font-weight: 700; }
.brx-vs-label small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: #A9B1C7; }
.brx-vs-bars { display: flex; flex-direction: column; gap: 8px; }
.brx-bar { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 14px; align-items: center; }
.brx-bar b { display: block; height: 20px; }
.brx-bar i { display: block; height: 100%; min-width: 6px; border-radius: 5px; }
.brx-bar.p i { background: #7C3AED; }
.brx-bar.v i { background: #3A4258; }
.brx-bar span { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brx-bar.v span { color: #A9B1C7; font-weight: 500; }
.brx-ledger-head { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.brx-h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.brx-ledger-head p { margin: 0; font-size: 16px; line-height: 1.6; }
.brx-ledger { margin: 26px 0 0; border-top: 1px solid #1C2440; }
.brx-ledger-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid #1C2440; align-items: baseline; }
.brx-ledger dt { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.brx-ledger dd { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; }
.brx-ledger dd span { font-size: 16px; line-height: 1.5; color: #D5DAE6; max-width: 56ch; }
.brx-ledger dd small { font-size: 12px; color: #A9B1C7; }
@media (max-width: 600px) { .brx-ledger-row { grid-template-columns: minmax(0, 1fr); } }
/* Simulator assumptions: a quiet footnote grid, value over label, six across on desktop, two or three on phones. */
.brx-assume { border-top: 1px solid #1C2440; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.brx-assume-h { margin: 0; font-size: 13px; font-weight: 700; color: #A9B1C7; }
.brx-assume-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 0; }
.brx-assume-grid > div { padding: 2px 16px; border-left: 1px solid #2A3350; }
.brx-assume-grid dt { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.brx-assume-grid dd { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #A9B1C7; }
.brx-assume-note { margin: 0; font-size: 12px; color: #A9B1C7; }
/* Brand flow pop-up: one fixed size for every step, so it never jumps. The header and Back / Next stay put and only the
   middle scrolls (with a stable scrollbar gutter, so nothing shifts sideways). On phones the step list becomes a
   swipeable row above the screen. */
.brx-modal { align-items: center; overflow: hidden; padding: 16px 14px; }
.brx-dialog { height: min(780px, calc(100vh - 32px)); height: min(780px, calc(100dvh - 32px)); overflow: hidden; }
.brx-dialog > div:nth-child(1), .brx-dialog > div:nth-child(3) { flex: none; }
.brx-dialog > div:nth-child(2) { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-gutter: stable; align-content: flex-start; padding-right: 4px; }
html.brx-lock { scrollbar-gutter: stable; }
@media (max-width: 760px) {
  .brx-stepper { flex: 1 1 100%; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .brx-stepper button { flex: none; }
}