/* Quantum Lifestyle — shared styles for the QL section family
   (ql_hero, ql_press, ql_tiles, ql_split, ql_steps, ql_products, ql_slides, ql_cta).
   Setting-driven values (padding, widths, section colors) come from components/ql_section_style.
   Type sizes come from the global presets; colors from the theme tokens.
   Page rule: one page background. Sections break the rhythm with full-bleed imagery,
   image proportion and alignment — not with alternating background colors. */

:root {
  --ql-gutter-x: 64px;
  --ql-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ql-radius: var(--media-radius, 20px);
}
@media (max-width: 991px) { :root { --ql-gutter-x: 24px; } }
@media (max-width: 767px) { :root { --ql-gutter-x: 16px; } }

/* ---------- Base ---------- */
.ql-hero, .ql-press, .ql-tiles, .ql-split, .ql-steps, .ql-products, .ql-slides, .ql-cta {
  position: relative;
  color: var(--clr-body);
}
.ql-container { position: relative; margin: 0 auto; padding: 0 var(--ql-gutter-x); }
/* Page-grid geometry for bleed layouts: the edge is the distance from the viewport edge to the
   page grid; the inner width is the grid itself. */
.ql-split {
  --ql-edge: max(var(--ql-gutter-x), calc((100vw - var(--ql-max, 1280px)) / 2 + var(--ql-gutter-x)));
  --ql-inner: calc(min(100vw, var(--ql-max, 1280px)) - 2 * var(--ql-gutter-x));
  --ql-split-gap: 88px;
  --ql-split-share: 0.5;
}

.ql-holo { background-image: var(--grad-holo); }

.rte > * { margin: 0; }
.rte > * + * { margin-top: 0.6em; }
.rte a { text-decoration: underline; text-underline-offset: 3px; }

/* Heading pattern. Eyebrows are optional and used sparingly. */
.ql-eyebrow :is(h5, h6, p) { color: var(--clr-secondary); }
.ql-heading :is(h1, h2, h3) { color: var(--clr-primary); text-wrap: balance; }
.ql-subhead :is(p, li) { font-size: var(--fs-lead); line-height: 1.55; color: var(--clr-body); max-width: 52ch; text-wrap: pretty; }
.ql-fineprint { font-size: var(--fs-small); line-height: 1.5; color: var(--clr-muted); max-width: 62ch; }

.ql-theme--light { color: rgba(255, 255, 255, 0.82); }
.ql-theme--light .ql-eyebrow :is(h5, h6, p) { color: var(--clr-gray); }
.ql-theme--light .ql-heading :is(h1, h2, h3) { color: var(--clr-white); }
.ql-theme--light .ql-subhead :is(p, li) { color: rgba(255, 255, 255, 0.84); }

/* ---------- Buttons (design system → Button) ---------- */
.ql-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
.ql-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-height, 48px);
  padding: 0 var(--btn-padding-x, 28px);
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--btn-radius, 999px);
  font-family: var(--ff-body);
  font-size: var(--btn-font-size, 15px);
  font-weight: var(--btn-font-weight, 500);
  letter-spacing: var(--btn-letter-spacing, 0.01em);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ql-btn:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; }
.ql-btn--primary { background: var(--clr-primary); color: var(--clr-white); }
.ql-btn--primary:hover { background: var(--clr-dark); border-color: var(--clr-dark); }
.ql-btn--secondary { background: transparent; color: var(--clr-primary); }
.ql-btn--secondary:hover { background: var(--clr-primary); color: var(--clr-white); }
.ql-btn--light { background: var(--clr-white); border-color: var(--clr-white); color: var(--clr-primary); }
.ql-btn--light:hover { background: var(--clr-gray); border-color: var(--clr-gray); }
.ql-btn--link { height: auto; padding: 4px 0; border: 0; border-radius: 0; color: var(--clr-primary); }
.ql-btn--link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ql-btn__arrow { transition: transform 0.2s ease; }
.ql-btn--link:hover .ql-btn__arrow { transform: translateX(3px); }
.ql-theme--light .ql-btn--secondary { color: var(--clr-white); border-color: rgba(255, 255, 255, 0.7); }
.ql-theme--light .ql-btn--secondary:hover { background: var(--clr-white); color: var(--clr-primary); }
.ql-theme--light .ql-btn--link { color: var(--clr-white); }

/* ---------- Media (canonical image block) ---------- */
.ql-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--ql-radius);
  background: var(--clr-light);
}
.ql-media__link { display: block; height: 100%; }
.ql-media__img { display: block; width: 100%; height: 100%; }
.ql-media[style*="aspect-ratio"] .ql-media__img,
.ql-media--fill .ql-media__img { position: absolute; inset: 0; }
.ql-media--fill { position: absolute; inset: 0; border-radius: 0; }
.ql-media__overlay { position: absolute; inset: 0; pointer-events: none; }
.ql-media picture { display: contents; }
.ql-media__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--grad-holo);
}
.ql-holo .ql-media__placeholder { background: rgba(255, 255, 255, 0.4); }
.ql-disc {
  width: 38%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 50%;
  /* A holographic sticker: faceted foil, two printed rings, a highlight */
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, 0.4) 30.5% 31.5%, transparent 32% 58%, rgba(255, 255, 255, 0.4) 58.5% 59.5%, transparent 60%),
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 7.5deg, rgba(255, 255, 255, 0.2) 7.5deg 15deg),
    conic-gradient(from 200deg, #cfc8f8, #bfe2f6, #c6eedb, #f6d5c1, #f1c7de, #cfc8f8);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.5), 0 24px 40px rgba(28, 47, 86, 0.12);
}

/* ---------- Section head (copy + link / controls) ---------- */
.ql-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
}
.ql-section-head__copy { display: grid; gap: 14px; max-width: 720px; }
.ql-section-head > .ql-actions,
.ql-section-head__side .ql-actions { margin-top: 0; }
.ql-section-head__side { display: flex; align-items: center; gap: 28px; }

/* =========================================================
   QL Hero — full-bleed image with the copy set on it
   ========================================================= */
.ql-hero {
  display: grid;
  overflow: hidden;
  isolation: isolate;
  --ql-hero-h: clamp(560px, 49vw, 880px);
}
.ql-hero--h-medium { --ql-hero-h: clamp(440px, 36vw, 640px); }
.ql-hero--h-screen { --ql-hero-h: max(560px, 88svh); }
.ql-hero--h-auto { --ql-hero-h: 0px; }

.ql-hero__media { position: absolute; inset: 0; z-index: -2; }
.ql-hero__media .ql-media { background: var(--clr-light); }
.ql-hero__media .ql-media__img { animation: ql-settle 2.4s var(--ql-ease) both; }

/* Contrast wash on the text side (setting: Text contrast wash) */
.ql-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--ql-hero-overlay, 0);
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0) 58%);
}
.ql-hero--x-right::before { background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0.72) 28%, rgba(255, 255, 255, 0) 58%); }
.ql-hero--x-center::before { background: rgba(255, 255, 255, 0.7); }
.ql-hero.ql-theme--light::before { background: linear-gradient(90deg, rgba(7, 11, 20, 0.85) 0%, rgba(7, 11, 20, 0.45) 40%, rgba(7, 11, 20, 0) 75%); }
.ql-hero.ql-theme--light.ql-hero--x-right::before { background: linear-gradient(270deg, rgba(7, 11, 20, 0.85) 0%, rgba(7, 11, 20, 0.45) 40%, rgba(7, 11, 20, 0) 75%); }
.ql-hero.ql-theme--light.ql-hero--x-center::before { background: rgba(7, 11, 20, 0.6); }

