/* products.css — the Products pages (products.html, products-*.html).
   Tokens come from aim.css; everything here uses var(--…) so dark mode follows. */

.pp .section-label {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px;
}

/* Hero */
.pp-hero { text-align: center; padding-bottom: 56px; }
.pp-hero .aim-lead { max-width: 720px; margin: 0 auto; }
.pp-crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; display: flex; gap: 8px; justify-content: center; }
.pp-hero-meta { display: flex; gap: 12px; justify-content: center; align-items: center; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.pp-hero-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pp-chips { margin-top: 30px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pp-chips a {
  font-size: 14px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--bg-alt); color: var(--ink); border: 1px solid var(--hairline);
}
.pp-chips a:hover { text-decoration: none; border-color: var(--accent); }
.pp-chips em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--ok); margin-left: 4px; }

/* Status pills */
.pp-status {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; vertical-align: middle;
  background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--hairline);
}
.pp-status-live { background: var(--tint-green); color: var(--tint-green-ink); border-color: var(--tint-green-bd); }

/* In-development note */
.pp-dev-wrap { padding: 0 max(22px, 4vw) 40px; }
.pp-dev-note {
  max-width: 820px; margin: 0 auto; font-size: 14.5px; line-height: 1.6; color: var(--ink);
  background: var(--tint-amber); border: 1px solid var(--tint-amber-bd); border-radius: 14px; padding: 14px 18px;
}
.pp-dev-note strong { color: var(--tint-amber-ink); }

/* Specialty sections */
.pp-spec-head { margin-bottom: 34px; }
.pp-spec-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-spec-title h2 { margin: 0; }
.pp-spec-sum { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 760px; margin: 12px 0 6px; }
.pp-spec-count { font-size: 13px; color: var(--ink-3); margin: 0; font-weight: 500; }
.pp-group + .pp-group { margin-top: 34px; }
.pp-group-h {
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.08em !important;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px;
}
.pp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Tool card */
.pp-tool {
  background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 18px 20px; display: flex; flex-direction: column;
}
.pp-tool-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pp-tool h4 { font-size: 16.5px; font-weight: 650; margin: 0; letter-spacing: -0.005em; flex: 0 1 auto; }
.pp-tool .chip.b { background: var(--tint-violet); color: var(--tint-violet-ink); }
.pp-tool-sum { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 8px 0 8px; }
.pp-tool-std { font-size: 12.5px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.45; }
.pp-tool details { margin-top: auto; border-top: 1px solid var(--hairline); padding-top: 10px; }
.pp-tool summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--link);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.pp-tool summary::-webkit-details-marker { display: none; }
.pp-tool summary::after { content: "+"; font-weight: 500; }
.pp-tool details[open] summary::after { content: "−"; }
.pp-tool summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.pp-tool ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink); line-height: 1.55; }
.pp-tool li + li { margin-top: 3px; }
.pp-tool dl { margin: 12px 0 2px; font-size: 13.5px; line-height: 1.5; }
.pp-tool dt { font-weight: 600; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.pp-tool dd { margin: 2px 0 8px; color: var(--ink-2); }

/* Built-in band */
.pp-builtin h2 { max-width: 760px; }
.pp-builtin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.pp-builtin-grid h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-builtin-grid p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.pp-builtin-grid p.pp-builtin-now { margin-top: 12px; color: var(--ink); font-weight: 500; font-size: 14px; }

/* Index cards */
.pp-fam-desc { font-size: 17px; color: var(--ink-2); margin: 0 0 24px; max-width: 720px; }
.pp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aim a.pp-card {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 24px 24px 20px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.aim a.pp-card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-soft); }
.pp-card-live { box-shadow: 0 0 0 2px var(--accent), var(--shadow-soft); border-color: transparent !important; }
.pp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-card h3 { margin: 0; font-size: 21px; }
.pp-card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin: 10px 0 0; }
.pp-card-specs { margin: 12px 0 0; padding: 0; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.pp-card-specs li { font-size: 12.5px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg-alt); color: var(--ink-2); }
.pp-card-foot { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; color: var(--link); }

/* Bottom CTA + notify */
.pp-cta { text-align: center; }
.pp-cta p { font-size: 17px; color: var(--ink-2); margin: 0 auto 26px; max-width: 620px; }
.pp-cta p.pp-cta-sub { font-size: 14px; margin: 20px auto 0; }
.pp-notify { display: flex; justify-content: center; text-align: left; }
.pp-notify .aim-subscribe { width: 100%; max-width: 460px; }
.pp-cta .pp-notify p.aim-subscribe-fine { font-size: 12.5px; color: var(--ink-3); margin: 8px 0 0; max-width: none; }

/* Discipline blocks on products.html */
.pp-disc + .pp-disc { margin-top: 52px; }
.pp-disc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-disc-head h2 { margin: 0; }
.pp-disc-tag { font-size: 16px; color: var(--ink-2); margin: 8px 0 20px; max-width: 760px; line-height: 1.55; }
.pp-hero .pp-chips a { font-size: 13.5px; }

/* The 3D illustration (product-scene.js) */
.pp-figure-wrap { padding: 0 max(22px, 4vw) 48px; }
.pp-figure { max-width: 1100px; margin: 0 auto; }
.pp-stage { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-alt);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-soft); aspect-ratio: 16 / 9; }
.pp-stage canvas { display: block; width: 100%; height: 100%; transition: opacity 0.2s linear; }
.pp-stage-cap {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); margin: 0; max-width: calc(100% - 28px);
  font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.35;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 16px; pointer-events: none;
}
.pp-stage-cap:empty { display: none; }
.pp-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.pp-legend li { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px;
  opacity: 0.3; transition: opacity 0.35s ease; }
.pp-legend li.on { opacity: 1; }
.pp-legend i { display: inline-block; flex: none; background: var(--c); }
.pp-legend i.k-pipe { width: 22px; height: 4px; border-radius: 2px; }
.pp-legend i.k-duct { width: 22px; height: 9px; border-radius: 2px; }
.pp-legend i.k-box { width: 13px; height: 13px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.pp-legend i.k-dot { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25); }
.pp-legend i.k-area { width: 15px; height: 12px; border-radius: 3px; opacity: 0.65; }
.pp-figure figcaption { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 12px; }

@media (max-width: 760px) {
  .pp-grid, .pp-cards, .pp-builtin-grid { grid-template-columns: 1fr; }
  .pp-figure-wrap { padding: 0 12px 36px; }
  .pp-stage { border-radius: 12px; }
  .pp-stage-cap { display: none; }   /* too big for a phone-width canvas; the legend names each system */
  .pp-legend { gap: 6px 12px; }
  .pp-legend li { font-size: 12px; }
}
