/* ==========================================================================
   QZONE OMS — MARKETING / LANDING
   The public face of the console. Same tokens, same restraint; the only extra
   licence is a larger type scale and the technical grid motif.
   ========================================================================== */

.qz-site {
  --qz-site-bar-h: 58px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--qz-bg);
}

/* ---- Sticky top bar ------------------------------------------------------ */
.qz-site__bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--qz-s-5);
  height: 58px;
  padding: 0 var(--qz-s-6);
  background: var(--qz-bg);
  border-bottom: 1px solid var(--qz-line);
}
.qz-site__brand { display: flex; align-items: center; gap: var(--qz-s-3); flex: 0 0 auto; }
/* Wide 1.67:1 navy-on-transparent lockup. No chip behind it — the artwork
   sits directly on the bar — with `contain` so the wordmark and strapline are
   never cropped, and a box that matches the artwork's proportions. Larger here
   than in the shell: this is the brand's first impression and it is the only
   mark in the bar now the wordmark is gone. */
.qz-site__logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 40px;
  padding: 4px;
  flex: 0 0 auto;
}
.qz-site__logo img { width: 100%; height: 100%; object-fit: contain; }
.qz-site__wordmark {
  font-family: var(--qz-font-display);
  font-size: var(--qz-fs-base);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--qz-text);
}
.qz-site__nav {
  position: relative;   /* origin for the sliding indicator */
  display: flex;
  align-items: center;
  gap: var(--qz-s-5);
  margin-left: var(--qz-s-6);
  align-self: stretch;
}
.qz-site__nav a {
  display: flex;
  align-items: center;
  font-size: var(--qz-fs-sm);
  font-weight: 500;
  color: var(--qz-text-mute);
  transition: color var(--qz-dur-fast) var(--qz-ease);
}
.qz-site__nav a:hover { color: var(--qz-text); }
.qz-site__nav a.is-active { color: var(--qz-accent); }

/* One rule that slides between tabs rather than three that fade in place —
   the movement is what tells you the sections are a single sequence.
   Width and offset are measured in JS, so it tracks any label length. */
.qz-site__nav-ind {
  position: absolute;
  left: 0;
  bottom: -1px;          /* sits on the bar's own bottom rule */
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--qz-accent);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  transition: transform var(--qz-dur) var(--qz-ease-out),
              width     var(--qz-dur) var(--qz-ease-out),
              opacity   var(--qz-dur-fast) var(--qz-ease);
}
.qz-site__nav-ind.is-on { opacity: 1; }
/* Brief bloom on click, so the tab acknowledges the press before the page
   has finished travelling. */
.qz-site__nav-ind.is-pulsing { box-shadow: 0 0 0 3px var(--qz-accent-weak); }

.qz-site__bar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--qz-s-2); }

@media (max-width: 767.98px) {
  .qz-site { --qz-site-bar-h: 54px; }
  .qz-site__bar { height: 54px; padding: 0 var(--qz-s-4); }
  .qz-site__nav { display: none; }
}

/* ---- Section shell ------------------------------------------------------ */
.qz-site__section { padding: var(--qz-s-16) var(--qz-s-6); }
.qz-site__inner { width: 100%; max-width: 1180px; margin: 0 auto; }
.qz-site__section--rule { border-top: 1px solid var(--qz-line); }

@media (max-width: 767.98px) {
  .qz-site__section { padding: var(--qz-s-10) var(--qz-s-4); }
}

/* ==========================================================================
   FULL-VIEWPORT SECTIONS — laptop and desktop only

   Each linked section owns one screen, so a nav click lands on a complete
   panel instead of an arbitrary scroll offset. Below 992px this is all off:
   phone and tablet keep natural document flow, where forcing 100vh would
   crop the taller sections and fight the browser's collapsing URL bar.

   `scroll-margin-top` (not scroll-padding on the root) keeps the offset
   scoped to these elements — the sticky bar would otherwise cover the
   heading of whichever section you land on.
   ========================================================================== */