.ql-hero > .ql-container {
  width: 100%;
  min-height: var(--ql-hero-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
  padding-bottom: 80px;
}
.ql-hero--y-top > .ql-container { justify-content: flex-start; }
.ql-hero--y-bottom > .ql-container { justify-content: flex-end; }
.ql-hero--x-center > .ql-container { align-items: center; text-align: center; }
.ql-hero--x-right > .ql-container { align-items: flex-end; }

.ql-hero__copy {
  width: min(100%, var(--ql-hero-copy, 560px));
  display: grid;
  gap: 20px;
  animation: ql-rise 1s var(--ql-ease) 0.15s both;
}
.ql-hero--x-center .ql-hero__copy { justify-items: center; }
.ql-hero--x-center .ql-actions { justify-content: center; }
.ql-hero--x-center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-hero .ql-heading :is(h1, h2) { letter-spacing: -0.03em; line-height: 1.02; }
.ql-hero .ql-subhead :is(p, li) { max-width: 40ch; }
.ql-hero .ql-actions { margin-top: 8px; }
@media (min-width: 992px) {
  .ql-hero .ql-heading h1 { font-size: clamp(48px, 4.6vw, var(--fs-h1)); }
}

/* No image: brand textures */
.ql-hero.is-noimage.ql-texture--holo { background-image: var(--grad-holo); }
.ql-hero.is-noimage.ql-texture--carbon {
  background-color: #0b1628;
  background-image:
    radial-gradient(90% 120% at 12% 0%, rgba(46, 107, 198, 0.34) 0%, rgba(46, 107, 198, 0) 55%),
    radial-gradient(70% 90% at 100% 100%, rgba(222, 139, 95, 0.16) 0%, rgba(222, 139, 95, 0) 60%),
    linear-gradient(27deg, #101d35 5px, transparent 5px),
    linear-gradient(207deg, #101d35 5px, transparent 5px),
    linear-gradient(27deg, #14233f 5px, transparent 5px),
    linear-gradient(207deg, #14233f 5px, transparent 5px),
    linear-gradient(90deg, #0d1930 10px, transparent 10px),
    linear-gradient(#0f1b32 25%, #0c172b 25%, #0c172b 50%, transparent 50%, transparent 75%, #12203a 75%, #12203a);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 5px, 10px 0, 0 10px, 10px 5px, 0 0, 0 0;
}
/* A slow sheen across the weave */
.ql-hero.is-noimage.ql-texture--carbon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 65%);
  background-size: 250% 100%;
  animation: ql-sheen 9s ease-in-out infinite;
}

/* Optional Q mark pressed into the texture, opposite the copy */
.ql-hero__mark {
  position: absolute;
  top: 50%;
  left: max(var(--ql-gutter-x), calc((100vw - var(--ql-max, 1280px)) / 2 + var(--ql-gutter-x)));
  z-index: -1;
  width: clamp(220px, 30vw, 440px);
  color: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  pointer-events: none;
}
.ql-hero__mark .ql-mark {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.09)) drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.6));
}
.ql-hero--x-left .ql-hero__mark { left: auto; right: max(var(--ql-gutter-x), calc((100vw - var(--ql-max, 1280px)) / 2 + var(--ql-gutter-x))); }
.ql-hero--x-center .ql-hero__mark { left: 50%; transform: translate(-50%, -50%); }
.ql-hero.ql-theme--dark .ql-hero__mark { color: rgba(28, 47, 86, 0.06); }

/* =========================================================
   QL Press — looping "As seen in" marquee
   ========================================================= */
.ql-press.has-borders { border-block: 1px solid var(--border-subtle); }
.ql-press__row { display: flex; align-items: center; gap: 48px; }
.ql-press__label {
  flex: none;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-muted);
  white-space: nowrap;
}
.ql-press__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.ql-press__track { display: flex; width: max-content; animation: ql-marquee var(--ql-press-speed, 40s) linear infinite; }
.ql-press__group { display: flex; align-items: center; gap: 72px; margin: 0; padding: 0 72px 0 0; list-style: none; }
.ql-press__item { flex: none; }
.ql-press__item a { display: block; color: inherit; text-decoration: none; }
.ql-press__name {
  font-family: var(--ff-accent);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--clr-primary);
  opacity: 0.62;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.ql-press__item a:hover .ql-press__name { opacity: 1; }
.ql-press__logo { display: block; width: auto; height: calc(var(--ql-press-logo-h, 28px) * var(--s, 1)); max-width: none; opacity: 0.92; }

/* =========================================================
   QL Tiles — tall cards, copy on the photo
   ========================================================= */
.ql-tiles__grid {
  display: grid;
  grid-template-columns: repeat(var(--ql-cols, 4), minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.ql-tile {
  position: relative;
  display: block;
  aspect-ratio: var(--ql-tile-ratio, 2 / 3);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--card-radius, 16px);
  background: var(--clr-dark);
  color: var(--clr-white);
  text-decoration: none;
}
.ql-tile:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; }
.ql-tile__media { position: absolute; inset: 0; z-index: -2; }
.ql-tile__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ql-ease); }
.ql-tile:hover .ql-tile__img { transform: scale(1.05); }
.ql-tile__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(7 11 20 / 0) 42%, rgb(7 11 20 / var(--ql-tile-shade, 0.55)) 100%);
}
/* Placeholder: a lit holographic disc in a dark room (tiles and slides) */
.ql-tile__placeholder,
.ql-slide__placeholder {
  --ql-t1: 46 107 198;   /* wash, top right */
  --ql-t1a: 0.5;
  --ql-t2: 222 139 95;   /* wash, bottom left */
  --ql-t2a: 0.32;
  --ql-t3: 255 255 255;  /* glow behind the patch */
  --ql-t3a: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 28%;
  background:
    radial-gradient(52% 36% at 50% 36%, rgb(var(--ql-t3) / var(--ql-t3a)), transparent 72%),
    radial-gradient(70% 50% at 72% 18%, rgb(var(--ql-t1) / var(--ql-t1a)), transparent 62%),
    radial-gradient(60% 45% at 18% 92%, rgb(var(--ql-t2) / var(--ql-t2a)), transparent 62%),
    linear-gradient(165deg, #1c2f56 0%, #0b1628 70%);
  transition: transform 0.9s var(--ql-ease);
}
.ql-tile:nth-child(4n + 2) .ql-tile__placeholder { filter: hue-rotate(-18deg); }
.ql-tile:nth-child(4n + 3) .ql-tile__placeholder { filter: hue-rotate(28deg) saturate(0.85); }
.ql-tile:nth-child(4n + 4) .ql-tile__placeholder { filter: hue-rotate(-40deg) saturate(0.9); }
/* Tint: a faint glow matching the patch color, on the same navy base */
.ql-tile--tint-orange { --ql-tint: 240 138 36; }
.ql-tile--tint-green { --ql-tint: 40 168 92; }
.ql-tile--tint-blue { --ql-tint: 64 168 240; }
.ql-tile--tint-red { --ql-tint: 228 58 58; }
.ql-tile--tint-pink { --ql-tint: 236 80 150; }
.ql-tile--tint-gold { --ql-tint: 232 184 56; }
.ql-tile:not(.ql-tile--tint-brand) .ql-tile__placeholder {
  --ql-t1a: 0.2;
  --ql-t2: var(--ql-tint);
  --ql-t2a: 0.34;
  --ql-t3: var(--ql-tint);
  --ql-t3a: 0.52;
  filter: none;
}
.ql-tile__placeholder .ql-disc { width: 44%; box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.06), 0 0 80px rgba(222, 238, 247, 0.35); }
/* Patch: the product's patch or pendant cut-out. The soft translucent outline follows the image's own
   shape (SVG filter in the section markup, --ql-ring); the shadow and tinted glow follow it too. */
