/* DigitalX Exhibition — Phase 2 visual system (1920x1080 first) */

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #008489;
  --teal-dark: #066068;
  --teal-title: #0a7a84;
  --blue: #1e88e5;
  --blue-dark: #0b5cad;
  --blue-bright: #0096eb;
  --blue-nav: #1e9af0;
  --green: #2d9a5a;
  --green-soft: #58ad78;
  --green-light: #70c18d;
  --text: #222222;
  --text-muted: #4a5568;
  --card-bg: #ffffff;
  --shadow: 0 8px 22px rgba(20, 50, 80, 0.12);
  --shadow-soft: 0 4px 14px rgba(20, 50, 80, 0.08);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-sm: 14px;
  --nav-size: 60px;
  --page-pad-x: 48px;
  --page-pad-y: 28px;
  --font: Arial, Helvetica, sans-serif;
  --font-display: "Poppins", Arial, Helvetica, sans-serif;
  --gradient-title: linear-gradient(90deg, #328999 0%, #0291f7 100%);
  --transition: 260ms ease;
  /*
   * Design artboard: 1920×1080 (100% reference).
   * Contain-scale keeps the full UI visible at the correct size.
   *   1920×1080 → 1
   *   2560×1440 → ≈1.333
   *   3840×2160 → 2
   * Letterbox gaps (if any) are filled by .bg-layer cover — not white bars.
   */
  --artboard-w: 1920;
  --artboard-h: 1080;
  --stage-scale: min(100vw / 1920px, 100vh / 1080px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html,
body {
  font-family: var(--font);
  color: var(--text);
  background: #f4fafd;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body {
  user-select: none;
  -webkit-user-select: none;
}

img,
svg {
  display: block;
  pointer-events: none;
}

/* Fluid images outside fixed artboard assets */
.listing-media,
.mascot,
.media-placeholder img,
.detail-media:not(.video-player) img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  user-select: none;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.55);
  outline-offset: 3px;
}

