.qc-home {
  --qh-ink: var(--text);
  --qh-accent: var(--brand-ink);
  --qh-tint: var(--soft);
  --qh-muted: var(--muted);
  --qh-line: var(--edge);
  color: var(--qh-ink);
}

.qc-home .qc-shell { max-width: 1240px; }
.qc-home .qc-header { border-color: var(--qh-line); }
.qc-home .qc-header__inner { min-height: 78px; }
.qh-hero {
  background: radial-gradient(ellipse at 12% 12%, var(--soft), transparent 60%), var(--surface);
  border-block-end: 1px solid var(--qh-line);
}
.qh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 64px);
  padding-block: clamp(40px, 7vw, 92px);
}
.qh-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--qh-accent); font-size: clamp(.77rem, 1.2vw, .91rem); font-weight: 700; }
.qh-eyebrow svg { width: 19px; height: 19px; flex: none; }
.qc-home .qh-hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 4.35rem);
  font-weight: 850;
  line-height: 1.38;
  margin-block: 16px 20px;
}
.qh-hero h1 span { color: var(--qh-accent); }
.qh-lead { max-width: 43ch; color: var(--qh-muted); font-size: clamp(.99rem, 1.65vw, 1.14rem); line-height: 1.9; }
.qh-actions { margin-block-start: 24px; gap: 10px; }
.qc-home .qc-button { border-radius: 11px; }
.qc-home .qh-primary { column-gap: 8px; }
.qh-arrow { width: 17px; height: 17px; transform: rotate(90deg); }
.qh-install {
  color: var(--qh-accent);
  background: transparent;
  border: 0;
  padding: 9px 4px;
  min-height: 46px;
  font-size: .86rem;
  text-decoration: underline;
  text-underline-offset: .3em;
}
.qc-home .qh-install-help { margin-block-start: 10px; color: var(--qh-muted); font-size: .8rem; }
.qc-home .qh-hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-block-start: 21px;
  color: var(--muted);
  font-size: .82rem;
}
.qh-hero-note svg { width: 17px; height: 17px; flex: none; color: var(--qh-accent); }
.qh-hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 3vw, 32px);
  border-radius: 24px;
  border: 1px solid var(--input-edge);
  background:
    radial-gradient(ellipse at 98% 7%, var(--brand-ink), transparent 62%),
    radial-gradient(circle at 30% 100%, var(--brand), transparent 64%), var(--brand-deep);
  box-shadow: 0 24px 48px -23px #132e36a3;
}
.qh-preview-panel {
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--edge);
  box-shadow: 0 14px 32px #0c302e4a;
}
.qh-dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 11px 14px;
  background: var(--soft);
  border-block-end: 1px solid var(--qh-line);
}
.qh-dashboard-head > span { display: flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 750; }
.qh-dashboard-head img { border-radius: 8px; flex: none; }
.qh-dashboard-head small { color: var(--qh-muted); font-size: .7rem; }
.qh-dashboard-body { padding: clamp(10px, 2vw, 17px); }
.qh-dashboard-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-end: 9px; color: var(--qh-accent); }
.qc-home .qh-dashboard-title h2 { font-size: clamp(.98rem, 1.7vw, 1.2rem); color: var(--qh-ink); }
.qh-dashboard-title svg { width: 20px; height: 20px; }
.qh-demo-table {
  border-collapse: collapse;
  table-layout: auto;
  width: 100%;
  font-size: clamp(.75rem, 1.1vw, .875rem);
}
.qh-demo-table th, .qh-demo-table td { padding: 9px 6px; text-align: start; overflow-wrap: anywhere; border-block-end: 1px solid var(--qh-line); }
.qh-demo-table tbody tr:last-child td { border-block-end: 0; }
.qh-demo-table th { font-weight: 630; color: var(--qh-muted); background: var(--wash); }
.qh-demo-table time { display: inline-block; font-variant-numeric: tabular-nums; }
.qh-order-status { display: inline-block; border-radius: 20px; color: var(--brand-ink); background: var(--qh-tint); font-size: .75rem; font-weight: 720; line-height: 1.55; padding: 4px 8px; }
.qh-status-progress { color: #255679; background: #e6f1f9; }
.qc-home a.qh-order {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 14px;
  padding: 11px;
  background: #fff;
  color: var(--qh-ink);
  border-radius: 13px;
  text-decoration: none;
}
.qc-home a.qh-order:hover { background: var(--soft); }
.qc-home a.qh-order:focus-visible { outline-color: var(--brand-tint); }
.qh-order-icon, .qh-benefit-icon, .qh-step-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 11px; color: var(--qh-accent); background: var(--qh-tint); flex: none; }
.qh-order-icon svg { width: 21px; height: 21px; }
.qh-order-title { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.5; }
.qh-order-title small { color: var(--qh-muted); font-size: .7rem; }
.qh-order-title strong { font-size: .88rem; }