.ql-tiles__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ql-tile__patch {
  position: absolute;
  top: 36%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 90px rgb(var(--ql-tint, 222 238 247) / 0.22));
  transform: translate(-50%, -50%);
  transition: transform 0.9s var(--ql-ease);
}
.ql-tile__patch-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: var(--ql-ring, none); }
.ql-tile:hover .ql-tile__placeholder { transform: scale(1.04); }
.ql-tile__label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}
.ql-tile__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 24px;
  transition: transform 0.45s var(--ql-ease);
}
.ql-tile__title {
  font-family: var(--ff-heading);
  font-weight: var(--fw-heading, 500);
  font-size: var(--fs-h3);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ql-tile__text { min-height: 2.9em; font-size: var(--fs-small); line-height: 1.45; color: rgba(255, 255, 255, 0.8); max-width: 30ch; }
.ql-tile__btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--clr-white);
  color: var(--clr-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
@media (hover: hover) and (min-width: 768px) {
  .ql-tile__body { transform: translateY(50px); }
  .ql-tile__btn { opacity: 0; transition: opacity 0.35s ease; }
  .ql-tile:hover .ql-tile__body,
  .ql-tile:focus-visible .ql-tile__body { transform: none; }
  .ql-tile:hover .ql-tile__btn,
  .ql-tile:focus-visible .ql-tile__btn { opacity: 1; }
}

/* =========================================================
   QL Split — image beside text; width, side and bleed vary
   ========================================================= */
.ql-split > .ql-container {
  display: grid;
  grid-template-columns: var(--ql-split-cols, minmax(0, 1fr) minmax(0, 1fr));
  align-items: center;
  gap: var(--ql-split-gap);
}
.ql-split--w-wide { --ql-split-cols: minmax(0, 1.35fr) minmax(0, 1fr); --ql-split-share: 0.575; }
.ql-split--w-narrow { --ql-split-share: 0.39; }
.ql-split--w-narrow { --ql-split-cols: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.ql-split--media-right.ql-split--w-wide { --ql-split-cols: minmax(0, 1fr) minmax(0, 1.35fr); }
.ql-split--media-right.ql-split--w-narrow { --ql-split-cols: minmax(0, 1.22fr) minmax(0, 0.78fr); }
.ql-split--media-right .ql-split__media { order: 2; }
.ql-split--v-top > .ql-container { align-items: start; }
.ql-split--v-bottom > .ql-container { align-items: end; }
.ql-split__copy { display: grid; gap: 18px; align-content: center; max-width: 520px; }
.ql-split--w-narrow .ql-split__copy { max-width: 600px; }

/* Bleed: the image runs to the screen edge; the copy keeps its full column on the page grid */
.ql-split.ql-split--bleed[class] > .ql-container { max-width: none; padding: 0; }
.ql-split--bleed { --ql-bleed-media: calc(var(--ql-edge) + (var(--ql-inner) - var(--ql-split-gap)) * var(--ql-split-share)); }
.ql-split--bleed.ql-split--media-left > .ql-container { grid-template-columns: var(--ql-bleed-media) minmax(0, 1fr); }
.ql-split--bleed.ql-split--media-right > .ql-container { grid-template-columns: minmax(0, 1fr) var(--ql-bleed-media); }
.ql-split--bleed .ql-split__media .ql-media { border-radius: 0; }
.ql-split--bleed .ql-split__copy { max-width: none; }
.ql-split--bleed.ql-split--media-left .ql-split__copy { padding-right: var(--ql-edge); }
.ql-split--bleed.ql-split--media-right .ql-split__copy { padding-left: var(--ql-edge); }
.ql-split--bleed .ql-split__copy > * { max-width: 560px; }

/* Features: a short titled list under the text */
.ql-feature { display: grid; gap: 4px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.ql-subhead + .ql-feature { margin-top: 12px; }
.ql-feature__title { margin: 0; font-size: 16px; font-weight: 600; color: var(--clr-primary); }
.ql-feature__text { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--clr-muted); }
.ql-theme--light .ql-feature { border-top-color: rgba(255, 255, 255, 0.18); }
.ql-theme--light .ql-feature__title { color: var(--clr-white); }
.ql-theme--light .ql-feature__text { color: rgba(255, 255, 255, 0.72); }

/* ---------- Diagram: a circle of points over the split image ----------
   Points sit evenly around the ring (CSS trig from --i / --n); labels sit just outside,
   anchored on the side facing the ring. The center swaps to a point's detail on hover/tap. */
.ql-split { overflow-x: clip; }
.ql-split__media { position: relative; }
.ql-diagram {
  --ql-dia-fg: #fff;
  --ql-dia-line: rgba(255, 255, 255, 0.85);
  --ql-dia-soft: rgba(255, 255, 255, 0.86);
  --ql-dia-wash: rgb(7 11 20 / 0.24);
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  color: var(--ql-dia-fg);
}
.ql-diagram--dark {
  --ql-dia-fg: var(--clr-primary);
  --ql-dia-line: rgb(28 47 86 / 0.7);
  --ql-dia-soft: var(--clr-body);
  --ql-dia-wash: rgb(255 255 255 / 0.35);
}
.ql-diagram__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  height: var(--ql-dia, 62%);
  aspect-ratio: 1;
  border: 1px solid var(--ql-dia-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
/* a soft wash behind the ring so white type holds on bright skin */
.ql-diagram__ring::before {
  content: "";
  position: absolute;
  inset: -34%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--ql-dia-wash), transparent);
}
.ql-diagram__point {
  --a: calc(var(--i) * 360deg / var(--n));
  position: absolute;
  left: calc(50% + 50% * sin(var(--a)));
  top: calc(50% - 50% * cos(var(--a)));
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}
.ql-diagram__point:focus-visible { outline: 2px solid var(--ql-dia-fg); outline-offset: 2px; }
.ql-diagram__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ql-dia-fg);
  transform: translate(-50%, -50%);
  animation: ql-ping 3s ease-out infinite;
  animation-delay: calc(var(--i) * 0.4s);
  transition: transform 0.3s var(--ql-ease);
}
.ql-diagram__point:hover .ql-diagram__dot,
.ql-diagram__point.is-active .ql-diagram__dot { transform: translate(-50%, -50%) scale(1.45); }
.ql-diagram__label {
  --gap: 22px;
  position: absolute;
  left: calc(50% + var(--gap) * sin(var(--a)));
  top: calc(50% - var(--gap) * cos(var(--a)));
  width: max-content;
  max-width: 15ch;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgb(7 11 20 / 0.3);
  transform: translate(calc(-50% + 50% * sin(var(--a))), calc(-50% - 50% * cos(var(--a))));
  transition: opacity 0.3s ease;
}
.ql-diagram--dark .ql-diagram__label { text-shadow: none; }
.ql-diagram.has-active .ql-diagram__point:not(.is-active) .ql-diagram__label { opacity: 0.55; }
.ql-diagram__center {
  position: absolute;
  inset: 17%;
  display: grid;
  place-items: center;
  text-align: center;
}
.ql-diagram__pane {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ql-ease);
}
.ql-diagram__pane.is-active { opacity: 1; transform: none; }
.ql-diagram__title { margin: 0; font-family: var(--ff-heading); font-weight: 300; font-size: clamp(34px, 4vw, 58px); line-height: 0.95; letter-spacing: -0.04em; }
.ql-diagram__kicker { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; }
.ql-diagram__text { margin: 0; max-width: 22ch; font-size: 15px; line-height: 1.45; color: var(--ql-dia-soft); text-wrap: balance; }
/* Hint tag: tells visitors the image is interactive */
.ql-diagram__hint {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgb(7 11 20 / 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.ql-diagram__hint-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: ql-ping 3s ease-out infinite; }
.ql-diagram__hint-touch { display: none; }
@media (hover: none) {
  .ql-diagram__hint-hover { display: none; }
  .ql-diagram__hint-touch { display: inline; }
}
.ql-diagram--dark .ql-diagram__hint { border-color: rgb(28 47 86 / 0.15); background: rgb(255 255 255 / 0.6); }
@keyframes ql-ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ql-dia-fg) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--ql-dia-fg) 0%, transparent); }
}

/* =========================================================
   QL Steps — label · large figure · text, centered by default
   ========================================================= */