.app {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Full-viewport background — always edge-to-edge on any screen size */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: #f4fafd;
  background-image: url("../assets/images/background/digitalx-bg.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(210, 235, 245, 0.18) 100%);
  pointer-events: none;
}

/* Centers the 16:9 stage; gaps show the full-bleed background */
.stage-shell {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

/*
 * Fixed 1920×1080 design canvas, contain-scaled to the viewport.
 * Prefer `zoom` over `transform: scale` — Chrome/Safari rasterize much sharper
 * (transform-scale caused soft → snap-sharp on page changes).
 */
.stage {
  position: relative;
  width: calc(var(--artboard-w) * 1px);
  height: calc(var(--artboard-h) * 1px);
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  zoom: var(--stage-scale);
  transform: none;
  transform-origin: center center;
  pointer-events: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

@supports not (zoom: 1) {
  .stage {
    zoom: unset;
    transform: scale(var(--stage-scale));
  }
}

.pages {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--page-pad-y) var(--page-pad-x);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Instant switch — no fade/scale (avoids soft-then-sharp paint) */
  transition: none;
}

.page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #111111;
}

.page-title.teal {
  color: var(--teal-title);
}

.page-subtitle {
  margin: 6px 0 0;
  text-align: center;
  font-size: 22px;
  color: var(--text);
  font-weight: 600;
}

.page-header {
  flex: 0 0 auto;
  margin-bottom: 18px;
}


.page-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page-body-center {
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease;
  box-shadow: 0 6px 16px rgba(15, 60, 120, 0.18);
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
  filter: brightness(0.98);
}

.btn-blue {
  background: linear-gradient(90deg, #1e88e5 0%, #42a5f5 100%);
}

.btn-green {
  background: linear-gradient(90deg, #70c18d 0%, #49a56f 100%);
}

.btn-teal {
  background: linear-gradient(90deg, #14a39a 0%, #2d9a5a 100%);
}

.btn-wide {
  width: 100%;
  max-width: 100%;
}

/* Listing More Info — CSS chrome (no SVG) · r63 · inset #FFFFFF66 */
.btn-more-info {
  position: relative;
  width: 449px;
  max-width: 100%;
  height: 90.0113525390625px;
  min-height: 90.0113525390625px;
  padding: 0;
  border: none;
  border-radius: 63px;
  background: linear-gradient(213.04deg, #0291f7 23.89%, #00adee 135.2%);
  box-shadow: inset 0 4px 1px 0 #ffffff66;
  overflow: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.btn-more-info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, #80dd72 0%, #0291f7 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-more-info span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.05;
}

.btn-more-info:hover,
.btn-more-info:focus,
.btn-more-info:focus-visible {
  outline: none;
  filter: brightness(1.05);
}

.btn-more-info:active {
  transform: scale(0.97);
  filter: none;
}

/* Agents More Info — Figma 448.53×88 · green fill / border */
.btn-more-info--agent {
  width: 448.5273132324219px;
  height: 88px;
  min-height: 88px;
  background: linear-gradient(213.04deg, #68c085 23.89%, #328999 135.2%);
}

.btn-more-info--agent::before {
  background: linear-gradient(180deg, #80dd72 0%, #4db7a9 100%);
}

/* Circular nav controls — bottom right of artboard
   Assets (home.svg / arrow-right.svg) already include the blue circle. */
.nav-controls {
  position: absolute;
  right: 40px;
  bottom: 32px;
  z-index: 20;
  display: flex;
  gap: 14px;
}

.nav-btn {
  width: var(--nav-size);
  height: var(--nav-size);
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 4px 10px rgba(22, 119, 210, 0.28));
}

.nav-btn--back img {
  transform: scaleX(-1);
}

.nav-btn:hover,
.nav-btn:focus,
.nav-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
}

.nav-btn:hover img,
.nav-btn:focus-visible img {
  filter:
    brightness(1.06)
    drop-shadow(0 8px 16px rgba(22, 119, 210, 0.35));
}

.nav-btn:active {
  transform: translateY(0) scale(0.96);
}

.nav-btn.is-hidden {
  display: none;
}

/* Detail routes — smaller nav so controls don't cover footnote / side cards */
.app.is-detail-view .nav-controls {
  --nav-size: 44px;
  gap: 10px;
  right: 28px;
  bottom: 22px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.card-clickable {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card-clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 40, 70, 0.14);
}

.card-clickable:active {
  transform: scale(0.985);
}

/* ========== HOME (Figma artboard 1920×1080) ========== */
.page-home {
  padding: 0;
}

/* 1) Title — @ 693,66 · Poppins 64 Medium · gradient
   SVG text avoids background-clip clipping descenders (g/y). */
.home-title {
  position: absolute;
  top: 50px;
  left: 680px;
  width: 560px;
  height: 100px;
  margin: 0;
  padding: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.home-title-svg {
  display: block;
  width: 560px;
  height: 100px;
  overflow: visible;
}

.home-title-svg text {
  dominant-baseline: alphabetic;
}

/* DigitalX Strategy.svg — 866×866 @ 527,176 */
.page-home .home-house {
  position: absolute;
  top: 176px;
  left: 527px;
  width: 866px;
  height: 866px;
  margin: 0;
  z-index: 1;
}

.page-home .home-house .strategy-house,
.page-home .home-house .strategy-house-image {
  width: 866px;
  height: 866px;
}

/* 2) Press Here — Poppins 40 Medium · gradient
   One line, centered above the 279px CTA (clears button). */
.press-here {
  position: absolute;
  top: 510px;
  left: 1520px;
  width: 279px;
  margin: 0;
  padding: 0;
  z-index: 3;
  overflow: visible;
  text-align: center;
  pointer-events: none;
}

.press-here-text {
  display: inline-block;
  max-width: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  background-image: var(--gradient-title);
  background-repeat: no-repeat;
  background-size: 100% 140%;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* 3) Go next steps — Rectangle1.svg 279×53 @ 1520,565 */
.home-cta {
  position: absolute;
  top: 565px;
  left: 1520px;
  width: 279px;
  height: 53px;
  min-height: 53px;
  padding: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 63px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.home-cta-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.home-cta span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
}

.home-cta:hover,
.home-cta:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.home-cta:active {
  transform: scale(0.97);
}

/* 4) Mascot — 424×424 @ 1448,618 */
.page-home .mascot {
  position: absolute;
  top: 618px;
  left: 1448px;
  width: 424px;
  height: 424px;
  max-width: none;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(15, 40, 70, 0.2));
}

/* ========== STRATEGY / IMPACT ========== */
.page-strategy {
  padding: 0;
}

.strategy-layout {
  width: 100%;
  height: 100%;
}

.strategy-left,
.strategy-right {
  min-width: 0;
}

/* 1) DigitalX Strategy — @ 333,66 · 401×50 · Poppins 48 Medium · gradient
   SVG box taller than Figma 50 so descenders (g/y) stay visible. */
.strategy-heading {
  position: absolute;
  margin: 0;
  padding: 0;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
}

.strategy-heading--left {
  top: 66px;
  left: 333px;
  width: 401px;
  height: 72px;
}

/* 2) From Data to DigitalX Impact — @ 1105,168 · 694×50 · same type/gradient */
.strategy-heading--right {
  top: 168px;
  left: 1105px;
  width: 694px;
  height: 72px;
}

.strategy-heading-svg {
  display: block;
  overflow: visible;
}

.strategy-heading-svg text {
  dominant-baseline: alphabetic;
}

/* DigitalX Strategy.svg — strategy: 866×866 @ 100,176 (artboard) */
[data-page="strategy"] [data-house="strategy"] {
  position: absolute;
  top: 176px;
  left: 100px;
  width: 866px;
  height: 866px;
  z-index: 1;
}

[data-page="strategy"] [data-house="strategy"] .strategy-house,
[data-page="strategy"] [data-house="strategy"] .strategy-house-image {
  width: 866px;
  height: 866px;
}

/* Impact column — artboard: cards 752×302 @ 1076,273 */
[data-page="strategy"] .strategy-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 2;
}

.impact-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 2;
}

/* CSS card shells (no SVG frames) — Figma 752×302
 * Border drawn via inset shadow so absolute children stay on artboard coords. */
.impact-card {
  position: absolute;
  display: block;
  width: 752px;
  height: 302px;
  box-sizing: border-box;
  background: #f7fbfc;
  border: none;
  padding: 0;
  overflow: visible;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1) AI Solutions — @ 1076,273 · r63 · border #328999 · shadow #B8FBEF70 */
.impact-card--solutions {
  top: 273px;
  left: 1076px;
  border-radius: 63px;
  box-shadow:
    inset 0 0 0 1px #328999,
    0 4px 4px 0 #b8fbef70;
}

/* 2) AI Agent — @ 1076,610 · r61 · border #68C085 · shadow #BBFBB870 */
.impact-card--agent {
  top: 610px;
  left: 1076px;
  border-radius: 61px;
  box-shadow:
    inset 0 0 0 1px #68c085,
    0 4px 4px 0 #bbfbb870;
}

.impact-card.card-clickable:hover,
.impact-card.card-clickable:focus,
.impact-card.card-clickable:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.impact-card--solutions.card-clickable:hover,
.impact-card--solutions.card-clickable:focus-visible {
  box-shadow:
    inset 0 0 0 1px #328999,
    0 4px 4px 0 #b8fbef70,
    0 14px 28px rgba(2, 100, 200, 0.16);
}

.impact-card--agent.card-clickable:hover,
.impact-card--agent.card-clickable:focus-visible {
  box-shadow:
    inset 0 0 0 1px #68c085,
    0 4px 4px 0 #bbfbb870,
    0 14px 28px rgba(50, 137, 153, 0.14);
}

.impact-card.card-clickable:active {
  transform: translateY(-2px);
  outline: none;
}

.impact-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 20px;
  align-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 22px 36px 22px 28px;
  box-sizing: border-box;
  border-radius: inherit;
  overflow: hidden;
}

.impact-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.impact-icon-wrap {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 60, 100, 0.08);
}

.impact-card .impact-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.impact-more-btn {
  position: relative;
  width: 100%;
  max-width: 220px;
  min-height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 63px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.impact-more-btn span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.impact-more-btn:hover,
.impact-more-btn:focus,
.impact-more-btn:focus-visible {
  outline: none;
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.impact-more-btn:active {
  transform: translateY(0);
  outline: none;
  filter: none;
}

.impact-copy h3 {
  margin: 0;
  color: #111;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.impact-card .impact-sub {
  margin: 6px 0 0;
  padding-bottom: 8px;
  font-weight: 700;
  color: #111;
  font-size: 18px;
  display: inline-block;
}

.impact-rule {
  display: none;
}

.impact-card ul {
  margin: 10px 0 0;
  padding-left: 1.15rem;
  color: #222;
  font-size: 16px;
  line-height: 1.45;
  list-style: disc;
}

.impact-card ul li + li {
  margin-top: 6px;
}

/* ----- AI Solutions card — Figma absolute (card origin @ 1076,273) ----- */
.impact-card--solutions .impact-card-body {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-radius: 63px;
}

.impact-card--solutions .impact-left,
.impact-card--solutions .impact-copy {
  display: contents;
}

/* 1) Icon ring — artboard 1195,326 · 131×131 · 1px #328999 */
.impact-card--solutions .impact-icon-wrap {
  position: absolute;
  top: 53px;
  left: 119px;
  width: 131px;
  height: 131px;
  border: 1px solid #328999;
  border-radius: 50%;
  background: #f9fcfb;
  box-shadow: none;
  box-sizing: border-box;
}

.impact-card--solutions .impact-icon {
  width: 74px;
  height: 74px;
}

/* 2–3) More Information — artboard 1121,478.91 · 279×59.31 · r63 */
.impact-card--solutions .impact-more-btn {
  position: absolute;
  top: 205.91px;
  left: 45px;
  width: 279px;
  height: 59.3117px;
  max-width: none;
  min-height: 0;
  border: none;
  border-radius: 63px;
  background: linear-gradient(213.04deg, #0064fa 23.89%, #5fbcff 135.2%);
  box-shadow: inset 0 4px 1px 0 #ffffff66;
  isolation: isolate;
}

.impact-card--solutions .impact-more-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, #245dff 0%, #1375fb 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.impact-card--solutions .impact-more-btn span {
  position: relative;
  z-index: 1;
  width: 207px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
}

/* 4) Title — artboard 1461,312 · 282×56 · Poppins SemiBold 48 */
.impact-card--solutions .impact-copy h3 {
  position: absolute;
  top: 39px;
  left: 385px;
  width: 282px;
  height: 56px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
  white-space: nowrap;
}

/* 5) Subtitle — artboard 1484,380 · 236×28 · Poppins Medium 24 */
.impact-card--solutions .impact-sub {
  position: absolute;
  top: 107px;
  left: 408px;
  width: 236px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
  white-space: nowrap;
}

/* 7) Divider — artboard 1505,423 · 193 · 2px #328999 */
.impact-card--solutions .impact-rule {
  display: block;
  position: absolute;
  top: 150px;
  left: 429px;
  width: 193px;
  height: 0;
  border: none;
  border-top: 2px solid #328999;
  pointer-events: none;
}

/* 6) Bullets — keep each item on one line (Figma) */
.impact-card--solutions ul {
  position: absolute;
  top: 161px;
  left: 360px;
  width: 340px;
  height: 104px;
  margin: 0;
  padding: 0 0 0 18px;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0;
  color: #222;
  list-style: disc;
  overflow: visible;
}

.impact-card--solutions ul li {
  white-space: nowrap;
}

.impact-card--solutions ul li + li {
  margin-top: 0;
}

/* ----- AI Agent card — Figma absolute (card origin @ 1076,610) ----- */
.impact-card--agent .impact-card-body {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border-radius: 61px;
}

.impact-card--agent .impact-left,
.impact-card--agent .impact-copy {
  display: contents;
}

/* 1) Icon ring — artboard 1197,650 · 128×128 · 1px #68C085 */
.impact-card--agent .impact-icon-wrap {
  position: absolute;
  top: 40px;
  left: 121px;
  width: 128px;
  height: 128px;
  border: 1px solid #68c085;
  border-radius: 50%;
  background: #f9fcfb;
  box-shadow: none;
  box-sizing: border-box;
}

.impact-card--agent .impact-icon {
  width: 72px;
  height: 72px;
}

/* 2–3) More Information — artboard 1105,810.16 · 288×60.85 · r63
 * ::before ring keeps #80dd72 top rim crisp (background-clip washed it out) */
.impact-card--agent .impact-more-btn {
  position: absolute;
  top: 200.16px;
  left: 29px;
  width: 288px;
  height: 60.8505px;
  max-width: none;
  min-height: 0;
  border: none;
  border-radius: 63px;
  background: linear-gradient(213.04deg, #4db7a9 23.89%, #328999 135.2%);
  box-shadow: inset 0 4px 1px 0 #ffffff66;
  isolation: isolate;
}

.impact-card--agent .impact-more-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, #80dd72 0%, #4db7a9 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.impact-card--agent .impact-more-btn span {
  position: relative;
  z-index: 1;
  width: 219px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
}

/* 4) Title — artboard 1498,630 · 205×56 · Poppins SemiBold 48 */
.impact-card--agent .impact-copy h3 {
  position: absolute;
  top: 20px;
  left: 422px;
  width: 205px;
  height: 56px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
  white-space: nowrap;
}

/* 5) Subtitle — artboard 1498,700 · 204×28 · Poppins Medium 24 */
.impact-card--agent .impact-sub {
  position: absolute;
  top: 90px;
  left: 422px;
  width: 204px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
  white-space: nowrap;
}

/* 7) Divider — artboard 1504,744 · 193 · 2px #68C085 */
.impact-card--agent .impact-rule {
  display: block;
  position: absolute;
  top: 134px;
  left: 428px;
  width: 193px;
  height: 0;
  border: none;
  border-top: 2px solid #68c085;
  pointer-events: none;
}

/* 6) Bullets — single-line items except last (Figma wrap) */
.impact-card--agent ul {
  position: absolute;
  top: 142px;
  left: 380px;
  width: 310px;
  height: 139px;
  margin: 0;
  padding: 0 0 0 18px;
  box-sizing: border-box;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0;
  color: #222;
  list-style: disc;
  overflow: visible;
}

.impact-card--agent ul li:nth-child(1),
.impact-card--agent ul li:nth-child(2) {
  white-space: nowrap;
}

.impact-card--agent ul li + li {
  margin-top: 0;
}

/* ========== LISTING PAGES ========== */
[data-page="solutions"],
[data-page="agents"] {
  padding: 0;
}

/* Listing titles — Figma @ 759,93 · 402×67 · Poppins SemiBold 64 · #000 */
[data-page="solutions"] .page-header,
[data-page="agents"] .page-header {
  position: absolute;
  top: 93px;
  left: 759px;
  width: 402px;
  height: 67px;
  margin: 0;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
}

[data-page="solutions"] .page-title,
[data-page="agents"] .page-title {
  width: 402px;
  height: 67px;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #000;
  white-space: nowrap;
}

.listing-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-content: center;
  height: 100%;
  padding-bottom: 24px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  min-height: 620px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 160, 190, 0.45);
  background: #fff;
}

.listing-card .listing-media {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  background: #dbeafe;
}

.listing-card .listing-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 28px 28px;
  flex: 1;
}