.qh-section { padding-block: clamp(45px, 6vw, 85px); }
.qc-home .qh-section h2, .qc-home .qh-cta h2 { font-size: clamp(1.52rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.5; }
.qh-section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-block-end: 24px; }
.qc-home .qh-section-head p, .qc-home .qh-flow-intro p, .qc-home .qh-faq > div > p { color: var(--qh-muted); margin-block-start: 7px; }
.qh-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 226px), 1fr)); gap: 18px; }
.qh-benefit { border: 1px solid var(--qh-line); padding: clamp(17px, 2.3vw, 24px); border-radius: 18px; background: #fff; }
.qc-home .qh-benefit h3 { margin-block: 16px 10px; color: var(--qh-ink); font-size: 1.02rem; }
.qc-home .qh-benefit p, .qc-home .qh-flow-steps p { color: var(--qh-muted); font-size: .88rem; line-height: 1.85; }
.qh-workflow { background: var(--wash); border-block: 1px solid var(--qh-line); }
.qh-flow-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.qh-flow-intro .qc-button, .qh-faq > div > .qc-button { margin-block-start: 18px; }
.qh-flow-steps { padding: 0; margin: 0; list-style: none; border: 1px solid var(--qh-line); border-radius: 18px; background: #fff; }
.qh-flow-steps li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 19px; }
.qh-flow-steps li + li { border-block-start: 1px solid var(--qh-line); }
.qh-step-icon { width: 39px; height: 39px; }
.qh-step-icon svg { width: 20px; height: 20px; }
.qc-home .qh-flow-steps h3 { font-size: .98rem; margin-block-end: 3px; }
.qh-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(18px, 5vw, 72px); align-items: start; }
.qh-faq .qc-questions { border: 1px solid var(--qh-line); border-radius: 18px; overflow: hidden; }
.qh-faq .qc-questions details { padding-inline: 18px; }
.qh-faq .qc-questions details:last-child { border-block-end: 0; }
.qh-last { padding-block-end: clamp(45px, 6vw, 85px); }
.qh-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; color: #fff; background: var(--brand-deep); border-radius: 23px; padding: clamp(22px, 4vw, 43px); }
.qc-home .qh-cta p { color: var(--brand-tint); margin-block-start: 7px; }
.qc-home .qh-cta .qh-primary { background: var(--brand); border-color: var(--brand); color: var(--text); }
.qc-home .qh-cta .qh-primary:hover { background: var(--brand-tint); }
.qc-home .qh-secondary-dark { background: transparent; border-color: var(--input-edge); color: white; }
.qc-home .qh-secondary-dark:hover { background: var(--brand-ink); border-color: var(--input-edge); }

@media (max-width: 760px) {
  .qh-hero-grid, .qh-flow-grid, .qh-faq { grid-template-columns: 1fr; }
  .qh-hero-grid { padding-block: 34px 38px; }
  .qc-home .qh-hero h1 { font-size: clamp(1.95rem, 7.2vw, 3.4rem); }
  .qh-hero-visual { border-radius: 17px; }
}
@media (max-width: 420px) {
  .qh-demo-table { table-layout: fixed; }
  .qh-demo-table th:first-child { width: 22%; }
  .qh-demo-table th:last-child { width: 31%; }
  .qh-order { gap: 7px; padding: 9px; }
  .qh-order-icon { width: 34px; height: 34px; }
  .qh-order-icon svg { width: 17px; height: 17px; }
  .qh-order-status { padding-inline: 4px; }
  .qh-actions .qc-button { padding-inline: 13px; }
}

.qh-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.qh-story {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  padding: clamp(18px, 3vw, 32px);
  min-inline-size: 0;
  border: 1px solid var(--edge);
  border-block-start: 3px solid var(--brand);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--wash), var(--surface) 65%);
  box-shadow: var(--shadow);
}

.qh-story-context {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--brand-ink);
  font-size: .875rem;
  font-weight: 700;
}

.qh-story-context svg { width: 22px; height: 22px; }
.qc-home .qh-story h3 { margin: 0; color: var(--brand-deep); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.qc-home .qh-story p { margin: 0 0 .25rem; color: var(--muted); line-height: 1.85; }
.qc-home .qh-story a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-block-start: auto;
  color: var(--brand-ink);
  font-size: .9rem;
  font-weight: 730;
  text-underline-offset: .24em;
}
.qc-home .qh-story a:hover { color: var(--brand-deep); }

@media (max-width: 650px) {
  .qh-story-grid { grid-template-columns: minmax(0, 1fr); }
}
