/* ═════════════════════════════════════════════════════════════════════════
   NADIS Public Site — Product

   Loaded only by `products.html`, after tokens.css and base.css.

   Section padding is NOT set here — that belongs to `.nx-section` in
   base.css and nowhere else.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── A pillar ─────────────────────────────────────────────────────────────
   What it is on the left, what is in it on the right. The same arrangement
   for all four rather than alternating sides — a zig-zag would be movement
   for its own sake, and it makes the four harder to compare, which is the
   one thing a reader is actually here to do.
   ───────────────────────────────────────────────────────────────────────── */
.nx-pillar { display: grid; gap: var(--nx-space-5); }

@media (min-width: 900px) {
  .nx-pillar {
    grid-template-columns: 1fr 1fr;
    gap: var(--nx-space-6);
    align-items: start;
  }
}

.nx-pillar__intro { align-self: start; }

/* The station marker inline with the product name. It carries the meaning
   established by the Day Line on the home page — blue for what the system
   does, green for what grows the practice — without redrawing the line. */
.nx-pillar__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--nx-space-2);
  margin-bottom: var(--nx-space-3);
}
/* The marker's default block margin and paper halo belong to the timeline,
   not to a text run — and the halo would be visibly wrong on a sand band. */
.nx-pillar__eyebrow .nx-dayline__marker {
  margin: 0;
  box-shadow: none;
}

.nx-pillar__title { margin-bottom: var(--nx-space-3); }
.nx-pillar__blurb { margin-bottom: var(--nx-space-4); }

.nx-pillar__who {
  padding-top: var(--nx-space-3);
  border-top: 1px solid var(--nx-rule);
  color: var(--nx-ink-faint);
}

/* The capability list. Ruled rows rather than bullets — it is a
   specification, and it should read like one. */
.nx-pillar__items { display: grid; gap: var(--nx-space-1); }

.nx-pillar__item {
  padding-block: var(--nx-space-3);
  border-bottom: 1px solid var(--nx-rule);
  font-size: var(--nx-text-small);
  color: var(--nx-ink-muted);
}
.nx-pillar__item:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  /* Optically aligns the first list row's cap-height with the product
     name's, so the two columns start on the same line. */
  .nx-pillar__items { padding-top: 2px; }
}

/* Product overview. These components leave the original pillar primitives
   intact and use the public shell's type, color, spacing and focus tokens. */
.nx-product__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: var(--nx-space-6); align-items: center; }
.nx-product__split > * { min-width: 0; }
.nx-product__eyebrow { margin-bottom: var(--nx-space-4); }
.nx-product__copy { margin-top: var(--nx-space-4); }
.nx-product__actions { gap: var(--nx-space-3); }
.nx-product__actions .nx-btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.nx-product-arrow { flex: none; }
.nx-product__link { min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.nx-product-hero__title { font-size: clamp(2.75rem, 1.5rem + 2.7vw, 4rem); margin-bottom: var(--nx-space-4); }
.nx-product-hero__title span { color: var(--nx-green); }
.nx-product-hero__lead { max-width: 42ch; margin-bottom: var(--nx-space-5); }
.nx-product-hero__note { margin-top: var(--nx-space-4); max-width: 48ch; }
.nx-product-hero__art { display: grid; justify-items: center; gap: var(--nx-space-4); }
.nx-product-hero__image { width: 100%; max-width: 500px; }
.nx-product-hero__art .nx-small { text-align: center; }

/* Ordinary anchor links stay useful without scripts or a tab interface. */
.nx-product-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: var(--nx-space-6); border-block: 1px solid var(--nx-rule); }
.nx-product-nav__link { display: flex; align-items: center; gap: var(--nx-space-3); min-width: 0; padding: var(--nx-space-4) var(--nx-space-3); color: var(--nx-ink); text-decoration: none; }
.nx-product-nav__link:hover { background: var(--nx-green-tint); }
.nx-product-nav__number { align-self: start; padding-top: 3px; font-size: var(--nx-text-label); color: var(--nx-green); }
.nx-product-nav__link strong { display: block; font-size: var(--nx-text-body); font-weight: 600; }
.nx-product-nav__caption { display: block; margin-top: var(--nx-space-1); color: var(--nx-ink-muted); font-size: 0.8125rem; }
.nx-product-nav__link > .nx-product-arrow { margin-left: auto; color: var(--nx-green); }

