:root {
  --hq-blue: #0555ae;
  --hq-blue-deep: #044890;
  --hq-blue-soft: #e8f1fb;
  --hq-gold: #a8844a;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-band: #eef5fc;
  --text: #1a2332;
  --text-muted: #5a6577;
  --line: rgba(5, 85, 174, 0.12);
  --shadow: 0 12px 32px rgba(26, 35, 50, 0.08);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --nav-h: 58px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --test-url: https://evergreen.housequest.com;

  /* Spacing ladder — Fibonacci (8 / 13 / 21 / 34 / 55 / 89). */
  --space-3xs: 0.3125rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.8125rem;
  --space-sm: 1.3125rem;
  --space-md: 2.125rem;
  --space-lg: 3.4375rem;
  --space-xl: 5.5625rem;
  --pad: clamp(var(--space-sm), 4vw, var(--space-lg));

  /* Type scale — perfect fourth (1.333) from 16px. UI chrome uses sm/xs,
     display type uses lg → 3xl so headings stay in one family. */
  --fs-md: 1rem;
  --type-ratio: 1.333;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-label: 0.875rem;
  --fs-lg: calc(var(--fs-md) * var(--type-ratio));
  --fs-xl: calc(var(--fs-lg) * var(--type-ratio));
  --fs-2xl: calc(var(--fs-xl) * var(--type-ratio));
  --fs-3xl: calc(var(--fs-2xl) * var(--type-ratio));
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

.wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo img {
  height: clamp(20px, 2vw, 26px);
  width: auto;
  display: block;
}

@media (min-width: 1600px) {
  .logo img {
    height: clamp(32px, 2.5vw, 44px);
  }
}

.nav-links {
  display: none;
  gap: calc(clamp(1.25rem, 3.2vw, 2.5rem) + var(--space-sm));
  align-items: center;
}
.nav-links a {
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--hq-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
  flex-shrink: 0;
}
.nav-cta .btn {
  padding: 0.5rem 0.85rem;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  /* Keep nav CTA width stable across pages (Personality Test / Agent Access) */
  min-width: 8.45rem;
  box-sizing: border-box;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-3xs);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 879px) {
  .nav {
    gap: var(--space-2xs);
  }
  .nav-cta .btn {
    padding: 0.5rem 0.85rem;
    font-size: clamp(0.65rem, 1.1vw, 0.8rem);
    white-space: nowrap;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2xs) var(--pad) var(--space-xs);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav-links {
    display: flex;
    flex: none;
    justify-content: flex-start;
  }
  .nav-links a {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (min-width: 880px) {
  .nav-links {
    display: flex;
    flex: 1;
    justify-content: center;
    min-width: 0;
    margin: 0 clamp(0.5rem, 2vw, 2rem);
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-toggle {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  border: 1.5px solid transparent;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--hq-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(5, 85, 174, 0.22);
}
.btn-primary:hover { background: var(--hq-blue-deep); }
.btn-ghost {
  background: #fff;
  border-color: rgba(5, 85, 174, 0.28);
  color: var(--hq-blue);
}
.btn-ghost:hover { background: var(--hq-blue-soft); }
.btn-lg { padding: var(--space-xs) var(--space-md); font-size: var(--fs-md); }
.btn-light {
  background: #fff;
  color: var(--hq-blue);
}
.btn-light:hover { background: var(--hq-blue-soft); }

/* Hero - copy above a full-bleed image that scales with width
   (avoids cover-overlap on short wide laptop screens). */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  background: var(--bg-soft);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  max-width: 46rem;
  margin: 0 auto;
  padding:
    clamp(var(--space-sm), 4vw, var(--space-md))
    var(--pad)
    clamp(var(--space-xs), 2.6vw, var(--space-sm));
}

.hero-kicker {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hq-gold);
}

.hero h1 {
  margin: 0 auto var(--space-xs);
  max-width: min(52rem, 96vw);
  font-size: clamp(var(--fs-xl), 1.8vw + 1.15rem, var(--fs-3xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 560px) {
  .hero h1 {
    white-space: normal;
    font-size: clamp(var(--fs-xl), 6vw, var(--fs-2xl));
  }
}

.hero-lede {
  margin: 0 auto;
  max-width: 40rem;
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.how-cta {
  margin-top: var(--space-md);
}

.section-cast {
  background: var(--bg-soft);
  padding-block: var(--space-lg);
}

.cast-cta {
  margin-top: var(--space-md);
}

.hero-media {
  position: relative;
  z-index: 0;
  width: 100%;
  margin-top: clamp(-1.5rem, -2.5vw, -0.5rem);
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Trial: avatar illustration in the hero. Revert by removing
   .hero--avatars and restoring assets/hero-open-house-v9.png. */
.hero--avatars {
  --hero-path: rgb(202 188 181);
  isolation: auto;
  overflow: visible;
  padding-top: calc(clamp(0.85rem, 9.4%, 2.35rem) + var(--space-md));
  background: var(--bg);
}
.hero--avatars.hero--earthscape {
  --hero-path: rgb(218 227 170);
  --hero-grass: #dae3aa;
  --hero-sky: #d8eefc;
  background: var(--bg);
  padding-top: 0;
}
.hero--avatars .hero-fade-top,
.hero--avatars .hero-fade-bottom,
.hero--avatars .hero-media-caption {
  display: none;
}
.hero--avatars .hero-media {
  position: relative;
  margin-top: 0;
  width: 100%;
  margin-inline: 0;
  padding: 0;
  background: var(--bg);
}
.hero--avatars.hero--earthscape .hero-media {
  background: var(--hero-sky);
  container-type: inline-size;
  container-name: hero;
}
.hero--avatars.hero--earthscape .hero-media::before {
  content: "";
  display: block;
  height: var(--nav-h);
  background: var(--hero-sky);
}
.hero--avatars.hero--earthscape .hero-media::after {
  /* Scale with image height (% of hero-media), not fixed px/vw minimum */
  height: 10%;
  max-height: calc(var(--space-xl) + var(--space-sm));
  background: linear-gradient(
    180deg in srgb,
    rgb(218 227 170 / 0) 0%,
    rgb(218 227 170 / 0.12) 18%,
    rgb(218 227 170 / 0.45) 42%,
    rgb(255 255 255 / 0.88) 72%,
    var(--bg) 100%
  );
}
.hero--avatars .hero-media img {
  width: 100%;
  height: auto;
  display: block;
  margin-inline: 0;
}
.hero--avatars .hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 4.25rem;
  pointer-events: none;
  background: linear-gradient(
    180deg in srgb,
    var(--hero-path) 0%,
    var(--bg) 100%
  );
}
.hero--avatars .hero-content {
  position: absolute;
  left: calc(var(--pad) * 2.0);
  top: -1.85rem;
  z-index: 3;
  width: max-content;
  max-width: 66.67%;
  margin: 0;
  padding: 0;
  text-align: center;
}
.hero--avatars.hero--earthscape .hero-sky-layer {
  position: absolute;
  top: 2%;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.hero--avatars.hero--earthscape .hero-sky-layer a,
.hero--avatars.hero--earthscape .hero-sky-layer button {
  pointer-events: auto;
}
/* Logo on hero-media removed — HiQ mark now sits with How it works heading */

.hero--avatars.hero--earthscape .hero-sky-scaled {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transform: scale(1);
  transform-origin: top center;
}
.hero--avatars.hero--earthscape .hero-title-copy {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.hero--avatars.hero--earthscape .hero-content {
  position: relative;
  top: auto;
  left: auto;
  width: min(48rem, 92%);
  max-width: 92%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  transform: none;
  margin: 0;
  padding: 0;
}
/* Earthscape title stack — one type step between each line (perfect fourth) */
.hero--avatars.hero--earthscape .hero-kicker,
.hero--avatars.hero--earthscape h1,
.hero--avatars.hero--earthscape .hero-contrast {
  width: 100%;
  text-align: center;
}
.hero--avatars.hero--earthscape .hero-kicker {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
}
.hero--avatars.hero--earthscape h1 {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero--avatars.hero--earthscape.hero--why-positive .hero-contrast {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
}
.hero--avatars h1 {
  margin: 0 0 var(--space-2xs);
  max-width: none;
  white-space: normal;
}
.hero--avatars .hero-lede {
  margin: 0;
  max-width: none;
}
.hero--avatars .hero-cast-label {
  position: absolute;
  left: 50%;
  top: 21%;
  z-index: 3;
  transform: translateX(-50%);
  overflow: visible;
  margin: 0;
  padding: 0.45em 1.25em;
  max-width: min(40rem, 92%);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hq-gold);
  line-height: 1.3;
  text-align: center;
  background: none;
}
/* Earthscape: sit under the title in the sky, not over faces */
.hero--avatars.hero--earthscape .hero-cast-label {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  display: inline-block;
  margin: 0.65rem auto 0;
  max-width: 100%;
  font-size: 1.3125rem;
  letter-spacing: 0.06em;
  padding: 0.2em 0.9em;
}
.hero--avatars.hero--earthscape .hero-cast-label::before {
  content: none;
}
.hero--avatars .hero-cast-label span {
  position: relative;
  z-index: 1;
}
.hero--avatars .hero-cast-label::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 132%;
  height: 175%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  filter: blur(22px);
  pointer-events: none;
}
.hero--avatars .hero-cta {
  position: absolute;
  left: 50%;
  bottom: 4.75rem;
  z-index: 4;
  transform: translateX(-50%);
}
/* Earthscape: CTA is last item in the title stack — match nav button size */
.hero--avatars.hero--earthscape .hero-content .hero-cta {
  position: static;
  left: auto;
  bottom: auto;
  margin: var(--space-2xs) 0 0;
  padding: var(--space-2xs) var(--space-xs);
  font-size: var(--fs-sm);
  transform: none;
  z-index: auto;
}

/* Scale hero overlay with image width — finer steps so text/button shrink before avatars */
@container hero (max-width: 1800px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.96);
  }
}
@container hero (max-width: 1600px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.9);
  }
}
@container hero (max-width: 1450px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.84);
  }
}
@container hero (max-width: 1300px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.78);
  }
}
@container hero (max-width: 1200px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.72);
  }
}
@container hero (max-width: 1100px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.66);
  }
}
@container hero (max-width: 980px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.6);
  }
}
@container hero (max-width: 900px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.54);
  }
}
@container hero (max-width: 820px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.48);
  }
  .hero--avatars.hero--earthscape .hero-cast-label {
    display: none;
  }
}
@container hero (max-width: 740px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.43);
  }
}
@container hero (max-width: 680px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.39);
  }
}
@container hero (max-width: 600px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.36);
  }
}
@container hero (max-width: 520px) {
  .hero--avatars.hero--earthscape .hero-sky-scaled {
    transform: scale(0.33);
  }
}

