/* ==========================================================================
   /composer.html — page-specific styles
   --------------------------------------------------------------------------
   Namespace: .cp-*  (composer).
   Reuses .page-hero / .lp-hero, .lp-shell, .sec__eyebrow / __h2 /
   __lede from sections.css. Hero-video chrome (.hero-media, hero-media__*)
   is shared with /index.html and driven by the same hero-video.js.

   Width discipline: every section on the page renders content inside a
   1200px shell with 48px horizontal padding (so 1104px content area at
   wide viewports). The default .page-hero / .sec wrappers from sections.css
   apply their own outer padding which would double-pad the inner shell —
   .cp-hero and .cp-section override that so the shell controls width
   alone, matching .cp-tinted-section.
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */

/* Drop .page-hero's outer max-width + horizontal padding so .page-hero__inner
   (1200px + 48px) is the sole horizontal constraint. Without this the hero
   content area is ~48px narrower than every tinted section below it. */
.cp-hero.page-hero {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.cp-hero .page-hero__h1 {
  margin-bottom: 18px;
  max-width: 880px;
}
.cp-hero .page-hero__lede {
  max-width: 760px;
  margin-bottom: 28px;
}
.cp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
}

/* Light-bg buttons. */
.cp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.cp-btn--primary {
  background: var(--color-navy-800);
  color: white;
  border: 0.5px solid var(--color-navy-800);
}
.cp-btn--primary:hover {
  background: var(--color-navy-700);
  border-color: var(--color-navy-700);
}
.cp-btn--secondary {
  background: var(--color-bg);
  color: var(--color-navy-800);
  border: 0.5px solid var(--color-border);
}
.cp-btn--secondary:hover { border-color: var(--color-navy-800); }

/* Hero video — wraps the shared .hero-media chrome. The trigger is the
   "See it in action ▸" .cta-link in the hero CTA row above; hero-video.js
   picks it up via the [data-hero-trigger] attribute. Same crossfade-from-
   screenshot pattern as the homepage hero. Fills the hero shell so its
   edges align with the section blocks below. */
.cp-hero__video {
  position: relative;
  margin: 8px 0 32px;
}

/* 4-stat strip — fills the hero shell so its edges align with the section
   blocks below. */
.cp-hero__stats {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 0.5px solid var(--color-border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cp-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-hero__num {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-navy-800);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.cp-hero__num--accent { color: var(--color-teal-600); }
.cp-hero__label {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ---- 2. Section wrappers (plain + tinted) ----------------------------- */

/* Plain section — full-bleed wrapper, .lp-shell inside controls horizontal
   width. Drop-in replacement for the generic .sec class on this page so
   all sections (plain, tinted, hero) share one 1104px content width. */
.cp-section {
  border-top: var(--border-thin);
  padding: 56px 0;
}
.cp-tinted-section {
  background: var(--color-bg-tint);
  border-top: var(--border-thin);
}
.cp-tinted-section__shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 48px;
}
.cp-challenge__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.cp-challenge__eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B45309;
}
.cp-challenge__h {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-navy-800);
}
.cp-challenge__d {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 460px;
}
.cp-challenge__card {
  background: var(--color-bg);
  border: 0.5px solid #FCD7A1;
  border-left: 3px solid #F59E0B;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.cp-challenge__body {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.cp-challenge__body--strong {
  margin-bottom: 0;
  color: var(--color-navy-800);
  font-weight: 500;
}

/* ---- 3. Capability grid ----------------------------------------------- */

.cp-caps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.cp-cap {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
}
.cp-cap__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-teal-50);
  color: var(--color-teal-900);
  margin-bottom: 14px;
}
.cp-cap__icon svg { width: 16px; height: 16px; }
.cp-cap__h {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.cp-cap__d {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---- 4. Platform diagram (tinted bg) ----------------------------------- */

.cp-platform__diagram-frame {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 24px 0 16px;
}
.cp-platform__diagram {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto;
}

/* ---- Callouts --------------------------------------------------------- */

.cp-callout {
  margin: 16px 0 0;
  padding: 14px 18px;
  background: var(--color-teal-50);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.cp-callout strong {
  color: var(--color-teal-1000);
  font-weight: 500;
}

/* ---- 5. From the team ------------------------------------------------- */

.cp-quote {
  margin: 24px 0 24px;
  max-width: 760px;
  padding: 28px 32px;
  background: var(--color-bg-tint);
  border: var(--border-thin);
  border-left: 3px solid var(--color-teal-600);
  border-radius: var(--radius-lg);
}
.cp-quote__text {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-navy-800);
}
.cp-quote__attrib {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cp-quote__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-teal-50);
  color: var(--color-teal-1000);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.cp-quote__who { display: flex; flex-direction: column; gap: 2px; }
.cp-quote__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.cp-quote__title {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.cp-team__launch {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.cp-team__launch strong {
  color: var(--color-navy-800);
  font-weight: 500;
}
.cp-link {
  color: var(--color-teal-600);
  font-weight: 500;
  text-decoration: none;
}
.cp-link:hover { text-decoration: underline; }

/* ---- 6. FAQ ----------------------------------------------------------- */

.cp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.cp-faq__item {
  background: var(--color-bg);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.cp-faq__q {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy-800);
}
.cp-faq__a {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---- 7. Footer CTA (dark navy) --------------------------------------- */

.cp-dark-section {
  background: var(--color-navy-800);
}
.cp-dark-section__shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 48px;
}
.cp-cta__h {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: white;
}
.cp-cta__lede {
  margin: 0 0 24px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-on-navy-muted);
}
.cp-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cp-dark-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.cp-dark-btn--primary {
  background: white;
  color: var(--color-navy-800);
  border: 0.5px solid white;
}
.cp-dark-btn--primary:hover { background: var(--color-bg-tint); }
.cp-dark-btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}
.cp-dark-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.30);
}

/* ---- Section rhythm --------------------------------------------------- */

.cp-caps .sec__lede,
.cp-platform .sec__lede,
.cp-team .sec__lede {
  max-width: 820px;
  margin: 12px 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 1000px) {
  .cp-caps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-challenge__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 700px) {
  .cp-hero .page-hero__inner { padding-left: 24px; padding-right: 24px; }
  .cp-hero__cta { flex-direction: column; align-items: stretch; }
  .cp-btn { justify-content: center; }
  .cp-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-caps__grid { grid-template-columns: 1fr; }
  .cp-tinted-section__shell { padding: 40px 20px; }
  .cp-platform__diagram-frame { padding: 16px; }
  .cp-quote { padding: 22px 20px; }
  .cp-dark-section__shell { padding: 48px 20px; }
}
