/* ============================================================
   TAIGL WEBSITE — SCOUT INSTRUMENT SURFACE (WEB-018)
   Scoped presentation layer for the Scout product surface.

   Purpose: represent the REAL current Scout Android experience
   (Founder-approved visual direction, Platform Issue #940,
   render authority 2a39ce2030a11a4efdfb374dd7d7f28643d416b9)
   inside the existing frozen "Open Register" website system.

   This is NOT a website redesign and NOT a Scout redesign.
   Every rule here is namespaced under .sci- / .scout-device so
   no existing Open Register component changes behaviour.

   Frozen Scout visual principles honoured:
   - Inter-led product typography; no serif in the device frame
   - TAIGL dark environment + Horizon/Radar/Scout violet lineage
   - Cyan reserved for operational/action signal
   - Semantic green/amber retain governed meaning
   - One-screen mobile-first composition, progressive workflow
   - Reticle / signal-acquisition instrumentation grammar
   - RECEIVE intelligence spine with aligned semantic nodes
   ============================================================ */

/* ---------- SCOUT INSTRUMENT TOKENS ---------- */
.sci-scope {
  --sc-field: #070b16;
  --sc-field-2: #0c1222;
  --sc-chrome: #0a1020;
  --sc-edge: rgba(150,170,205,.16);
  --sc-edge-hi: rgba(155,123,255,.42);
  --sc-txt-hi: #eef2f9;
  --sc-txt: #b9c4d6;
  --sc-txt-low: #7a8299;
  --sc-violet: #9b7bff;
  --sc-violet-hi: #bfa6ff;
  --sc-violet-dim: rgba(155,123,255,.13);
  --sc-cyan: #22c3e6;
  --sc-cyan-dim: rgba(34,195,230,.13);
  --sc-green: #3fd6a0;
  --sc-amber: #e8b25c;
  --sc-inst: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- DEVICE FRAME ---------- */
.scout-device {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 390 / 844;
  margin: 0 auto;
  background: linear-gradient(178deg, var(--sc-field) 0%, var(--sc-field-2) 62%, var(--sc-field) 100%);
  border: 1px solid var(--sc-edge);
  border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(4,8,26,.9), 0 18px 44px -18px rgba(0,0,0,.85);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--sc-inst);
  /* Scout typography authority: Inter only inside the device frame. */
  container-type: inline-size;
}

/* status strip */
.scout-device .sd-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--sc-txt-low);
  letter-spacing: .02em;
  flex: none;
}
.scout-device .sd-status .sd-sig { display: flex; gap: 3px; align-items: flex-end; }
.scout-device .sd-status .sd-sig i {
  display: block; width: 2px; background: var(--sc-txt-low); border-radius: 1px;
}
.scout-device .sd-status .sd-sig i:nth-child(1) { height: 3px; }
.scout-device .sd-status .sd-sig i:nth-child(2) { height: 5px; }
.scout-device .sd-status .sd-sig i:nth-child(3) { height: 7px; }
.scout-device .sd-status .sd-sig i:nth-child(4) { height: 9px; }

/* product chrome — wordmark + reticle glyph */
.scout-device .sd-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 12px;
  flex: none;
}
.scout-device .sd-mark {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.2px solid var(--sc-violet);
  position: relative; flex: none;
}
.scout-device .sd-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 50%; background: var(--sc-violet);
}
.scout-device .sd-word {
  font-size: 11.5px; font-weight: 700; letter-spacing: .17em;
  color: var(--sc-txt-hi);
}

/* body */
.scout-device .sd-body { flex: 1; padding: 0 14px; overflow: hidden; min-height: 0; }

.scout-device .sd-step {
  font-size: 8.5px; font-weight: 700; letter-spacing: .15em;
  color: var(--sc-violet); margin-bottom: 6px;
}
.scout-device .sd-h {
  font-size: 17px; font-weight: 700; line-height: 1.2;
  color: var(--sc-txt-hi); letter-spacing: -.015em;
}
.scout-device .sd-sub {
  font-size: 10.5px; line-height: 1.45; color: var(--sc-txt-low); margin-top: 5px;
}

/* lens ladder (AIM) */
.scout-device .sd-lens {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--sc-edge); border-radius: 11px;
  background: rgba(12,18,34,.75);
  padding: 9px 10px; margin-top: 9px;
}
.scout-device .sd-lens.on { border-color: var(--sc-edge-hi); background: var(--sc-violet-dim); }
.scout-device .sd-lens .ic {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  border: 1px solid var(--sc-edge-hi);
  display: flex; align-items: center; justify-content: center;
  color: var(--sc-violet-hi); font-size: 11px; font-weight: 700;
}
.scout-device .sd-lens.cy .ic { border-color: rgba(34,195,230,.42); color: var(--sc-cyan); }
.scout-device .sd-lens.am .ic { border-color: rgba(232,178,92,.42); color: var(--sc-amber); }
.scout-device .sd-lens .tx { min-width: 0; display: flex; flex-direction: column; }
.scout-device .sd-lens .t1 { display: block; font-size: 11.5px; font-weight: 700; color: var(--sc-txt-hi); }
.scout-device .sd-lens .t2 {
  display: block; font-size: 9px; color: var(--sc-txt-low); margin-top: 1px; line-height: 1.35;
}
.scout-device .sd-lens .ch { margin-left: auto; color: var(--sc-txt-low); font-size: 11px; flex: none; }

