/* ───────────────────────────────────────────────
   Inspyred Technologies — REPAIR BENCH skin
   scoped to body.repair (Laptop & Desktop Repair page only)
   hardware diagnostics / PCB workbench: copper + cyan on slate
   loaded AFTER styles.css + service.css to override
   ─────────────────────────────────────────────── */

body.repair {
  --bg: #0b0f16;
  --panel: #121826;
  --panel-2: #161d2e;
  --line: #283447;
  --copper: #e0a44a;
  --copper-dim: #9c6f2e;
  --cyan: #4cd2e6;
  --ok: #57d98a;
  --amber: #ffb43b;
  --fail: #ff5e5e;
  --txt: #cdd6e4;
  --txt-dim: #8b97ad;

  /* gear/cog as a reusable mask (white = visible) */
  --gear: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Ccircle%20cx='12'%20cy='12'%20r='6'%20fill='none'%20stroke='white'%20stroke-width='3.4'/%3E%3Cg%20fill='white'%3E%3Crect%20x='19.5'%20y='10.5'%20width='3'%20height='3'/%3E%3Crect%20x='16.86'%20y='4.14'%20width='3'%20height='3'/%3E%3Crect%20x='10.5'%20y='1.5'%20width='3'%20height='3'/%3E%3Crect%20x='4.14'%20y='4.14'%20width='3'%20height='3'/%3E%3Crect%20x='1.5'%20y='10.5'%20width='3'%20height='3'/%3E%3Crect%20x='4.14'%20y='16.86'%20width='3'%20height='3'/%3E%3Crect%20x='10.5'%20y='19.5'%20width='3'%20height='3'/%3E%3Crect%20x='16.86'%20y='16.86'%20width='3'%20height='3'/%3E%3C/g%3E%3C/svg%3E");

  background:
    radial-gradient(circle at 50% -10%, rgba(224,164,74,.10), transparent 45%),
    var(--bg);
  color: var(--txt);
}

