/* JZ Creates — LEARN section. Loads after pages.css on pages flagged _jzc_learn.
   Uses the 2026 tokens (--bg, --ink, --muted, --line, --crimson, --gold, --grad). */

/* ---------- hero ---------- */
/* the shared hero keeps h1 on one line; Learn headlines are longer */
.jzp .phero h1 { white-space: normal; text-wrap: balance; max-width: 22ch; margin-left: auto; margin-right: auto; }
/* italic gradient words lean past their box and background-clip trims the
   overhang; give them room on both sides without shifting the layout */
.jzp h1 em.grad, .jzp h2 em.grad { padding-left: .14em; margin-left: -.14em; padding-right: .16em; margin-right: -.1em; }
.jzp .phero--legal .phero__sub { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- badges ---------- */
.jzp .lx-badge {
  display: inline-flex; align-items: center; gap: .45rem; vertical-align: middle;
  padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid rgba(214,0,237,.45); background: rgba(255,255,255,.04);
  font-family: var(--font-body); font-size: .72rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  white-space: nowrap;
}
.jzp .lx-badge--soon::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 10px rgba(255,36,56,.6);
}

/* ---------- card grid ---------- */
.jzp .lx-grid { display: grid; gap: clamp(1rem, 1.8vw, 1.6rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jzp .lx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .jzp .lx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jzp .lx-grid, .jzp .lx-grid--2 { grid-template-columns: 1fr; } }

.jzp .lx-card {
  position: relative; display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.4rem, 2.2vw, 2rem); border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  min-width: 0;
}
.jzp .lx-card h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.15; }
.jzp .lx-card p { color: var(--muted); line-height: 1.6; }
/* `.lx-card p` would otherwise turn the house numbers grey: keep them crimson */
.jzp .lx-card p.jznum { margin-bottom: .2rem; color: var(--crimson); }

/* tool buttons: quiet grey, the brand gradient on hover */
.jzp .btn.lx-btn {
  position: relative; isolation: isolate; overflow: hidden;
  background: rgba(246,243,239,.09); color: var(--ink) !important;
  border: 1px solid rgba(246,243,239,.12);
}
.jzp .btn.lx-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .35s var(--ease-out);
}
.jzp .btn.lx-btn:hover, .jzp .btn.lx-btn:focus-visible {
  transform: translateY(-2px); border-color: transparent; color: #fff !important;
  box-shadow: 0 12px 40px rgba(255,36,56,.35);
}
.jzp .btn.lx-btn:hover::before, .jzp .btn.lx-btn:focus-visible::before { opacity: 1; }
.jzp .lx-card__cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.jzp .lx-card__actions { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .7rem; }
.jzp .lx-card .btn { padding: .8rem 1.3rem; font-size: .92rem; }

/* ---------- logos ---------- */
.jzp .lx-logo {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.jzp .lx-logo img { width: 28px; height: 28px; object-fit: contain; display: block; }

/* ---------- tool cards ---------- */
.jzp .lx-tool__head { display: flex; align-items: center; gap: .9rem; }
.jzp .lx-tool__head h3 { flex: 1; min-width: 0; }
.jzp .lx-tool__cat {
  align-self: flex-start; flex: 0 0 auto; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid rgba(232,196,124,.35); color: var(--gold);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
}
.jzp .lx-tools .lx-tool[hidden] { display: none; }
.jzp #toolFilters { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.jzp .lx-tool dl { display: grid; gap: .8rem; margin: .2rem 0 0; }
.jzp .lx-tool dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.jzp .lx-tool dd { margin: .25rem 0 0; color: var(--muted); line-height: 1.55; }
.jzp .lx-tool:target { border-color: rgba(214,0,237,.55); box-shadow: 0 0 0 1px rgba(214,0,237,.25), 0 30px 80px -40px rgba(214,0,237,.5); }
.jzp .lx-tools-group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.jzp .lx-tools-group > h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 1.4rem; }

