/* Product detail pages (/products/{slug}). Tokens, fonts, .case-study__btn, .shiny-hover and .bento-badge come from transplant.css.
   --pd-bg is the product's own card colour, set inline on <main> (and on each related card). */
.pd { max-width: var(--content-max); margin: 0 auto; padding: 0 24px; --pd-tint: color-mix(in srgb, var(--pd-bg) 10%, #fff); --pd-line: var(--border); }
.pd p, .pd dd, .pd li { font-weight: 400; }
.pd--light { --pd-tint: var(--pd-bg); } /* light card colours are already soft enough to frame screenshots */
.pd { --pd-accent: var(--accent); }
.pd--dark { --pd-accent: var(--pd-bg); } /* a dark card colour is the product's accent; light ones fall back to the brand purple */

/* ---------- Hero ---------- */
.pd-hero { padding-top: 64px; }
.pd-crumbs { font-size: 14px; font-weight: 400; color: var(--neutral-500); margin: 0 0 28px; }
.pd-crumbs a { text-decoration: none; transition: color .2s var(--ease-out-quart); }
.pd-crumbs a:hover { color: var(--accent); }
.pd-crumbs span { color: var(--neutral-700); }
.pd-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px 72px; align-items: end; }
.pd-hero h1 { margin: 0; max-width: 13em; text-wrap: balance; }
.pd-lede { font-size: 24px; line-height: 1.4; letter-spacing: -0.7px; color: var(--neutral-600); margin: 20px 0 0; max-width: 30em; text-wrap: pretty; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Same pill as the homepage's .case-study__btn (which transplant.css hides under 768px, so it is not reused here) */
body.inner .pd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 16px 17px 16px 22px; border-radius: 100px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; line-height: 21.8px; letter-spacing: -0.5px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(0, 46, 113, .08), 0 3px 8px -4px rgba(0, 46, 113, .06), 0 1px 3px -1px rgba(0, 46, 113, .04), 0 -1px 0 1px rgba(0, 46, 113, .16) inset;
  transition: background .2s var(--ease-out-quart), box-shadow .4s var(--ease-out-quart), transform .45s var(--ease-out-back-soft); }
body.inner .pd-btn:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: 0 6px 32px -12px rgba(0, 46, 113, .16), 0 4px 12px -4px rgba(0, 46, 113, .08), 0 -1px 0 1px rgba(0, 46, 113, .16) inset; }
body.inner .pd-btn:active { transform: scale(.985); box-shadow: none; }
.pd-btn span { position: relative; top: .5px; }
.pd-btn svg { flex-shrink: 0; transform-origin: 5px 12px; }
.pd-btn:hover svg { animation: arrow-nudge .7s var(--ease-out-back); }
.pd a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.inner .pd-ghost { display: inline-flex; align-items: center; padding: 16px 22px; border-radius: 100px; background: var(--neutral-25); color: var(--neutral-800); font-size: 17px; font-weight: 600; letter-spacing: -0.5px; line-height: 21.8px; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease-out-quart), transform .45s var(--ease-out-back-soft); }
body.inner .pd-ghost:hover { background: var(--neutral-50); transform: translateY(-1px); }

.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.pd-facts div { border-top: 1px solid var(--pd-line); padding: 14px 0 16px; }
.pd-facts dt { font-size: 14px; font-weight: 400; color: var(--neutral-500); }
.pd-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: -0.4px; color: var(--text); }

/* ---------- Stage: the product on its card colour, with the homepage's light rays ---------- */
.pd-stage { position: relative; overflow: hidden; isolation: isolate; margin-top: 56px; padding: clamp(14px, 4.5vw, 64px); border-radius: 24px; background: var(--pd-bg); }
.pd-stage::before { content: ''; position: absolute; inset: -50%; z-index: -1; opacity: .35; filter: blur(40px); pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, #fff 8deg, transparent 16deg, transparent 90deg, rgba(255,255,255,.9) 98deg, transparent 106deg, transparent 190deg, rgba(255,255,255,.85) 198deg, transparent 206deg, transparent 310deg, rgba(255,255,255,.7) 318deg, transparent 326deg);
  animation: rays-rotate 40s linear infinite; }
