/* ============================================================
   QITEA landing — component + layout CSS (production)
   Ported from the Claude Design prototype (Qitea Redesign v4.dc.html).

   The prototype used a proprietary DSL that does not run outside
   claude.ai/design:
     - style-hover="..."      -> real :hover rules here
     - <x-import ...Button>   -> .qt-btn
     - <x-import ...Tabs>     -> .qt-tabs
     - <x-import ...Input>    -> .qt-input
   Interaction states follow the design system readme (VISUAL FOUNDATIONS →
   States): hover steps the fill darker (green→#15be83, slate→#17303f) or
   washes ghost controls; focus is a 3px green ring; press shifts colour
   rather than shrinking.

   TYPOGRAPHY — every size, weight, leading and tracking resolves to a
   --qt-* token. The prototype had 17 hand-picked font sizes for about seven
   semantic roles, which is what made it read as unsystematic. Four values are
   deliberately off-scale, and only these four:

     .qt-demo__caret / .qt-faq__sign   line-height: 1     glyph line-box, not
                                                          copy — any leading
                                                          would offset it
     .q-riyal                          font-size: 1.375em relative on purpose,
                                                          so the currency mark
                                                          tracks its price
     .qt-demo__query                   letter-spacing:    VIN/OEM digits read
                                       .06em              as a serial number
     .qt-hero__title                   line-height: 1.16  see note at the rule
   ============================================================ */

/* ---------- keyframes (verbatim from the prototype) ---------- */
@keyframes qRise    { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes qMarquee { 0% { transform: translateX(0); }               100% { transform: translateX(50%); } }
@keyframes qRing    { 0% { transform: scale(0.8); opacity: .5; }     100% { transform: scale(2); opacity: 0; } }
@keyframes qScan    { 0% { transform: translateY(-100%); }           100% { transform: translateY(400%); } }
@keyframes qBlink   { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- base ---------- */
.qt-landing {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text-body);
  font-family: var(--qt-font-sans);
  font-size: var(--qt-text-body);
  /* The prototype used 1.8; --qt-lh-relaxed is the token for this role and the
     0.1 difference is imperceptible on Arabic body copy. */
  line-height: var(--qt-lh-relaxed);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Buttons are excluded: `.qt-landing a` (0,1,1) outranks `.qt-btn--primary`
   (0,1,0), so without :not() every link-styled button loses its own colour. */
.qt-landing a:not([class*="qt-btn"]) { color: var(--qt-green-700); text-decoration: none; }
.qt-landing a:not([class*="qt-btn"]):hover { color: var(--qt-slate); }
.qt-landing a[class*="qt-btn"] { text-decoration: none; }
.qt-landing *,
.qt-landing *::before,
.qt-landing *::after { box-sizing: border-box; }

.qt-container {
  position: relative;
  width: 100%;
  max-width: var(--qt-container);
  margin: 0 auto;
  padding: 0 28px;
}

/* The header is sticky at 70px, so an anchor jump would otherwise park the
   section heading underneath it. */
.qt-landing section[id] { scroll-margin-top: 90px; }

/* Smooth anchor scrolling, scoped to documents that actually host the landing
   so the rule cannot leak into admin pages sharing this sheet. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.qt-landing) { scroll-behavior: smooth; }
}

/* Shared focus treatment — one ring for every interactive control. */
.qt-landing :is(a, button, input, textarea, select):focus-visible {
  outline: none;
  box-shadow: var(--qt-focus-ring);
  border-radius: var(--qt-radius-sm);
}

/* ---------- Button ---------- */
.qt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: var(--qt-fw-medium);
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--qt-radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--qt-dur) var(--qt-ease-out),
              border-color var(--qt-dur) var(--qt-ease-out),
              color var(--qt-dur) var(--qt-ease-out),
              box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-btn:disabled,
.qt-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* sizes — heights come from the prototype's hint-size attributes */
.qt-btn--sm { height: 36px; padding: 0 16px; font-size: var(--qt-text-sm); }
.qt-btn--lg { height: 52px; padding: 0 26px; font-size: var(--qt-text-body); }

/* primary — green fill, slate ink (--text-onbrand) */
.qt-btn--primary { background: var(--qt-green); color: var(--text-onbrand); border-color: var(--qt-green); }
.qt-btn--primary:hover { background: var(--qt-green-600); border-color: var(--qt-green-600); color: var(--text-onbrand); }
.qt-btn--primary:active { background: var(--qt-green-700); border-color: var(--qt-green-700); }

/* secondary — slate fill */
.qt-btn--secondary { background: var(--qt-slate); color: var(--text-ondark); border-color: var(--qt-slate); }
.qt-btn--secondary:hover { background: var(--qt-slate-900); border-color: var(--qt-slate-900); color: var(--text-ondark); }
.qt-btn--secondary:active { background: #10222d; border-color: #10222d; }

/* ghost — outlined, tint wash on hover */
.qt-btn--ghost { background: transparent; color: var(--qt-slate); border-color: var(--border-default); }
.qt-btn--ghost:hover { background: var(--qt-slate-050); border-color: var(--border-strong); color: var(--qt-slate); }
.qt-btn--ghost:active { background: var(--qt-slate-100); }

/* ---------- Tabs (search-mode switcher) ---------- */
.qt-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 4px;
  background: var(--qt-slate-050);
  border-radius: var(--qt-radius-pill);
}
.qt-tab {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  font-family: inherit;
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-fw-medium);
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--qt-radius-pill);
  cursor: pointer;
  transition: background-color var(--qt-dur) var(--qt-ease-out),
              color var(--qt-dur) var(--qt-ease-out),
              box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-tab:hover { color: var(--qt-slate); }