.ql-steps { isolation: isolate; overflow: clip; }
.ql-steps__head { display: grid; gap: 16px; }
.ql-steps--center .ql-steps__head { justify-items: center; max-width: 760px; margin-inline: auto; text-align: center; }
.ql-steps--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-steps__list {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--ql-cols, 4), minmax(0, 1fr));
}
.ql-step { display: grid; justify-items: center; align-content: start; gap: 16px; padding: 4px 32px; text-align: center; }
.ql-step + .ql-step { border-left: 1px solid var(--border-subtle); }
.ql-step__label { margin: 0; font-family: var(--ff-body); font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: 0.01em; color: var(--clr-primary); }
.ql-step__value {
  font-family: var(--ff-heading);
  font-weight: 300;
  font-size: clamp(72px, 7.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--clr-primary);
  font-variant-numeric: lining-nums tabular-nums;
}
.ql-step__text { margin: 0; max-width: 26ch; font-size: var(--fs-small); line-height: 1.55; color: var(--clr-muted); }
.ql-steps--left .ql-steps__head { max-width: 720px; }
.ql-steps--left .ql-step { justify-items: start; text-align: left; }
.ql-steps--left .ql-step:first-child { padding-left: 0; }
.ql-steps > .ql-container > .ql-actions { justify-content: center; margin-top: 56px; }

/* Image with clickable steps: the image on the left changes with the step picked on the right */
.ql-steps__tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 56px;
  margin-top: 64px;
}
.ql-steps__stage {
  position: relative;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  border-radius: var(--ql-radius);
  background: var(--clr-light);
  isolation: isolate;
}
.ql-steps__pane { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.5s ease, transform 1s var(--ql-ease); }
.ql-steps__pane.is-active { z-index: 1; opacity: 1; transform: none; }
.ql-steps__pane .ql-disc { display: none; }
.ql-steps__pane:nth-child(4n+2) .ql-media__placeholder { filter: hue-rotate(50deg); }
.ql-steps__pane:nth-child(4n+3) .ql-media__placeholder { filter: hue-rotate(120deg); }
.ql-steps__pane:nth-child(4n+4) .ql-media__placeholder { filter: hue-rotate(210deg); }
.ql-steps__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--clr-primary); pointer-events: none; }
.ql-steps__ph-num { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; opacity: 0.6; }
.ql-steps__ph-label { font-family: var(--ff-heading); font-size: clamp(44px, 5.6vw, 84px); font-weight: 300; line-height: 1; letter-spacing: -0.04em; }
.ql-steps__tablist { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ql-steps__tab {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  width: 100%;
  padding: 20px 24px 20px 20px;
  border: 0;
  border-left: 2px solid var(--border-subtle);
  border-radius: 0 16px 16px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.ql-steps__tab:hover { background: rgb(28 47 86 / 0.035); }
.ql-steps__tab.is-active { border-left-color: var(--clr-primary); background: var(--clr-light); }
.ql-steps__tab:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-steps__num { padding-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--clr-muted); font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.ql-steps__copy { display: grid; gap: 6px; }
.ql-steps__label { font-family: var(--ff-heading); font-size: 20px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--clr-primary); }
.ql-steps__text { font-size: var(--fs-small); line-height: 1.55; color: var(--clr-muted); transition: color 0.3s ease; }
.ql-steps__tab.is-active :is(.ql-steps__num, .ql-steps__text) { color: var(--clr-primary); }
.ql-theme--light .ql-steps__tab { border-left-color: rgba(255, 255, 255, 0.2); }
.ql-theme--light .ql-steps__tab.is-active { border-left-color: var(--clr-white); background: rgba(255, 255, 255, 0.08); }
.ql-theme--light :is(.ql-steps__label, .ql-steps__tab.is-active .ql-steps__num, .ql-steps__tab.is-active .ql-steps__text) { color: var(--clr-white); }
.ql-theme--light :is(.ql-steps__num, .ql-steps__text) { color: rgba(255, 255, 255, 0.66); }
.ql-steps--left > .ql-container > .ql-actions { justify-content: flex-start; }
.ql-theme--light .ql-step + .ql-step { border-left-color: rgba(255, 255, 255, 0.18); }
.ql-theme--light :is(.ql-step__label, .ql-step__value) { color: var(--clr-white); }
.ql-theme--light .ql-step__text { color: rgba(255, 255, 255, 0.72); }
/* Soft holographic glow behind the figures — centered in the section and faded to nothing
   inside its own box, so it never meets the section edges */
.ql-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(1000px, 90vw);
  height: 64%;
  background: conic-gradient(from 90deg, #dcd6fb, #cfe6f7, #d6efe2, #f8dccb, #dcd6fb);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 100%);
  filter: blur(24px);
  opacity: 0.7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* =========================================================
   QL Products — design system → ProductCard (rail or grid)
   ========================================================= */
.ql-products__grid {
  display: grid;
  grid-template-columns: repeat(var(--ql-cols, 4), minmax(0, 1fr));
  gap: 36px 24px;
  margin-top: 40px;
}
.ql-products--rail .ql-products__grid {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--ql-cols, 4) - 1) * 24px) / var(--ql-cols, 4));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ql-products--rail .ql-products__grid::-webkit-scrollbar { display: none; }
.ql-products--rail .ql-card { scroll-snap-align: start; }
.ql-rail-nav { display: flex; gap: 8px; }
.ql-rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(28, 47, 86, 0.22);
  border-radius: 50%;
  background: transparent;
  color: var(--clr-primary);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.ql-rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ql-rail-btn:hover:not(:disabled) { background: var(--clr-primary); border-color: var(--clr-primary); color: var(--clr-white); }
.ql-rail-btn:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-rail-btn:disabled { opacity: 0.3; cursor: default; }

.ql-card { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; min-width: 0; }
.ql-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--card-radius, 16px);
  overflow: hidden;
  background: var(--clr-light);
}
.ql-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ql-ease);
}
.ql-card:hover .ql-card__img { transform: scale(1.05); }
.ql-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--clr-white);
  color: var(--clr-primary);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.ql-card__meta { display: grid; gap: 6px; align-content: start; }
.ql-card__title { font-size: 18px; line-height: 1.3; letter-spacing: -0.005em; }
.ql-card__title a { color: var(--clr-primary); text-decoration: none; }
.ql-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ql-card__price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-weight: 500; color: var(--clr-primary); font-variant-numeric: tabular-nums; }
.ql-price--sub { font-size: var(--fs-small); font-weight: 400; color: var(--clr-muted); }
.ql-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.ql-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: 1.5px solid var(--clr-primary);
  border-radius: var(--btn-radius, 999px);
  background: var(--clr-primary);
  color: var(--clr-white);
  font: 500 14px/1 var(--ff-body);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ql-card__add:hover { background: var(--clr-dark); border-color: var(--clr-dark); opacity: 1; }
.ql-card__add:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; }
.ql-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  color: var(--clr-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.ql-card__more::after { content: "→"; transition: transform 0.2s var(--ql-ease); }
.ql-card__more:hover::after { transform: translateX(3px); }
.ql-card__more:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; border-radius: 4px; }

/* Centered: the head centers, and a short row of grid cards sits in the middle instead of leaving a gap */
.ql-products--center .ql-section-head { flex-direction: column; align-items: center; text-align: center; }
.ql-products--center .ql-section-head__copy { justify-items: center; }
.ql-products--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-products--center.ql-products--grid .ql-products__grid { display: flex; flex-wrap: wrap; justify-content: center; }
.ql-products--center.ql-products--grid .ql-products__grid > * { width: calc((100% - (var(--ql-cols, 4) - 1) * 24px) / var(--ql-cols, 4)); }

/* =========================================================
   QL Page header — content page opening with jump chips
   ========================================================= */
.ql-page-head__copy { display: grid; gap: 14px; max-width: 760px; }
.ql-page-head--center .ql-page-head__copy { justify-items: center; margin-inline: auto; text-align: center; }
.ql-page-head--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-page-head .ql-heading h1 { margin: 0; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; }
.ql-page-head__jumps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.ql-page-head__search { margin-top: 28px; }
.ql-page-head--center .ql-page-head__search { margin-inline: auto; }
.ql-page-head--center .ql-page-head__jumps { justify-content: center; }

/* =========================================================
   QL Columns — side-by-side text columns or cream cards
   ========================================================= */
