/* Coldcard hack investigation, "The Coldcard wallet hack: $80M gone in 41
   minutes, and the two-cent clue that wasn't" — scoped under .coldcard-hack.
   Ported from the design handoff (The Two-Cent Clue.html + bitquery-brand.css).
   The handoff's sticky .mast masthead and #prog bar are dropped — the site's own
   header supplies that chrome, and the progress bar is the shared
   .inv-progress-track pattern. Full-bleed wrapper matches the other
   investigation stylesheets. */

.coldcard-hack {
  position: relative;
  isolation: isolate;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  overflow-x: hidden;
}

.coldcard-hack .inv-progress-track {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 120; background: transparent; pointer-events: none;
}
.coldcard-hack .inv-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(96deg,#f93f9c 0%,#af3e76 46%,#00d8dd 100%);
  transition: width .12s linear;
}

/* ---- tokens (per bitquery-brand.css; gradient used sparingly by brand rule) ---- */
.coldcard-hack{
  --bq-white:#ffffff; --bq-grey:#aab0bc; --bq-dark-grey:#7e8696;
  --bq-page-bg:#06090d; --bq-card-bg:#0c121c; --bq-navy:#111c32; --bq-navy-deep:#142739;
  --bq-line:rgba(255,255,255,.10); --bq-line-2:rgba(255,255,255,.06);
  --bq-pink:#f93f9c; --bq-pink-soft:#f788c0; --bq-magenta:#af3e76; --bq-maroon:#6c1c44;
  --bq-teal:#00d8dd; --bq-teal-muted:#51becc; --bq-blue:#0029ff;
  --bq-cta:#93254b; --bq-cta-hover:#af3e76; --bq-cta-border:#621832;
  --bq-gradient:linear-gradient(96deg,#f93f9c 0%,#af3e76 46%,#00d8dd 100%);
  --bq-font:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --bq-mono:'JetBrains Mono',ui-monospace,monospace;
}

.coldcard-hack *{box-sizing:border-box}
.coldcard-hack{margin-left:calc(50% - 50vw);background:var(--bq-page-bg);color:var(--bq-grey);font-family:var(--bq-font);font-weight:400;-webkit-font-smoothing:antialiased}
/* The underline rule must exclude .bq-btn, or the secondary button's bottom
   border is zeroed and the outline renders on three sides only. */
.coldcard-hack a:not(.bq-btn):not(.inv-endcta-btn){color:var(--bq-teal-muted);text-decoration:none;border-bottom:1px solid rgba(81,190,204,.35)}
.coldcard-hack a:not(.bq-btn):not(.inv-endcta-btn):hover{color:var(--bq-teal);border-bottom-color:var(--bq-teal)}
.coldcard-hack .wrap{max-width:1180px;margin:0 auto;padding:0 40px}
.coldcard-hack .m{max-width:680px;margin-left:auto;margin-right:auto}
.coldcard-hack p{font-size:20px;line-height:1.68;letter-spacing:.1px;color:#c4cad4;margin:0 0 26px;text-wrap:pretty}
.coldcard-hack .m>p:first-of-type{font-size:23px;line-height:1.6;color:#dfe3ea}
.coldcard-hack h2{font-family:var(--bq-font);font-weight:500;font-size:36px;line-height:42px;letter-spacing:-.8px;color:#fff;margin:84px 0 30px}
.coldcard-hack strong{color:#fff;font-weight:500}
.coldcard-hack em{color:#dfe3ea}
.coldcard-hack .mono{font-family:var(--bq-mono)}

/* hero — named .cc-hero, not .hero: the site bundles an unscoped .hero
   (centered, 54px h1) that would out-cascade the scoped rules here. */
.coldcard-hack header.cc-hero{padding:96px 0 0}
.coldcard-hack .kicker{font-family:var(--bq-font);font-weight:500;font-size:10px;line-height:12px;letter-spacing:1px;text-transform:uppercase;color:var(--bq-pink-soft);display:flex;gap:14px;align-items:center}
.coldcard-hack .kicker span:last-child{color:var(--bq-dark-grey)}
.coldcard-hack h1{font-family:var(--bq-font);font-weight:500;font-size:76px;line-height:.98;letter-spacing:-2.6px;color:#fff;margin:26px 0 0;text-wrap:balance}
.coldcard-hack .deck{font-size:24px;line-height:1.5;letter-spacing:.1px;color:#aab0bc;margin:28px 0 0;max-width:680px;text-wrap:pretty}
.coldcard-hack .byline{display:flex;flex-wrap:wrap;gap:28px;margin:44px 0 0;padding:18px 0;border-top:1px solid var(--bq-line);border-bottom:1px solid var(--bq-line);font-size:13px;color:var(--bq-dark-grey)}
.coldcard-hack .byline b{display:block;color:#fff;font-weight:500;font-size:13px;letter-spacing:.2px;margin-bottom:3px}

/* hero stat strip */
.coldcard-hack .strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--bq-line-2);border:1px solid var(--bq-line-2);margin:0 0 88px}
.coldcard-hack .strip>div{background:var(--bq-page-bg);padding:24px 20px;display:flex;flex-direction:column;justify-content:space-between;min-height:132px}
.coldcard-hack .strip .n{font-family:var(--bq-font);font-weight:500;font-size:38px;line-height:1;letter-spacing:-1.4px;color:#fff}
.coldcard-hack .strip .n small{font-size:16px;letter-spacing:-.2px;color:var(--bq-grey);margin-left:4px}
.coldcard-hack .strip .l{font-size:12px;line-height:1.5;color:var(--bq-dark-grey);margin-top:10px;letter-spacing:.3px}
.coldcard-hack .strip .n.hot{color:var(--bq-pink)}

/* figures */
.coldcard-hack figure{margin:64px 0 68px}
.coldcard-hack figure.wide{max-width:1000px;margin-left:auto;margin-right:auto}
.coldcard-hack .fig-head{display:flex;align-items:baseline;gap:14px;border-top:1px solid var(--bq-line);padding-top:14px;margin-bottom:6px}
.coldcard-hack .fig-num{font-family:var(--bq-mono);font-size:11px;color:var(--bq-pink);letter-spacing:.5px;flex:none}
.coldcard-hack .fig-title{font-family:var(--bq-font);font-weight:500;font-size:18px;line-height:24px;letter-spacing:-.2px;color:#fff}
.coldcard-hack figcaption{font-size:14px;line-height:1.6;color:var(--bq-dark-grey);max-width:680px;margin-top:18px;letter-spacing:.2px}
.coldcard-hack figcaption b{color:#aab0bc;font-weight:400}
.coldcard-hack .chart{margin-top:22px}
.coldcard-hack .chart svg{display:block;width:100%;height:auto;overflow:visible}

/* pull quote — the gradient rule is a pseudo-element on purpose: border-image
   paints the gradient across the whole box in Chrome. */
.coldcard-hack blockquote{position:relative;margin:76px auto;max-width:820px;padding:0 0 0 30px;font-family:var(--bq-font);font-weight:500;font-size:34px;line-height:1.24;letter-spacing:-1px;color:#fff;text-wrap:pretty}
.coldcard-hack blockquote:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:2px;background:var(--bq-gradient)}

/* method box */
.coldcard-hack .method{max-width:860px;margin:96px auto 0;background:linear-gradient(180deg,#0c121c 0%,#111c32 100%);border:1px solid var(--bq-line);border-radius:14px;padding:44px 48px}
.coldcard-hack .method h3{font-family:var(--bq-font);font-weight:500;font-size:22px;line-height:26px;letter-spacing:-.1px;color:#fff;margin:14px 0 22px}
.coldcard-hack .method p{font-size:16px;line-height:1.65;color:#aab0bc;margin-bottom:18px}
.coldcard-hack .method p:last-child{margin-bottom:0}

/* promo */
.coldcard-hack .promo{max-width:860px;margin:56px auto 0;border:1px solid var(--bq-line);border-radius:14px;padding:38px 44px;background:linear-gradient(135deg,#0c121c 0%,#111c32 70%,#1e575d 190%);display:grid;grid-template-columns:1fr auto;gap:34px;align-items:center}
.coldcard-hack .promo h3{font-family:var(--bq-font);font-weight:500;font-size:22px;line-height:28px;letter-spacing:-.1px;color:#fff;margin:12px 0 10px;max-width:520px}
.coldcard-hack .promo p{font-size:15px;line-height:1.6;color:var(--bq-grey);margin:0;max-width:520px}
.coldcard-hack .promo p code{font-family:var(--bq-mono);font-size:13px;color:var(--bq-teal);background:rgba(0,216,221,.08);border:1px solid rgba(0,216,221,.18);border-radius:3px;padding:1px 6px}
.coldcard-hack .promo .acts{display:flex;flex-direction:column;gap:10px}
.coldcard-hack .promo a.bq-btn{text-decoration:none}

/* buttons (per bitquery-brand.css) */
.coldcard-hack .bq-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-family:var(--bq-font);font-weight:500;font-size:18px;line-height:22px;letter-spacing:-.2px;border-radius:4px;padding:16px 24px;border:1px solid transparent;cursor:pointer;transition:background .15s ease,border-color .15s ease;white-space:nowrap;text-decoration:none}
.coldcard-hack .bq-btn-primary{background:var(--bq-cta);color:var(--bq-white)}
.coldcard-hack .bq-btn-primary:hover{background:var(--bq-cta-hover)}
.coldcard-hack .bq-btn-secondary{background:transparent;color:var(--bq-white);border-color:var(--bq-cta-border)}
.coldcard-hack .bq-btn-secondary:hover{background:rgba(147,37,75,.14)}
.coldcard-hack .bq-btn-sm{font-size:15px;line-height:22px;padding:11px 18px}

/* appendix */
.coldcard-hack .appendix{margin-top:110px;border-top:1px solid var(--bq-line)}
.coldcard-hack .appendix h2{font-size:28px;letter-spacing:-.6px;margin:0}
.coldcard-hack .ap-head{padding:34px 0 8px}
.coldcard-hack .ap-note{font-size:13px;color:var(--bq-dark-grey);margin:14px 0 0}
.coldcard-hack h4.tbl{font-family:var(--bq-font);font-weight:500;font-size:18px;color:#fff;letter-spacing:-.2px;margin:54px 0 6px}
.coldcard-hack .tbl-sub{font-size:13px;color:var(--bq-dark-grey);margin:0 0 16px}
.coldcard-hack table{width:100%;border-collapse:collapse;font-size:13px}
.coldcard-hack th{text-align:left;font-family:var(--bq-font);font-weight:500;font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--bq-dark-grey);padding:0 14px 10px 0;border-bottom:1px solid var(--bq-line)}
.coldcard-hack td{padding:13px 14px 13px 0;border-bottom:1px solid var(--bq-line-2);color:#aab0bc;vertical-align:top}
.coldcard-hack td.addr{font-family:var(--bq-mono);font-size:11.5px;line-height:1.5;word-break:break-all;max-width:330px}
.coldcard-hack td.num{font-family:var(--bq-mono);font-size:12.5px;color:#fff;white-space:nowrap}
.coldcard-hack td.idx{font-family:var(--bq-mono);color:var(--bq-dark-grey);width:26px}
.coldcard-hack .pill{display:inline-block;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:500;padding:3px 8px;border-radius:3px;white-space:nowrap}
.coldcard-hack .pill.u{color:var(--bq-teal-muted);background:rgba(0,216,221,.09);border:1px solid rgba(0,216,221,.22)}
.coldcard-hack .pill.l{color:#fff;background:var(--bq-cta);border:1px solid var(--bq-cta-hover)}
.coldcard-hack tr.flag td{background:rgba(147,37,75,.10)}
.coldcard-hack .total{margin:22px 0 0;font-size:15px;color:#aab0bc}
.coldcard-hack .total b{font-family:var(--bq-mono);color:#fff;font-weight:400}

/* end CTA — AI Investigations solution page */
.coldcard-hack .inv-endcta{margin:96px auto 0;max-width:860px;border:1px solid var(--bq-line);border-radius:14px;padding:38px 32px;text-align:center;background:linear-gradient(180deg,rgba(20,39,57,.5),rgba(12,18,28,.5))}
.coldcard-hack .inv-endcta-title{margin:0;font-family:var(--bq-font);font-weight:500;font-size:26px;letter-spacing:-.5px;color:#fff}
.coldcard-hack .inv-endcta-body{margin:12px auto 24px;max-width:520px;font-size:16px;line-height:1.6;color:var(--bq-grey)}
.coldcard-hack .inv-endcta-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--bq-font);font-weight:500;font-size:16px;line-height:24px;padding:14px 24px;border-radius:999px;background:var(--bq-cta);color:#fff;text-decoration:none;transition:background .15s ease}
.coldcard-hack .inv-endcta-btn:hover{background:#a82d58;color:#fff}

/* footer + end mark */
.coldcard-hack footer{margin:110px 0 0;border-top:1px solid var(--bq-line-2);padding:28px 0 80px;font-size:12px;color:var(--bq-dark-grey);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.coldcard-hack .end{width:9px;height:9px;background:var(--bq-gradient);display:inline-block;margin-left:8px;transform:translateY(-1px)}

@media(max-width:900px){
 .coldcard-hack .wrap{padding:0 22px}
 .coldcard-hack h1{font-size:46px;letter-spacing:-1.4px}
 .coldcard-hack .deck{font-size:19px}
 .coldcard-hack p{font-size:18px}
 .coldcard-hack .m>p:first-of-type{font-size:20px}
 .coldcard-hack h2{font-size:28px;line-height:34px;margin-top:60px}
 .coldcard-hack .strip{grid-template-columns:1fr 1fr}
 .coldcard-hack blockquote{font-size:24px;padding-left:20px}
 .coldcard-hack .method{padding:30px 24px}
 .coldcard-hack td.addr{max-width:160px}
 .coldcard-hack .promo{grid-template-columns:1fr;padding:28px 24px}
}

/* Below ~700px the charts scroll sideways instead of shrinking 10px labels
   to 6px — the handoff's own production recommendation. */
@media(max-width:700px){
 .coldcard-hack .chart{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .coldcard-hack .chart svg{min-width:720px}
}