.listing-card h3 {
  margin: 0;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #111;
}

.listing-card p {
  margin: 0;
  text-align: center;
  color: #333;
  font-size: 17px;
  line-height: 1.45;
  flex: 1;
}

.listing-card .btn {
  margin-top: 4px;
  min-height: 54px;
  font-size: 20px;
}

/* Listing pages (solutions + agents) — Figma artboard frames */
[data-page="solutions"] .listing-grid,
[data-page="agents"] .listing-grid {
  position: absolute;
  top: 220px;
  left: 400px;
  width: 1120.658935546875px;
  height: 728px;
  margin: 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 57px;
  align-content: stretch;
  align-items: stretch;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 1;
}

[data-page="solutions"] .listing-card,
[data-page="agents"] .listing-card {
  width: auto;
  max-width: none;
  height: 728px;
  min-height: 728px;
  padding: 31px 40px 28px;
  border-radius: 42px;
  border: none;
  background: #f7fbfc;
  box-shadow:
    inset 0 0 0 1px #328999,
    0 4px 4px 0 #b8d2fb70;
  overflow: hidden;
  box-sizing: border-box;
}

[data-page="solutions"] .listing-card.card-clickable:hover,
[data-page="solutions"] .listing-card.card-clickable:focus-visible,
[data-page="agents"] .listing-card.card-clickable:hover,
[data-page="agents"] .listing-card.card-clickable:focus-visible {
  box-shadow:
    inset 0 0 0 1px #328999,
    0 4px 4px 0 #b8d2fb70,
    0 12px 28px rgba(50, 137, 153, 0.16);
}