.ql-columns__head { display: grid; gap: 14px; max-width: 760px; }
.ql-columns--center .ql-columns__head { justify-items: center; margin-inline: auto; text-align: center; }
.ql-columns--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-columns__grid { display: grid; grid-template-columns: repeat(var(--ql-cols, 2), minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.ql-columns__head:empty + .ql-columns__grid { margin-top: 0; }
.ql-column { display: grid; align-content: start; gap: 14px; }
.ql-columns--cards .ql-column { padding: 32px; border-radius: var(--card-radius, 16px); background: var(--clr-light); }
.ql-column__title { margin: 0; font-family: var(--ff-heading); font-size: 21px; font-weight: var(--fw-heading, 500); line-height: 1.25; letter-spacing: -0.01em; color: var(--clr-primary); }
.ql-column__text { font-size: 16px; line-height: 1.6; color: var(--clr-body); }
.ql-column__text p { margin: 0; }
.ql-column__text p + p { margin-top: 0.7em; }
.ql-column__text ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ql-column__text ul li { position: relative; padding-left: 22px; }
.ql-column__text ul li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--clr-secondary); }
.ql-column__text a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.ql-columns > .ql-container > .ql-actions { margin-top: 40px; }
.ql-columns--center > .ql-container > .ql-actions { justify-content: center; }

/* =========================================================
   QL Document — policies, agreements and disclosures
   ========================================================= */
.ql-doc__head { display: grid; gap: 18px; max-width: 760px; padding-bottom: 32px; border-bottom: 1px solid var(--border-subtle); }
.ql-doc__title { margin: 0; font-family: var(--ff-heading); font-weight: var(--fw-heading, 500); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; color: var(--clr-primary); text-wrap: balance; }
.ql-doc__intro { font-size: 17px; line-height: 1.6; color: var(--clr-body); }
.ql-doc__intro p { margin: 0; }
.ql-doc__intro p + p { margin-top: 0.7em; }
.ql-doc__layout { margin-top: 48px; }
.ql-doc.has-toc .ql-doc__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.ql-doc__toc { position: sticky; top: 108px; max-height: calc(100vh - 140px); overflow-y: auto; padding-right: 8px; }
.ql-doc__toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clr-muted); list-style: none; }
.ql-doc__toc-title::-webkit-details-marker { display: none; }
@media (min-width: 992px) { .ql-doc__toc-title { pointer-events: none; } }
.ql-doc__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ql-doc__toc a { display: block; padding: 6px 0; color: var(--clr-body); font-size: 14px; line-height: 1.4; text-decoration: none; }
.ql-doc__toc a:hover { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.ql-doc__body { max-width: 72ch; }
.ql-doc__part { scroll-margin-top: 96px; font-size: 16px; line-height: 1.7; color: var(--clr-body); }
.ql-doc__part + .ql-doc__part { margin-top: 48px; }
.ql-doc__part h2 { margin: 0 0 16px; font-family: var(--ff-heading); font-size: 24px; font-weight: var(--fw-heading, 500); line-height: 1.25; letter-spacing: -0.015em; color: var(--clr-primary); }
.ql-doc__part h3 { margin: 28px 0 10px; font-family: var(--ff-heading); font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--clr-primary); }
.ql-doc__part h4 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; color: var(--clr-primary); }
.ql-doc__part p { margin: 0 0 14px; }
.ql-doc__part ul, .ql-doc__part ol { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.ql-doc__part ul { list-style: disc; }
.ql-doc__part ol { list-style: decimal; }
.ql-doc__part li::marker { color: var(--clr-muted); }
.ql-doc__part a, .ql-doc__intro a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.ql-doc__part table { width: 100%; margin: 0 0 16px; border-collapse: collapse; font-size: 15px; }
/* Wide tables scroll sideways instead of running off narrow screens */
@media (max-width: 767px) { .ql-doc__part table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; } }
.ql-doc__part :is(th, td) { padding: 10px 12px; border: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.ql-doc__part th { background: var(--clr-light); color: var(--clr-primary); font-weight: 600; }

/* =========================================================
   QL Cart — full cart page, rendered from the FairShare SDK
   ========================================================= */
.ql-cart__title { margin: 0 0 32px; font-family: var(--ff-heading); font-weight: var(--fw-heading, 500); font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; color: var(--clr-primary); }
.ql-cart__status { color: var(--clr-muted); }
.ql-cart__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.ql-cart.is-busy .ql-cart__layout { opacity: 0.6; pointer-events: none; transition: opacity 0.2s ease; }
.ql-cart__items { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-subtle); }
.ql-cart__item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--border-subtle); }
.ql-cart__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--clr-light); }
.ql-cart__media img { width: 100%; height: 100%; object-fit: cover; }
.ql-cart__info { display: grid; gap: 8px; min-width: 0; }
.ql-cart__name { font-family: var(--ff-heading); font-size: 19px; font-weight: 500; line-height: 1.3; color: var(--clr-primary); text-decoration: none; }
.ql-cart__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ql-cart__each { margin: 0; font-size: 14px; color: var(--clr-muted); font-variant-numeric: tabular-nums; }
.ql-cart__autoship { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; width: fit-content; padding: 8px 12px; border: 1.5px solid rgba(28, 47, 86, 0.16); border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--clr-primary); cursor: pointer; }
.ql-cart__autoship:has(input:checked) { border-color: var(--clr-primary); background: var(--clr-white); }
.ql-cart [hidden] { display: none !important; }
.ql-cart__autoship input {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid rgba(28, 47, 86, 0.4);
  border-radius: 5px;
  background: var(--clr-white) center / 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.ql-cart__autoship input:checked {
  border-color: var(--clr-primary);
  background-color: var(--clr-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ql-cart__autoship input:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-cart__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.ql-cart__qty { height: 44px; grid-template-columns: 38px 34px 38px; }
.ql-cart__count { text-align: center; font-weight: 600; color: var(--clr-primary); font-variant-numeric: tabular-nums; }
.ql-cart__remove { padding: 4px 0; border: 0; background: none; color: var(--clr-muted); font: 500 14px/1 var(--ff-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ql-cart__remove:hover { color: var(--clr-primary); }
.ql-cart__line { margin: 0; font-size: 17px; font-weight: 600; color: var(--clr-primary); font-variant-numeric: tabular-nums; }
.ql-cart__summary { position: sticky; top: 108px; display: grid; gap: 20px; padding: 28px; border-radius: var(--card-radius, 16px); background: var(--clr-light); }
.ql-cart__summary-title { margin: 0; font-family: var(--ff-heading); font-size: 21px; font-weight: 500; color: var(--clr-primary); }
.ql-cart__totals { display: grid; gap: 12px; margin: 0; }
.ql-cart__totals > div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--clr-body); }
.ql-cart__totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ql-cart__totals .is-total { padding-top: 14px; border-top: 1px solid var(--border-subtle); font-size: 18px; font-weight: 600; color: var(--clr-primary); }
.ql-cart__checkout { width: 100%; }
.ql-cart__trust { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ql-cart__trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--clr-body); }
.ql-cart__trust .ql-icon { width: 20px; height: 20px; color: var(--clr-primary); }
.ql-cart__error { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #8a1c12; font-size: 14px; }
.ql-cart__empty { display: grid; justify-items: start; gap: 10px; padding: 40px; border-radius: var(--card-radius, 16px); background: var(--clr-light); }
.ql-cart__empty-title { margin: 0; font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading, 500); color: var(--clr-primary); }
.ql-cart__empty-text { margin: 0 0 8px; color: var(--clr-body); }
.ql-cart__empty .ql-actions { margin-top: 0; }

/* =========================================================
   QL Quiz — "Find your QuantaGram" pop-up
   ========================================================= */
.ql-quiz {
  width: min(720px, calc(100vw - 32px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--clr-white);
  color: var(--clr-body);
  box-shadow: 0 30px 80px rgba(13, 22, 41, 0.28);
  overflow: hidden;
}
.ql-quiz[open] { display: flex; animation: ql-quiz-in 0.35s var(--ql-ease) both; }
.ql-quiz::backdrop { background: rgba(13, 22, 41, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes ql-quiz-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.ql-quiz__panel { position: relative; display: grid; align-content: start; gap: 24px; width: 100%; padding: 28px 36px 32px; overflow-y: auto; }
.ql-quiz__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  z-index: -1;
  background: var(--grad-holo);
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.ql-quiz__panel { isolation: isolate; }
.ql-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ql-quiz__eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clr-primary); }
.ql-quiz__close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.7); color: var(--clr-primary); cursor: pointer; }
.ql-quiz__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ql-quiz__close:hover { background: var(--clr-white); }
.ql-quiz__close:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-quiz__progress { height: 4px; border-radius: 999px; background: rgba(28, 47, 86, 0.1); overflow: hidden; }
.ql-quiz__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--clr-primary); transition: width 0.4s var(--ql-ease); }
.ql-quiz__intro, .ql-quiz__step, .ql-quiz__results { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ql-quiz [hidden] { display: none !important; }
.ql-quiz__intro .ql-btn { justify-self: start; margin-top: 8px; }
.ql-quiz__q { margin: 0; padding: 0; font-family: var(--ff-heading); font-size: clamp(26px, 3.4vw, 34px); font-weight: var(--fw-heading, 500); line-height: 1.15; letter-spacing: -0.02em; color: var(--clr-primary); text-wrap: balance; }
.ql-quiz__q:focus { outline: none; }
.ql-quiz__help { margin: 0; color: var(--clr-muted); }
.ql-quiz__answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.ql-quiz__answer {
  min-height: 64px;
  padding: 16px 18px;
  border: 1.5px solid rgba(28, 47, 86, 0.16);
  border-radius: 16px;
  background: var(--clr-white);
  color: var(--clr-primary);
  font: 500 16px/1.35 var(--ff-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--ql-ease);
}
.ql-quiz__answer:hover { border-color: var(--clr-primary); background: var(--clr-light); }
.ql-quiz__answer:active { transform: scale(0.98); }
.ql-quiz__answer:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-quiz__picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.ql-quiz__picks[data-count="1"] { grid-template-columns: minmax(0, 300px); }
.ql-quiz__picks[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Reason and card share rows across picks (subgrid), so the cards line up however long each reason runs. */
.ql-quiz__pick { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-content: start; row-gap: 10px; min-width: 0; }
.ql-quiz__reason { margin: 0; font-size: 14px; line-height: 1.45; color: var(--clr-body); }
.ql-quiz__pick .ql-card__title { font-size: 16px; }
.ql-quiz__pick .ql-card__actions { gap: 8px 14px; }
.ql-quiz__pick .ql-card__add { height: 40px; padding: 0 16px; font-size: 13px; }
.ql-quiz__after { margin: 6px 0 0; font-size: 15px; color: var(--clr-body); }
.ql-quiz__after a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 3px; }
.ql-quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.ql-quiz__back { padding: 6px 0; border: 0; background: none; color: var(--clr-primary); font: 500 15px/1 var(--ff-body); cursor: pointer; }
.ql-quiz__back:hover { text-decoration: underline; text-underline-offset: 3px; }
.ql-quiz__count { font-size: 13px; color: var(--clr-muted); }
html.ql-quiz-open { overflow: hidden; }

/* =========================================================
   QL Catalog — Shop all and collection pages
   ========================================================= */
.ql-catalog__head { display: grid; gap: 14px; max-width: 760px; }
.ql-catalog__title {
  margin: 0;
  font-family: var(--ff-heading);
  font-weight: var(--fw-heading, 500);
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--clr-primary);
  text-wrap: balance;
}
.ql-catalog__text { margin: 0; max-width: 56ch; font-size: var(--fs-lead); line-height: 1.55; color: var(--clr-body); text-wrap: pretty; }
.ql-catalog__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.ql-catalog__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ql-catalog__tab, .ql-chip {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid rgba(28, 47, 86, 0.16);
  border-radius: 999px;
  color: var(--clr-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.ql-catalog__tab:hover, .ql-chip:hover { border-color: var(--clr-primary); text-decoration: none; }
.ql-catalog__tab.is-active { border-color: var(--clr-primary); background: var(--clr-primary); color: var(--clr-white); }
.ql-catalog__tab:focus-visible, .ql-chip:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; }
.ql-catalog__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--clr-muted); }
.ql-catalog__sort select {
  height: 38px;
  padding: 0 38px 0 16px;
  border: 1.5px solid rgba(28, 47, 86, 0.16);
  border-radius: 999px;
  background: var(--clr-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231C2F56' stroke-width='1.5'/%3E%3C/svg%3E") right 15px center / 11px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  color: var(--clr-primary);
  font: 500 14px/1 var(--ff-body);
  cursor: pointer;
}
.ql-catalog__sort select:focus-visible { outline: 2px solid var(--clr-secondary); outline-offset: 3px; }
.ql-catalog__apply { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--clr-primary); color: var(--clr-white); font: 500 14px/1 var(--ff-body); }
.ql-catalog__count { margin: 20px 0 28px; font-size: var(--fs-small); color: var(--clr-muted); }
.ql-catalog__search { display: flex; gap: 10px; max-width: 560px; margin-top: 6px; }
.ql-catalog__search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 18px;
  border: 1.5px solid rgba(28, 47, 86, 0.16);
  border-radius: 999px;
  background: var(--clr-white);
  color: var(--clr-primary);
  font: 400 16px/1 var(--ff-body);
}
.ql-catalog__search input:focus { outline: 2px solid var(--clr-secondary); outline-offset: 2px; }
.ql-catalog__empty { display: grid; justify-items: start; gap: 10px; padding: 40px; border-radius: var(--card-radius, 16px); background: var(--clr-light); }
.ql-catalog__empty-title { margin: 0; font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading, 500); line-height: 1.2; color: var(--clr-primary); }
.ql-catalog__empty-text { margin: 0 0 8px; color: var(--clr-body); }
.ql-catalog__group { margin-top: 56px; }
.ql-catalog__group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.ql-catalog__group-title { margin: 0; font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading, 500); line-height: 1.15; letter-spacing: -0.02em; color: var(--clr-primary); }
.ql-catalog__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.ql-catalog__grid--flat { margin-top: 32px; }
.ql-catalog__promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 48px;
  margin-top: 64px;
  padding: 44px 48px;
  border-radius: var(--ql-radius);
}
.ql-catalog__promo-copy { display: grid; gap: 8px; }
.ql-catalog__promo-title { margin: 0; font-family: var(--ff-heading); font-size: var(--fs-h3); font-weight: var(--fw-heading, 500); line-height: 1.15; letter-spacing: -0.02em; color: var(--clr-primary); }
.ql-catalog__promo-text { margin: 0; max-width: 56ch; color: var(--clr-body); }

