/* Jev Ultrafast product pages - additions on top of /assets/subpage.css (Neurise design system).
   Only page-specific components live here; tokens, nav, hero, sections, FAQ and footer come from subpage.css. */

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 0 0 10px 0; font-weight: 600; }
.skip:focus { left: 0; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

/* hero */
.phero .crumbs a { color: var(--paper-3); }
.phero .crumbs a:hover { color: var(--paper); }
.phero .pill { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--paper-3); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 46px; max-width: 900px; border-top: 1px solid var(--line); }
.stat { padding: 20px 20px 4px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat .num { font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -.02em; color: var(--paper); font-variant-numeric: tabular-nums; }
.stat .num b { color: var(--orange-500); font-weight: 600; }
.stat .lbl { margin-top: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-3); }
.tldr { margin-top: 40px; max-width: 780px; padding: 22px 26px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.tldr .k { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-500); margin-bottom: 8px; }
.tldr p { font-size: 16.5px; line-height: 1.65; color: var(--paper-2); }
.tldr b { color: var(--paper); font-weight: 600; }

/* video */
.video-frame { position: relative; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; max-width: 100%; box-shadow: 0 40px 120px rgba(0,0,0,.5), 0 0 0 1px rgba(255,127,17,.08); }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--paper-3); }
.video-meta b { color: var(--paper-2); font-weight: 500; }
.chapters { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 22px; }
.chapters li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--paper-2); line-height: 1.45; }
.chapters .t { display: block; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--orange-500); margin-bottom: 4px; }

/* how-to steps */
.steps { list-style: none; display: grid; gap: 16px; max-width: 880px; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px 26px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.step .n { width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(255,127,17,.14); border: 1px solid rgba(255,127,17,.34); color: var(--orange-500); font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 500; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--paper); margin-bottom: 8px; }
.step p, .step li { font-size: 15.5px; line-height: 1.65; color: var(--paper-2); }
.step p + p { margin-top: 8px; }
.step ul { margin: 8px 0 0 20px; }
.step li { margin-bottom: 4px; }
.step strong { color: var(--paper); font-weight: 600; }
code, kbd { font-family: 'JetBrains Mono', monospace; font-size: .88em; color: var(--turq); background: rgba(197,254,236,.08); border: 1px solid rgba(197,254,236,.16); border-radius: 6px; padding: 1px 6px; }
.shot { margin-top: 16px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--violet-deep); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--paper-3); border-top: 1px solid var(--line); }

/* providers table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; max-width: 980px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-3); font-weight: 500; background: rgba(255,255,255,.02); }
.tbl td { color: var(--paper-2); line-height: 1.55; }
.tbl td:first-child { color: var(--paper); font-weight: 600; white-space: nowrap; }
.tag-ok { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; color: var(--turq); border: 1px solid rgba(197,254,236,.3); border-radius: 999px; padding: 1px 8px; }

/* safety rules */
.rules { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.rules li { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(255,255,255,.02); }
.rules .rk { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-500); margin-bottom: 8px; }
.rules p { font-size: 15px; line-height: 1.62; color: var(--paper-2); }
.rules strong { color: var(--paper); }

/* author / publisher */
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; }
.who { padding: 28px; border: 1px solid var(--line-2); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); }
.who .role { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-3); }
.who .name { margin-top: 10px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--paper); }
.who p { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--paper-2); }
.who .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.who .links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--paper-2); transition: border-color .2s, color .2s; }
.who .links a:hover { border-color: var(--orange-500); color: var(--paper); }

/* prose links inside content */
.prose a, .legal-doc a, .step a, .rules a, .faq .a a, .tldr a, .who p a, .issue a { color: var(--orange-500); border-bottom: 1px solid rgba(255,127,17,.35); }
.prose a:hover, .legal-doc a:hover, .step a:hover, .rules a:hover, .faq .a a:hover, .tldr a:hover, .who p a:hover, .issue a:hover { border-bottom-color: var(--orange-500); }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: .08em; color: var(--paper-3); }
.legal-doc h3 { font-size: 17px; font-weight: 600; color: var(--paper); margin: 18px 0 8px; }
.legal-doc .tbl-wrap { margin: 10px 0 18px; }
.legal-doc .lang-sep { margin: 56px 0 8px; padding-top: 32px; border-top: 1px solid var(--line); }

/* troubleshooting */
.issues { display: grid; gap: 14px; max-width: 900px; }
.issue { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(255,255,255,.02); }
.issue h3 { font-size: 17.5px; font-weight: 600; color: var(--paper); }
.issue .why, .issue .fix { margin-top: 8px; font-size: 15px; line-height: 1.62; color: var(--paper-2); }
.issue .why b, .issue .fix b { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-500); font-weight: 500; margin-right: 6px; }
.changelog { list-style: none; display: grid; gap: 14px; max-width: 820px; }
.changelog li { padding: 18px 22px; border-left: 2px solid var(--line-2); }
.changelog .v { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--orange-500); }
.changelog p { margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--paper-2); }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .author-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-frame { box-shadow: none; }
}

/* scroll story: neurise story engine (text chapters, left) + the walkthrough scrubbed by scroll (stage, right) */
.jev-story .pagemark a { pointer-events: auto; color: var(--paper-3); }
.jev-story .pagemark a:hover { color: var(--paper); }
.jev-stage { position: absolute; z-index: 2; right: max(32px, 4vw); top: 52%; width: min(54vw, calc((100vh - 250px) * 16 / 9)); transform: translateY(-50%); }
.jev-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--grad-violet); box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,127,17,.08); }
.jev-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--eo); }
.jev-frame.ready iframe { opacity: 1; }
.jev-tc { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-3); }
.jev-tc [data-clock] { color: var(--paper); font-variant-numeric: tabular-nums; }
.jev-story .chapter { justify-content: flex-start; padding-left: max(32px, 4vw); padding-right: max(32px, 4vw); }
.jev-story .chapter .inner { width: min(440px, 34vw); transform: none; }
.jev-story .chapter h1, .jev-story .chapter h2 { font-size: clamp(28px, 3vw, 46px); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
.jev-story .chapter h1 em { font-family: 'Playfair Display', 'Playfair Fallback', serif; font-style: italic; font-weight: 500; color: var(--orange-500); }
.jev-story .chapter p.lead { margin-top: 18px; font-size: clamp(15px, 1.2vw, 18px); }
.ch-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ch-cta .btn { padding: 13px 22px; font-size: 14.5px; }
#w-skrocie .tldr { margin-top: 0; }
@media (max-width: 900px) {
  .jev-story .pagemark { display: none; }
  .jev-stage { top: 84px; left: 16px; right: 16px; width: auto; transform: none; }
  .jev-tc { margin-top: 8px; }
  .jev-tc span + span { display: none; }
  .jev-story .chapter { align-items: flex-start; padding: calc(84px + (100vw - 32px) * 9 / 16 + 40px) 22px 90px; }
  /* the engine drifts chapters up by 110px on phones; here that would slide copy under the stage, so crossfade in place */
  .jev-story .chapter { transform: none !important; }
  .jev-story .chapter .inner { width: 100%; }
  .jev-story .chapter h1, .jev-story .chapter h2 { font-size: clamp(25px, 7vw, 34px); }
  .jev-story .chapter p.lead { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
  .jev-story .chapter .note { margin-top: 12px; font-size: 12.5px; }
  .ch-cta { gap: 10px; margin-top: 18px; }
  .ch-cta .btn { padding: 12px 16px; font-size: 14px; }
}
@media (max-width: 900px) and (max-height: 740px) { .jev-story .chapter .note { display: none; } }
