/* Index — lead + tools + steps + flare + quiz */

/* Clip rotated marquee / card nubs so they cannot widen the document.
   The header stays outside this clip so it can stick to the viewport. */
.qg-page--bright {
  --qg-ridge-pad: 28px;
  --qg-ridge-bar: 72px;
}

.qg-page--bright > .qg-ridge {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: var(--qg-ridge-pad);
  background: var(--qg-bright);
}

.qg-stream {
  overflow-x: clip;
}

/* Header + hero fill the viewport. Type and controls stay at design size;
   only the vertical gaps tighten when the screen (or 150% zoom) is short. */
.qg-topband {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--qg-ridge-pad) - var(--qg-ridge-bar));
  min-height: calc(100dvh - var(--qg-ridge-pad) - var(--qg-ridge-bar));
  position: relative;
  z-index: 1;
  overflow: clip;
  background: var(--qg-bright);
}

.qg-lead {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  padding: 36px 24px 16px;
  position: relative;
}

.qg-lead-stack {
  width: min(100%, 1030px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.qg-lead-title {
  font-family: var(--qg-font-d);
  font-weight: 900;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--qg-ink);
  max-width: 12ch;
}

.qg-lead-mark {
  display: inline-block;
  background: var(--qg-mark);
  padding: 0 0.12em;
  border-radius: 6px;
}

.qg-lead-sub {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--qg-copy);
  max-width: 42ch;
}

/* The badge is centred on the button's top-right corner */
.qg-lead-cta-row {
  position: relative;
  display: inline-flex;
  margin-top: 20px;
}

.qg-vox {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 32px 48px 32px 56px;
  border-radius: var(--qg-rad-pill);
  background: var(--qg-main);
  color: var(--qg-mark);
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: inset 0 -4px 0 var(--qg-mark);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.qg-vox:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.qg-vox-orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--qg-mark);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.qg-vox-orb img {
  width: 24px;
  height: 24px;
}

.qg-lead-badge {
  position: absolute;
  top: -46px;
  right: -42px;
  width: 84px;
  height: 84px;
  pointer-events: none;
}

.qg-lead-legal {
  font-size: 13px;
  color: var(--qg-wait);
  line-height: 1.45;
  opacity: 0.5;
}

.qg-lead-legal a {
  color: var(--qg-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* marquee sits on the bottom edge of the first screen */
.qg-tape {
  flex: 0 0 auto;
  background: var(--qg-main);
  color: var(--qg-snow);
  overflow: hidden;
  transform: rotate(-1.2deg);
  margin: 20px 0 12px;
  padding: 22px 0;
  width: 100%;
}

.qg-tape-track {
  display: flex;
  width: max-content;
  animation: qg-tape-move 56s linear infinite;
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.qg-tape-track > span {
  flex: 0 0 auto;
}

.qg-tape-dot {
  color: var(--qg-mark);
  margin-inline: 8px;
}

/* -50% lands on the identical second half, so the reset has no jump */
@keyframes qg-tape-move {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* tools kit */
.qg-kit {
  padding: clamp(64px, 8vw, 120px) 0;
}

.qg-kit-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.qg-kit-title {
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
  color: var(--qg-ink);
  line-height: 1.05;
}

.qg-kit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qg-kit-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--qg-rad-pill);
  border: 1px solid var(--qg-line);
  background: var(--qg-snow);
  font-weight: 800;
  font-size: 16px;
  color: var(--qg-copy);
}

.qg-kit-tab img {
  width: 18px;
  height: 18px;
}

.qg-kit-tab.is-on {
  border: 2px solid var(--qg-copy);
  background: #f7f7f7;
}

.qg-kit-panel {
  background: var(--qg-soft);
  border: 1px solid var(--qg-line);
  border-radius: var(--qg-rad-panel);
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.qg-kit-panel[hidden] {
  display: none;
}

.qg-kit-win {
  background: var(--qg-snow);
  border-radius: var(--qg-rad-win);
  box-shadow: var(--qg-sh-win);
  border: 1px solid var(--qg-line);
  overflow: hidden;
}

.qg-kit-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--qg-line);
  font-weight: 800;
  font-size: 14px;
  color: var(--qg-copy);
}

.qg-kit-win-bar i {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--qg-main);
}

.qg-kit-rows {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qg-kit-file {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--qg-line);
  border-radius: 12px;
  background: var(--qg-snow);
}

.qg-kit-file--merge {
  grid-template-columns: 14px 22px 30px minmax(0, 1fr);
}

.qg-kit-badge {
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  color: var(--qg-snow);
  letter-spacing: 0.02em;
}

.qg-kit-badge--doc { background: var(--qg-doc); }
.qg-kit-badge--xls { background: var(--qg-done); }
.qg-kit-badge--ppt { background: var(--qg-ppt); }
.qg-kit-badge--jpg { background: var(--qg-jpg); }
.qg-kit-badge--pdf { background: var(--qg-ink); height: 28px; font-size: 8px; }

.qg-kit-file-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qg-kit-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--qg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qg-kit-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--qg-wait);
}

