/* ==========================================================================
   QPoint examples page — one grid per category. Load after site.css.
   ========================================================================== */

/* Sticky jump links; swipeable row on phones */
/* transparent over the hero; gets its frosted background only once it sticks */

/* Category tones */
.qp-tone-green { --tone-50: var(--qp-green-50);  --tone-100: var(--qp-green-100);  --tone-300: var(--qp-green-300);  --tone-500: var(--qp-green-500);  --tone-700: var(--qp-green-700); }
.qp-tone-sky { --tone-50: var(--qp-sky-50);    --tone-100: var(--qp-sky-100);    --tone-300: var(--qp-sky-300);    --tone-500: var(--qp-sky-500);    --tone-700: var(--qp-sky-700); }
.qp-tone-amber { --tone-50: var(--qp-amber-50);  --tone-100: var(--qp-amber-100);  --tone-300: var(--qp-amber-300);  --tone-500: var(--qp-amber-500);  --tone-700: var(--qp-amber-800); }
/* amber + pink hover fill: bright colour with dark text instead of dark brown / plum */
.qp-tone-violet { --tone-50: var(--qp-violet-50); --tone-100: var(--qp-violet-100); --tone-300: var(--qp-violet-300); --tone-500: var(--qp-violet-500); --tone-700: var(--qp-violet-700); }
.qp-tone-pink { --tone-50: var(--qp-pink-50);   --tone-100: var(--qp-pink-100);   --tone-300: var(--qp-pink-300);   --tone-500: var(--qp-pink-500);   --tone-700: var(--qp-pink-700); }

/* Groups */

/* Grid (tablet/desktop): intro spans 2 columns, then the examples; the list itself is
   display: contents so its items sit in the same grid. The create card's span is set by
   js/examples.js so it fills the rest of the last row. */

/* Phones: intro on top, examples in a swipeable row that bleeds to the screen edges */
@media (max-width: 767.98px) {
  main { overflow-x: clip; }
  
  
  /* --qp-bleed = distance from the screen edge to the content column (set by js/examples.js) */
  
  
  
  
  
  
}

/* Intro card: the category's live copy on a soft tone panel */

/* Example card: short thumbnail, then the details (meta, name, description, Try it) */

/* Thumbnail: a cropped peek at the form. Holds a sketch now; drop in a screenshot (.qp-ex-card__shot) later. */

/* Create card: live CTA, dashed so it reads as "your turn" */

/* When the create card takes a whole row it becomes a slim banner */

