/* ==========================================================================
   JMJ Software Solutions — main stylesheet (v2)
   Layout grid + spacing utilities come from bootstrap-lite.min.css.
   Everything visual is defined here. Tokens first, then components.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #7962b7;        /* JMJ purple: CTAs, active states, accents */
  --brand-deep: #5b46a0;   /* hover + purple text on white (AA) */
  --brand-tint: #efebf8;   /* quiet purple surface */
  --ink: #1d1a3a;          /* headings, dark sections */
  --text: #393650;         /* body copy */
  --muted: #6a6782;        /* secondary copy */
  --mist: #f6f5fa;         /* alternate section background */
  --line: #e4e1ee;         /* hairlines */
  --white: #ffffff;
  --ok: #1f7a55; --ok-bg: #e5f4ed;
  --warn: #9a5b00; --warn-bg: #fdf1dc;
  --hold: #a33a3a; --hold-bg: #fbe7e7;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-panel: 0 30px 60px -30px rgba(29, 26, 58, .35), 0 2px 6px rgba(29, 26, 58, .06);

  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.6vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem);
  --fs-h3: 1.1875rem;
  --section: clamp(4rem, 3rem + 4vw, 7rem);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.25rem; }
h2 { font-size: var(--fs-h2); font-weight: 780; line-height: 1.12; letter-spacing: -.028em; margin-bottom: 1rem; }
h3 { font-size: var(--fs-h3); font-weight: 680; line-height: 1.3; letter-spacing: -.01em; margin-bottom: .5rem; }
p { margin-bottom: 1rem; max-width: 70ch; }
a { color: var(--brand-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
strong, b { font-weight: 650; color: var(--ink); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s); }
.skip:focus { top: 1rem; color: #fff; }

.lede { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.measure { max-width: 68ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 620; font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
  min-height: 48px;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--brand-tint); color: var(--ink); }
.btn--line-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--line-light:hover { background: #fff; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@media (min-width: 1200px) { @supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(10px); } } }
.site-header__in { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand__name { font-weight: 750; font-size: 1rem; line-height: 1.05; letter-spacing: -.01em; }
.brand__name small { font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: 0; }
.brand--light { color: #fff; }
.brand--light img { background: #fff; border-radius: 8px; padding: 3px; }

.navtoggle { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem; font: inherit; font-weight: 600; color: var(--ink); min-height: 44px; }
.navtoggle__bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.navtoggle__bars::before, .navtoggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s; }
.navtoggle__bars::before { top: -6px; } .navtoggle__bars::after { top: 6px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.sitenav { display: none; }
.sitenav.is-open { display: block; position: fixed; inset: 72px 0 0 0; background: #fff; overflow-y: auto; padding: 1rem 1.25rem 6rem; }
.sitenav__list { list-style: none; margin: 0; padding: 0; }
.sitenav__list > li { border-bottom: 1px solid var(--line); }
.sitenav__link { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1rem 0; font: inherit; font-weight: 620; color: var(--ink); text-decoration: none; background: none; border: 0; text-align: left; }
.sitenav__btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; margin-left: .5rem; }
.sitenav__btn[aria-expanded="true"]::after { transform: rotate(-135deg); }
.sitenav__link[aria-current="page"], .sitenav__link.is-active { color: var(--brand-deep); }
.panel { display: none; padding: 0 0 1rem; }
.panel.is-open { display: block; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel a { text-decoration: none; color: var(--text); display: block; padding: .45rem 0; }
.panel a:hover { color: var(--brand-deep); }
.panel__head { font-size: .8rem; font-weight: 650; color: var(--muted); margin: 1rem 0 .25rem; }
.panel__group a b { display: block; color: var(--ink); font-weight: 620; }
.panel__group a span { display: block; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.panel__group .is-child a { padding-left: 1rem; border-left: 2px solid var(--brand-tint); }
.panel__foot { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.panel__foot a, .panel__all a { font-weight: 620; color: var(--brand-deep); }
.sitenav__cta { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.link-phone { font-weight: 620; color: var(--ink); text-decoration: none; }

@media (min-width: 1200px) {
  .navtoggle { display: none; }
  .sitenav { display: flex; align-items: center; flex: 1; gap: 1rem; }
  .sitenav.is-open { position: static; padding: 0; overflow: visible; }
  .sitenav__list { display: flex; gap: .25rem; margin-left: auto; }
  .sitenav__list > li { border: 0; position: relative; }
  .sitenav__link { padding: .55rem .8rem; border-radius: 999px; font-size: .97rem; width: auto; }
  .sitenav__link:hover { background: var(--mist); }
  .sitenav__cta { flex-direction: row; align-items: center; margin: 0 0 0 .75rem; gap: 1rem; }
  .link-phone { font-size: .95rem; }
  .panel { position: absolute; top: calc(100% + 12px); left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-panel); padding: 1.25rem 1.5rem; min-width: 300px; }
  .panel--mega { position: fixed; left: 50%; transform: translateX(-50%); top: 76px; width: min(820px, 94vw); padding: 1.5rem 2rem 1.25rem; }
  .panel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 2.5rem; }
  .panel--short { min-width: 200px; }
  .panel__head { margin-top: .5rem; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #d9d6ea; }
.section--ink h2, .section--ink h3, .section--ink strong, .section--ink b { color: #fff; }
.section--ink a { color: #d3c8f5; }
.section--tight { padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.kicker { display: block; font-size: .95rem; font-weight: 620; color: var(--brand-deep); margin-bottom: .6rem; }
.section--ink .kicker { color: #bfb2ee; }

/* ---------- Product hero ---------- */
.hero { padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) clamp(3.5rem, 3rem + 3vw, 6rem); position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto auto; width: min(58vw, 760px); height: 100%; background: linear-gradient(180deg, var(--brand-tint), rgba(239,235,248,0)); border-bottom-left-radius: 80px; z-index: -1; }
.hero__for { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.hero__for li { font-size: .9rem; padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.hero__note { margin-top: 1.25rem; font-size: .95rem; color: var(--muted); }
.hero__visual { position: relative; }

/* Illustrative UI panel */
.uipanel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-panel); overflow: hidden; margin: 0; }
.uipanel__bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--mist); }
.uipanel__bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8d4e6; }
.uipanel__bar b { margin-left: .5rem; font-size: .88rem; font-weight: 650; }
.uipanel__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: .85rem 1rem 0; }
.uipanel__chips span { font-size: .78rem; padding: .2rem .6rem; border-radius: 999px; background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.uipanel__t { width: 100%; border-collapse: collapse; font-size: .84rem; margin: .5rem 0 0; }
.uipanel__t th { text-align: left; font-weight: 600; color: var(--muted); padding: .55rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.uipanel__t td { padding: .6rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.uipanel__t tr:last-child td { border-bottom: 0; }
.uipanel figcaption { font-size: .75rem; color: var(--muted); padding: .6rem 1rem; border-top: 1px solid var(--line); background: var(--mist); }
.pill { display: inline-block; font-size: .75rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok); }
.pill--warn { background: var(--warn-bg); color: var(--warn); }
.pill--hold { background: var(--hold-bg); color: var(--hold); }
@media (max-width: 575.98px) { .uipanel__t th:nth-child(n+4), .uipanel__t td:nth-child(n+4) { display: none; } }

/* ---------- Summary / definition box (AEO) ---------- */
.answer { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; margin: 0 0 1.5rem; }
.answer p { font-size: 1.15rem; color: var(--ink); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 2rem 0 0; }
.facts div { padding: 1.1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: .2rem 0 0; color: var(--ink); font-weight: 560; }

/* ---------- Challenge → consequence → capability rows ---------- */
.ccc { border-top: 2px solid var(--ink); }
.ccc__head, .ccc__row { display: grid; gap: .5rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.ccc__head { display: none; font-size: .85rem; font-weight: 650; color: var(--muted); padding: .8rem 0; }
.ccc__row h3 { font-size: 1.06rem; margin: 0; }
.ccc__row p { margin: 0; font-size: .98rem; }
.ccc__row .ccc__cap { color: var(--ink); }
.ccc__row .ccc__cap a { font-weight: 600; }
.ccc__lab { display: block; font-size: .78rem; font-weight: 650; color: var(--muted); margin-bottom: .15rem; }
@media (min-width: 992px) {
  .ccc__head, .ccc__row { grid-template-columns: 1.1fr 1fr 1.2fr; }
  .ccc__head { display: grid; }
  .ccc__lab { display: none; }
}

/* ---------- Feature / module inventory ---------- */
.modules { display: grid; grid-template-columns: 1fr; gap: 0 3rem; }
@media (min-width: 768px) { .modules { grid-template-columns: 1fr 1fr; } }
.module { padding: 1.5rem 0 1.25rem; border-top: 1px solid var(--line); }
.module h3 { display: flex; gap: .75rem; align-items: baseline; }
.module p { font-size: .99rem; margin-bottom: .6rem; }
.module ul { padding-left: 1.1rem; margin: 0 0 .5rem; font-size: .97rem; }
.module li { margin-bottom: .3rem; }
.module li::marker { color: var(--brand); }
.module .why { font-size: .93rem; color: var(--muted); margin: 0; }
.module .why b { color: var(--text); font-weight: 600; }
.module-group { margin-bottom: 3rem; }
.module-group > h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.module-group > p { color: var(--muted); }

/* ---------- Workflow rail (signature element) ---------- */
.rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: step; position: relative; }
.rail__step { position: relative; padding: 0 0 1.75rem 2.75rem; counter-increment: step; }
.rail__step::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; z-index: 1; }
.rail__step::after { content: ""; position: absolute; left: calc(.95rem - 1px); top: 1.8rem; bottom: 0; width: 2px; background: linear-gradient(var(--brand), var(--line)); }
.rail__step:last-child::after { display: none; }
.rail__step strong { display: block; font-size: 1.05rem; color: var(--ink); }
.rail__step span { display: block; font-size: .95rem; color: var(--muted); margin-top: .2rem; max-width: 40ch; }
.section--ink .rail__step strong { color: #fff; }
.section--ink .rail__step span { color: #bdb8d6; }
.section--ink .rail__step::after { background: linear-gradient(#a593e0, rgba(255,255,255,.12)); }
@media (min-width: 992px) {
  .rail { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; }
  .rail__step { padding: 3rem 0 0; }
  .rail__step::before { top: 0; left: 0; }
  .rail__step::after { left: 2.2rem; right: -1.25rem; top: calc(.95rem - 1px); bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--brand), var(--line)); }
  .section--ink .rail__step::after { background: linear-gradient(90deg, #a593e0, rgba(255,255,255,.12)); }
}

/* ---------- Benefits / two-column prose ---------- */
.split { display: grid; gap: 2rem; }
@media (min-width: 992px) { .split { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.ticks li b { display: block; }
.section--ink .ticks li { border-color: rgba(255,255,255,.12); }

.note { background: var(--brand-tint); border-radius: var(--radius-m); padding: 1.25rem 1.5rem; font-size: .97rem; color: var(--text); }
.note p:last-child { margin: 0; }
.note b { color: var(--ink); }

/* Evaluation checklist */
.checklist { counter-reset: q; list-style: none; padding: 0; margin: 0; display: grid; gap: 0 3rem; }
@media (min-width: 768px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { padding: 1.1rem 0 1.1rem 2rem; border-top: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 14px; height: 14px; border: 2px solid var(--brand); border-radius: 3px; }
.checklist b { display: block; }
.checklist span { font-size: .96rem; color: var(--muted); }

/* Who it suits */
.fit { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fit > div { padding: 1.25rem 1.25rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.fit h3 { font-size: 1.02rem; }
.fit p { font-size: .95rem; margin: 0; color: var(--muted); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .9rem 1rem .9rem 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .88rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--ink); }
.compare tbody th { color: var(--ink); font-weight: 650; width: 28%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.08rem; font-weight: 650; }
.faq__item summary::after { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint) center / 10px 10px no-repeat linear-gradient(var(--brand-deep), var(--brand-deep)), var(--brand-tint); background-image: linear-gradient(var(--brand-deep), var(--brand-deep)), linear-gradient(var(--brand-deep), var(--brand-deep)); background-size: 10px 2px, 2px 10px; background-position: center; background-repeat: no-repeat; transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 2.5rem 1.25rem 0; }
.faq__a p { margin: 0; }

/* ---------- Related products ---------- */
.related { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.related a { display: block; padding: 1.25rem 1.25rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; color: var(--text); background: #fff; transition: border-color .15s; }
.related a:hover { border-color: var(--brand); }
.related b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: .25rem; }
.related span { font-size: .95rem; color: var(--muted); }
.related small { display: block; margin-top: .6rem; font-weight: 620; color: var(--brand-deep); font-size: .9rem; }

/* ---------- Family switcher (Food Pro / Bakery / Dairy) ---------- */
.family { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.family a, .family span { display: inline-block; font-size: .9rem; font-weight: 600; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); background: #fff; }
.family [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- CTA band ---------- */
.ctaband { background: var(--ink); color: #d9d6ea; border-radius: var(--radius-l); padding: clamp(2rem, 1.5rem + 3vw, 4rem); position: relative; overflow: hidden; }
.ctaband::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(121, 98, 183, .35); }
.ctaband h2 { color: #fff; max-width: 22ch; }
.ctaband p { max-width: 58ch; }
.ctaband .contactline { margin-top: 1.25rem; font-size: .97rem; position: relative; z-index: 1; }
.ctaband .contactline a { color: #fff; }
.ctaband .actions { position: relative; z-index: 1; }

/* ---------- Home ---------- */
.home-hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); position: relative; }
.home-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem); max-width: 15ch; }
.home-hero .lede { max-width: 54ch; }
.trustline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); list-style: none; padding-left: 0; }
.trustline b { color: var(--ink); font-size: 1.05rem; }

.pindex { border-top: 2px solid var(--ink); }
.pindex__group { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 992px) { .pindex__group { grid-template-columns: 220px 1fr; } }
.pindex__group h3 { font-size: 1rem; color: var(--muted); font-weight: 650; margin: .35rem 0 0; }
.pindex__items { display: grid; gap: .75rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pindex__items a { display: block; text-decoration: none; color: var(--text); padding: .25rem 0; }
.pindex__items a b { display: block; font-size: 1.15rem; color: var(--ink); }
.pindex__items a:hover b { color: var(--brand-deep); text-decoration: underline; text-decoration-thickness: 2px; }
.pindex__items a span { font-size: .96rem; color: var(--muted); }

.spot { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .spot { grid-template-columns: 1.25fr 1fr 1fr; } }
.spot__card { border-radius: var(--radius-l); padding: 2rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; }
.spot__card--lead { background: var(--brand); border-color: var(--brand); }
.spot__card h3 { font-size: 1.45rem; color: #fff; }
.spot__card p { color: #dcd8ee; font-size: .99rem; }
.spot__card--lead p { color: #f1eefb; }
.spot__card ul { padding-left: 1.1rem; color: #dcd8ee; font-size: .95rem; margin-bottom: 1.5rem; }
.spot__card .btn { margin-top: auto; align-self: flex-start; }

.steps-h { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps-h li { counter-increment: s; border-top: 2px solid var(--brand); padding-top: 1rem; }
.steps-h li::before { content: "Step " counter(s); display: block; font-size: .85rem; font-weight: 650; color: var(--brand-deep); margin-bottom: .35rem; }
.steps-h b { display: block; font-size: 1.1rem; margin-bottom: .35rem; }
.steps-h span { font-size: .96rem; color: var(--muted); }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .statgrid { grid-template-columns: repeat(4, 1fr); } }
.statgrid div { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.statgrid b { display: block; font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.statgrid span { font-size: .95rem; color: var(--muted); }
.source { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 560; background: #fff; }
.chips a:hover { border-color: var(--brand); color: var(--brand-deep); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 620; color: var(--ink); margin-bottom: .35rem; font-size: .97rem; }
.field .opt { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem .95rem; border: 1.5px solid #cfcbdd; border-radius: var(--radius-s); background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(121,98,183,.25); outline-offset: 0; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--hold); }
.field__err { display: none; color: var(--hold); font-size: .9rem; margin: .3rem 0 0; }
.field.is-invalid .field__err { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius-m); padding: 1rem 1.25rem; font-size: .98rem; }
.alert--ok { background: var(--ok-bg); color: #134d36; }
.alert--err { background: var(--hold-bg); color: #6f2222; }
.formcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-panel); }

/* ---------- Footer ---------- */
.site-footer { background: #15132b; color: #b9b5d0; padding: 4.5rem 0 2rem; font-size: .95rem; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #d9d6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__h { color: #fff; font-weight: 650; margin-bottom: .75rem; }
.site-footer__about { margin: 1.25rem 0; max-width: 40ch; }
.site-footer__contact a { color: #fff; font-weight: 600; }
/* Social media icons (footer + contact page) */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.social li { margin: 0; }
.social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; transition: background-color .2s, color .2s, transform .2s; }
.social a:hover { transform: translateY(-2px); text-decoration: none; }
.social--footer { margin-top: 1.5rem; }
.social--footer a { background: rgba(255,255,255,.08); color: #fff; }
.site-footer .social--footer a:hover { background: var(--brand); color: #fff; }
.social--contact a { background: var(--mist); color: var(--brand-deep); border: 1px solid var(--line); }
.social--contact a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } .social a:hover { transform: none; } }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.site-footer__base p { margin: 0; }
.site-footer__base ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); }
.wa-float:hover { color: #fff; background: #17834a; }

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .rail.js-rail .rail__step::after { transform: scaleX(0); transform-origin: left center; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .rail.js-rail.is-drawn .rail__step::after { transform: scaleX(1); }
  .rail.js-rail.is-drawn .rail__step:nth-child(2)::after { transition-delay: .15s; }
  .rail.js-rail.is-drawn .rail__step:nth-child(3)::after { transition-delay: .3s; }
  .rail.js-rail.is-drawn .rail__step:nth-child(4)::after { transition-delay: .45s; }
  .rail.js-rail.is-drawn .rail__step:nth-child(5)::after { transition-delay: .6s; }
}
/* Motion: GSAP adds .is-anim only when it runs; nothing is hidden by CSS alone. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media print { .site-header, .site-footer, .wa-float, .ctaband { display: none; } }

/* Gutters: 16px page gutter on phones; keep wide row gutters from overflowing it. */
.container-xl { --bs-gutter-x: 2rem; }
@media (max-width: 991.98px) { .row.g-5, .row.gx-5 { --bs-gutter-x: 2rem; } }
@media (min-width: 992px) { .container-xl { --bs-gutter-x: 3rem; } }
@media (max-width: 991.98px) { .hero::before { width: 100%; height: 55%; border-bottom-left-radius: 0; } }
@media (max-width: 575.98px) {
  .table-wrap .compare { min-width: 0; font-size: .9rem; }
  .compare th, .compare td { padding-right: .6rem; }
  .compare tbody th { width: 34%; }
}
/* Buttons keep their own colours inside dark sections */
.section--ink .btn--light, .ctaband .btn--light { color: var(--ink); }
.section--ink .btn--line-light, .ctaband .btn--line-light { color: #fff; }
.section--ink .btn--line-light:hover, .ctaband .btn--line-light:hover { color: var(--ink); }

/* ==========================================================================
   VISUAL LAYER v2.1 — photos, icons and cards
   ========================================================================== */
:root {
  --tint-1: #efebf8; --ink-1: #5b46a0;   /* purple */
  --tint-2: #e6eefc; --ink-2: #2f5fc4;   /* blue */
  --tint-3: #e2f4ef; --ink-3: #19795c;   /* teal */
  --tint-4: #fdf0e0; --ink-4: #a35a07;   /* amber */
}

/* ---- Icons ---- */
.ico { display: inline-grid; place-items: center; flex: none; color: inherit; }
.ico svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; }
.ico--sm svg { width: 1.05em; height: 1.05em; }
.ico--sm { color: var(--brand-deep); vertical-align: -.15em; margin-right: .35rem; }
.ico--tile { width: 48px; height: 48px; border-radius: 14px; background: var(--tint-1); color: var(--ink-1); margin-bottom: 1rem; }
.ico--tile svg { width: 24px; height: 24px; }
.ico--nav { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); float: left; margin: .1rem .75rem 0 0; }
.ico--nav svg { width: 18px; height: 18px; }
.ico--stat { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); margin-bottom: .75rem; }
.ico--stat svg { width: 22px; height: 22px; }
.modules > :nth-child(4n+2) .ico--tile, .fit > :nth-child(4n+2) .ico--tile, .pindex__items > :nth-child(4n+2) .ico--tile { background: var(--tint-2); color: var(--ink-2); }
.modules > :nth-child(4n+3) .ico--tile, .fit > :nth-child(4n+3) .ico--tile, .pindex__items > :nth-child(4n+3) .ico--tile { background: var(--tint-3); color: var(--ink-3); }
.modules > :nth-child(4n+4) .ico--tile, .fit > :nth-child(4n+4) .ico--tile, .pindex__items > :nth-child(4n+4) .ico--tile { background: var(--tint-4); color: var(--ink-4); }

/* ---- Photos ---- */
.photo { display: block; position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 3 / 2;
  background: radial-gradient(120% 120% at 0% 0%, #b9a9e6 0%, #7962b7 45%, #2a2459 100%); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.is-missing::after { content: ""; position: absolute; inset: 0; background: url("../img/jmj-software-logo.png") center / 64px no-repeat; opacity: .25; filter: grayscale(1) brightness(3); }
.photo--card { aspect-ratio: 4 / 5; box-shadow: var(--shadow-panel); }

/* ---- Product hero: one photo, no overlapping card ---- */
.heromedia { position: relative; padding: 0; }
.heromedia > .photo { box-shadow: 0 40px 80px -40px rgba(29, 26, 58, .55); aspect-ratio: 4 / 3; }
@media (min-width: 992px) {
  .heromedia > .photo { aspect-ratio: 5 / 4; }
}
.heromedia::before { content: ""; position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 28px;
  background: repeating-linear-gradient(45deg, rgba(121,98,183,.35) 0 2px, transparent 2px 10px); z-index: -1; }

/* ---- Photo band between sections ---- */
.photoband { position: relative; color: #fff; }
.photoband > .photo { border-radius: 0; aspect-ratio: auto; height: clamp(260px, 38vw, 460px); }
.photoband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,26,58,0) 30%, rgba(29,26,58,.82) 100%); pointer-events: none; }
.photoband .container-xl { position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 1rem + 3vw, 3.5rem); z-index: 1; }
.photoband__line { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem); font-weight: 780; letter-spacing: -.025em; line-height: 1.15; max-width: 24ch; margin: 0; color: #fff; text-wrap: balance; }

/* ---- Feature modules as cards ---- */
.modules { gap: 1.25rem; }
.module { border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem 1.6rem 1.25rem; background: linear-gradient(180deg, #fff 0%, #fbfaff 100%);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.module:hover { border-color: #cbbfee; box-shadow: 0 24px 40px -28px rgba(91, 70, 160, .45); transform: translateY(-2px); }
.module h3 { font-size: 1.12rem; }
.module .why { border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .6rem; }
.section--mist .module { background: #fff; }
.module-group > h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; }
.module-group > h3::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--brand); }
@media (prefers-reduced-motion: reduce) { .module:hover { transform: none; } }

/* ---- Fit cards ---- */
.fit > div { border-radius: 18px; padding: 1.5rem; transition: border-color .2s, box-shadow .2s; }
.fit > div:hover { border-color: #cbbfee; box-shadow: 0 20px 36px -28px rgba(91,70,160,.45); }
.fit .ico--tile { width: 44px; height: 44px; margin-bottom: .85rem; }

/* ---- Facts with icons ---- */
.facts dt { display: flex; align-items: center; gap: .1rem; }

/* ---- Challenge rows: problem badge + capability check ---- */
.ccc__row h3 { position: relative; padding-left: 2.6rem; }
.ccc__row h3::before, .ccc__row .ccc__cap::before { content: ""; position: absolute; left: 0; top: -.1rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; }
.ccc__row h3::before { background: var(--hold-bg) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a33a3a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 8v5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E"); }
.ccc__row .ccc__cap { position: relative; padding-left: 2.6rem; }
.ccc__row .ccc__cap::before { background: var(--ok-bg) center / 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a55' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ccc__row { transition: background-color .2s; }
.ccc__row:hover { background: linear-gradient(90deg, rgba(239,235,248,.6), rgba(239,235,248,0)); }

/* ---- Benefit ticks as badges ---- */
.ticks li { padding-left: 3rem; }
.ticks li::before { left: 0; top: .95rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; transform: none;
  background: var(--brand-tint) center / 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b46a0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.section--ink .ticks li::before { background-color: rgba(255,255,255,.12); }

/* ---- Related cards with arrow ---- */
.related a { position: relative; padding-right: 3rem; border-radius: 18px; }
.related a::after { content: ""; position: absolute; right: 1.1rem; top: 1.3rem; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-tint) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b46a0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: transform .2s; }
.related a:hover::after { transform: translateX(3px); }

/* ---- Rail steps: brighter nodes ---- */
.rail__step::before { box-shadow: 0 0 0 6px rgba(121,98,183,.18); }

/* ---- Home: product index as cards ---- */
.pindex__items a { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1rem; border-radius: 16px; border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.pindex__items a:hover { border-color: var(--line); background: #fff; }
.pindex__items a .ico--tile { grid-row: span 2; margin: 0; }
.section--mist .pindex__items a:hover { background: #fff; }

/* ---- Home: Food Pro spotlight with photos ---- */
.spot__card { padding: 0 0 2rem; overflow: hidden; }
.spot__card > :not(.spot__photo) { margin-left: 2rem; margin-right: 2rem; }
.spot__photo { border-radius: 0; aspect-ratio: 16 / 9; margin-bottom: 1.5rem; }
.spot__card .btn { margin-left: 2rem; }

/* ---- Chips and stats ---- */
.chips a { display: inline-flex; align-items: center; }
.statgrid div { padding-top: 1.25rem; }
.trustline li { display: flex; align-items: center; }

/* ---- Mega menu product icons ---- */
.panel__group a { overflow: hidden; }
.panel__group a b, .panel__group a span { margin-left: 46px; }
.panel__group .ico--nav { margin-right: 0; position: absolute; }
.panel__group li { position: relative; }
.panel__group a { position: relative; }
.panel__group .ico--nav { left: 0; top: .5rem; }
.panel__group .is-child .ico--nav { left: 1rem; }
.panel__group .is-child a b, .panel__group .is-child a span { margin-left: 46px; }
.hero { overflow-x: clip; }
@media (max-width: 991.98px) { .heromedia::before { right: -6px; top: -10px; width: 80px; height: 80px; } }

.spot__photo { aspect-ratio: auto; height: 200px; }

/* ==========================================================================
   v2.2 — image spaces in every section + AI prompt cards (localhost)
   ========================================================================== */
/* Section heading with an image beside it */
.media-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.media-head > .section-head { margin-bottom: 0; }
.media-head > .slot { max-height: 340px; width: 100%; }
@media (min-width: 992px) {
  .media-head:has(> .slot) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 3.5rem; }
  .media-head > .slot { max-height: 320px; }
}
.slot { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px -36px rgba(29, 26, 58, .5); }
.slot--side { margin-top: 1.75rem; max-width: 520px; }
.col-lg-4 > .slot--side { max-width: 360px; }
.slot--wide { aspect-ratio: auto !important; height: clamp(200px, 26vw, 320px); }
.section--ink .slot { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }

/* CTA band with image */
.ctaband--img { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .ctaband--img { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.ctaband__img { aspect-ratio: 16 / 10; border-radius: 18px; position: relative; z-index: 1; }

/* AI prompt card (designer view on localhost only; never rendered live) */
.photo--prompt { background: repeating-linear-gradient(135deg, #f7f5fc 0 14px, #f1edfa 14px 28px); border: 2px dashed #b9abe2; box-shadow: none; aspect-ratio: auto; min-height: 240px; overflow: visible; }
.heromedia > .photo--prompt { min-height: 420px; }
.photo--prompt .prompt { display: flex; flex-direction: column; gap: .7rem; padding: 1.25rem 1.35rem; height: 100%; color: var(--ink); text-align: left; }
.prompt__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.prompt__head b { font-size: .8rem; font-weight: 700; color: #fff; background: var(--brand); padding: .25rem .6rem; border-radius: 999px; }
.prompt__head span { font-size: .78rem; font-weight: 650; color: var(--brand-deep); }
.prompt__text { font-size: .86rem; line-height: 1.5; color: #3b3657; }
.prompt__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.prompt__foot code { font-size: .74rem; color: var(--brand-deep); background: #fff; padding: .2rem .45rem; border-radius: 6px; word-break: break-all; }
.prompt__copy { font: inherit; font-size: .8rem; font-weight: 650; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.prompt__copy:hover { background: var(--brand-deep); }
.photoband > .photo--prompt { border-radius: 0; border-left: 0; border-right: 0; height: auto; min-height: 320px; padding-bottom: 6rem; }
.spot__card > .photo--prompt { margin: 0 0 1.5rem; border-radius: 0; height: auto; min-height: 200px; }
.ctaband .photo--prompt .prompt__text { color: #3b3657; }

.designer-bar { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #d9d6ea; font-size: .82rem; padding: .5rem .75rem; border-radius: 999px; display: flex; gap: .6rem; align-items: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.designer-bar b { color: #fff; }
.designer-bar a { color: #d3c8f5; text-decoration: none; padding: .15rem .55rem; border-radius: 999px; }
.designer-bar a[aria-current] { background: var(--brand); color: #fff; }
@media (max-width: 575.98px) { .designer-bar { right: 80px; flex-wrap: wrap; border-radius: 14px; } }

/* Menu: text only (no icons) */
.panel__group a b, .panel__group a span { margin-left: 0; }
.heromedia > .photo--prompt, .photoband > .photo--prompt, .ctaband .photo--prompt, .slot.photo--prompt { aspect-ratio: auto !important; width: 100%; max-width: 100%; }
.media-head { grid-template-columns: minmax(0, 1fr); }
.photo--prompt, .photo--prompt * { min-width: 0; }
@media (min-width: 992px) { .heromedia > .photo--prompt { min-height: 560px; } }
.uipanel__t td { white-space: nowrap; }
@media (max-width: 991.98px) {
  .designer-bar { position: static; border-radius: 0; justify-content: center; flex-wrap: wrap; box-shadow: none; }
}
.trustline li { display: block; }
@media (max-width: 991.98px) { .heromedia > .photo--prompt { padding-bottom: 5.5rem; } }

/* Menu: product names only, child items with a small indent */
.panel__group .is-child a b { margin-left: 0; }

/* ---- Brochures, videos, product media strip (21 Oct) ---- */
.dlgrid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dlcard { border: 1px solid var(--line); border-radius: var(--radius-m, 12px); background: #fff; padding: 1.25rem; display: flex; flex-direction: column; scroll-margin-top: 6rem; }
.dlcard__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.dlcard__head h3 { font-size: 1.1rem; margin: 0; }
.dlcard__head h3 a { color: var(--ink); text-decoration: none; }
.dlcard__list { list-style: none; padding: 0; margin: 0 0 .75rem; display: grid; gap: .65rem; }
.dlcard__list a { display: inline-flex; gap: .45rem; align-items: flex-start; font-weight: 600; color: var(--brand-deep); overflow-wrap: anywhere; }
.dlcard__list small { display: block; color: var(--muted); margin-left: 1.6rem; }
.dlcard__more { margin: auto 0 0; font-size: .95rem; }
.vidgrid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vid { margin: 0; }
.vid__btn, .vid iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--ink); cursor: pointer; }
.vid__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.vid__btn:hover img, .vid__btn:focus-visible img { transform: scale(1.03); }
.vid__play { position: absolute; inset: 0; margin: auto; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgba(29,26,58,.82); display: grid; place-items: center; }
.vid__play svg { width: 1.4rem; height: 1.4rem; fill: #fff; margin-left: .15rem; }
.vid figcaption { margin-top: .5rem; font-size: .95rem; }
.vid figcaption a { color: var(--ink); text-decoration: none; }
.mediastrip { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.mediastrip__item { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; text-decoration: none; color: var(--ink); }
.mediastrip__item:hover { border-color: var(--brand); }
.mediastrip__item b { display: block; }
.mediastrip__item small { color: var(--muted); }
section[id] { scroll-margin-top: 5.5rem; }
@media (max-width: 575.98px) { .vidgrid { grid-template-columns: repeat(2, 1fr); gap: .9rem; } .vid figcaption { font-size: .85rem; } .vid__play { width: 2.5rem; height: 2.5rem; } }
