/* ==========================================================================
   Little Sparrows Technologies — Product detail template (bili-hut™ first)
   Follows the product summary layout: problem → solution → features → video
   → results → gallery → settings → specs → resources → recognition → demo.
   ========================================================================== */

.h3 { font: 700 clamp(20px, 1.8vw, 26px)/1.25 var(--font-head); color: var(--ink-900); }
.h3 em { font-style: normal; color: var(--mint-600); }
.footnote { margin-top: 16px; font-size: 13.5px; font-style: italic; color: #8a9093; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .h2 { max-width: 20ch; margin-inline: auto; }

/* Hero ------------------------------------------------------------------------- */
.phero { padding-block: clamp(84px, 12vw, 150px) clamp(48px, 6vw, 88px); background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); overflow: hidden; }
.phero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .phero__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: #8a9093; }
.crumbs a:hover { color: var(--mint-600); }
.phero__title { font: 700 clamp(48px, 6.4vw, 88px)/1 var(--font-head); color: var(--ink-900); letter-spacing: -.02em; }
.phero__sub { margin-top: 10px; font: 600 14px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-900); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pills li { padding: 9px 16px; border-radius: 50px; background: var(--mint-100); color: #3f7d69; font: 600 14px/1 var(--font-body); }
.phero__text { max-width: 46ch; margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); color: var(--ink-900); }
.phero .hero__actions { margin-top: 28px; }
.phero .btn svg { flex: none; }
.phero__badges { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-900); }
.phero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.phero__badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.phero__media { position: relative; display: grid; place-items: center; }
.phero__media::before {
	content: "";
	position: absolute;
	width: min(110%, 620px);
	aspect-ratio: 1;
	border: 2px dashed #b9d9cd;
	border-radius: 50%;
	animation: phero-spin 60s linear infinite;
}
.phero__orb { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: #b0adaa; box-shadow: 0 40px 80px -50px rgba(38, 48, 46, .6); }
.phero__orb video { width: 100%; height: 100%; object-fit: cover; }
@keyframes phero-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .phero__media::before { animation: none; } }

