/* Jozu Hub case study, gallery and flows.
   Loads AFTER css/kitops.css and only adds what that file does not have.
   The case-study accent (bullets, stat rules, quote rule) switches from KitOps gold to Jozu "Swift Wind". */

:root {
  --kit-gold: #2cfecc; /* reused by .points, .stat and .quote in kitops.css */
  --jz-mint: #2cfecc;
  --jz-forest: #051714;
  --jz-danger: #ff2e5b;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Hero ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.hero + .wrap .hero-img { margin-bottom: 0; }
/* Status board SVG framed on the blurred mint backdrop, same placement as the old flat screenshot */
.hero-img--status { position: relative; aspect-ratio: 2240 / 1495; background: #051714 url(../media/jozuhub/hero-status-bg.webp) center / cover no-repeat; }
.hero-img--status img, .hero-img--status .hero-svg { position: absolute; left: 8.884%; top: 11.371%; width: 82.188%; height: auto; max-width: none; }
.meta--below { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Tags ---------- */
.tag--mint { background: var(--jz-mint); }
.tag--danger { background: var(--jz-danger); color: #fff !important; }
.tag--muted { background: var(--surface-2); color: var(--ink) !important; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: var(--section-gap); counter-reset: step; }
.steps div { border: 1px solid var(--border); border-radius: 8px; padding: 24px; background: var(--surface); }
.steps div::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 16px; font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--accent); }
.steps b { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 500; color: var(--ink); }
.steps span { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ---------- Takeaways (4-up, reuses .why look) ---------- */
.why--wide b { font-size: 16px; }

/* ---------- Atomic ladder ---------- */
.ladder { max-width: var(--measure); margin: var(--section-gap) auto 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ladder > div { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ladder dt, .ladder .lv { font-size: 14px; color: var(--accent); font-family: var(--font-display); font-weight: 500; }
.ladder p { font-size: 15px; line-height: 24px; color: var(--ink); }
.ladder p span { color: var(--muted); }

/* ---------- Token table ---------- */
.tokens { max-width: var(--measure); margin: var(--section-gap) auto 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.tokens .row { display: grid; grid-template-columns: 1.1fr 1fr 1.5fr; gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.tokens .row:first-child { border-top: 0; }
.tokens .row--head { font-size: 12px; letter-spacing: 0.48px; color: var(--muted); background: var(--surface); }
.tokens code { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.tokens .raw { display: flex; align-items: center; gap: 8px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }
.tokens .dot { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid var(--line); }
.tokens .use { color: var(--muted); }

/* ---------- Decision: why A beats B ---------- */
.decision { max-width: var(--measure); margin: var(--section-gap) auto 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.decision .label { font-size: 12px; line-height: 20px; letter-spacing: 0.48px; color: var(--accent); text-transform: lowercase; }
.decision .vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; }
.decision .opt { border-radius: 8px; padding: 16px 20px; border: 1px solid var(--line); }
.decision .opt small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.decision .opt code { font-family: var(--font-mono); font-size: 15px; color: var(--ink); }
.decision .opt--win { border-color: var(--jz-mint); }
.decision .opt--win small { color: var(--jz-mint); }
.decision .beats { align-self: center; font-size: 13px; color: var(--muted); }
.decision p { font-size: 16px; line-height: 26px; color: var(--ink); }

/* ---------- Do / Don't ---------- */
.dodont .card h3 { font-size: 16px; }
.dodont .card ul { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 4px; }
.dodont .card li { font-size: 14px; line-height: 22px; color: var(--muted); padding-left: 18px; position: relative; }
.dodont .card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--jz-mint); }
.dodont .card--dont li::before { background: var(--jz-danger); }

/* ---------- Product tour ---------- */
.tour { margin-top: clamp(64px, 9vw, 112px); }
.tour:first-of-type { margin-top: var(--section-gap); }
.tour > .head { max-width: var(--measure); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.tour > .head h3 { font-weight: 400; font-size: 24px; line-height: 32px; }
.tour > .head p { font-size: 16px; line-height: 26px; color: var(--muted); }
.tour > .head .btn { margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.crop .frame img.pos-top { object-position: top; }
.ar-1536x1100 { --ar: 1536 / 1100; }
.ar-1536x1500 { --ar: 1536 / 1500; }
.ar-1x1 { --ar: 1 / 1; }
.ar-4x5 { --ar: 4 / 5; }
.g-side { grid-template-columns: 2fr 1fr; }
.g-side-r { grid-template-columns: 1fr 2fr; }
.strip .frame { background: var(--jz-forest); }

/* ---------- Brand credit ---------- */
.credit { max-width: var(--measure); margin: 24px auto 0; font-size: 13px; line-height: 20px; color: var(--muted); text-align: center; }

/* ---------- Flows page ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.flow-meta { max-width: var(--measure); margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 16px; }
.flow-meta dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 24px; font-size: 14px; line-height: 22px; }
.flow-meta dt { color: var(--muted); }
.flow-meta dd { color: var(--ink); }
.flow figure .frame { background: #3a3a3a; }
.zoom-hint { font-size: 13px; color: var(--muted); }

/* ---------- Lightbox zoom for wide flows (js/jozuhub-page.js) ---------- */
.lbx .stage img.zoomable { cursor: zoom-in; }
.lbx.zoomed .stage { justify-content: flex-start; }
.lbx.zoomed .stage img { max-width: none; width: auto; cursor: zoom-out; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .g-side, .g-side-r { grid-template-columns: 1fr; }
  .decision .vs { grid-template-columns: 1fr; }
  .decision .beats { justify-self: start; }
}
@media (max-width: 700px) {
  .tokens .row { grid-template-columns: 1fr 1fr; }
  .tokens .use { grid-column: 1 / -1; margin-top: -8px; }
  .ladder > div { grid-template-columns: 1fr; gap: 4px; }
  .decision { padding: 24px; }
  .flow-meta dl { grid-template-columns: 1fr; gap: 2px; }
  .flow-meta dd { margin-bottom: 8px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}
