/* ===========================================================
   TITAN STRIKE — STYLES  (brand: black + gold #F0C000)
   Mobile-first. Designed to be scanned from a phone.
   =========================================================== */

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --surface-2: #1c1c1c;
  --border:    #2c2a24;
  --text:      #f6f5f2;
  --muted:     #a9a399;
  --gold:      #f0c000;   /* brand gold (sampled from logo) */
  --gold-br:   #ffd21e;
  --gold-dp:   #c99a00;
  --radius:    16px;
  --maxw:      860px;
  --shadow:    0 12px 34px rgba(0,0,0,.45);
  --glow:      0 0 18px rgba(240,192,0,.25);
  --display: "Oswald", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  background:
    radial-gradient(1100px 460px at 50% -8%, #1a1813 0%, var(--bg) 58%) fixed;
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, .display { font-family: var(--display); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10,10,10,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
  padding: env(safe-area-inset-top) 0 0;
}
.brand { display: flex; align-items: center; justify-content: center; padding: 10px; }
.brand-logo { height: 50px; width: auto; }

/* ---------- Layout ---------- */
.app { max-width: var(--maxw); margin: 0 auto; padding: 22px 18px 56px; }

/* ---------- Hero / intro ---------- */
.hero { text-align: center; margin: 4px 0 22px; }
.eyebrow {
  display: inline-block; font-family: var(--display);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(30px, 8vw, 46px); line-height: 1.02; margin: 0 0 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--muted); margin: 0 auto; max-width: 40ch; }

/* ---------- Trust badges ---------- */
.trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 4px; }
.trust span {
  font-family: var(--display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(240,192,0,.35);
  background: rgba(240,192,0,.06); padding: 6px 12px; border-radius: 999px;
}

/* ---------- Section label ---------- */
.step-label {
  font-family: var(--display); font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin: 22px 0 14px;
}
.step-label b { color: var(--gold); font-weight: 700; }

/* ---------- Selection cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s;
  min-height: 92px;
}
.card:hover, .card:focus-visible {
  transform: translateY(-2px); border-color: var(--gold);
  box-shadow: var(--glow); outline: none;
}
/* product photo thumbnail (white tile, since photos have white bg) */
.card-thumb {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: 12px;
  background: #fff; padding: 6px; display: grid; place-items: center;
}
.card-thumb img { width: 100%; height: 100%; object-fit: contain; }
.card-badge {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dp)); color: #1a1400;
}
.card-body { flex: 1; min-width: 0; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .5px; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card-arrow { color: var(--muted); font-size: 26px; flex: 0 0 auto; }
.card:hover .card-arrow { color: var(--gold); }

/* ---------- Breadcrumb / back ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--muted); margin: -10px 0 4px -4px; flex-wrap: wrap; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: .5; }
.back { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back:hover { color: var(--gold); }

/* ---------- Product detail ---------- */
.detail-head { margin-bottom: 16px; }
.detail-head h1 { font-size: clamp(26px, 7vw, 38px); margin: 0 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.detail-head h1 .gold { color: var(--gold); }
.detail-head .blurb { color: var(--muted); margin: 0; }

/* product image gallery */
.product-hero {
  background: #fff; border-radius: var(--radius); padding: 14px;
  display: grid; place-items: center; margin-top: 6px;
}
.product-hero img { width: 100%; max-height: 360px; object-fit: contain; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 15px; font-weight: 600; padding: 0 18px; min-height: 44px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
.swatch:hover { border-color: var(--gold); }
.swatch.active { border-color: var(--gold); box-shadow: var(--glow); }
.swatch .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.dot-black { background: #111; } .dot-silver { background: #c8ccd2; } .dot-gold { background: #d4af37; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-top: 16px; }
.panel h2 { font-family: var(--display); font-size: 16px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); font-weight: 600; margin: 0 0 14px; }
.panel h2 .gold { color: var(--gold); }

/* ---------- Video ---------- */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: repeating-linear-gradient(45deg, #121212, #121212 14px, #161616 14px, #161616 28px);
  color: var(--muted); padding: 20px;
}
.video-placeholder .pp { font-size: 40px; color: var(--gold); margin-bottom: 6px; }

/* ---------- Video selectors (door side + mounting style) ---------- */
.vhint { margin: 0 0 16px; font-size: 14px; }
.vgroup { margin-bottom: 14px; }
.vlabel { display: block; font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.vtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.vtab { font-family: var(--display); text-transform: uppercase; letter-spacing: .5px; font-size: 14px; font-weight: 600; padding: 10px 15px; min-height: 46px; justify-content: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: border-color .12s, box-shadow .12s; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1.15; text-align: left; }
.vtab:hover { border-color: var(--gold); }
.vtab.active { background: linear-gradient(135deg, var(--gold-br), var(--gold-dp)); color: #1a1400; border-color: transparent; }
.vsub { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500; opacity: .85; }
.video-placeholder .cs { font-size: 13px; opacity: .8; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 18px; border-radius: 12px; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .5px; text-transform: uppercase; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; transition: transform .1s, filter .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-br), var(--gold-dp)); border-color: transparent; color: #1a1400; }
.btn-primary:hover { filter: brightness(1.06); }
.manual-list { display: flex; flex-direction: column; gap: 10px; }
.guide-manual { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.guide-manual .notice { margin-top: 0; }
.guide-manual.no-video { margin-top: 0; padding-top: 0; border-top: 0; }
.sel-summary { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.guide-image img { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.zoom-hint { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.sel-summary b { color: var(--gold); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; background: var(--gold); color: #1a1400; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; }

/* ---------- Tools ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool { font-size: 13px; padding: 6px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }

/* ---------- Mounting styles graphic ---------- */
.mounting { margin-top: 26px; }
.mounting img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Notice ---------- */
.notice { background: rgba(240,192,0,.08); border: 1px solid rgba(240,192,0,.35); color: #ffdf85; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); text-align: center; padding: 26px 18px calc(26px + env(safe-area-inset-bottom)); font-size: 14px; }
.site-footer a { color: var(--gold); font-weight: 600; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view { animation: fade .2s ease; }