.qt-tab[aria-selected="true"] {
  background: var(--qt-white);
  color: var(--qt-slate);
  box-shadow: var(--qt-shadow-xs);
}

/* ---------- Input ---------- */
.qt-input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: inherit;
  font-size: var(--qt-text-body);
  color: var(--qt-slate);
  background: var(--qt-white);
  border: 1.5px solid var(--border-default);
  border-radius: var(--qt-radius-md);
  transition: border-color var(--qt-dur) var(--qt-ease-out), box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-input::placeholder { color: var(--text-muted); }
.qt-input:hover { border-color: var(--border-strong); }
.qt-input:focus { border-color: var(--border-brand); outline: none; box-shadow: var(--qt-focus-ring); }

/* ---------- header + nav ---------- */
.qt-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--qt-grey-200);
  transition: box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--qt-container);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.qt-logo { flex: 0 0 auto; }
.qt-logo img { height: 36px; width: auto; display: block; }

.qt-scrollbar {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: var(--qt-gradient-brand);
  z-index: 80;
  transition: width .1s linear;
}

.qt-nav { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; flex-wrap: wrap; }
.qt-nav a {
  font-size: var(--qt-text-sm);
  color: var(--text-body);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--qt-dur) var(--qt-ease-out), background-color var(--qt-dur) var(--qt-ease-out);
}
.qt-nav a:hover { color: var(--qt-slate); background: var(--qt-slate-050); }
/* Scroll-spy state, set by qt-landing.js. The prototype hard-coded the current
   item on "home", so the nav never tracked where you actually were. The
   underline reads as position rather than as another hover. */
.qt-nav a.is-current {
  color: var(--qt-slate);
  font-weight: var(--qt-fw-semibold);
  background: var(--qt-slate-050);
}
.qt-nav a.is-current::after {
  content: "";
  position: absolute;
  inset-inline: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--qt-gradient-brand);
}
.qt-nav a { position: relative; }

.qt-lang { order: 8; display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.qt-lang__sep { color: var(--border-default); font-size: var(--qt-text-sm); }
.qt-lang__opt {
  font-family: inherit;
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-fw-medium);
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--qt-dur) var(--qt-ease-out);
}
.qt-lang__opt:hover { color: var(--qt-slate); }
.qt-lang__opt.is-active { color: var(--qt-slate); font-weight: var(--qt-fw-semibold); cursor: default; }

.qt-burger {
  display: none;
  order: 9;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--qt-radius-pill);
  cursor: pointer;
  padding: 0;
}
.qt-ctas { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; flex-wrap: wrap; }

@media (max-width: 1060px) {
  .qt-burger { display: flex; }
  .qt-lang { margin-inline-start: auto; }
  .qt-nav { display: none; }
  .qt-nav.is-open {
    display: flex;
    position: absolute;
    inset-inline: 16px;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--qt-grey-200);
    border-radius: var(--qt-radius-lg);
    padding: 12px;
    box-shadow: 0 18px 40px rgba(42, 72, 92, .12);
    z-index: 5;
  }
  .qt-nav.is-open a { padding: 14px; }
  .qt-ctas { display: none; }
  .qt-nav.is-open ~ .qt-ctas { display: flex; order: 10; width: 100%; padding-top: 12px; }
}

/* ---------- hero ---------- */
.qt-hero {
  position: relative;
  overflow: hidden;
  background: var(--qt-off-white);
  border-bottom: 1px solid var(--qt-grey-200);
}
.qt-hero__inner { padding: 76px 28px 0; }
.qt-hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 56px 48px;
  align-items: center;
}
/* Equal columns left the 520px-capped panel with 48px of slack that
   margin-inline-start:auto pushed entirely inward — stacking onto the 48px
   gap for ~96px of dead centre while the outer edges stayed tight. Giving the
   copy the wider share and centring the panel spends that space evenly. */