[data-page="solutions"] .listing-card .listing-media,
[data-page="agents"] .listing-card .listing-media {
  width: 446px;
  height: 392px;
  max-width: 100%;
  aspect-ratio: auto;
  border-radius: 30px;
  object-fit: cover;
  align-self: center;
  flex-shrink: 0;
  background: #e8f4f7;
}

[data-page="solutions"] .listing-card .listing-content,
[data-page="agents"] .listing-card .listing-content {
  padding: 22px 0 0;
  gap: 12px;
  align-items: center;
  min-height: 0;
}

/* Card titles — Poppins SemiBold 32 / 105% / -0.5% */
[data-page="solutions"] .listing-card h3,
[data-page="agents"] .listing-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  color: #111;
}

/* Card descriptions — Poppins Regular 16 / 155% · #000 */
[data-page="solutions"] .listing-card p,
[data-page="agents"] .listing-card p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: center;
  color: #000;
  max-width: 420px;
  white-space: pre-line;
}

[data-page="solutions"] .listing-card .btn-more-info,
[data-page="agents"] .listing-card .btn-more-info {
  max-width: 100%;
  margin-top: auto;
  align-self: center;
}

/* ========== DETAIL PAGE (Figma artboard 1920×1080) ========== */
.page-detail {
  padding: 0;
  font-family: var(--font-display);
}