.qg-kit-meta {
  font-size: 12px;
  font-weight: 800;
  color: var(--qg-wait);
  min-width: 38px;
  text-align: right;
}

.qg-kit-meta.is-done { color: var(--qg-done); }

.qg-kit-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--qg-soft);
  overflow: hidden;
}

.qg-kit-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--qg-done);
}

.qg-kit-bar.is-done > i { width: 100%; }
.qg-kit-bar.is-run > i { background: var(--qg-main); width: 64%; }
.qg-kit-bar.is-full > i { width: 100%; }
.qg-kit-bar--wide { margin: 2px 0; }
.qg-kit-bar--wide > i { width: 72%; }

.qg-kit-grip {
  width: 10px;
  height: 14px;
  background:
    radial-gradient(circle, var(--qg-mute) 1.2px, transparent 1.4px) 0 0 / 5px 5px;
}

.qg-kit-ord {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--qg-soft);
  color: var(--qg-copy);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.qg-kit-path {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--qg-soft);
  color: var(--qg-copy);
  font-size: 14px;
  font-weight: 600;
}

.qg-kit-path span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qg-kit-path b {
  color: var(--qg-main);
  font-size: 12px;
}

.qg-kit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}

.qg-kit-actions span {
  border: 1px solid var(--qg-line);
  border-radius: var(--qg-rad-pill);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--qg-copy);
}

.qg-kit-actions span:last-child {
  font-weight: 800;
  background: var(--qg-snow);
}

.qg-kit-note {
  border: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--qg-wait) !important;
}

.qg-kit-query {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--qg-ink);
  border-radius: 14px;
  color: var(--qg-ink);
  font-weight: 700;
  font-size: 16px;
}

.qg-kit-query i {
  width: 2px;
  height: 20px;
  background: var(--qg-main);
}

.qg-kit-query b {
  margin-left: auto;
  font-size: 13px;
  color: var(--qg-wait);
  font-weight: 700;
}

.qg-kit-find {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.qg-kit-hits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qg-kit-hits article {
  border: 1px solid var(--qg-soft);
  border-radius: 12px;
  padding: 12px;
}

.qg-kit-hits header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.qg-kit-hits header span,
.qg-kit-hits p {
  color: var(--qg-wait);
  font-weight: 600;
  font-size: 12px;
}

.qg-kit-hits p,
.qg-kit-sheet p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--qg-copy);
}

.qg-kit-hits mark,
.qg-kit-sheet mark {
  background: var(--qg-mark);
  color: var(--qg-ink);
  border-radius: 3px;
  padding: 0 2px;
}

.qg-kit-sheet {
  position: relative;
  background: var(--qg-soft);
  border-radius: 12px;
  padding: 14px 14px 52px;
  min-height: 100%;
}

.qg-kit-page {
  background: var(--qg-snow);
  border-radius: 6px;
  padding: 14px;
  box-shadow: 0 4px 7px rgba(18, 20, 43, 0.08);
}

.qg-kit-sheet strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.qg-kit-sheet p {
  font-size: 12px;
}

.qg-kit-sheet p + p {
  margin-top: 12px;
}

.qg-kit-sheet mark {
  box-shadow: 0 0 0 1.5px var(--qg-main);
}

.qg-kit-zoom {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--qg-main);
  display: grid;
  place-items: center;
}

.qg-kit-copy h3 {
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--qg-ink);
  line-height: 1.2;
  margin-bottom: 18px;
}

.qg-kit-copy p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 22px;
}

.qg-kit-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.qg-kit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--qg-copy);
}

.qg-kit-tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--qg-mark);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.qg-kit-tick::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--qg-ink);
  border-bottom: 2px solid var(--qg-ink);
  transform: translateY(-1px) rotate(-45deg);
}

.qg-kit-try {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--qg-rad-pill);
  background: var(--qg-main);
  color: var(--qg-snow);
  font-weight: 800;
  font-size: 16px;
  transition: filter 0.15s ease;
}

.qg-kit-try:hover {
  filter: brightness(1.08);
}

/* steps */
.qg-stack {
  padding: 0 0 clamp(72px, 9vw, 120px);
  text-align: center;
}

.qg-stack-title {
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.03em;
  color: var(--qg-ink);
  margin-bottom: 14px;
}

.qg-stack-sub {
  font-size: 17px;
  margin: 0 auto 40px;
  color: var(--qg-copy);
}

.qg-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.qg-card {
  position: relative;
  background: var(--qg-snow);
  border: 1.5px solid var(--qg-ink);
  border-radius: var(--qg-rad-card);
  padding: 28px 24px 32px;
  overflow: hidden;
}

.qg-card::before,
.qg-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--qg-bright);
  border: 1.5px solid var(--qg-ink);
  transform: translateY(-50%);
}

.qg-card::before { left: -12px; }
.qg-card::after { right: -12px; }

.qg-card-num {
  font-family: var(--qg-font-d);
  font-weight: 900;
  font-size: clamp(40px, 4vw, 58px);
  color: var(--qg-main);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.qg-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--qg-ink);
  margin-bottom: 10px;
}

.qg-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--qg-copy);
}

