/* ==========================================================================
   Product (brand) pages. Loaded by src/_includes/product.njk on top of
   site.css: hero stage, sticky sub-nav, key facts, feature grid, deep-dive
   rows, how-it-works steps, specs, quote, gallery, FAQ, related products.
   ========================================================================== */
.product-page { --stage: #e9eef1; }

/* ---------- Hero ---------- */
.product-hero { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.product-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(15, 127, 138, .07), transparent 60%); pointer-events: none; }
.product-hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.product-hero .breadcrumb { margin-bottom: 22px; }
.product-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.product-brand img { height: 30px; width: auto; }
.product-brand img.invert { filter: brightness(0); opacity: .85; }
.product-brand .brand-chip { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); padding: 5px 10px; border: 1px solid var(--accent-soft-line); background: var(--accent-soft); border-radius: 999px; }
.product-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); letter-spacing: -.04em; line-height: 1.02; max-width: 14ch; }
.product-hero .lede { margin-top: 20px; max-width: 54ch; }
.product-hero .btn-group { margin-top: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-facts div { display: grid; gap: 3px; }
.hero-facts strong { font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 13px; color: var(--muted); }

/* Product stage: a soft grey plate where white-background product shots read as cutouts */
.product-stage { position: relative; border-radius: 18px; background: radial-gradient(80% 80% at 50% 40%, #fff 0%, var(--stage) 100%); border: 1px solid var(--line); aspect-ratio: 1 / .86; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-sm); }
.product-stage::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 9%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 23, 32, .18), transparent); filter: blur(6px); z-index: 0; }
.product-stage img { position: relative; z-index: 1; max-width: 82%; max-height: 78%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 18px 24px rgba(11, 23, 32, .14)); animation: stage-float 7s ease-in-out infinite; }
.product-stage.photo { background: var(--ink-2); border: 0; }
.product-stage.photo::after { display: none; }
.product-stage.photo img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: none; animation: none; }
.stage-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: 0 10px 24px -14px rgba(11, 23, 32, .4); font-size: 13px; font-weight: 600; color: var(--text); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stage-badge .icon { width: 16px; height: 16px; color: var(--accent); }
.stage-badge.tl { top: 18px; left: 18px; }
.stage-badge.tr { top: 18px; right: 18px; }
.stage-badge.bl { bottom: 18px; left: 18px; }
.stage-badge.br { bottom: 18px; right: 18px; }
@keyframes stage-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sticky sub-nav ---------- */
.product-subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: top .45s cubic-bezier(.2, .8, .2, 1); }
.site-header.is-hidden ~ main .product-subnav { top: 0; }
.product-subnav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 54px; }
.subnav-name { font-weight: 700; letter-spacing: -.01em; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; }
.subnav-links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.subnav-links a:hover { color: var(--text); background: var(--bg); }
.subnav-links a.is-active { color: var(--accent-strong); background: var(--accent-soft); font-weight: 600; }
.product-subnav .btn { padding: 8px 14px; font-size: 13px; }

