/* ================================================================ qy-model-pages (2026-09-29): /models and /models/{family}.
   One landing page per model family people search for (Google Trends, 09-29: Seedance, Nano Banana, Kling, GPT Image,
   Veo, Grok Imagine, Hailuo, FLUX). Everything is scoped to #qmd. The looks are /pricing's (public/qy-pricing/pricing-1.css):
   studio black, lime accent, pink-violet for NEW, Space Grotesk for display, qyntro-premium.css tokens with fallbacks.
   The site header is fixed, so the page owns its top clearance. Names only - no maker logos anywhere on these pages. */

#qmd {
  --md-bg: var(--qp-bg-deep, #0a0b0d);
  --md-card: #15171b;
  --md-card-2: #101114;
  --md-line: rgba(255, 255, 255, 0.09);
  --md-line-2: rgba(255, 255, 255, 0.16);
  --md-text: var(--qp-text, #f7f7f8);
  --md-dim: rgba(244, 245, 247, 0.7);
  --md-faint: rgba(244, 245, 247, 0.5);
  --md-lime: var(--qp-lime, #d1fe17);
  --md-lime-soft: rgba(209, 254, 23, 0.12);
  --md-ink: #0b0d06;
  --md-pink: #ff3d8b;
  --md-violet: #b14dff;
  --md-display: var(--qp-display, 'Space Grotesk', 'Poppins', sans-serif);
  --md-grad: linear-gradient(95deg, #ff3d8b 0%, #b14dff 100%);
  position: relative;
  display: block;
  padding: 104px 0 32px;
  background: var(--md-bg);
  color: var(--md-text);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

/* the theme's and Bootstrap's element rules, undone inside the page */
#qmd *, #qmd *::before, #qmd *::after { box-sizing: border-box; }
#qmd h1, #qmd h2, #qmd h3, #qmd p, #qmd ul, #qmd ol, #qmd li, #qmd dl, #qmd dt, #qmd dd, #qmd figure, #qmd table { margin: 0; padding: 0; }
#qmd ul, #qmd ol { list-style: none; }
#qmd a { color: inherit; text-decoration: none; }
#qmd a:hover { color: inherit; }
#qmd img, #qmd video { display: block; max-width: 100%; }
#qmd svg { flex: 0 0 auto; }
#qmd :focus { outline: none; }
#qmd :focus-visible { outline: 2px solid var(--md-lime); outline-offset: 3px; }
#qmd .qmd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#qmd .qmd-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
#qmd section { scroll-margin-top: 90px; }
#qmd .qmd-sec { padding: 72px 0 0; }

/* ---------------------------------------------------------------- type */
#qmd .qmd-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--md-lime); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0.2em; text-transform: uppercase;
}
#qmd .qmd-kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--md-lime); }
#qmd .qmd-h2 {
  margin-top: 12px; color: #fff; font-family: var(--md-display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
#qmd .qmd-sub { max-width: 640px; margin-top: 12px; color: var(--md-dim); font-size: 16px; }
#qmd .qmd-head { margin-bottom: 28px; }

/* ---------------------------------------------------------------- buttons */
#qmd .qmd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
#qmd .qmd-btn svg { width: 18px; height: 18px; }
#qmd .qmd-btn-lime { background: var(--md-lime); color: var(--md-ink); box-shadow: 0 10px 30px -12px rgba(209, 254, 23, .55); }
#qmd .qmd-btn-lime:hover { color: var(--md-ink); transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(209, 254, 23, .7); }
#qmd .qmd-btn-ghost { border: 1px solid var(--md-line-2); background: rgba(255, 255, 255, .03); color: #fff; }
#qmd .qmd-btn-ghost:hover { color: #fff; border-color: rgba(209, 254, 23, .55); background: var(--md-lime-soft); }

/* ---------------------------------------------------------------- hero */
#qmd .qmd-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
/* no result to show yet: the words take the row */
#qmd .qmd-hero.is-solo { grid-template-columns: minmax(0, 1fr); }
#qmd .qmd-hero.is-solo > div { max-width: 820px; }
#qmd .qmd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; color: var(--md-faint); font-size: 13px; }
#qmd .qmd-crumbs a:hover { color: var(--md-lime); }
#qmd .qmd-crumbs span[aria-hidden] { opacity: .5; }
#qmd .qmd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
#qmd .qmd-tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border: 1px solid var(--md-line-2);
  border-radius: 999px; color: var(--md-dim); font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
#qmd .qmd-tag-lime { border-color: rgba(209, 254, 23, .4); background: var(--md-lime-soft); color: var(--md-lime); }
#qmd .qmd-h1 {
  color: #fff; font-family: var(--md-display); font-size: clamp(38px, 5.2vw, 68px); font-weight: 700; line-height: .98;
  letter-spacing: -0.035em; text-wrap: balance;
}
#qmd .qmd-h1 em { font-style: normal; color: var(--md-lime); }
#qmd .qmd-lead { max-width: 560px; margin-top: 20px; color: var(--md-dim); font-size: 17px; line-height: 1.6; }
#qmd .qmd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* /models opens with words only: no stage beside them */
#qmd .qmd-intro { max-width: 860px; }
#qmd .qmd-intro .qmd-lead { max-width: 660px; }
#qmd .qmd-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--md-faint); font-size: 13px; }
#qmd .qmd-facts li { display: inline-flex; align-items: center; gap: 8px; }
#qmd .qmd-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--md-lime); }
#qmd .qmd-facts b { color: #fff; font-weight: 600; }

#qmd .qmd-stage { position: relative; display: flex; justify-content: center; }
#qmd .qmd-stage::before {
  content: ""; position: absolute; inset: 8% 10%; border-radius: 40px; background: radial-gradient(closest-side, rgba(177, 77, 255, .35), transparent);
  filter: blur(40px); pointer-events: none;
}
#qmd .qmd-stage-frame {
  position: relative; width: 100%; max-width: 420px; overflow: hidden; border: 1px solid var(--md-line-2); border-radius: 22px;
  background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
#qmd .qmd-stage-frame.is-wide { max-width: 560px; }
#qmd .qmd-stage-frame video, #qmd .qmd-stage-frame img { width: 100%; height: auto; }
#qmd .qmd-stage-cap {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: rgba(10, 11, 13, .72); backdrop-filter: blur(8px); font-size: 12px;
}
#qmd .qmd-stage-cap b { color: #fff; font-weight: 600; }
#qmd .qmd-stage-cap a { color: var(--md-lime); font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- the gallery of real results */
#qmd .qmd-gallery { columns: 3 260px; column-gap: 16px; }
#qmd .qmd-shot {
  position: relative; display: block; margin: 0 0 16px; overflow: hidden; break-inside: avoid; border: 1px solid var(--md-line);
  border-radius: 18px; background: var(--md-card-2);
}
#qmd .qmd-shot video, #qmd .qmd-shot img { width: 100%; height: auto; }
#qmd .qmd-shot figcaption {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border-top: 1px solid var(--md-line);
}
#qmd .qmd-shot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#qmd .qmd-shot-title { color: #fff; font-size: 14px; font-weight: 700; }
#qmd .qmd-shot-model { color: var(--md-lime); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
#qmd .qmd-shot-prompt {
  display: -webkit-box; overflow: hidden; color: var(--md-dim); font-size: 13px; line-height: 1.5;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
