/* v4: dark green accent, softer dark theme (avifconverter dark), more scroll motion, borderless step timeline, 3D illustration slots. */
:root { --accent: #166534; --accent-2: #15803d; --accent-soft: #e8f3ec; --accent-line: #b7dcc4; --on-accent: #ffffff; }
:root[data-theme="dark"] {
  --bg: #2a2c30; --bg-2: #2e3035; --surface: #33363b; --surface-2: #3b3e44; --surface-3: #45484f;
  --line: #4a4d54; --line-2: #5a5e66; --text: #f3f2f1; --text-2: #c9c7c4; --ink: #f3f2f1; --on-ink: #1f2124;
  --ok: #5fd394; --accent: #6fcf97; --accent-2: #5fd394; --accent-soft: rgba(111, 207, 151, .14); --accent-line: rgba(111, 207, 151, .38); --on-accent: #10261a;
  --sh-1: 0 1px 2px rgba(0,0,0,.25); --sh-2: 0 8px 24px -8px rgba(0,0,0,.45); --sh-3: 0 24px 60px -20px rgba(0,0,0,.6);
}
:root[data-theme="dark"] .qq-close__in { background: #1f2124; border-color: var(--line); }

/* accent, used sparingly */
.qq-badge > .qq-ic:first-child { background: var(--accent); color: var(--on-accent); }
.qq-tag .qq-ic, .qq-checks .qq-ic, .qq-hero__proof .qq-ic { color: var(--accent); }
.qq-pill { background: var(--accent) !important; color: var(--on-accent) !important; }
.qq-chart__line { stroke: var(--accent); }
.qq-chart__dot { stroke: var(--accent); }
.qq-spark { stroke: var(--accent); }
.qq-bars i:last-child { background: var(--accent); opacity: 1; }
.qq-toggle.is-on span, .qq-chk.is-on { background: var(--accent); border-color: var(--accent); }
.qq-dash__quota s, .qq-hbar s { background: var(--accent); }
.qq-hub__core { background: var(--accent); border-color: var(--accent); }
.qq-hub__core .qq-mark { color: #fff; --bg: var(--accent); }
.qq-acc.is-on .qq-acc__ic { background: var(--accent); color: var(--on-accent); }
.qq-faq__list summary .qq-ic { color: var(--accent); }
.qq-strip__row a:hover .qq-ic, .qq-hub__list a:hover > span { color: var(--accent); }
.qq-hero__title .qq-chip--stat b { color: var(--accent); }

/* hero dashboard rises from below and flattens while you scroll */
.qq-stage { perspective: 1800px; }
.qq-stage__app { transform-origin: 50% 0; transform: translateY(var(--sy, 90px)) rotateX(var(--sr, 16deg)) scale(var(--ss, .95)); transition: transform .12s linear; }
.qq-stage.is-enter .qq-stage__app { animation: qq-rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qq-rise { from { opacity: 0; transform: translateY(180px) rotateX(24deg) scale(.92); } }
.qq-hero__in > * { animation: qq-up .8s cubic-bezier(.2,.7,.2,1) both; }
.qq-hero__in > *:nth-child(2) { animation-delay: .08s; } .qq-hero__in > *:nth-child(3) { animation-delay: .16s; } .qq-hero__in > *:nth-child(4) { animation-delay: .24s; } .qq-hero__in > *:nth-child(5) { animation-delay: .32s; }
@keyframes qq-up { from { opacity: 0; transform: translateY(18px); } }
.qq-chip { animation: qq-pop .7s cubic-bezier(.3,1.5,.5,1) both; }
.qq-chip--qr { animation-delay: .35s; } .qq-chip--img { animation-delay: .5s; } .qq-chip--stat { animation-delay: .65s; }
@keyframes qq-pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }

/* staggered children inside revealed sections */
.qq-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1), background .15s, border-color .2s, box-shadow .2s; }
.is-in .qq-stagger > * { opacity: 1; transform: none; }
.is-in .qq-stagger > *:nth-child(1) { transition-delay: .05s; } .is-in .qq-stagger > *:nth-child(2) { transition-delay: .1s; } .is-in .qq-stagger > *:nth-child(3) { transition-delay: .15s; } .is-in .qq-stagger > *:nth-child(4) { transition-delay: .2s; } .is-in .qq-stagger > *:nth-child(5) { transition-delay: .25s; } .is-in .qq-stagger > *:nth-child(6) { transition-delay: .3s; } .is-in .qq-stagger > *:nth-child(7) { transition-delay: .35s; } .is-in .qq-stagger > *:nth-child(8) { transition-delay: .4s; } .is-in .qq-stagger > *:nth-child(9) { transition-delay: .45s; } .is-in .qq-stagger > *:nth-child(10) { transition-delay: .5s; } .is-in .qq-stagger > *:nth-child(n+11) { transition-delay: .55s; }
.qq-bento.qq-stagger > *:hover { transform: translateY(-3px); transition-delay: 0s; }

/* parallax images */
[data-parallax] > .qq-img img, [data-parallax] > .qq-img em { transform: translateY(var(--py, 0px)) scale(1.08); }

/* dynamic codes: borderless numbered timeline (no boxed cards) */
.qq-tl { list-style: none; margin: 14px 0 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 26px; width: 100%; }
.qq-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.qq-tl::after { content: ""; position: absolute; left: 7px; top: 8px; width: 2px; height: var(--tl, 0%); max-height: calc(100% - 16px); background: var(--accent); transition: height .2s linear; }
.qq-tl__it { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 6px; cursor: pointer; }
.qq-tl__it::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--line-2); transition: background .3s, box-shadow .3s; z-index: 1; }
.qq-tl__it.is-on::before, .qq-tl__it.is-done::before { background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-soft); }
.qq-tl__it em { font: 700 .82rem var(--mono); font-style: normal; color: var(--text-2); padding-top: 3px; }
.qq-tl__it.is-on em { color: var(--accent); }
.qq-tl__it b { display: block; font-size: 1.12rem; font-weight: 700; }
.qq-tl__it span { display: block; max-height: 0; overflow: hidden; color: var(--text-2); transition: max-height .45s ease, margin .3s; }
.qq-tl__it.is-on span { max-height: 120px; margin-top: 6px; }