/* ---------- Key facts band ---------- */
.product-facts { background: var(--ink); color: var(--on-dark); }
.product-facts .container { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.product-facts .container > div { padding-left: 18px; border-left: 2px solid rgba(184, 240, 230, .35); }
.product-facts .stat-value { color: #fff; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.product-facts .stat-label { color: var(--on-dark-muted); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 28px; display: flex; flex-direction: column; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft-line); }
.feature-head { display: flex; align-items: center; }
.feature-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em; margin-left: auto; }
.feature h3 { font-size: 17px; letter-spacing: -.015em; margin: 16px 0 8px; }
.feature p { font-size: 15px; color: var(--text-2); }
.feature.media { padding: 0; overflow: hidden; }
.feature.media .feature-img { background: var(--ink-2); }
.feature.media .feature-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.feature.media:hover .feature-img img { transform: scale(1.04); }
.feature.media .feature-body { padding: 20px 24px 26px; }
.feature.media .feature-head { margin-bottom: 4px; }
.feature.media h3 { margin-top: 10px; }

/* ---------- Deep-dive rows ---------- */
.product-page .rows { gap: clamp(48px, 7vw, 104px); }
.product-page .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.product-page .row-text .eyebrow { margin-bottom: 12px; }
.product-page .row-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.03em; margin-bottom: 16px; }
.product-page .row-text h2 + h2 { margin-top: 24px; }
.product-page .row-text p { font-size: 16.5px; }
.product-page .row-text .checklist { margin-top: 20px; gap: 10px; }
.product-page .row-text .checklist li { font-size: 15.5px; }
.product-page .row-text .btn-group { margin-top: 24px; }
.product-page .row-text .btn, .product-page .row-text .text-link { margin-top: 0; }
.product-page .row-text .text-link { margin-top: 16px; }
.product-page .row-media { width: 100%; }
.product-page .row-media figure { margin: 0; width: 100%; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; }
.product-page .row-media figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; max-height: none; max-width: none; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.product-page .row-media figure:hover img { transform: scale(1.03); }
.product-page .row-media figure.tall img { aspect-ratio: 4 / 5; }
.product-page .row-media figure.wide img { aspect-ratio: 16 / 10; }
.product-page .row-media figure.square img { aspect-ratio: 1; }
.product-page .row-media figure.stage { background: radial-gradient(80% 80% at 50% 40%, #fff 0%, var(--stage) 100%); display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 28px; }
.product-page .row-media figure.stage img { width: auto; height: auto; max-width: 100%; max-height: 100%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.product-page .row-media figure.stage:hover img { transform: none; }
.product-page .row-media figcaption { position: absolute; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 12.5px; font-weight: 600; background: rgba(11, 23, 32, .62); padding: 6px 10px; border-radius: 8px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.product-page .row-media figure.stage { grid-template-rows: 1fr auto; row-gap: 14px; }
.product-page .row-media figure.stage figcaption { position: static; justify-self: start; color: var(--text); background: rgba(255, 255, 255, .9); border: 1px solid var(--line); }
.product-page .row-media figcaption .icon { width: 14px; height: 14px; color: var(--mint); }
.product-page .row-media figure.stage figcaption .icon { color: var(--accent); }
.row-callout { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-soft-line); font-size: 14.5px; color: var(--text-2); }
.row-callout .icon { width: 20px; height: 20px; color: var(--accent-strong); flex-shrink: 0; margin-top: 2px; }
.row-callout strong { display: block; color: var(--accent-strong); margin-bottom: 2px; }

/* ---------- How it works ---------- */
.hiw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: hiw; }
.hiw.cols-4 { grid-template-columns: repeat(4, 1fr); }
.hiw-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px 30px; }
.hiw-step::before { counter-increment: hiw; content: "0" counter(hiw); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--mint); font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hiw-step h3 { font-size: 17px; letter-spacing: -.015em; margin: 18px 0 8px; }
.hiw-step p { font-size: 15px; color: var(--text-2); }
.hiw-step > .icon { position: absolute; top: 26px; right: 24px; width: 24px; height: 24px; color: var(--accent); }
.section.dark .hiw-step { background: var(--ink-2); border-color: var(--ink-3); }
.section.dark .hiw-step h3 { color: #fff; }
.section.dark .hiw-step p { color: var(--on-dark-muted); }
.section.dark .hiw-step::before { background: var(--mint); color: var(--ink); }
.section.dark .hiw-step > .icon { color: var(--mint); }
.section.dark .section-head .lede { color: var(--on-dark-muted); }
.section.dark .section-title { color: #fff; }

/* ---------- Specs ---------- */
.specs-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.specs-layout .section-head { margin-bottom: 0; }
.spec-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; padding: 15px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.spec-table > :first-child { border-top: 0; }
.spec-row > span:first-child { color: var(--muted); }
.spec-row > span:last-child { font-weight: 600; color: var(--text); }
.spec-group { padding: 10px 22px; background: var(--bg); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-table.cols-3 .spec-row { grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; }
.spec-table.cols-4 .spec-row { grid-template-columns: minmax(0, 1.2fr) 1fr 1fr 1fr; }
.spec-table.cols-5 .spec-row { grid-template-columns: minmax(0, 1.3fr) 1fr 1fr 1fr 1fr; gap: 12px; }
.spec-table .spec-row > span + span + span { font-weight: 600; color: var(--text); }
.spec-table .spec-head { background: var(--ink); border-top: 0; }
.spec-table .spec-head > span { color: #fff !important; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.spec-table .spec-head > span:first-child { color: var(--on-dark-muted) !important; font-weight: 500; }
.spec-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.product-brand img.multiply { mix-blend-mode: multiply; }
.product-quote .quote-mark.invert { filter: brightness(0); opacity: .72; }
.product-page .row-media figure.diagram { background: var(--surface); display: grid; place-items: center; padding: clamp(18px, 3vw, 32px); aspect-ratio: 4 / 3; }
.product-page .row-media figure.diagram > svg { width: 100%; height: auto; max-height: 100%; color: var(--text-2); }
.product-page .row-media figure.diagram figcaption { position: static; justify-self: start; color: var(--text); background: var(--bg); border: 1px solid var(--line); margin-top: 10px; }
.product-page .row-media figure.diagram figcaption .icon { color: var(--accent); }
.specs-layout .section-head .btn-group { margin-top: 24px; }

/* ---------- Quote band ---------- */
.product-quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.product-quote.no-media { grid-template-columns: 1fr; }
.product-quote blockquote { margin: 0; }
.product-quote blockquote p { font-size: clamp(1.3rem, 2.1vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -.025em; color: var(--text); max-width: 30ch; }
.product-quote .accent { font-style: normal; color: var(--orange); }
.product-quote footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.product-quote footer strong { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.product-quote footer span { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.product-quote .quote-mark { height: 44px; width: auto; filter: grayscale(1); opacity: .85; mix-blend-mode: multiply; }
.product-quote .quote-media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.product-quote .quote-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery strip ---------- */
.product-gallery { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; }
.product-gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.product-gallery figure:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; color: var(--text); transition: color .15s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 22px; color: var(--text-2); font-size: 15.5px; max-width: 64ch; }
.faq .faq-body p { margin-bottom: .8em; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Related products ---------- */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-grid .product-card { padding: 18px; }
.related-grid .product-card .product-img { height: 150px; margin-bottom: 14px; }
.related-grid .product-card .product-img img { max-height: 118px; mix-blend-mode: multiply; }
.related-grid .product-card h3 { font-size: 16px; }
.related-grid .product-card p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Partner CTA: two actions ---------- */
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .product-hero .container { grid-template-columns: 1fr; gap: 28px; }
  .product-hero .hero-side { order: -1; }
  .product-stage { aspect-ratio: 16 / 10; }
  .product-stage img { max-height: 84%; }
  .product-hero h1 { max-width: none; }
  .product-facts .container { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hiw, .hiw.cols-4 { grid-template-columns: 1fr 1fr; }
  .specs-layout, .faq-layout { grid-template-columns: 1fr; }
  .product-quote { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .product-gallery { grid-template-columns: 1fr 1fr; }
  .product-gallery figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .product-hero .breadcrumb { margin-bottom: 14px; }
  .product-brand { flex-wrap: wrap; gap: 10px; }
  .product-brand .brand-chip { font-size: 11px; letter-spacing: .08em; }
  .product-stage { aspect-ratio: 4 / 3; }
  .hero-facts { gap: 14px 22px; }
  .product-facts .container { grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
  .product-facts .stat-value { font-size: 1.7rem; }
  .feature-grid, .feature-grid.cols-4, .feature-grid.cols-2, .hiw, .hiw.cols-4, .related-grid { grid-template-columns: 1fr; }
  .product-page .row, .product-page .row.reverse { grid-template-columns: 1fr; }
  .product-page .row.reverse .row-text { order: 1; }
  .product-page .row.reverse .row-media { order: 2; }
  .product-page .row-media figure.stage { padding: 18px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .spec-table.cols-3 .spec-row, .spec-table.cols-4 .spec-row, .spec-table.cols-5 .spec-row { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .spec-table.cols-3 .spec-row > span:first-child, .spec-table.cols-4 .spec-row > span:first-child, .spec-table.cols-5 .spec-row > span:first-child { grid-column: 1 / -1; }
  .spec-table .spec-head { display: none; }
  .spec-table .spec-row > span[data-col]::before { content: attr(data-col); display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .product-subnav .container { height: 50px; }
  .product-subnav .btn, .subnav-name { display: none; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery figure:first-child { grid-column: auto; }
  .product-quote blockquote p { font-size: 1.2rem; }
  .cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .product-stage img { animation: none; }
  .feature, .product-subnav, .faq summary .icon { transition: none; }
}