/* Why-forward title block (positive art + contrast copy) */
.hero--why-positive .hero-content {
  max-width: min(44rem, 92%);
}
.hero--avatars.hero--earthscape.hero--why-positive h1,
.hero--why-positive h1 {
  white-space: nowrap;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-2xl);
  line-height: 1.1;
}
.hero--why-positive .hero-contrast {
  margin: 0.5rem auto 0;
  max-width: 34rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
}
.hero--avatars.hero--earthscape.hero--why-positive .hero-cast-label {
  margin: 0.65rem auto 0;
  font-size: 1.3125rem;
  letter-spacing: 0.07em;
}

/* Below ~980px image width, headline stays one line via @container hero scale */
@container hero (max-width: 980px) {
  .hero--avatars.hero--earthscape.hero--why-positive h1,
  .hero--why-positive h1 {
    max-width: none;
  }
}
@container hero (max-width: 640px) {
  .hero--avatars.hero--earthscape.hero--why-positive h1,
  .hero--why-positive h1 {
    max-width: none;
  }
}

/* Non-earthscape avatar hero only — keep legacy side padding tweaks */
@media (max-width: 720px) {
  .hero--avatars:not(.hero--earthscape) .hero-content {
    left: var(--pad);
    right: var(--pad);
    width: auto;
    max-width: none;
  }
  .hero--avatars:not(.hero--earthscape) .hero-cast-label {
    top: 24%;
  }
  .hero--avatars:not(.hero--earthscape) .hero-cta {
    bottom: 3.75rem;
  }
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-fade-top {
  top: 0;
  height: clamp(54px, 10.5%, 96px);
  background: linear-gradient(
    180deg,
    var(--bg-soft) 0%,
    rgba(247, 250, 252, 0.45) 45%,
    rgba(247, 250, 252, 0) 100%
  );
}

.hero-fade-bottom {
  bottom: 0;
  height: clamp(66px, 12%, 108px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 55%,
    #fff 100%
  );
}

.hero-media-caption {
  position: absolute;
  left: 50%;
  top: calc(10% - 1.2em);
  bottom: auto;
  z-index: 2;
  transform: translateX(-50%);
  overflow: visible;
  margin: 0;
  padding: 0.4em 1.1em;
  max-width: 96%;
  background: none;
  box-shadow: none;
  color: var(--text);
  font-size: clamp(var(--fs-sm), 1.5vw, var(--fs-lg));
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.hero-media-caption span {
  position: relative;
  z-index: 1;
}

.hero-media-caption::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 118%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

@media (max-width: 700px) {
  .hero-media-caption::before {
    width: 124%;
    height: 200%;
    filter: blur(14px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */
.section {
  padding: clamp(var(--space-lg), 8vw, var(--space-xl)) 0;
}
.hero--avatars.hero--earthscape + .section {
  padding-top: clamp(var(--space-md), 5vw, var(--space-lg));
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
}

/* Independent of the centered How it works copy — left margin of the section */
#how {
  position: relative;
}
#how .how-lede {
  anchor-name: --how-lede;
}
#how .how-block:first-child .step-num {
  anchor-name: --how-step-rail;
}
#how .how-hiq-logo {
  position: absolute;
  z-index: 2;
  height: clamp(3.4125rem, 8.19vw, 4.875rem);
  width: auto;
  display: block;
  pointer-events: none;
  /* Fallback: center over step rail; step center sits var(--space-lg) in from wrap content */
  left: calc((100vw - min(1120px, 100vw)) / 2 + var(--pad) + var(--space-lg));
  transform: translateX(-50%);
  top: calc(
    clamp(var(--space-md), 5vw, var(--space-lg))
    + 1em
    + var(--space-2xs)
    + clamp(var(--fs-xl), 3vw, var(--fs-2xl)) * 1.15
    + var(--space-xs)
    + var(--fs-lg) * 1.5
    - clamp(3.4125rem, 8.19vw, 4.875rem)
  );
}
@supports (anchor-name: --how-lede) {
  #how .how-hiq-logo {
    left: anchor(--how-step-rail center);
    top: auto;
    bottom: anchor(--how-lede bottom);
    transform: translateX(-50%);
  }
}
@media (max-width: 960px) {
  /* Left-margin logo overlaps centered lede when the column gets narrow */
  #how .how-hiq-logo {
    display: none;
  }
}

