/* ============================================================
   SPY TOOLS — interactive lead-gen section styling.
   Builds on site.css tokens. Loaded only on /spy-tools/* pages.
   ============================================================ */

:root {
  --acc: var(--cyan);
  --acc-soft: rgba(53, 224, 255, 0.14);
}
.acc-cyan   { --acc: #35e0ff; --acc-soft: rgba(53, 224, 255, 0.14); }
.acc-red    { --acc: #ff3b4a; --acc-soft: rgba(255, 59, 74, 0.14); }
.acc-violet { --acc: #a879ff; --acc-soft: rgba(168, 121, 255, 0.16); }
.acc-green  { --acc: #37e6a0; --acc-soft: rgba(55, 230, 160, 0.14); }
.acc-amber  { --acc: #ffb23f; --acc-soft: rgba(255, 178, 63, 0.16); }

/* ---------- tools index hero ---------- */
.tools-hero {
  position: relative; overflow: hidden;
  padding: 200px 0 90px; min-height: 82svh;
  display: flex; align-items: center;
  background: radial-gradient(1100px 620px at 72% 14%, #0a1526, var(--bg-0) 62%),
              linear-gradient(180deg, #081020, var(--bg-0));
}
#tools-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tools-hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(180deg, transparent, var(--bg-0)); pointer-events: none; }
.tools-hero-inner { position: relative; z-index: 3; max-width: 900px; }
.tools-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin: 6px 0 22px;
}
.tools-hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan) 0%, #7deaff 40%, var(--red-hot) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tools-hero-lede { font-size: 1.12rem; max-width: 62ch; color: var(--ink-dim); }
.tools-hero-lede strong { color: var(--ink); }
.tools-trust {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 20px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--cyan-dim); text-transform: uppercase;
}

/* ---------- tools grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.tool-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--acc) 55%, transparent);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--acc) 45%, transparent);
}
.tool-card-glow {
  position: absolute; top: -40%; right: -30%; width: 60%; height: 80%;
  background: radial-gradient(circle, var(--acc-soft), transparent 70%);
  opacity: 0.7; transition: opacity 0.5s, transform 0.6s var(--ease-out); pointer-events: none;
}
.tool-card:hover .tool-card-glow { opacity: 1; transform: scale(1.2); }
.tool-ico {
  width: 58px; height: 58px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
}
.tool-ico svg { width: 30px; height: 30px; }
.tool-ico.big { width: 74px; height: 74px; border-radius: 18px; }
.tool-ico.big svg { width: 40px; height: 40px; }
.tool-card-body { position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-kquote { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); }
.tool-card h3 { font-size: 1.28rem; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-card p { font-size: 0.95rem; margin: 0; color: var(--ink-dim); }
.tool-card .cta-link { margin-top: auto; padding-top: 8px; color: var(--acc); }
.tool-card .cta-link::after { color: var(--acc); }
.tool-flag, .tool-flag {
  font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em;
  padding: 3px 7px; border-radius: 5px; background: var(--acc-soft); color: var(--acc);
  border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent);
}

/* ---------- individual tool page head ---------- */
.tool-head {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 180px 0 60px;
  background: linear-gradient(180deg, #081020, var(--bg-0));
}
#tool-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.tool-head .wrap { position: relative; z-index: 2; }
.tool-crumb { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: flex; gap: 10px; margin-bottom: 22px; }
.tool-crumb a { color: var(--ink-faint); } .tool-crumb a:hover { color: var(--acc); }
.tool-crumb span[aria-hidden] { color: var(--acc); }
.tool-head-row { display: flex; align-items: center; gap: 20px; }
.tool-head h1 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.tool-tagline { margin: 4px 0 0; color: var(--acc); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.tool-intro { max-width: 68ch; margin: 20px 0 0; font-size: 1.06rem; color: var(--ink-dim); }
.tool-privacy {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-dim);
  padding: 9px 15px; border-radius: 40px; background: rgba(55, 230, 160, 0.06); border: 1px solid rgba(55, 230, 160, 0.25);
}
.tool-privacy .dot { width: 8px; height: 8px; border-radius: 50%; background: #37e6a0; box-shadow: 0 0 10px #37e6a0; }
.tool-stage-sect { padding-top: clamp(30px, 4vw, 48px); }

/* ---------- shared tool stage ---------- */
.tool-stage-sect canvas { display: block; }

/* metadata detective */
.mtool { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .mtool { grid-template-columns: 1fr; } }
.md-drop {
  position: relative; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg);
  min-height: 320px; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  background: rgba(4, 7, 13, 0.4); transition: border-color 0.3s, background 0.3s;
}
.md-drop:hover, .md-drop:focus-visible, .md-drop.drag { border-color: var(--acc); background: var(--acc-soft); outline: none; }
.md-drop-inner { text-align: center; padding: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink-dim); }
.md-drop-inner strong { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.md-drop-inner span { font-size: 0.9rem; max-width: 34ch; }
.md-drop-ico { width: 56px; height: 56px; color: var(--acc); }
.md-drop-ico svg { width: 100%; height: 100%; }
#md-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #05070d; }
.md-scan { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--acc), transparent); box-shadow: 0 0 16px 2px var(--acc); animation: md-scan 1.5s var(--ease-out) infinite; }
@keyframes md-scan { 0% { top: 0; } 100% { top: 100%; } }
.md-hint { font-size: 0.85rem; color: var(--ink-faint); margin-top: 12px; }
.md-globe-wrap { position: relative; aspect-ratio: 1 / 1; max-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #0a1626, #04070d); }
#md-globe { width: 100%; height: 100%; }
.md-globe-empty { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; }
.md-report { margin-top: 18px; display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.md-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; background: var(--bg-2); font-size: 0.92rem; }
.md-row b { color: var(--ink-faint); font-weight: 500; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; align-self: center; }
.md-row span { color: var(--ink); }
.md-row.hit span { color: var(--acc); font-weight: 600; }
.md-row.gps span { color: #ff5b69; font-weight: 700; }
.md-actions { margin-top: 16px; }

/* password interrogation */
.ptool { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .ptool { grid-template-columns: 1fr; } }
.ptool-input { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pw-field { position: relative; }
.pw-field input { width: 100%; padding: 16px 52px 16px 16px; font-size: 1.1rem; font-family: var(--font-mono);
  background: rgba(4,7,13,0.7); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); }
.pw-field input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
#pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.2rem; cursor: pointer; opacity: 0.6; }
#pw-eye:hover { opacity: 1; }
.pw-privacy, .sv-note { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); display: flex; gap: 8px; align-items: center; }
.pw-privacy .dot { width: 7px; height: 7px; border-radius: 50%; background: #37e6a0; box-shadow: 0 0 8px #37e6a0; }
.pw-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: radial-gradient(circle at 50% 20%, #14060a, #04070d); }
#pw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pw-readout { position: relative; z-index: 2; padding: 26px; }
.pw-verdict { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.pw-time { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; margin: 6px 0; color: #fff; }
.pw-sub { color: var(--ink-dim); font-size: 0.95rem; min-height: 1.3em; }
.pw-meter { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.08); overflow: hidden; margin: 20px 0 18px; }
.pw-meter-fill { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #ff3b4a, #ffb23f, #37e6a0); transition: width 0.4s var(--ease-out); }
.pw-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pw-stats li { background: rgba(4,7,13,0.5); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.pw-stats span { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.pw-stats b { font-size: 1.1rem; color: var(--ink); }
.pw-feedback { margin-top: 16px; font-size: 0.9rem; color: var(--ink-dim); }
.pw-feedback .warn { color: #ffb23f; }

/* digital shadow */
.dtool { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
@media (max-width: 900px) { .dtool { grid-template-columns: 1fr; } }
.dtool-viz { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: radial-gradient(circle at 50% 45%, #0d0820, #04070d); }
#ds-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-score { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; z-index: 2; }
.ds-score-num { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: #fff; }
.ds-score-lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.dtool-report { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); }
.ds-lede { color: var(--ink-dim); }
.ds-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 1px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.ds-list li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 10px 14px; background: var(--bg-2); font-size: 0.9rem; }
.ds-list li b { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; align-self: center; }
.ds-list li span { color: var(--ink); word-break: break-word; }
.ds-id { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-faint); }
.ds-id code { color: var(--acc); }

/* surveillance */
.stool { display: flex; flex-direction: column; gap: 18px; }
.stool-stage { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #04070d; aspect-ratio: 16 / 9; }
#sv-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
#sv-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sv-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; background: rgba(4,7,13,0.72); }
.sv-note { max-width: 46ch; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-faint); }
.sv-hud { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 4; display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--acc); pointer-events: none; }
.sv-rec { display: inline-flex; align-items: center; gap: 7px; color: #ff3b4a; }
.sv-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b4a; box-shadow: 0 0 10px #ff3b4a; animation: blink 1.4s steps(2) infinite; }
.sv-status { margin-left: auto; }
.stool-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); }
.sv-ctl { flex: 1; min-width: 200px; }
.sv-ctl input[type=range] { width: 100%; }
.sv-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-dim); }
.sv-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sv-shots figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.sv-shots img { width: 100%; display: block; }
.sv-shots figcaption { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-faint); padding: 6px 10px; }

/* voice stress */
.vtool { display: flex; flex-direction: column; gap: 16px; }
.vtool-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: radial-gradient(circle at 50% 60%, #1a1206, #04070d); }
#vs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vs-overlay { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 30px; background: rgba(4,7,13,0.7); }
.vs-needle { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; text-align: center; }
.vs-reading { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #fff; letter-spacing: 0.02em; }
.vs-bar { width: min(80%, 420px); height: 10px; margin: 12px auto 6px; border-radius: 6px; background: rgba(255,255,255,0.08); overflow: hidden; }
.vs-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #37e6a0, #ffb23f, #ff3b4a); transition: width 0.15s linear; }
.vs-sub { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); }
.vs-tip { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- tool footer: share + next ---------- */
.tool-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .tool-foot { grid-template-columns: 1fr; } }
.tool-share h3 { margin-bottom: 8px; }
.tool-share p { color: var(--ink-dim); }
.share-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tool-next-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.tool-next-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.tool-next-card h4 { margin: 0; font-size: 1.05rem; }
.tool-next-card p { margin: 2px 0 0; font-size: 0.85rem; color: var(--ink-dim); }
.tool-next-card .cta-link { margin-left: auto; color: var(--acc); }

/* mobile: keep the Spy Tools NEW tag readable in the drawer */
@media (max-width: 1080px) { .nav-tag { transform: none; } }
