/* ============================================================
   BLOCK GUARDIAN LABS — Case Files store styles
   Shared by every page in /case-files/. Site nav/footer come from /styles.css.
   ============================================================ */
.cf {
  --cf-ground: #0b0a19;
  --cf-card: #13112a;
  --cf-border: #23204a;
  --cf-purple: #6c4cf1;
  --cf-purple-text: #a996ff;
  --cf-yellow: #f2c230;
  --cf-text: #ece9f7;
  --cf-body: #d8d4e6;
  --cf-muted: #b9b3cf;
  --cf-dim: #8f88a8;
  --cf-head: 'Oswald', 'Arial Narrow', sans-serif;
  --cf-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cf-mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;
  background: var(--cf-ground);
  color: var(--cf-text);
  font-family: var(--cf-sans);
  padding-top: 72px; /* clears the fixed site nav */
}
.cf * { box-sizing: border-box; }
.cf a { color: #c9bcff; }
.cf a:hover { color: #fff; }
.cf-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.cf-section { padding: 28px 0 56px; }
.cf-kicker { font-family: var(--cf-mono); font-size: 13px; letter-spacing: 0.22em; color: var(--cf-purple-text); text-transform: uppercase; }
.cf-h1 { margin: 0; font-family: var(--cf-head); font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1; text-transform: uppercase; color: #fff; letter-spacing: 0.01em; }
.cf-h2 { margin: 0 0 26px; font-family: var(--cf-head); font-weight: 600; font-size: clamp(28px, 4vw, 36px); text-transform: uppercase; color: #fff; letter-spacing: 0.02em; }
.cf-lede { margin: 0; font-size: 20px; line-height: 1.5; color: var(--cf-body); max-width: 580px; }
.cf-p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cf-muted); max-width: 580px; }
.cf-small { font-size: 14px; color: var(--cf-dim); }
.cf-tag { display: inline-block; font-family: var(--cf-mono); font-size: 12px; letter-spacing: 0.14em; color: #121212; background: var(--cf-yellow); padding: 4px 8px; }
.cf-chip { display: inline-block; border: 1px solid #4a4373; color: var(--cf-body); font-family: var(--cf-mono); font-size: 12px; letter-spacing: 0.1em; padding: 5px 9px; }
.cf-chip.is-rating { border-color: var(--cf-yellow); color: var(--cf-yellow); }

/* Buttons */
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border-radius: 6px; font-family: var(--cf-head); font-weight: 600; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.cf .cf-btn-primary { background: var(--cf-purple); color: #fff; }
.cf .cf-btn-primary:hover { background: #5a3be0; color: #fff; transform: translateY(-1px); }
.cf .cf-btn-ghost { border-color: #4a4373; color: var(--cf-text); background: transparent; font-weight: 500; }
.cf .cf-btn-ghost:hover { border-color: var(--cf-purple-text); color: #fff; }
.cf-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.cf-btn:focus-visible, .cf a:focus-visible, .cf input:focus-visible { outline: 3px solid var(--cf-yellow); outline-offset: 3px; }

/* Price */
.cf-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; }
.cf-price-now { font-family: var(--cf-head); font-weight: 600; font-size: 44px; color: #fff; line-height: 1; }
.cf-price-later { font-size: 16px; color: var(--cf-muted); }

/* Product hero */
.cf-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 56px 0 40px; }
.cf-hero-box { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; padding: 40px 0 70px; }
.cf-hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.cf-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cf-alert { display: none; border: 1px solid #7a3550; background: rgba(160, 40, 80, .15); color: #ffd6e2; border-radius: 6px; padding: 12px 14px; font-size: 15px; }
.cf-alert.show { display: block; }
.cf-alert.is-ok { border-color: #2f6b4f; background: rgba(40, 160, 100, .12); color: #d4ffe9; }

/* 3D box (built in CSS). Per-case art is set with --box-cover on .box3d */
.box3d { position: relative; width: 420px; height: 560px; perspective: 1700px; }
.box3d-shadow { position: absolute; left: 30px; right: -40px; bottom: -56px; height: 60px; background: radial-gradient(ellipse at center, rgba(0,0,0,.75) 0%, rgba(0,0,0,0) 70%); filter: blur(6px); }
.box3d-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-7deg) rotateY(-26deg); transition: transform .6s ease; }
.box3d:hover .box3d-body { transform: rotateX(-5deg) rotateY(-18deg); }
.box3d-top { position: absolute; left: 0; top: 235px; width: 420px; height: 90px; background: #15121f; border: 1px solid #2c2740; transform: rotateX(90deg) translateZ(280px); display: flex; align-items: center; justify-content: center; }
.box3d-top span { font-family: var(--cf-mono); font-size: 11px; letter-spacing: .3em; color: #7d7698; }
.box3d-spine { position: absolute; left: 165px; top: 0; width: 90px; height: 560px; background: #111018; border-left: 1px solid #2c2740; transform: rotateY(90deg) translateZ(210px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 22px 0 0; overflow: hidden; }
.box3d-spine img { width: 46px; height: 44px; object-fit: contain; }
.box3d-spine-title { writing-mode: vertical-rl; font-family: var(--cf-head); font-weight: 700; font-size: 34px; letter-spacing: .08em; color: #fff; text-transform: uppercase; white-space: nowrap; }
.box3d-spine-case { writing-mode: vertical-rl; font-family: var(--cf-mono); font-size: 12px; letter-spacing: .25em; color: var(--cf-yellow); white-space: nowrap; }
.box3d-spine-band { width: 90px; height: 26px; background: var(--cf-yellow); }
.box3d-front { position: absolute; left: 0; top: 0; width: 420px; height: 560px; transform: translateZ(45px); overflow: hidden; background: #0c0b10; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.box3d-art { position: absolute; left: -150px; top: 70px; width: 760px; height: 430px; object-fit: cover; }
.box3d-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,16,1) 0%, rgba(12,11,16,.55) 26%, rgba(12,11,16,.15) 48%, rgba(12,11,16,.85) 74%, rgba(12,11,16,1) 100%); }
.box3d-brand { position: absolute; left: 22px; right: 22px; top: 20px; display: flex; align-items: center; justify-content: space-between; }
.box3d-brand > div { display: flex; align-items: center; gap: 8px; }
.box3d-brand img { width: 30px; height: 28px; object-fit: contain; }
.box3d-brand b { font-family: var(--cf-head); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: #fff; }
.box3d-brand i { font-style: normal; font-family: var(--cf-mono); font-size: 11px; letter-spacing: .2em; color: var(--cf-yellow); }
.box3d-case { position: absolute; left: 22px; top: 74px; background: var(--cf-yellow); color: #121212; font-family: var(--cf-mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; padding: 5px 9px; }
.box3d-tape { position: absolute; left: -60px; width: 560px; top: 226px; height: 30px; background: var(--cf-yellow); transform: rotate(-9deg); display: flex; align-items: center; overflow: hidden; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.box3d-tape span { font-family: var(--cf-head); font-weight: 700; font-size: 15px; letter-spacing: .18em; color: #121212; }
.box3d-title { position: absolute; left: 22px; right: 22px; bottom: 74px; }
.box3d-title b { display: block; font-family: var(--cf-head); font-weight: 700; font-size: 66px; line-height: .92; letter-spacing: .01em; color: #fff; text-transform: uppercase; }
.box3d-title span { display: block; font-size: 14px; line-height: 1.4; color: var(--cf-body); margin-top: 12px; max-width: 330px; }
.box3d-chips { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.box3d-chips span { border: 1px solid #5d5776; color: var(--cf-body); font-family: var(--cf-mono); font-size: 10px; letter-spacing: .1em; padding: 4px 7px; }
.box3d-chips span.is-rating { border-color: var(--cf-yellow); color: var(--cf-yellow); }
@media (max-width: 540px) { .box3d { transform: scale(.7); transform-origin: top center; margin-bottom: -170px; } }
@media (prefers-reduced-motion: reduce) { .box3d-body { transition: none; } }

/* Quick facts */
.cf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border: 1px solid var(--cf-border); border-radius: 8px; overflow: hidden; }
.cf-facts > div { padding: 22px 24px; border-right: 1px solid var(--cf-border); border-bottom: 1px solid var(--cf-border); margin: 0 -1px -1px 0; }
.cf-label { font-family: var(--cf-mono); font-size: 12px; letter-spacing: .16em; color: var(--cf-dim); text-transform: uppercase; }
.cf-fact { font-family: var(--cf-head); font-size: 24px; color: #fff; margin-top: 6px; }

/* Cards */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cf-card { background: var(--cf-card); border: 1px solid var(--cf-border); border-radius: 8px; padding: 26px; }
.cf-card-num { font-family: var(--cf-head); font-size: 42px; font-weight: 700; color: var(--cf-yellow); line-height: 1.1; }
.cf-card-title { font-family: var(--cf-head); font-size: 22px; color: #fff; margin-top: 4px; text-transform: uppercase; }
.cf-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--cf-muted); }

.cf-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.cf-photos figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--cf-border); background: var(--cf-card); }
.cf-photos img { display: block; width: 100%; height: 240px; object-fit: cover; }
.cf-photos figcaption { padding: 14px 18px; font-size: 14px; color: var(--cf-muted); }
.cf-photos figcaption b { font-family: var(--cf-mono); font-weight: 500; color: var(--cf-yellow); }

.cf-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.cf-steps > div { border-top: 3px solid var(--cf-purple); padding-top: 18px; }
.cf-steps h3 { margin: 0; font-family: var(--cf-head); font-size: 22px; font-weight: 500; color: #fff; text-transform: uppercase; }
.cf-steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--cf-muted); }

.cf-license { border: 1px dashed #4a4373; border-radius: 8px; padding: 22px 24px; display: grid; gap: 8px; }
.cf-license p { margin: 0; color: var(--cf-muted); font-size: 15px; line-height: 1.6; }
.cf-disclaimer { margin: 40px 0 0; font-size: 13px; color: var(--cf-dim); }

/* Hub (catalog) */
.cf-hub-hero { padding: 64px 0 40px; display: grid; gap: 18px; max-width: 760px; }
.cf-catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.cf-case { display: flex; flex-direction: column; background: var(--cf-card); border: 1px solid var(--cf-border); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.cf a.cf-case:hover { border-color: var(--cf-purple); transform: translateY(-3px); color: inherit; }
.cf-case-img { aspect-ratio: 1 / 1; width: 100%; height: auto; flex: 0 0 auto; object-fit: cover; display: block; background: #0c0b10; }
.cf-case-soon { flex: 0 0 auto; }
.cf-case-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.cf-case-title { font-family: var(--cf-head); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; }
.cf-case-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.cf-case-meta b { font-family: var(--cf-head); font-size: 26px; color: #fff; font-weight: 600; }
.cf-case-soon { aspect-ratio: 1 / 1; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, #100e22 0 18px, #14122b 18px 36px); }
.cf-case-soon span { font-family: var(--cf-head); font-size: 64px; color: #2c2858; font-weight: 700; }

/* Order / downloads pages */
.cf-narrow { max-width: 820px; margin: 0 auto; padding: 56px 32px 80px; display: grid; gap: 26px; }
.cf-dl-case { background: var(--cf-card); border: 1px solid var(--cf-border); border-radius: 10px; padding: 26px; display: grid; gap: 16px; }
.cf-dl-case h2 { margin: 0; font-family: var(--cf-head); font-size: 30px; text-transform: uppercase; color: #fff; }
.cf-dl-group { font-family: var(--cf-mono); font-size: 12px; letter-spacing: .16em; color: var(--cf-dim); text-transform: uppercase; margin-top: 6px; }
.cf-dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cf-dl-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--cf-border); border-radius: 8px; padding: 14px 16px; background: #0f0d22; }
.cf-dl-list b { display: block; color: #fff; font-weight: 600; }
.cf-dl-list small { color: var(--cf-dim); font-size: 13px; }
.cf .cf-dl-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; background: var(--cf-purple); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.cf .cf-dl-btn:hover { background: #5a3be0; color: #fff; }
.cf-steps-list { margin: 0; padding-left: 22px; color: var(--cf-muted); line-height: 1.7; }
.cf-form { display: flex; flex-wrap: wrap; gap: 12px; }
.cf-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cf-form input { flex: 1 1 260px; min-height: 54px; padding: 0 16px; border-radius: 6px; border: 1px solid #4a4373; background: #0f0d22; color: #fff; font-size: 16px; font-family: var(--cf-sans); }
.cf-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: cfspin .8s linear infinite; vertical-align: -3px; }
@keyframes cfspin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .cf-wrap, .cf-narrow { padding-left: 16px; padding-right: 16px; }
  .cf-hero { padding-top: 24px; gap: 8px; }
  .cf-btn { width: 100%; }
  .cf-lede { font-size: 18px; }
}
