/* ============================================================
   product.css - shared stylesheet for the four product pages
   (ReportReady, ReportRefine, ParentBridge, CyberConfident).
   ------------------------------------------------------------
   Each page sets its tool accent with a body class. Everything
   below themes off var(--accent). Tokens, the nav and footer
   shell, and the base components (card, button, eyebrow,
   section, page-header, result-card, grids, text utilities)
   come from css/styles.css and css/nav.css and are reused as is.
   ============================================================ */

/* --- Per-tool accent (matches the homepage cards and the Hub) --- */
.product--report { --accent: var(--accent-report); }
.product--parent { --accent: var(--accent-parentbridge); }
.product--cyber  { --accent: var(--accent-cyber); }
.product--lessonlift { --accent: var(--accent-lessonlift); }
.product--potentialpath { --accent: var(--accent-potentialpath); }

/* Eyebrows and section labels carry the tool colour on product pages. */
.product .eyebrow { color: var(--accent); }

/* Inline icons should not shrink in flex rows. */
.product .tt-icon { flex: none; }

/* Accent icon chip, reused by the hero visual and the benefit cards. */
.product-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
}

/* ============================================================
   PAGE HEADER (two column: copy + visual)
   ============================================================ */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}
.product-hero__actions { margin-top: var(--space-6); flex-wrap: wrap; }
.product-hero__note { margin-top: var(--space-4); }

@media (max-width: 820px) {
  .product-hero-grid { grid-template-columns: 1fr; }
}

/* ReportReady / ReportRefine demo card (homepage card, tool themed). */
.demo-card { border-top: 4px solid var(--accent); }
.demo-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.demo-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, white);
}
.demo-card__meta { grid-template-columns: 1fr 1fr; }
.demo-card__grade { font-weight: var(--weight-bold); font-size: var(--text-lg); }
.demo-card__code { font-family: var(--font-mono); font-size: var(--text-sm); }

/* ParentBridge / CyberConfident hero visual card. */
.visual-card { border-top: 4px solid var(--accent); }
.visual-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.snapshot-tier { margin-top: var(--space-2); }
.snapshot-tier__label { color: var(--accent); }

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section--soft { background: rgba(255, 255, 255, 0.55); }
.section__heading { margin-bottom: var(--space-8); }
.section__lead {
  max-width: 60ch;
  margin-bottom: var(--space-8);
  color: var(--color-ink-muted);
}

/* ============================================================
   BENEFIT CARDS (why it helps)
   ============================================================ */
.benefit {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.benefit .product-icon { margin-bottom: var(--space-2); }
.benefit__title { margin: 0; }
.benefit__text { margin: 0; }

/* ============================================================
   HOW IT WORKS (numbered flow, reuses the homepage step pattern)
   ============================================================ */
.product-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
}
.step__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}
.step__title { display: block; margin-bottom: 4px; }
.step__text { margin: 0; }
.product-steps__note { margin: var(--space-6) 0 0; }

/* Numbered step cards (badge + icon tile per card) */
.step-cards { gap: var(--space-6); }
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.step-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.step-card__head .step__num { margin-bottom: 0; flex-shrink: 0; }

/* ============================================================
   CHIPS (subjects, stages, situations)
   ============================================================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 12%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, white);
  color: color-mix(in srgb, var(--accent) 78%, black);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

/* ============================================================
   WHAT'S INSIDE list (situations, inclusions)
   ============================================================ */
.inside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.inside-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--color-ink);
}
.inside-list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

/* ============================================================
   NSW ALIGNMENT BLOCK (report tools)
   ============================================================ */
.nsw-block { border-top: 4px solid var(--accent); }
.nsw-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: color-mix(in srgb, var(--accent) 78%, black);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.nsw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
}
.nsw-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink);
  line-height: var(--leading-snug);
}
.nsw-list li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .nsw-list { grid-template-columns: 1fr; }
}

/* ============================================================
   TRUST LINE
   ============================================================ */
.trust-line {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
}

/* ============================================================
   FAQ (native details accordion, same as the homepage)
   ============================================================ */
.faq__inner { max-width: 760px; }
.faq-list { gap: var(--space-3); }
.faq-item { padding: 0; }
.faq-q {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-weight: var(--weight-bold);
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .tt-icon {
  transition: transform 0.2s var(--ease-out);
  color: var(--color-ink-muted);
}
.faq-item[open] .faq-q .tt-icon { transform: rotate(180deg); }
.faq-a {
  padding: 0 var(--space-6) var(--space-5);
  margin: 0;
}

/* ============================================================
   CTA BAND (tool accent)
   ============================================================ */
.cta-section {
  background: var(--accent);
  padding: var(--space-20) 0;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: var(--space-3);
}
.cta-section__sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}
.cta-section__btn {
  background: #fff;
  color: color-mix(in srgb, var(--accent) 80%, black);
  border-color: transparent;
}
.cta-section__btn:hover,
.cta-section__btn:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  color: color-mix(in srgb, var(--accent) 80%, black);
}
