/* Homepage direction stays isolated while the other public pages are reviewed. */
.qm-home {
  --qm-ink: #202523;
  --qm-copy: #505853;
  --qm-muted: #626c65;
  --qm-line: #dce2dd;
  --qm-soft: #f2f6f3;
  --qm-radius-sm: 6px;
  --qm-radius-md: 8px;
  --qm-radius-lg: 8px;
}

.qm-home *, .qm-home *::before, .qm-home *::after {
  letter-spacing: 0 !important;
}

.qm-home .qm-hero {
  padding: 96px 0 0;
  background: #f2f6f3;
}

.qm-home .qm-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  text-align: center;
}

.qm-home .qm-hero .qm-display {
  max-width: none;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
}

.qm-home .qm-eyebrow { margin-bottom: 16px; font-size: 12px; }
.qm-home .qm-eyebrow::before { display: none; }
.qm-hero-promise { margin: 12px 0 0; font-size: 24px; line-height: 1.25; font-weight: 600; }
.qm-hero-promise br { display: none; }
.qm-home .qm-hero .qm-lead { max-width: 570px; margin: 18px auto 0; font-size: 17px; }
.qm-home .qm-hero .qm-actions { justify-content: center; margin-top: 22px; }
.qm-home .qm-hero .qm-note { justify-content: center; margin: 16px 0 0; font-size: 13px; }

.qm-home-preview { margin: 0; }
.qm-home-preview img { display: block; width: 100%; height: 270px; object-fit: contain; object-position: center; }
.qm-home-preview .qm-product-caption { padding: 14px 0; border-top: 1px solid var(--qm-line); }

.qm-home .qm-scenarios { border-top: 0; border-bottom: 0; }
.qm-home .qm-scenario { padding: 32px 28px; }
.qm-home .qm-scenario:first-child { padding-left: 0; }
.qm-home .qm-scenario-number { margin-bottom: 16px; color: #08743e; }
.qm-home .qm-scenario p { max-width: 32ch; font-size: 16px; }
.qm-inline-link { display: inline-flex; gap: 20px; margin-top: 20px; color: var(--qm-ink); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; }
.qm-inline-link:hover { color: var(--qm-blue); }

.qm-home .qm-section { padding: 72px 0; }
.qm-home .qm-section--story { background: #e8efea; color: var(--qm-ink); }
.qm-home .qm-section--story .qm-title { color: var(--qm-ink); }
.qm-home .qm-section--story .qm-eyebrow { color: var(--qm-green); }
.qm-home .qm-story-copy { color: var(--qm-copy); font-size: 17px; }
.qm-home .qm-title { font-size: 28px; line-height: 1.25; }
.qm-home .qm-lead { font-size: 17px; margin-top: 20px; }
.qm-home .qm-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.qm-home .qm-product-frame { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.qm-home .qm-product-frame::before { display: none; }
.qm-home .qm-product-frame img { margin: 0; aspect-ratio: auto; object-fit: contain; border: 1px solid var(--qm-line); border-radius: 4px; }
.qm-home .qm-annotation-list { margin-top: 24px; }
.qm-home .qm-annotation-list li { padding: 14px 0; }
.qm-home .qm-session-example { border-radius: 8px; border-top: 3px solid var(--qm-green); }
.qm-home .qm-session-example h3 { font-size: 22px; }
.qm-home .qm-plan { padding: 32px; }
.qm-home .qm-plan:first-child { padding-left: 0; }
.qm-home .qm-plan-price { font-size: 32px; }
.qm-home .qm-final { padding: 64px 0; background: #202523; }
.qm-home .qm-final .qm-eyebrow { color: #a7d7bb; }
.qm-home .qm-final .qm-lead { color: #dce2dd; }

@media (max-height: 760px) and (min-width: 768px) {
  .qm-home-preview img { height: 180px; }
}

@media (max-width: 991.98px) {
  .qm-home .qm-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qm-home .qm-product-frame { max-width: none; }
}

@media (max-width: 767.98px) {
  .qm-home .qm-hero { padding: 100px 0 0; }
  .qm-home .qm-hero .qm-display { font-size: 32px; }
  .qm-hero-promise { font-size: 20px; }
  .qm-hero-promise br { display: initial; }
  .qm-home .qm-hero-grid { gap: 20px; }
  .qm-home .qm-hero .qm-actions { flex-direction: row; gap: 8px; }
  .qm-home .qm-hero .qm-button { width: auto; font-size: 13px; padding: 12px; }
  .qm-home-preview img { height: 200px; }
  .qm-home .qm-product-caption { font-size: 12px; gap: 12px; flex-wrap: wrap; }
  .qm-home .qm-title { font-size: 24px; }
  .qm-home .qm-section { padding: 48px 0; }
  .qm-home .qm-scenario, .qm-home .qm-scenario:first-child { padding: 24px 0; }
  .qm-home .qm-scenario p { max-width: none; }
  .qm-home .qm-plan { padding: 28px 0; }
}

@media (max-width: 767.98px) and (max-height: 740px) {
  .qm-home .qm-hero { padding-top: 80px; }
  .qm-home .qm-hero .qm-display { font-size: 32px; }
  .qm-home .qm-hero-promise { font-size: 18px; }
  .qm-home .qm-hero .qm-lead { font-size: 16px; line-height: 1.5; margin-top: 12px; }
  .qm-home .qm-hero .qm-actions { margin-top: 16px; }
  .qm-home-preview img { height: 120px; }
}