.eyebrow {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hq-gold);
}

.section-head h2,
.band h2 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.section-head p,
.band p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

/* How it works - vertical stack */
.how-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-sm), 6vw, var(--space-xl));
}

.how-block {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.how-copy {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.how-copy .step-num {
  margin-bottom: var(--space-xs);
}

.how-copy h3 {
  margin: 0 0 var(--space-2xs);
  font-size: clamp(var(--fs-lg), 2.2vw, var(--fs-xl));
  font-weight: 800;
  letter-spacing: -0.02em;
}

.how-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.how-visual {
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  line-height: 0;
}

.how-visual img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--hq-blue-soft);
  color: var(--hq-blue);
  font-size: var(--fs-lg);
  font-weight: 800;
}

/* How-it-works step rail + connecting line (home + Agents) */
#how .how-stack,
#how-agents .how-stack {
  --how-gap: clamp(var(--space-sm), 6vw, var(--space-xl));
  --how-rail: 3.75rem;
  gap: var(--how-gap);
  max-width: 960px;
  margin: 0 auto;
}

#how-agents .how-stack {
  --how-gap: clamp(var(--space-sm), 4vw, var(--space-lg));
}

#how .how-block,
#how-agents .how-block {
  display: grid;
  grid-template-columns: var(--how-rail) minmax(0, 1fr);
  column-gap: var(--space-sm);
  row-gap: 0;
  align-items: start;
  position: relative;
  overflow: visible;
  min-height: 0;
}

