/* PAI FLOW v2. Shared header/footer and subpage hero dimensions stay in home.css/subpage.css. */
.product-page { --product-ink: #112440; --product-muted: #718097; --product-blue: #2878ff; --product-line: #e8eef7; }
.product-opening { position: relative; isolation: isolate; background: #f5f7f9; }
.product-opening::before { content: ''; position: absolute; z-index: -1; inset-block: 0; left: 50%; transform: translateX(-50%); width: min(100%, 1125px); background: url('/assets/images/product/pai-flow-hero-bg-v2.webp') center bottom / auto 112% no-repeat; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); pointer-events: none; }
.product-hero { color: var(--product-ink); }
.product-tagline { margin-top: 12px; font-size: clamp(21px, 1.85vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -.04em; }
.product-hero-description { max-width: 620px; margin-top: 16px; color: #5d6d83; font-size: 14px; line-height: 1.7; letter-spacing: -.035em; }
.product-skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: white; }
.product-skip:focus { top: 10px; }
.product-navigation { background: #f7f9fc; }
.product-navigation-inner { display: block; }
.product-navigation ul { display: flex; list-style: none; padding: 0; margin: 0; }
.product-navigation li { display: flex; justify-content: center; flex: 1; min-width: 0; text-align: center; }
.product-navigation a, .product-navigation li span { position: relative; display: block; padding: 22px 16px; white-space: nowrap; color: #7c899e; font-size: 13px; font-weight: 600; }
.product-navigation a[aria-current] { color: var(--product-blue); }
.product-navigation a[aria-current]::after { content: ''; position: absolute; bottom: 0; height: 3px; left: 15px; right: 15px; background: var(--product-blue); }
.product-navigation span { cursor: default; }
.product-page main { color: var(--product-ink); }
.product-page main h2 { font-size: clamp(26px, 2.55vw, 36px); line-height: 1.4; font-weight: 600; letter-spacing: -.05em; }
.product-label { margin-bottom: 14px; color: #73829a; font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .1em; }
.product-copy { margin-top: 20px; color: var(--product-muted); font-size: 16px; line-height: 1.8; letter-spacing: -.04em; }
.product-overview-section { padding-block: 66px 64px; }
.product-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 62px; }
.overview-copy .product-copy { max-width: 550px; }
.product-overview > img { display: block; width: 100%; height: auto; border-radius: 9px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px; margin-top: 24px; }
.feature-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 15px; color: var(--product-blue); border-radius: 14px; background: #f0f6ff; }
.feature-icon svg { width: 34px; height: 34px; }
.feature-item h3 { font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -.045em; }
.feature-item p { margin-top: 9px; color: var(--product-muted); font-size: 15px; line-height: 1.85; letter-spacing: -.035em; }
.product-key-feature { padding-block: 75px; background: #f0f6ff; }
.key-feature-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 36px; align-items: center; }
.product-page .key-feature-copy h2 { font-size: clamp(25px, 2.4vw, 34px); }
.key-feature-copy .product-copy { font-size: 15px; }
.data-diagram { position: relative; display: grid; grid-template-columns: 28fr 44fr 28fr; align-items: center; min-width: 0; }
.data-connectors { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.data-list { position: relative; list-style: none; padding: 0; margin: 0; border-radius: 10px; background: white; box-shadow: 0 6px 28px #426fab05; }
.data-list li { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 12px 24px; color: #263953; font-size: 14px; font-weight: 600; letter-spacing: -.04em; }
.data-list li + li { border-top: 1px solid #f0f3f9; }
.data-list svg { flex: 0 0 23px; width: 23px; height: 23px; }
.data-core { position: relative; display: grid; place-items: center; width: 70%; aspect-ratio: 1; justify-self: center; border-radius: 50%; background: #e7f0ff; }
.data-core > div { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; width: 82%; height: 82%; border-radius: 50%; background: radial-gradient(circle, #dbe9ff, #e0ecff); }
.data-core svg { width: 48px; height: 48px; color: var(--product-blue); }
.data-core strong { font-size: 16px; font-weight: 600; letter-spacing: -.04em; }
.product-workflow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.35fr); gap: 36px; align-items: center; padding-block: 48px 56px; }
.product-page .product-workflow h2 { font-size: clamp(25px, 2.2vw, 31px); }
.product-workflow .product-copy { font-size: 15px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.workflow-steps li { position: relative; min-width: 0; }
.workflow-steps img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 6px; }
/* The supplied third crop retains a fragment of the old connector outside its screen. */
.workflow-steps li:nth-child(3) img { clip-path: inset(0 0 0 11%); }
.workflow-steps h3 { margin-top: 13px; text-align: center; font-size: 14px; line-height: 1.5; font-weight: 600; letter-spacing: -.05em; }
.workflow-steps li:not(:last-child)::after, .usecase-grid article:not(:last-child)::after { content: '›'; position: absolute; right: -21px; top: calc((100% - 34px) / 2 - 13px); display: grid; place-items: center; width: 20px; height: 27px; border-radius: 50%; background: #edf4ff; color: #79adff; font-size: 29px; line-height: 1; font-weight: 600; z-index: 1; }
.product-showcase { background: linear-gradient(125deg, #fcfdff, #f7f9fc); }
.product-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 52px; align-items: center; padding-top: 60px; }
.product-screen > img { display: block; width: 100%; height: auto; border-radius: 15px 15px 0 0; filter: drop-shadow(0 0 10px #102b4910); }
.product-screen .product-copy { font-size: 17px; line-height: 1.65; }
.product-usecases { padding-block: 30px 44px; }
.product-page .product-usecases h2 { font-size: 30px; }
.product-usecases .product-label { margin-bottom: 10px; }
.usecase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-top: 24px; }
.usecase-grid article { position: relative; min-width: 0; }
.usecase-grid img { display: block; width: 100%; height: auto; aspect-ratio: 2.6 / 1; object-fit: cover; border-radius: 7px; }
.usecase-grid h3 { margin-top: 12px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.usecase-grid article:not(:last-child)::after { right: -23px; top: calc((100% - 36px) / 2 - 13px); }
@media (max-width: 1100px) {
  .product-opening::before { background-position: 70% bottom; }
  .product-hero-description { max-width: 530px; font-size: 13px; }
  .product-overview { gap: 35px; }
  .feature-grid { gap: 28px; }
  .feature-item h3 { font-size: 16px; }
  .feature-item p { font-size: 14px; }
  .key-feature-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 24px; }
  .data-list li { min-height: 48px; padding-inline: 12px; gap: 9px; font-size: 12px; }
  .data-list svg { flex-basis: 20px; width: 20px; height: 20px; }
  .data-core strong { font-size: 14px; }
  .data-core svg { width: 39px; height: 39px; }
  .product-workflow { gap: 28px; }
  .workflow-steps { gap: 18px; }
  .workflow-steps h3 { font-size: 12px; }
  .workflow-steps li:not(:last-child)::after { right: -19px; }
  .product-screen { gap: 36px; }
}
@media (min-width: 768px) and (max-width: 900px) {
  .product-opening::before { background-image: linear-gradient(90deg, #f7f9fcaa, transparent 75%), url('/assets/images/product/pai-flow-hero-bg-v2.webp'); }
  .product-tagline { font-size: 22px; }
  .product-hero-description { max-width: 440px; }
  .product-navigation a, .product-navigation li span { padding-inline: 10px; font-size: 12px; }
  .key-feature-layout { grid-template-columns: 1fr; gap: 30px; }
  .data-diagram { max-width: 650px; width: 100%; justify-self: center; }
  .key-feature-copy .product-copy { max-width: 580px; }
  .data-list li { min-height: 50px; font-size: 14px; padding-inline: 20px; }
  .product-workflow { grid-template-columns: 1fr; }
  .product-workflow .product-copy { max-width: 560px; }
  .product-desktop-break { display: none; }
}
@media (max-width: 767px) {
  .product-opening::before { width: 100%; background-image: linear-gradient(90deg, #f8fafff5 0%, #f8faffd9 75%, #f8faff80), url('/assets/images/product/pai-flow-hero-bg-mobile-v2.webp'); background-size: cover; background-position: center; mask-image: none; }
  .product-tagline { font-size: 21px; margin-top: 12px; }
  .product-hero-description { max-width: 390px; font-size: 13px; margin-top: 14px; line-height: 1.8; }
  .product-desktop-break { display: none; }
  .product-navigation ul { justify-content: flex-start; gap: 20px; overflow-x: auto; scrollbar-width: thin; }
  .product-navigation li { flex: 0 0 auto; }
  .product-navigation a, .product-navigation li span { padding: 19px 4px; font-size: 12px; }
  .product-navigation a[aria-current]::after { left: 0; right: 0; }
  .product-overview-section { padding-block: 40px; }
  .product-overview { grid-template-columns: 1fr; gap: 26px; }
  .product-page main h2 { font-size: 26px; }
  .product-label { font-size: 10px; margin-bottom: 12px; }
  .product-copy { font-size: 14px; margin-top: 16px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin-top: 28px; }
  .feature-icon { width: 52px; height: 52px; border-radius: 11px; margin-bottom: 12px; }
  .feature-icon svg { width: 29px; height: 29px; }
  .feature-item h3 { font-size: 14px; }
  .feature-item p { font-size: 13px; line-height: 1.8; }
  .feature-item p br { display: none; }
  .product-key-feature { padding-block: 38px; }
  .key-feature-layout { grid-template-columns: 1fr; gap: 30px; }
  .product-page .key-feature-copy h2 { font-size: 26px; }
  .key-feature-copy .product-copy { font-size: 14px; }
  .data-diagram { grid-template-columns: 1fr; gap: 24px; }
  .data-connectors { display: none; }
  .data-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 8px; }
  .data-list li { flex: 0 1 50%; min-height: 44px; border: 0; padding: 8px; font-size: 12px; }
  .data-list li + li { border: 0; }
  .data-core { width: 164px; }
  .data-core > div { gap: 10px; }
  .data-core::before, .data-core::after { content: ''; position: absolute; height: 24px; width: 1px; left: 50%; background: #b6d2ff; }
  .data-core::before { bottom: 100%; }
  .data-core::after { top: 100%; }
  .product-workflow { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 40px; }
  .product-page .product-workflow h2 { font-size: 25px; }
  .product-workflow .product-copy { font-size: 14px; }
  .workflow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
  .workflow-steps li:not(:last-child)::after { right: -21px; }
  .workflow-steps li:nth-child(2)::after { display: none; }
  .workflow-steps h3 { font-size: 12px; margin-top: 10px; }
  .product-screen { grid-template-columns: 1fr; gap: 28px; padding-top: 38px; }
  .product-screen .product-copy { font-size: 15px; }
  .product-screen > img { border-radius: 8px 8px 0 0; }
  .product-usecases { padding-block: 32px 36px; }
  .product-page .product-usecases h2 { font-size: 24px; }
  .usecase-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  .usecase-grid h3 { font-size: 15px; margin-top: 10px; }
  .usecase-grid article:not(:last-child)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .product-page { scroll-behavior: auto; } }
