/* JobMap marketing site — "Signal·Violet", dark-first.
   Ported from the design handoff; tokens mirror the app exactly. */

html {
  --bg: #0E0F12;
  --bg2: #14151A;
  --bg3: #1B1D24;
  --tx: #E7E7EA;
  --tx2: #BCBCC4;
  --tx3: #ABABB2;
  --br: rgba(255, 255, 255, 0.09);
  --br2: rgba(255, 255, 255, 0.16);
  --brand: #A78BFA;
  --brand2: #C4B5FD;
  --brand3: #8B6FF5;
  --deep: #6D4FE0;
  --applied: #6BA6FF;
  --interview: #E8C97A;
  --offer: #6EE7B7;
  --danger: #F87171;
  --neutral: #7C7F8C;
  --glow: rgba(139, 111, 245, 0.22);
  --btntx: #0E0F12;
  --navbg: rgba(14, 15, 18, 0.82);
  --sun-d: inline-block;
  --moon-d: none;
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #F7F7F5;
  --bg2: #FFFFFF;
  --bg3: #FFFFFF;
  --tx: #1B1D24;
  --tx2: #4E505A;
  --tx3: #6A6C76;
  --br: rgba(20, 21, 26, 0.10);
  --br2: rgba(20, 21, 26, 0.18);
  --brand: #6D4FE0;
  --brand2: #8B6FF5;
  --brand3: #6D4FE0;
  --deep: #6D4FE0;
  --glow: rgba(139, 111, 245, 0.20);
  --btntx: #FFFFFF;
  --navbg: rgba(247, 247, 245, 0.85);
  --sun-d: none;
  --moon-d: inline-block;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand2); }
* { box-sizing: border-box; }
input::placeholder, textarea::placeholder { color: var(--tx3); opacity: .7; }

@keyframes jm-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Interactive states — replace the design's inline `style-hover`/`style-focus`
   attributes. !important beats the co-located inline base styles. */
.lnk:hover { color: var(--tx) !important; }
.btn-primary:hover { background: var(--brand2) !important; color: var(--btntx) !important; }
.btn-outline:hover { border-color: var(--brand) !important; color: var(--brand2) !important; }
.btn-toggle:hover { color: var(--tx) !important; border-color: var(--brand) !important; }
.btn-subscribe:hover { background: var(--brand) !important; color: var(--btntx) !important; }
.field:focus { border-color: var(--brand) !important; }

/* Screenshots platform tabs + carousels */
.shot-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--tx2);
  padding: 8px 18px;
  border-radius: 9px;
  transition: color .2s ease, background-color .2s ease;
}
.shot-tab:hover { color: var(--tx); }
.shot-tab[aria-selected="true"] { background: var(--brand); color: var(--btntx); }

.shot-panel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px 28px;
}
.shot-panel[hidden] { display: none; }

/* Carousel arrows — app.js wraps each panel in .shot-wrap and adds these */
.shot-wrap { position: relative; max-width: 1120px; margin: 0 auto; }
.shot-wrap[hidden] { display: none; }
.shot-wrap .shot-panel { max-width: none; margin: 0; }

.shot-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--br2);
  border-radius: 12px;
  background: var(--bg2);
  color: var(--tx2);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transition: color .2s ease, border-color .2s ease, opacity .2s ease;
}
.shot-arrow:hover { color: var(--brand); border-color: var(--brand); }
.shot-arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.shot-arrow[disabled] { opacity: 0; pointer-events: none; }
.shot-arrow-prev { left: 10px; }
.shot-arrow-next { right: 10px; }

/* Lightbox — content images expand into a modal (built by app.js) */
.lb-zoomable { cursor: zoom-in; }

/* display:flex would beat the UA's [hidden]{display:none} — without this rule
   a closed lightbox stays as an invisible full-screen overlay eating every
   click on the page. */
.lightbox[hidden] { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
  background: rgba(10, 10, 14, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .22s ease;
}
.lightbox.lb-open { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 130px);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  cursor: default;
  transform: scale(.97);
  transition: transform .22s ease;
}
.lightbox.lb-open img { transform: scale(1); }

.lb-caption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: min(90vw, 640px);
  font-family: 'Geist Mono', monospace;
  font-size: 12.5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background-color .2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.14); }
.lb-btn:focus-visible { outline: 2px solid #A78BFA; outline-offset: 2px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  /* Keep arrows reachable but off the image on small screens */
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