#how .how-step-rail,
#how-agents .how-step-rail {
  position: relative;
  display: flex;
  justify-content: flex-start;
  justify-self: center;
  z-index: 1;
}

#how .how-step-rail .step-num,
#how-agents .how-step-rail .step-num {
  width: var(--how-rail);
  height: var(--how-rail);
  font-size: var(--fs-xl);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}

#how .how-block:not(:last-child)::before,
#how-agents .how-block:not(:last-child)::before {
  content: "";
  position: absolute;
  top: var(--how-rail);
  bottom: calc(-1 * var(--how-gap));
  left: calc(var(--how-rail) / 2);
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(5, 85, 174, 0.45) 0%,
    rgba(5, 85, 174, 0.22) 100%
  );
  border-radius: 999px;
  z-index: 0;
  pointer-events: none;
}

#how .how-step-body,
#how-agents .how-step-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
  padding-top: var(--space-2xs);
}

#how .how-copy,
#how-agents .how-copy {
  margin: 0;
  max-width: none;
  text-align: left;
}

#how .how-visual {
  margin: 0;
  max-width: none;
  height: fit-content;
}

@media (max-width: 560px) {
  #how .how-stack,
  #how-agents .how-stack {
    --how-rail: 3rem;
  }

  #how .how-step-rail .step-num,
  #how-agents .how-step-rail .step-num {
    font-size: var(--fs-lg);
    box-shadow: 0 0 0 4px var(--bg);
  }

  #how .how-block,
  #how-agents .how-block {
    column-gap: var(--space-xs);
  }
}