body.repair ::selection { background: var(--copper); color: #1a1206; }
body.repair .grain { display: none; }

/* PCB grid + via dots overlay */
.pcb-grid {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: .6;
  background-image:
    linear-gradient(rgba(224,164,74,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,164,74,.055) 1px, transparent 1px),
    radial-gradient(rgba(76,210,230,.12) 1.4px, transparent 1.7px);
  background-size: 38px 38px, 38px 38px, 76px 76px;
  background-position: 0 0, 0 0, 19px 19px;
  -webkit-mask: radial-gradient(circle at 50% 26%, #000 24%, transparent 80%);
  mask: radial-gradient(circle at 50% 26%, #000 24%, transparent 80%);
}
.pcb-sweep {
  position: fixed; left: 0; right: 0; top: 0;
  height: 180px;
  z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(76,210,230,.07) 60%, rgba(224,164,74,.06), transparent);
  animation: pcbsweep 7s linear infinite;
}
@keyframes pcbsweep { 0% { transform: translateY(-220px); } 100% { transform: translateY(120vh); } }

body.repair main, body.repair .nav, body.repair .foot { position: relative; z-index: 2; }

/* ── NAV ── */
body.repair .nav {
  background: rgba(11,15,22,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--copper-dim);
  box-shadow: 0 0 22px rgba(224,164,74,.16);
}
body.repair .nav-links a {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--txt-dim);
}
body.repair .nav-links a:hover { color: var(--copper); }
body.repair .nav-links a::after { background: var(--copper); box-shadow: 0 0 6px var(--copper); }
body.repair .phone-pill {
  background: var(--copper);
  color: #1a1206;
  border-radius: 6px;
  font-family: var(--mono);
  box-shadow: 0 0 16px rgba(224,164,74,.5);
}
body.repair .phone-pill .phone-prompt { color: #54380e; }
body.repair .phone-dot { background: #1a1206; box-shadow: 0 0 0 3px rgba(26,18,6,.3); }

/* ── HUD: POST-style diagnostics + health bar ── */
.diag-hud {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--txt-dim);
  border: 1px solid var(--line);
  background: rgba(18,24,38,.6);
  padding: 11px 14px;
  margin: 0 0 12px;
}
.diag-hud .tag { color: var(--copper); }
.diag-hud .pass { color: var(--ok); }
.diag-hud .work { color: var(--amber); }
.diag-hud .led {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 8px var(--copper);
  margin-right: 6px; vertical-align: middle;
  animation: blink 1.5s steps(1) infinite;
}
.diag-health {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  color: var(--txt-dim);
  margin: 0 0 26px;
}
.diag-health .bar {
  flex: 1; max-width: 360px;
  height: 9px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  overflow: hidden;
}
.diag-health .bar span {
  display: block; height: 100%; width: 6%;
  background: linear-gradient(90deg, var(--amber), var(--ok));
  box-shadow: 0 0 10px rgba(87,217,138,.6);
  animation: health 3.6s ease-in-out infinite;
}
.diag-health .pct { color: var(--ok); }
@keyframes health { 0% { width: 8%; } 75% { width: 100%; } 100% { width: 100%; } }
@keyframes blink { 50% { opacity: 0; } }

/* ── HERO ── */
body.repair .sp-crumbs,
body.repair .sp-crumbs a { color: var(--cyan); }
body.repair .sp-crumbs .here { color: var(--copper); }
body.repair .sp-crumbs .sep { color: var(--line); }
body.repair .sp-crumbs a:hover { color: var(--copper); border-bottom-color: var(--copper); }

body.repair .sp-hero-icon {
  background: var(--panel);
  color: var(--copper);
  border: 1px solid var(--copper);
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(224,164,74,.4);
}
body.repair .sp-h1 {
  font-family: var(--display);
  font-weight: 600;
  color: #eef2f8;
  text-shadow: 0 0 20px rgba(224,164,74,.3);
}
.sp-h1-sub {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(12px, 1.6vw, 16px);
  color: var(--copper);
  margin-top: 16px;
  letter-spacing: .02em;
}
body.repair .sp-lede { color: var(--txt-dim); }

/* ── buttons ── */
body.repair .btn {
  border-radius: 6px;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .03em;
}
body.repair .btn-primary {
  background: var(--copper);
  color: #1a1206;
  border: 1px solid #ffd99a;
  box-shadow: 0 0 16px rgba(224,164,74,.5);
}
body.repair .btn-primary:hover {
  background: #f2bd6b;
  color: #1a1206;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(224,164,74,.7);
}
body.repair .btn-ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 10px rgba(76,210,230,.25), inset 0 0 12px rgba(76,210,230,.12);
}
body.repair .btn-ghost:hover { background: var(--cyan); color: #042129; transform: translateY(-2px); }

/* ── diagnostics band ── */
.diag-band {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 28px 36px;
  display: grid;
  justify-items: center;
}
.diag-card {
  width: min(540px, 100%);
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 20px;
  box-shadow: 0 0 26px rgba(0,0,0,.45), inset 0 0 40px rgba(0,0,0,.25);
}
.diag-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(76,210,230,.16), transparent);
  animation: cardscan 3.2s linear infinite;
  pointer-events: none;
}
@keyframes cardscan { 0% { transform: translateY(-46px); } 100% { transform: translateY(300px); } }
.diag-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--cyan);
  margin: 0 0 16px;
}
.diag-head .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: blink 1s steps(1) infinite;
}
.diag-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-family: var(--mono); font-size: 13px; }
.diag-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: 4px;
  opacity: 0; transform: translateX(-8px);
  animation: diagIn .4s ease forwards;
}
.diag-list li:nth-child(1) { animation-delay: .2s; }
.diag-list li:nth-child(2) { animation-delay: .5s; }
.diag-list li:nth-child(3) { animation-delay: .8s; }
.diag-list li:nth-child(4) { animation-delay: 1.1s; }
.diag-list li:nth-child(5) { animation-delay: 1.4s; }
.diag-list span { color: var(--txt-dim); letter-spacing: .06em; }
.diag-list b { font-weight: 700; }
.diag-list .ok { color: var(--ok); }
.diag-list .repl { animation: repl 3.4s ease-in-out infinite; }
@keyframes diagIn { to { opacity: 1; transform: translateX(0); } }
@keyframes repl { 0%,42% { color: var(--fail); } 56%,100% { color: var(--ok); } }
.diag-result {
  text-align: center;
  font-family: var(--mono); font-size: 14px; letter-spacing: .06em;
  color: var(--txt);
  opacity: 0; animation: diagIn .5s ease forwards 1.8s;
}
.diag-result strong { color: var(--ok); }