@media (min-width: 992px) {
  /* Proximity, never mandatory: mandatory snapping traps the footer and any
     section taller than the viewport. `:has` scopes the snap to this page so
     the rest of the app scrolls normally; where it is unsupported the
     sections are still full-height and still scroll smoothly. */
  html:has(.qz-site) { scroll-snap-type: y proximity; }

  .qz-hero,
  .qz-site__section[id] {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--qz-site-bar-h));
    scroll-snap-align: start;
    scroll-margin-top: var(--qz-site-bar-h);
  }
  .qz-hero > .qz-hero__inner,
  .qz-site__section[id] > .qz-site__inner { width: 100%; }

  /* Short viewports (laptops at 1280×720, or any window with devtools open)
     would clip a full section, so they fall back to natural height. */
  @media (max-height: 700px) {
    html:has(.qz-site) { scroll-snap-type: none; }
    .qz-hero,
    .qz-site__section[id] { min-height: 0; display: block; }
  }
}

/* ---- Section reveal ------------------------------------------------------
   Content lifts in as its section arrives. The hidden state is scoped to
   [data-qz-reveal-ready], which JS sets only once the observer is wired —
   without it the page renders fully visible rather than blank. */
@media (prefers-reduced-motion: no-preference) {
  .qz-site[data-qz-reveal-ready] .qz-reveal > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms var(--qz-ease-out), transform 520ms var(--qz-ease-out);
  }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in > * { opacity: 1; transform: none; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in > *:nth-child(2) { transition-delay:  70ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in > *:nth-child(3) { transition-delay: 140ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in > *:nth-child(4) { transition-delay: 210ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in > *:nth-child(5) { transition-delay: 280ms; }

  /* Cards inside a revealed block cascade behind their container. One
     :is() list rather than a selector per component — every card type on the
     page joins the cascade by being named here once. */
  .qz-site[data-qz-reveal-ready] .qz-reveal
    :is(.qz-feature, .qz-linkcard, .qz-hero__stat, .qz-module, .qz-step,
        .qz-secure__item, .qz-faq__item) {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 460ms var(--qz-ease-out), transform 460ms var(--qz-ease-out);
  }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-feature, .qz-linkcard, .qz-hero__stat, .qz-module, .qz-step,
        .qz-secure__item, .qz-faq__item) { opacity: 1; transform: none; }

  /* 70ms per position, so a row of four finishes a beat after the heading. */
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-feature, .qz-linkcard, .qz-hero__stat, .qz-module, .qz-step,
        .qz-secure__item, .qz-faq__item):nth-child(2) { transition-delay: 260ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-feature, .qz-linkcard, .qz-hero__stat, .qz-module, .qz-step,
        .qz-secure__item, .qz-faq__item):nth-child(3) { transition-delay: 330ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-feature, .qz-linkcard, .qz-hero__stat, .qz-module, .qz-step,
        .qz-secure__item, .qz-faq__item):nth-child(4) { transition-delay: 400ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-module, .qz-secure__item, .qz-faq__item):nth-child(5) { transition-delay: 470ms; }
  .qz-site[data-qz-reveal-ready] .qz-reveal.is-in
    :is(.qz-module, .qz-faq__item):nth-child(6) { transition-delay: 540ms; }
}

.qz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--qz-s-4);
  padding: 3px 9px;
  border-radius: var(--qz-r-sm);
  background: var(--qz-accent-weak);
  box-shadow: inset 0 0 0 1px var(--qz-accent-line);
  color: var(--qz-accent);
  font-size: var(--qz-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--qz-track-label);
  text-transform: uppercase;
}

.qz-site__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--qz-s-4);
}
.qz-site__lede { max-width: 62ch; font-size: var(--qz-fs-md); color: var(--qz-text-mute); }

