/* ================================================================
   psychprofile — shared design system
   Used by hub, tests index, blog, about, contact, and as a base for
   individual test pages (which layer their own theme on top).

   Themed moods (set via <body class="theme-xxx">):
     .theme-warm         → attachment style, relationships (default)
     .theme-clinical     → ADHD, depression, anxiety, bipolar, OCD
     .theme-playful      → personality, AI replace job, spending, etc
     .theme-professional → career, management, salary, retirement
================================================================ */

/* ---------- design tokens ---------- */
:root {
  /* base neutrals */
  --bg:            #FAFAF8;
  --bg-elevated:   #FFFFFF;
  --text:          #2D3436;
  --text-muted:    #636E72;
  --text-subtle:   #9AA0A4;
  --border:        #E7E4DD;
  --border-strong: #D3CEC3;

  /* default theme = warm (vivid violet + hot coral) */
  --primary:        #7C3AED;
  --primary-dark:   #5B21B6;
  --primary-soft:   #EDE4FF;
  --accent:         #FF6B6B;
  --accent-soft:    #FFE4E4;

  /* scale */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(45, 52, 54, 0.04);
  --shadow:    0 4px 16px rgba(45, 52, 54, 0.06);
  --shadow-lg: 0 12px 32px rgba(45, 52, 54, 0.08);

  --container:       1120px;
  --container-narrow: 720px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- themed moods ---------- */
.theme-warm {
  --primary:       #7C3AED;
  --primary-dark:  #5B21B6;
  --primary-soft:  #EDE4FF;
  --accent:        #FF6B6B;
  --accent-soft:   #FFE4E4;
}
.theme-clinical {
  --primary:       #0EA5E9;
  --primary-dark:  #0369A1;
  --primary-soft:  #DDF2FC;
  --accent:        #22D3EE;
  --accent-soft:   #CFFAFE;
}
.theme-playful {
  --primary:       #EC4899;
  --primary-dark:  #BE185D;
  --primary-soft:  #FCE7F3;
  --accent:        #FBBF24;
  --accent-soft:   #FEF3C7;
}
.theme-professional {
  --primary:       #14B8A6;
  --primary-dark:  #0F766E;
  --primary-soft:  #CCFBF1;
  --accent:        #F97316;
  --accent-soft:   #FFEDD5;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.75em; line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.hub-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.hub-container--narrow { max-width: var(--container-narrow); }

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-logo:hover { color: var(--primary); }
.site-logo-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-grid;
  place-items: center;
  color: white;
  font-size: 14px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--primary-dark); color: white; }

@media (max-width: 640px) {
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- buttons ---------- */
.btn-hub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn-hub:hover { transform: translateY(-1px); }
.btn-hub-primary {
  background: var(--primary);
  color: white;
}
.btn-hub-primary:hover { background: var(--primary-dark); color: white; }
.btn-hub-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-hub-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- hero ---------- */
.hub-hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hub-hero h1 {
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hub-hero .hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hub-hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hub-hero-meta {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text-subtle);
  display: inline-flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hub-hero-meta span::before {
  content: "✓";
  color: var(--primary);
  margin-right: 6px;
  font-weight: 700;
}

/* ---------- sections ---------- */
.hub-section {
  padding: 72px 0;
}
.hub-section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hub-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.hub-section-head .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.hub-section-head p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---------- test card grid ---------- */
.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.test-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.test-card.is-live {
  cursor: pointer;
}
.test-card.is-live:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.test-card.is-pending {
  opacity: 0.72;
}
.test-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--primary);
}
.test-card-category {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 600;
}
.test-card h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text);
}
.test-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}
.test-card-cta {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.test-card.is-live:hover .test-card-cta { color: var(--primary-dark); }
.test-card-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.test-card-status.is-live-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.test-card-status.is-pending-badge {
  background: #F0EEE8;
  color: var(--text-subtle);
}

/* ---------- category header inside grid ---------- */
.test-category {
  margin-bottom: 48px;
}
.test-category:last-child { margin-bottom: 0; }
.test-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.test-category-head h2 { margin: 0; font-size: 1.25rem; }
.test-category-head .count {
  font-size: 0.875rem;
  color: var(--text-subtle);
}

/* ---------- how-it-works tiles ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step-tile {
  text-align: center;
  padding: 24px;
}
.step-tile-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 1.125rem;
}
.step-tile h3 { font-size: 1.0625rem; }
.step-tile p { color: var(--text-muted); font-size: 0.9375rem; margin: 0; }

/* ---------- site footer ---------- */
.site-footer-hub {
  background: #F3F1EB;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.site-footer-hub a { color: var(--text-muted); }
.site-footer-hub a:hover { color: var(--text); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.footer-grid h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 12px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 8px; }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  line-height: 1.6;
}
.footer-copy {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- hub bar (soft link on test pages) ---------- */
.hub-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.92);
  font-size: 0.8125rem;
}
.hub-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hub-bar-link {
  color: white;
  font-weight: 600;
}
.hub-bar-link:hover { color: white; opacity: 0.85; }
.hub-bar-sep { opacity: 0.5; }
.hub-bar-label { opacity: 0.85; }
@media (max-width: 520px) {
  .hub-bar-sep, .hub-bar-label { display: none; }
}