/* category sub-menu (sticks under the fixed nav) */
.jzp .lx-subnav {
  position: sticky; top: 76px; z-index: 20;
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
  width: fit-content; max-width: 100%; margin: 0 auto;
  padding: .45rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(12,12,14,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.jzp .lx-subnav a {
  padding: .6rem 1.15rem; border-radius: 999px; color: var(--muted);
  font-size: .9rem; letter-spacing: .02em; transition: color .25s, background .25s;
}
.jzp .lx-subnav a:hover, .jzp .lx-subnav a.is-on { color: var(--ink); background: rgba(255,255,255,.08); }
.jzp .lx-subnav a.is-on { box-shadow: inset 0 0 0 1px rgba(214,0,237,.5); }
@media (max-width: 640px) {
  .jzp .lx-subnav { top: 68px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; border-radius: 18px; scrollbar-width: none; }
  .jzp .lx-subnav::-webkit-scrollbar { display: none; }
  .jzp .lx-subnav a { flex: 0 0 auto; padding: .55rem .95rem; }
}

.jzp .lx-disclaimer {
  max-width: 900px; margin: clamp(3.5rem, 6vw, 5rem) auto 0; padding-top: 1.6rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.6; text-align: center;
}

/* ---------- quadrant of tools (hub row 01) ---------- */
.jzp .svcrow__media.lx-quad {
  aspect-ratio: auto; min-height: 340px;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding: 10px;
  background: rgba(0,0,0,.35);
}
.jzp .lx-quad__tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; min-width: 0;
  padding: clamp(.9rem, 1.6vw, 1.4rem); border-radius: 12px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  transition: border-color .3s, transform .4s var(--ease-out);
}
.jzp .lx-quad__tile .lx-logo { margin-bottom: auto; }
.jzp .lx-quad__tile strong { color: var(--ink); font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; }
.jzp .lx-quad__tile span:last-child { color: var(--muted); font-size: .88rem; line-height: 1.4; }
.jzp .lx-quad__tile:hover { border-color: rgba(214,0,237,.55); transform: translateY(-2px); }
.jzp .lx-quad__num {
  margin-bottom: auto; font-family: var(--font-display); font-style: italic; font-size: 1.9rem; line-height: 1;
  color: var(--crimson); text-shadow: 0 0 14px rgba(255,36,56,.55), 0 0 30px rgba(214,0,237,.3);
}
@media (max-width: 640px) { .jzp .svcrow__media.lx-quad { grid-template-columns: 1fr; grid-template-rows: none; } .jzp .lx-quad__tile { min-height: 0; gap: .5rem; } .jzp .lx-quad__tile .lx-logo, .jzp .lx-quad__num { margin-bottom: .4rem; } }

/* ---------- YouTube that plays in place ---------- */
.jzp .lx-yt { position: relative; display: block; aspect-ratio: 16/9; background: #050506; overflow: hidden; cursor: pointer; }
.jzp .lx-yt > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.jzp .lx-yt:hover > img { transform: scale(1.04); }
.jzp .lx-yt > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.jzp .lx-yt__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 68px; height: 68px; margin: -34px 0 0 -34px;
  border-radius: 50%; border: 0; background: linear-gradient(135deg, #ff0000 0%, #d600ed 100%); cursor: pointer;
  box-shadow: 0 10px 34px -6px rgba(255,0,60,.55), 0 0 0 6px rgba(255,255,255,.08);
  transition: transform .3s, box-shadow .3s;
}
.jzp .lx-yt__play::after {
  content: ""; position: absolute; left: 27px; top: 22px;
  border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.jzp .lx-yt:hover .lx-yt__play { transform: scale(1.1); box-shadow: 0 14px 44px -6px rgba(214,0,237,.7), 0 0 0 8px rgba(255,255,255,.12); }
.jzp .lx-yt.is-playing .lx-yt__play, .jzp .lx-yt.is-playing .svcrow__tag { display: none; }

/* ---------- lessons ---------- */
.jzp .lx-lesson { padding: 0; overflow: hidden; }
.jzp .lx-lesson__body { display: flex; flex-direction: column; gap: .8rem; padding: clamp(1.3rem, 2vw, 1.8rem); flex: 1; }
.jzp .lx-lesson__body p strong { color: var(--ink); font-weight: 600; }
.jzp .lx-lesson__next { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .9rem; }
.jzp .lx-lesson__next a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- real work (16:9) ---------- */
.jzp .lx-case { position: relative; display: block; aspect-ratio: 16/9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #050506; }
.jzp .lx-case video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.jzp .lx-case:hover video { transform: scale(1.04); }
.jzp .lx-case__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
}
.jzp .lx-case__cap strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.jzp .lx-case__cap span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jzp .lx-note { margin-top: 1.4rem; text-align: center; }

/* ---------- workflow cards with autoplay video ---------- */
.jzp .lx-wf { padding: 0; overflow: hidden; }
.jzp .lx-wf__media { position: relative; display: block; aspect-ratio: 16/9; background: #050506; overflow: hidden; }
.jzp .lx-wf__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.jzp .lx-wf__media:hover video { transform: scale(1.04); }
.jzp .lx-wf__body { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.3rem, 2vw, 1.8rem); flex: 1; }

/* ---------- kit panel ---------- */
.jzp .lx-kit {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: start;
  padding: clamp(1.8rem, 3.2vw, 3.2rem); border-radius: 26px;
  border: 1px solid rgba(214,0,237,.28);
  background: radial-gradient(ellipse 80% 70% at 0% 0%, rgba(214,0,237,.10), transparent 70%), linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
@media (max-width: 960px) { .jzp .lx-kit { grid-template-columns: 1fr; } }
.jzp .lx-kit h3 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); line-height: 1.1; margin: 1rem 0; }
.jzp .lx-kit p { color: var(--muted); line-height: 1.65; }
.jzp .lx-kit__meta { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.jzp .lx-kit__files { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.jzp .lx-file {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25);
}
.jzp .lx-file::before { display: none; }
.jzp .lx-file__num {
  font-family: var(--font-display); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--crimson);
  text-shadow: 0 0 14px rgba(255,36,56,.55), 0 0 30px rgba(214,0,237,.3); min-width: 2.2rem;
}
.jzp .lx-file strong { display: block; color: var(--ink); font-weight: 600; }
.jzp .lx-file div span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: .15rem; }
.jzp .lx-file__type {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  padding: .35rem .65rem; border: 1px solid rgba(232,196,124,.35); border-radius: 999px;
}
/* phones: number top-left, file type top-right, title + description full width below */
@media (max-width: 640px) {
  .jzp .lx-file { grid-template-columns: 1fr auto; grid-template-areas: "num type" "body body"; gap: .7rem 1rem; }
  .jzp .lx-file__num { grid-area: num; }
  .jzp .lx-file__type { grid-area: type; justify-self: end; }
  .jzp .lx-file > div { grid-area: body; }
}

/* ---------- signup: form left, phone right ---------- */
.jzp .lx-signup-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 4vw, 4rem); align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.jzp .lx-signup {
  padding: clamp(1.8rem, 3vw, 2.8rem); border-radius: 26px;
  border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
}
.jzp .lx-signup h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; }
.jzp .lx-signup > p { color: var(--muted); margin-top: .8rem; line-height: 1.6; }
/* the phone is exactly as tall as the form card beside it */
.jzp .lx-phone-col { display: flex; justify-content: center; align-items: center; }
.jzp .phone.lx-phone { width: 340px; flex: 0 0 auto; } /* jzc-learn.js matches it to the form's height */
@media (max-width: 900px) {
  .jzp .lx-signup-wrap { grid-template-columns: 1fr; }
  .jzp .phone.lx-phone { width: min(320px, 80vw) !important; }
}
.jzp .lx-form { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.jzp .lx-form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .jzp .lx-form__row { grid-template-columns: 1fr; } }
.jzp .lx-form label { display: grid; gap: .45rem; font-size: .85rem; color: var(--muted); }
.jzp .lx-form input[type="text"], .jzp .lx-form input[type="email"] {
  width: 100%; padding: .95rem 1.1rem; border-radius: 12px; border: 1px solid rgba(246,243,239,.16);
  background: rgba(0,0,0,.35); color: var(--ink); font: inherit; font-size: 1rem;
}
.jzp .lx-form input:focus-visible { outline: 2px solid rgba(214,0,237,.7); outline-offset: 2px; }
.jzp .lx-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .65rem; grid-template-columns: 1fr 1fr; }
.jzp .lx-form legend { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; padding: 0; }
@media (max-width: 640px) { .jzp .lx-form fieldset { grid-template-columns: 1fr; } }
.jzp .lx-check--opt { padding-top: .9rem; border-top: 1px solid var(--line); }
.jzp .lx-check { display: flex !important; align-items: flex-start; gap: .7rem !important; color: var(--ink) !important; font-size: .95rem !important; line-height: 1.5; cursor: pointer; }
.jzp .lx-check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: #d600ed; flex: 0 0 auto; }
.jzp .lx-form__fine { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.jzp .lx-form__fine a { color: var(--ink); text-decoration: underline; }
.jzp .lx-form__msg { min-height: 1.4em; font-size: .95rem; color: var(--ink); }
.jzp .lx-form__msg.is-error { color: #ff6b78; }

.jzp .lx-card--more { border-style: dashed; border-color: rgba(214,0,237,.4); }

/* ---------- teaser ---------- */
.jzp .lx-teaser { text-align: center; max-width: 780px; margin: 0 auto; }
.jzp .lx-teaser p { color: var(--muted); line-height: 1.65; margin-top: 1rem; }
.jzp .lx-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }

/* anchor targets clear the fixed nav (+ the tools sub-menu) */
.jzp [id] { scroll-margin-top: 150px; }

/* ---------- lesson type label + filters ---------- */
.jzp .lx-lesson__cat { align-self: flex-start; }
.jzp .lx-lessons .lx-lesson[hidden] { display: none; }
.jzp #lessonFilters { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- sign-up options with short descriptions ---------- */
.jzp .lx-form fieldset { grid-template-columns: 1fr; gap: .6rem; }
.jzp .lx-opt {
  padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.025); transition: border-color .25s, background .25s;
}
.jzp .lx-opt:hover { border-color: rgba(246,243,239,.25); }
.jzp .lx-opt:has(input:checked) { border-color: rgba(214,0,237,.55); background: rgba(214,0,237,.07); }
.jzp .lx-opt > span { display: grid; gap: .2rem; }
.jzp .lx-opt strong { color: var(--ink); font-weight: 600; font-size: .98rem; }
.jzp .lx-opt small { color: var(--muted); font-size: .85rem; line-height: 1.45; }

/* ---------- who it's for / not for ---------- */
.jzp .lx-fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 1.8vw, 1.6rem); }
@media (max-width: 800px) { .jzp .lx-fit { grid-template-columns: 1fr; } }
.jzp .lx-fit__col h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.jzp .lx-fit__col ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .85rem; }
.jzp .lx-fit__col li { position: relative; padding-left: 2.1rem; color: var(--muted); line-height: 1.55; }
.jzp .lx-fit__col li::before {
  position: absolute; left: 0; top: .05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; line-height: 1;
}
.jzp .lx-fit__col--yes { border-color: rgba(214,0,237,.35); }
.jzp .lx-fit__col--yes li::before { content: "\2713"; color: #fff; background: linear-gradient(135deg, #ff0000, #d600ed); }
.jzp .lx-fit__col--no li::before { content: "\2715"; color: var(--muted); background: rgba(255,255,255,.07); border: 1px solid var(--line); }
