/* Review strip, logo carousel, footer (reference layout) + compact phone layout. Loaded after qhome.css. */

/* ---------- review strip ---------- */
.qrv { display: grid; grid-template-columns: 170px 32px 1fr 32px; align-items: center; gap: 18px; margin-top: clamp(26px, 3vw, 44px); }
.qrv-sum { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.qrv-sum > b { font-size: 21px; font-weight: 600; }
.qrv-stars { display: inline-flex; gap: 3px; }
.qrv-stars i { font-style: normal; width: 26px; height: 26px; display: grid; place-items: center; background: #fbbc04; color: #fff; font-size: 17px; line-height: 1; }
.qrv-stars i:not(.on) { background: #dcdcdc; }
.qrv-stars.empty i { background: #dcdcdc; }
.qrv-stars.sm i { width: 17px; height: 17px; font-size: 11px; }
.qrv-sum small { font-size: 12px; color: #4a5058; }
.qrv-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; margin-top: 2px; }
.qrv-g { width: 18px; height: 18px; }
.qrv-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(19, 26, 32, .35); display: grid; place-items: center; color: var(--q-ink); background: transparent; }
.qrv-arrow .ms { font-size: 18px; }
.qrv-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.qrv-track::-webkit-scrollbar { display: none; }
.qrv-card { scroll-snap-align: start; font-size: 12.5px; line-height: 1.45; color: #2b3136; min-width: 0; }
.qrv-card .qrv-who { font-size: 11.5px; color: #5d6670; margin: 6px 0 3px; }
.qrv-card h4 { font-size: 13px; font-weight: 700; margin: 6px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qrv-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qrv-card.ghost { display: flex; flex-direction: column; gap: 8px; padding-top: 26px; }
.qrv-line { display: block; height: 9px; border-radius: 5px; background: #e4e4e4; }
.qrv-line.w60 { width: 60%; } .qrv-line.w90 { width: 90%; } .qrv-line.w75 { width: 75%; }

/* ---------- logo carousel with dots ---------- */
.qcar-view { overflow: hidden; }
.qcar-track { display: flex; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.qlogo { flex: 0 0 25%; display: grid; place-items: center; height: clamp(60px, 6vw, 90px); font-size: clamp(22px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.04em; color: #6b7178; filter: grayscale(1); user-select: none; }
.qcar-dots { display: flex; justify-content: center; gap: 8px; margin-top: clamp(16px, 2vw, 28px); }
.qcar-dots button { width: 7px; height: 7px; border-radius: 50%; background: #c6c6c6; padding: 0; }
.qcar-dots button.on { background: var(--q-ink); }

/* ---------- footer (all pages) ---------- */
footer.site.qf { position: relative; background: rgb(8, 20, 18); color: #fff; padding: 0; margin-top: 40px; }
.qf-wave { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: clamp(22px, 2.8vw, 40px); fill: #fff; }
.qf-in { max-width: 1600px; margin: 0 auto; padding: clamp(60px, 6vw, 90px) max(20px, 5vw) 26px; font-family: Inter, system-ui, sans-serif; }
.qf-top { display: grid; grid-template-columns: 1.45fr .75fr .9fr; gap: 40px; }
.qf .logo { justify-self: start; color: #fff; }
.qf .logo img { height: 54px; }
.qf .logo span { display: none; }
.qf-h { font-size: clamp(19px, 1.63vw, 24px); font-weight: 600; letter-spacing: -.03em; color: #fff; margin: 22px 0 14px; text-transform: none; font-family: inherit; }
.qf-col .qf-h { margin-top: 64px; margin-bottom: 18px; }
.qf-addr { font-size: 13.5px; line-height: 1.75; color: #c8c8c8; }
.qf-addr i { font-style: normal; margin: 0 6px; }
.qf-addr a:hover { color: #fff; }
.qf-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.qf-badge { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px 0 10px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; color: #fff; transition: background .2s; }
.qf-badge:hover { background: rgba(255, 255, 255, .08); }
.qf-badge svg { width: 22px; height: 22px; }
.qf-badge span { display: flex; flex-direction: column; font-size: 15px; font-weight: 600; line-height: 1.05; }
.qf-badge small { font-size: 9.5px; font-weight: 500; opacity: .85; }
.qf-link { display: block; font-size: 14.3px; font-weight: 600; color: #c8c8c8; padding: 5px 0; transition: color .2s; }
.qf-link:hover { color: #fff; }
.qf-help { margin-top: 16px; }
.qf-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 70px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.qf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 13.4px; color: #c8c8c8; }
.qf-legal a { font-weight: 600; color: #fff; }
.qf-legal a:hover { text-decoration: underline; }
.rf-home .qsmall + * , .rf-home footer.site.qf { margin-top: 0; }

/* ---------- compact phone layout: side by side, shorter scroll ---------- */
@media (max-width: 760px) {
  .qsec { padding-top: 40px; }
  .qh2 { font-size: 27px; }
  .qh2.c { margin-bottom: 20px; }
  /* trust points: three across */
  .qusp { padding: 18px 0; }
  .qusp .kwrap { flex-direction: row; align-items: flex-start; gap: 8px; padding: 0 14px; }
  .qusp span { flex: 1; flex-direction: column; text-align: center; gap: 6px; font-size: 12px; line-height: 1.3; }
  .qusp .kico { width: 22px; height: 22px; }
  /* message card: text and picture side by side */
  .qsec-msg { padding-top: 10px; }
  .qmsg { grid-template-columns: 1.35fr 1fr; min-height: 0; }
  .qmsg-tx { padding: 18px 0 18px 18px; }
  .qmsg h2 { font-size: 19px; margin: 6px 0 8px; }
  .qmsg p { display: none; }
  .qmsg-kick { font-size: 12px; }
  .qmsg .kb { margin-top: 8px; min-width: 0; height: 38px; padding: 0 14px; font-size: 12.5px; }
  .qmsg-img { height: auto; padding: 16px 12px 0 8px; }
  .qmsg-img img { max-height: 170px; height: 100%; border-radius: 14px 14px 0 0; }
  .qmsg-badge { width: 36px; height: 36px; right: 8px; top: 8px; }
  .qmsg-badge svg { width: 18px; height: 18px; }
  /* solutions: three across */
  .qsol-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qsol, .qsol:first-child { grid-column: auto; aspect-ratio: 3 / 4.2; border-radius: 14px; }
  .qsol-tx { padding: 10px; }
  .qsol h3 { font-size: 13.5px; letter-spacing: -.02em; line-height: 1.2; }
  /* products: picture left, text right */
  .qprod-list { gap: 12px; }
  .qprod, .qprod.img-r { grid-template-columns: 40% 1fr; border-radius: 18px; }
  .qprod.img-r .qprod-img { order: 0; }
  .qprod-img { aspect-ratio: auto; min-height: 170px; }
  .qprod-tx { padding: 16px 14px; }
  .qprod-kick { font-size: 12.5px; }
  .qprod h3 { font-size: 19px; margin: 4px 0 6px; }
  .qprod h3 br { display: none; }
  .qprod p, .qprod-facts { display: none; }
  .qprod-btns { margin-top: 10px; gap: 6px; }
  .qprod-btns .kb { height: 34px; min-width: 0; padding: 0 12px; font-size: 12px; }
  .qprod-btns .kb-line { display: none; }
  /* services: four across, icon and title only */
  .qsec-svc { padding-bottom: 40px; }
  .qsvc-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .qsvc { padding: 12px 4px; border-radius: 14px; }
  .qsvc-ic { width: 36px; height: 36px; margin-bottom: 8px; }
  .qsvc-ic svg { width: 20px; height: 20px; }
  .qsvc h3 { font-size: 11px; line-height: 1.25; letter-spacing: -.01em; }
  .qsvc h3 br { display: none; }
  .qsvc small, .qsvc .kb { display: none; }
  /* how it works: steps only */
  .qsec-blue { padding: 36px 0; }
  .qhow-img { display: none; }
  .qhow-tx p { margin: 8px 0 16px; }
  .qacc summary { min-height: 52px; font-size: 15px; }
  /* guides: three across, titles only */
  .qnews-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .qnews:nth-child(3) { display: block; }
  .qnews-img { border-radius: 12px; }
  .qnews-meta { display: none; }
  .qnews h3 { font-size: 12.5px; margin-top: 8px; letter-spacing: -.01em; line-height: 1.3; }
  .qnews-head .kb { height: 34px; padding: 0 12px; font-size: 12px; }
  /* stories: videos side by side, reviews swipe */
  .qsec-grey { padding-bottom: 36px; margin-top: 40px; }
  .qvid { aspect-ratio: 4 / 5; }
  .qvid-tx b { font-size: 17px; }
  .qrv { grid-template-columns: 1fr; gap: 14px; }
  .qrv-arrow { display: none; }
  .qrv-sum { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .qrv-track { grid-auto-columns: 78%; gap: 14px; }
  /* brands: two per view */
  .qlogo { flex-basis: 50%; font-size: 24px; }
  .qsmall { padding: 16px 0 30px; }
  .qsmall ol { font-size: 11.5px; }
  /* footer: compact */
  .qf-top { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .qf-brand { grid-column: 1 / -1; }
  .qf-col .qf-h { margin-top: 26px; font-size: 17px; }
  .qf-badge { height: 40px; padding: 0 10px 0 8px; }
  .qf-badge span { font-size: 13px; }
  .qf-bottom { flex-direction: column; align-items: flex-start; }
  .qf-legal { gap: 14px; }
}

/* previous hero restored under the template nav: clear the bar + nav, divider meets the white trust strip */
.rf-home .hero.rofix .hero-in { padding-top: calc(108px + 2vw); }
.rf-home .hero.rofix::after { background: #fff; }
@media (max-width: 760px) { .rf-home .hero.rofix .hero-in { padding-top: 110px; } }
.qbar a { gap: 0; }
.qbar a .ms { margin-left: 8px; }

/* nav: links centred in a see-through glass pill over the hero; pill stays (light) on the white scrolled bar */
.hdr.qn .qn-in { position: relative; }
.hdr.qn nav.qn-links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); gap: 4px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14.5px; font-weight: 500; }
.hdr.qn nav.qn-links a { padding: 9px 18px; border-radius: 99px; opacity: 1; transition: background .25s, color .25s; }
.hdr.qn nav.qn-links a:hover { background: rgba(255, 255, 255, .16); opacity: 1; }
.hdr.qn nav.qn-links a.on { background: #fff; color: var(--q-ink); }
.hdr.qn.solid nav.qn-links { background: #f3f5f8; border-color: rgba(19, 26, 32, .08); backdrop-filter: none; }
.hdr.qn.solid nav.qn-links a:hover { background: #e7ebf0; }
.hdr.qn.solid nav.qn-links a.on { background: var(--q-ink); color: #fff; }
@media (max-width: 1180px) { .hdr.qn nav.qn-links a { padding: 9px 13px; } .qn-tel { display: none; } }
@media (max-width: 960px) { .hdr.qn nav.qn-links { display: none; } }

/* hero bottom edge: soft wave like the reference (no triangle, no red edge) */
.rf-home .hero.rofix::before, .rf-home .hero.rofix::after { display: none; }
.rf-home .hero.rofix .qh-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 4.2vw, 64px); fill: #fff; z-index: 3; pointer-events: none; }
/* trust points bold */
.qusp span { font-weight: 600; }

/* product cards: template proportions (measured on the mockup / reference) */
.rf-home { --q-beige: #f8eee7; }
.qprod { grid-template-columns: 52fr 48fr; min-height: clamp(380px, 41vw, 640px); }
.qprod.img-r { grid-template-columns: 55fr 45fr; }
.qprod.img-r .qprod-tx { order: 1; } .qprod.img-r .qprod-img { order: 2; }
.qprod.img-l .qprod-tx { padding: clamp(28px, 3vw, 48px) 5% clamp(28px, 3vw, 48px) .8%; }
.qprod.img-r .qprod-tx { padding: clamp(28px, 3vw, 48px) 4% clamp(28px, 3vw, 48px) 14%; }
.qprod.img-l .qprod-img img { object-position: right center; }
.qprod-kick { font-size: clamp(19px, 1.8vw, 28px); font-weight: 400; color: #555b61; }
.qprod h3 { font-size: clamp(32px, 3.73vw, 62px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; margin: 10px 0 14px; }
.qprod p { font-size: clamp(16px, 1.6vw, 24px); color: #555b61; }
.qprod-btns { gap: 14px; margin-top: clamp(22px, 2.5vw, 36px); }
.qprod-btns .kb { height: clamp(44px, 3.5vw, 52px); font-size: clamp(14px, 1.1vw, 17px); }
.qprod-btns .kb-fill { min-width: clamp(200px, 17.5vw, 280px); }
.qprod-btns .kb-line { min-width: clamp(140px, 11.5vw, 190px); }
.qprod-facts { margin-top: clamp(24px, 2.6vw, 40px); }
.qprod-facts div { padding: 0 clamp(18px, 3.4vw, 50px); border-left-color: rgba(19, 26, 32, .18); }
.qprod-facts div:first-child { padding-left: 0; }
.qprod-facts small { font-size: clamp(12px, .95vw, 15px); color: #6b7076; }
.qprod-facts b { font-size: clamp(14px, 1.3vw, 20px); font-weight: 600; white-space: nowrap; margin-top: 6px; }
@media (max-width: 760px) {
  .qprod, .qprod.img-r { grid-template-columns: 40% 1fr; min-height: 0; }
  .qprod.img-r .qprod-img { order: 0; } .qprod.img-r .qprod-tx { order: 1; }
  .qprod.img-l .qprod-tx, .qprod.img-r .qprod-tx { padding: 16px 14px; }
  .qprod-kick { font-size: 12.5px; }
  .qprod h3 { font-size: 19px; margin: 4px 0 6px; }
  .qprod-btns { margin-top: 10px; }
  .qprod-btns .kb { height: 34px; min-width: 0; padding: 0 12px; font-size: 12px; }
  .qprod-btns .kb-fill { min-width: 0; }
}

/* ===== product cards on phones: template layout (measured at 375 wide) =====
   card 331 wide, 22px inset; kicker 18.4 / title 29.45 / sub 16.9; facts as label + value rows;
   two full-width 44px buttons; product picture centred at the bottom */
@media (max-width: 760px) {
  .qprod-list { gap: 16px; }
  .qprod, .qprod.img-r { display: flex; flex-direction: column; min-height: 0; border-radius: 15px; }
  .qprod .qprod-tx, .qprod.img-l .qprod-tx, .qprod.img-r .qprod-tx { order: 1; display: flex; flex-direction: column; padding: 29px 22px 0; align-self: stretch; }
  .qprod .qprod-img, .qprod.img-r .qprod-img { order: 2; position: relative; min-height: 0; aspect-ratio: auto; overflow: visible; padding: 30px 22px 30px; display: flex; justify-content: center; }
  .qprod-kick { order: 1; font-size: 18.4px; line-height: 24px; font-weight: 400; letter-spacing: -.017em; color: #545454; }
  .qprod h3 { order: 2; font-size: 29.45px; line-height: 33.9px; font-weight: 600; letter-spacing: -.04em; margin: 9px 0 14px; }
  .qprod h3 br { display: inline; }
  .qprod p { order: 3; display: block; font-size: 16.9px; line-height: 27px; letter-spacing: -.018em; color: #545454; }
  .qprod-facts { order: 4; display: grid; grid-template-columns: 106px 1fr; row-gap: 12px; margin-top: 22px; padding: 0; border: 0; }
  .qprod-facts div, .qprod-facts div:first-child { display: contents; }
  .qprod-facts small { font-size: 11px; line-height: 1.3; color: #545454; align-self: center; }
  .qprod-facts b { font-size: 13.5px; line-height: 1.4; font-weight: 500; margin: 0; white-space: normal; color: var(--q-ink); }
  .qprod-btns { order: 5; display: flex; flex-direction: column; gap: 11px; margin-top: 24px; }
  .qprod-btns .kb, .qprod-btns .kb-fill, .qprod-btns .kb-line { display: inline-flex; width: 100%; min-width: 0; height: 44px; padding: 0 20px; font-size: 13px; }
  .qprod-img img, .qprod-img picture img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; transform: none !important; }
  .qprod-img .has-m { display: block; width: 100%; max-width: 300px; }
  .qprod-img .has-m img { aspect-ratio: auto; object-fit: contain; border-radius: 0; }
}
@media (max-width: 760px) {
  .rf-home { --q-pad: 22px; }
  .qprod .qprod-img, .qprod.img-r .qprod-img { padding: 30px 22px 37px; }
  .qprod-img .has-m { max-width: 257px; }
  .qprod-img > img { max-width: 257px; }
}