.page-detail .card {
  border: none;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 4px 0 #00000040;
}

/* 1. Title above video — 402×67 @ 759,90 */
.page-detail .detail-title {
  position: absolute;
  top: 90px;
  left: 759px;
  width: 402px;
  height: 67px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-align: center;
  color: #000;
  white-space: nowrap;
  overflow: visible;
}

/* 2. Subtitle under title — nudged up for more space above video */
.page-detail .detail-subtitle {
  position: absolute;
  top: 172px;
  left: 586px;
  width: 748px;
  height: 38px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-align: center;
  color: #000;
  white-space: nowrap;
  overflow: visible;
}

/* Video between subtitle and How it work */
.page-detail .detail-media {
  position: absolute;
  top: 240px;
  left: 595px;
  width: 730px;
  height: 390px;
  max-height: none;
  aspect-ratio: auto;
}

/* Local MP4 player */
.video-player {
  position: relative;
  display: block;
  background: #0b1220;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #fff;
}

.video-player video {
  display: block;
  width: 100%;
  height: 100%;
  /* Fill the detail slot (730×390 is wider than 16:9); avoid side letterbox bars */
  object-fit: cover;
  background: #0b1220;
  /* Keep poster crisp while idle */
  object-position: center;
}

.video-player .video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.35));
  transition: opacity 0.2s ease;
}