#qmd .qmd-shot-link { color: var(--md-lime); font-size: 12px; font-weight: 700; }
#qmd .qmd-shot-link:hover { color: var(--md-lime); text-decoration: underline; }
#qmd .qmd-play {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 999px; background: rgba(10, 11, 13, .7); color: #fff; font-size: 11px; font-weight: 700; pointer-events: none;
}
#qmd .qmd-play svg { width: 12px; height: 12px; }
#qmd .qmd-more { margin-top: 8px; }

/* ---------------------------------------------------------------- versions */
#qmd .qmd-table-wrap {
  /* relative: the table's screen-reader labels are absolutely placed, and without a positioned scroll box they
     escape it - on a phone that widened the page to 719px and the browser zoomed out to fit. */
  position: relative; overflow-x: auto; border: 1px solid var(--md-line); border-radius: 20px; background: var(--md-card-2); }
#qmd .qmd-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
#qmd .qmd-table th, #qmd .qmd-table td { padding: 16px 18px; border-bottom: 1px solid var(--md-line); text-align: left; vertical-align: middle; }
#qmd .qmd-table thead th { color: var(--md-faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#qmd .qmd-table tbody tr:last-child td, #qmd .qmd-table tbody tr:last-child th { border-bottom: 0; }
#qmd .qmd-table tbody th { color: #fff; font-weight: 700; white-space: nowrap; }
#qmd .qmd-table td { color: var(--md-dim); }
#qmd .qmd-table .qmd-num { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
#qmd .qmd-table .qmd-num small { color: var(--md-faint); font-size: 12px; }
#qmd .qmd-new {
  display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 6px; background: var(--md-grad); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; vertical-align: 2px;
}
#qmd .qmd-yes, #qmd .qmd-no { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; }
#qmd .qmd-yes { background: var(--md-lime-soft); color: var(--md-lime); }
#qmd .qmd-no { color: var(--md-faint); }
#qmd .qmd-yes svg, #qmd .qmd-no svg { width: 14px; height: 14px; }
#qmd .qmd-try { color: var(--md-lime); font-weight: 700; white-space: nowrap; }
#qmd .qmd-try:hover { color: var(--md-lime); text-decoration: underline; }
#qmd .qmd-note { margin-top: 12px; color: var(--md-faint); font-size: 13px; }