/* Soft band CTA */
.band {
  background: var(--hq-blue);
  color: #fff;
  text-align: center;
  padding: clamp(var(--space-md), 6vw, var(--space-lg)) 0;
}

.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, 0.88); margin-bottom: var(--space-sm); }

/* Personality preview cast */
.persona-cast {
  display: block;
  margin: 0 auto;
}
.persona-cast img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 515;
  object-fit: contain;
}

/* Personality preview strip */
.persona-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 700px) {
  .persona-strip { grid-template-columns: repeat(5, 1fr); }
}

.persona-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-xs) var(--space-2xs);
  text-align: center;
  border-radius: 0.85rem;
  transition: background 0.2s;
}
.persona-chip:hover { background: var(--hq-blue-soft); }
.persona-chip img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}
.persona-chip span {
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* Personalities page */
.page-hero {
  padding: clamp(var(--space-md), 6vw, var(--space-lg)) 0 var(--space-md);
  background: var(--bg-band);
  text-align: center;
}
.page-hero h1 {
  margin: 0 0 var(--space-xs);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-hero p {
  margin: 0 auto var(--space-sm);
  max-width: 36rem;
  color: var(--text-muted);
  font-size: var(--fs-lg);
}

.group {
  padding: clamp(var(--space-md), 6vw, var(--space-lg)) 0;
}
.group:nth-child(even) { background: var(--bg-soft); }

.group-head {
  margin-bottom: var(--space-md);
  max-width: 40rem;
}
.group-head h2 {
  margin: 0 0 var(--space-2xs);
  font-size: clamp(var(--fs-xl), 2.8vw, var(--fs-2xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hq-blue);
}
.group-head p {
  margin: 0;
  color: var(--text-muted);
}

.group .wrap {
  width: min(1400px, 100%);
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 700px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .type-grid { grid-template-columns: repeat(3, 1fr); }
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xs) var(--space-xs) var(--space-sm);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.type-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.type-card img {
  width: 100%;
  aspect-ratio: 20 / 27;
  height: auto;
  margin-bottom: var(--space-xs);
  object-fit: cover;
  object-position: center 42%;
}
.type-card h3 {
  margin: 0 0 var(--space-3xs);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--hq-blue);
  letter-spacing: -0.02em;
}
.type-tags {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hq-gold);
}
.type-card .tagline {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.type-card .desc {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

.type-card--flip {
  padding: 0;
  overflow: visible;
  cursor: pointer;
}
.type-card--flip:hover {
  transform: translateY(-2px);
}
.type-card--flip:focus-visible {
  outline: 2px solid var(--hq-blue);
  outline-offset: 3px;
}
.type-card-scene {
  display: block;
  perspective: 1400px;
}
.type-card-flipper {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}
.type-card--flip.is-flipped .type-card-flipper {
  transform: rotateY(180deg);
}
.type-card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  padding: var(--space-xs) var(--space-xs) var(--space-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.type-card-face--back {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  justify-content: flex-start;
  text-align: left;
  background: #fff;
  border-radius: 1rem;
  transform: rotateY(180deg);
}
.type-card-hint {
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hq-gold);
}
.type-card-face--back .type-card-hint {
  align-self: center;
  text-align: center;
}
.type-card-face--back h3 {
  align-self: flex-start;
}
.type-card-face--back .type-tags {
  align-self: flex-start;
  margin: var(--space-3xs) 0 var(--space-2xs);
}
.score-bars {
  list-style: none;
  width: 100%;
  margin: 0 0 var(--space-xs);
  padding: 0;
  display: grid;
  gap: var(--space-3xs);
}
.score-bars li {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  gap: var(--space-2xs);
  align-items: center;
}
.score-bars li span:first-child {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}
.score-bar {
  display: block;
  height: 0.42rem;
  background: var(--hq-blue-soft);
  border-radius: 999px;
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  background: var(--hq-blue);
  border-radius: 999px;
}
.flip-bullets {
  list-style: none;
  width: 100%;
  margin: 0 0 var(--space-xs);
  padding: 0;
}
.flip-bullets li {
  position: relative;
  margin: 0 0 var(--space-3xs);
  padding-left: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: 1.3;
}
.flip-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--hq-gold);
}
@media (prefers-reduced-motion: reduce) {
  .type-card-flipper {
    transition: none;
  }
}

/* Agents / buyers split */
.split {
  display: grid;
  gap: var(--space-sm);
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
}
.split-panel {
  padding: var(--space-md);
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
}
.split-panel h3 {
  margin: 0 0 var(--space-2xs);
  font-size: var(--fs-xl);
  font-weight: 800;
}
.split-panel p {
  margin: 0 0 var(--space-sm);
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: var(--space-md) var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-brand img { height: 36px; width: auto; }
.footer-brand span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-links a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--hq-blue); }