.pd-shot { display: block; width: 100%; height: auto; border-radius: 14px; background: #fff; }
.pd-stage .pd-shot { box-shadow: 0 2px 0 0 rgba(11, 72, 158, .06), 0 50px 60px -25px rgba(11, 72, 158, .22); }
.pd-shot--embed { aspect-ratio: 16 / 9; height: auto; border: 0; }

/* ---------- Sections ---------- */
.pd-sec { margin-top: 128px; }
.pd-h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.04; letter-spacing: -2px; color: var(--text); margin: 0 0 48px; }
.pd-h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; line-height: 1.1; letter-spacing: -1.2px; color: var(--text); margin: 0; text-wrap: balance; }

/* Label column on the left, content on the right (the homepage's experience rows) */
.pd-split { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.pd-split > .pd-h2 { margin: 0; position: sticky; top: 32px; }

.pd-prose { font-size: 24px; line-height: 1.4; letter-spacing: -0.7px; color: var(--text-body); max-width: 34em; }
.pd-prose > * { margin: 0; }
.pd-prose > * + * { margin-top: .9em; }
.pd-prose p, .pd-prose div { font-weight: 400; }
.pd-prose a { color: var(--pd-accent); }
.pd-prose h2, .pd-prose h3 { font-size: 1em; font-weight: 600; letter-spacing: -0.7px; color: var(--text); }
.pd-prose ul, .pd-prose ol { padding-left: 1.2em; }
.pd-prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* ---------- Features ---------- */
.pd-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
.pd-feature + .pd-feature { margin-top: 96px; }
.pd-feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pd-feature--flip .pd-feature__text { order: 2; }
.pd-num { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.5px; color: var(--pd-accent); margin-bottom: 16px; }
.pd-feature__text p, .pd-point p { font-size: 20px; line-height: 1.5; letter-spacing: -0.6px; color: var(--neutral-600); margin: 16px 0 0; }
.pd-feature__shot { background: var(--pd-tint); border-radius: 24px; padding: clamp(12px, 3vw, 36px); }
.pd-feature__shot .pd-shot { border-radius: 10px; box-shadow: 0 1px 0 0 rgba(24, 18, 18, .04), 0 24px 40px -24px rgba(24, 18, 18, .22); transition: transform .6s var(--ease-out-spring); }
@media (hover: hover) { .pd-feature:hover .pd-feature__shot .pd-shot { transform: translateY(-4px); } }
.pd-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
.pd-feature + .pd-points { margin-top: 96px; }
.pd-point { border-top: 1px solid var(--pd-line); padding: 28px 0 32px; }
.pd-point .pd-h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -1px; }
.pd-point p { font-size: 18px; margin-top: 10px; }

/* ---------- How it works: a panel in the product colour ---------- */
.pd-steps { background: var(--pd-bg); border-radius: 24px; padding: clamp(32px, 5.5vw, 72px); --pd-ink: #fff; --pd-soft: rgba(255, 255, 255, .82); --pd-rule: rgba(255, 255, 255, .28); --pd-num: rgba(255, 255, 255, .6); }
.pd--light .pd-steps { --pd-ink: var(--text); --pd-soft: var(--neutral-700); --pd-rule: rgba(24, 18, 18, .14); --pd-num: var(--accent); }
.pd-steps .pd-h2 { color: var(--pd-ink); }
.pd-steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.pd-steps li { counter-increment: step; border-top: 1px solid var(--pd-rule); padding-top: 20px; }
.pd-steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -2px; color: var(--pd-num); margin-bottom: 28px; }
.pd-steps h3 { font-size: 20px; font-weight: 600; line-height: 1.28; letter-spacing: -0.8px; color: var(--pd-ink); margin: 0; }
.pd-steps p { font-size: 17px; line-height: 1.5; letter-spacing: -0.4px; color: var(--pd-soft); margin: 8px 0 0; }

/* ---------- Screenshots ---------- */
.pd-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pd-gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } /* odd count: the first one goes full width */
.pd-gallery figure { margin: 0; }
.pd-gallery a { display: block; background: var(--pd-tint); border-radius: 24px; padding: clamp(10px, 2.4vw, 28px); }
.pd-gallery a .pd-shot { border-radius: 10px; transition: transform .6s var(--ease-out-spring); }
@media (hover: hover) { .pd-gallery a:hover .pd-shot { transform: scale(1.015); } }
.pd-gallery figcaption { font-size: 16px; font-weight: 400; line-height: 1.5; color: var(--neutral-600); margin: 14px 4px 0; }