@media (min-width: 1060px) {
  .qt-hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); column-gap: 40px; }
}
.qt-hero__col { min-width: 0; }

/* decorative blurred orbs */
.qt-hero__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.qt-hero__orb--green {
  top: -160px; inset-inline-start: -130px; width: 540px; height: 540px; filter: blur(20px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(25, 231, 159, .24) 0%, rgba(250, 250, 250, 0) 100%);
}
.qt-hero__orb--slate {
  bottom: -200px; inset-inline-end: -150px; width: 620px; height: 620px; filter: blur(22px);
  background: radial-gradient(50% 50% at 50% 50%, rgba(42, 72, 92, .10) 0%, rgba(250, 250, 250, 0) 100%);
}

.qt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--qt-green-200);
  color: var(--qt-green-700);
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-fw-medium);
  padding: 7px 15px;
  border-radius: var(--qt-radius-pill);
  margin-bottom: 26px;
}
.qt-pulse { position: relative; width: 8px; height: 8px; flex: 0 0 auto; }
.qt-pulse span { position: absolute; inset: 0; border-radius: 50%; background: var(--qt-green); }
.qt-pulse span:last-child { animation: qRing 2.4s ease-out infinite; }

.qt-hero__title {
  /* Fluid between two scale steps rather than arbitrary px endpoints. */
  font-size: clamp(var(--qt-text-h2), 4.4vw, var(--qt-text-display));
  /* Deliberate deviation from --qt-lh-tight (1.1): three stacked Arabic lines
     at display size collide on the descenders below ~1.16. */
  line-height: 1.16;
  color: var(--qt-slate);
  font-weight: var(--qt-fw-bold);
  margin: 0 0 20px;
  letter-spacing: var(--qt-ls-display);
  text-wrap: balance;
}
.qt-hero__title span { display: inline-block; }
.qt-hero__title .qt-accent { color: var(--qt-green-700); }
.qt-hero__lede { font-size: var(--qt-text-lg); color: var(--qt-slate-500); margin: 0 0 30px; max-width: 520px; }
.qt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

/* ---------- scroll reveal ----------
   [data-reveal] elements stay visible until qt-landing.js arms them, so a JS
   failure or a no-JS client still sees the whole page. */
.qt-reveal-armed {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--qt-ease-out), transform .75s var(--qt-ease-out);
  will-change: opacity, transform;
}
.qt-reveal-armed.qt-reveal-in { opacity: 1; transform: translateY(0); will-change: auto; }

/* staged entrance — JS clears these when reduced motion is requested */
.qt-rise { opacity: 0; animation: qRise .8s var(--qt-ease-out) forwards; }
.qt-rise--1 { animation-delay: .05s; }
.qt-rise--2 { animation-delay: .12s; }
.qt-rise--3 { animation-delay: .24s; }
.qt-rise--4 { animation-delay: .36s; }
.qt-rise--5 { animation-delay: .46s; }
.qt-rise--6 { animation-delay: .56s; }
.qt-rise--7 { animation-delay: .66s; }
.qt-rise--panel { animation-duration: .9s; animation-delay: .3s; }

/* ---------- stats ---------- */
.qt-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.qt-stats__rule { width: 1px; background: var(--border-default); }
.qt-stat__value { font-size: var(--qt-text-h3); font-weight: var(--qt-fw-bold); color: var(--qt-slate); line-height: var(--qt-lh-tight); }
.qt-stat__label { font-size: var(--qt-text-sm); color: var(--qt-slate-muted); }

/* ---------- search demo panel ---------- */
.qt-demo {
  position: relative;
  background: #fff;
  border: 1px solid var(--qt-grey-200);
  border-radius: var(--qt-radius-lg);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(42, 72, 92, .12);
  max-width: 520px;
  margin-inline: auto;
}
.qt-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.qt-demo__title { font-size: var(--qt-text-sm); font-weight: var(--qt-fw-semibold); color: var(--qt-slate); }

.qt-demo__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border-default);
  background: var(--qt-white);
  border-radius: var(--qt-radius-md);
  padding: 0 16px;
  height: 58px;
  transition: border-color .3s ease;
  overflow: hidden;
}
/* The prototype greens the border only while matching, not once results land. */
.qt-demo__field.is-scanning { border-color: var(--qt-green); }
.qt-demo__query {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--qt-text-body);
  color: var(--qt-slate);
  direction: ltr;
  text-align: left;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
}
.qt-demo__caret {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--qt-green);
  vertical-align: -3px;
  animation: qBlink 1.1s steps(1) infinite;
}
.qt-demo__hint { flex: 0 0 auto; font-size: var(--qt-text-xs); color: var(--qt-slate-muted); }
.qt-demo__scan {
  position: absolute;
  inset-inline: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(25, 231, 159, 0) 0%, rgba(25, 231, 159, .12) 50%, rgba(25, 231, 159, 0) 100%);
  opacity: 0;
  animation: qScan 1.4s linear infinite;
  pointer-events: none;
  transition: opacity .2s linear;
}
.qt-demo__field.is-scanning .qt-demo__scan { opacity: 1; }