/* ── section heads ── */
body.repair .sp-tag {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--copper);
}
body.repair .sp-h2 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(76,210,230,.25);
}
body.repair .sp-section-tint {
  background: linear-gradient(180deg, transparent, rgba(224,164,74,.06), transparent);
}

/* ── prose ── */
body.repair .sp-prose p { color: var(--txt); }
body.repair .sp-prose em {
  color: var(--copper);
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(224,164,74,.35);
}

/* ── diagnostics panel (quick facts) ── */
body.repair .sp-quickcard {
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 22px rgba(76,210,230,.15), inset 0 0 40px rgba(0,0,0,.4);
}
body.repair .sp-quickcard h2 { font-family: var(--mono); color: var(--cyan); }
body.repair .sp-facts > div { border-top: 1px dashed var(--line); }
body.repair .sp-facts dt { color: var(--copper); }
body.repair .sp-facts dd { font-family: var(--mono); font-size: 15px; color: #eef2f8; }

/* ── feature cards = repair toolkit ── */
body.repair .sp-features li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: 8px;
}
body.repair .sp-features li:hover {
  border-color: var(--cyan);
  border-top-color: var(--cyan);
  box-shadow: 0 0 20px rgba(76,210,230,.3);
  transform: translateY(-4px);
}
body.repair .sp-f-key { font-family: var(--mono); color: var(--copper); letter-spacing: .08em; }
body.repair .sp-features h3 { font-family: var(--display); font-weight: 600; color: #eef2f8; }
body.repair .sp-features p { color: var(--txt-dim); }

/* ── checklist with gear bullets ── */
body.repair .sp-checks li { color: var(--txt); padding-left: 36px; }
body.repair .sp-checks li::before {
  content: "";
  left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--copper);
  -webkit-mask: var(--gear) left center / contain no-repeat;
  mask: var(--gear) left center / contain no-repeat;
}
body.repair .sp-checks li:nth-child(2n)::before { background: var(--cyan); }
body.repair .sp-checks li:hover::before { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FAQ = service log ── */
body.repair .sp-faq details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
body.repair .sp-faq details[open] { border-color: var(--copper); box-shadow: 0 0 16px rgba(224,164,74,.25); }
body.repair .sp-faq summary { font-family: var(--display); font-weight: 600; color: #eef2f8; }
body.repair .sp-faq summary::after { color: var(--copper); }
body.repair .sp-faq p { color: var(--txt-dim); }

/* ── related chips ── */
body.repair .sp-related { border-top: 1px dashed var(--line); }
body.repair .sp-related .sp-related-label { color: var(--copper); }
body.repair .sp-related a {
  background: var(--panel);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
}
body.repair .sp-related a:hover { background: var(--cyan); color: #042129; transform: translateY(-1px); }

/* ── CTA ── */
body.repair .cta-card {
  background: linear-gradient(180deg, #14110b, #0b0f16);
  border: 1px solid var(--copper-dim);
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(224,164,74,.2);
}
body.repair .cta-prompt { font-family: var(--mono); color: var(--copper); }
body.repair .cta-title {
  font-family: var(--display);
  font-weight: 600;
  color: #eef2f8;
  text-shadow: 0 0 14px rgba(224,164,74,.35);
}
body.repair .cta-title span { color: var(--copper); font-style: normal; }
body.repair .cta-sub { color: var(--txt); }
body.repair .cta-meta { border-top-color: var(--line); }
body.repair .cta-meta dt { color: var(--cyan); }
body.repair .cta-meta dd { font-family: var(--mono); color: #eef2f8; }

/* ── footer ── */
body.repair .foot { background: rgba(11,15,22,.82); border-top: 1px solid var(--copper-dim); }
body.repair .foot-tag { color: var(--txt-dim); }
body.repair .foot-links a, body.repair .foot-social a { color: var(--txt-dim); }
body.repair .foot-links a:hover, body.repair .foot-social a:hover { color: var(--copper); border-bottom-color: var(--copper); }
body.repair .foot-fine { color: #6f7a90; border-top-color: var(--line); }
body.repair .foot-prompt { color: var(--copper); }

@media (prefers-reduced-motion: reduce) {
  .pcb-sweep, .diag-card::after, .diag-health .bar span, .diag-hud .led,
  .diag-head .led, .diag-list .repl, .sp-checks li:hover::before { animation: none !important; }
  .diag-list li, .diag-result { opacity: 1 !important; transform: none !important; }
}
