/* Product page */

/* Buy box */
.pdp { padding: 48px 0 112px; }
.pdp-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: start; }
.pdp-gallery { position: sticky; top: 96px; display: grid; gap: 12px; }
.pdp-main { aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--soft); transition: background-color .35s ease; }
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
/* Square tiles (infographics) are shown whole, letterboxed in their own background color. */
.pdp-main img.fit { object-fit: contain; }
.pdp-main img.swap { opacity: 0; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pdp-thumbs button { padding: 0; border: 1.5px solid transparent; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--soft); transition: border-color .2s; }
.pdp-thumbs button.on { border-color: var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .reviews-badge { text-decoration: none; margin-bottom: 22px; }
.pdp-eyebrow { display: flex; }
.pdp-info h1 { font-size: clamp(48px, 5.4vw, 76px); margin: 18px 0 18px; }
.pdp-lede { font-size: 18px; color: #333; margin: 0 0 28px; max-width: 520px; }
.pdp-facts { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.pdp-facts li { padding: 18px 0; border-right: 1px solid var(--line); text-align: center; }
.pdp-facts li:last-child { border-right: 0; }
.pdp-facts b { display: block; font: 400 28px/1 var(--serif); white-space: nowrap; }
.pdp-facts span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pdp-cta { width: 100%; height: 62px; font-size: 16px; }
.pdp-info .perks a { color: inherit; }
.pdp-acc { margin-top: 32px; border-top: 1px solid var(--line); }
.pdp-acc details { border-bottom: 1px solid var(--line); }
.pdp-acc summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; font-weight: 600; }
.pdp-acc summary::-webkit-details-marker { display: none; }
.pdp-acc summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .25s; }
.pdp-acc details[open] summary::after { transform: rotate(45deg); }
.pdp-acc p { margin: 0 0 20px; color: #444; font-size: 15px; }

/* Before / after */
.ba { padding-top: 0; }
.ba-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ba-tabs button {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.ba-tabs button i { width: 16px; height: 16px; border-radius: 50%; }
.ba-tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ba-layout { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 64px; align-items: center; }
.ba-side h3 { font: 400 clamp(48px, 5vw, 72px)/1 var(--serif); margin: 18px 0 16px; letter-spacing: -.02em; }
.ba-side p { color: #444; font-size: 18px; margin: 0 0 32px; max-width: 440px; }
.ba-shift { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.ba-shift > div:not(.ba-arrow) { display: grid; justify-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba-shift i { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); transition: background .5s ease; }
.ba-arrow { flex: 0 0 90px; height: 3px; border-radius: 3px; background: var(--grad); position: relative; margin-bottom: 20px; }
.ba-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6.5px solid transparent; border-left: 9px solid #2fbf4a; border-right: 0; }
.ba-stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--soft);
  user-select: none; touch-action: pan-y; --pos: 50%;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--paper); transform: translateX(-1px); pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); display: grid; place-items: center; font: 700 16px/1 var(--sans); letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 0 0 4px rgba(255,255,255,.35);
}
.ba-label {
  position: absolute; top: 20px; padding: 9px 14px; border-radius: 999px; background: rgba(11,11,11,.72); color: var(--paper);
  backdrop-filter: blur(8px); font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; pointer-events: none;
}
.ba-l { left: 20px; }
.ba-r { right: 20px; background: var(--paper); color: var(--ink); }
.ba-r::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 8px; vertical-align: 1px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-note { font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.ba-stage.loading .ba-img { opacity: 0; }

/* Reviews reel */
.rv .section-head { align-items: center; }
.rv-cta { display: flex; justify-content: center; margin-top: 56px; }
.rv-summary { display: flex; align-items: center; gap: 18px; padding: 20px 26px; border-radius: 22px; background: #fff3ea; position: relative; overflow: hidden; }
.rv-summary::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.rv-score { font: 400 64px/0.9 var(--serif); letter-spacing: -.02em; }
.rv-summary-stars { font-size: 15px; }
.rv-summary-stars .stars-row svg { width: 20px; height: 20px; }
.rv-summary-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.rv-reel { overflow: hidden; padding: 4px 0 8px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; width: max-content; animation: scroll var(--dur, 60s) linear infinite; }
.rv-reel:hover .rv-track, .rv-reel:focus-within .rv-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .rv-reel { overflow-x: auto; mask-image: none; }
  .rv-set[aria-hidden] { display: none; }
}
.rv-set { display: flex; gap: 16px; padding-right: 16px; align-items: flex-start; }
.rv-card { width: 320px; flex: none; padding: 24px; border-radius: 22px; background: var(--soft); display: grid; gap: 12px; align-content: start; }
.rv-card.has-photo { padding-top: 12px; }
.rv-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.rv-stars { display: inline-flex; line-height: 0; }
.rv-stars svg { width: 15px; height: 15px; fill: var(--ink); margin-right: 2px; }
.rv-stars .off svg { fill: #d6d6d1; }
.rv-title { font: 600 17px/1.3 var(--sans); margin: 0; }
.rv-body { margin: 0; color: #333; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-who { display: flex; align-items: center; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.rv-verified { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.rv-verified::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fbf4a; }

/* Compare */
.compare-wrap { overflow-x: auto; }
.pdp-compare td, .pdp-compare th { padding: 24px 20px; }
.pdp-compare thead th.us { font-size: 14px; }
.th-mark { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.yes-soft { background: #e9e9e5; color: var(--ink); }
.pdp-compare .no { color: #c8c8c3; font-size: 16px; font-weight: 700; }
.partial { color: var(--muted); font-size: 20px; }
.pdp-compare tr.time td { font-weight: 600; }
.pdp-compare tr.time td.us { font: 400 26px/1 var(--serif); }

/* Science */
.sci { overflow: hidden; }
.mol-switch { display: inline-flex; padding: 5px; border: 1px solid #2c2c2c; border-radius: 999px; margin-bottom: 28px; }
.mol-switch button {
  border: 0; background: none; color: #a3a3a0; height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s;
}
.mol-switch button small { font-weight: 400; opacity: .7; margin-left: 6px; }
.mol-switch button.on { background: var(--paper); color: var(--ink); }
.mol-stage {
  position: relative; border: 1px solid #262626; border-radius: 28px; padding: 24px 24px 28px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255,106,31,.10), transparent 60%), #0e0e0e;
}
.mol-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bond { fill: none; stroke: url(#bondGrad); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.bond.double { stroke-width: 2.4; opacity: .75; }
.atom { fill: #fff; opacity: 0; }
.mol-stage.in .bond { animation: draw .5s cubic-bezier(.3,.7,.2,1) forwards; animation-delay: calc(var(--i) * 28ms); }
.mol-stage.in .atom { animation: pop .4s ease forwards, twinkle 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 28ms + 300ms), calc(var(--i) * 90ms + 1.5s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: .9; } }
@keyframes twinkle { 50% { opacity: .25; } }
.electron { fill: #fff; filter: drop-shadow(0 0 8px #ffc21a) drop-shadow(0 0 16px #ff6a1f); opacity: 0; transition: opacity .6s ease 1.4s; }
.mol-stage.in .electron { opacity: 1; }
.wave { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; }
.wave-in { stroke: #4a8dff; filter: drop-shadow(0 0 6px rgba(74,141,255,.6)); }
.wave-out { stroke: #ff6a1f; filter: drop-shadow(0 0 6px rgba(255,106,31,.6)); }
.mol-stage.in .wave { animation: flow 1.4s linear infinite; }
.mol-stage.in .wave-in { animation: flow 1.4s linear infinite, absorb 3.2s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes absorb { 0%, 100% { opacity: 1; } 55% { opacity: .35; } }
.wave-label { fill: #8a8a87; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.wave-label.sub { fill: #5d5d5a; font-weight: 500; letter-spacing: .08em; }
.wave-label.warm { fill: #ffb27a; }
.wave-label.cool { fill: #8ab4ff; }
.mol-caption { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; padding: 6px 8px 0; border-top: 1px solid #222; padding-top: 20px; margin-top: 8px; }
.mol-caption b { font: 400 26px/1.1 var(--serif); color: var(--paper); }
.mol-caption span { color: #a3a3a0; font-size: 15px; max-width: 560px; }
.mol-head { margin: 72px 0 22px; }
.mol-head p { color: #a3a3a0; margin: 12px 0 0; font-size: 17px; }
.sci-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #262626; border: 1px solid #262626; border-radius: 22px; overflow: hidden; }
.sci-steps article { background: var(--ink); padding: 34px 30px 38px; }
.sci-steps .num { font: 500 13px/1 ui-monospace, Menlo, monospace; color: #7b7b78; }
.sci-steps h3 { font: 400 40px/1 var(--serif); margin: 22px 0 12px; }
.sci-steps p { color: #bdbdb9; margin: 0; font-size: 16px; }

/* Closing CTA */
.pdp-close { text-align: center; }
.pdp-close h2 { margin: 18px 0 32px; }

@media (max-width: 960px) {
  .pdp { padding: 24px 0 72px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .pdp-gallery { position: static; }
  .ba-layout { grid-template-columns: 1fr; gap: 32px; }
  .rv-card { width: 270px; }
  .sci-steps { grid-template-columns: 1fr 1fr; }
  .mol-stage { padding: 12px 8px 20px; }
  .wave-label { font-size: 18px; }
  .pdp-compare td, .pdp-compare th { padding: 14px 6px; }
}
@media (max-width: 560px) {
  .sci-steps { grid-template-columns: 1fr; }
  .pdp-facts { grid-template-columns: 1fr 1fr; }
  .pdp-facts li:nth-child(2) { border-right: 0; }
  .pdp-facts li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Research findings */
.research { padding-bottom: 0; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.study-card { border: 1px solid var(--line); padding: 40px 40px 32px; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--paper); transition: border-color .2s ease; }
.study-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.study-card:hover { border-color: #bdbdb9; }
.study-card:hover::before, .study-card.in::before { transform: scaleX(1); }
.study-num { font: 400 64px/1 var(--serif); background: linear-gradient(180deg, #ffc21a, #ff6a1f 60%, #ff2d55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.study-card h3 { font: 400 40px/1.05 var(--serif); margin: 26px 0 14px; letter-spacing: -.01em; }
.study-card p { color: #444; font-size: 17px; margin: 0 0 32px; }
.study-meta { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.study-meta a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.study-meta a:hover { text-decoration: underline; }
.research-scale { display: flex; align-items: center; gap: 18px; margin: 40px 0 0; }
.research-scale > div:not(.research-bar) { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.research-scale i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.06); }
.research-bar { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #e9cdbd, #e3b591 50%, #d9a77c); }
.research-note { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 860px) {
  .research-grid { grid-template-columns: 1fr; }
  .study-card { padding: 30px 24px 24px; }
  .study-card h3 { font-size: 34px; }
  .research-scale { flex-wrap: wrap; }
  .research-bar { flex-basis: 100%; order: 3; }
}