/* Mini form mock inside the stage (decorative, text-free) */
.qp-m { width: 64%; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1rem 1.125rem; background: #fff; border-radius: .875rem; box-shadow: 0 18px 36px -20px rgba(19, 21, 39, .4); transform: translateY(6%) rotate(-2deg); transition: transform .4s var(--qp-ease); }
.qp-m__bar { height: .3125rem; width: 34%; border-radius: 999px; background: var(--tone-500); margin-bottom: .25rem; }
.qp-m-q { height: .5625rem; border-radius: 999px; background: var(--qp-navy-200); }
.qp-m-q--short { width: 60%; margin-bottom: .25rem; }
.qp-m-label { height: .4375rem; width: 38%; border-radius: 999px; background: var(--qp-navy-200); }
.qp-m-input { height: 1.625rem; border-radius: .4375rem; border: 1.5px solid var(--qp-navy-200); }
.qp-m-input.is-filled { border-color: var(--tone-300); background: linear-gradient(90deg, var(--qp-navy-200) 0 45%, transparent 45%) no-repeat .5rem 50% / 60% .4375rem; }
.qp-m-btn { align-self: flex-start; height: 1.5rem; width: 38%; margin-top: .25rem; border-radius: .4375rem; background: var(--tone-500); }
.qp-m-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: .1875rem; }
.qp-m-scale span { aspect-ratio: 1; border-radius: .3125rem; background: var(--qp-navy-100); }
.qp-m-scale span.is-on { background: var(--tone-500); }
.qp-m-ends { display: flex; justify-content: space-between; } .qp-m-ends span { height: .375rem; width: 22%; border-radius: 999px; background: var(--qp-navy-100); }
.qp-m-stars { display: flex; gap: .25rem; font-size: 1.25rem; color: var(--tone-500); line-height: 1; margin-bottom: .25rem; }
.qp-m-opt { height: 1.625rem; border-radius: .4375rem; border: 1.5px solid var(--qp-navy-200); position: relative; }
.qp-m-opt::before { content: ""; position: absolute; left: .5rem; top: 50%; width: .625rem; height: .625rem; margin-top: -.3125rem; border-radius: 50%; border: 1.5px solid var(--qp-navy-300); }
.qp-m-opt::after { content: ""; position: absolute; left: 1.625rem; right: 35%; top: 50%; height: .375rem; margin-top: -.1875rem; border-radius: 999px; background: var(--qp-navy-100); }
.qp-m-opt.is-on { border-color: var(--tone-500); background: color-mix(in srgb, var(--tone-100) 60%, #fff); }
.qp-m-opt.is-on::before { border-color: var(--tone-500); background: var(--tone-500); box-shadow: inset 0 0 0 2px #fff; }
.qp-m-opt--check::before { border-radius: .1875rem; }
.qp-m-opt.is-right { border-color: var(--qp-green-500); background: var(--qp-green-50); }
.qp-m-opt.is-right::before { border-color: var(--qp-green-500); background: var(--qp-green-500); }
.qp-m-progress { height: .375rem; border-radius: 999px; background: var(--qp-navy-100); margin-top: .25rem; overflow: hidden; }
.qp-m-progress span { display: block; height: 100%; width: 60%; background: var(--tone-500); border-radius: inherit; }
.qp-m-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .375rem; margin-top: .25rem; }
.qp-m-tiles span { aspect-ratio: 5 / 3; border-radius: .5rem; display: grid; place-items: center; background: var(--qp-navy-50); border: 1.5px solid var(--qp-navy-100); color: var(--tone-300); font-size: 1.125rem; }
.qp-m-tiles span.is-on { border-color: var(--tone-500); background: var(--tone-100); color: var(--tone-700); }

/* More mock question types */
.qp-m-upload { height: 4.25rem; border-radius: .5rem; border: 1.5px dashed var(--tone-300); background: var(--tone-50); display: grid; place-items: center; color: var(--tone-700); font-size: 1.375rem; }
.qp-m-matrix { display: flex; flex-direction: column; gap: .4375rem; margin-top: .25rem; }
.qp-m-matrix__row { display: grid; grid-template-columns: 2.2fr repeat(4, 1fr); align-items: center; gap: .25rem; justify-items: center; }
.qp-m-matrix__row > span { justify-self: stretch; height: .4375rem; border-radius: 999px; background: var(--qp-navy-100); }
.qp-m-matrix__row i { width: .75rem; height: .75rem; border-radius: 50%; border: 1.5px solid var(--qp-navy-300); }
.qp-m-matrix__row i.is-on { border-color: var(--tone-500); background: var(--tone-500); box-shadow: inset 0 0 0 2px #fff; }
.qp-m-select { height: 1.75rem; border-radius: .4375rem; border: 1.5px solid var(--tone-500); display: flex; align-items: center; justify-content: flex-end; padding-right: .5rem; font-size: .75rem; color: var(--tone-700); background: linear-gradient(90deg, var(--qp-navy-200) 0 100%) no-repeat .5rem 50% / 45% .4375rem; }
.qp-m-menu { display: flex; flex-direction: column; padding: .25rem; border-radius: .5rem; box-shadow: 0 8px 18px -10px rgba(19, 21, 39, .35); border: 1px solid var(--qp-navy-100); }
.qp-m-menu span { height: 1.25rem; border-radius: .3125rem; background: linear-gradient(90deg, var(--qp-navy-200) 0 100%) no-repeat .5rem 50% / 50% .375rem; }
.qp-m-menu span.is-on { background-color: var(--tone-100); }
.qp-m-faces { display: flex; justify-content: space-between; font-size: 1.5rem; color: var(--qp-navy-300); line-height: 1; margin-top: .25rem; }
.qp-m-faces i.is-on { color: var(--tone-500); transform: scale(1.15); }

/* Hover effects only where a real pointer can hover (taps on phones would leave them stuck) */