/* flare CTA */
.qg-flare {
  background: var(--qg-main);
  color: var(--qg-snow);
  padding: clamp(72px, 9vw, 120px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qg-flare-wm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--qg-font-d);
  font-weight: 900;
  font-size: clamp(120px, 28vw, 320px);
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.qg-flare-in {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 755px;
  margin-inline: auto;
}

.qg-flare-title {
  font-family: var(--qg-font-d);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.qg-flare-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
}

.qg-flare-btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
  padding: 23.87px 28.21px 23.87px 36.89px;
  border-radius: var(--qg-rad-pill);
  background: var(--qg-mark);
  color: var(--qg-ink);
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: 24px;
  line-height: 37px;
  letter-spacing: -0.477px;
  white-space: nowrap;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5), inset 0 -4px 0 #c9e52b;
  transition: transform 0.15s ease;
}

.qg-flare-btn:hover {
  transform: translateY(-1px);
}

.qg-flare-orb {
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: var(--qg-ink);
}

.qg-flare-orb img {
  display: block;
  width: 24px;
  height: 24px;
}

.qg-flare-mail {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.qg-flare-mail a {
  color: var(--qg-mark);
  font-weight: 700;
}

/* quiz FAQ on index */
.qg-quiz {
  padding: 136px 0 120px;
}

.qg-quiz-grid {
  display: grid;
  grid-template-columns: fit-content(100%) minmax(0, 1.6fr);
  gap: 56px 80px;
  align-items: start;
}

.qg-quiz-title {
  font-family: var(--qg-font-d);
  font-weight: 700;
  font-size: 50px;
  letter-spacing: -0.03em;
  color: var(--qg-ink);
  line-height: 1;
  margin-bottom: 16px;
}

.qg-quiz-mail {
  font-size: 17px;
  line-height: 1.55;
  color: var(--qg-copy);
}

.qg-quiz-mail a {
  color: var(--qg-main);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qg-quiz .qg-fold {
  border-top: 1px solid var(--qg-soft);
}

.qg-quiz .qg-fold-item {
  position: relative;
  border-bottom: 1px solid var(--qg-soft);
}

.qg-quiz .qg-fold-trig {
  padding: 22px 0;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* centred on the whole open block */
.qg-quiz .qg-fold-ico {
  width: 34px;
  height: 34px;
}

.qg-quiz .qg-fold-item.qg-hvozv .qg-fold-ico {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.qg-quiz .qg-fold-item.qg-hvozv .qg-fold-trig {
  padding-bottom: 13px;
}

.qg-quiz .qg-fold-panel {
  max-width: none;
  padding: 0 45px 22px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .qg-kit-panel {
    grid-template-columns: 1fr;
  }

  .qg-stack-grid {
    grid-template-columns: 1fr;
  }

  .qg-card::before,
  .qg-card::after {
    display: none;
  }

  .qg-quiz-grid {
    grid-template-columns: 1fr;
  }
}

/* Short laptop / 150% zoom: tighten the gaps so the tape still sits
   inside the first screen. Type and buttons stay at design size. */
@media (max-height: 760px) {
  .qg-page--bright {
    --qg-ridge-pad: 16px;
  }

  .qg-lead {
    padding: 16px 24px 8px;
  }

  .qg-lead-stack {
    gap: 20px;
  }

  .qg-lead-cta-row {
    margin-top: 0;
  }

  .qg-tape {
    margin: 12px 0;
  }
}

@media (max-height: 700px) {
  .qg-page--bright {
    --qg-ridge-pad: 12px;
  }

  .qg-lead {
    padding: 8px 24px 4px;
  }

  .qg-lead-stack {
    gap: 12px;
  }

  .qg-tape {
    margin: 10px 0 12px;
  }
}

@media (max-height: 620px) {
  .qg-page--bright {
    --qg-ridge-pad: 4px;
  }

  .qg-lead {
    padding: 0 24px;
  }

  .qg-lead-stack {
    gap: 4px;
  }

  .qg-tape {
    margin: 4px 0 8px;
    padding: 10px 0;
  }
}

@media (max-height: 530px) {
  .qg-page--bright {
    --qg-ridge-pad: 2px;
  }

  .qg-lead-stack {
    gap: 0;
  }

  .qg-tape {
    margin: 0 0 6px;
    padding: 8px 0;
  }
}

@media (max-width: 640px) {
  .qg-lead-title {
    font-size: 36px;
  }

  .qg-lead-sub {
    font-size: 15px;
  }

  .qg-vox {
    gap: 14px;
    padding: 8px 8px 8px 22px;
    font-size: 15px;
  }

  .qg-vox-orb {
    width: 48px;
    height: 48px;
  }

  .qg-vox-orb img {
    width: 20px;
    height: 20px;
  }

  .qg-lead-cta-row {
    margin-top: 24px;
  }

  .qg-lead-badge {
    top: -34px;
    right: -22px;
    width: 56px;
    height: 56px;
  }

  .qg-kit-head {
    align-items: flex-start;
  }

  .qg-kit-find {
    grid-template-columns: 1fr;
  }
}