/* ================================================================
   VIBRANT HUB — homepage styles (layered on top of base system)
================================================================ */

/* ---------- vibrant hero ---------- */
.hub-hero-vibrant {
  padding: 88px 0 64px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--primary-soft) 0%, transparent 60%),
    var(--bg);
}
.hub-hero-vibrant h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-accent {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-hub-lg {
  padding: 18px 40px;
  font-size: 1.0625rem;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-hub-lg:hover { box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45); }

/* ---------- featured carousel ---------- */
.hub-section-featured {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, transparent 0%, #FEF3C7 100%);
}
.test-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 32px;
  margin: 0 -8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.test-carousel::-webkit-scrollbar { height: 8px; }
.test-carousel::-webkit-scrollbar-track { background: transparent; }
.test-carousel::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

/* ---------- rich cards (used in carousel) ---------- */
.rich-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 28px 24px 24px;
  box-shadow: 0 8px 24px rgba(45, 52, 54, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
  border-top: 5px solid var(--primary);
}
.rich-card.is-live { cursor: pointer; }
.rich-card.is-live:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(45, 52, 54, 0.12);
}
.rich-card--warm         { border-top-color: #7C3AED; }
.rich-card--clinical     { border-top-color: #0EA5E9; }
.rich-card--playful      { border-top-color: #EC4899; }
.rich-card--professional { border-top-color: #14B8A6; }

.rich-card h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  padding-right: 90px;
}
.rich-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}
.rich-card-live {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E8F5E9;
  color: #2E7D32;
}
.rich-card-coming {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F0EEE8;
  color: #9B8FA8;
}
.rich-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F1EFE8;
  color: var(--text-muted);
  font-weight: 500;
}
.tag-level {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}
.rich-card--warm .tag-level         { background: #EDE4FF; color: #5B21B6; }
.rich-card--clinical .tag-level     { background: #DDF2FC; color: #0369A1; }
.rich-card--playful .tag-level      { background: #FCE7F3; color: #BE185D; }
.rich-card--professional .tag-level { background: #CCFBF1; color: #0F766E; }

.rich-card-cta {
  margin-top: 12px;
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
}
.rich-card--warm .rich-card-cta         { background: #7C3AED; }
.rich-card--clinical .rich-card-cta     { background: #0EA5E9; }
.rich-card--playful .rich-card-cta      { background: #EC4899; }
.rich-card--professional .rich-card-cta { background: #14B8A6; }
.rich-card-cta--pending {
  background: transparent !important;
  border: 1.5px dashed var(--border-strong);
  color: var(--text-subtle);
}

/* ---------- mosaic pills ---------- */
.hub-section-mosaic {
  background: var(--accent-soft);
  padding: 72px 0;
}
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: white;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(45,52,54,0.06);
}
.pill-sage     { background: #A7F3D0; color: #065F46; }
.pill-blue     { background: #BFDBFE; color: #1E3A8A; }
.pill-peach    { background: #FED7AA; color: #9A3412; }
.pill-lavender { background: #DDD6FE; color: #5B21B6; }
.pill-coral    { background: #FECACA; color: #991B1B; }
.pill-sky      { background: #A5F3FC; color: #155E75; }
.pill-rose     { background: #FBCFE8; color: #9D174D; }
.pill-gold     { background: #FEF08A; color: #854D0E; }
.pill-teal     { background: #99F6E4; color: #115E59; }
.pill-mint     { background: #BBF7D0; color: #166534; }
.pill-plum     { background: #F0ABFC; color: #86198F; }
.pill-amber    { background: #FDBA74; color: #9A3412; }

/* ---------- vertical steps ---------- */
.steps-grid--vertical {
  grid-template-columns: 1fr !important;
  max-width: 520px;
  margin: 0 auto;
}
.steps-grid--vertical .step-tile {
  padding: 20px 0;
}
.steps-grid--vertical .step-tile-num {
  width: 56px; height: 56px;
  font-size: 1.5rem;
  background: var(--primary-soft);
  color: var(--primary);
}

/* ---------- feature strips ---------- */
.hub-section-features {
  background: var(--primary-soft);
  padding: 72px 0;
}
.feature-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(45,52,54,0.05);
}
.feature-strip--reverse .feature-strip-text { order: 2; }
.feature-strip--reverse .feature-strip-art  { order: 1; }
.feature-strip h3 {
  font-size: 1.375rem;
  margin-bottom: 12px;
}
.feature-strip p {
  color: var(--text-muted);
  margin: 0;
}
.feature-strip-art {
  height: 200px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 5rem;
}
.feature-art-1 { background: linear-gradient(135deg, #DDD6FE, #A5F3FC); }
.feature-art-2 { background: linear-gradient(135deg, #FBCFE8, #FDBA74); }
.feature-art-3 { background: linear-gradient(135deg, #99F6E4, #FEF08A); }

@media (max-width: 720px) {
  .feature-strip { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .feature-strip--reverse .feature-strip-text { order: 1; }
  .feature-strip--reverse .feature-strip-art  { order: 2; }
  .feature-strip-art { height: 140px; font-size: 3.5rem; }
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-elevated);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "▾";
  color: var(--primary);
  transition: transform .2s ease;
  font-size: 0.875rem;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
}
.faq-body p { margin: 0; }

/* ---------- centered CTA block ---------- */
.centered-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- stub page layout (contact — still simple) ---------- */
.stub-page {
  padding: 72px 0 96px;
}
.stub-page h1 { margin-bottom: 24px; }
.stub-page .lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ================================================================
   INNER PAGE VIBRANT STYLES — tests index, blog, about
================================================================ */

/* ---------- inner vibrant hero ---------- */
.inner-hero {
  padding: 80px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}
.inner-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.inner-hero .hero-lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.inner-hero .hero-accent {
  color: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- tests index — vibrant grid ---------- */
.tests-section {
  padding: 56px 0 72px;
}
.test-category-head-vibrant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.test-category-head-vibrant h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.test-category-head-vibrant .count {
  font-size: 0.875rem;
  color: var(--text-subtle);
  font-weight: 500;
  background: var(--primary-soft);
  padding: 4px 14px;
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 600;
}

/* upgraded test cards for tests index */
.test-card-vibrant {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.test-card-vibrant::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.6;
  transition: opacity .18s ease;
}
.test-card-vibrant.is-live { cursor: pointer; }
.test-card-vibrant.is-live::before { opacity: 1; }
.test-card-vibrant.is-live:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(45, 52, 54, 0.1);
  border-color: var(--border-strong);
}
.test-card-vibrant.is-pending { opacity: 0.7; }
.test-card-vibrant.is-pending::before { opacity: 0.3; }

.test-card-vibrant .test-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  display: grid;
  place-items: center;
  font-size: 22px;
}
.test-card-vibrant .test-card-category {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}
.test-card-vibrant h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}
.test-card-vibrant p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}
.test-card-vibrant .test-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.test-card-vibrant .test-card-meta .tag {
  font-size: 0.6875rem;
}
.test-card-vibrant .test-card-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #7C3AED;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: opacity .15s ease;
}
.test-card-vibrant .test-card-cta:hover { opacity: 0.9; }

/* ---------- blog page styles ---------- */
.blog-section {
  padding: 0 0 72px;
}
.blog-coming-card {
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto 48px;
}
.blog-coming-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.blog-coming-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.blog-coming-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.blog-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-preview-thumb {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.blog-preview-thumb--purple { background: linear-gradient(135deg, #EDE4FF, #DDD6FE); }
.blog-preview-thumb--blue   { background: linear-gradient(135deg, #DDF2FC, #BFDBFE); }
.blog-preview-thumb--coral  { background: linear-gradient(135deg, #FFE4E4, #FECACA); }
.blog-preview-thumb--amber  { background: linear-gradient(135deg, #FEF3C7, #FED7AA); }
.blog-preview-thumb--green  { background: linear-gradient(135deg, #CCFBF1, #A7F3D0); }
.blog-preview-thumb--pink   { background: linear-gradient(135deg, #FCE7F3, #FBCFE8); }

.blog-preview-body {
  padding: 20px 24px 24px;
}
.blog-preview-tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.blog-preview-body h3 {
  font-size: 1.0625rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.blog-preview-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ---------- about page styles ---------- */
.about-section {
  padding: 0 0 72px;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.about-value-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.about-value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.about-value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
}
.about-value-card:nth-child(1)::before { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.about-value-card:nth-child(2)::before { background: linear-gradient(90deg, #0EA5E9, #22D3EE); }
.about-value-card:nth-child(3)::before { background: linear-gradient(90deg, #EC4899, #F472B6); }
.about-value-card:nth-child(4)::before { background: linear-gradient(90deg, #14B8A6, #34D399); }

.about-value-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.about-value-card:nth-child(1) .about-value-icon { background: #EDE4FF; }
.about-value-card:nth-child(2) .about-value-icon { background: #DDF2FC; }
.about-value-card:nth-child(3) .about-value-icon { background: #FCE7F3; }
.about-value-card:nth-child(4) .about-value-icon { background: #CCFBF1; }

.about-value-card h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.about-value-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.about-content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.about-content-card h2 {
  font-size: 1.375rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.about-content-card p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}
.about-content-card p + p { margin-top: 12px; }
.about-content-card a {
  font-weight: 600;
}

.about-instruments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.about-instrument-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ---------- contact page upgrade ---------- */
.contact-section {
  padding: 0 0 72px;
}
.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

@media (max-width: 640px) {
  .about-content-card { padding: 28px 20px; }
  .contact-card { padding: 28px 20px; }
  .blog-coming-card { padding: 28px 20px; }
}

/* ================================================================
   BLOG ARTICLE PAGE
================================================================ */
.article-header {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, var(--primary-soft) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
}
.article-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  background: var(--primary-soft);
  padding: 5px 14px;
  border-radius: 999px;
}
.article-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 0.875rem;
  color: var(--text-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.article-meta-dot { opacity: 0.4; }

/* article body */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.article-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 1.25em;
}
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2.5em 0 0.75em;
  color: var(--text);
}
.article-body h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 2em 0 0.5em;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25em;
  padding-left: 24px;
}
.article-body li {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 6px;
  color: var(--text);
}
.article-body blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  font-size: 1rem;
  color: var(--text);
}
.article-body blockquote p { margin: 0; font-size: 1rem; }

/* callout box */
.article-callout {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.article-callout-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-callout p {
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* test CTA card inside article */
.article-test-cta {
  margin: 2.5em 0;
  padding: 28px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.article-test-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.article-test-cta-text { flex: 1; }
.article-test-cta h3 { font-size: 1.125rem; margin: 0 0 6px; }
.article-test-cta p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.article-test-cta .btn-hub { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 580px) {
  .article-test-cta { flex-direction: column; text-align: center; gap: 16px; }
}

/* sources list */
.article-sources {
  margin-top: 3em;
  padding-top: 2em;
  border-top: 1px solid var(--border);
}
.article-sources h2 { font-size: 1.125rem; margin: 0 0 12px; }
.article-sources ol {
  padding-left: 20px;
  margin: 0;
}
.article-sources li {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 6px;
}

/* related articles grid */
.related-articles {
  padding: 56px 0 72px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.related-articles .hub-section-head { margin-bottom: 32px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