/* ---- Hero --------------------------------------------------------------- */
.qz-hero { position: relative; overflow: hidden; padding: var(--qz-s-16) var(--qz-s-6); }
.qz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--qz-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--qz-line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 25% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}
/* The drifting-icon field, same engine as the sign-in panel. It sits above the
   grid motif and below the copy; the mask keeps it out of the top-left quarter
   where the headline lives, so nothing has to fight it for contrast. */
.qz-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(100deg, transparent 0%, transparent 32%, #000 62%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 32%, #000 62%);
}

/* Two slow accent blooms. Pure decoration, and the drift stops entirely for
   anyone who asks for reduced motion. */
.qz-hero__aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.qz-hero__aurora::before,
.qz-hero__aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  background: var(--qz-accent);
  opacity: 0.10;
}
.qz-hero__aurora::before { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; right: -6%; }
.qz-hero__aurora::after  { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; bottom: -18%; left: 32%; opacity: 0.07; }

@media (prefers-reduced-motion: no-preference) {
  .qz-hero__aurora::before { animation: qz-drift-a 26s var(--qz-ease) infinite alternate; }
  .qz-hero__aurora::after  { animation: qz-drift-b 34s var(--qz-ease) infinite alternate; }
}
@keyframes qz-drift-a {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(-6%, 8%, 0)     scale(1.12); }
}
@keyframes qz-drift-b {
  from { transform: translate3d(0, 0, 0)        scale(1); }
  to   { transform: translate3d(10%, -10%, 0)   scale(0.9); }
}

.qz-hero__inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; }
.qz-hero__title {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--qz-s-5);
  max-width: 18ch;
}
.qz-hero__title em { font-style: normal; color: var(--qz-accent); }
.qz-hero__lede { max-width: 56ch; font-size: var(--qz-fs-md); color: var(--qz-text-mute); margin-bottom: var(--qz-s-8); }
.qz-hero__actions { display: flex; flex-wrap: wrap; gap: var(--qz-s-3); margin-bottom: var(--qz-s-12); }

/* ---- Headline word rotator ----------------------------------------------
   One element, one class. The outgoing word drops and fades; the incoming
   word starts from that same low position and rises into place, so a single
   transition reads as a continuous hand-off. The rule beneath retracts to
   nothing and re-draws at the new word's width. */
.qz-rotator {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--qz-accent);
  padding-bottom: 0.08em;
}
.qz-rotator__word {
  display: inline-block;
  transition: opacity 240ms var(--qz-ease), transform 240ms var(--qz-ease-out);
}
.qz-rotator__rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--qz-accent);
  opacity: 0.45;
  transform-origin: left center;
  transition: transform 240ms var(--qz-ease-out), opacity 240ms var(--qz-ease);
}
.qz-rotator.is-swapping .qz-rotator__word { opacity: 0; transform: translateY(0.32em); }
.qz-rotator.is-swapping .qz-rotator__rule { opacity: 0; transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .qz-rotator__word, .qz-rotator__rule { transition: none; }
}

/* ---- Scroll cue ---------------------------------------------------------
   Desktop only: below 992px the hero is natural height, so the page already
   makes it obvious there is more underneath. */
.qz-hero__cue {
  position: absolute;
  left: 50%;
  bottom: var(--qz-s-6);
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--qz-s-2);
  transform: translateX(-50%);
  color: var(--qz-text-faint);
  font-size: var(--qz-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--qz-track-label);
  text-transform: uppercase;
  transition: color var(--qz-dur-fast) var(--qz-ease);
}
.qz-hero__cue:hover { color: var(--qz-accent); }
.qz-hero__cue-mouse {
  display: grid;
  justify-items: center;
  width: 20px;
  height: 31px;
  padding-top: 6px;
  border-radius: var(--qz-r-pill);
  box-shadow: inset 0 0 0 1px currentColor;
}
.qz-hero__cue-mouse > span { width: 2px; height: 6px; border-radius: 2px; background: currentColor; }

