@property --qh2-pct {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.qh2-page {
  --qh2-ink: #10161F;
  --qh2-ink-soft: #1B2330;
  --qh2-ink-line: #2A3341;
  --qh2-paper: #F6F7F9;
  --qh2-paper-alt: #FFFFFF;
  --qh2-line: #E3E6EB;
  --qh2-slate: #5B6472;
  --qh2-slate-dark: #1F2937;
  --qh2-teal: #17A398;
  --qh2-teal-dark: #0E7A72;
  --qh2-teal-tint: #E4F5F3;
  --qh2-amber: #F5A524;
  --qh2-green: #22C55E;
  --qh2-radius: 10px;
  --qh2-font-display: 'Space Grotesk', sans-serif;
  --qh2-font-mono: 'IBM Plex Mono', monospace;
  --qh2-font-body: 'Inter', sans-serif;
  margin: 0;
  font-family: var(--qh2-font-body);
  color: var(--qh2-slate-dark);
  background: var(--qh2-paper);
  -webkit-font-smoothing: antialiased;
}

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

.qh2-page html,
html:has(.qh2-page) {
  scroll-behavior: smooth;
}

.qh2-page a {
  color: inherit;
  text-decoration: none;
}

.qh2-page img,
.qh2-page svg {
  max-width: 100%;
  display: block;
}

.qh2-page button {
  font-family: inherit;
  cursor: pointer;
}

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

.qh2-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.qh2-eyebrow {
  font-family: var(--qh2-font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qh2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qh2-btn:active {
  transform: translateY(1px);
}

.qh2-btn:focus-visible,
.qh2-page a:focus-visible,
.qh2-study-toggle:focus-visible {
  outline: 2px solid var(--qh2-teal);
  outline-offset: 3px;
}

.qh2-btn-primary {
  background: var(--qh2-teal);
  color: #06231F;
}

.qh2-btn-primary:hover {
  background: #20B8AB;
}

.qh2-btn-outline {
  border-color: var(--qh2-line);
  color: var(--qh2-slate-dark);
  background: #fff;
}

.qh2-btn-outline:hover {
  border-color: #B9C0CC;
}

.qh2-btn-sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

/* Announcement banner (rendered inside .qh2-page; header/footer/mobile-nav
   now come from includes/layout.php + assets/css/site-chrome.css) */
.qh2-banner {
  background: #151C27;
  border-bottom: 1px solid var(--qh2-ink-line);
  color: #AAB3C0;
  font-size: 14px;
  line-height: 1.55;
  padding: 12px 0;
}

.qh2-banner-content > :first-child {
  margin-top: 0;
}

.qh2-banner-content > :last-child {
  margin-bottom: 0;
}

.qh2-banner-content p {
  margin: 4px 0;
}

.qh2-banner-content a {
  color: var(--qh2-teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Hero */
.qh2-hero {
  background: var(--qh2-ink);
  padding: 64px 0 0;
}

.qh2-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

.qh2-hero-eyebrow {
  color: var(--qh2-teal);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qh2-hero-eyebrow i {
  font-size: 11px;
}

.qh2-hero-title {
  font-family: var(--qh2-font-display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 18px;
}

.qh2-hero-title .qh2-accent {
  color: var(--qh2-teal);
}

.qh2-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #AAB3C0;
  max-width: 480px;
  margin: 0 0 24px;
}

.qh2-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.qh2-search input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--qh2-ink-line);
  background: #151C27;
  color: #E7EAEF;
  font-size: 14.5px;
}

.qh2-search input[type="search"]::placeholder {
  color: #7C8598;
}

.qh2-search input[type="search"]:focus {
  outline: 2px solid var(--qh2-teal);
  outline-offset: 0;
  border-color: var(--qh2-teal);
}

.qh2-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.qh2-hero-stats {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding-top: 26px;
  border-top: 1px solid var(--qh2-ink-line);
  flex-wrap: wrap;
}

.qh2-hero-stat b {
  font-family: var(--qh2-font-mono);
  display: block;
  font-size: 21px;
  color: #fff;
  font-weight: 600;
}

.qh2-hero-stat span {
  font-size: 12.5px;
  color: #7C8598;
}

.qh2-hero-stat-divider {
  width: 1px;
  min-height: 43px;
  align-self: stretch;
  background: var(--qh2-ink-line);
  opacity: 0.8;
}

.qh2-hero-gauge {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
  padding: 2px 4px 2px 0;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.qh2-hero-gauge:hover {
  background: rgba(23, 163, 152, 0.08);
  text-decoration: none;
}

.qh2-hero-gauge:focus-visible {
  outline: 2px solid var(--qh2-teal);
  outline-offset: 2px;
}

.qh2-hero-gauge-svg {
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}

.qh2-hero-gauge-track {
  stroke: #2A3341;
}

.qh2-hero-gauge-value {
  stroke: var(--qh2-teal);
  transition: stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.qh2-hero-gauge-needle line {
  stroke: #E7EAEF;
}

.qh2-hero-gauge-needle {
  animation: qh2-gauge-needle-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.qh2-hero-gauge-hub {
  fill: var(--qh2-teal);
  stroke: #10161F;
  stroke-width: 1.5;
}

.qh2-hero-gauge-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  line-height: 1.25;
}

.qh2-hero-gauge-meta b {
  font-family: var(--qh2-font-mono);
  font-size: 21px;
  font-weight: 600;
  color: #fff;
}

.qh2-hero-gauge-label {
  font-size: 12.5px;
  color: #7C8598;
}

.qh2-hero-gauge-window {
  margin-top: 2px;
  font-family: var(--qh2-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--qh2-teal);
}

.qh2-hero-gauge:hover .qh2-hero-gauge-window {
  color: #20B8AB;
  text-decoration: underline;
}

@keyframes qh2-gauge-needle-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* Console */
.qh2-console {
  background: var(--qh2-ink-soft);
  border: 1px solid var(--qh2-ink-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

.qh2-console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #151C27;
  border-bottom: 1px solid var(--qh2-ink-line);
}

.qh2-console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3A4557;
}

.qh2-console-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--qh2-font-mono);
  font-size: 10.5px;
  color: #8A93A3;
  margin-left: 6px;
}

.qh2-console-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--qh2-font-mono);
  font-size: 11px;
  color: #7FD8CB;
}

.qh2-console-live .qh2-blip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--qh2-teal);
  animation: qh2-blip 1.6s infinite;
}

