/* LaserCube finder quiz (templates/template-quiz.php). Everything is scoped to .lcq; buttons are the theme's .btn. */
.lcq {
  --lcq-surface: #0d0d0f;
  --lcq-surface-hi: #161619;
  --lcq-line: rgba(255, 255, 255, .14);
  --lcq-line-hi: rgba(255, 255, 255, .42);
  --lcq-muted: #a3a3a8;
  --lcq-g-wifi: linear-gradient(243.98deg, #479BF6 16.91%, #CDE5FF 45.99%, #7EF281 83.79%);
  --lcq-g-pro: linear-gradient(243.98deg, rgba(255, 98, 0, 1) 0%, rgba(241, 255, 42, 1) 100%);
  --lcq-g-ultra: linear-gradient(243.98deg, #E533FF 6.22%, #F1D2FF 44.44%, #FF4090 89.49%);
  --lcq-g-brand: linear-gradient(to right, #f98dfe -5%, #ffffff 16%, #2b62fd 110%);
  --lcq-ease: cubic-bezier(.16, 1, .3, 1);
  padding: 32px 0 88px;
  color: #fff;
  line-height: 1.5;
}
.lcq.is-result .laseros-container { max-width: 1070px; }
.lcq *, .lcq *::before, .lcq *::after { box-sizing: border-box; }
.lcq :focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; } /* the theme removes focus outlines with !important */
.lcq [tabindex="-1"]:focus, .lcq [tabindex="-1"]:focus-visible { outline: none !important; }
.lcq ::selection { background: #2b62fd; color: #fff; }
.lcq a:not(.btn) { color: inherit; }
.lcq a.btn-primary, .lcq a.btn-primary:hover { color: #000; }
.lcq a.btn-pill-transparent { color: #fff; }
.lcq ul { margin: 0; padding: 0; list-style: none; }
.lcq button { font-family: inherit; }

/* page head: shown with question 1, kept for screen readers afterwards */
.lcq-head { margin-bottom: 26px; }
.lcq .lcq-title { font-size: clamp(32px, 7vw, 52px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.lcq-lead { color: var(--lcq-muted); font-size: 16px; line-height: 1.5; margin: 10px 0 0; max-width: 46ch; }
.lcq-app:empty { min-height: 460px; } /* until quiz.js has drawn question 1: keeps the footer from jumping */
.lcq.is-started .lcq-head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lcq-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lcq-center { text-align: center; }
.lcq-enter { animation: lcq-enter .42s var(--lcq-ease) both; }
@keyframes lcq-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* buttons: the theme's .btn, larger here */
.lcq .lcq-btn { min-height: 50px; padding: 0 28px; font-size: 16px; font-weight: 600; text-decoration: none; }
.lcq .btn-pill-transparent.lcq-btn:hover, .lcq a.btn-pill-transparent.lcq-btn:hover { background: #e6e6e6; color: #000; }
.lcq-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 0; background: none; border: 0; cursor: pointer;
  color: var(--lcq-muted); font-size: 15px;
}
@media (hover: hover) { .lcq-link:hover { color: #fff; } }
.lcq-link[hidden] { display: inline-flex; visibility: hidden; }

/* question */
.lcq-top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 12px; }
.lcq-step { color: var(--lcq-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.lcq-bar { height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; margin-bottom: 30px; }
.lcq-bar i { display: block; height: 100%; background: var(--lcq-g-brand); transition: width .45s var(--lcq-ease); }
.lcq .lcq-q { font-size: clamp(26px, 5.4vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.lcq-hint { color: var(--lcq-muted); margin: 10px 0 24px; min-height: 1px; }
.lcq-opts { display: grid; gap: 10px; }
.lcq-opt {
  width: 100%; text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 17px 18px 17px 20px; background: var(--lcq-surface); color: #fff; border: 1px solid var(--lcq-line);
  border-radius: 14px; cursor: pointer; transition: border-color .18s, background-color .18s; font-weight: 400;
}
@media (hover: hover) { .lcq-opt:hover { border-color: var(--lcq-line-hi); } }
.lcq-opt-t { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lcq-opt-s { grid-column: 1; color: var(--lcq-muted); font-size: 14px; line-height: 1.4; font-weight: 400; }
.lcq-mark {
  grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .38); display: grid; place-items: center; transition: background-color .18s, border-color .18s;
}
.lcq-opt.is-multi .lcq-mark { border-radius: 7px; }
.lcq-mark svg { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; }
.lcq-opt[aria-pressed="true"] { border-color: #fff; background: var(--lcq-surface-hi); }
.lcq-opt[aria-pressed="true"] .lcq-mark { background: #fff; border-color: #fff; }
.lcq-opt[aria-pressed="true"] .lcq-mark svg { opacity: 1; }
.lcq-foot { margin-top: 24px; display: flex; justify-content: flex-end; }

/* result */
.lcq-rhead { text-align: center; margin-bottom: 30px; }
.lcq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px !important; }
.lcq-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; font-size: 13px; line-height: 1.3; color: var(--lcq-muted);
  background: none; border: 1px solid var(--lcq-line); border-radius: 99px; cursor: pointer; transition: border-color .18s, color .18s;
}
.lcq-chip svg { flex: none; opacity: .7; }
@media (hover: hover) { .lcq-chip:hover { border-color: var(--lcq-line-hi); color: #fff; } }
.lcq-chips-hint { margin: 10px 0 0; font-size: 13px; color: var(--lcq-muted); }
.lcq-picks { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .lcq-picks { grid-template-columns: 1.35fr 1fr; align-items: start; } .lcq-picks.is-single { grid-template-columns: 1fr; } }
.lcq-card { position: relative; background: var(--lcq-surface); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
.lcq-card.is-best::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--lcq-card-g); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.lcq-card.is-alt { border: 1px solid var(--lcq-line); }
.lcq-tag { align-self: flex-start; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 5px 12px; border-radius: 99px; background: #fff; color: #000; }
.lcq-card.is-alt .lcq-tag { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .32); }
.lcq-well { position: relative; aspect-ratio: 5 / 4; overflow: hidden; width: min(88%, 340px); margin: 6px auto 0; }
/* absolute: as a grid item the img's 100% height was ignored and it grew square, so the well cut off the bottom of every cube */
.lcq-well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform-origin: center bottom; }
/* two cards side by side: both photo boxes take the alternative card's size (column (100% - 14px gap) / 2.35, minus 22px padding
   and 1px border each side), so the cubes compare at their SCALE sizes; browsers without container units keep min(88%, 340px) */
@media (min-width: 820px) {
  .lcq-picks { container-type: inline-size; }
  .lcq-picks:not(.is-single) .lcq-well { width: min(340px, calc(((100cqw - 14px) / 2.35 - 46px) * 0.88)); }
}
/* no aspect-ratio (Safari before 15): the well would have no height; let the photo set it */
@supports not (aspect-ratio: 1) { .lcq-well img { position: static; height: auto; } }
.lcq .lcq-name { font-size: clamp(26px, 5vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; color: #fff; }
.lcq-card.is-alt .lcq-name { font-size: clamp(22px, 4.2vw, 26px); }
.lcq-series { background-clip: text; -webkit-background-clip: text; color: transparent; }
.lcq-series.lcq-wifi { background-image: var(--lcq-g-wifi); }
.lcq-series.lcq-pro { background-image: var(--lcq-g-pro); }
.lcq-series.lcq-ultra { background-image: var(--lcq-g-ultra); }
.lcq-price { margin: 6px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lcq-price small { font-size: 14px; font-weight: 400; color: var(--lcq-muted); }
.lcq-why { margin-top: 18px !important; display: grid; gap: 10px; }
.lcq-why li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.lcq-why svg { width: 18px; height: 18px; margin-top: 2px; }
.lcq-note { margin: 12px 0 0; font-size: 14px; color: var(--lcq-muted); }
.lcq-actions { margin-top: auto; padding-top: 22px; display: flex; }
.lcq-actions .btn { flex: 1 1 auto; }

.lcq-diff { margin-top: 36px; }
.lcq-diff h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.lcq-scroll { overflow-x: auto; }
.lcq-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; margin: 0; border: 0; }
.lcq-table th, .lcq-table td { text-align: left; padding: 12px 10px; border: 0; border-bottom: 1px solid var(--lcq-line); vertical-align: top; background: none; color: #fff; }
.lcq-table thead th { font-weight: 700; padding-top: 0; }
.lcq-table tbody th { font-weight: 400; color: var(--lcq-muted); width: 32%; }
.lcq-same { margin: 12px 0 0; font-size: 14px; color: var(--lcq-muted); }

.lcq-more { margin-top: 34px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .lcq-more { grid-template-columns: repeat(3, 1fr); } }
.lcq-more a { display: block; text-decoration: none; padding: 18px 20px; border: 1px solid var(--lcq-line); border-radius: 14px; transition: border-color .18s; }
@media (hover: hover) { .lcq-more a:hover { border-color: var(--lcq-line-hi); } }
.lcq-more-t { font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lcq-more-s { display: block; color: var(--lcq-muted); font-size: 14px; margin-top: 4px; }
.lcq .lcq-center { margin-top: 28px; }

/* phones: question 1 and its answers as high up the first screen as possible */
@media (max-width: 599px) {
  .lcq { padding-top: 14px; }
  .lcq-head { margin-bottom: 18px; }
  .lcq-top { margin-bottom: 8px; }
  .lcq-bar { margin-bottom: 22px; }
  .lcq-hint { margin: 8px 0 18px; }
  .lcq-opt { padding-top: 15px; padding-bottom: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .lcq-enter { animation: none; }
  .lcq-bar i, .lcq-opt, .lcq-mark, .lcq-mark svg, .lcq-chip { transition: none; }
}
