/* ============================================================
   GLOBACOM — new-blue-design/relaycsp.css
   Phase 9 Plan 02 — RelayCSP solution-detail page.

   FIRST: full @font-face + :root token block + base rules + hero
   block, duplicated verbatim from new-blue-design/style.css (chrome.css
   defines zero tokens of its own — every page must duplicate the full
   token block, per the CR-01 bug class already hit once in this
   project) — the exact same ranges 09-01 duplicated.

   THEN: 09-01's own new shared Phase 9 detail-page vocabulary
   (.hero-eyebrow, .hero-tag-row/.hero-tag-chip, .detail-section-*,
   .detail-prose, .detail-quote, .detail-step-*), duplicated
   byte-for-byte from new-blue-design/utility-billing.css — no class
   renamed, no property value altered.

   THEN: this page's own new, page-scoped extensions for RelayCSP's
   denser nested-list content — not part of the shared Phase 9
   vocabulary, never edited into utility-billing.css.

   Nav/mega-menu/footer CSS is chrome-owned (D-82) and deliberately NOT
   duplicated here — see redesign/_shared/chrome.css.
   ============================================================ */

@font-face {
  font-family: 'GothamBold';
  src: url('shared/fonts/GothamBold.woff2') format('woff2'),
       url('shared/fonts/GothamBold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamBook';
  src: url('shared/fonts/GothamBook.woff2') format('woff2'),
       url('shared/fonts/GothamBook.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GothamLight';
  src: url('shared/fonts/GothamLight.woff2') format('woff2'),
       url('shared/fonts/GothamLight.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-border: #E4E5E2;
  --color-text: #1A1D1F;
  --color-text-muted: #6C6E6B; /* WCAG-corrected per skill reference, ~4.93:1 on --color-bg */
  --color-blue: #ABC9E3;
  --color-blue-deep: #2E577A;
  --color-mint: #B9CFC0;
  --color-mint-deep: #8CA694;
  --color-footer-bg: #16181A;
  --color-text-on-dark: #F4F4F2;

  --font-display: 'GothamLight', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'GothamBook', 'Helvetica Neue', Arial, sans-serif;
  --font-bold: 'GothamBold', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'GothamBook', 'Helvetica Neue', Arial, sans-serif;

  --wash-filter: saturate(0.7) brightness(1.08) contrast(0.92) sepia(0.04);
  --wash-filter-hero: saturate(0.45) brightness(1.02) contrast(0.88) sepia(0.08);

  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.04);
  --radius-md: 10px;
  --border-subtle: 1px solid rgba(0,0,0,0.06);
  --transition-fast: 150ms cubic-bezier(0.4,0,0.2,1);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* CR-01 fix: redesign/_shared/chrome.css's mega-menu-group-label and
     badge-coming-soon rules reference --tracking-wide and --radius-sm,
     but this :root block (ported from the pilot) never defined them —
     the exact gap Phase 6 flagged in redesign/06-chrome-scaffold/
     style.css:74-81 for "Phase 7's real per-page theme stylesheets" to
     close. Values match that scaffold's token set. */
  --tracking-wide: 0.06em;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.gsap-animate {
  visibility: hidden;
}

a {
  text-decoration: none;
}

/* ============================================================
   Emphasis pattern — black/gray weight-mix, never color/size
   ============================================================ */

.em   { font-family: var(--font-bold); font-weight: 700; color: var(--color-text); }
.fade { color: var(--color-text-muted); font-weight: 400; }

/* ============================================================
   Hero (page-specific — chrome.css never defines these)
   ============================================================ */

/* The canonical blue/white CTA style now lives solely in
   redesign/_shared/chrome.css's .btn-cta rule (per G-09-36). The
   .btn-cta--secondary class token on this page's hero/closing CTA
   element is kept in the HTML only because this page's own .js file
   still targets it as a GSAP animation selector — it must never again
   be given its own background/color/hover declarations here. */

.hero-section {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92vh;
  padding-bottom: var(--space-3xl);
}

.hero-section .hero-headline,
.hero-section .hero-sub,
.hero-section .em {
  color: var(--color-text-on-dark);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

.hero-section .fade {
  color: rgba(244,244,242,0.75);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

/* D-83 homepage-half fix (never executed 02-06-PLAN.md Task 2's WR-03
   fix, still valid): the hero CTA only inherited the global
   .btn-cta:focus-visible dark-navy outline, low-contrast against the
   dark hero photo. This is page-owned markup, so this half of the
   fix belongs here, not in chrome.css. */
.hero-section .btn-cta:focus-visible {
  outline: 2px solid var(--color-text-on-dark);
  outline-offset: 2px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 7.4vw, 104px);
  font-weight: 300;
  line-height: 0.94;
  margin: 0 0 var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 var(--space-lg);
  max-width: 640px;
}

.hero-photo-frame {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  /* G-09-37 — crop hero photo shorter and fade its bottom edge into the
     page background instead of a hard cut line (09-01 canonical source) */
  bottom: 12%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* G-09-32: at every common desktop width the frame's box aspect ratio
     (~1.9-2.2 post-G-09-37) exceeds relaycsp-hero.png's source aspect
     ratio, so object-fit: cover is width-constrained on desktop — 100% of
     the source's width is shown and object-position's Y value controls
     which vertical band is visible. A prior fix attempt (Y=4%, near the
     top of the source) was verified only via a text-metrics simulation
     and, per real Chromium rendering at 1280/1440/1920px, still put the
     headline directly across the subject's face/eyes at every width —
     the simulation's estimate was wrong. Re-verified against real
     screenshots this time: Y=100% shows the BOTTOM band of the source
     (hands on laptop, coffee cup, table) with the subject's face entirely
     above the visible crop window — no face left to overlap the headline
     at any tested desktop width. On narrow/tall mobile viewports the box
     flips to height-constrained (Y becomes a no-op; X governs the crop),
     so this Y change does not affect mobile — X stays at 20%, unchanged
     from the prior mobile-safe value.
  */
  object-position: 20% 100%;
  filter: var(--wash-filter-hero);
}

.hero-photo-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(20,20,18,0.35) 100%),
    linear-gradient(180deg, rgba(10,12,14,0.55) 0%, rgba(10,12,14,0.12) 35%, rgba(20,20,18,0.55) 100%);
}

.hero-photo-grain {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   Phase 9 shared detail-page vocabulary — duplicated byte-for-byte
   from new-blue-design/utility-billing.css (09-01's canonical source).
   ============================================================ */

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-mint);
  margin: 0 0 var(--space-sm);
  text-shadow: 0 1px 14px rgba(0,0,0,0.25);
}

/* Established in 09-01 for pages that DO have named sub-modules — used
   on this page (RelayCSP has 7 named modules, per the locked "present
   when named sub-modules exist" rule — see 09-CONTEXT.md D-93/sketch
   012 Variant B). */
.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
}

.hero-tag-chip {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(244,244,242,0.14);
  border: 1px solid rgba(244,244,242,0.3);
  color: var(--color-text-on-dark);
}

.detail-section {
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.detail-section:nth-of-type(even) {
  background: var(--color-surface);
}

.detail-section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-sm);
}