/* 3D illustration slots */
.qq-bx__illus { padding: 0; }
.qq-bx__illus .qq-img { border: 0; border-radius: 0; height: 100%; aspect-ratio: auto !important; min-height: 220px; }
.qq-faq__illus { margin-top: 10px; max-width: 360px; }
.qq-close__in { grid-template-columns: 1.2fr 1fr; grid-template-areas: "txt art" "list list"; row-gap: 32px; }
.qq-close__txt { grid-area: txt; } .qq-close__art { grid-area: art; } .qq-close__list { grid-area: list; grid-template-columns: repeat(6, 1fr); }
.qq-close__art .qq-img { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.qq-close__art .qq-img em { color: #d4d4d8; }
.qq-close__list li { justify-content: center; text-align: center; flex-direction: column; gap: 8px; min-height: 96px; padding: 12px; }
.qq-close__list .qq-ic { color: #86efac; }

@media (max-width: 1000px) {
  .qq-close__in { grid-template-columns: 1fr; grid-template-areas: "txt" "art" "list"; }
  .qq-close__list { grid-template-columns: repeat(3, 1fr); }
  .qq-stage__app { transform: none !important; }
}
@media (max-width: 640px) { .qq-close__list { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .qq-stagger > * { opacity: 1; transform: none; } .qq-stage__app { transform: none !important; } }
.qq-hub__node .qq-ic { width: 20px !important; height: 20px !important; }
.qq-hub__node { color: var(--text); }
.qq-hub__list a > span .qq-ic { width: 18px; height: 18px; }
.qq-hub__core .qq-mark { width: 44px; height: 44px; }
.qq-hub__node { overflow: hidden; }
.qq-hub__node img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
/* floating, sticky header (Cal.com style) */
.qq-nav { position: sticky; top: 12px; z-index: 50; padding: 0 16px; pointer-events: none; }
.qq-nav__float { max-width: 1180px; margin: 12px auto 0; border-radius: 18px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: background .25s, border-color .25s, box-shadow .25s, backdrop-filter .25s; pointer-events: auto; }
.qq-nav .qq-nav__in { min-height: 60px; padding: 0 10px 0 16px; max-width: none; }
.qq-nav.is-scrolled .qq-nav__float { background: color-mix(in srgb, var(--surface) 86%, transparent); border-color: var(--line); box-shadow: 0 10px 30px -14px rgba(0,0,0,.25); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); }
.qq-dd--wide .qq-dd__panel { width: 760px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .qq-nav { top: 8px; padding: 0 10px; } }
.qq-nav__ic { width: 17px; height: 17px; margin-right: 2px; }
.qq-nav__link { gap: 6px; }
.qq-nav .qq-btn--sm .qq-ic { width: 16px; height: 16px; }
@media (max-width: 1180px) { .qq-nav__links .qq-nav__ic { display: none; } .qq-nav__end .qq-nav__link { display: none; } .qq-nav__in { gap: 14px; } }
.qq-img:has(> img) { border-color: transparent; background: transparent; }

/* header search button (palette lives in global.js) */
.qq-nav__search { width: auto; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; }
.qq-nav__search .qq-ic { width: 20px; height: 20px; }
.qq-nav__search kbd { font: 600 .68rem var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
@media (max-width: 1180px) { .qq-nav__search kbd { display: none; } .qq-nav__search { width: 40px; padding: 0; justify-content: center; } }

/* theme switch: kit-style circular reveal (home.js animates ::view-transition-new) */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-old(root) { z-index: 1; }
html.vt-theme::view-transition-new(root) { z-index: 2; }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition-property: background-color, color, border-color, fill, stroke, box-shadow, outline-color !important; transition-duration: .42s !important; transition-timing-function: cubic-bezier(.22,1,.36,1) !important; }

/* mobile menu: fixed card pinned under the floating header (home.js moves it out of .qq-nav__float) */
.qq-nav__burger .qq-ic--close, .qq-nav__burger[aria-expanded="true"] .qq-ic--open { display: none; }
.qq-nav__burger[aria-expanded="true"] .qq-ic--close { display: block; }
html.qq-mnav-open .qq-nav { z-index: 90; position: fixed; top: 8px; left: 0; right: 0; }
.qq-mnav { position: fixed; z-index: 60; top: 88px; left: 10px; right: 10px; display: grid; gap: 4px; align-content: start; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 10px 10px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-3); opacity: 0; transform: translateY(-14px) scale(.98); transform-origin: top center; transition: opacity .38s cubic-bezier(.22,1,.36,1), transform .42s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.qq-mnav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.qq-mnav.is-closing { pointer-events: none; }
.qq-mnav[hidden] { display: none !important; }
.qq-mnav__grp, .qq-mnav__cta { opacity: 0; transform: translateY(-10px); transition: opacity .34s cubic-bezier(.22,1,.36,1), transform .38s cubic-bezier(.22,1,.36,1); }
.qq-mnav.is-open .qq-mnav__grp, .qq-mnav.is-open .qq-mnav__cta { opacity: 1; transform: none; }
.qq-mnav.is-open .qq-mnav__grp:nth-child(1) { transition-delay: .05s; }
.qq-mnav.is-open .qq-mnav__grp:nth-child(2) { transition-delay: .1s; }
.qq-mnav.is-open .qq-mnav__grp:nth-child(3) { transition-delay: .15s; }
.qq-mnav.is-open .qq-mnav__grp:nth-child(4) { transition-delay: .2s; }
.qq-mnav.is-open .qq-mnav__cta { transition-delay: .25s; }
.qq-mnav.is-closing .qq-mnav__grp, .qq-mnav.is-closing .qq-mnav__cta { transition-delay: 0s; transition-duration: .22s; }
@media (prefers-reduced-motion: reduce) { .qq-mnav, .qq-mnav__grp, .qq-mnav__cta { transition: none; } }
.qq-mnav__grp > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px; list-style: none; cursor: pointer; font-weight: 700; }
.qq-mnav__grp > summary::-webkit-details-marker { display: none; }
.qq-mnav__grp > summary .qq-caret { margin-left: auto; }
.qq-mnav__grp[open] > summary .qq-caret { transform: rotate(180deg); }
.qq-mnav__grp > div { display: grid; gap: 2px; padding: 0 0 8px; }
.qq-mnav__grp a { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; }
.qq-mnav__grp a:hover { background: var(--surface-2); }
.qq-mnav__grp a > span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
.qq-mnav__grp a > span .qq-ic { width: 17px; height: 17px; }
.qq-mnav__grp a b { font-weight: 600; font-size: .94rem; }
.qq-mnav__grp a small { color: var(--text-2); font-size: .8rem; }
.qq-mnav__cta { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.qq-mnav__cta .qq-btn { width: 100%; }
@media (min-width: 1001px) { .qq-mnav { display: none !important; } }
/* scroll lock while the menu is open: JS pins the body fixed (keeps position, no layout shift); overflow hidden on html alone broke sticky and jumped on iOS, so only the fixed body is clipped */
html.qq-mnav-open body { overflow: hidden; }
/* no horizontal page scroll on phones */
html, body { overflow-x: clip; }
