/* =========================================================
   in2vate.com — Product pages (Risk, Renewal, Learn, Insights …)
   Shared layout: hero, primary value band, feature list + diagram,
   "in2vate difference" callout, sub-product link cards.
   Tokens, base, buttons, eyebrows, header, CTA panel and footer
   come from styles.css (load it first).
   ========================================================= */

/* ---------- 1. Hero ---------- */
.product-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--deep-navy);
  background-image: var(--grad-hero-glow);
}
.product-hero__inner {
  padding-block: var(--hero-y);
}
.product-hero .eyebrow { margin-bottom: 24px; }
.product-hero__title {
  font-size: var(--fs-h1);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  max-width: 21ch;
}
.product-hero__accent { color: var(--teal-light); }
.product-hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
  max-width: 54ch;
}
.product-hero__lead strong { color: var(--white); font-weight: 600; }

/* ---------- 2. Primary value band ---------- */
.value-band {
  padding-top: clamp(28px, 3.5vw, 48px);
  color: var(--white);
}
.value-band__inner {
  background: var(--navy);
  border-radius: var(--r-rail);
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.value-band__head { display: flex; flex-direction: column; gap: 18px; }
.value-band__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.value-band__rule { width: 110px; height: 3px; background: var(--teal-light); }
.value-band__points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
/* Wide screens: the four value points sit in one row */
@media (min-width: 1180px) {
  .value-band__points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.value-point { display: flex; gap: 14px; align-items: flex-start; }
.value-point__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-point__icon::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--teal-light);
}
.value-point__title { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.value-point__text { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }

/* Product tile ("iR / 01 / Risk") */
.product-tile {
  width: 120px;
  height: 120px;
  border-radius: var(--r-card);
  background: var(--deep-navy);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  font-family: var(--font-display);
}
.product-tile__num { align-self: flex-start; font-size: 12.5px; font-weight: 500; line-height: 1; color: rgba(255, 255, 255, 0.7); }
.product-tile__mark { font-size: 50px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; margin-top: 6px; }
.product-tile__mark span { color: var(--teal-light); }
.product-tile__name { font-size: 13px; font-weight: 600; line-height: 1; margin-top: auto; }

/* ---------- 3. Main content ---------- */
.product-main {
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: var(--section-y);
}
.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.section-heading__arrow { font-size: 24px; line-height: 1; color: var(--teal); }
.section-heading__title { font-size: var(--fs-h2); font-weight: 600; letter-spacing: -0.015em; }
.product-intro { color: var(--slate); max-width: var(--measure); margin-bottom: 34px; }
.product-intro strong { color: var(--ink); font-weight: 600; }
.product-includes-title { margin: 0 0 16px; }

/* List + diagram pair */
.feature-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--teal);
  margin-top: 6px;
}
.feature-list__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.feature-list__text { font-size: 15.5px; line-height: 1.6; color: var(--slate); max-width: var(--measure); }

.diagram-card {
  position: relative;
  margin: 0;
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-rest);
}
.diagram-card svg { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.diagram-card__tag {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  color: var(--slate);
}
.diagram-card figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
}
.diagram__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; fill: var(--ink); }
.diagram__sub   { font-family: var(--font-display); font-size: 12px; fill: var(--slate); }
.diagram__center-label { font-family: var(--font-display); font-size: 19px; font-weight: 700; fill: var(--white); }
/* Diagram colors (SVG presentation attributes can't use tokens) */
/* Risk: cycle diagram */
.dg-arrowhead { fill: var(--teal); }
.dg-connectors { stroke: var(--border-btn); }
.dg-cycle { stroke: var(--teal); }
.dg-center { fill: var(--navy); stroke: var(--teal-light); }
.dg-node { fill: var(--white); stroke: var(--teal-light); }
.dg-icon { fill: var(--navy); }
.dg-icon-line { stroke: var(--navy); }
/* Renewal: spreadsheets to one list */
.dg-sheet { fill: var(--white); stroke: var(--stone); }
.dg-sheet-grid { stroke: var(--stone); }
.dg-flow { stroke: var(--teal); }
.dg-panel { fill: var(--white); stroke: var(--navy); }
.dg-panel-head { fill: var(--navy); }
.dg-bar { fill: var(--border); }
.dg-check { stroke: var(--teal); }
/* Insights: trend against a benchmark range */
.dg-range { fill: var(--sand); }
.dg-benchmark { stroke: var(--stone); }
.dg-trend { stroke: var(--navy); }
.dg-trend-dot { fill: var(--teal-light); stroke: var(--navy); }
.dg-label { fill: var(--ink); font-family: var(--font-body); font-size: 13px; }

/* Callout ("The in2vate difference") */
.callout {
  position: relative;
  margin: 40px 0 32px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-rest);
}
.callout__stamp {
  position: absolute;
  top: -14px;
  right: clamp(14px, 3vw, 30px);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 7px 13px;
  transform: rotate(-2deg);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  font-style: italic;
  color: var(--teal);
}
/* Contains the brand name, so never uppercased */
.callout__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-bottom: 14px;
}
.callout__quote,
.callout__quote p { margin: 0; font-size: var(--fs-quote); line-height: 1.55; font-style: italic; }

/* Sub-product link cards */
.product-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 18px;
}
.product-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-rest);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.product-link:hover { box-shadow: var(--shadow-hover); }
.product-link:focus-visible { box-shadow: var(--focus), var(--shadow-rest); border-radius: var(--r-card); }
.product-link__title { font-size: var(--fs-h3); font-weight: 600; }
.product-link__text { font-size: 14.5px; line-height: 1.6; color: var(--slate); }
.product-link__cta {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
  padding-top: 6px;
}

/* Static feature cards (not links) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-rest);
}
.feature-card__title { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 8px; }
.feature-card__text { font-size: 14.5px; line-height: 1.6; color: var(--slate); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .value-band__inner { grid-template-columns: minmax(0, 1fr); }
  .value-band__head { flex-direction: row; align-items: center; gap: 20px; }
}

@media (max-width: 560px) {
  .product-hero__lead br { display: none; }
  .product-hero__lead strong { display: block; margin-bottom: 4px; }
  .value-band__points { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-tile { width: 96px; height: 96px; }
  .product-tile__mark { font-size: 40px; }
  /* Keep diagram labels readable when the SVG scales down */
  .diagram__title { font-size: 18px; }
  .diagram__sub { font-size: 14.5px; }
  .callout { margin-top: 36px; }
  .callout__stamp { position: static; display: inline-block; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-link { transition: none; }
}