.qt-demo__body { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 216px; }
.qt-demo__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--qt-text-xs);
  color: var(--qt-slate-muted);
  height: 20px;
}
.qt-result {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--qt-grey-200);
  border-radius: var(--qt-radius-md);
  padding: 12px 14px;
  background: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s var(--qt-ease-out), transform .25s var(--qt-ease-out);
}
.qt-result.is-in { opacity: 1; transform: translateY(0); }
.qt-result__tag {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: var(--qt-radius-md);
  background: var(--qt-slate-050);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qt-green-700);
  font-size: var(--qt-text-xs);
  font-weight: var(--qt-fw-semibold);
}
.qt-result__main { flex: 1 1 auto; min-width: 0; }
.qt-result__name {
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-fw-semibold);
  color: var(--qt-slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qt-result__store { font-size: var(--qt-text-xs); color: var(--qt-slate-muted); }
.qt-result__side { flex: 0 0 auto; text-align: end; }
.qt-result__price { font-size: var(--qt-text-sm); font-weight: var(--qt-fw-bold); color: var(--qt-slate); direction: ltr; }
.qt-result__eta { font-size: var(--qt-text-xs); color: var(--qt-green-700); }

/* Saudi riyal glyph — self-hosted, see qt-riyal.css */
.q-riyal {
  font-family: "saudi_riyal" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
  font-size: 1.375em;
  vertical-align: baseline;
  margin-inline-end: .32em;
}
.q-riyal::before { content: "\e900"; }

/* ---------- brand marquee ---------- */
.qt-brandstrip__wrap {
  margin-top: 64px;
  border-top: 1px solid var(--qt-grey-200);
  padding: 16px 0;
  overflow: hidden;
}
.qt-brandstrip { display: flex; width: max-content; animation: qMarquee 46s linear infinite; }
.qt-brandstrip:hover { animation-play-state: paused; }
.qt-brandstrip__row { display: flex; align-items: center; gap: 56px; padding-inline-end: 56px; }
.q-brand {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: grayscale(1) opacity(.55);
  transition: filter var(--qt-dur) var(--qt-ease-out), transform var(--qt-dur) var(--qt-ease-out);
}
.q-brand:hover { filter: none; transform: scale(1.08); }

/* ============================================================
   SECTIONS — features / about / why / faq / contact / cta / footer
   ============================================================ */

.qt-section { padding: 104px 0; }
.qt-section--flush-top { padding: 0 0 104px; }
.qt-section--sunken { background: var(--qt-slate-050); overflow: hidden; }
.qt-section--dark { position: relative; background: var(--qt-slate); }

/* eyebrow pill — light on pale sections, tinted on slate ones */
.qt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--qt-text-sm);
  font-weight: var(--qt-fw-semibold);
  border-radius: var(--qt-radius-pill);
  padding: 6px 16px;
  margin-bottom: 18px;
  color: var(--qt-green-800);
  background: var(--qt-green-100);
}
.qt-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qt-green-600);
  flex: 0 0 auto;
}
.qt-pill--on-dark { color: var(--qt-green-300); background: rgba(25, 231, 159, .12); }
.qt-pill--on-dark::before { background: var(--qt-green); }

.qt-h2 {
  font-size: clamp(var(--qt-text-h3), 3.2vw, var(--qt-text-h1));
  line-height: var(--qt-lh-snug);
  color: var(--qt-slate);
  font-weight: var(--qt-fw-bold);
  margin: 0 0 12px;
  letter-spacing: var(--qt-ls-heading);
}
/* Smaller heading role: the contact panel and the closing CTA sit in narrower
   columns than a full-width section head. Replaces two inline clamps that were
   copied out of the prototype. */
