/* ==========================================================================
   MARKETING DESIGN SYSTEM
   Components for the public-facing site. Every value comes from the :root
   theme in styles.css — no literals. Works in light and dark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section shell
   -------------------------------------------------------------------------- */

.qdSection {
  position: relative;
  padding: var(--qd-section-y) var(--qd-section-x);
}

.qdSection--divided { border-top: 1px solid var(--qd-line-soft); }
.qdSection--tight   { padding-block: calc(var(--qd-section-y) * 0.55); }

/* Soft brand wash behind a section. */
.qdSection--wash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 18% 0%, rgba(var(--qd-accent-rgb), 0.08), transparent 70%),
    radial-gradient(50% 50% at 88% 20%, rgba(var(--qd-gradB-rgb), 0.07), transparent 70%);
}

.qdSection > * { position: relative; }

.qdInner {
  max-width: var(--qd-max);
  margin: 0 auto;
}

.qdInner--narrow { max-width: 860px; }
.qdInner--mid    { max-width: 1080px; }

/* --------------------------------------------------------------------------
   Section header
   -------------------------------------------------------------------------- */

.qdHead { margin-bottom: 34px; }
.qdHead--center { text-align: center; margin-inline: auto; max-width: 760px; }

.qdEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--qd-r-pill);
  font-size: var(--qd-fs-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qd-muted);
  background: var(--qd-surface-sunken);
  border: 1px solid var(--qd-line);
  margin-bottom: 16px;
}

.qdEyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qd-gradA);
  box-shadow: 0 0 8px var(--qd-gradA);
}

.qdTitle {
  margin: 0 0 14px;
  font-size: var(--qd-fs-3xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--qd-text);
}

.qdTitle--sm { font-size: var(--qd-fs-2xl); }

/* Gradient text, used sparingly on one phrase per page. */
.qdAccent {
  background: linear-gradient(100deg, var(--qd-gradA), var(--qd-gradB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qdLead {
  margin: 0;
  max-width: 68ch;
  font-size: var(--qd-fs-md);
  line-height: 1.7;
  font-weight: 500;
  color: var(--qd-muted);
}

.qdHead--center .qdLead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Grid — auto-fit, so a row never leaves a ragged hole the way a fixed
   3-column grid does with 4 items.
   -------------------------------------------------------------------------- */

.qdGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.qdGrid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.qdGrid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* --------------------------------------------------------------------------
   Feature card
   -------------------------------------------------------------------------- */

.qdFeature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--qd-gap);
  padding: 22px;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}

.qdFeature:hover {
  transform: translateY(-3px);
  box-shadow: var(--qd-shadow-hover);
  border-color: rgba(var(--qd-gradA-rgb), 0.35);
}

.qdFeature__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--qd-r-sm);
  background: linear-gradient(140deg,
    rgba(var(--qd-gradA-rgb), 0.18),
    rgba(var(--qd-gradB-rgb), 0.18));
  border: 1px solid var(--qd-line);
  font-size: var(--qd-fs-md);
}

.qdFeature h3 {
  margin: 0;
  font-size: var(--qd-fs-md);
  font-weight: 750;
  color: var(--qd-text);
}

.qdFeature p {
  margin: 0;
  font-size: var(--qd-fs-sm);
  line-height: 1.65;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.qdStatRow {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.qdStat {
  padding: 20px;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface-sunken);
  text-align: center;
}

.qdStat__num {
  display: block;
  font-size: var(--qd-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(100deg, var(--qd-gradA), var(--qd-gradB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qdStat__label {
  display: block;
  margin-top: 8px;
  font-size: var(--qd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Tags / tech-stack pills
   -------------------------------------------------------------------------- */

.qdTagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qdTag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--qd-r-pill);
  font-size: var(--qd-fs-xs);
  font-weight: 700;
  color: var(--qd-muted);
  background: var(--qd-surface-sunken);
  border: 1px solid var(--qd-line);
  transition: color var(--qd-transition), border-color var(--qd-transition);
}

.qdTag:hover {
  color: var(--qd-text);
  border-color: rgba(var(--qd-gradA-rgb), 0.4);
}

/* --------------------------------------------------------------------------
   Page hero — smaller than the homepage hero, used on every inner page
   -------------------------------------------------------------------------- */

.qdPageHero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) var(--qd-section-x) var(--qd-section-y);
  overflow: hidden;
}

.qdPageHero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 520px;
  pointer-events: none;
  background:
    radial-gradient(45% 60% at 20% 40%, rgba(var(--qd-accent-rgb), 0.16), transparent 70%),
    radial-gradient(40% 55% at 78% 30%, rgba(var(--qd-gradB-rgb), 0.14), transparent 70%),
    radial-gradient(35% 50% at 50% 70%, rgba(var(--qd-gradA-rgb), 0.10), transparent 70%);
  filter: blur(6px);
}

.qdPageHero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--qd-max);
  margin: 0 auto;
}

