/* =========================================================
   Shared stylesheet for bespoke flagship product pages
   (digital-asset-management.html, it-service-management.html,
   contract-management.html, immigration-practice-management.html,
   pos.html, hotel-operations-manager.html,
   hotel-revenue-management.html, hotel-reservation-management.html).

   Loaded alongside css/style.css + css/mega-menu.css +
   css/product.css: reuses design tokens, header, footer,
   mega-menu, btn, badge, eyebrow-chip, maturity-tag,
   service-link, product-breadcrumb, product-hero*, product-note,
   product-disclaimer, product-cap-list, product-cta and
   product-related from those files (the hero + capability list +
   CTA + related-products markup is copy-pasted from the same
   generic-template structure product.js renders, so these bespoke
   pages look like a natural extension of it, not a different
   design system). This file only adds the extra sections a
   flagship page has that the generic template doesn't: business
   challenge, how-it-works flow and integrations. Class prefix: fp-
   ========================================================= */

.fp-main { padding-top: 96px; }

.fp-reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid), filter 0.7s var(--ease-fluid); }
.fp-reveal.is-in { opacity: 1; transform: translateY(0); filter: none; }
.fp-reveal-left { opacity: 0; transform: translateX(-40px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid), filter 0.7s var(--ease-fluid); }
.fp-reveal-left.is-in { opacity: 1; transform: none; filter: none; }
.fp-reveal-right { opacity: 0; transform: translateX(40px); filter: blur(6px); transition: opacity 0.7s var(--ease-fluid), transform 0.7s var(--ease-fluid), filter 0.7s var(--ease-fluid); }
.fp-reveal-right.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .fp-reveal, .fp-reveal-left, .fp-reveal-right { opacity: 1; transform: none; filter: none; transition: none; }
}

.fp-section { padding: 90px 0; }
.fp-section-tight { padding: 60px 0; }
.fp-section-lead { font-size: 15.5px; color: var(--ink-soft); max-width: 640px; }
.fp-center { text-align: center; margin-left: auto; margin-right: auto; }

/* Extra hero copy line under product-hero-summary (product.css only
   styles one summary paragraph; flagship pages add a second, denser
   paragraph below it before the CTA row). */
.product-hero-sub { font-size: 14px; color: var(--ink-mute); max-width: 560px; margin: -18px 0 26px; }

/* ---------- Business challenge ---------- */
.fp-challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fp-challenge-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 26px 24px; box-shadow: var(--elevation-2); }
.fp-challenge-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-ink); margin-bottom: 18px; box-shadow: var(--elevation-1); }
.fp-challenge-ico svg { width: 22px; height: 22px; }
.fp-challenge-card h4 { font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.fp-challenge-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .fp-challenge-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fp-challenge-grid { grid-template-columns: 1fr; } }

/* ---------- Solution overview (intro + capability list side-by-side) ---------- */
.fp-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .fp-solution-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- How it works (numbered flow) ---------- */
.fp-flow { display: flex; align-items: flex-start; gap: 4px; }
.fp-flow-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 0 10px; }
.fp-flow-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-ink); width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: var(--elevation-1); }
.fp-flow-step h4 { font-size: 14.5px; margin: 0; color: var(--ink); }
.fp-flow-step p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.fp-flow-arrow { width: 16px; height: 16px; color: var(--ink-mute); flex: 0 0 auto; margin-top: 10px; }
@media (max-width: 900px) {
  .fp-flow { flex-direction: column; align-items: stretch; gap: 18px; }
  .fp-flow-step { flex-direction: row; text-align: left; padding: 0; }
  .fp-flow-arrow { transform: rotate(90deg); align-self: center; margin: 0; }
}