@keyframes qh2-blip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.qh2-console-body {
  padding: 22px;
  position: relative;
}

.qh2-console-expand {
  display: none;
}

.qh2-q-label {
  margin: 15px 0 7px;
  color: var(--qh2-teal);
  font-family: var(--qh2-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qh2-q-scenario {
  margin: 0 0 8px;
  color: #C3C9D3;
  font-size: 11.5px;
  line-height: 1.48;
}

.qh2-q-scenario--question {
  margin-bottom: 12px;
}

.qh2-q-scenario--question strong {
  color: #E7EAEF;
}

.qh2-console code {
  color: #DDEFE2;
  font-family: var(--qh2-font-mono);
  font-size: 0.92em;
}

.qh2-q-options {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.qh2-q-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--qh2-ink-line);
  font-size: 11.5px;
  line-height: 1.45;
  color: #C3C9D3;
}

.qh2-q-option .qh2-letter {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  background: #232C3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--qh2-font-mono);
  font-size: 11px;
  color: #8A93A3;
  margin-top: 1px;
}

.qh2-q-option.is-correct {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
  color: #DDEFE2;
}

.qh2-q-option.is-correct .qh2-letter {
  background: var(--qh2-green);
  color: #06231F;
}

.qh2-q-option.is-correct i {
  margin-left: auto;
  margin-top: 3px;
  color: var(--qh2-green);
  font-size: 12px;
}

.qh2-gauge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--qh2-ink-line);
}