.qdPageHero__title {
  margin: 0 0 18px;
  font-size: var(--qd-fs-3xl);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--qd-text);
}

.qdPageHero__lead {
  margin: 0 0 26px;
  max-width: 56ch;
  font-size: var(--qd-fs-md);
  line-height: 1.7;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Metadata cards (Xino-style project meta)
   -------------------------------------------------------------------------- */

.qdMeta {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--qd-line);
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-r-lg);
  overflow: hidden;
}

.qdMeta__cell {
  padding: 18px;
  background: var(--qd-surface);
}

.qdMeta__k {
  display: block;
  font-size: var(--qd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-muted);
  margin-bottom: 6px;
}

.qdMeta__v {
  font-size: var(--qd-fs-base);
  font-weight: 700;
  color: var(--qd-text);
}

/* --------------------------------------------------------------------------
   Screenshot placeholder frame — drop a real image in later with no reflow
   -------------------------------------------------------------------------- */

.qdFrame {
  position: relative;
  border-radius: var(--qd-r-2xl);
  border: 1px solid var(--qd-line-strong);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-hover);
  overflow: hidden;
}

.qdFrame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--qd-line-soft);
  background: var(--qd-surface-sunken);
}

.qdFrame__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--qd-line-strong);
}

.qdFrame__url {
  flex: 1;
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: var(--qd-r-pill);
  background: var(--qd-surface);
  border: 1px solid var(--qd-line-soft);
  font-size: var(--qd-fs-xs);
  color: var(--qd-muted);
}

.qdFrame__body {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
}

.qdFrame__body > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qdFrame__hint {
  font-size: var(--qd-fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.qdPricing {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: start;
}

.qdPricing__tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--qd-r-xl);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}

.qdPricing__tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--qd-shadow-hover);
}

/* Featured tier gets the brand gradient ring, matching .pillOutline. */
.qdPricing__tier--featured { border-color: transparent; }

.qdPricing__tier--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--qd-outline);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.qdPricing__badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 12px;
  border-radius: var(--qd-r-pill);
  font-size: var(--qd-fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-on-accent);
  background: linear-gradient(100deg, var(--qd-gradA), var(--qd-gradB));
}

.qdPricing__name {
  margin: 0 0 6px;
  font-size: var(--qd-fs-md);
  font-weight: 750;
  color: var(--qd-text);
}

.qdPricing__blurb {
  margin: 0 0 18px;
  font-size: var(--qd-fs-sm);
  line-height: 1.6;
  color: var(--qd-muted);
  min-height: 3em;
}

.qdPricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.qdPricing__amount {
  font-size: var(--qd-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--qd-text);
}

.qdPricing__period {
  font-size: var(--qd-fs-sm);
  color: var(--qd-muted);
}

.qdPricing__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  flex: 1;
}

.qdPricing__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--qd-fs-sm);
  line-height: 1.5;
  color: var(--qd-muted);
}

.qdPricing__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(var(--qd-gradA-rgb), 0.9), rgba(var(--qd-gradB-rgb), 0.9));
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
  mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.qdCompareWrap {
  overflow-x: auto;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
}

.qdCompare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--qd-surface);
  font-size: var(--qd-fs-sm);
}

.qdCompare th,
.qdCompare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--qd-line-soft);
}

.qdCompare thead th {
  font-size: var(--qd-fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qd-muted);
  background: var(--qd-surface-sunken);
}