/* ---------- Business benefits ---------- */
.fp-benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fp-benefit-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px 22px; box-shadow: var(--elevation-2); }
.fp-benefit-card h4 { font-size: 15px; margin-bottom: 10px; color: var(--ink); }
.fp-benefit-card p { font-size: 13px; color: var(--ink-soft); margin: 0; }
@media (max-width: 1024px) { .fp-benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fp-benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Integrations ---------- */
.fp-integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fp-integration-card { display: flex; gap: 14px; align-items: flex-start; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px; padding: 20px 20px; box-shadow: var(--elevation-2); }
.fp-integration-ico { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-ink); box-shadow: var(--elevation-1); }
.fp-integration-ico svg { width: 19px; height: 19px; }
.fp-integration-card h5 { font-size: 14px; margin: 0 0 6px; color: var(--ink); }
.fp-integration-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .fp-integration-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fp-integration-grid { grid-template-columns: 1fr; } }

/* ---------- Floating KPI badge (hero visual) ----------
   Same glass-card language as index.html's .stat-badge (hero photo +
   floating stat card), reused here on every flagship hero mockup —
   .product-hero-visual is already position:relative in product.css. */
.fp-kpi-badge {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(8,14,26,0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,0.5);
}
.fp-kpi-badge-num { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--card-accent, #fff); letter-spacing: -0.5px; }
.fp-kpi-badge-label { font-size: 11.5px; color: var(--ink-mute); }

/* Small secondary pill badge (top-right of the hero visual) — a live/status
   chip, iOS-widget style, paired with the larger KPI badge below-left. */
.fp-kpi-pill {
  position: absolute;
  right: 18px; top: 18px;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(8,14,26,0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.fp-kpi-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px color-mix(in srgb, #3ddc97 25%, transparent); flex: none; }

@media (max-width: 560px) {
  .fp-kpi-badge { left: 14px; bottom: 14px; padding: 11px 16px; }
  .fp-kpi-badge-num { font-size: 21px; }
  .fp-kpi-pill { right: 12px; top: 12px; padding: 6px 11px; }
}

/* ---------- Hero mockup fix ----------
   Bug fix (reported): the hero mockup was being cropped by product.css's
   generic object-fit:cover + clipped frame (designed for real photos,
   where a crop is harmless), which cut real content off a UI mockup's
   edges — and the floating badge sat ON TOP of the mockup's own stat
   cards/lists, covering them. Fix: force the frame to the mockup SVG's
   own 880x460 ratio so cover never needs to crop anything, and let the
   badge/pill pop OUTSIDE the frame's rounded corner instead of overlapping
   its content — same pattern as index.html's .whyus-stat-card /
   .hero-media-orbit (real photo, sibling badge popping past the edge).
   Scoped to these 8 pages only, via this stylesheet's own inclusion —
   product.html/revup.html don't load flagship.css, so their own photo
   heroes are untouched. */
.product-hero-visual.product-hero-photo {
  aspect-ratio: 880 / 460;
  overflow: visible;
}
.product-hero-visual.product-hero-photo img {
  border-radius: 26px;
}
.fp-kpi-badge--hero { left: -14px; bottom: -14px; }
.fp-kpi-pill--hero { right: -10px; top: -10px; }
@media (max-width: 560px) {
  .fp-kpi-badge--hero { left: -8px; bottom: -8px; }
  .fp-kpi-pill--hero { right: -6px; top: -6px; }
}

/* ---------- Photo band (real stock photo + floating KPI badge) ----------
   Same treatment as index.html's hero photo (.hero-media-frame + .stat-badge):
   a real photograph, not a UI mockup, giving a page the "who/where this is
   used" context the dashboard mockup can't. Used on the products that don't
   yet have a good product-specific mockup-only story. */
.fp-photo-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.fp-photo-frame { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0,0,0,0.55); border: 1px solid var(--glass-border); aspect-ratio: 4 / 3; }
.fp-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-photo-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(4,10,20,0.7) 100%); }
.fp-photo-band-copy h2 { font-size: 26px; margin-bottom: 16px; }
.fp-photo-band-copy p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .fp-photo-band-grid { grid-template-columns: 1fr; gap: 30px; }
  .fp-photo-frame { order: -1; }
}

/* ---------- Responsive section spacing ---------- */
@media (max-width: 767px) {
  .fp-section { padding: 60px 0; }
}