/* For agents page */
.agents-hero {
  padding-bottom: clamp(var(--space-md), 6vw, var(--space-lg));
}

.agents-hero h1 {
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.agents-hero-visual {
  margin: var(--space-sm) auto var(--space-sm);
}

.agents-hero .hero-actions {
  margin-bottom: 0;
}

.agents-training {
  padding-top: clamp(var(--space-md), 5vw, var(--space-lg));
  padding-bottom: clamp(var(--space-md), 5vw, var(--space-lg));
}

.video-embed {
  margin: 0 auto;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 0.55rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.how-training {
  margin-top: var(--space-lg);
}

.how-training .section-head {
  margin-bottom: var(--space-md);
}

.page-hero .agents-note {
  margin: var(--space-xs) auto 0;
  max-width: 32rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.prose-narrow {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.insight-visual {
  margin: 0 auto var(--space-sm);
  width: 100%;
  max-width: 520px;
  line-height: 0;
}

.insight-visual img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.prose-narrow > p {
  margin: 0 0 var(--space-xs);
  color: var(--text-muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

.prose-narrow > p:last-child {
  margin-bottom: 0;
}

/* Why agents use HiQ - soft 3-col matrix (not a bordered table) */
.benefit-matrix {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs) var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--line);
}

.benefit-band:last-child {
  border-bottom: 1px solid var(--line);
}

.benefit-cat {
  margin: 0;
  font-size: clamp(var(--fs-md), 1.8vw, var(--fs-lg));
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--hq-blue);
}

.benefit-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xs) var(--space-sm);
  align-items: start;
}

.benefit-row h4 {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
}

.benefit-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.benefit-shot {
  margin: var(--space-xs) 0 0;
  max-width: none;
}

.benefit-shot img {
  width: 100%;
  display: block;
  border-radius: 0.7rem;
  border: 1px solid rgba(26, 35, 50, 0.12);
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 35, 50, 0.1);
}