.scout-device .sd-whisper { display: block;
  font-size: 8.5px; color: var(--sc-txt-low); margin-top: 11px; line-height: 1.5;
}

/* reticle (SCAN) */
.scout-device .sd-scan {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding-bottom: 8px;
}
.scout-device .sd-reticle {
  position: relative; width: 108px; height: 108px; flex: none;
}
.scout-device .sd-reticle span {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(155,123,255,.5);
  inset: 0;
}
.scout-device .sd-reticle span:nth-child(2) { inset: 17px; border-style: solid; border-color: rgba(155,123,255,.34); }
.scout-device .sd-reticle span:nth-child(3) {
  inset: 40px; border: 0; background: var(--sc-violet);
  box-shadow: 0 0 14px 3px rgba(155,123,255,.45);
}
.scout-device .sd-cross {
  position: absolute; background: rgba(150,170,205,.16);
}
.scout-device .sd-cross.h { left: -14px; right: -14px; top: 50%; height: 1px; }
.scout-device .sd-cross.v { top: -14px; bottom: -14px; left: 50%; width: 1px; }

.scout-device .sd-pill { display: inline-block;
  display: inline-block; margin-top: 16px;
  border: 1px solid var(--sc-edge-hi); border-radius: 999px;
  padding: 4px 11px; font-size: 8.5px; font-weight: 700;
  letter-spacing: .13em; color: var(--sc-violet-hi);
}
.scout-device .sd-scan-h {
  font-size: 16px; font-weight: 700; color: var(--sc-txt-hi); margin-top: 11px;
}
.scout-device .sd-ladder {
  width: 100%; border: 1px solid var(--sc-edge); border-radius: 11px;
  background: rgba(12,18,34,.8); padding: 9px 11px; margin-top: 14px;
}
.scout-device .sd-ladder div {
  font-size: 9.5px; line-height: 1.75; color: var(--sc-txt-low);
  display: flex; gap: 7px; align-items: center;
}
.scout-device .sd-ladder div.done { color: var(--sc-green); }
.scout-device .sd-ladder div.now { color: var(--sc-violet-hi); font-weight: 600; }

/* RECEIVE — score card + intelligence spine */
.scout-device .sd-score {
  border: 1px solid var(--sc-edge-hi); border-radius: 13px;
  background: linear-gradient(120deg, rgba(155,123,255,.16), rgba(34,195,230,.07));
  padding: 10px 12px;
}
.scout-device .sd-score .n {
  font-size: 30px; font-weight: 800; color: var(--sc-txt-hi);
  line-height: 1; letter-spacing: -.02em;
}
.scout-device .sd-score .n s { font-size: 11px; font-weight: 600; color: var(--sc-txt-low); text-decoration: none; }
.scout-device .sd-score .al {
  font-size: 8.5px; font-weight: 700; letter-spacing: .1em;
  color: var(--sc-amber); margin-top: 3px;
}
.scout-device .sd-score .tg {
  font-size: 8px; font-weight: 700; letter-spacing: .09em;
  color: var(--sc-cyan); margin-top: 5px;
}

.scout-device .sd-sec {
  font-size: 8.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--sc-violet); margin: 11px 0 5px;
}
.scout-device .sd-exec { font-size: 10.5px; line-height: 1.5; color: var(--sc-txt); }

/* the intelligence spine — one structural axis, aligned nodes */
.scout-device .sd-spine { position: relative; margin-top: 10px; padding-left: 20px; }
.scout-device .sd-spine::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(180deg, rgba(155,123,255,.5), rgba(155,123,255,.08));
}
.scout-device .sd-node { position: relative; padding: 0 0 9px; }
.scout-device .sd-node:last-child { padding-bottom: 0; }
/* every marker shares one horizontal anchor with its text (Issue #940 §2) */
.scout-device .sd-node .mk {
  position: absolute; left: -20px; top: 1px;
  width: 15px; height: 15px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; flex: none;
  border: 1px solid currentColor;
}
.scout-device .sd-node.ok .mk { color: var(--sc-green); }
.scout-device .sd-node.inf .mk { color: var(--sc-violet-hi); }
.scout-device .sd-node.risk .mk { color: var(--sc-amber); }
.scout-device .sd-node.move .mk { color: var(--sc-cyan); }
.scout-device .sd-node .kl {
  display: block; font-size: 8px; font-weight: 700; letter-spacing: .1em;
}
.scout-device .sd-node.ok .kl { color: var(--sc-green); }
.scout-device .sd-node.inf .kl { color: var(--sc-violet-hi); }
.scout-device .sd-node.risk .kl { color: var(--sc-amber); }
.scout-device .sd-node.move .kl { color: var(--sc-cyan); }
.scout-device .sd-node .tt {
  font-size: 10.5px; font-weight: 600; color: var(--sc-txt-hi);
  line-height: 1.35; margin-top: 2px;
}
.scout-device .sd-node .ss {
  font-size: 9px; color: var(--sc-txt-low); line-height: 1.4; margin-top: 1px;
}