@media (min-width: 992px) {
  .qz-hero__cue { display: flex; }
}
@media (min-width: 992px) and (max-height: 700px) {
  .qz-hero__cue { display: none; }   /* the hero is not full-height here */
}
@media (prefers-reduced-motion: no-preference) {
  .qz-hero__cue-mouse > span { animation: qz-cue 1.9s var(--qz-ease) infinite; }
}
@keyframes qz-cue {
  0%   { transform: translateY(0);    opacity: 1; }
  60%  { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

@media (max-width: 767.98px) {
  .qz-hero { padding: var(--qz-s-10) var(--qz-s-4); }
  .qz-hero__actions > .qz-btn { flex: 1 1 100%; }
}

/* Stat strip under the hero */
.qz-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--qz-line);
  border-radius: var(--qz-r-lg);
  overflow: hidden;
  box-shadow: var(--qz-ring);
}
.qz-hero__stat { padding: var(--qz-s-4); background: var(--qz-surface-2); }
.qz-hero__stat-val { font-family: var(--qz-font-mono); font-size: var(--qz-fs-xl); font-weight: 600; color: var(--qz-text); line-height: 1; }
.qz-hero__stat-key { margin-top: 6px; font-size: var(--qz-fs-2xs); font-weight: 600; letter-spacing: var(--qz-track-label); text-transform: uppercase; color: var(--qz-text-mute); }

/* ---- Feature cards ------------------------------------------------------ */
.qz-features { display: grid; gap: var(--qz-s-4); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.qz-feature {
  display: flex;
  flex-direction: column;
  gap: var(--qz-s-3);
  padding: var(--qz-s-5);
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
}
.qz-feature__index {
  font-family: var(--qz-font-mono);
  font-size: var(--qz-fs-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--qz-text-faint);
}
.qz-feature__title { font-family: var(--qz-font-display); font-size: var(--qz-fs-md); font-weight: 600; margin: 0; }
/* Strapline under the feature name — the accent is the only colour on the card,
   so it reads as a label rather than competing with the body copy. */
.qz-feature__sub {
  margin: 0;
  font-size: var(--qz-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--qz-track-label);
  text-transform: uppercase;
  color: var(--qz-accent);
}
.qz-feature__text { font-size: var(--qz-fs-sm); color: var(--qz-text-mute); margin: 0; }
.qz-feature__list { margin: var(--qz-s-2) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.qz-feature__list li { display: flex; align-items: flex-start; gap: var(--qz-s-2); font-size: var(--qz-fs-xs); color: var(--qz-text-dim); }
.qz-feature__list i { color: var(--qz-accent); font-size: 10px; margin-top: 4px; flex: 0 0 auto; }

/* ---- Module cards -------------------------------------------------------
   One card per module in the app rail. The accent bar along the top edge is
   collapsed until hover, so a grid of six reads as calm until you point at one.
   ------------------------------------------------------------------------- */
.qz-modules { display: grid; gap: var(--qz-s-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.qz-module {
  position: relative;
  overflow: hidden;
  padding: var(--qz-s-5);
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
  transition: transform var(--qz-dur) var(--qz-ease-out),
              background-color var(--qz-dur-fast) var(--qz-ease),
              box-shadow var(--qz-dur-fast) var(--qz-ease);
}
.qz-module::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--qz-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--qz-dur) var(--qz-ease-out);
}
.qz-module:hover {
  transform: translateY(-3px);
  background: var(--qz-surface-3);
  box-shadow: var(--qz-ring-strong);
}
.qz-module:hover::before { transform: scaleX(1); }

.qz-module__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: var(--qz-s-4);
  border-radius: var(--qz-r-lg);
  background: var(--qz-accent-weak);
  box-shadow: inset 0 0 0 1px var(--qz-accent-line);
  color: var(--qz-accent);
  font-size: var(--qz-fs-base);
  transition: transform var(--qz-dur) var(--qz-ease-out);
}
.qz-module:hover .qz-module__icon { transform: translateY(-1px) scale(1.06); }

.qz-module__name { font-family: var(--qz-font-display); font-size: var(--qz-fs-md); font-weight: 600; margin: 0 0 var(--qz-s-2); }
.qz-module__desc { margin: 0; font-size: var(--qz-fs-sm); line-height: 1.6; color: var(--qz-text-mute); }
.qz-module__meta {
  margin-top: var(--qz-s-4);
  padding-top: var(--qz-s-3);
  border-top: 1px solid var(--qz-line-soft);
  font-family: var(--qz-font-mono);
  font-size: var(--qz-fs-2xs);
  color: var(--qz-text-faint);
}

@media (prefers-reduced-motion: reduce) {
  .qz-module, .qz-module__icon, .qz-module::before { transition: none; }
  .qz-module:hover { transform: none; }
}

/* ---- Steps --------------------------------------------------------------
   A numbered run across the page. The connector is drawn on each step rather
   than behind the row, so it wraps and re-flows with the columns instead of
   floating over a gap. */
.qz-steps {
  display: grid;
  gap: var(--qz-s-6);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: qz-step;
}
.qz-step { position: relative; padding-top: var(--qz-s-8); }
.qz-step__num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--qz-r-pill);
  background: var(--qz-bg);
  box-shadow: inset 0 0 0 1px var(--qz-accent-line);
  color: var(--qz-accent);
  font-family: var(--qz-font-mono);
  font-size: var(--qz-fs-sm);
  font-weight: 600;
}
/* The rule runs from the badge to the edge of the track; the last step in a
   row simply has nothing to its right, so it is hidden there. */