/* =========================================================
   QL Slides — expanding category slides
   ========================================================= */
.ql-slides { --ql-slide-strip: 84px; --ql-slide-gap: 12px; }
.ql-slides__head { display: grid; gap: 16px; }
.ql-slides--center .ql-slides__head { justify-items: center; max-width: 760px; margin-inline: auto; text-align: center; }
.ql-slides--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-slides__track {
  display: flex;
  gap: var(--ql-slide-gap);
  height: var(--ql-slides-h, 600px);
  margin-top: 48px;
  container-type: inline-size;
}
.ql-slide {
  position: relative;
  flex: 0 0 var(--ql-slide-strip);
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ql-radius);
  background: var(--clr-dark);
  color: var(--clr-white);
  transition: flex-grow 0.8s var(--ql-ease), flex-basis 0.8s var(--ql-ease);
}
.ql-slide.is-open { flex: 1 1 0%; }
.ql-slide__media { position: absolute; inset: 0; z-index: -2; }
/* The picture keeps the open slide's width, so opening reveals it rather than rescaling it */
.ql-slide__img,
.ql-slide__placeholder {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, calc(100cqw - (var(--ql-slides-n, 5) - 1) * (var(--ql-slide-strip) + var(--ql-slide-gap))));
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
}
.ql-slide__placeholder { padding-bottom: 0; }
.ql-slide:nth-child(5n + 2) .ql-slide__placeholder { filter: hue-rotate(-18deg); }
.ql-slide:nth-child(5n + 3) .ql-slide__placeholder { filter: hue-rotate(28deg) saturate(0.85); }
.ql-slide:nth-child(5n + 4) .ql-slide__placeholder { filter: hue-rotate(-40deg) saturate(0.9); }
.ql-slide:nth-child(5n + 5) .ql-slide__placeholder { filter: hue-rotate(60deg) saturate(0.8); }
.ql-slide__placeholder .ql-disc { width: 30%; box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.06), 0 0 90px rgba(222, 238, 247, 0.35); }
.ql-slide__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(7 11 20 / 0.3) 0%, rgb(7 11 20 / 0) 26%, rgb(7 11 20 / 0) 44%, rgb(7 11 20 / 0.72) 100%);
}
.ql-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(7 11 20 / 0.34);
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.ql-slide.is-open::after { opacity: 0; }
.ql-slide:not(.is-open):hover::after { opacity: 0.45; }