/* Clinical problem ----------------------------------------------------------- */
.split { display: grid; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } .split .lead { margin-top: 6px; } }
.factors { position: relative; display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .factors { grid-template-columns: 1fr 1fr; } }
.factor { padding: clamp(26px, 3vw, 40px); padding-bottom: clamp(70px, 8vw, 110px); border-radius: var(--radius); }
.factor--light { background: var(--mint-100); }
.factor--thermal { background: #eef0ec; }
.factor h4 { font: 700 clamp(20px, 1.8vw, 26px)/1.2 var(--font-head); color: var(--ink-900); }
.factor p { max-width: 38ch; margin-top: 10px; font-size: 16.5px; }
.factors__icon { display: none; }
@media (min-width: 900px) {
	.factors__icon { position: absolute; left: 50%; bottom: 0; display: block; width: 220px; transform: translateX(-50%); }
	.factors__icon svg { display: block; width: 100%; }
}
.factors__note { max-width: 60ch; margin: 28px auto 0; text-align: center; font-size: 17px; color: #3f7d69; }

/* Solution ------------------------------------------------------------------- */
.solution { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .solution { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.solution__media { aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; }
.solution__media img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { position: relative; padding-left: 32px; font-size: 16px; color: var(--ink-900); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Features: product anatomy with callouts -------------------------------------- */
.anatomy { display: grid; gap: 20px; }
.anatomy__media { position: relative; border-radius: var(--radius); overflow: hidden; background: #e9e9e9; }
.anatomy__media img { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--mint-600); box-shadow: 0 0 0 8px rgba(79, 154, 130, .25); }
.hotspot::after { content: ""; position: absolute; inset: -14px; border: 1.5px solid var(--mint-600); border-radius: 50%; animation: hotspot 2.4s var(--ease) infinite; }
@keyframes hotspot { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.anatomy__item { padding: 22px 24px; border-radius: var(--radius); background: var(--soft); }
.anatomy__item h3 { font: 700 19px/1.25 var(--font-head); color: #3f7d69; }
.anatomy__item p { margin-top: 8px; font-size: 15.5px; }
@media (min-width: 1024px) {
	.anatomy { grid-template-columns: 1fr 1.6fr 1fr; grid-template-areas: "tl media tr" "bl media br"; align-items: center; gap: 24px 32px; }
	.anatomy__media { grid-area: media; }
	.anatomy__item { background: none; padding: 0; }
	.anatomy__item--tl { grid-area: tl; text-align: right; }
	.anatomy__item--bl { grid-area: bl; text-align: right; }
	.anatomy__item--tr { grid-area: tr; }
	.anatomy__item--br { grid-area: br; }
}

/* Results ---------------------------------------------------------------------- */
.results { display: grid; gap: 16px; }
@media (min-width: 900px) { .results { grid-template-columns: repeat(3, 1fr); } }
.results .stat-card { background: var(--soft); border-color: var(--soft); }
.results .stat-card b { color: #3e6db5; }
.results .stat-card h3 { margin-top: 14px; font: 700 18px/1.3 var(--font-head); color: var(--ink-900); }
.thermal { display: grid; gap: 28px; align-items: center; margin-top: clamp(40px, 5vw, 64px); padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--mint-100); }
@media (min-width: 900px) { .thermal { grid-template-columns: 1.5fr 1fr; gap: 48px; } }
.thermal h3 { margin-top: 6px; font: 700 clamp(22px, 2vw, 30px)/1.2 var(--font-head); color: var(--ink-900); }
.thermal p { margin-top: 12px; max-width: 60ch; }
.thermal__big { text-align: center; }
.thermal__big b { display: block; font: 700 clamp(56px, 6vw, 84px)/1 var(--font-head); color: var(--mint-600); }
.thermal__big span { display: block; margin-top: 8px; font-weight: 600; color: var(--ink-900); }

/* Gallery ---------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: repeat(2, 240px); } .gallery__item--big { grid-row: span 2; } }
.gallery__item { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #e9e9e9; }
@media (min-width: 900px) { .gallery__item { aspect-ratio: auto; } }
.gallery__item--big { grid-column: 1 / -1; }
@media (min-width: 900px) { .gallery__item--big { grid-column: auto; } }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Specs ------------------------------------------------------------------------ */
.specs { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .specs { grid-template-columns: 1fr 1.4fr; gap: 64px; } }
.specs .btn { margin-top: 28px; }
.spec-table { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.spec-table div { display: grid; gap: 4px; padding: 16px 22px; border-top: 1px solid var(--line); }
.spec-table div:first-child { border-top: 0; }
@media (min-width: 640px) { .spec-table div { grid-template-columns: 180px 1fr; gap: 20px; } }
.spec-table dt { font: 700 15px/1.4 var(--font-head); color: var(--ink-900); }
.spec-table dd { margin: 0; font-size: 15px; }
.spec-table__pending { background: #fff8e3; }
.spec-table__pending dd { font-style: italic; color: #8a7a3b; }

/* Resources: webinar + recordings + downloads ----------------------------------- */
.resources { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .resources { grid-template-columns: 1fr 1fr; gap: 40px; } }
.webinar { display: grid; gap: 14px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--ink-900); color: rgba(255, 255, 255, .8); }
.webinar__tag { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 50px; background: var(--mint-600); color: #fff; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.webinar__tag svg { width: 15px; height: 15px; }
.webinar h3 { font: 700 clamp(22px, 2vw, 30px)/1.2 var(--font-head); color: #fff; }
.webinar__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 6px 0 10px; font-size: 14px; }
.webinar__meta b { display: block; font: 700 12px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); }
.webinar .btn { justify-self: start; }
.downloads { display: grid; gap: 10px; }
.downloads .h3 { margin-top: 18px; font-size: 18px; }
.downloads .h3:first-child { margin-top: 0; }
.rec,
.dl { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.rec:hover,
.dl:hover { border-color: var(--mint-600); box-shadow: 0 16px 30px -24px rgba(38, 48, 46, .5); }
.rec b,
.dl b { display: block; font: 700 16px/1.3 var(--font-head); color: var(--ink-900); }
.rec small,
.dl small { font-size: 13px; color: #8a9093; }
.rec__thumb { position: relative; flex: none; width: 120px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.rec__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rec__thumb svg { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; padding: 8px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink-900); }
.dl { padding: 16px 18px; }
.dl > svg { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--mint-100); color: var(--mint-600); }

/* Gate dialog ------------------------------------------------------------------ */
.gate { width: min(100% - 32px, 560px); max-height: calc(100svh - 32px); padding: clamp(28px, 4vw, 44px); border: 0; border-radius: 28px; background: var(--ink-900); color: rgba(255, 255, 255, .8); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.gate::backdrop { background: rgba(20, 26, 25, .55); backdrop-filter: blur(4px); }
.gate .eyebrow { color: var(--mint); }
.gate h2 { margin-top: 4px; font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--font-head); color: #fff; }
.gate > p { margin: 10px 0 22px; }
.gate__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.gate__close svg { width: 100%; height: 100%; }
.gate__consent { display: grid !important; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; font-size: 13px; }
.gate__consent input { width: 18px; height: 18px; margin-top: 1px; padding: 0; accent-color: var(--mint-600); }
.gate__ok h3 { font: 700 22px/1.3 var(--font-head); color: #fff; }
.gate__ok p { margin-top: 8px; }
.gate [hidden] { display: none !important; }
@media (max-width: 959px) { .phero__media::before { display: none; } }

/* ------------------------------------------------------------------
 * Simple product pages (template-product.php): swaddles, air wrap,
 * garden friends, bili-ruler. Product photos are shot on white.
 * ------------------------------------------------------------------ */
.phero--simple .phero__title { font-size: clamp(40px, 5.4vw, 72px); }
.phero__photo { margin: 0; display: grid; place-items: center; aspect-ratio: 1; border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -50px rgba(38, 48, 46, .45); overflow: hidden; }
.phero__photo img { width: 100%; height: 100%; object-fit: contain; padding: clamp(16px, 3vw, 36px); }
@media (min-width: 960px) { .phero--simple .phero__grid { grid-template-columns: 1.1fr 1fr; } .phero__photo { max-height: 600px; } }

/* Features & benefits */
.pfeatures { display: grid; gap: 16px; list-style: none; padding: 0; }
@media (min-width: 700px) { .pfeatures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pfeatures { grid-template-columns: repeat(3, 1fr); } }
.pfeatures li { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pfeatures__num { display: block; margin-bottom: 18px; font: 700 14px/1 var(--font-head); color: var(--mint-600); letter-spacing: .08em; }
.pfeatures h3 { font: 700 20px/1.25 var(--font-head); color: var(--ink-900); }
.pfeatures p { margin-top: 10px; font-size: 15.5px; line-height: 1.6; }

/* Videos: phone footage in a portrait frame, landscape footage side by side */
.pvideos { display: grid; gap: 20px; justify-items: center; }
.pvideo-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .pvideo-split { grid-template-columns: 1fr auto; gap: 80px; } }
.pvideo-split .section-head { margin-bottom: 0; }
.pvideo-split .checks { margin-top: 24px; }
.pvideo-split .btn { margin-top: 28px; }
.pvideos--landscape { grid-template-columns: 1fr; justify-content: stretch; }
@media (min-width: 900px) { .pvideos--landscape { grid-template-columns: repeat(2, 1fr); } }
.pvideos--landscape:has(> .pvideo:only-child) { grid-template-columns: min(100%, 960px); justify-content: center; }
.pvideo { margin: 0; }
.pvideo video { display: block; width: 100%; border-radius: 24px; background: #f2f2f0; box-shadow: 0 30px 60px -40px rgba(38, 48, 46, .55); }
.pvideo--portrait { width: min(100%, 380px); }
.pvideo--portrait video { aspect-ratio: 9 / 16; object-fit: cover; }
.pvideo--landscape video { aspect-ratio: 16 / 9; object-fit: cover; }
.pvideo figcaption { margin-top: 12px; font-size: 14px; color: #8a9093; text-align: center; }

/* Gallery: white product shots keep their proportions */
.pgallery { display: grid; gap: 16px; }
@media (min-width: 700px) { .pgallery { grid-template-columns: repeat(2, 1fr); } .pgallery--3 { grid-template-columns: repeat(3, 1fr); } }
.pgallery__item { margin: 0; display: grid; place-items: center; aspect-ratio: 4 / 3.4; border-radius: var(--radius); background: #fff; overflow: hidden; }
.pgallery__item img { width: 100%; height: 100%; object-fit: contain; }
.pgallery__item img[src*="card-"] { object-fit: cover; }

/* Related products */
.prelated { display: grid; gap: 16px; }
@media (min-width: 800px) { .prelated { grid-template-columns: repeat(3, 1fr); } }
.prelated__item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .3s, transform .4s var(--ease); }
.prelated__item:hover { border-color: var(--mint); transform: translateY(-3px); }
.prelated__media { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; background: var(--soft); overflow: hidden; }
.prelated__media img { width: 100%; height: 100%; object-fit: contain; }
.prelated__body { display: grid; gap: 4px; }
.prelated__body small { font: 600 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mint-600); }
.prelated__body b { font: 700 18px/1.2 var(--font-head); color: var(--ink-900); }
.prelated__body span { font-size: 14px; color: #6b7174; }