.qz-step::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 44px;
  right: calc(var(--qz-s-6) * -1);
  height: 1px;
  background: linear-gradient(90deg, var(--qz-line-strong), var(--qz-line-soft));
}
.qz-step:last-child::before { display: none; }
.qz-step__title { font-family: var(--qz-font-display); font-size: var(--qz-fs-md); font-weight: 600; margin: 0 0 var(--qz-s-2); }
.qz-step__text { margin: 0; font-size: var(--qz-fs-sm); line-height: 1.65; color: var(--qz-text-mute); }

@media (max-width: 767.98px) {
  /* Stacked: the connector becomes a vertical spine down the left. */
  .qz-steps { grid-template-columns: minmax(0, 1fr); gap: var(--qz-s-5); }
  .qz-step { padding: 0 0 0 var(--qz-s-12); min-height: 34px; }
  .qz-step::before {
    top: 40px;
    bottom: calc(var(--qz-s-5) * -1);
    left: 17px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--qz-line-strong), var(--qz-line-soft));
  }
}

/* ---- Security tiles ----------------------------------------------------- */
.qz-secure { display: grid; gap: var(--qz-s-4); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.qz-secure__item {
  display: flex;
  align-items: flex-start;
  gap: var(--qz-s-4);
  padding: var(--qz-s-5);
  border-radius: var(--qz-r-lg);
  border-left: 2px solid var(--qz-accent-line);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
  transition: border-color var(--qz-dur-fast) var(--qz-ease),
              background-color var(--qz-dur-fast) var(--qz-ease);
}
.qz-secure__item:hover { border-left-color: var(--qz-accent); background: var(--qz-surface-3); }
.qz-secure__title { font-size: var(--qz-fs-sm); font-weight: 600; color: var(--qz-text); margin-bottom: 4px; }
.qz-secure__text { font-size: var(--qz-fs-xs); line-height: 1.65; color: var(--qz-text-mute); }

/* ---- FAQ ----------------------------------------------------------------
   Native <details>: opens without JS and is keyboard-operable for free.
   `interpolate-size` is what lets the panel animate to a height nobody has
   measured; browsers without it open instantly, which is the native
   behaviour and perfectly usable. */
.qz-faq {
  display: flex;
  flex-direction: column;
  gap: var(--qz-s-2);
  max-width: 900px;
  interpolate-size: allow-keywords;
}
.qz-faq__item {
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
  transition: box-shadow var(--qz-dur-fast) var(--qz-ease);
}
.qz-faq__item[open] { box-shadow: var(--qz-ring-strong); }
.qz-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qz-s-4);
  padding: var(--qz-s-4) var(--qz-s-5);
  cursor: pointer;
  list-style: none;
  font-size: var(--qz-fs-sm);
  font-weight: 600;
  color: var(--qz-text);
  transition: color var(--qz-dur-fast) var(--qz-ease);
}
.qz-faq__q::-webkit-details-marker { display: none; }   /* Safari's own triangle */
.qz-faq__q:hover { color: var(--qz-accent); }
.qz-faq__q:focus-visible { outline: none; box-shadow: var(--qz-focus); border-radius: var(--qz-r-lg); }
.qz-faq__chev {
  flex: 0 0 auto;
  font-size: var(--qz-fs-xs);
  color: var(--qz-text-mute);
  transition: transform var(--qz-dur) var(--qz-ease-out), color var(--qz-dur-fast) var(--qz-ease);
}
.qz-faq__item[open] .qz-faq__chev { transform: rotate(180deg); color: var(--qz-accent); }