.qdCompare tbody tr:last-child td { border-bottom: 0; }
.qdCompare tbody tr:hover { background: var(--qd-surface-sunken); }
.qdCompare td:first-child { font-weight: 650; color: var(--qd-text); }
.qdCompare__yes { color: var(--qd-gradA); font-weight: 800; }
.qdCompare__no  { color: var(--qd-muted); opacity: 0.5; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.qdQuote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
}

.qdQuote__mark {
  font-size: var(--qd-fs-2xl);
  line-height: 0.6;
  font-weight: 800;
  color: rgba(var(--qd-gradB-rgb), 0.45);
}

.qdQuote__body {
  margin: 0;
  font-size: var(--qd-fs-base);
  line-height: 1.7;
  color: var(--qd-text);
}

.qdQuote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.qdQuote__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: var(--qd-fs-sm);
  font-weight: 800;
  color: var(--qd-on-accent);
  background: linear-gradient(140deg, var(--qd-gradA), var(--qd-gradB));
}

.qdQuote__name { font-size: var(--qd-fs-sm); font-weight: 750; color: var(--qd-text); }
.qdQuote__role { font-size: var(--qd-fs-xs); color: var(--qd-muted); }

/* --------------------------------------------------------------------------
   Logo wall
   -------------------------------------------------------------------------- */

.qdLogoWall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.qdLogoWall__item {
  display: grid;
  place-items: center;
  min-width: 150px;
  height: 62px;
  padding: 0 22px;
  border-radius: var(--qd-r-md);
  border: 1px solid var(--qd-line-soft);
  background: var(--qd-surface-sunken);
  font-size: var(--qd-fs-sm);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--qd-muted);
  opacity: 0.75;
  transition: opacity var(--qd-transition), border-color var(--qd-transition);
}

.qdLogoWall__item:hover {
  opacity: 1;
  border-color: rgba(var(--qd-gradA-rgb), 0.35);
}

/* --------------------------------------------------------------------------
   Case-study card
   -------------------------------------------------------------------------- */

.qdCase {
  display: flex;
  flex-direction: column;
  border-radius: var(--qd-r-xl);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease, border-color 0.35s ease;
}

.qdCase:hover {
  transform: translateY(-4px);
  box-shadow: var(--qd-shadow-hover);
  border-color: rgba(var(--qd-gradB-rgb), 0.35);
}

.qdCase__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--qd-line-soft);
}

.qdCase__body { padding: 22px; display: grid; gap: 10px; }

.qdCase__title {
  margin: 0;
  font-size: var(--qd-fs-md);
  font-weight: 750;
  color: var(--qd-text);
}

.qdCase__blurb {
  margin: 0;
  font-size: var(--qd-fs-sm);
  line-height: 1.6;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Timeline / roadmap
   -------------------------------------------------------------------------- */

.qdTimeline {
  position: relative;
  display: grid;
  gap: 26px;
  padding-left: 34px;
}

.qdTimeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--qd-gradA), var(--qd-gradB), transparent);
}

.qdTimeline__item { position: relative; }

.qdTimeline__item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--qd-surface);
  background: linear-gradient(140deg, var(--qd-gradA), var(--qd-gradB));
  box-shadow: 0 0 0 3px var(--qd-line-soft);
}

.qdTimeline__when {
  font-size: var(--qd-fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-gradA);
}

.qdTimeline__title {
  margin: 4px 0 6px;
  font-size: var(--qd-fs-md);
  font-weight: 750;
  color: var(--qd-text);
}

.qdTimeline__body {
  margin: 0;
  font-size: var(--qd-fs-sm);
  line-height: 1.65;
  color: var(--qd-muted);
}

/* Progress bar for roadmap completion. */
.qdProgress {
  margin-top: 12px;
  height: 6px;
  border-radius: var(--qd-r-pill);
  background: var(--qd-surface-sunken);
  border: 1px solid var(--qd-line-soft);
  overflow: hidden;
}

.qdProgress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--qd-gradA), var(--qd-gradB));
}

/* --------------------------------------------------------------------------
   Numbered steps
   -------------------------------------------------------------------------- */

.qdSteps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: qdstep;
}

.qdStep {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  counter-increment: qdstep;
}