.qh2-gauge {
  --qh2-pct: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--qh2-teal) calc(var(--qh2-pct) * 1%), #232C3A 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  transition: --qh2-pct 1.4s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.qh2-gauge-inner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--qh2-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--qh2-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.qh2-gauge-label b {
  display: block;
  font-size: 13px;
  color: #E7EAEF;
}

.qh2-gauge-label span {
  font-size: 11.5px;
  color: #7C8598;
}

.qh2-gauge-domains {
  flex: 1 1 auto;
  min-width: 0;
}

.qh2-gauge-domains span {
  display: block;
  line-height: 1.4;
}

.qh2-gauge-domains span strong {
  color: #AAB3C0;
}

.qh2-gauge-tag {
  margin-left: auto;
  font-family: var(--qh2-font-mono);
  font-size: 10.5px;
  color: var(--qh2-teal);
  border: 1px solid rgba(23, 163, 152, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Sections */
.qh2-section {
  padding: 72px 0;
}

.qh2-section-head {
  max-width: 600px;
  margin: 0 0 40px;
}

.qh2-section-head .qh2-eyebrow {
  color: var(--qh2-teal-dark);
  margin-bottom: 10px;
}

.qh2-section-head h2 {
  font-family: var(--qh2-font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.qh2-section-head p {
  color: var(--qh2-slate);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.qh2-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.qh2-why-card {
  background: var(--qh2-paper-alt);
  border: 1px solid var(--qh2-line);
  border-radius: var(--qh2-radius);
  padding: 26px;
}

.qh2-why-card h3 {
  font-family: var(--qh2-font-display);
  font-size: 17px;
  margin: 0 0 8px;
}

.qh2-why-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--qh2-slate);
  margin: 0;
}

/* Study mode accordion */
.qh2-hero-showcase {
  width: 100%;
  min-width: 0;
}

.qh2-study-accordion {
  width: 100%;
  background: var(--qh2-ink-soft);
  border: 1px solid var(--qh2-ink-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5);
}

.qh2-study-item {
  border-bottom: 1px solid var(--qh2-ink-line);
}

.qh2-study-item:last-child {
  border-bottom: none;
}

.qh2-study-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  color: #C3C9D3;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.qh2-study-toggle:hover {
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
}

.qh2-study-item.is-active .qh2-study-toggle {
  background: #101720;
  color: #fff;
}

.qh2-study-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 8px;
  background: #232C3A;
  color: #7C8598;
  transition: background 0.2s ease, color 0.2s ease;
}

.qh2-study-item.is-active .qh2-study-icon {
  background: rgba(23, 163, 152, 0.16);
  color: var(--qh2-teal);
}

.qh2-study-chevron {
  margin-left: auto;
  color: #5B6472;
  font-size: 11px;
  transition: transform 0.28s ease, color 0.2s ease;
}

.qh2-study-item.is-active .qh2-study-chevron {
  color: var(--qh2-teal);
  transform: rotate(180deg);
}

.qh2-study-content {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: #101720;
  transition: grid-template-rows 0.32s ease, visibility 0s linear 0.32s;
}

.qh2-study-item.is-active .qh2-study-content {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.qh2-study-content-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 60px;
  opacity: 0;
  transform: translateY(-6px);
  transition: padding 0.32s ease, opacity 0.22s ease, transform 0.32s ease;
}

.qh2-study-item.is-active .qh2-study-content-inner {
  padding-top: 0;
  padding-bottom: 18px;
  opacity: 1;
  transform: translateY(0);
}

.qh2-study-content p {
  color: #AAB3C0;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.qh2-study-content a {
  font-family: var(--qh2-font-mono);
  font-size: 12px;
  color: var(--qh2-teal);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qh2-study-content a:hover {
  text-decoration: underline;
}

.qh2-study-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin: 0;
}

.qh2-study-links a {
  margin: 0;
}

/* Sample question */
.qh2-sample {
  background: var(--qh2-ink);
}

.qh2-sample .qh2-section-head h2 {
  color: #fff;
}

.qh2-sample .qh2-section-head p {
  color: #9AA3B2;
}

.qh2-sample .qh2-section-head .qh2-eyebrow {
  color: var(--qh2-teal);
}

.qh2-sample-console {
  width: 100%;
}

.qh2-sample-console .qh2-console-body {
  padding: 28px 32px;
}

.qh2-sample-console .qh2-q-scenario,
.qh2-sample-console .qh2-q-option {
  font-size: 13px;
}

/* Trending / popular */
.qh2-trending {
  background: var(--qh2-paper-alt);
  border-top: 1px solid var(--qh2-line);
  border-bottom: 1px solid var(--qh2-line);
}

.qh2-trending-inner {
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.qh2-trending-label {
  font-family: var(--qh2-font-mono);
  font-size: 11.5px;
  color: var(--qh2-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 0 0 auto;
}

.qh2-trending-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-size: 13.5px;
  align-items: center;
}

.qh2-trending-links a {
  color: var(--qh2-slate-dark);
  padding: 4px 0;
}

.qh2-trending-links a:hover {
  color: var(--qh2-teal-dark);
  text-decoration: underline;
}

.qh2-trending-links .qh2-sep {
  color: var(--qh2-line);
}

.qh2-trending-more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--qh2-teal-dark);
  flex: 0 0 auto;
}