.video-player.is-playing .video-overlay {
  opacity: 0;
}

.video-player .big-play {
  pointer-events: auto;
  width: 78px;
  height: 78px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.video-player .big-play img {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}

.video-player.is-playing .big-play {
  pointer-events: none;
}

.video-player .video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  opacity: 1;
  transition: opacity 0.2s ease;
}

.video-player.is-playing:not(:hover):not(:focus-within) .video-controls {
  opacity: 0;
}

.video-player .ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.video-player .video-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.video-player .video-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-player .video-btn img {
  width: 18px;
  height: 18px;
}

.video-player .video-progress {
  flex: 1;
  min-width: 0;
  accent-color: #4ade80;
  cursor: pointer;
}

.video-player .volume-slider {
  width: 72px;
  accent-color: #fff;
  cursor: pointer;
}

.video-player .video-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.95;
  flex-shrink: 0;
}

.video-player .video-missing {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  gap: 6px;
  text-align: center;
  background: rgba(11, 18, 32, 0.92);
  padding: 24px;
}

.video-player .video-missing strong {
  display: block;
  font-size: 1.1rem;
}

.video-player .video-missing span {
  display: block;
  opacity: 0.8;
  font-size: 0.9rem;
}

.video-player.is-missing .video-missing {
  display: grid;
}

.video-player.is-missing .video-overlay,
.video-player.is-missing .video-controls {
  display: none;
}

.video-player.is-fullscreen,
.video-player:fullscreen,
.video-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.video-player.is-fullscreen video,
.video-player:fullscreen video,
.video-player:-webkit-full-screen video {
  /* Fullscreen keeps full frame without cropping */
  object-fit: contain;
  background: #000;
}

.video-player.is-fullscreen .video-controls,
.video-player:fullscreen .video-controls,
.video-player:-webkit-full-screen .video-controls {
  opacity: 1;
}

/* 1. About — 527×260 @ 47,146 */
.page-detail .detail-about {
  position: absolute;
  top: 146px;
  left: 47px;
  width: 527px;
  height: 260px;
  padding: 0;
  overflow: hidden;
}

.page-detail .detail-about-title {
  position: absolute;
  top: 43px; /* 189 - 146 */
  left: 55px; /* 102 - 47 */
  width: 402px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #0291f7;
}

.page-detail .detail-about-text {
  position: absolute;
  top: 108px; /* 254 - 146 */
  left: 55px;
  width: 439px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #000;
  white-space: pre-line;
}