.qdStep::before {
  content: counter(qdstep, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: var(--qd-fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, var(--qd-gradA), var(--qd-gradB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.qdStep h3 {
  margin: 0 0 8px;
  font-size: var(--qd-fs-base);
  font-weight: 750;
  color: var(--qd-text);
}

.qdStep p {
  margin: 0;
  font-size: var(--qd-fs-sm);
  line-height: 1.65;
  color: var(--qd-muted);
}

/* --------------------------------------------------------------------------
   Knowledge-base card
   -------------------------------------------------------------------------- */

.qdKbCard {
  display: block;
  padding: 20px;
  border-radius: var(--qd-r-lg);
  border: 1px solid var(--qd-line);
  background: var(--qd-surface);
  text-decoration: none;
  transition: border-color var(--qd-transition), transform 0.3s ease;
}

.qdKbCard:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--qd-gradA-rgb), 0.4);
}

.qdKbCard__kicker {
  font-size: var(--qd-fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qd-gradA);
}

.qdKbCard__title {
  margin: 8px 0 6px;
  font-size: var(--qd-fs-base);
  font-weight: 750;
  color: var(--qd-text);
}

.qdKbCard__body {
  margin: 0;
  font-size: var(--qd-fs-sm);
  line-height: 1.6;
  color: var(--qd-muted);
}

/* Search box */
.qdSearch {
  display: flex;
  align-items: center;
  gap: var(--qd-gap);
  max-width: 560px;
  padding: 0 16px;
  height: 52px;
  border-radius: var(--qd-r-pill);
  border: 1px solid var(--qd-line-strong);
  background: var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
}

.qdSearch input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: var(--qd-fs-base);
  color: var(--qd-text);
}

.qdSearch input::placeholder { color: var(--qd-muted); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.qdCta {
  position: relative;
  padding: 52px 34px;
  border-radius: var(--qd-r-2xl);
  border: 1px solid var(--qd-line);
  background:
    radial-gradient(70% 120% at 12% 0%, rgba(var(--qd-accent-rgb), 0.14), transparent 70%),
    radial-gradient(60% 110% at 88% 100%, rgba(var(--qd-gradB-rgb), 0.14), transparent 70%),
    var(--qd-surface);
  box-shadow: var(--qd-shadow-card);
  text-align: center;
  overflow: hidden;
}

.qdCta__title {
  margin: 0 0 12px;
  font-size: var(--qd-fs-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--qd-text);
}

.qdCta__lead {
  margin: 0 auto 26px;
  max-width: 56ch;
  font-size: var(--qd-fs-base);
  line-height: 1.7;
  color: var(--qd-muted);
}

.qdCta .btnRow { justify-content: center; }

/* --------------------------------------------------------------------------
   Prose (legal pages, long-form)
   -------------------------------------------------------------------------- */

.qdProse { max-width: 74ch; color: var(--qd-muted); }
.qdProse h2 {
  margin: 36px 0 12px;
  font-size: var(--qd-fs-lg);
  font-weight: 750;
  color: var(--qd-text);
}
.qdProse p, .qdProse li { font-size: var(--qd-fs-base); line-height: 1.75; }
.qdProse ul { padding-left: 20px; }
.qdProse a { color: var(--qd-gradA); }

/* --------------------------------------------------------------------------
   Button variant for light sections.
   .btnGhost sets color: var(--hero-text) because it was built for the dark
   hero — on a light surface that is white-on-white. index.html worked around
   it with inline styles; this replaces that.
   -------------------------------------------------------------------------- */

.btnGhost--onLight {
  color: var(--qd-text);
  background: var(--qd-surface);
}

.btnGhost--onLight:hover { background: var(--qd-surface-sunken); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .qdPageHero__grid { grid-template-columns: 1fr; gap: 34px; }
  .qdPageHero { padding-top: calc(var(--nav-h) + 40px); }
}

@media (max-width: 620px) {
  .qdCta { padding: 36px 20px; }
  .qdSection { padding-inline: 16px; }
}

/* --------------------------------------------------------------------------
   Active nav state — current_path was passed to every template but unused
   until now.
   -------------------------------------------------------------------------- */

.qdNav__link.isActive {
  color: var(--qd-text);
  font-weight: 800;
}

.qdNav__link.isActive::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: var(--qd-r-pill);
  background: linear-gradient(90deg, var(--qd-gradA), var(--qd-gradB));
}