.qh2-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.qh2-reveal.is-in,
.qh2-page.qh2-no-js .qh2-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .qh2-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .qh2-console-live .qh2-blip {
    animation: none;
  }

  .qh2-gauge {
    transition: none;
  }

  .qh2-study-toggle,
  .qh2-study-icon,
  .qh2-study-chevron,
  .qh2-study-content,
  .qh2-study-content-inner {
    transition: none;
  }

  html:has(.qh2-page) {
    scroll-behavior: auto;
  }
}

@media (max-width: 1180px) {
  .qh2-hero {
    padding-top: 40px;
  }

  .qh2-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .qh2-console-collapsible {
    max-height: 220px;
    overflow: hidden;
    position: relative;
  }

  .qh2-console-collapsible::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(27, 35, 48, 0), var(--qh2-ink-soft));
    pointer-events: none;
  }

  .qh2-console-collapsible.is-expanded {
    max-height: none;
  }

  .qh2-console-collapsible.is-expanded::after {
    content: none;
  }

  .qh2-console-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid var(--qh2-ink-line);
    background: transparent;
    color: var(--qh2-teal);
    font-family: var(--qh2-font-mono);
    font-size: 12px;
    font-weight: 600;
  }

  .qh2-console-expand i {
    transition: transform 0.2s ease;
  }

  .qh2-console-expand.is-expanded i {
    transform: rotate(180deg);
  }

  .qh2-why-grid {
    grid-template-columns: 1fr;
  }

  .qh2-trending-more {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .qh2-hero-stat-divider {
    display: none;
  }

  .qh2-hero-gauge {
    flex-basis: 100%;
    max-width: none;
    padding-top: 14px;
    border-top: 1px solid var(--qh2-ink-line);
  }

  .qh2-console-title {
    font-size: 11px;
  }

  .qh2-q-label {
    font-size: 12px;
  }

  .qh2-q-scenario {
    font-size: 14px;
    line-height: 1.55;
  }

  .qh2-q-option {
    font-size: 13.5px;
    line-height: 1.5;
  }

  .qh2-gauge-label span {
    font-size: 13px;
  }

  .qh2-gauge-tag {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .qh2-wrap {
    padding: 0 16px;
  }

  .qh2-hero-stats {
    gap: 18px;
  }

  .qh2-gauge-row {
    flex-wrap: wrap;
  }

  .qh2-gauge-tag {
    margin-left: 0;
  }

  .qh2-section {
    padding: 56px 0;
  }
}