.nx-product-workspaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); gap: var(--nx-space-4); align-items: start; }
.nx-product-workspace { display: flex; flex-direction: column; min-width: 0; height: 100%; scroll-margin-top: var(--nx-space-4); }
.nx-product-workspace:target { border-color: var(--nx-green); box-shadow: 0 0 0 1px var(--nx-green); }
.nx-product-workspace__head { display: grid; grid-template-columns: minmax(0, 1fr) min(28%, 140px); align-items: center; gap: var(--nx-space-4); }
.nx-product-workspace__title { font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: var(--nx-track-heading); margin-top: var(--nx-space-3); text-wrap: balance; }
.nx-product-workspace__image { width: 100%; height: 116px; object-fit: contain; }
.nx-product-workspace__detail { margin-top: var(--nx-space-4); }
.nx-product-workspace__who { margin-block: var(--nx-space-3) var(--nx-space-4); font-size: 0.8125rem; color: var(--nx-blue); }
.nx-product-features { margin-top: auto; border-top: 1px solid var(--nx-rule); }
.nx-product-features summary { display: flex; align-items: center; justify-content: space-between; gap: var(--nx-space-3); min-height: 52px; padding-block: var(--nx-space-3); font-size: var(--nx-text-small); font-weight: 550; cursor: pointer; list-style: none; }
.nx-product-features summary::-webkit-details-marker { display: none; }
.nx-product-features summary:hover { color: var(--nx-blue); }
.nx-product-features summary > svg { flex: none; }
.nx-product-features[open] summary > svg { transform: rotate(180deg); }
.nx-product-features__count { color: var(--nx-ink-muted); font-weight: 400; }
.nx-product-features__list { display: grid; gap: var(--nx-space-3); padding-block: var(--nx-space-3); font-size: var(--nx-text-small); color: var(--nx-ink-muted); }
.nx-product-features__list li { display: flex; gap: var(--nx-space-3); align-items: baseline; }
.nx-product-features__list li::before { content: ""; flex: 0 0 4px; height: 4px; border-radius: 50%; background: var(--nx-green); transform: translateY(-3px); }

.nx-product-ai { margin-top: var(--nx-space-6); padding-top: var(--nx-space-5); border-top: 1px solid var(--nx-rule); }
.nx-product-ai__intro { display: grid; gap: var(--nx-space-2); }
.nx-product-ai__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--nx-space-5); margin-top: var(--nx-space-5); }
.nx-product-ai__items .nx-small { margin-top: var(--nx-space-2); }
.nx-product-ai__note { margin-top: var(--nx-space-4); font-size: 0.8125rem; }

/* Illustrations share a quiet baseline; text supplies the information. */
.nx-product-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--nx-space-5); }
.nx-product-benefit { min-width: 0; }
.nx-product-benefit__art { display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; height: 190px; margin-bottom: var(--nx-space-5); padding: var(--nx-space-4); background: var(--nx-sand); border-radius: var(--nx-radius-3); }
.nx-product-benefit__art img { width: 100%; height: 100%; min-height: 0; max-width: 230px; object-fit: contain; }
.nx-product-benefit > .nx-heading { margin-top: var(--nx-space-3); }
.nx-product-benefit > .nx-small { margin-top: var(--nx-space-3); }

.nx-product-insight__link { margin-top: var(--nx-space-4); }
.nx-product-insight__art { padding: var(--nx-space-5); border-radius: var(--nx-radius-4); background: var(--nx-paper); display: grid; justify-items: center; gap: var(--nx-space-4); }
.nx-product-insight__art img { width: 100%; max-width: 340px; height: 250px; object-fit: contain; }
.nx-product-insight__art .nx-small { text-align: center; }
.nx-product-insight__questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--nx-space-5); margin-top: var(--nx-space-6); }
.nx-product-insight__questions li { border-top: 1px solid var(--nx-band-rule); padding-top: var(--nx-space-4); }
.nx-product-insight__questions .nx-label { color: var(--nx-on-band-accent); margin-bottom: var(--nx-space-3); }
.nx-product-insight__questions .nx-small { color: var(--nx-on-band-muted); margin-top: var(--nx-space-3); }

.nx-product-support { align-items: start; }
.nx-product-security { display: grid; gap: var(--nx-space-4); margin-block: var(--nx-space-5) var(--nx-space-4); }
.nx-product-security > div { border-top: 1px solid var(--nx-rule); padding-top: var(--nx-space-4); }
.nx-product-security dd { margin-top: var(--nx-space-2); }
.nx-product-training { padding: var(--nx-space-5); background: var(--nx-green-tint); border-radius: var(--nx-radius-3); }
.nx-product-training__title { margin-block: var(--nx-space-3) var(--nx-space-4); font-size: 2rem; font-weight: 600; letter-spacing: var(--nx-track-title); line-height: 1.15; }
.nx-product-training__steps { display: grid; gap: var(--nx-space-4); margin-block: var(--nx-space-5) var(--nx-space-4); }
.nx-product-training__steps li { display: flex; gap: var(--nx-space-4); }
.nx-product-training__steps li > span { color: var(--nx-green); font-size: var(--nx-text-small); padding-top: 2px; }
.nx-product-training__steps .nx-small { margin-top: var(--nx-space-1); }
.nx-product-training .nx-product__link { color: var(--nx-green-deep); }
.nx-product-start__actions { justify-self: end; }

@media (min-width: 720px) and (max-width: 999px) {
  .nx-product-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nx-product-benefit:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--nx-space-5); align-content: center; }
  .nx-product-benefit:last-child .nx-product-benefit__art { grid-row: 1 / 4; margin: 0; }
}
@media (min-width: 1000px) {
  .nx-product-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .nx-product-hero__image { max-width: 420px; }
  .nx-product-start__actions { justify-self: start; }
}