.qt-h2--sm {
  font-size: clamp(var(--qt-text-h4), 2.8vw, var(--qt-text-h2));
  line-height: var(--qt-lh-snug);
}
.qt-h2--on-dark { color: #fff; }
.qt-sub { margin: 0; font-size: var(--qt-text-lg); color: var(--qt-slate-500); }

.qt-sectionhead { max-width: 640px; margin-bottom: 48px; }

/* ---------- features bento ---------- */
.q-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.q-bento > * { grid-column: auto; }
@media (min-width: 900px) {
  .q-bento { grid-template-columns: repeat(6, 1fr); }
  .q-bento > .q-w4 { grid-column: span 4; }
  .q-bento > .q-w2 { grid-column: span 2; }
}

.qt-card {
  min-width: 0;
  border: 1px solid var(--qt-grey-200);
  border-radius: var(--qt-radius-lg);
  padding: 34px 30px;
  background: var(--qt-slate-050);
  transition: transform var(--qt-dur) var(--qt-ease-out), background-color var(--qt-dur) ease;
}
.qt-card:hover { transform: translateY(-6px); background: #fff; }
.qt-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--qt-green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.qt-card__title { font-size: var(--qt-text-h4); color: var(--qt-slate); font-weight: var(--qt-fw-semibold); margin: 0 0 10px; }
.qt-card__text { margin: 0; font-size: var(--qt-text-body); color: var(--qt-slate-500); }

/* the wide dark feature card */
.qt-card--hero {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background: var(--qt-slate);
  transition: transform var(--qt-dur) var(--qt-ease-out), box-shadow var(--qt-dur) ease;
}
.qt-card--hero:hover { transform: translateY(-6px); background: var(--qt-slate); box-shadow: 0 28px 54px rgba(42, 72, 92, .18); }
.qt-card--hero .qt-card__orb {
  position: absolute;
  top: -100px;
  inset-inline-end: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(25, 231, 159, .20) 0%, rgba(42, 72, 92, 0) 100%);
  pointer-events: none;
}
.qt-card--hero .qt-card__body { position: relative; max-width: 440px; }
.qt-card--hero .qt-card__icon { width: 50px; height: 50px; border-radius: var(--qt-radius-md); background: var(--qt-slate-900); margin-bottom: 24px; }
.qt-card--hero h3 { font-size: var(--qt-text-h3); color: #fff; font-weight: var(--qt-fw-semibold); margin: 0 0 12px; line-height: var(--qt-lh-heading); }
.qt-card--hero p { margin: 0 0 28px; font-size: var(--qt-text-body); color: var(--qt-slate-200); }

.qt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.qt-chip {
  font-size: var(--qt-text-sm);
  color: var(--qt-off-white);
  background: var(--qt-slate-900);
  border-radius: var(--qt-radius-pill);
  padding: 7px 15px;
}

.qt-card--split { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.qt-card--split > :first-child { flex: 1 1 260px; min-width: 0; }
.qt-paylogos { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.qt-paylogos img { height: 30px; width: auto; max-width: 96px; object-fit: contain; flex: 0 0 auto; }

/* ---------- about ---------- */
.qt-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 56px;
  align-items: center;
}
.qt-checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.qt-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--qt-text-body); color: var(--qt-slate); }
.qt-checklist svg { flex: 0 0 auto; margin-top: 8px; }

.qt-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--qt-grey-200);
}
.qt-figure__value { font-size: var(--qt-text-h3); font-weight: var(--qt-fw-bold); color: var(--qt-slate); line-height: var(--qt-lh-tight); direction: ltr; }
.qt-figure__label { font-size: var(--qt-text-sm); color: var(--text-muted); }

.qt-ordercard__wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline-start: auto;
  padding-bottom: 74px;
  will-change: transform;
}
.qt-ordercard {
  position: relative;
  z-index: 1;
  background: var(--qt-white);
  border: 1px solid var(--border-default);
  border-radius: var(--qt-radius-lg);
  padding: 26px;
  box-shadow: 0 24px 50px rgba(42, 72, 92, .12);
}
.qt-ordercard__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--qt-grey-200);
}
.qt-ordercard__label { font-size: var(--qt-text-xs); color: var(--text-muted); }
/* The prototype used IBM Plex Mono for the order id; Azer has no mono cut, so
   the generic mono stack from --qt-font-mono is used instead. */
