/*
 * /product/quixlab/ — the QuixLab landing page (Merlin's "quix-lab-v2" layout, Nov 2026).
 * Loaded after css/apps.css; reuses .hero, .btn, .app-light, .app-sec, .app-h2, .app-faq,
 * .app-corner. Behaviour: js/quix-lab-v2.js.
 *   .q2-*   page sections (hero extras, practice heading, problem / different split, pricing)
 *   .qz-*   the two media zones: the practice tabs and the capabilities rail
 */

.q2-in { max-width: 1176px; margin: 0 auto; }

/* ── Hero: eyebrow, a sentence as the H1, the description, a product screenshot ── */
.hero.app-hero.q2-hero { padding-bottom: 72px; }
.app-hero__eyebrow { font: 400 13px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin: 0 0 28px; }
.q2-hero .app-hero__h1 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.14; letter-spacing: -0.02em; max-width: 19em; margin: 0 auto 28px; text-wrap: balance; }
.q2-hero .app-hero__sub { font: 400 clamp(17px, 1.4vw, 20px)/1.55 var(--font-sans); color: rgba(255, 255, 255, 0.72); max-width: 44em; margin: 0 auto 40px; text-wrap: balance; }
.q2-hero__shot { position: relative; width: 100%; max-width: 1040px; margin: 64px auto 0; padding: clamp(12px, 2.4vw, 32px); background: #F7F7F8; }
.q2-hero__shot img { display: block; width: 100%; height: auto; }

/* Less space between the hero and the first section: a shorter fade, little padding */
.app-fade.q2-fade { height: 70px; }
.app-sec.q2-first { padding-top: 8px; }

/* ── Death by 1,000 clicks: heading, subtitle, three columns (the home page's feature cards) ── */
.q2-cols3__h { max-width: 860px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.q2-sub.q2-cols3__sub { margin-bottom: 56px; }
.q2-cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(0, 0, 0, 0.14); border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
.q2-cols3__item { padding: 32px 28px 36px; border-left: 1px solid rgba(0, 0, 0, 0.14); }
.q2-cols3__item:first-child { border-left: 0; }
.q2-cols3__media { position: relative; aspect-ratio: 1000 / 451; overflow: hidden; background: var(--white); border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.06), 0 8px 24px rgba(10, 10, 10, 0.06); }
.q2-cols3__media img, .q2-cols3__media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.q2-cols3__media video { position: absolute; inset: 0; }
.q2-cols3__t { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--font-sans); letter-spacing: -0.01em; color: var(--black); margin: 28px 0 10px; }
.q2-cols3__b { font: 400 17px/1.5 var(--font-sans); color: #3A3A3A; margin: 0; text-wrap: pretty; }

/* ── Section headings ── */
.q2-kicker { font: 400 12px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #3A3A3A; text-align: center; margin: 0 0 20px; }
.q2-question { font: 500 clamp(26px, 2.8vw, 40px)/1.2 var(--font-sans); letter-spacing: -0.02em; color: var(--black); text-align: center; max-width: 900px; margin: 0 auto 48px; text-wrap: balance; }
.q2-sub { font: 400 18px/1.55 var(--font-sans); color: #3A3A3A; text-align: center; max-width: 720px; margin: -48px auto 64px; text-wrap: pretty; }

/* ── Media (a screenshot, or a tutorial video with the site's control bar under it) ── */
.qz-media { position: relative; background: var(--white); border: 1px solid rgba(0, 0, 0, 0.18); }
.qz-media__frame { position: relative; aspect-ratio: 1920 / 1172; background: #F2F2F3; overflow: hidden; }
.qz-media__frame img, .qz-media__frame video { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ── Zone 1: practice tabs ── */
.qz-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid rgba(0, 0, 0, 0.3); margin-bottom: 24px; }
.qz-tab {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 20px;
  font: 500 16px/1.2 var(--font-sans); color: var(--black); text-align: left;
  background: transparent; cursor: pointer; border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.3);
}
.qz-tab:first-child { border-left: 0; }
.qz-tab__n { font: 400 12px/1 var(--font-mono); letter-spacing: 0.08em; color: #6A6A6A; }
.qz-tab:hover { background: rgba(0, 0, 0, 0.06); }
.qz-tab[aria-selected='true'] { background: var(--black); color: var(--white); }
.qz-tab[aria-selected='true'] .qz-tab__n { color: var(--orange); }
.qz-tab:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }

/* Media and its steps side by side (Richard: the whole example in one view) */
.qz-panel:not([hidden]) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 36px; align-items: start; }
.q2-cols.qz-panel__steps { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; }
.qz-panel__steps .q2-col { padding-top: 12px; border-top-width: 1px; }
.qz-panel__steps .q2-col__n { margin-bottom: 6px; font-size: 11px; }
.qz-panel__steps .q2-col__t { font-size: 16px; margin-bottom: 4px; }
.qz-panel__steps .q2-col p { font-size: 14.5px; line-height: 1.5; }
#practice .q2-question { margin-bottom: 32px; }
#practice .qz-tabs { margin-bottom: 20px; }
#practice .qz-tab { min-height: 48px; }

/* The steps */
.q2-cols { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; }
.q2-col { border-top: 2px solid var(--black); padding-top: 20px; }
.q2-col__n { font: 400 12px/1 var(--font-mono); letter-spacing: 0.08em; color: #3A3A3A; display: block; margin-bottom: 14px; }
.q2-col__t { font: 500 19px/1.3 var(--font-sans); letter-spacing: -0.01em; color: var(--black); margin: 0 0 10px; text-wrap: balance; }
.q2-col p { font: 400 16px/1.6 var(--font-sans); color: #3A3A3A; margin: 0; text-wrap: pretty; }

/* ── Problem and solution: heading left; lead and body right ── */
.q2-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
.q2-split__h { font: 500 clamp(28px, 2.9vw, 42px)/1.14 var(--font-sans); letter-spacing: -0.02em; color: var(--black); margin: 0; text-wrap: balance; }
.q2-split__lead { font: 400 clamp(19px, 1.6vw, 23px)/1.5 var(--font-sans); color: #18181B; margin: 0 0 28px; text-wrap: pretty; }
.q2-split__lead--quote { font-style: italic; }
.q2-split__p { font: 400 17px/1.6 var(--font-sans); color: #3A3A3A; margin: 0; padding: 20px 0; border-top: 1px solid rgba(0, 0, 0, 0.18); text-wrap: pretty; }
.q2-split__body > .q2-split__p:last-child { padding-bottom: 0; }

/* ── Zone 2: "What can you do" use cases (Richard, 23 Nov 2026): a dropdown, then the use
   case's media (+ WATCH DEMO) left and its text with a "How it works" accordion right ── */
.q2-uc { text-align: left; }
.q2-uc__pick { width: calc((100% - 48px) * 7 / 12); margin: 0 0 32px; } /* = the media column, so the edges line up */
.q2-uc__label { display: block; font: 500 20px/1.3 var(--font-sans); color: var(--black); margin: 0 0 12px; }
.q2-uc__select { position: relative; }
.q2-uc__select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 56px; padding: 12px 52px 12px 20px;
  font: 400 18px/1.3 var(--font-sans); color: var(--black); background: var(--white); border: 1px solid rgba(0, 0, 0, 0.3); border-radius: 0; cursor: pointer; }
.q2-uc__select::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(45deg); pointer-events: none; }
.q2-uc__select select:hover { border-color: rgba(0, 0, 0, 0.6); }
.q2-uc__select select:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.q2-uc:not(.is-live) .q2-uc__pick { display: none; }
.q2-uc:not(.is-live) .q2-uc__item[hidden] { display: grid; }
.q2-uc:not(.is-live) .q2-uc__item + .q2-uc__item { margin-top: 64px; }

.q2-uc__item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
.q2-uc.is-live .q2-uc__item[hidden] { display: none; } /* display: grid above would override [hidden] */
.q2-uc__watch { margin: 24px 0 0; }
.q2-uc__watch .btn { cursor: pointer; }
/* Big play button over the video until it plays */
.q2-uc__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); cursor: pointer; transition: transform 0.15s; }
.q2-uc__play span { position: absolute; left: 50%; top: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--black); }
.q2-uc__play:hover { transform: scale(1.06); }
.q2-uc__play:focus-visible { outline: 2px solid var(--black); outline-offset: 4px; }
.is-playing .q2-uc__play { display: none; }

.q2-uc__h { font: 500 clamp(26px, 2.4vw, 36px)/1.14 var(--font-sans); letter-spacing: -0.02em; color: #18181B; margin: 0 0 14px; text-wrap: balance; }
.q2-uc__desc { font: 400 17px/1.55 var(--font-sans); color: #3A3A3A; margin: 0; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 0, 0, 0.14); text-wrap: pretty; }
.q2-uc__how { font: 500 22px/1.3 var(--font-sans); color: var(--black); margin: 24px 0 8px; }
.q2-uc__step { border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
.q2-uc__q { display: flex; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; }
.q2-uc__q::-webkit-details-marker { display: none; }
.q2-uc__n { flex: none; width: 1.2em; font: 500 22px/1 var(--font-sans); color: var(--orange); }
.q2-uc__t { flex: 1; font: 500 17px/1.3 var(--font-sans); color: var(--black); }
.q2-uc__chev { flex: none; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s; }
.q2-uc__step[open] .q2-uc__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.q2-uc__q:hover .q2-uc__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 0, 0, 0.3); }
.q2-uc__q:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
.q2-uc__a { margin: 0; padding: 0 0 18px calc(1.2em * 22 / 15.5 + 16px); font: 400 15.5px/1.6 var(--font-sans); color: #3A3A3A; text-wrap: pretty; }

/* ── Pricing heading over the plans; a rule above the FAQ ── */
.q2-pricing-h { max-width: none; margin: 0; padding: 110px 24px 0; border-top: 1px solid rgba(0, 0, 0, 0.14); }
.q2-pricing-h + .qlp-pricing { padding-top: 48px; }
.qlp-pricing + .app-faq { border-top: 1px solid rgba(0, 0, 0, 0.14); }

@media (prefers-reduced-motion: reduce) {
}

/* ── Smaller screens ── */
@media (max-width: 960px) {
  .q2-split { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .q2-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .qz-panel:not([hidden]) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .q2-uc__item { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .q2-uc__pick { width: auto; }
  .q2-cols3 { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .q2-cols3__item { padding: 28px 0 32px; border-left: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.14); }
  .q2-cols3__t { margin-top: 20px; }
  /* On a phone the rail comes first, so it is clear the media below belongs to it */
}
@media (max-width: 720px) {
  .hero.app-hero.q2-hero { padding-bottom: 48px; }
  .q2-hero__shot { margin-top: 40px; }
  .qz-tabs { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qz-tab { padding: 12px 14px; font-size: 15px; }
  .qz-tab:nth-child(odd) { border-left: 0; }
  .qz-tab:nth-child(n+3) { border-top: 1px solid rgba(0, 0, 0, 0.3); }
  .q2-question { margin-bottom: 32px; }
  .q2-sub { margin-top: -32px; margin-bottom: 40px; }
  .q2-pricing-h { padding-top: 72px; }
}

/* ── Click to enlarge (js/quix-lab-v2.js): the picture is a button with an expand mark ── */
.q2-zoom { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.q2-zoom__icon { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; background: rgba(10, 10, 10, 0.72); opacity: 0.75; transition: opacity 0.15s; pointer-events: none; }
/* Expand mark: two corner brackets joined by a diagonal */
.q2-zoom__icon::before { content: ''; position: absolute; inset: 8px; background:
  linear-gradient(#fff, #fff) right top / 6px 1.5px no-repeat, linear-gradient(#fff, #fff) right top / 1.5px 6px no-repeat,
  linear-gradient(#fff, #fff) left bottom / 6px 1.5px no-repeat, linear-gradient(#fff, #fff) left bottom / 1.5px 6px no-repeat,
  linear-gradient(-45deg, transparent calc(50% - 0.75px), #fff calc(50% - 0.75px), #fff calc(50% + 0.75px), transparent calc(50% + 0.75px)); }
.q2-zoom:hover .q2-zoom__icon, .q2-zoom:focus-visible .q2-zoom__icon { opacity: 1; }
.q2-zoom:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.q2-zoom:disabled { cursor: default; }
.q2-zoom:disabled .q2-zoom__icon { display: none; }

.q2-lightbox { margin: auto; width: min(92vw, 1600px); max-width: none; max-height: none; padding: 48px 0 0; border: 0; background: transparent; overflow: visible; }
.q2-lightbox::backdrop { background: rgba(10, 10, 10, 0.94); }
.q2-lightbox__media img, .q2-lightbox__media video { display: block; width: 100%; height: auto; max-height: calc(100vh - 140px); object-fit: contain; background: var(--white); }
.q2-lightbox__cap { margin: 12px 0 0; font: 400 14px/1.45 var(--font-sans); color: rgba(255, 255, 255, 0.8); text-align: center; }
.q2-lightbox__close { position: absolute; top: 0; right: 0; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.q2-lightbox__close:hover { border-color: #fff; }
.q2-lightbox__close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 720px) {
  .q2-lightbox { width: 100vw; }
  .q2-lightbox__close { right: 12px; }
  .q2-lightbox__cap { padding: 0 16px; }
}