/* ---------- Details + FAQ ---------- */
.pd-specs { margin: 0; }
.pd-specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 8px 24px; padding: 18px 0; border-top: 1px solid var(--pd-line); }
.pd-specs div:last-child { border-bottom: 1px solid var(--pd-line); }
.pd-specs dt { font-size: 17px; font-weight: 400; color: var(--neutral-500); }
.pd-specs dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-body); }

.pd-faq details { border-bottom: 1px solid var(--pd-line); }
.pd-faq details:first-child { border-top: 1px solid var(--pd-line); }
.pd-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; cursor: pointer; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -0.6px; color: var(--text); transition: color .2s var(--ease-out-quart); }
.pd-faq summary::-webkit-details-marker { display: none; }
.pd-faq summary::after { content: '+'; flex-shrink: 0; font-size: 26px; font-weight: 300; line-height: 1; color: var(--neutral-500); transition: transform .35s var(--ease-out-spring), color .2s; }
.pd-faq summary:hover, .pd-faq details[open] summary { color: var(--pd-accent); }
.pd-faq details[open] summary::after { transform: rotate(45deg); color: var(--pd-accent); }
.pd-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.pd-faq details p { font-size: 17px; line-height: 1.6; color: var(--neutral-600); margin: -8px 0 0; padding: 0 48px 24px 0; max-width: 40em; }

/* ---------- Closing action (the homepage CTA pill) ---------- */
.pd-end { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 128px; padding: 12px 12px 12px 32px; border-radius: 84px; background: rgba(239, 246, 255, 1); box-shadow: inset 0 1.5px 0 0 rgba(11, 72, 158, .04); }
.pd-end p { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -0.6px; color: var(--text-body); }
.pd-end strong { font-weight: 600; }
.pd-end p span { color: var(--neutral-600); }
.pd-end p span::before { content: '·'; margin: 0 8px; color: var(--neutral-200); }