/* DORA about is 7 lines — tighten so last line is not clipped */
.page-detail--dora .detail-about-text {
  top: 96px;
  line-height: 1.32;
}

/* App Modernization — long about title + denser body copy */
.page-detail--application-modernization .detail-about-title {
  width: 450px;
  font-size: 26px;
  white-space: nowrap;
}

.page-detail--application-modernization .detail-about-text {
  top: 86px;
  right: 24px;
  width: auto;
  bottom: 18px;
  font-size: 15px;
  line-height: 1.32;
  overflow: hidden;
}

/* 2. Why it matters — 527×578 @ 47,427 */
.page-detail .detail-why {
  position: absolute;
  top: 427px;
  left: 47px;
  width: 527px;
  height: 578px;
  padding: 0;
  overflow: hidden;
}

.page-detail .detail-why-title {
  position: absolute;
  top: 43px;
  left: 55px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #68c085;
}

.page-detail .detail-why .matter-list {
  position: absolute;
  top: 103px; /* 530 - 427 — first item */
  left: 0;
  right: 0;
  bottom: 24px;
  list-style: none;
  margin: 0;
  padding: 0 31px 0 27px; /* circle @ left 74 → 27px inset */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
}

.page-detail .matter-item,
.page-detail .benefit-item {
  display: grid;
  grid-template-columns: 108px 342px;
  column-gap: 19px; /* 201 - 74 - 108 */
  align-items: center;
  min-height: 120px;
}

/* 2.3 Logo circle — 108×108, shared Figma size across detail pages */
.page-detail .icon-bubble {
  box-sizing: border-box;
  width: 108px;
  height: 108px;
  /* (108 - 59) / 2 — pad logo into circle without flex/transform (stage zoom safe) */
  padding: 24.5px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: 0 4px 4px 0 #00000040;
}

.page-detail .icon-bubble img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
}

.page-detail .detail-item-copy {
  width: 342px;
  min-height: 0;
  white-space: pre-line;
}

/* 2.1 Why titles / 2.2 Why body */
.page-detail .matter-item strong {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #68c085;
}

.page-detail .matter-item span {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #000;
}

.page-detail .matter-item strong.single-line {
  margin: 0;
  color: #68c085;
}

/* Outcome & Benefits — same gutter as left column (21px from video) */
.page-detail .detail-outcomes {
  position: absolute;
  top: 146px;
  left: 1365px; /* video ends 1325; left card→video also 21px */
  width: 527px;
  height: 859px;
  padding: 0;
  overflow: hidden;
}

.page-detail .detail-outcomes-title {
  position: absolute;
  top: 43px;
  left: 55px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #328999;
}

