/* Shared components: Webflow-site ticker (verbatim classes/tokens), phone mockup,
   stats band, form scaffold. Theme variables are set per variant. */

:root {
  --bg-primary: #000000;
  --bg-secondary: #121212;
  --accent: #F87728;
  --accent-dim: rgba(248, 119, 40, 0.08);
  --accent-hover: rgba(248, 119, 40, 0.14);
  --accent-glow: rgba(248, 119, 40, 0.25);
  --accent-line: rgba(248, 119, 40, 0.18);
  --text-primary: #EDEDED;
  --text-secondary: #8A8A8A;
  --text-muted: #555555;
  --green: #00D47E;
  --red: #FF4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Ticker (from bbreakdown.com) ─────────────────── */
.btc-ticker-outer { width: 100%; position: relative; background: var(--bg-primary); }
.btc-ticker-outer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 20%, var(--accent) 80%, transparent 100%);
  opacity: 0.5;
}
.btc-ticker-wrap {
  width: 100%; overflow: hidden; position: relative; height: 56px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, #080808 0%, var(--bg-secondary) 50%, #080808 100%);
  border-bottom: 1px solid var(--accent-line);
}
.btc-ticker-wrap::before, .btc-ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 4; pointer-events: none;
}
.btc-ticker-wrap::before { left: 0; background: linear-gradient(90deg, #080808 0%, transparent 100%); }
.btc-ticker-wrap::after { right: 0; background: linear-gradient(270deg, #080808 0%, transparent 100%); }
.btc-ticker-track {
  display: none; align-items: center; white-space: nowrap; will-change: transform;
  animation: ticker-scroll 60s linear infinite;
}
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.btc-ticker-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 28px;
  font-size: 13px; line-height: 1; letter-spacing: 0.02em; flex-shrink: 0; height: 56px;
}
.btc-ticker-item .label {
  color: var(--accent); font-weight: 600; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.1em; font-family: 'Outfit', sans-serif;
}
.btc-ticker-item .value {
  color: var(--text-primary); font-weight: 600; font-size: 14px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-family: 'JetBrains Mono', monospace;
}
.btc-ticker-item .unit { color: var(--text-secondary); font-size: 10.5px; font-family: 'JetBrains Mono', monospace; }
.btc-ticker-sep { display: inline-flex; align-items: center; padding: 0 2px; flex-shrink: 0; height: 56px; }
.btc-ticker-sep::after { content: ''; width: 1px; height: 20px; background: var(--accent-line); }
.btc-ticker-loading {
  display: flex; align-items: center; justify-content: center; height: 56px; width: 100%;
  color: var(--text-muted); font-size: 11px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.1em; gap: 8px;
}
.btc-ticker-loading .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; animation: tpulse 1.2s ease-in-out infinite; }
.btc-ticker-loading .dot:nth-child(2) { animation-delay: .2s; }
.btc-ticker-loading .dot:nth-child(3) { animation-delay: .4s; }
@keyframes tpulse { 0%,100% { opacity:.2; transform:scale(.8);} 50% { opacity:1; transform:scale(1.2);} }
@media (max-width: 768px) {
  .btc-ticker-wrap, .btc-ticker-item, .btc-ticker-sep { height: 48px; }
  .btc-ticker-item { padding: 0 18px; gap: 6px; }
  .btc-ticker-item .label { font-size: 9px; }
  .btc-ticker-item .value { font-size: 12px; }
}

/* ── Phone mockup (real issue content) ────────────── */
.phone {
  width: 300px; border-radius: 38px; padding: 12px;
  background: #0A0A0A; border: 2px solid #1A1A1A;
  box-shadow: 8px 8px 0 var(--accent);
  flex-shrink: 0;
}
.phone-screen {
  border-radius: 28px; overflow: hidden; background: #0d0d0d;
  border: 1px solid #202020; height: 560px; display: flex; flex-direction: column;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px; border-bottom: 1px solid #1e1e1e;
}
.phone-top img { height: 18px; width: auto; }
.phone-top span {
  font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-secondary); letter-spacing: .08em;
}
.phone-subject {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.35;
  color: var(--text-primary); padding: 12px 16px 10px;
}
.phone-story { padding: 10px 16px; border-top: 1px solid #191919; }
.phone-story h4 {
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 700;
  color: var(--accent); letter-spacing: .02em; margin-bottom: 4px;
}
.phone-story p { font-family: 'Outfit', sans-serif; font-size: 11px; line-height: 1.5; color: #A8A8A8; }
.phone-poll {
  margin: auto 16px 14px; padding: 9px 12px; border: 1px solid var(--accent-line);
  background: var(--accent-dim); font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--text-primary); letter-spacing: .04em;
}

/* ── Stats band ───────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #0A0A0A; border: 2px solid #1A1A1A; padding: 20px 18px;
  box-shadow: 6px 6px 0 var(--accent);
}
.stat .num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 30px;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.stat .num em { font-style: normal; color: var(--accent); }
.stat .lbl {
  margin-top: 8px; font-family: 'Outfit', sans-serif; font-size: 11.5px;
  line-height: 1.45; color: var(--text-secondary); letter-spacing: .02em;
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ── Byline ───────────────────────────────────────── */
.byline {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Outfit', sans-serif; font-size: 12.5px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: .04em;
}
.byline .check {
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: #000; font-size: 10px; font-weight: 800;
}

/* ── Form scaffold ───────────────────────────────── */
form#subscribe-form, form.js-subscribe { display: flex; max-width: 540px; }
#email, .js-email {
  flex: 1; min-width: 0; border: 0; font-family: 'Outfit', sans-serif; font-weight: 600;
  font-size: 14px; padding: 17px 16px; letter-spacing: .02em;
  background: #FFFDF9; color: #151210;
}
#email::placeholder, .js-email::placeholder { color: #6d655c; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
#email:focus, .js-email:focus { outline: 3px solid var(--accent); outline-offset: -3px; }
#submit-btn, .js-btn {
  border: 0; cursor: pointer; font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: .06em; padding: 17px 24px; white-space: nowrap;
  background: var(--accent); color: #0A0A0A;
  transition: transform .1s ease, background .15s ease;
}
#submit-btn:hover, .js-btn:hover { background: #E06920; }
#submit-btn:active, .js-btn:active { transform: translateY(1px); }
#submit-btn:focus-visible, .js-btn:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
#submit-btn:disabled, .js-btn:disabled { opacity: .6; cursor: wait; }
.error { display: none; margin-top: 10px; color: var(--red); font-family: 'Outfit', sans-serif; font-size: 13px; }
.success {
  display: none; max-width: 540px; margin-top: 26px; padding: 22px;
  background: #0A0A0A; border: 2px solid #1A1A1A; box-shadow: 6px 6px 0 var(--accent);
}
.success h2 { font-family: 'Anton', Impact, sans-serif; text-transform: uppercase; font-weight: 400; font-size: 1.4rem; color: var(--accent); }
.success p { margin-top: 6px; color: var(--text-secondary); font-family: 'Outfit', sans-serif; font-size: 14px; }
@media (max-width: 640px) { form#subscribe-form, form.js-subscribe { flex-direction: column; } #submit-btn, .js-btn { padding: 15px; } }
