/* Product introductions, v2: the homepage's surfaces, glow and actions applied to each product. */

/* Decorative glows may extend past the content width; never past the page. */
#main { overflow-x: clip; }

/* Hero */
.detail-hero { position: relative; padding-block: 40px 72px; isolation: isolate; }
.detail-hero::before { content: ''; position: absolute; inset: -120px -50vw auto; height: 720px; z-index: -1; background: radial-gradient(40% 55% at 50% 0%, var(--glow-strong), transparent 70%); pointer-events: none; }
.detail-hero::after { content: ''; position: absolute; inset: -72px -50vw auto; height: 640px; z-index: -1; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(45% 70% at 50% 0%, #000 25%, transparent 75%); pointer-events: none; }
.detail-back { display: inline-flex; align-items: center; height: 30px; margin: 0 0 40px; padding: 0 12px; border: 1px solid var(--hairline-strong); border-radius: 999px; color: var(--text-soft); font-size: 13px; }
.detail-back::before { content: '←'; margin-right: 6px; }
.detail-hero-heading { display: grid; justify-items: center; max-width: 920px; margin-inline: auto; text-align: center; }
.detail-hero .product-wordmark { margin-bottom: 24px; }
.text-slot.detail-display { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 62%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-slot.detail-display .title-line, .text-slot.detail-display .title-line > span { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-hero-heading > div + div { margin-top: 24px; }
.detail-copy { max-width: 660px; color: var(--text-soft); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.detail-hero-heading .detail-copy { margin-inline: auto; font-size: clamp(16px, 1.5vw, 18px); }
/* The product's own console is the page's one primary action. */
.detail-hero-heading .action-slot, .detail-closing-actions .action-slot:first-child { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 28px; padding: 10px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; box-shadow: 0 1px 0 #ffffff33 inset, 0 8px 24px -8px var(--glow-strong); }
.detail-closing-actions .action-slot:not(:first-child) { min-height: 44px; padding: 10px 20px; border: 1px solid var(--hairline-strong); border-radius: 999px; background: var(--surface-1); color: var(--ink); font-size: 15px; font-weight: 600; }
@media (hover: hover) {
  .detail-hero-heading .action-slot:hover, .detail-closing-actions .action-slot:first-child:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); color: var(--paper); }
  .detail-closing-actions .action-slot:not(:first-child):hover { background: var(--surface-2); }
}
.detail-hero-visual { position: relative; margin-top: 56px; }
.detail-hero-visual::before { content: ''; position: absolute; inset: 10% 8% -8%; z-index: -1; background: radial-gradient(closest-side, var(--glow-strong), transparent); filter: blur(40px); pointer-events: none; }
.detail-hero-visual .detail-figure:has(.device-scene) { max-width: 1000px; margin-inline: auto; }

/* Real interfaces sit in one consistent frame. */
.detail-figure { margin: 0; min-width: 0; }
.detail-figure > .capture-link { padding: 8px; border: 1px solid var(--hairline-strong); border-radius: 20px; background: linear-gradient(180deg, var(--surface-3), var(--surface-1)); box-shadow: var(--shadow-lg); }
.detail-figure > .capture-link .product-capture { border: 0; border-radius: 13px; }

/* Section navigation: a quiet segmented bar under the header. */
.detail-navigation { position: sticky; top: var(--header-height); z-index: 30; margin-top: 48px; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(20px); border-block: 1px solid var(--hairline); }
.detail-navigation > div { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 56px; padding-block: 8px; }
.detail-navigation a { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 14px; border-radius: 999px; color: var(--text-soft); font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.detail-navigation a:hover, .detail-navigation a:focus-visible { background: var(--surface-2); color: var(--ink); }
.detail-body > section { scroll-margin-top: 136px; }

/* Capability points become cards. */
.detail-cluster-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 72px 112px; }
.detail-cluster-points > * { padding: 28px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface-1); }
.detail-cluster-points h3, .detail-points h3 { margin: 0 0 10px; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.detail-cluster-points p, .detail-points p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.75; }
.detail-cluster-points h3::before { content: ''; display: block; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 2px; background: var(--accent); }

/* Feature chapters */
.detail-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 72px; align-content: center; padding-block: clamp(80px, 9vw, 128px); }
.detail-feature-heading { grid-column: 1; grid-row: 1; align-self: end; }
.text-slot.detail-title { font-size: clamp(28px, 3vw, 42px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.detail-feature-heading .detail-copy { margin-top: 20px; font-size: 16px; }
.detail-feature > .detail-figure { position: relative; grid-column: 2; grid-row: 1 / 3; align-self: center; }
.detail-feature > .detail-figure::before { content: ''; position: absolute; inset: 15% 5% -5%; z-index: -1; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); }
.detail-points { grid-column: 1; display: grid; align-content: start; align-self: start; gap: 20px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.detail-points > * { position: relative; padding-left: 30px; }
.detail-points > *::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5 9.3 2.6 2.4L13 6.3' fill='none' stroke='%23f06b32' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.detail-points h3 { font-size: 15px; margin-bottom: 4px; }
.detail-points p { font-size: 14px; }
.detail-management { padding-block: 32px 112px; }
.detail-management .detail-feature-heading, #collaboration .detail-feature-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; margin-bottom: 48px; }
.detail-management .detail-copy, #collaboration .detail-copy { margin: 0; }
#collaboration { display: block; }
#collaboration .detail-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border: 0; padding-top: 40px; }
#collaboration .detail-points > * { padding: 24px 24px 24px 56px; border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface-1); }
#collaboration .detail-points > *::before { left: 24px; top: 27px; }
#sync { display: block; }
#sync .detail-feature-heading { max-width: 660px; }
#sync .detail-cluster-points { padding-block: 40px 0; }

/* Phone chapters keep each product's own screens in an open, alternating layout. */
.consumer-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; padding-block: clamp(72px, 8vw, 112px); }
.consumer-feature-copy { grid-column: 2; grid-row: 1; max-width: 520px; }
.consumer-feature > .detail-figure { grid-column: 1; grid-row: 1; }
.consumer-feature-reverse .consumer-feature-copy { grid-column: 1; }
.consumer-feature-reverse > .detail-figure { grid-column: 2; }
.consumer-feature-copy > .detail-copy { margin-top: 20px; }
.consumer-feature .detail-points { gap: 20px; margin-top: 32px; padding-top: 28px; }
/* Phones stand on their own: one device bezel and a soft product-coloured glow, no card. */
:root { --bezel: #ececef; --bezel-edge: #d4d4d9; --phone-shadow: #0000002e; }
:root[data-theme='dark'] { --bezel: #18181b; --bezel-edge: #38383e; --phone-shadow: #000000b3; }
.mobile-scene { position: relative; display: flex; align-items: center; justify-content: center; isolation: isolate; padding: clamp(16px, 3vw, 40px) 0; }
.mobile-scene::before { content: ''; position: absolute; inset: 4% 8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--screen-glow), transparent); filter: blur(34px); }
.wesaid-detail { --screen-glow: #b4748c5c; }
.passby-detail { --screen-glow: #f56b2c3d; }
.detail-figure :is(.mobile-scene, .device-scene) .phone-frame { border: 0; box-shadow: 0 0 0 1px var(--bezel-edge), 0 0 0 7px var(--bezel), 0 0 0 8px var(--bezel-edge), 0 36px 70px -24px var(--phone-shadow); }
.mobile-scene .phone-frame { height: auto; width: min(100%, 300px); border-radius: 34px; }
.mobile-scene .product-phone { height: auto; }

.detail-boundary { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; margin-block: 32px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--hairline); border-radius: 24px; background: var(--surface-1); }
.detail-boundary .detail-title { font-size: clamp(24px, 2.4vw, 30px); }

/* Closing call to action panel. */
.detail-closing { position: relative; display: grid; justify-items: center; gap: 8px; margin-block: 64px 112px; padding: clamp(56px, 8vw, 96px) 24px; border: 1px solid var(--hairline-strong); border-radius: 28px; background: var(--surface-1); text-align: center; overflow: hidden; isolation: isolate; }
.detail-closing::before { content: ''; position: absolute; inset: auto -20% -60%; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, var(--glow-strong), transparent 70%); }
.detail-closing .text-slot.detail-title { font-size: clamp(28px, 4vw, 48px); }
.detail-closing-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.detail-closing-actions { margin-top: 20px; }
.detail-closing-actions .action-slot, .detail-closing-actions .action-slot:first-child { margin-top: 0; }

@media (max-width: 1100px) {
  .detail-feature { gap: 28px 40px; }
  .detail-management .detail-feature-heading, #collaboration .detail-feature-heading { gap: 40px; }
  .consumer-feature { gap: 40px; }
  .mobile-scene .phone-frame { width: min(100%, 270px); }
}
@media (max-width: 800px) {
  .detail-hero { padding-block: 32px 48px; }
  .detail-back { margin-bottom: 28px; }
  .detail-hero-visual { margin-top: 40px; }
  .detail-navigation > div { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .detail-navigation > div::-webkit-scrollbar { display: none; }
  .detail-navigation a { flex-shrink: 0; padding-inline: 12px; font-size: 12px; }
  .detail-cluster-points { grid-template-columns: 1fr; padding-block: 48px 72px; }
  .detail-feature { grid-template-columns: 1fr; gap: 32px; padding-block: 64px; }
  .detail-feature-heading { grid-column: 1; grid-row: auto; }
  .detail-feature > .detail-figure { grid-column: 1; grid-row: auto; }
  .detail-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-top: 24px; }
  .detail-management .detail-feature-heading, #collaboration .detail-feature-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 32px; }
  .detail-management { padding-block: 0 72px; }
  #collaboration .detail-points { grid-template-columns: 1fr; }
  .consumer-feature { grid-template-columns: 1fr; gap: 32px; padding-block: 56px; }
  .consumer-feature .consumer-feature-copy, .consumer-feature > .detail-figure { grid-column: 1; grid-row: auto; }
  .consumer-feature-copy { max-width: 600px; }
  .consumer-feature .detail-points { margin-top: 24px; }
  .mobile-scene .phone-frame { width: min(100%, 280px); }
  .detail-boundary { grid-template-columns: 1fr; gap: 24px; }
  .detail-figure > .capture-link { padding: 5px; border-radius: 14px; }
  .detail-figure > .capture-link .product-capture { border-radius: 10px; }
}
@media (max-width: 520px) {
  .detail-hero { padding-top: 24px; }
  .detail-copy { font-size: 15px; }
  .detail-points { grid-template-columns: 1fr; gap: 20px; }
  .mobile-scene .phone-frame { width: min(100%, 250px); border-radius: 28px; }
  .detail-closing-actions .action-slot { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.agenthub-detail, .inthub-detail, .product-detail) [data-reveal] { animation: none !important; opacity: 1 !important; transform: none !important; }
}