/* ---------- Related products (the homepage bento cards, smaller) ---------- */
.pd-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; }
.pd-rel { display: flex; flex-direction: column; min-height: 400px; overflow: hidden; border-radius: 24px; padding: 28px 28px 0; background: var(--pd-bg); text-decoration: none; transition: transform .3s var(--ease-out-spring); }
body.inner .pd-rel { color: #fff; }
body.inner .pd-rel--dark { color: #1e1f23; }
.pd-rel .bento-badge { margin-bottom: 14px; }
.pd-rel h3 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -1px; margin: 0 0 8px; }
.pd-rel p { font-size: 17px; line-height: 1.5; opacity: .82; margin: 0; max-width: 32em; }
.pd-rel--dark p { color: #4b5563; opacity: 1; }
.pd-rel__img { width: 86%; height: auto; margin: 28px 0 0 auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; border-radius: 12px 0 0 0; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .3); transition: transform .6s var(--ease-out-spring); }
@media (hover: hover) { .pd-rel:hover { transform: translateY(-4px); } .pd-rel:hover .pd-rel__img { transform: translateY(-6px); } }

/* ---------- Product cards on the homepage and /products (render_products): two columns, the first product full width ---------- */
.bento-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.bento-grid .bento-item { width: auto; height: auto; min-height: 480px; flex-direction: column; border-radius: 32px; color: #fff; isolation: isolate; transition: transform .45s var(--ease-out-spring); }
.bento-grid .bento-item--large { grid-column: 1 / -1; flex-direction: row; height: 480px; }
.bento-grid .bento-item-content { position: relative; z-index: 1; width: auto; padding: 36px 40px 32px; }
.bento-grid .bento-item--large .bento-item-content { flex: 0 0 36%; align-self: center; padding: 48px; }
.bento-grid .bento-title { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.12; letter-spacing: -1px; }
.bento-grid .bento-item--large .bento-title { font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -1.6px; }
.bento-grid .bento-desc { font-size: 18px; max-width: 30em; }
.bento-grid .bento-img--bottom-right { display: block; width: 88%; height: auto; aspect-ratio: 16 / 10; margin: auto 0 0 auto; object-fit: cover; object-position: center top; border-radius: 14px 0 0 0; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35); transition: transform .6s var(--ease-out-spring); }
.bento-grid .bento-item--large .bento-img--bottom-right { width: 62%; height: auto; aspect-ratio: auto; align-self: stretch; margin: 56px 0 0 auto; }
@media (hover: hover) { .bento-grid .bento-item:hover .bento-img--bottom-right { transform: translate(-4px, -6px); } }
@media (max-width: 999px) {
  .bento-grid .bento-item--large { flex-direction: column; height: auto; }
  .bento-grid .bento-item--large .bento-item-content { flex: none; align-self: stretch; padding: 36px 40px 32px; }
  .bento-grid .bento-item--large .bento-img--bottom-right { width: 88%; aspect-ratio: 16 / 10; align-self: auto; margin: auto 0 0 auto; }
}
@media (max-width: 900px) { /* transplant.css pins the old one-column card with !important below 900px */
  .bento-grid .bento-item-content, .bento-grid .bento-item--large .bento-item-content { padding: 32px 32px 28px !important; }
  .bento-grid .bento-img--bottom-right, .bento-grid .bento-item--large .bento-img--bottom-right { width: 88% !important; height: auto !important; margin: auto 0 0 auto !important; padding: 0 !important; object-fit: cover !important; }
}
@media (max-width: 699px) {
  .bento-grid { grid-template-columns: 1fr; gap: 16px; }
  .bento-grid .bento-item { min-height: 0; border-radius: 24px; }
  .bento-grid .bento-item-content, .bento-grid .bento-item--large .bento-item-content { padding: 24px !important; }
  .bento-grid .bento-title, .bento-grid .bento-item--large .bento-title { font-size: 26px; }
  .bento-grid .bento-desc { font-size: 16px; max-width: none; }
  .bento-grid .bento-img--bottom-right, .bento-grid .bento-item--large .bento-img--bottom-right { width: 92% !important; border-radius: 10px 0 0 0; }
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 999px) {
  .pd-hero__grid { grid-template-columns: 1fr; }
  .pd-hero h1 { max-width: none; }
  .pd-split { grid-template-columns: 1fr; }
  .pd-split > .pd-h2 { position: static; margin-bottom: 20px; }
  .pd-feature, .pd-feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .pd-feature--flip .pd-feature__text { order: 0; }
  .pd-feature + .pd-feature, .pd-feature + .pd-points { margin-top: 72px; }
  .pd-sec, .pd-end { margin-top: 96px; }
}
@media (max-width: 699px) {
  .pd { padding: 0 20px; }
  .pd-hero { padding-top: 40px; }
  .pd-lede { font-size: 19px; letter-spacing: -0.5px; margin-top: 16px; }
  .pd-facts div { padding: 12px 0 14px; }
  .pd-facts dd { font-size: 16px; }
  .pd-actions { margin-top: 28px; }
  .pd-actions > a { flex: 1 1 100%; justify-content: center; }
  .pd-stage { margin-top: 40px; border-radius: 20px; }
  .pd-stage .pd-shot { border-radius: 10px; }
  .pd-sec, .pd-end { margin-top: 80px; }
  .pd-h2 { margin-bottom: 32px; }
  .pd-prose { font-size: 20px; letter-spacing: -0.5px; }
  .pd-feature__text p { font-size: 17px; }
  .pd-feature__shot, .pd-gallery a { border-radius: 20px; }
  .pd-points, .pd-gallery { grid-template-columns: 1fr; }
  .pd-steps { border-radius: 20px; }
  .pd-steps ol { gap: 28px; }
  .pd-steps li::before { font-size: 44px; margin-bottom: 18px; }
  .pd-specs div { grid-template-columns: 1fr; gap: 2px; }
  .pd-specs dt { font-size: 15px; }
  .pd-faq summary { font-size: 18px; padding: 20px 0; }
  .pd-faq details p { padding-right: 0; }
  .pd-end { flex-direction: column; align-items: stretch; text-align: center; border-radius: 24px; padding: 24px 16px 16px; }
  .pd-end p span { display: block; margin-top: 4px; }
  .pd-end p span::before { content: none; }
  .pd-rel { min-height: 0; padding: 24px 24px 0; border-radius: 20px; }
  .pd-rel h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pd *, .pd *::before, .pd *::after, .bento-grid .bento-item, .bento-grid .bento-img--bottom-right { animation: none !important; transition: none !important; }
}
