/* Shared section components. */

/* ---------- section head ---------- */
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head .lead { max-width: 36em; }

/* ---------- icon tile (44px) ---------- */
.icon-tile {
  flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--surface-inset); color: var(--text-accent);
}

/* ---------- tag list (platform pills) ---------- */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li {
  display: flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); font-weight: 600; font-size: 13px; line-height: 1; color: var(--text-strong);
}

/* ---------- ProductCard (DS) ---------- */
.product-card {
  height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 28px 24px 24px; background: var(--surface-card);
  border: 1px solid var(--border); border-radius: var(--radius-md); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.product-card__head { display: flex; flex-direction: column; gap: 8px; }
.product-card__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.25; letter-spacing: var(--tracking-heading); color: var(--text-strong); }
.product-card__body { font-size: 15px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.product-card__spacer { flex: 1; }
.product-card__price { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.product-card__amount { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.product-card__num { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: var(--tracking-display); color: var(--text-strong); white-space: nowrap; }
.product-card__unit { font-size: 15px; line-height: 1.3; color: var(--text-muted); white-space: nowrap; padding-bottom: 3px; }
.product-card__quote { font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--text-body); white-space: nowrap; padding-bottom: 3px; }
/* the DS aligns notes per row with JS; CSS keeps one-line room and the grid stretches cards */
.product-card__note { display: block; min-height: 21px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.product-card__link { padding-top: 4px; }
.product-card__link--rule { padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 767px) { .product-card { padding: 24px; } }

/* ---------- MapFrame (DS) ---------- */
.map-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; width: 100%; border-radius: var(--radius-md);
  border: 1px solid var(--border-strong); background: var(--surface-inset);
}
.map-frame__host { position: absolute; inset: 0; line-height: 0; }
.map-frame__host svg { width: 100%; height: 100%; display: block; }
.map-frame__d, .map-frame__m { width: 100%; height: 100%; }
.map-frame__m { display: none; }
@media (max-width: 1023px) { .map-frame__d { display: none; } .map-frame__m { display: block; } }

/* ---------- platform logo ---------- */
.platform-logo { display: block; flex: none; object-fit: contain; }

/* ---------- FaqAccordion ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border-strong); }
.faq__item { border-bottom: 1px solid var(--border-strong); }
.faq__h { margin: 0; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; border: 0;
  background: transparent; text-align: left; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35;
  letter-spacing: var(--tracking-heading); color: var(--text-strong);
}
.faq__btn:hover { color: var(--text-link); }
.faq__chev { --icon-size: 24px; transition: transform var(--dur) var(--ease); }
.faq__btn[aria-expanded="true"] .faq__chev { transform: rotate(180deg); }
.faq__panel { padding: 0 0 20px; max-width: 62ch; }
.faq__panel p { font-size: 16px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.faq__link { margin-top: 12px; }
.js .faq__panel:not(.is-open) { display: none; }
@media (max-width: 767px) { .faq__btn { font-size: 17px; } }

/* ---------- floating UI fragments (hero clusters) ---------- */
.frag {
  position: absolute; background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
}
.frag--shadow { box-shadow: var(--shadow-2); }
.frag__label {
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.status {
  padding: 2px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); font-size: 12px; font-weight: 600;
  color: var(--text-body); text-align: center; white-space: nowrap;
}
.status--ok { background: var(--success-bg); border-color: var(--success-border); color: var(--text-success); }
.status--prog { border-color: var(--focus); color: var(--text-link); }
.stack { display: inline-grid; }
.stack > * { grid-area: 1 / 1; }

/* hexagon photo box: the photo is positioned by build-time values (HEX table in components/product.mjs) */
.hex-box { position: relative; width: 100%; aspect-ratio: 1610 / 1797; }
.hex-box__photo { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.hex-box__photo > div { position: absolute; inset: 0; }
.hex-box__photo img { position: absolute; height: auto; max-width: none; display: block; }

/* ---------- motion pause/play (WCAG 2.2.2): outermost bottom-right corner of the hero section ---------- */
.motion-toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 36px; height: 36px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.motion-toggle:hover { color: var(--text-strong); border-color: var(--border-strong); }
.motion-toggle:focus-visible { border-radius: 999px; }
.motion-toggle .icon { --icon-size: 20px; }
.motion-toggle__play, .motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }
@media (max-width: 1023px) { .motion-toggle { right: 12px; bottom: 12px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none !important; } }

/* ---------- numbered step list (IconTile + mono number + bold lead) ---------- */
.steps-list { list-style: none; margin: 8px 0 0; display: flex; flex-direction: column; gap: 20px; }
.steps-list li { display: flex; gap: 16px; align-items: flex-start; }
.steps-list li > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 2px; }
.steps-list__n { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; color: var(--text-accent); }
.steps-list p { font-size: 16px; line-height: 1.5; color: var(--text-body); }
.steps-list strong { font-weight: 600; color: var(--text-strong); }

/* ---------- checklist fragment (floating card with ticked items) ---------- */
.check-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.check-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.check-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-strong); }
.check-card__box { flex: none; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--text-success); }
