/* Homepage composition. Shared fonts, navigation, controls and footer: site-brand.css. */
.home-focused main { overflow: clip; }
.home-focused h1, .home-focused h2, .home-focused h3 { font-family: var(--display-font); font-weight: 700; text-wrap: balance; }
.home-focused h1, .home-focused h2, .home-focused h3, .home-focused p, .home-focused figure { margin: 0; }
.q-hero { padding-top: 66px; }
.q-hero-copy { position: relative; z-index: 3; text-align: center; }
.q-hero-copy h1 { font-size: clamp(40px, 5.45vw, 68px); line-height: 1.35; letter-spacing: -.02em; }
.q-hero-copy h1 span { display: inline-block; color: var(--brand); }
.q-hero-copy > p { margin-top: 22px; color: var(--copy); font-size: 17px; line-height: 1.9; }
.q-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.q-hero-actions a { gap: 24px; }
.q-hero-stage { position: relative; padding: 138px 0 38px; margin-top: 0; isolation: isolate; }
.q-hero-stage::before { content: ""; position: absolute; inset: 200px 0 0; background: #f0f4ff; z-index: -2; }
.q-stage-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.q-brand-rail { position: absolute; top: 80px; left: max(18px, calc(50% - 640px)); font-family: var(--display-font); font-size: 88px; letter-spacing: -.04em; line-height: 1; color: #191a23; transform: rotate(-12deg); transform-origin: center; white-space: nowrap; }
.q-brand-mascot { position: absolute; z-index: 2; top: -26px; right: max(44px, calc(50% - 590px)); width: 172px; height: auto; pointer-events: none; user-select: none; mix-blend-mode: multiply; }
.q-explorer { position: relative; width: 100%; border: 1px solid #d9dfeb; border-radius: 14px; background: #fff; box-shadow: 0 28px 64px -26px #24386535; overflow: hidden; }
.q-stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 6px 22px; border-bottom: 1px solid var(--line); background: #fff; color: var(--copy); font-size: 12px; }
body.home-focused .q-stage-name { font-family: var(--q-body-font); font-size: 12px; line-height: 1.5; display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.q-stage-name i { width: 8px; height: 8px; background: var(--brand); border-radius: 50%; }
.q-stage-bar > .q-stage-guide { width: 44px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; transition: color .2s, background-color .2s; }
.q-stage-guide:hover { color: var(--brand); background: #315ff40a; }
.q-stage-guide svg { display: block; }
.q-stage-body { display: grid; grid-template-columns: minmax(210px, .3fr) minmax(0, .7fr); gap: 40px; align-items: center; }
.q-feature-nav { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.q-feature-button { position: relative; min-height: 94px; padding: 17px 20px; border: 1px solid transparent; border-radius: 10px; color: var(--copy); background: transparent; text-align: left; cursor: pointer; transition: color .2s, background-color .2s, border-color .2s; }
.q-feature-button strong { display: block; color: var(--ink); font-family: var(--display-font); font-size: 20px; font-weight: 700; line-height: 1.5; }
.q-feature-button > span { display: block; margin-top: 7px; font-size: 13px; line-height: 1.7; }
.q-feature-button:hover { background: #ffffff80; }
.q-feature-button.active { background: #fff; border-color: #dce4fa; }
.q-feature-button.active strong { color: var(--brand); }
.q-feature-button.active::before { content: ""; position: absolute; inset: 22px auto 22px 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.q-feature-display { min-width: 0; }
.q-feature-panel { display: flex; flex-direction: column; }
.q-daily-explorer.is-enhanced .q-feature-panel.active { animation: q-scene-in .4s cubic-bezier(.2,.7,.2,1); }
@keyframes q-scene-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.q-feature-image { padding: 0; }
.q-feature-image img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; object-position: top; border: 1px solid #e3e7ef; border-radius: 8px; }
.q-feature-caption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px 20px; padding: 24px 0 0; min-height: 110px; }
.q-feature-caption h3 { font-size: 18px; line-height: 1.5; }
.q-feature-caption p { grid-column: 1; font-size: 14px; color: var(--copy); line-height: 1.8; }
[data-demo-section] .q-feature-caption { min-height: 0; }
[data-demo-section] .q-feature-caption > h3, [data-demo-section] .q-feature-caption > p { grid-column: 1 / -1; }
.q-screenshot-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--brand); font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
.q-feature-caption a { grid-column: 2; grid-row: 1 / 3; }
.q-demo-frame { position: relative; overflow: hidden; aspect-ratio: 1672 / 941; border: 1px solid #e3e7ef; border-radius: 8px; background: #fff; }
.q-demo-frame img, .q-demo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border: 0; border-radius: 0; }
.q-demo-frame img { aspect-ratio: auto; }
.q-demo-frame video { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.q-demo-frame.has-video-frame video { opacity: 1; }
.q-demo-frame[role="button"] { cursor: pointer; touch-action: manipulation; }
.q-demo-frame[role="button"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
html.demo-open { overflow: hidden; }
.q-demo-dialog { width: min(1240px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #d9dfeb; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #101a3533; overscroll-behavior: contain; }
.q-demo-dialog::backdrop { background: #111827b3; }
.q-demo-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; }
.q-demo-dialog-bar > div { min-width: 0; }
body.home-focused .q-demo-dialog h2 { font-size: 18px; line-height: 1.5; }
.q-demo-dialog p { margin-top: 5px; font-size: 12px; line-height: 1.7; color: var(--copy); }
.q-demo-close { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 6px; background: #f2f5fb; color: var(--ink); cursor: pointer; touch-action: manipulation; }
.q-demo-close:hover { background: #e7edff; color: var(--brand); }
.q-demo-dialog video { display: block; width: 100%; max-height: calc(100dvh - 158px); aspect-ratio: 1672 / 941; background: #10141e; object-fit: contain; }
.q-daily-explorer:not(.is-enhanced) .q-stage-body { display: block; }
.q-daily-explorer:not(.is-enhanced) .q-feature-panel + .q-feature-panel { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.q-dashboard-panel .q-feature-image { background: #f6f8fc; padding: 22px 22px 0; }
.q-dashboard-panel .q-feature-caption { background: #f6f8fc; padding: 22px 28px; }
.q-dashboard-panel .q-feature-caption h3 { font-size: 22px; }

/* A second product moment turns individual records into a concrete daily workflow. */
.q-daily { padding-block: 32px 24px; }
.q-daily-inner { padding: 32px 40px; border-radius: 26px; background: #f1f4fa; }
.q-daily-heading { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: center; gap: 10px 24px; text-align: left; margin-bottom: 28px; }
.q-daily-copy { display: contents; }
.q-daily-heading h2 { grid-column: 1; grid-row: 1; font-size: clamp(32px, 3.8vw, 44px); line-height: 1.4; }
.q-daily-heading h2 span { display: inline-block; }
.q-daily-heading p { grid-column: 1 / -1; grid-row: 2; color: var(--copy); font-size: 16px; line-height: 1.85; }
.q-daily-heading p br { display: none; }
.q-daily-mascot { display: block; position: absolute; top: 0; right: 0; width: 88px; height: auto; pointer-events: none; user-select: none; }
.q-daily-footer { margin-top: 30px; text-align: center; }

/* Two open logo rows give the existing customer community room to be seen. */
.q-clients { padding: 32px 0 36px; background: #fff; }
.q-client-heading { text-align: center; margin-bottom: 24px; }
.q-client-heading h2 { font-size: 40px; line-height: 1.4; }
.q-client-stat { display: flex; justify-content: center; align-items: baseline; gap: 12px; color: var(--copy); font-size: 17px; line-height: 1.6; white-space: nowrap; }
.q-client-heading > .q-client-stat { margin-top: 12px; }
.q-client-stat strong { font-family: var(--display-font); color: var(--ink); font-size: 52px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.q-client-stat strong span { font-size: .66em; margin-left: 2px; }
.q-client-marquee { --client-row-width: max(760px, min(1120px, 100vw)); position: relative; display: grid; gap: 12px; width: min(1280px, 100%); margin-inline: auto; }
.q-client-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(1200px, calc(100% - 80px)); margin: auto; }
.q-client { min-width: 0; display: flex; align-items: center; flex-direction: column; gap: 12px; padding: 12px; }
.q-client img { width: 88px; height: 88px; object-fit: contain; border-radius: 18px; }
.q-client span { color: var(--copy); font-size: 15px; line-height: 1.6; white-space: nowrap; }
.q-clients.is-enhanced .q-client-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent); }
.q-clients.is-enhanced .q-client-track { display: flex; width: max-content; animation: q-client-drift 60s linear infinite; }
.q-clients.is-enhanced .q-client-track-reverse { animation-direction: reverse; animation-duration: 66s; }
.q-clients.is-enhanced .q-client-group { flex: 0 0 var(--client-row-width); width: var(--client-row-width); margin: 0; }
.q-clients.is-paused .q-client-track { animation-play-state: paused; }
.q-motion-toggle { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: transparent; cursor: pointer; touch-action: manipulation; }
.q-motion-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
@keyframes q-client-drift { to { transform: translateX(-50%); } }

.q-ecosystem-heading h2, .geo-faq-head h2 { font-size: clamp(30px, 3.7vw, 46px); line-height: 1.4; }
.q-ecosystem-heading p { font-size: 16px; line-height: 1.85; color: var(--copy); }
.q-text-link { display: inline-flex; align-items: center; gap: 26px; min-height: 44px; color: var(--brand); font-size: 14px; font-weight: 500; }
.q-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Ecosystem geometry and playback live in ecosystem-motion.css. */
.q-ecosystem { padding: 64px 0 24px; background: #fff; text-align: center; }
.q-ecosystem-heading p { margin-top: 20px; text-wrap: balance; }

.geo-faq-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; width: min(1200px, calc(100% - 80px)); margin-inline: auto; padding-block: 48px 72px; }
.geo-faq-head p { margin-top: 20px; color: var(--copy); font-size: 15px; }
.geo-faq-head .q-text-link { margin-top: 10px; }
.geo-faq-grid { min-width: 0; border-top: 1px solid var(--line); }
.geo-faq-grid details { border-bottom: 1px solid var(--line); }
.geo-faq-grid summary { position: relative; min-height: 78px; padding: 26px 38px 26px 0; font-size: 17px; line-height: 1.6; font-weight: 500; list-style: none; cursor: pointer; }
.geo-faq-grid summary::-webkit-details-marker { display: none; }
.geo-faq-grid summary::after { content: none; }
.q-faq-arrow { position: absolute; right: 0; top: 50%; color: #191a23db; transform: translateY(-50%); transition: transform .2s ease; pointer-events: none; }
.geo-faq-grid details[open] .q-faq-arrow { transform: translateY(-50%) rotate(90deg); }
.geo-faq-grid details[open] > p { animation: q-faq-reveal .24s ease; }
@keyframes q-faq-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.geo-faq-grid p { padding: 0 28px 24px 0; color: var(--copy); font-size: 14px; line-height: 1.9; }
.geo-faq-grid p a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
/* A compact invitation leads into a single footer. */
.q-home-contact { padding: 0 0 8px; background: #fff; }
.q-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px 40px; border-radius: 18px; background: #f1f4fa; }
.q-contact-inner > div { min-width: 0; }
body.home-focused .q-contact-inner h2 { color: var(--ink); font-size: clamp(26px, 2.7vw, 34px); line-height: 1.5; }
body.home-focused .q-contact-inner h2 span { display: inline-block; }
.q-contact-inner p { color: var(--copy); font-size: 14px; line-height: 1.85; margin-top: 10px; }
body.home-focused .q-contact-inner .primary-btn { flex-shrink: 0; margin: 0; gap: 22px; --q-button-height: 48px; --q-button-size: 14px; --q-button-padding: 22px; }
body.home-focused .site-footer { padding-top: 32px; }
.q-contact-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0 0 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.q-contact-services > span { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.q-contact-services strong { color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.7; }
.q-contact-services small { color: var(--copy); font-size: 12px; line-height: 1.7; }

@media (max-width: 1100px) {
  .q-stage-body { gap: 28px; }
  .q-feature-button { padding: 15px 16px; }
  .q-feature-button strong { font-size: 18px; }
  .q-daily-inner { padding-inline: 32px; }
}
@media (max-width: 900px) {
  .q-hero { padding-top: 48px; }
  .q-hero-copy h1 { font-size: 45px; }
  .q-hero-stage { padding-top: 120px; }
  .q-brand-mascot { top: -20px; right: 24px; width: 148px; }
  .q-brand-rail { font-size: 74px; left: 18px; top: 74px; }
  .q-stage-body { display: block; }
  .q-feature-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
  .q-feature-button { padding: 15px 18px; min-height: 94px; }
  .q-feature-button strong { font-size: 18px; }
  .q-daily { padding-top: 24px; }
  .q-daily-inner { padding: 28px; }
  .q-daily-heading { margin-bottom: 28px; }
  .q-daily-heading h2 { font-size: 34px; }
  .q-daily-heading p { font-size: 15px; }
  .q-clients { padding-block: 28px 32px; }
  .q-client-heading h2 { font-size: 36px; }
  .q-client-stat strong { font-size: 48px; }
  .q-ecosystem-heading h2, .geo-faq-head h2 { font-size: 32px; }
  .q-ecosystem { padding-block: 48px 20px; }
  .geo-faq-section { width: calc(100% - 48px); gap: 32px; padding-block: 40px 64px; }
  .geo-faq-grid summary { font-size: 16px; }
  .q-contact-inner { padding: 30px; gap: 24px; }
  body.home-focused .q-contact-inner h2 { font-size: 28px; }
}
@media (max-width: 640px) {
  .q-hero { padding-top: 34px; }
  .q-hero-copy h1 { font-size: clamp(32px, 8vw, 43px); line-height: 1.5; }
  .q-hero-copy h1 span { display: block; }
  .q-hero-copy > p { font-size: 14px; line-height: 1.85; margin-top: 16px; max-width: 360px; margin-inline: auto; }
  .q-hero-copy > p br { display: none; }
  .q-hero-actions { margin-top: 23px; gap: 10px; --q-button-height: 46px; --q-button-padding: 8px; --q-button-size: 13px; }
  .q-hero-actions a { flex: 1; font-size: 13px; min-height: 46px; padding-inline: 8px; gap: 10px; }
  .q-hero-stage { padding: 110px 0 24px; }
  .q-hero-stage::before { top: 132px; }
  .q-brand-mascot { top: 2px; right: 16px; width: 112px; }
  .q-brand-rail { top: 78px; left: -8px; font-size: 45px; transform: rotate(-12deg); }
  .q-explorer { border-radius: 9px; }
  .q-stage-bar { min-height: 44px; padding: 4px 12px; font-size: 11px; }
  .q-feature-nav { gap: 8px; margin-bottom: 18px; }
  .q-feature-button { padding: 11px 6px; min-height: 46px; text-align: center; border-radius: 7px; }
  .q-feature-button strong { font-size: 14px; }
  .q-feature-button > span { display: none; }
  .q-feature-button.active::before { inset: auto 20px 0; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .q-feature-image img { border-radius: 4px; }
  .q-feature-caption { display: block; padding: 17px 0 0; min-height: 0; }
  .q-feature-caption h3 { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
  .q-feature-caption p { font-size: 12px; margin-top: 7px; line-height: 1.8; }
  .q-feature-caption a { min-height: 38px; }
  .q-demo-frame { border-radius: 4px; }
  .q-demo-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 8px; }
  .q-demo-dialog-bar { gap: 10px; padding: 12px; }
  body.home-focused .q-demo-dialog h2 { font-size: 16px; }
  .q-demo-dialog p { font-size: 11px; }
  .q-demo-dialog video { max-height: calc(100dvh - 160px); }
  .q-dashboard-panel .q-feature-image { padding: 9px 9px 0; }
  .q-dashboard-panel .q-feature-caption { padding: 16px 14px 12px; }
  .q-dashboard-panel .q-feature-caption h3 { font-size: 17px; }
  .q-daily { padding-block: 20px 12px; }
  .q-daily-inner { padding: 24px 16px 22px; border-radius: 16px; }
  .q-daily-heading { grid-template-columns: minmax(0, 1fr) 60px; gap: 12px 16px; margin-bottom: 20px; }
  .q-daily-mascot { width: 60px; }
  .q-daily-heading h2 { font-size: 28px; line-height: 1.5; }
  .q-daily-heading h2 span { display: block; }
  .q-daily-heading p { font-size: 14px; line-height: 1.8; }
  .q-daily-heading p br { display: none; }
  .q-daily-footer { margin-top: 20px; }
  .q-daily-footer .q-text-link { font-size: 13px; gap: 20px; }
  .q-clients { padding-block: 24px; }
  .q-client-heading { margin-bottom: 20px; }
  .q-client-heading h2 { font-size: 30px; }
  .q-client-stat { gap: 8px; font-size: 13px; }
  .q-client-heading > .q-client-stat { margin-top: 10px; }
  .q-client-stat strong { font-size: 40px; }
  .q-client-marquee { --client-row-width: 576px; gap: 10px; }
  .q-client img { width: 72px; height: 72px; border-radius: 15px; }
  .q-client span { font-size: 13px; }
  .q-client { gap: 10px; padding: 10px 8px; }
  .q-client-group { width: calc(100% - 32px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .q-clients.is-enhanced .q-client-group { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .q-ecosystem-heading h2, .geo-faq-head h2 { font-size: 28px; line-height: 1.5; }
  .q-ecosystem { padding-block: 40px 16px; }
  .q-ecosystem-heading h2 { max-width: 9em; margin-inline: auto; }
  .q-ecosystem-heading p { font-size: 14px; margin-top: 16px; }
  .q-ecosystem-heading p br { display: none; }
  .geo-faq-section { width: calc(100% - 32px); display: block; padding-block: 32px 48px; }
  .geo-faq-head p { font-size: 14px; margin-top: 16px; }
  .geo-faq-head .q-text-link { margin-top: 3px; }
  .geo-faq-grid { margin-top: 24px; }
  .geo-faq-grid summary { min-height: 72px; padding-block: 23px; font-size: 15px; }
  .geo-faq-grid p { padding: 0 16px 23px 0; font-size: 13px; }
  .q-contact-inner { padding: 24px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; border-radius: 14px; }
  body.home-focused .q-contact-inner h2 { font-size: 24px; line-height: 1.5; }
  .q-contact-inner p { font-size: 13px; margin-top: 10px; }
  body.home-focused .q-contact-inner .primary-btn { width: 100%; justify-content: space-between; }
  body.home-focused .site-footer { padding-top: 26px; }
  .q-contact-services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; padding-bottom: 24px; margin-bottom: 26px; }
  .q-contact-services strong { font-size: 12px; }
  .q-contact-services small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-faq-arrow { transition: none; }
  .geo-faq-grid details[open] > p { animation: none; }
  .q-daily-explorer.is-enhanced .q-feature-panel.active { animation: none; }
  .q-clients.is-enhanced .q-client-track { animation: none; }
  .q-clients.is-enhanced .q-client-marquee { overflow: visible; mask-image: none; }
  .q-clients.is-enhanced .q-client-track { display: block; width: auto; }
  .q-clients.is-enhanced .q-client-group { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
  .q-clients.is-enhanced .q-client-group[aria-hidden="true"] { display: none; }
  .q-feature-button, .q-feature-button::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 640px) { .q-clients.is-enhanced .q-client-group { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (forced-colors: active) {
  .q-stage-art, .q-brand-mascot { display: none; }
  .q-feature-button.active { outline: 2px solid Highlight; }
}