.qt-ordercard__id { font-family: var(--qt-font-mono); font-size: var(--qt-text-body); font-weight: var(--qt-fw-semibold); color: var(--qt-slate); direction: ltr; }
.qt-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--qt-green-100);
  color: var(--qt-green-800);
  font-size: var(--qt-text-xs);
  font-weight: var(--qt-fw-semibold);
  border-radius: var(--qt-radius-pill);
  padding: 6px 14px;
}
.qt-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--qt-green-600); }
.qt-ordercard__meta { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: var(--qt-text-sm); color: var(--qt-slate-500); }
.qt-ordercard__meta svg { flex: 0 0 auto; }
.qt-ordercard__lines { display: flex; flex-direction: column; gap: 12px; }
.qt-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qt-line__name { font-size: var(--qt-text-sm); font-weight: var(--qt-fw-semibold); color: var(--qt-slate); }
.qt-line__store { font-size: var(--qt-text-xs); color: var(--text-muted); }
.qt-line__price { font-size: var(--qt-text-sm); font-weight: var(--qt-fw-semibold); color: var(--qt-slate); direction: ltr; flex: 0 0 auto; }
.qt-ordercard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--qt-grey-200);
}
.qt-ordercard__note { font-size: var(--qt-text-sm); color: var(--qt-slate-500); }
.qt-ordercard__total { font-size: var(--qt-text-lg); font-weight: var(--qt-fw-bold); color: var(--qt-slate); direction: ltr; }
.qt-floatbadge {
  position: absolute;
  inset-inline-start: -18px;
  bottom: 0;
  z-index: 2;
  background: var(--qt-slate);
  color: var(--qt-off-white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 36px rgba(42, 72, 92, .22);
}
.qt-floatbadge__label { font-size: var(--qt-text-xs); color: var(--qt-slate-200); }
.qt-floatbadge__value { font-size: var(--qt-text-h4); font-weight: var(--qt-fw-bold); color: var(--qt-green-300); }

/* ---------- why: comparison ---------- */
.qt-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 36px 0 56px; }
.qt-compare__col {
  border: 1px solid #3c5e73;
  border-radius: var(--qt-radius-lg);
  padding: 30px 28px;
  background: rgba(255, 255, 255, .03);
}
.qt-compare__col--good { border-color: var(--qt-green); background: rgba(25, 231, 159, .08); }
.qt-compare__tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--qt-text-xs);
  font-weight: var(--qt-fw-semibold);
  color: var(--qt-slate-200);
  background: rgba(255, 255, 255, .07);
  border-radius: var(--qt-radius-pill);
  padding: 6px 14px;
  margin-bottom: 20px;
}
.qt-compare__col--good .qt-compare__tag { color: var(--qt-slate); background: var(--qt-green); }
.qt-compare__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; }
.qt-compare__list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--qt-text-body); color: var(--qt-slate-200); }
.qt-compare__col--good .qt-compare__list li { color: #fff; }
.qt-compare__list svg { flex: 0 0 auto; margin-top: 7px; }

/* ---------- why: sticky stepper ---------- */
.qt-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; align-items: start; }
.qt-steps__aside { min-width: 0; align-self: stretch; height: 100%; }
.qt-sticky {
  position: sticky;
  top: 110px;
  padding: 34px 32px;
  border: 1px solid #3c5e73;
  border-radius: var(--qt-radius-lg);
  background: var(--qt-slate-900);
}
.qt-sticky__count { font-size: var(--qt-text-sm); color: var(--qt-slate-200); margin-bottom: 10px; }
.qt-sticky__title { font-size: var(--qt-text-h3); color: #fff; font-weight: var(--qt-fw-semibold); line-height: var(--qt-lh-heading); margin-bottom: 20px; }
.qt-sticky__track { height: 4px; border-radius: var(--qt-radius-pill); background: #3c5e73; overflow: hidden; }
.qt-sticky__bar {
  height: 100%;
  width: 20%;
  background: var(--qt-gradient-brand);
  border-radius: var(--qt-radius-pill);
  transition: width .25s var(--qt-ease-out);
}
.qt-sticky__dots { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.qt-sticky__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3c5e73;
  transition: background-color var(--qt-dur) var(--qt-ease-out);
}
.qt-sticky__dots span.is-on { background: var(--qt-green); }

.qt-steps__list { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.qt-step {
  border: 1px solid #3c5e73;
  border-radius: var(--qt-radius-lg);
  padding: 30px 28px;
  background: var(--qt-slate-900);
  transition: opacity .25s var(--qt-ease-out), transform .25s var(--qt-ease-out), border-color .25s var(--qt-ease-out);
}
.qt-step__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.qt-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--qt-slate);
  color: var(--qt-green-300);
  font-size: var(--qt-text-xs);
  font-weight: var(--qt-fw-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.qt-step__title { font-size: var(--qt-text-lg); color: #fff; font-weight: var(--qt-fw-semibold); }
.qt-step p { margin: 0; font-size: var(--qt-text-body); color: var(--qt-slate-200); }
/* final step is permanently highlighted — the prototype skips index 4 when
   repainting borders, so it keeps its green edge at every scroll position */
.qt-step--final { border-color: var(--qt-green); background: #1d3d33; }
.qt-step--final .qt-step__num { background: var(--qt-green); color: var(--qt-slate); }
.qt-step--final p { color: var(--qt-green-100); }

.qt-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 64px; }
.qt-trio__card { border: 1px solid #3c5e73; border-radius: var(--qt-radius-lg); padding: 32px 28px; background: var(--qt-slate-900); }
.qt-trio__card h3 { font-size: var(--qt-text-h4); color: #fff; font-weight: var(--qt-fw-semibold); margin: 0 0 10px; }
.qt-trio__card p { margin: 0; font-size: var(--qt-text-body); color: var(--qt-slate-200); }

/* ---------- faq accordion ---------- */
/* Equal halves left a tall column of dead space beside a three-line heading.
   The questions are the content, so they take the larger share, and the
   heading sticks alongside them instead of scrolling away into emptiness. */
.qt-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
@media (min-width: 1060px) {
  .qt-faq-grid { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; }
  .qt-faq-grid > :first-child { position: sticky; top: 110px; }
}
.qt-faq { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qt-faq__item {
  background: #fff;
  border: 1px solid var(--qt-grey-200);
  border-radius: var(--qt-radius-lg);
  overflow: hidden;
  transition: box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-faq__item:hover { box-shadow: 0 14px 32px rgba(42, 72, 92, .08); }
.qt-faq__item:has(.qt-faq__q[aria-expanded="true"]) { border-color: var(--qt-green-300); }
.qt-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 22px 24px;
  font-family: inherit;
  font-size: var(--qt-text-lg);
  /* A <button> does not inherit line-height, so this was falling back to the
     UA default instead of the scale. */
  line-height: var(--qt-lh-snug);
  font-weight: var(--qt-fw-semibold);
  color: var(--qt-slate);
  cursor: pointer;
  text-align: start;
  transition: color var(--qt-dur) var(--qt-ease-out);
}
.qt-faq__q:hover { color: var(--qt-green-800); }
.qt-faq__sign {
  color: var(--qt-green-700);
  /* A glyph, not copy — but still sized from the scale rather than by eye. */
  font-size: var(--qt-text-h4);
  font-weight: var(--qt-fw-light);
  line-height: 1;
  flex: 0 0 auto;
  transition: transform var(--qt-dur) var(--qt-ease-out);
}
.qt-faq__q[aria-expanded="true"] .qt-faq__sign { transform: rotate(45deg); }
/* grid-template-rows 0fr -> 1fr animates to auto height without a fixed px */
.qt-faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s var(--qt-ease-out); }
.qt-faq__q[aria-expanded="true"] + .qt-faq__panel { grid-template-rows: 1fr; }
.qt-faq__panel > div { overflow: hidden; }
.qt-faq__a { padding: 0 24px 22px; font-size: var(--qt-text-body); color: var(--qt-slate-500); }

/* ---------- contact ---------- */
.qt-contact {
  border: 1px solid var(--qt-grey-200);
  border-radius: var(--qt-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.qt-contact__aside { min-width: 0; padding: 48px 44px; background: var(--qt-slate-050); }
.qt-contact__rows { display: flex; flex-direction: column; gap: 14px; }
.qt-contact__row {
  border: 1px solid var(--qt-grey-200);
  background: #fff;
  border-radius: var(--qt-radius-md);
  padding: 20px 22px;
  transition: transform var(--qt-dur) var(--qt-ease-out), border-color var(--qt-dur) var(--qt-ease-out);
}
/* translateX(-6px) in the prototype was authored for RTL; the logical
   property keeps the nudge pointing inward in both directions. */
.qt-contact__row:hover { transform: translateX(-6px); border-color: var(--qt-green-300); }
[dir="ltr"] .qt-contact__row:hover { transform: translateX(6px); }
.qt-contact__label { font-size: var(--qt-text-sm); color: var(--qt-slate-muted); margin-bottom: 2px; }
.qt-contact__value { font-size: var(--qt-text-lg); font-weight: var(--qt-fw-semibold); color: var(--qt-slate); direction: ltr; display: block; }
.qt-landing a.qt-contact__value { color: var(--qt-slate); }
.qt-landing a.qt-contact__value:hover { color: var(--qt-green-700); }

/* Stands in for the form panel: same padding and surface so the two-column
   card keeps its balance, centred vertically because there is far less
   content in it now. */
.qt-contact__panel {
  min-width: 0;
  padding: 48px 44px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.qt-contact__invite {
  margin: 0;
  font-size: var(--qt-text-lg);
  line-height: var(--qt-lh-relaxed);
  color: var(--qt-slate-500);
  max-width: 34ch;
}

/* Kept: /contact-us still renders the real form, and these are its styles. */
.qt-form { min-width: 0; padding: 48px 44px; background: #fff; display: flex; flex-direction: column; gap: 16px; }
.qt-form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.qt-form__row > * { flex: 1 1 200px; min-width: 0; }
.qt-input--sm { height: 44px; font-size: var(--qt-text-sm); }
.qt-textarea {
  width: 100%;
  border: 1px solid var(--border-default);
  border-radius: var(--qt-radius-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: var(--qt-text-body);
  color: var(--qt-slate);
  background: var(--qt-white);
  resize: vertical;
  transition: border-color var(--qt-dur) var(--qt-ease-out), box-shadow var(--qt-dur) var(--qt-ease-out);
}
.qt-textarea::placeholder { color: var(--text-muted); }
.qt-textarea:focus { border-color: var(--qt-green); outline: none; box-shadow: var(--qt-focus-ring); }
.qt-form__actions { align-self: flex-start; }
.qt-form__status { font-size: var(--qt-text-sm); margin: 0; }
.qt-form__status--ok { color: var(--qt-green-800); }
.qt-form__status--err { color: var(--qt-danger); }

/* ---------- closing CTA ---------- */
.qt-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--qt-radius-lg);
  background: var(--qt-slate);
  padding: 64px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.qt-cta__orb {
  position: absolute;
  top: -120px;
  inset-inline-start: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(25, 231, 159, .24) 0%, rgba(42, 72, 92, 0) 100%);
  pointer-events: none;
}
.qt-cta__copy { position: relative; flex: 1 1 380px; min-width: 0; }
.qt-cta__copy h2 {
  font-size: clamp(var(--qt-text-h4), 2.8vw, var(--qt-text-h2));
  line-height: var(--qt-lh-heading);
  color: #fff;
  font-weight: var(--qt-fw-bold);
  margin: 0 0 12px;
  letter-spacing: var(--qt-ls-heading);
}
.qt-cta__copy p { margin: 0; font-size: var(--qt-text-body); color: var(--qt-slate-200); max-width: 460px; }
.qt-cta__action { position: relative; flex: 0 0 auto; }
/* Kept for the /download/ page, which still shows both store badges. */
.qt-storebadges { position: relative; flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 14px; }
.qt-storebadges a { display: inline-flex; transition: transform var(--qt-dur) var(--qt-ease-out); }
.qt-storebadges a:hover { transform: translateY(-3px); }
/* These SVGs ship a viewBox but no width/height, so `width:auto` has no
   intrinsic ratio to resolve against. 94.66/41.58 = 2.2767 -> 118x52. */
.qt-storebadges img { width: 118px; height: 52px; display: block; }

/* ---------- footer ---------- */
.qt-footer { border-top: 1px solid var(--qt-grey-200); padding: 48px 0 32px; }
.qt-footer__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.qt-footer__logo { height: 40px; width: auto; }
.qt-footer__links { display: flex; flex-wrap: wrap; gap: 24px 32px; font-size: var(--qt-text-sm); }
.qt-landing .qt-footer__links a { color: var(--text-body); }
.qt-landing .qt-footer__links a:hover { color: var(--qt-green-700); }
.qt-footer__social { display: flex; gap: 14px; }
.qt-footer__social a { display: inline-flex; padding: 2px; transition: transform var(--qt-dur) var(--qt-ease-out); }
.qt-footer__social a:hover { transform: translateY(-3px); }
/* Social glyphs are 105.92/70.66 = 1.499, not square — forcing 1:1 squashes
   them. Same 42x28 the prototype used. */
.qt-footer__social img { width: 42px; height: 28px; display: block; }
.qt-footer__legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--qt-grey-200);
  font-size: var(--qt-text-sm);
  color: var(--qt-slate-muted);
  text-align: center;
}

/* ---------- reduced motion ----------
   The prototype only silenced the marquee; the entrance animations and the
   looping demo are silenced here too, and qt-landing.js jumps counters and
   the demo straight to their end state. */
@media (prefers-reduced-motion: reduce) {
  .qt-brandstrip,
  .qt-pulse span:last-child,
  .qt-demo__caret,
  .qt-demo__scan { animation: none !important; }
  .qt-rise { opacity: 1 !important; animation: none !important; }
  .qt-result { opacity: 1 !important; transform: none !important; transition: none !important; }
  .qt-demo__scan { opacity: 0 !important; }
  /* Keep hover affordances readable but stop the movement. */
  .qt-card, .qt-card--hero, .qt-contact__row, .qt-storebadges a, .qt-footer__social a,
  .qt-step, .qt-sticky__bar, .qt-faq__panel, .qt-faq__sign { transition: none !important; }
  .qt-card:hover, .qt-card--hero:hover, .qt-contact__row:hover,
  .qt-storebadges a:hover, .qt-footer__social a:hover { transform: none !important; }
  /* Parallax is JS-driven; qt-landing.js skips it, this clears any inline value. */
  [data-parallax] { transform: none !important; }
}