.benefit-shot figcaption {
  margin: var(--space-2xs) 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (min-width: 780px) {
  .benefit-band {
    grid-template-columns: minmax(9.5rem, 12.5rem) 1fr;
    align-items: start;
    padding: var(--space-md) 0;
  }

  .benefit-cat {
    padding-top: 0.15rem;
  }

  .benefit-items {
    gap: var(--space-sm);
  }

  .benefit-row {
    grid-template-columns: minmax(11rem, 15.5rem) 1fr;
    gap: var(--space-2xs) var(--space-md);
  }

  .benefit-shot {
    grid-column: 2;
    margin-top: var(--space-sm);
  }
}

.benefit-proof {
  margin-top: clamp(var(--space-md), 5vw, var(--space-lg));
  padding: clamp(var(--space-sm), 3.5vw, var(--space-md)) clamp(var(--space-2xs), 2vw, var(--space-xs));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.benefit-proof-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-sm);
}

.benefit-proof-head h3 {
  margin: 0 0 var(--space-2xs);
  font-size: clamp(var(--fs-lg), 2.4vw, var(--fs-xl));
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.benefit-proof-head p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: 1.5;
}

.benefit-proof-shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  align-items: stretch;
}

.benefit-proof-shots .shot-frame {
  margin: 0;
  padding: var(--space-2xs);
  background: linear-gradient(180deg, #eef2f7 0%, #e4ebf3 100%);
  border-radius: 1rem;
  border: 1px solid rgba(5, 85, 174, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}

.benefit-proof-shots img {
  width: 100%;
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid rgba(26, 35, 50, 0.12);
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.12);
  display: block;
  flex: 0 0 auto;
}

.benefit-proof-shots figcaption {
  margin-top: auto;
  padding-top: var(--space-xs);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

@media (min-width: 820px) {
  .benefit-proof-shots {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
    align-items: stretch;
  }

  /* Pull outer edges in so the screenshots claim more width */
  .benefit-proof-shots .shot-frame:first-child {
    padding-left: 0.25rem;
  }

  .benefit-proof-shots .shot-frame:last-child {
    padding-right: 0.25rem;
  }
}

.how-stack-compact {
  gap: clamp(var(--space-sm), 4vw, var(--space-lg));
}

.testimonial-placeholder {
  margin: 0 auto;
  max-width: 36rem;
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  border: 1px dashed rgba(5, 85, 174, 0.28);
  border-radius: 1rem;
  background: #fff;
}

.testimonial-placeholder blockquote {
  margin: 0;
}

.testimonial-placeholder blockquote p {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--text-muted);
  line-height: 1.5;
}

.testimonial-placeholder figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hq-gold);
}

/* Contact page */
.contact-hero h1 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-section {
  padding-top: 0;
}

.contact-wrap {
  max-width: 720px;
}

.contact-form {
  padding: clamp(var(--space-sm), 4vw, var(--space-md));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-sm);
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  text-align: left;
}

.field--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--space-xs) var(--space-xs);
  border: 1.5px solid rgba(5, 85, 174, 0.2);
  border-radius: 0.55rem;
  font-family: inherit;
  font-size: var(--fs-md);
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--hq-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5, 85, 174, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-status {
  min-height: 1.4rem;
  margin: var(--space-xs) 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.4;
}

.contact-status[data-type="success"] {
  color: #0f6b3c;
}

.contact-status[data-type="error"] {
  color: #b42318;
}

.contact-actions {
  margin-top: var(--space-sm);
  display: flex;
  justify-content: flex-start;
}

.contact-actions .btn:disabled {
  opacity: 0.7;
  transform: none;
  cursor: wait;
}