/* ---------------------------------------------------------------- steps, strengths, uses */
#qmd .qmd-grid { display: grid; gap: 16px; }
#qmd .qmd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#qmd .qmd-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#qmd .qmd-card { padding: 24px; border: 1px solid var(--md-line); border-radius: 20px; background: var(--md-card); }
#qmd .qmd-card h3 { color: #fff; font-family: var(--md-display); font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
#qmd .qmd-card p { margin-top: 10px; color: var(--md-dim); font-size: 14px; }
#qmd .qmd-step-n {
  display: inline-flex; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; align-items: center; justify-content: center;
  background: var(--md-lime); color: var(--md-ink); font-family: var(--md-display); font-size: 16px; font-weight: 800;
}

/* ---------------------------------------------------------------- FAQ */
#qmd .qmd-faq { display: grid; gap: 12px; max-width: 880px; }
#qmd .qmd-faq details { border: 1px solid var(--md-line); border-radius: 16px; background: var(--md-card); }
#qmd .qmd-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer;
  color: #fff; font-size: 16px; font-weight: 600; list-style: none;
}
#qmd .qmd-faq summary::-webkit-details-marker { display: none; }
#qmd .qmd-faq summary::after { content: "+"; color: var(--md-lime); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
#qmd .qmd-faq details[open] summary::after { transform: rotate(45deg); }
#qmd .qmd-faq .qmd-a { padding: 0 22px 20px; color: var(--md-dim); font-size: 15px; }
#qmd .qmd-faq .qmd-a a { color: var(--md-lime); text-decoration: underline; }

/* ---------------------------------------------------------------- related + the hub's cards */
#qmd .qmd-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#qmd .qmd-model {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--md-line); border-radius: 20px;
  background: var(--md-card); transition: transform .15s ease, border-color .15s ease;
}
#qmd .qmd-model:hover { transform: translateY(-2px); border-color: rgba(209, 254, 23, .45); }
#qmd .qmd-model-pic { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
#qmd .qmd-model-pic img { width: 100%; height: 100%; object-fit: cover; }
/* a family with no result on /explore yet: its name, set large, on the house gradient - never an empty black box */
#qmd .qmd-model-pic.is-empty {
  display: flex; align-items: flex-end; padding: 16px;
  background: radial-gradient(120% 120% at 100% 0%, rgba(177, 77, 255, .55), transparent 60%),
              radial-gradient(120% 120% at 0% 100%, rgba(255, 61, 139, .45), transparent 60%), var(--md-card-2);
}
#qmd .qmd-model-pic.is-empty span {
  color: #fff; font-family: var(--md-display); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
#qmd .qmd-model-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
#qmd .qmd-model-kind { color: var(--md-faint); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#qmd .qmd-model-name { color: #fff; font-family: var(--md-display); font-size: 20px; font-weight: 700; line-height: 1.15; }
#qmd .qmd-model-line { color: var(--md-dim); font-size: 13px; }
#qmd .qmd-model-go { margin-top: auto; padding-top: 10px; color: var(--md-lime); font-size: 13px; font-weight: 700; }

/* ---------------------------------------------------------------- last call */
#qmd .qmd-final {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 36px 40px;
  border: 1px solid rgba(209, 254, 23, .28); border-radius: 26px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(209, 254, 23, .12), transparent 55%), var(--md-card);
}
#qmd .qmd-final h2 { color: #fff; font-family: var(--md-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
#qmd .qmd-final p { margin-top: 8px; color: var(--md-dim); }
#qmd .qmd-final .qmd-cta { margin-top: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1024px) {
  #qmd .qmd-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #qmd .qmd-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  #qmd { padding-top: 88px; }
  #qmd .qmd-hero { grid-template-columns: 1fr; gap: 32px; }
  #qmd .qmd-stage-frame { max-width: 360px; }
  #qmd .qmd-grid-3 { grid-template-columns: 1fr; }
  #qmd .qmd-sec { padding-top: 56px; }
}
@media (max-width: 560px) {
  #qmd .qmd-wrap { padding: 0 16px; }
  #qmd .qmd-models, #qmd .qmd-grid-4 { grid-template-columns: 1fr; }
  #qmd .qmd-btn { width: 100%; }
  #qmd .qmd-final { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #qmd .qmd-btn, #qmd .qmd-model { transition: none; }
}