.page-detail .detail-outcomes .benefit-list {
  position: absolute;
  top: 103px;
  left: 0;
  right: 0;
  bottom: 28px;
  list-style: none;
  margin: 0;
  padding: 0 31px 0 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-detail .benefit-item strong {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  color: #328999;
}

.page-detail .benefit-item span {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
  color: #000;
}

.page-detail .benefit-item strong.single-line {
  margin: 0;
  color: #328999;
}

/* —— DORA color system (Figma Desktop 37) —— */
.page-detail--dora .matter-item strong.single-line {
  font-weight: 400;
  color: #000;
}

.page-detail--dora .detail-outcomes-title {
  color: #328999;
}

.page-detail--dora .detail-item-copy--rich {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.41;
  letter-spacing: 0;
}

.page-detail--dora .benefit-item .detail-hl,
.page-detail--dora .benefit-item .detail-ink {
  display: inline; /* override .benefit-item span { display:block } */
}

.page-detail--dora .benefit-item .detail-hl {
  font-weight: 700;
  color: #328999;
}

.page-detail--dora .benefit-item .detail-ink {
  font-weight: 400;
  color: #000;
}

/* —— AIDEA Agent (Figma: green why accents + teal outcomes) —— */
.page-detail--aidea .detail-about-title,
.page-detail--aidea .workflow-title {
  color: #0291f7;
}

.page-detail--aidea .detail-why-title {
  color: #68c085;
}

.page-detail--aidea .detail-outcomes-title {
  color: #328999;
}

.page-detail--aidea .detail-item-copy--rich {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: 0;
}

.page-detail--aidea .matter-item .detail-hl,
.page-detail--aidea .matter-item .detail-ink,
.page-detail--aidea .benefit-item .detail-hl,
.page-detail--aidea .benefit-item .detail-ink {
  display: inline;
}

.page-detail--aidea .matter-item .detail-hl {
  font-weight: 700;
  color: #68c085;
}

.page-detail--aidea .matter-item .detail-ink {
  font-weight: 400;
  color: #000;
}

.page-detail--aidea .benefit-item .detail-hl {
  font-weight: 700;
  color: #328999;
}

.page-detail--aidea .benefit-item .detail-ink {
  font-weight: 400;
  color: #000;
}

/* Outcome accent/body sit tight on consecutive lines */
.page-detail--aidea .benefit-item .detail-item-copy--rich {
  line-height: 1.28;
}

/* —— Application Modernization (Figma: black why titles + teal outcomes) —— */
.page-detail--application-modernization .detail-about-title,
.page-detail--application-modernization .workflow-title {
  color: #0291f7;
}

.page-detail--application-modernization .detail-why-title {
  color: #68c085;
}

.page-detail--application-modernization .detail-outcomes-title,
.page-detail--application-modernization .benefit-item strong {
  color: #328999;
}

/* Why body: regular weight, continuous sentence (Figma) */
.page-detail--application-modernization .matter-item strong,
.page-detail--application-modernization .matter-item strong.single-line {
  display: inline;
  color: #000;
  font-weight: 400;
  white-space: pre-line;
}

.page-detail--application-modernization .matter-item span,
.page-detail--application-modernization .benefit-item span {
  color: #000;
  font-weight: 400;
}

/* Outcome title ↔ body: tighter than default block stack */
.page-detail--application-modernization .benefit-item .detail-item-copy {
  line-height: 1.25;
}

.page-detail--application-modernization .benefit-item strong {
  margin: 0;
  line-height: 1.2;
}

.page-detail--application-modernization .benefit-item span {
  margin: 0;
  margin-top: 1px;
  line-height: 1.3;
}

/* Long centered title — Application Modernization */
/* Same 64px title as other detail pages — widen box for the longer name */
.page-detail--application-modernization .detail-title {
  top: 90px;
  left: 300px;
  width: 1320px;
  height: 67px;
  font-size: 56px;
  line-height: 1.05;
  white-space: nowrap;
}

.page-detail--application-modernization .detail-subtitle {
  top: 172px;
  font-size: 36px;
}

/* 3–4. How it work title + black divider lines */
.page-detail .workflow-section {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-detail .workflow-section .workflow-steps,
.page-detail .workflow-section .workflow-step {
  pointer-events: auto;
}

.page-detail .workflow-title {
  position: absolute;
  top: 656px;
  left: 596px;
  width: 728px; /* 5×140 + 4×12 */
  height: 33px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-align: center;
  justify-content: center;
  color: #0291f7;
  white-space: nowrap;
}

.page-detail .workflow-title::before,
.page-detail .workflow-title::after {
  content: "";
  flex: 1 1 auto;
  height: 0;
  border-top: 1px solid #000;
}

/* 5–6. How it work cards — 140×193 @ 716,596 */
.page-detail .workflow-steps {
  position: absolute;
  top: 716px;
  left: 596px;
  width: 728px;
  height: 193px;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.page-detail .workflow-step {
  box-sizing: border-box;
  width: 140px;
  height: 193px;
  flex: 0 0 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px 8px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 4px 4px 0 #00000040;
  text-align: center;
}

.page-detail .workflow-step-media {
  width: 120px;
  height: 90px;
  flex: 0 0 90px;
  border-radius: 12px;
  overflow: hidden;
  background: #dbeafe;
}

.page-detail .workflow-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-detail .workflow-step-label {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  margin-top: 14px; /* a bit more space between image and label */
  padding: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: center;
  color: #0291f7;
  white-space: pre-line;
}

/* 7. Bottom footnote — 653×82 @ 634,923 */
.page-detail .detail-footnote {
  position: absolute;
  top: 923px;
  left: 634px;
  width: 653px;
  height: 82px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  line-height: 1.35;
  border-radius: 24px;
  white-space: pre-line;
}

.coming-soon-note {
  margin: 0.5rem 0 0;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

/* Video-like media placeholder (Phase 2 visual only) */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  background: #0b1220;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-play {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  position: relative;
}

.media-play::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 22px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}

.media-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 12px;
}

.media-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.media-bar-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.media-bar-track i {
  display: block;
  width: 28%;
  height: 100%;
  background: #4ade80;
}

.media-bar-time {
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
