/* Public-page surfaces: explicit gutters, consistent separation and responsive padding. */
body.sf-site {
  --qy-page: #edf2f8;
  --qy-surface: #fff;
  --qy-surface-line: #d8e2f0;
  --qy-surface-shadow: 0 8px 28px rgb(35 65 105 / 7%);
  background: var(--qy-page) !important;
}
body.dark.sf-site {
  --qy-page: #101925;
  --qy-surface: #1b293b;
  --qy-surface-line: #354960;
  --qy-surface-shadow: 0 10px 32px rgb(0 0 0 / 18%);
}
body.sf-site #app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.sf-site #app > main { flex-shrink: 0; }
body.sf-site #app .sf-main { width: 100%; }
body.sf-site #app .sf-main > :is(.qh-hero, .sf-how, .sf-faq, .sf-contact-band) {
  background: var(--qy-surface) !important;
  border: 1px solid var(--qy-surface-line) !important;
  box-shadow: var(--qy-surface-shadow) !important;
  border-radius: 24px !important;
  padding: clamp(24px, 3.4vw, 48px) !important;
  margin: 28px 0 !important;
  max-width: none;
}
body.sf-site #app .sf-main > .qh-hero {
  min-height: 0;
  gap: clamp(24px, 3vw, 48px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body.sf-site #app .qh-copy { min-width: 0; }
body.sf-site #app .qh-copy h1 { font-size: clamp(36px, 3.6vw, 58px); letter-spacing: -.035em; }
body.sf-site #app .qh-visual { width: 100%; min-width: 0; }
body.sf-site #app .qh-visual { border-radius: 24px; }
body.sf-site #app .qh-visual-top { top: 24px; left: 24px; right: 24px; }
body.sf-site #app .qh-coordinate { top: 59px; left: 24px; }
body.sf-site #app .apex-hero-mark { top: 46px; }
body.sf-site #app .qh-visual-top i { writing-mode: horizontal-tb; letter-spacing: 2px; }
body .sf-nav.qn-nav .sf-brand img { border-radius: 10px !important; box-shadow: none !important; }
body .sf-nav.qn-nav .sf-brand > span { letter-spacing: 2.2px !important; }
body.sf-site #app .qh-ribbon {
  margin: 0 0 28px;
  padding: 18px 24px;
  background: var(--qy-surface);
  border: 1px solid var(--qy-surface-line);
  border-radius: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
body.sf-site #app .sf-how { gap: 40px; }
body.sf-site #app .sf-how > div { min-width: 0; }
body.sf-site #app .sf-how article { align-items: flex-start; }
body.sf-site #app .sf-how article > span { flex-shrink: 0; }
body.sf-site #app .sf-faq .sf-section-heading { margin-bottom: 24px; }
body.sf-site #app .sf-faq details { background: transparent !important; }
body.sf-site #app .sf-faq summary { min-height: 44px; }
body.sf-site #app .sf-faq summary .icon { flex-shrink: 0; }
body.sf-site #app .sf-contact-band { gap: 24px; }
body.sf-site #app .sf-contact-band > div { min-width: 0; }
body.sf-site #app .sf-contact-band > button { flex-shrink: 0; }
body.sf-site #app > .sf-footer {
  width: calc(100% - 48px) !important;
  max-width: 1320px;
  margin: auto auto 24px !important;
  padding: 36px !important;
  background: var(--qy-surface) !important;
  border: 1px solid var(--qy-surface-line) !important;
  border-radius: 24px;
  box-shadow: var(--qy-surface-shadow);
}
body.sf-site #app > .sf-footer::before { display: none; }
body.sf-site #app > .sf-footer nav button { text-align: left; justify-content: flex-start; }
body.sf-site #app .of-demo-intro {
  width: 100%;
  max-width: 1280px;
  padding: 0 28px !important;
  margin: 24px auto 0 !important;
}
body.sf-site #app .of-demo-intro .mo-demobar { margin: 0 !important; }
body.sf-site #app .qy-demo-main { margin-bottom: 32px !important; }
.qy-demo-heading {
  background: var(--qy-surface);
  border: 1px solid var(--qy-surface-line);
  box-shadow: var(--qy-surface-shadow);
  border-radius: 20px;
  padding: 28px 32px;
  margin: 20px 0;
}
.qy-demo-heading > span { color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.qy-demo-heading h1 { margin: 10px 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.4; }
.qy-demo-heading p, .qy-demo-note { color: var(--muted); line-height: 1.8; }
.qy-demo-note { margin: 16px 0 0; text-align: center; font-size: 13px; }
body.sf-site #app .sf-editor-container { scroll-margin-top: 112px; }
@media (max-width: 900px) {
  body.sf-site #app .sf-main > .qh-hero { grid-template-columns: 1fr; }
  body.sf-site #app .qh-copy > p { max-width: none; }
  body.sf-site #app .qh-visual { max-width: 560px; justify-self: center; }
  body.sf-site #app .sf-how { grid-template-columns: 1fr; }
  body.sf-site #app .sf-contact-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  body.sf-site #app .sf-main { padding: 0 16px !important; }
  body.sf-site #app .sf-main > :is(.qh-hero, .sf-how, .sf-faq, .sf-contact-band) {
    padding: 24px 20px !important;
    margin: 20px 0 !important;
    border-radius: 18px !important;
  }
  body.sf-site #app .qh-copy h1 { font-size: clamp(32px, 8vw, 44px); }
  body.sf-site #app .qh-actions, body.sf-site #app .qh-foot { flex-wrap: wrap; }
  body.sf-site #app .qh-ribbon { padding: 16px 20px; margin-bottom: 20px; }
  body.sf-site #app .qh-ribbon > div { flex-wrap: wrap; }
  body.sf-site #app .sf-how { gap: 24px; }
  body.sf-site #app .sf-how h2, body.sf-site #app .sf-faq h2 { font-size: 26px; line-height: 1.45; }
  body.sf-site #app > .sf-footer {
    width: calc(100% - 32px) !important;
    margin-bottom: 16px !important;
    padding: 24px !important;
    border-radius: 18px;
  }
  body.sf-site #app .of-demo-intro { padding: 0 16px !important; margin-top: 20px !important; }
  body.sf-site #app .mo-demobar { flex-wrap: wrap; gap: 10px; }
  body.sf-site #app .mo-demobar > span { flex-basis: calc(100% - 120px); }
  .qy-demo-heading { padding: 22px 20px; }
}