.ql-slide__toggle {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--clr-white);
  font: inherit;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}
.ql-slide.is-open .ql-slide__toggle { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
.ql-slide__toggle:focus-visible { outline: 2px solid var(--clr-white); outline-offset: -5px; }
.ql-slide__plus {
  order: -1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  transition: transform 0.35s var(--ql-ease), background-color 0.25s ease;
}
.ql-slide__plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ql-slide__toggle:hover .ql-slide__plus { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }
.ql-slide__tab {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ql-slide__content { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.ql-slide.is-open .ql-slide__content { opacity: 1; transition: opacity 0.5s ease 0.35s; }
.ql-slide.is-open .ql-slide__content > * { pointer-events: auto; }
.ql-slide__cta {
  position: absolute;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgb(7 11 20 / 0.34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--clr-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ql-slide__cta:hover { background: var(--clr-white); color: var(--clr-primary); }
.ql-slide__cta:focus-visible { outline: 2px solid var(--clr-white); outline-offset: 3px; }
.ql-slide__body {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  gap: 12px;
  width: min(600px, 100%);
  padding: 36px;
  transform: translateY(14px);
  transition: transform 0.6s var(--ql-ease);
}
.ql-slide.is-open .ql-slide__body { transform: none; transition-delay: 0.3s; }
.ql-slide__title { margin: 0; font-family: var(--ff-heading); font-weight: var(--fw-heading, 500); font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.03em; color: var(--clr-white); }
.ql-slide__title a { color: inherit; text-decoration: none; }
.ql-slide__title a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.ql-slide__text { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.ql-slides__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* =========================================================
   QL CTA
   ========================================================= */
.ql-cta__panel {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 88px 64px;
  border-radius: 28px;
  background-color: var(--clr-light);
  overflow: hidden;
}
.ql-cta__panel.ql-holo { background-color: transparent; }
.ql-cta--center .ql-cta__panel { justify-items: center; text-align: center; }
.ql-cta--center .ql-actions { justify-content: center; }
.ql-cta--center .ql-subhead :is(p, li) { margin-inline: auto; }
.ql-cta--center .ql-fineprint { margin-inline: auto; }
.ql-cta__panel .ql-fineprint { margin-top: 12px; }

/* =========================================================
   Motion — entrance on scroll (CSS scroll timelines; no JS).
   Browsers without support show everything immediately.
   ========================================================= */
@keyframes ql-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ql-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes ql-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ql-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ql-section-head, .ql-steps__head, .ql-step, .ql-steps__tabs, .ql-split__media, .ql-split__copy,
    .ql-tiles__grid, .ql-products__grid, .ql-slides__head, .ql-slides__track, .ql-cta__panel {
      animation: ql-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  .ql-split > .ql-container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ql-split--media-right .ql-split__media { order: 0; }
  .ql-split__copy { max-width: none; }
  .ql-split.ql-split--bleed > .ql-container { grid-template-columns: minmax(0, 1fr); }
  .ql-split--bleed .ql-split__copy { padding-inline: var(--ql-gutter-x) !important; justify-self: stretch; }
  .ql-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-products--center.ql-products--grid .ql-products__grid > * { width: calc((100% - 24px) / 2); }
  .ql-products--rail .ql-products__grid { grid-auto-columns: 42%; }
  .ql-steps__tabs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 48px; }
  .ql-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .ql-cart__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ql-cart__summary { position: static; }
  .ql-doc.has-toc .ql-doc__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ql-doc__toc { position: static; max-height: none; padding: 18px 24px; border-radius: var(--card-radius, 16px); background: var(--clr-light); }
  .ql-doc__toc-title { display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; color: var(--clr-primary); }
  .ql-doc__toc-title::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
  .ql-doc__toc[open] .ql-doc__toc-title { margin-bottom: 12px; }
  .ql-doc__toc[open] .ql-doc__toc-title::after { content: "−"; }
  .ql-doc__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .ql-columns__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ql-steps__tab { padding: 16px 18px 16px 16px; }
  .ql-steps__label { font-size: 18px; }
  .ql-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .ql-step:nth-child(odd) { border-left: 0; }
  .ql-cta__panel { padding: 64px 32px; }
  .ql-press__row { gap: 32px; }
  .ql-slides { --ql-slide-strip: 64px; --ql-slide-gap: 10px; }
  .ql-slides__track { height: min(var(--ql-slides-h, 600px), 540px); }
  .ql-slide__title { font-size: var(--fs-h3); }
  .ql-slide__body { padding: 28px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  /* Hero: image above copy by default */
  .ql-hero--m-stack:not(.is-noimage) { display: block; }
  .ql-hero--m-stack:not(.is-noimage) .ql-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 5; }
  .ql-hero--m-stack:not(.is-noimage)::before { display: none; }
  .ql-hero--m-stack:not(.is-noimage) > .ql-container { min-height: 0; padding-top: 32px; padding-bottom: 24px; }
  .ql-hero--m-stack.ql-theme--light:not(.is-noimage) { background-color: var(--clr-dark); }
  .ql-hero--m-stack.ql-theme--light:not(.is-noimage) > .ql-container { padding-bottom: 48px; }
  .ql-hero > .ql-container { padding-top: 56px; padding-bottom: 56px; }
  .ql-hero--m-overlay > .ql-container { justify-content: flex-end; align-items: flex-start; text-align: left; padding-top: 48px; padding-bottom: 40px; }
  .ql-hero--m-overlay:not(.is-noimage) { --ql-hero-h: max(560px, 84svh); }
  .ql-hero--m-overlay:not(.is-noimage)::before {
    opacity: max(var(--ql-hero-overlay, 0), 0.9);
    background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0) 66%) !important;
  }
  .ql-hero--m-overlay.ql-theme--light:not(.is-noimage)::before { background: linear-gradient(0deg, rgba(7, 11, 20, 0.88) 0%, rgba(7, 11, 20, 0.6) 34%, rgba(7, 11, 20, 0) 70%) !important; }
  .ql-hero--m-overlay .ql-hero__copy { justify-items: start; }
  .ql-hero--m-overlay .ql-actions { justify-content: flex-start; }
  .ql-hero__copy { gap: 16px; }
  .ql-hero__mark { top: 34%; width: 56vw; }

  .ql-press__row { flex-direction: column; gap: 14px; }
  .ql-press__viewport { width: 100%; }
  .ql-press__name { font-size: 24px; }
  .ql-press__logo { height: calc(var(--ql-press-logo-h, 28px) * var(--s, 1) * 0.8); }
  .ql-press__group { gap: 48px; padding-right: 48px; }

  /* Phones: tiles and every product list (rail or grid) become a swipe row */
  .ql-tiles__grid,
  .ql-products__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: calc(var(--ql-gutter-x) * -1);
    padding-right: var(--ql-gutter-x);
    gap: 12px;
  }
  .ql-tiles__grid::-webkit-scrollbar, .ql-products__grid::-webkit-scrollbar { display: none; }
  .ql-tile, .ql-products .ql-card { scroll-snap-align: start; }
  .ql-products__grid { grid-auto-columns: 72%; gap: 16px; }
  .ql-products--center.ql-products--grid .ql-products__grid { display: grid; justify-content: start; }
  .ql-products--center.ql-products--grid .ql-products__grid > * { width: auto; }
  .ql-rail-nav { display: none; }
  .ql-card__actions { gap: 8px 14px; }
  .ql-card__add { height: 40px; padding: 0 16px; font-size: 13px; }
  .ql-card__more { font-size: 13px; }

  .ql-steps__list { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 48px; }
  .ql-step { padding: 0; }
  .ql-step + .ql-step { border-left: 0; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
  .ql-glow::before { height: 80%; }
  .ql-steps__tabs { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 36px; }
  /* Catalog on phones: two cards a row, Add to cart full width (title and image already link) */
  .ql-catalog__bar { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
  .ql-page-head__jumps { flex-wrap: nowrap; max-width: calc(100% + var(--ql-gutter-x) * 2); overflow-x: auto; margin: 24px calc(var(--ql-gutter-x) * -1) 0; padding-inline: var(--ql-gutter-x); scrollbar-width: none; }
  .ql-page-head__jumps::-webkit-scrollbar { display: none; }
  .ql-tile__patch-img { filter: var(--ql-ring-sm, var(--ql-ring, none)); }
  .ql-quiz { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .ql-quiz__panel { padding: 22px 20px 28px; gap: 20px; }
  .ql-quiz__answers { grid-template-columns: minmax(0, 1fr); }
  .ql-quiz__answer { min-height: 56px; padding: 14px 16px; }
  /* Results on phones: a compact list (thumbnail left), so one to three picks fit the sheet */
  .ql-quiz__picks, .ql-quiz__picks[data-count] { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; }
  .ql-quiz__pick {
    grid-row: auto;
    grid-template-rows: none;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-areas: "media meta" "media reason" "media actions";
    column-gap: 16px;
    row-gap: 6px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .ql-quiz__pick:last-child { border-bottom: 0; padding-bottom: 0; }
  .ql-quiz__pick .ql-card { display: contents; }
  .ql-quiz__pick .ql-card__media { grid-area: media; align-self: start; aspect-ratio: 1; border-radius: 14px; }
  .ql-quiz__pick .ql-badge { display: none; }
  .ql-quiz__pick .ql-card__meta { grid-area: meta; gap: 2px; }
  .ql-quiz__pick .ql-card__price { font-size: 14px; }
  .ql-quiz__pick .ql-quiz__reason { grid-area: reason; font-size: 13px; }
  .ql-quiz__pick .ql-card__actions { grid-area: actions; margin-top: 4px; }
  .ql-quiz__pick .ql-card__more { display: none; }
  .ql-cart__title { margin-bottom: 20px; }
  .ql-cart__item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .ql-cart__line { grid-column: 2; }
  .ql-cart__name { font-size: 17px; }
  .ql-cart__summary { padding: 22px; }
  .ql-cart__empty { padding: 28px 22px; }
  .ql-columns__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 32px; }
  .ql-columns--cards .ql-column { padding: 24px; }
  .ql-doc__toc ol { grid-template-columns: minmax(0, 1fr); }
  .ql-doc__part + .ql-doc__part { margin-top: 36px; }
  .ql-doc__part h2 { font-size: 21px; }
  /* One swipeable row, edge to edge; the max-width keeps it from growing to fit every tab */
  .ql-catalog__tabs { flex-wrap: nowrap; max-width: calc(100% + var(--ql-gutter-x) * 2); overflow-x: auto; margin-inline: calc(var(--ql-gutter-x) * -1); padding-inline: var(--ql-gutter-x); scrollbar-width: none; }
  .ql-catalog__sort { justify-content: flex-end; }
  .ql-catalog__tabs::-webkit-scrollbar { display: none; }
  .ql-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .ql-catalog .ql-card { gap: 12px; }
  .ql-catalog .ql-card__title { font-size: 15px; }
  .ql-catalog .ql-card__more { display: none; }
  .ql-catalog .ql-card__add { width: 100%; padding: 0 10px; }
  .ql-catalog .ql-badge { top: 8px; left: 8px; padding: 6px 9px; font-size: 11px; }
  .ql-catalog__group { margin-top: 44px; }
  .ql-catalog__promo { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; margin-top: 44px; }
  .ql-steps__tablist { gap: 4px; }
  .ql-steps__tab { grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px 16px 14px 14px; }
  .ql-steps__copy { gap: 4px; }
  .ql-steps__label { font-size: 17px; }
  /* Exactly four steps: a 2 × 2 grid instead of one long column */
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) > .ql-step { padding: 28px 12px; border-top: 0; border-left: 0; }
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) > .ql-step:nth-child(-n+2) { padding-top: 0; }
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) > .ql-step:nth-child(n+3) { padding-bottom: 0; border-top: 1px solid var(--border-subtle); }
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) > .ql-step:nth-child(even) { border-left: 1px solid var(--border-subtle); }
  .ql-steps__list:has(> .ql-step:nth-child(4):last-child) .ql-step__value { font-size: 60px; }

  .ql-split > .ql-container { gap: 32px; }
  /* Diagram on phones: a square image and a tighter circle so every label fits */
  .ql-split--has-diagram .ql-split__media .ql-media { aspect-ratio: 1 / 1 !important; }
  .ql-diagram__ring { top: 45%; height: min(var(--ql-dia, 62%), 54%); }  /* a little high, to leave the corner hint room */
  .ql-diagram__point { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .ql-diagram__dot { width: 11px; height: 11px; }
  .ql-diagram__label { --gap: 16px; max-width: 10ch; font-size: 10px; letter-spacing: 0.1em; }
  .ql-diagram__center { inset: 13%; }
  .ql-diagram__pane { gap: 6px; }
  .ql-diagram__title { font-size: 30px; }
  .ql-diagram__kicker { font-size: 10px; }
  .ql-diagram__text { max-width: 16ch; font-size: 12.5px; line-height: 1.35; }
  .ql-diagram__hint { right: 12px; bottom: 12px; gap: 8px; padding: 8px 12px 8px 10px; font-size: 12px; }
  .ql-cta__panel { padding: 48px 20px; border-radius: 20px; }
  .ql-section-head { align-items: flex-start; }

  /* Slides stack into an accordion of bars */
  .ql-slides__track { flex-direction: column; height: auto; gap: 10px; margin-top: 32px; container-type: normal; }
  .ql-slide { flex: none; height: 76px; transition: height 0.7s var(--ql-ease); }
  .ql-slide.is-open { flex: none; height: var(--ql-slides-mh, 440px); }
  .ql-slide__img,
  .ql-slide__placeholder { top: 50%; left: 0; width: 100%; height: var(--ql-slides-mh, 440px); transform: translateY(-50%); }
  .ql-slide__toggle { flex-direction: row; padding: 0 16px 0 20px; }
  .ql-slide__plus { order: 0; width: 40px; height: 40px; }
  .ql-slide__tab { writing-mode: horizontal-tb; transform: none; font-size: 17px; }
  .ql-slide__cta { top: 16px; right: 16px; height: 40px; padding: 0 16px; font-size: 14px; }
  .ql-slide__body { padding: 20px; gap: 8px; }
  .ql-slide__text { font-size: 15px; }
  .ql-slides__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ql-hero__copy, .ql-hero__media .ql-media__img, .ql-hero.is-noimage.ql-texture--carbon::after { animation: none; }
  .ql-press__track { animation: none; }
  .ql-press__viewport { overflow-x: auto; }
  .ql-tile__img, .ql-tile__placeholder, .ql-tile__body, .ql-tile__patch, .ql-card__img, .ql-btn, .ql-btn__arrow, .ql-steps__pane { transition: none; }
  .ql-slide, .ql-slide::after, .ql-slide__toggle, .ql-slide__plus, .ql-slide__content, .ql-slide__body { transition: none !important; }
  .ql-diagram__dot, .ql-diagram__hint-dot { animation: none; }
  .ql-diagram__dot, .ql-diagram__label, .ql-diagram__pane { transition: none; }
}

.ql-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
