:root {
  --color-bg: #000000;
  --color-surface: #0a0a0a;
  --color-surface-2: #050505;
  --color-accent: #FFB800;
  --color-text: #FFFFFF;
  --color-muted: #9ca3af;
  --color-faint: #6b7280;
  --color-border: #1a1a1a;
  --color-ok: #22c55e;
  --color-danger: #f87171;
  --jip-bg: var(--color-bg);
  --jip-card: var(--color-surface);
  --jip-line: var(--color-border);
  --jip-text: var(--color-text);
  --jip-muted: var(--color-muted);
  --jip-accent: var(--color-accent);
  --jip-gold: var(--color-accent);
  --jip-ok: var(--color-ok);
  --jip-radius: 0;
  --jip-tap: 48px;
  --jip-max: 1440px;
  --jip-sans: "Space Grotesk", system-ui, sans-serif;
  --jip-mono: "Space Grotesk", system-ui, sans-serif;
  --jip-display: "Archivo Black", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body.jip {
  margin: 0;
  font-family: var(--jip-sans);
  background: var(--jip-bg);
  color: var(--jip-text);
  line-height: 1.6;
  min-height: 100dvh;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--jip-accent); text-underline-offset: 3px; }
button, .jip-btn { min-height: var(--jip-tap); font: inherit; cursor: pointer; }
.jip-skip { position: absolute; left: -999px; }
.jip-skip:focus { left: 8px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; }

.jip-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  background: #000;
  border-bottom: 1px solid var(--jip-line);
}
.jip-brand {
  color: inherit; text-decoration: none;
  font-family: var(--jip-display);
  letter-spacing: -0.04em; font-size: 0.95rem;
  text-transform: uppercase;
  flex-shrink: 0;
}
.jip-brand span { color: var(--jip-gold); }
.jip-top nav {
  display: flex; gap: 2px; margin-left: auto; align-items: center;
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.jip-top nav::-webkit-scrollbar { display: none; }
.jip-top a {
  color: var(--jip-muted); text-decoration: none; font-size: 0.84rem; font-weight: 600;
  padding: 10px 12px; border-radius: 0; white-space: nowrap;
  min-height: var(--jip-tap); display: inline-flex; align-items: center;
}
.jip-top a[aria-current="page"] { color: #fff; background: #18181b; }
.jip-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--jip-gold); color: #000;
  color: #fff; font-weight: 800; font-size: 0.75rem; text-decoration: none;
}