/* Inset margins so the divider stops short of the card edge, matching the
   question row's own padding. */
.qz-faq__a {
  margin: 0 var(--qz-s-5) var(--qz-s-5);
  padding-top: var(--qz-s-4);
  border-top: 1px solid var(--qz-line-soft);
  font-size: var(--qz-fs-sm);
  line-height: 1.7;
  color: var(--qz-text-mute);
}
.qz-faq__a > p { margin: 0; max-width: 78ch; }

@media (prefers-reduced-motion: no-preference) {
  .qz-faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    opacity: 0;
    transition: block-size var(--qz-dur-slow) var(--qz-ease-out),
                opacity var(--qz-dur) var(--qz-ease),
                content-visibility var(--qz-dur-slow) allow-discrete;
  }
  .qz-faq__item[open]::details-content { block-size: auto; opacity: 1; }
}

/* ---- Link cards (resources / support) ----------------------------------- */
.qz-linkcard {
  display: flex;
  align-items: flex-start;
  gap: var(--qz-s-3);
  padding: var(--qz-s-4);
  border-radius: var(--qz-r-lg);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
  color: inherit;
  transition: background-color var(--qz-dur-fast) var(--qz-ease), box-shadow var(--qz-dur-fast) var(--qz-ease);
}
a.qz-linkcard:hover { background: var(--qz-surface-3); box-shadow: var(--qz-ring-strong); color: inherit; }
.qz-linkcard__main { flex: 1 1 auto; min-width: 0; }
.qz-linkcard__title { font-size: var(--qz-fs-sm); font-weight: 600; color: var(--qz-text); }
.qz-linkcard__text { font-size: var(--qz-fs-xs); color: var(--qz-text-mute); }
/* Contact details / at-a-glance facts under a link card. Wraps on narrow
   screens rather than pushing the card wide. */
.qz-linkcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--qz-s-2);
  margin-top: var(--qz-s-2);
  font-size: var(--qz-fs-2xs);
  color: var(--qz-text-dim);
}
.qz-linkcard__meta a { color: var(--qz-accent); text-decoration: none; }
.qz-linkcard__meta a:hover { text-decoration: underline; }

/* ---- CTA ---------------------------------------------------------------- */
.qz-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qz-s-6);
  flex-wrap: wrap;
  padding: var(--qz-s-8);
  border-radius: var(--qz-r-xl);
  border-left: 2px solid var(--qz-accent);
  background: var(--qz-surface-2);
  box-shadow: var(--qz-ring);
}
.qz-cta__title { font-family: var(--qz-font-display); font-size: var(--qz-fs-lg); font-weight: 600; margin: 0 0 var(--qz-s-2); }
.qz-cta__text { font-size: var(--qz-fs-sm); color: var(--qz-text-mute); margin: 0; max-width: 52ch; }