.scout-device .sd-acts { display: flex; gap: 7px; margin-top: 11px; }
.scout-device .sd-acts .a { display: block;
  flex: 1; text-align: center; border-radius: 9px; padding: 7px 4px;
  font-size: 9.5px; font-weight: 700;
}
.scout-device .sd-acts .a.g { border: 1px solid var(--sc-edge); color: var(--sc-txt); }
.scout-device .sd-acts .a.p { background: var(--sc-cyan); color: #04131a; }

/* bottom navigation — Founder-accepted Aim / Saved / Control (F-2) */
.scout-device .sd-nav {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sc-edge);
  background: var(--sc-chrome);
  padding: 7px 0 9px; flex: none;
}
.scout-device .sd-nav div {
  text-align: center; font-size: 8.5px; font-weight: 600; color: var(--sc-txt-low);
}
.scout-device .sd-nav div .g {
  display: block; width: 15px; height: 15px; margin: 0 auto 3px;
  border: 1.2px solid currentColor; border-radius: 50%; position: relative;
}
.scout-device .sd-nav div .g.sq { border-radius: 3px; }
.scout-device .sd-nav div .g.tri { border-radius: 3px; }
.scout-device .sd-nav div.on { color: var(--sc-violet-hi); }
.scout-device .sd-nav div.on .g::after {
  content: ""; position: absolute; inset: 3.5px; border-radius: 50%;
  background: var(--sc-violet-hi);
}

/* frame caption */
.sci-cap {
  text-align: center; margin-top: 12px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .1em;
  color: var(--txt-mut); text-transform: uppercase;
}

/* ---------- FRAME RAIL ---------- */
.sci-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}

/* ---------- STORE / PLAY HANDOFF SLOT (FAIL-CLOSED) ---------- */
/* The slot renders as an inert, clearly-labelled placeholder until a
   verified Play listing URL exists. It never renders as a live button. */
.sci-store {
  display: flex; align-items: center; gap: 13px;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  background: rgba(11,26,48,.42);
  padding: 15px 16px;
  margin-top: 16px;
}
.sci-store .badge {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--txt-mut);
}
.sci-store .tx { display: block; }
.sci-store .tx .t {
  display: block;
  font-family: var(--f-disp); font-size: 15px; color: var(--txt-hi); font-weight: 600;
}
.sci-store .tx .s {
  display: block; max-width: 62ch;
  font-size: 12.5px; color: var(--txt-mut); margin-top: 3px; line-height: 1.55;
}
.sci-store[data-play-listing="verified"] { border-style: solid; border-color: var(--cy-line); }

/* ---------- LADDER (Lite -> Elite -> Radar) ---------- */
.sci-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 26px; }
.sci-ladder .rung { border-top: 2px solid var(--line); padding: 18px 20px 20px 0; }
.sci-ladder .rung.now { border-top-color: var(--cy); }
.sci-ladder .rung.next { border-top-color: var(--pu-line); }
.sci-ladder .rung.flag { border-top-color: var(--pu); }
.sci-ladder .rung .r-k {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .13em;
  color: var(--txt-mut); text-transform: uppercase;
}
.sci-ladder .rung .r-n {
  font-family: var(--f-disp); font-size: 21px; color: var(--txt-hi);
  margin-top: 8px; font-weight: 600;
}
.sci-ladder .rung.flag .r-n { color: var(--pu-hi); }
.sci-ladder .rung .r-b {
  font-size: 13.5px; color: var(--txt-mut); line-height: 1.7; margin-top: 8px;
}
.sci-ladder .rung .r-g {
  display: inline-block; margin-top: 11px;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .07em;
  color: var(--txt-mut); border: 1px dashed var(--line-strong);
  border-radius: 4px; padding: 3px 7px; text-transform: uppercase;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .sci-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .scout-device { max-width: 250px; }
}

@media (max-width: 767px) {
  /* Mobile-first: the frame rail becomes a swipeable instrument strip.
     No horizontal page overflow — the scroller owns the overflow. */
  .sci-rail {
    display: flex;
    grid-template-columns: none !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 2px 18px 10px;
    margin: 26px -18px 0;
    scrollbar-width: none;
  }
  .sci-rail::-webkit-scrollbar { display: none; }
  .sci-rail > figure {
    flex: 0 0 78%;
    max-width: 78%;
    scroll-snap-align: center;
    margin: 0;
  }
  .scout-device { max-width: 100%; }

  .sci-ladder { grid-template-columns: 1fr !important; gap: 0; }
  .sci-ladder .rung { padding: 16px 0 18px; }

  .sci-store { flex-direction: column; align-items: flex-start; gap: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .sci-rail { scroll-behavior: auto; scroll-snap-type: none; }
}