.detail-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-sm);
}

.detail-section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 var(--space-lg);
}

.detail-prose {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  max-width: 720px;
  margin: 0 0 var(--space-md);
}

.detail-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.4;
  color: var(--color-blue-deep);
  border-left: 3px solid var(--color-mint-deep);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: normal;
}

.detail-step-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
}

.detail-step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: var(--border-subtle);
}

.detail-step-row:last-child {
  border-bottom: none;
}

.detail-step-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-blue-deep); /* WCAG-corrected: ~6.9:1 vs --color-text-on-dark (was var(--color-blue), ~1.56:1) */
  color: var(--color-text-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-bold);
  font-size: 15px;
}

/* Non-numeric-marker variant — used where content is independent/
   unordered — avoids implying a false sequence, see 09-CONTEXT.md
   D-93 and sketch-013's flagged risk. */
.detail-step-dot--neutral {
  background: #56745E; /* WCAG-corrected mint tone: ~4.7:1 vs --color-text-on-dark (was var(--color-mint-deep), ~2.4:1) */
  font-size: 18px;
  line-height: 1;
}

/* G-09-32: the 19 detail-step-dot--neutral markers now carry an inline
   svg icon (stroke="currentColor" inherits .detail-step-dot's white
   color automatically) instead of a bullet-character glyph — only a
   size rule is needed. */
.detail-step-dot svg {
  width: 30px;
  height: 30px;
}

.detail-step-row h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  margin: 2px 0 var(--space-xs);
  color: var(--color-text);
}

.detail-step-row p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   Page-scoped extension for RelayCSP's denser nested-list content —
   not part of the shared Phase 9 vocabulary. Never ported into
   utility-billing.css or presented as a shared-vocabulary change.
   ============================================================ */

.detail-feature-list {
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-feature-list li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-mint-deep);
}

.detail-step-row p strong,
.detail-feature-list li strong {
  font-family: var(--font-bold);
  font-weight: 700;
  color: var(--color-text);
}

.detail-section--cta {
  text-align: center;
}

/* Card treatment for the 7 Core Modules only (G-09-27 item 4) — restores
   old-design's .module-block per-module visual separation; additive
   modifier, the base .detail-step-flow/.detail-step-row rules above stay
   untouched for every other section on this page and every other Phase 9
   page's own css file */

.detail-step-flow--modules {
  gap: var(--space-lg);
}

.detail-step-flow--modules .detail-step-row {
  display: block;
  border: var(--border-subtle);
  border-left: 4px solid var(--color-mint-deep);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-xl);
}

.detail-step-flow--modules .detail-step-dot {
  display: none;
}

.detail-step-flow--modules .detail-step-row h3 {
  font-size: 20px;
  color: var(--color-blue-deep);
  margin: 0 0 var(--space-sm);
}

/* G-09-27 item 5 — CTA-emphasis fix: image-plus-text banner layout for
   the closing CTA section, replacing the previous plain centered
   heading+button. */

.cta-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  text-align: left;
}

.cta-banner-image {
  flex: 0 0 38%;
}

.cta-banner-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* G-09-32: relaycsp-cta.png is a 917x1686 portrait source inside this
     landscape 4:3 box — width-constrained under object-fit: cover, so
     only ~41% of the source's height is ever visible. The previous
     unset value defaulted to 50% 50% (vertically centered), landing
     that 41% band on the shirt/clipboard and excluding the face
     entirely. Shifting toward the top of the source brings the face
     and shoulders into that visible band instead — confirmed via a
     rendered-crop simulation, not just grep for the property's
     presence. */
  object-position: 50% 10%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.cta-banner-content {
  flex: 1;
}

@media (max-width: 767.98px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
  }
}