.jip-wrap { width: min(var(--jip-max), calc(100% - 28px)); margin: 28px auto 40px; }
body.jip-landing .jip-wrap {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}
body.jip-landing { padding-bottom: 48px; }
.jip-hero { padding: 16px 0 40px; }
body.jip-landing .jip-hero { border-bottom: 1px solid var(--jip-line); }
.jip-kicker {
  color: var(--jip-gold); font-family: var(--jip-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px;
}
.jip-hero h1, .jip-display {
  font-family: var(--jip-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 16px; font-weight: 400;
  text-transform: uppercase;
}
body.jip-landing .jip-hero h1 { max-width: 18ch; }
.jip-lead {
  color: var(--jip-muted); font-size: 1.0625rem; line-height: 1.65;
  max-width: 65ch; margin: 0;
}
.jip-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 12px; }
.jip-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 0; padding: 0 18px; font-weight: 700; text-decoration: none;
  min-height: var(--jip-tap);
}
.jip-btn:focus-visible {
  outline: 2px solid var(--jip-gold); outline-offset: 3px;
}
.jip-btn-primary {
  background: var(--jip-gold);
  color: #000;
  font-family: var(--jip-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.875rem;
}
.jip-btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 #fff; }
.jip-btn-ghost { background: transparent; color: #fff; border: 1px solid #2a2a2a; font-weight: 600; }
.jip-btn-ghost:hover { border-color: var(--jip-gold); color: var(--jip-gold); }
.jip-btn-gold { background: var(--jip-gold); color: #111; }
.jip-top a:focus-visible {
  outline: 2px solid var(--jip-gold); outline-offset: 2px;
}

.jip-grid { display: grid; gap: 14px; }
@media (min-width: 860px) {
  .jip-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .jip-grid-2 { grid-template-columns: 1.15fr 0.85fr; }
  .jip-split { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 20px; align-items: start; }
  body.jip { padding-bottom: 32px; }
  .jip-dock { display: none !important; }
}

.jip-card {
  background: var(--jip-card);
  border: 1px solid var(--jip-line);
  border-radius: var(--jip-radius);
  padding: 20px;
}
.jip-card h2, .jip-card h3 { margin: 0 0 8px; letter-spacing: -0.02em; }
.jip-muted { color: var(--jip-muted); font-size: 0.95rem; line-height: 1.6; }
.jip-quote {
  font-family: var(--jip-sans);
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em;
  border-left: 3px solid var(--jip-gold); padding-left: 14px; margin: 0 0 16px;
  line-height: 1.35; text-transform: none;
}

/* Landing: static path + modules */
.jip-path { padding: 48px 0 40px; border-bottom: 1px solid var(--jip-line); }
.jip-path h2 {
  font-family: var(--jip-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 0 0 12px; font-weight: 400; line-height: 1.1;
}
.jip-path-intro { margin-bottom: 28px; }
.jip-path-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0; border-top: 1px solid var(--jip-line);
}
@media (min-width: 720px) {
  .jip-path-grid { grid-template-columns: repeat(3, 1fr); }
}
.jip-path-step {
  padding: 24px 0;
  border-bottom: 1px solid var(--jip-line);
}
@media (min-width: 720px) {
  .jip-path-step {
    padding: 24px 20px 24px 0;
    border-bottom: 0;
    border-right: 1px solid var(--jip-line);
  }
  .jip-path-step:last-child { border-right: 0; padding-right: 0; }
  .jip-path-step:not(:first-child) { padding-left: 20px; }
}
.jip-path-num {
  display: block; color: var(--jip-gold);
  font-family: var(--jip-display); font-size: 0.8rem;
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.jip-path-step h3 {
  margin: 0 0 8px; font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.02em;
}
.jip-path-step .jip-muted { margin: 0; max-width: 36ch; }

.jip-modules { padding: 48px 0 40px; border-bottom: 1px solid var(--jip-line); }
.jip-modules h2 {
  font-family: var(--jip-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 0 0 20px; font-weight: 400;
}
.jip-mod-list { display: grid; gap: 0; }
.jip-mod-row {
  display: grid; gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--jip-line);
}
.jip-mod-row:last-child { border-bottom: 1px solid var(--jip-line); }
@media (min-width: 640px) {
  .jip-mod-row {
    grid-template-columns: minmax(9rem, 11rem) 1fr;
    gap: 16px; align-items: baseline;
  }
}
.jip-mod-row strong { font-weight: 700; letter-spacing: -0.01em; }
.jip-mod-row span { color: var(--jip-muted); font-size: 0.95rem; line-height: 1.5; }

.jip-faq { padding: 48px 0 16px; }
.jip-faq h2 {
  font-family: var(--jip-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.03em; text-transform: uppercase;
  margin: 0 0 16px; font-weight: 400;
}

.jip-progress { height: 4px; background: #1a1a1a; border-radius: 0; overflow: hidden; }
.jip-progress > span { display: block; height: 100%; background: var(--jip-gold); }

.jip-continue {
  display: block; text-decoration: none; color: inherit;
  background: var(--jip-card);
  border: 1px solid var(--jip-line);
  padding: 22px;
  border-radius: 0;
}
.jip-continue:hover { border-color: var(--jip-accent); }

.jip-mod { margin-bottom: 14px; }
.jip-mod > summary {
  list-style: none; cursor: pointer; font-weight: 800;
  padding: 4px 0 12px; font-size: 1.05rem;
}
.jip-mod > summary::-webkit-details-marker { display: none; }
.jip-lesson {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 0; text-decoration: none; color: inherit;
  border: 1px solid transparent;
}
.jip-lesson:hover { background: #141418; border-color: #2a2a32; }
.jip-badge {
  flex: 0 0 auto; min-width: 46px; height: 46px; border-radius: 0;
  display: grid; place-items: center; font-weight: 800; background: #111; font-size: 0.78rem;
  border: 1px solid var(--jip-line);
}
.jip-badge.done { background: #052e16; color: #86efac; }
.jip-badge.next { background: var(--jip-gold); color: #000; }

.jip-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.jip-tabs button {
  border: 1px solid var(--jip-line); background: #0a0a0a; color: var(--jip-muted);
  border-radius: 0; padding: 8px 14px; white-space: nowrap;
}
.jip-tabs button[aria-selected="true"] { color: #000; border-color: var(--jip-accent); background: var(--jip-gold); }

.jip-prose h3.jip-block {
  margin: 1.5rem 0 0.5rem; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--jip-gold); font-family: var(--jip-mono);
}
.jip-prose p { margin: 0 0 0.9rem; }
.jip-prose aside {
  border-left: 3px solid var(--jip-accent);
  padding: 10px 14px; margin: 0 0 1rem; background: #0a0a0a; border-radius: 0;
  color: var(--jip-muted); font-size: 0.92rem;
}
.jip-prose .jip-warn { border-color: #f59e0b; }
.jip-prose .jip-lettering { border-color: var(--jip-gold); }
.jip-prose .jip-tela { border-color: #38bdf8; }

textarea, input, select {
  width: 100%; background: #09090b; color: #fff; border: 1px solid var(--jip-line);
  border-radius: 0; padding: 14px; font: inherit;
}
label { display: block; font-weight: 650; margin: 14px 0 6px; }
.jip-tool {
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--jip-line); text-decoration: none; color: inherit;
}
.jip-kind { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--jip-gold); font-family: var(--jip-mono); }

.jip-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #09090f; border-top: 1px solid var(--jip-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.jip-dock a {
  min-height: 58px; display: grid; place-items: center; text-align: center;
  text-decoration: none; color: var(--jip-muted); font-size: 0.7rem; font-weight: 700;
}
.jip-dock a[aria-current="page"] { color: #fff; }

.jip-toast {
  position: fixed; bottom: calc(84px + env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%); background: #fff; color: #111; padding: 10px 16px;
  border-radius: 0; font-weight: 700; font-size: 0.85rem; z-index: 40;
}
.jip-faq details { border-bottom: 1px solid var(--jip-line); padding: 10px 0; }
.jip-faq summary {
  cursor: pointer; font-weight: 700; min-height: var(--jip-tap);
  display: flex; align-items: center;
}
.jip-faq summary:focus-visible {
  outline: 2px solid var(--jip-gold); outline-offset: 2px;
}
.jip-faq details p { margin: 0 0 12px; max-width: 65ch; }

.jip-gate {
  max-width: 440px; margin: 48px auto; text-align: center;
}
.jip-steps { display: grid; gap: 16px; counter-reset: s; }
.jip-step { padding-left: 48px; position: relative; }
.jip-step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 0;
  background: var(--jip-gold); color: #000; display: grid; place-items: center; font-weight: 800;
}
.jip-dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.jip-dots span { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; }
.jip-dots span.on { background: var(--jip-gold); width: 22px; border-radius: 99px; }

.jip-stat { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.jip-lock {
  min-height: 50vh; display: grid; place-items: center; text-align: center; padding: 40px 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