@media (max-width: 575.98px) {
  .qz-cta { padding: var(--qz-s-5); }
  .qz-cta .qz-btn { width: 100%; }
}

/* ---- Footer -------------------------------------------------------------
   A brand column plus three link columns, seated on the inset surface so the
   page has a clear floor rather than trailing off into the background.
   ------------------------------------------------------------------------- */
.qz-site__footer {
  margin-top: auto;
  padding: var(--qz-s-12) var(--qz-s-6) var(--qz-s-6);
  border-top: 1px solid var(--qz-line);
  background: var(--qz-surface-inset);
}
.qz-site__footer-grid {
  display: grid;
  /* Explicit tracks. `repeat(auto-fit, …)` cannot be combined with a flexible
     track in the same template — the pair invalidates the whole declaration,
     which is what collapsed all four columns into one stack at every width. */
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: var(--qz-s-10) var(--qz-s-8);
  max-width: 1180px;
  margin: 0 auto var(--qz-s-10);
}

/* Brand column */
.qz-site__footer-brand { display: flex; flex-direction: column; gap: var(--qz-s-3); }
.qz-site__footer-blurb {
  margin: 0;
  max-width: 40ch;
  font-size: var(--qz-fs-sm);
  line-height: 1.65;
  color: var(--qz-text-mute);
}

/* Link columns — the label sits on the same baseline as the wordmark above,
   so the four columns read as one band instead of four loose stacks. */
.qz-site__footer-col h3 {
  margin: 0 0 var(--qz-s-4);
  padding-bottom: var(--qz-s-2);
  border-bottom: 1px solid var(--qz-line-soft);
  font-size: var(--qz-fs-2xs);
  font-weight: 600;
  letter-spacing: var(--qz-track-label);
  text-transform: uppercase;
  color: var(--qz-text-mute);
}
.qz-site__footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--qz-s-3);
}
.qz-site__footer li a {
  display: inline-block;      /* hover box hugs the label, not the column */
  font-size: var(--qz-fs-sm);
  color: var(--qz-text-dim);
  transition: color var(--qz-dur-fast) var(--qz-ease),
              transform var(--qz-dur-fast) var(--qz-ease);
}
.qz-site__footer li a:hover { color: var(--qz-accent); transform: translateX(2px); }
.qz-site__footer li a:focus-visible {
  outline: none;
  color: var(--qz-accent);
  box-shadow: var(--qz-focus);
  border-radius: var(--qz-r-sm);
}

/* Colophon */
.qz-site__colophon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--qz-s-3) var(--qz-s-5);
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: var(--qz-s-5);
  border-top: 1px solid var(--qz-line);
  font-size: var(--qz-fs-xs);
  color: var(--qz-text-mute);
}
.qz-site__colophon-meta { display: flex; align-items: center; gap: var(--qz-s-4); flex-wrap: wrap; }
.qz-site__totop {
  display: inline-flex;
  align-items: center;
  gap: var(--qz-s-2);
  color: var(--qz-text-mute);
  transition: color var(--qz-dur-fast) var(--qz-ease);
}
.qz-site__totop:hover { color: var(--qz-accent); }
.qz-site__totop i { font-size: var(--qz-fs-2xs); }

/* Tablet: brand takes the full width, the three link columns share a row. */
@media (max-width: 991.98px) {
  .qz-site__footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--qz-s-8);
  }
  .qz-site__footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767.98px) {
  .qz-site__footer { padding: var(--qz-s-10) var(--qz-s-4) var(--qz-s-6); }
  .qz-site__footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--qz-s-8) var(--qz-s-6);
    margin-bottom: var(--qz-s-8);
  }
}

@media (max-width: 479.98px) {
  .qz-site__footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--qz-s-6); }
  .qz-site__colophon { justify-content: flex-start; }
}
