/* ============================================
   WRENLIGHT — Design System
   Sage + multi-pastel + cocoa, more vibrant
   ============================================ */

:root {
  /* Core */
  --cocoa: #2A3A2D;
  --cocoa-soft: #3F5240;
  --warm-gray: #6B7B68;
  --warm-gray-light: #98A095;
  --cream: #FBF6EF;
  --cream-warm: #F5EDE2;
  --white: #FFFFFF;
  --border: #E5E8DF;
  --border-soft: #EFEEE8;

  /* Sage family - self / values */
  --sage: #7AB098;
  --sage-mid: #A8D5BA;
  --sage-soft: #DDF0E2;
  --sage-deep: #2F5A3D;

  /* Peach family - relationships */
  --peach: #F4A78A;
  --peach-mid: #F8C2A8;
  --peach-soft: #FBE7D8;
  --peach-deep: #8C3D1F;

  /* Lavender family - decisions */
  --lavender: #B5A8E5;
  --lavender-mid: #CDC4ED;
  --lavender-soft: #EDE7F6;
  --lavender-deep: #4D3D8C;

  /* Honey family - behavior */
  --honey: #F0C870;
  --honey-mid: #F5D998;
  --honey-soft: #FBEFD3;
  --honey-deep: #8C5E0F;

  /* Rose family - identity */
  --rose: #E8A5B5;
  --rose-mid: #F0C2CE;
  --rose-soft: #FBE3E9;
  --rose-deep: #8C2E45;

  /* Mint family - classics */
  --mint: #8DD3C7;
  --mint-mid: #B5E2DA;
  --mint-soft: #DEF1ED;
  --mint-deep: #1F5A4F;

  /* Blue family - self-knowledge (introspection, calm) */
  --blue: #6B95B8;
  --blue-mid: #93B2C8;
  --blue-soft: #DDE7EF;
  --blue-deep: #2E5A8C;

  /* Type — Multi-Pigment Editorial: Fraunces display + Inter body */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Editorial accent — deep red for the brand mark and primary CTAs */
  --editorial-red: #A8332E;
  --editorial-red-deep: #781F1B;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --max-width: 1100px;
  --container-pad: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--cocoa);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;   /* keep horizontal scroll clean, but let vertical blobs flow */
}

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

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { padding: 64px 0; }
section.compact { padding: 40px 0; }
section.spacious { padding: 96px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--cocoa);
}

h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cocoa);
}

h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  color: var(--cocoa);
}

h4, .h4 {
  font-size: 16px;
  font-weight: 500;
  color: var(--cocoa);
}

p { font-size: 16px; }

p.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--cocoa-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}

.eyebrow-sage    { color: var(--sage-deep); }
.eyebrow-peach   { color: var(--peach-deep); }
.eyebrow-lavender{ color: var(--lavender-deep); }
.eyebrow-honey   { color: var(--honey-deep); }
.eyebrow-rose    { color: var(--rose-deep); }
.eyebrow-mint    { color: var(--mint-deep); }
.eyebrow-blue    { color: var(--blue-deep); }

.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.center { text-align: center; }

/* ============================================
   NAV / HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 0.5px solid rgba(42, 58, 45, 0.08);
  z-index: 50;
  padding: 14px 0;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--cocoa);
  letter-spacing: -0.02em;
}
.brand-mark-text { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-mark-name { font-family: var(--font-serif); font-size: 26px; font-weight: 600; color: var(--cocoa); letter-spacing: -0.02em; }
.brand-mark-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
}

.brand-mark-icon {
  /* Logo Option C — outline red ring + red W on white.
     Quieter than the filled circle while keeping the editorial red signature. */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--editorial-red);
  border: 2px solid var(--editorial-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-indent: 0;
  letter-spacing: 0;
  text-align: center;
  /* Fraunces W bottom strokes — nudge up 1px for true visual centring */
  padding-bottom: 1px;
  box-shadow: 0 4px 14px -4px rgba(168, 51, 46, 0.22);
}
/* Footer-context override — sits on a dark background. Keep the outline ring
   but use cream interior/letter so it still reads against the dark sage footer. */
.site-footer .brand-mark-icon {
  background: transparent;
  color: var(--cream);
  border-color: rgba(251, 246, 239, 0.85);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.25);
}
/* Footer brand-mark wordmark + tag must be cream (overrides .brand-mark-name's cocoa) */
.site-footer .brand-mark-name { color: var(--cream); }
.site-footer .brand-mark-tag  { color: rgba(251, 246, 239, 0.65); }

/* Future tests — hidden from main catalog view but data preserved in HTML.
   Individual test pages remain playable via direct URL. Restore by removing this rule. */
.future-tests-row { display: none; }

/* ============================================================
   TEST PAGE EDITORIAL REDESIGN (Multi-Pigment Editorial)
   Scoped to body.test-page so changes here only affect test pages.
   ============================================================ */

body.test-page .site-footer { display: none !important; }

/* Test intro hero — replaces the pale-green box with editorial gradient + centered max-width */
body.test-page .test-header {
  position: relative;
  padding: 96px 0 80px;
  background: transparent;
  overflow: visible;
}
body.test-page .test-header::before {
  content: '';
  position: absolute;
  width: 620px; height: 620px;
  top: -160px; right: -200px;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(168, 51, 46, 0.16) 0%, transparent 70%);
}
body.test-page .test-header::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  bottom: -160px; left: -160px;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(47, 90, 61, 0.14) 0%, transparent 70%);
}
body.test-page .test-header-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
body.test-page .test-header h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 14px 0 22px;
}
body.test-page .test-header .lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--cocoa-soft);
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.5;
}
body.test-page .test-meta-row {
  display: flex; justify-content: center; gap: 24px;
  font-size: 13px; color: var(--warm-gray);
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* Question card — editorial gradient + dimension-coloured top stripe.
   min-height keeps Back/Next buttons in a stable on-screen position so the
   layout doesn't jump as questions of different length swap in. */
body.test-page .question-card {
  max-width: 760px;
  margin: 32px auto 64px;
  padding: 32px 36px 28px;
  background: linear-gradient(170deg,
    rgba(168, 51, 46, 0.06) 0%,
    rgba(255, 255, 255, 0.96) 32%,
    var(--white) 100%);
  border-radius: 18px;
  border: 0.5px solid var(--border);
  border-top: 4px solid var(--editorial-red);
  box-shadow: 0 12px 36px -16px rgba(42, 58, 45, 0.14);
  min-height: 640px;             /* stable height across questions */
  display: flex; flex-direction: column;
}
/* Push the q-nav to the bottom of the card so Back/Next stay anchored */
body.test-page .question-card .q-nav { margin-top: auto; }
body.test-page .question-meta {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--border-soft);
}
body.test-page .question-meta-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
}
body.test-page .question-meta-dim {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(168, 51, 46, 0.10);
  color: var(--editorial-red-deep);
  border: 1px solid rgba(168, 51, 46, 0.22);
}
body.test-page .question-statement {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--cocoa);
  margin-bottom: 28px;
}

/* Answer options — editorial pill style */
body.test-page .question-options { gap: 10px; }
body.test-page .q-option {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--cocoa);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
body.test-page .q-option:hover {
  border-color: var(--editorial-red);
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, var(--white) 60%);
  transform: translateX(2px);
}
body.test-page .q-option.selected {
  background: linear-gradient(160deg, var(--editorial-red) 0%, var(--rose-deep) 100%);
  color: var(--white);
  border-color: var(--editorial-red);
  font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(168, 51, 46, 0.45);
}
body.test-page .q-option-num {
  width: 24px; height: 24px;
  background: var(--border-soft);
  color: var(--warm-gray);
  font-size: 11px;
  font-weight: 700;
}
body.test-page .q-option.selected .q-option-num {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

/* Review comment — quieter, off-white instead of honey-yellow */
body.test-page .q-comment {
  margin-top: 18px;
  padding: 14px 16px 12px;
  background: var(--border-soft);
  border: 0.5px dashed var(--border);
  border-radius: 10px;
}
body.test-page .q-comment-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 600;
  margin-bottom: 6px;
  display: flex; align-items: center;
}
body.test-page .q-comment-area {
  width: 100%;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--cocoa);
  min-height: 0;
  resize: vertical;
  transition: min-height 0.2s, border-color 0.15s;
}
body.test-page .q-comment-area:focus {
  outline: 0; min-height: 70px;
  border-color: var(--editorial-red);
}

/* Q-nav — Back / Next */
body.test-page .q-nav {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 0.5px solid var(--border-soft);
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; justify-content: space-between;
}
body.test-page .q-nav-info {
  font-size: 12.5px;
  color: var(--warm-gray);
  flex: 1;
  text-align: center;
}

/* Progress bar — editorial */
body.test-page .test-progress-wrap {
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.85);
  /* backdrop-filter removed for perf */
  border-bottom: 0.5px solid var(--border-soft);
}
body.test-page .test-progress-bar {
  height: 4px;
  background: var(--border-soft);
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 14px;
  color: var(--cocoa-soft);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--cocoa); }
/* Current page — quiet marker, never a pill (Portrait stays the only pill) */
.site-nav a.active:not([href$="/you/patterns/"]):not([href="./patterns/"]) {
  color: var(--editorial-red);
  font-weight: 600;
  border-bottom: 2px solid rgba(168,51,46,0.35);
  padding-bottom: 2px;
}

.site-nav .nav-cta {
  background: var(--editorial-red);
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
}

.site-nav .nav-cta:hover { background: var(--editorial-red-deep); color: var(--cream); }

@media (max-width: 720px) {
  /* Inline links collapse into the hamburger drawer (see nav.js + MOBILE NAV block) */
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 96px 0 80px;
  position: relative;
  /* No overflow:hidden — blobs bleed past the hero into the next section
     so the page reads as one continuous flowing background. */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after,
.hero-bg .blob {
  content: '';
  position: absolute;
  border-radius: 50%;
  /* Reduced blur — visually similar, ~3× cheaper to rasterise */
  filter: blur(36px);
  opacity: 0.55;
  will-change: auto;
}

/* Multi-Pigment Editorial hero corner glows — trimmed for perf */
.hero-bg::before {
  width: 540px; height: 540px;
  background: var(--peach-mid);
  top: -180px; right: -160px;
}

.hero-bg::after {
  width: 520px; height: 520px;
  background: var(--sage-mid);
  bottom: -180px; left: -160px;
}

.hero-bg .blob {
  width: 420px; height: 420px;
  background: var(--lavender-mid);
  bottom: -160px; right: 8%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-inner .eyebrow { margin-bottom: 20px; }
.hero-inner h1 { margin-bottom: 24px; }
.hero-inner .lead { margin-bottom: 32px; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.15s;
  border: 0.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--editorial-red);
  color: var(--cream);
}
.btn-primary:hover { background: var(--editorial-red-deep); transform: translateY(-1px); }

.btn-ghost {
  background: var(--white);
  color: var(--cocoa);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cocoa); transform: translateY(-1px); }

.btn-sage {
  background: var(--sage);
  color: var(--cream);
}
.btn-sage:hover { background: var(--sage-deep); }

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

/* ============================================
   CATALOG WING
   ============================================ */

.wing {
  position: relative;
  padding: 80px 0;
}

.wing-originals {
  background: transparent;
  position: relative;
}
.wing-originals::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -150px; left: -250px;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(140, 46, 69, 0.22) 0%, transparent 70%);  /* wine */
  z-index: 0;
}
.wing-originals::after {
  /* Tasteful interior mid-page blob — visible center, not at edges */
  content: '';
  position: absolute;
  width: 440px; height: 440px;
  top: 45%; right: 22%;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(77, 61, 140, 0.14) 0%, transparent 70%);  /* lavender mid */
  z-index: 0;
}
.wing-originals > * { position: relative; z-index: 1; }

.wing-classics {
  background: transparent;
  position: relative;
}
.wing-classics::before {
  content: '';
  position: absolute;
  width: 680px; height: 680px;
  top: -100px; right: -240px;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(168, 51, 46, 0.16) 0%, transparent 70%);  /* editorial red */
  z-index: 0;
}
.wing-classics::after {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  bottom: -100px; left: -200px;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(31, 42, 33, 0.18) 0%, transparent 70%);   /* dark ink */
  z-index: 0;
}
.wing-classics > * { position: relative; z-index: 1; }

.wing-header {
  text-align: left;
  margin-bottom: 56px;
  max-width: 760px;
}

.wing-header .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: 0.24em; }
.wing-header h2 { margin-bottom: 18px; }
.wing-header p { color: var(--warm-gray); font-size: 16px; max-width: 640px; }

.test-category {
  margin-bottom: 64px;
  position: relative;
  overflow: visible;
  padding: 20px 0;
}

/* Per-zone corner color glow — large soft radial behind each category section.
   Matches the Multi-Pigment Editorial cockpit preview. */
.test-category::before,
.test-category::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.test-category::before { top: -60px; right: -180px; }
.test-category::after  { bottom: -60px; left: -180px; }
.test-category > * { position: relative; z-index: 1; }

/* Per-category zone colors — targeted via explicit zone-* class on each
   .test-category div so colors land in the right section every time. */
.test-category.zone-wine::before,
.test-category.zone-wine::after        { background: radial-gradient(circle, rgba(140, 46, 69, 0.32) 0%, transparent 70%); }
.test-category.zone-terracotta::before,
.test-category.zone-terracotta::after  { background: radial-gradient(circle, rgba(140, 61, 31, 0.32) 0%, transparent 70%); }
.test-category.zone-green::before,
.test-category.zone-green::after       { background: radial-gradient(circle, rgba(47, 90, 61, 0.32) 0%, transparent 70%); }
.test-category.zone-purple::before,
.test-category.zone-purple::after      { background: radial-gradient(circle, rgba(77, 61, 140, 0.32) 0%, transparent 70%); }
.test-category.zone-gold::before,
.test-category.zone-gold::after        { background: radial-gradient(circle, rgba(140, 94, 15, 0.32) 0%, transparent 70%); }
.test-category.zone-teal::before,
.test-category.zone-teal::after        { background: radial-gradient(circle, rgba(31, 90, 79, 0.32) 0%, transparent 70%); }

.test-category-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 0.5px solid var(--border);
}

.test-category-head h3 {
  font-size: 20px;
  font-family: var(--font-serif);
}

.test-category-head .eyebrow {
  margin-left: auto;
  font-size: 10px;
}

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

.test-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 28px 22px;
  border: 0.5px solid var(--border);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  box-shadow: 0 6px 18px -10px rgba(42, 58, 45, 0.10);
}

.test-card:hover {
  border-color: var(--sage-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(42, 58, 45, 0.15);
}

.test-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.test-card-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: 6px;
  line-height: 1.25;
}

.test-card-desc {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.5;
  margin-bottom: 12px;
}

.test-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--warm-gray-light);
  padding-top: 10px;
  border-top: 0.5px solid var(--border-soft);
}

.test-card-similar {
  font-size: 11px;
  color: var(--warm-gray-light);
  font-style: italic;
}

.test-card-flagship {
  background: linear-gradient(135deg, var(--white) 0%, var(--sage-soft) 100%);
  border: 1.5px solid var(--sage);
}

/* Category color variants — Multi-Pigment Editorial: each card has a
   TINTED GRADIENT BACKGROUND (zone color fading to white) + dark top stripe.
   Matches the cockpit preview exactly. */
.cat-sage     { border-top: 4px solid var(--sage-deep);     background: linear-gradient(160deg, rgba(47, 90, 61, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-peach    { border-top: 4px solid var(--peach-deep);    background: linear-gradient(160deg, rgba(140, 61, 31, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-lavender { border-top: 4px solid var(--lavender-deep); background: linear-gradient(160deg, rgba(77, 61, 140, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-honey    { border-top: 4px solid var(--honey-deep);    background: linear-gradient(160deg, rgba(140, 94, 15, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-rose     { border-top: 4px solid var(--rose-deep);     background: linear-gradient(160deg, rgba(140, 46, 69, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-mint     { border-top: 4px solid var(--mint-deep);     background: linear-gradient(160deg, rgba(31, 90, 79, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }
.cat-blue     { border-top: 4px solid var(--blue-deep);     background: linear-gradient(160deg, rgba(46, 90, 140, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); }

.cat-sage    .test-card-pill { background: var(--sage-soft);    color: var(--sage-deep); font-weight: 600; }
.cat-peach   .test-card-pill { background: var(--peach-soft);   color: var(--peach-deep); font-weight: 600; }
.cat-lavender .test-card-pill{ background: var(--lavender-soft); color: var(--lavender-deep); font-weight: 600; }
.cat-honey   .test-card-pill { background: var(--honey-soft);   color: var(--honey-deep); font-weight: 600; }
.cat-rose    .test-card-pill { background: var(--rose-soft);    color: var(--rose-deep); font-weight: 600; }
.cat-mint    .test-card-pill { background: var(--mint-soft);    color: var(--mint-deep); font-weight: 600; }
.cat-blue    .test-card-pill { background: var(--blue-soft);    color: var(--blue-deep); font-weight: 600; }

/* Card hover: colored shadow per category */
.cat-sage:hover     { box-shadow: 0 8px 24px -10px rgba(47, 90, 61, 0.30); }
.cat-blue:hover     { box-shadow: 0 8px 24px -10px rgba(46, 90, 140, 0.30); }
.cat-rose:hover     { box-shadow: 0 8px 24px -10px rgba(140, 46, 69, 0.30); }
.cat-peach:hover    { box-shadow: 0 8px 24px -10px rgba(140, 61, 31, 0.30); }
.cat-honey:hover    { box-shadow: 0 8px 24px -10px rgba(140, 94, 15, 0.30); }
.cat-lavender:hover { box-shadow: 0 8px 24px -10px rgba(77, 61, 140, 0.30); }

/* ============================================
   DIFFERENCE GRID (how it's different)
   ============================================ */

.diff-section {
  /* No background or overflow:hidden — the page is one continuous flowing canvas.
     Hero blobs bleed down INTO this section, and our own corner glows extend out. */
  background: transparent;
  position: relative;
  padding-bottom: 80px;
}
/* Corner color glows that complement the top→bottom gradient */
.diff-section::before,
.diff-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
}
.diff-section::before {
  width: 640px; height: 640px;
  top: -180px; right: -200px;
  background: radial-gradient(circle, rgba(140, 61, 31, 0.18) 0%, transparent 70%);  /* terracotta top */
}
.diff-section::after {
  width: 720px; height: 720px;
  bottom: -200px; left: -240px;
  background: radial-gradient(circle, rgba(47, 90, 61, 0.16) 0%, transparent 70%);   /* sage bottom-left */
}
.diff-section > * { position: relative; z-index: 1; }

/* Tasteful interior mid-page blobs — visible in the middle of the page, not at edges */
.diff-section .diff-row:nth-of-type(2)::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  top: -120px; left: 38%;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(140, 94, 15, 0.14) 0%, transparent 70%);  /* honey mid-page */
  z-index: 0;
}
.diff-row { position: relative; }
.diff-row > * { position: relative; z-index: 1; }

.diff-subhead {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--cocoa);
  margin: 10px 0 26px;
  letter-spacing: -0.015em;
}
.diff-subhead-note {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-gray);
  font-style: italic;
  letter-spacing: 0;
  margin-left: 2px;
}
.diff-subhead-second { margin-top: 56px; }

@media (max-width: 720px) {
  .diff-subhead-second { margin-top: 40px; }
  .diff-subhead { font-size: 19px; }
  .diff-subhead-note { display: block; margin-left: 0; margin-top: 4px; }
}

/* Per-row collapse toggle — keeps cards visible but hides body text + CTA when collapsed */
.diff-row { margin-bottom: 0; }

.diff-subhead-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.diff-row-toggle {
  padding: 7px 14px;
  background: var(--white);
  color: var(--cocoa);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.diff-row-toggle:hover { border-color: var(--cocoa); background: var(--cream-warm); transform: translateY(-1px); }

/* COLLAPSED STATE — hide body p and CTA inside cards */
.diff-row[data-expanded="false"] .diff-card p { display: none; }
.diff-row[data-expanded="false"] .diff-card-cta { display: none; }
.diff-row[data-expanded="false"] .diff-card { padding: 22px 22px 20px; }

/* TABS + BENTO (unused now but keeping the legacy below) */
.diff-tabs {
  display: flex;
  gap: 6px;
  margin: 36px 0 28px;
  border-bottom: 0.5px solid var(--border);
  flex-wrap: wrap;
}
.diff-tab {
  padding: 12px 22px 14px;
  background: transparent;
  color: var(--warm-gray);
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -0.5px;
}
.diff-tab:hover { color: var(--cocoa); }
.diff-tab.active {
  color: var(--cocoa);
  border-bottom-color: var(--sage-deep);
}

.diff-tab-panel { display: none; }
.diff-tab-panel.active { display: block; animation: tabFade 0.25s ease-out; }
@keyframes tabFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.diff-bento {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 14px;
  min-height: 480px;
}

.diff-card-bento-hero {
  grid-column: 1;
  grid-row: 1 / 4;
  padding: 32px 30px 26px;
}
.diff-card-bento-hero .diff-card-head { font-size: 26px; line-height: 1.15; max-width: 100%; }
.diff-card-bento-hero p { font-size: 14.5px; line-height: 1.6; margin-bottom: 0; }

.diff-card-bento-small {
  grid-column: 2;
  grid-row: span 1;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.diff-card-bento-small p { display: none; }
.diff-card-bento-small .diff-card-tag { margin-bottom: 8px; }
.diff-card-bento-small .diff-card-head {
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 4px;
  max-width: 100%;
}
.diff-card-bento-small .diff-card-cta { margin-top: 0; font-size: 11px; }

@media (max-width: 720px) {
  .diff-tab { font-size: 16px; padding: 10px 14px 12px; }
  .diff-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
    gap: 10px;
  }
  .diff-card-bento-hero { grid-column: 1; grid-row: auto; padding: 22px 20px; }
  .diff-card-bento-hero .diff-card-head { font-size: 21px; }
  .diff-card-bento-small { grid-column: 1; }
}

/* Legacy classes (still used elsewhere — keep but don't show old row pill UI) */
.diff-row { margin-bottom: 0; }

.diff-row-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.diff-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--white);
  border: 0.5px solid var(--border);
  color: var(--cocoa);
  transition: transform 0.18s, border-color 0.18s;
}
.diff-pill-sage     { background: var(--sage-soft);     color: var(--sage-deep);     border-color: rgba(47, 90, 61, 0.18); }
.diff-pill-honey    { background: var(--honey-soft);    color: var(--honey-deep);    border-color: rgba(140, 94, 15, 0.18); }
.diff-pill-rose     { background: var(--rose-soft);     color: var(--rose-deep);     border-color: rgba(140, 46, 69, 0.18); }
.diff-pill-mint     { background: var(--mint-soft);     color: var(--mint-deep);     border-color: rgba(31, 90, 79, 0.18); }
.diff-pill-lavender { background: var(--lavender-soft); color: var(--lavender-deep); border-color: rgba(77, 61, 140, 0.18); }
.diff-pill-peach    { background: var(--peach-soft);    color: var(--peach-deep);    border-color: rgba(140, 61, 31, 0.18); }

.diff-row-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
  margin-bottom: 12px;
}
.diff-row-toggle:hover { transform: translateY(-1px); background: var(--sage-deep); }
.diff-row-toggle::after {
  content: '↓';
  display: inline-block;
  transition: transform 0.25s;
  font-size: 14px;
}
.diff-row[data-expanded="true"] .diff-row-toggle::after { transform: rotate(180deg); }

/* Toggle states */
.diff-row[data-expanded="false"] .diff-row-grid { display: none; }
.diff-row[data-expanded="true"] .diff-row-pills { display: none; }
.diff-row[data-expanded="true"] .diff-row-grid { display: grid; margin-top: 8px; }
.diff-row[data-expanded="true"] .diff-row-toggle { background: var(--warm-gray-light); color: var(--cream); }

@media (max-width: 540px) {
  .diff-pill { font-size: 13px; padding: 9px 14px; }
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.diff-card {
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg);
  border: 0.5px solid rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s;
  background: var(--white);
  box-shadow: 0 6px 20px -10px rgba(42, 58, 45, 0.10);
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(42, 58, 45, 0.22);
}

.diff-card-num { display: none; } /* numbers removed per feedback */

.diff-card { cursor: pointer; text-align: left; font-family: inherit; }
.diff-card-cta {
  display: inline-block;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: transform 0.18s, opacity 0.18s;
  opacity: 0.85;
}
.diff-card:hover .diff-card-cta { transform: translateX(3px); opacity: 1; }

/* Featured card — for AI escape hatches, the core innovation */
.diff-card-featured {
  box-shadow: 0 4px 24px -4px rgba(140, 94, 15, 0.18);
  position: relative;
}
.diff-card-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--honey);
  pointer-events: none;
}
.diff-card-featured:hover {
  box-shadow: 0 16px 40px -10px rgba(140, 94, 15, 0.30);
}
.diff-card-featured-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--honey-deep);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Inline mini-example inside featured card */
.diff-card-mini-example {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.45;
}
.diff-card-mini-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-deep);
  font-weight: 500;
}
.diff-card-mini-text {
  color: var(--cocoa);
  font-style: italic;
}
.diff-card-mini-arrow {
  font-size: 10px;
  color: var(--honey-deep);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.diff-card-sage     .diff-card-cta { color: var(--sage-deep); }
.diff-card-peach    .diff-card-cta { color: var(--peach-deep); }
.diff-card-lavender .diff-card-cta { color: var(--lavender-deep); }
.diff-card-honey    .diff-card-cta { color: var(--honey-deep); }
.diff-card-rose     .diff-card-cta { color: var(--rose-deep); }
.diff-card-mint     .diff-card-cta { color: var(--mint-deep); }

.diff-card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.diff-card-head {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.2;
  color: var(--cocoa);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
  max-width: 92%;
}

.diff-card p {
  font-size: 13.5px;
  color: var(--cocoa-soft);
  line-height: 1.6;
  margin: 0;
}

/* Color variants — Multi-Pigment Editorial: tinted gradient bg + dark top stripe
   (matching the test-card aesthetic for a coherent design language) */
.diff-card-sage     { background: linear-gradient(160deg, rgba(47, 90, 61, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--sage-deep); }
.diff-card-sage     .diff-card-num,
.diff-card-sage     .diff-card-tag { color: var(--sage-deep); background: var(--sage-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

.diff-card-peach    { background: linear-gradient(160deg, rgba(140, 61, 31, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--peach-deep); }
.diff-card-peach    .diff-card-num,
.diff-card-peach    .diff-card-tag { color: var(--peach-deep); background: var(--peach-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

.diff-card-lavender { background: linear-gradient(160deg, rgba(77, 61, 140, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--lavender-deep); }
.diff-card-lavender .diff-card-num,
.diff-card-lavender .diff-card-tag { color: var(--lavender-deep); background: var(--lavender-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

.diff-card-honey    { background: linear-gradient(160deg, rgba(140, 94, 15, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--honey-deep); }
.diff-card-honey    .diff-card-num,
.diff-card-honey    .diff-card-tag { color: var(--honey-deep); background: var(--honey-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

.diff-card-rose     { background: linear-gradient(160deg, rgba(140, 46, 69, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--rose-deep); }
.diff-card-rose     .diff-card-num,
.diff-card-rose     .diff-card-tag { color: var(--rose-deep); background: var(--rose-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

.diff-card-mint     { background: linear-gradient(160deg, rgba(31, 90, 79, 0.18) 0%, rgba(255,255,255,0.96) 50%, var(--white) 100%); border-top: 4px solid var(--mint-deep); }
.diff-card-mint     .diff-card-num,
.diff-card-mint     .diff-card-tag { color: var(--mint-deep); background: var(--mint-soft); padding: 4px 11px; border-radius: 999px; font-weight: 600; }

@media (max-width: 720px) {
  .diff-card-head { font-size: 17px; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MODALS — for diff card "click to see"
   ============================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 58, 45, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.18s ease-out;
}
.modal-overlay.open { display: flex; }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.modal {
  background: var(--cream);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 36px 36px 32px;
  position: relative;
  box-shadow: 0 30px 80px -20px rgba(42, 58, 45, 0.35);
  animation: modalSlideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal color accent strip at top */
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.modal-sage::before     { background: var(--sage); }
.modal-peach::before    { background: var(--peach); }
.modal-lavender::before { background: var(--lavender); }
.modal-honey::before    { background: var(--honey); }
.modal-rose::before     { background: var(--rose); }
.modal-mint::before     { background: var(--mint); }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(42, 58, 45, 0.08);
  color: var(--cocoa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(42, 58, 45, 0.16); }

.modal-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.modal-tag-sage     { background: var(--sage-soft);     color: var(--sage-deep); }
.modal-tag-peach    { background: var(--peach-soft);    color: var(--peach-deep); }
.modal-tag-lavender { background: var(--lavender-soft); color: var(--lavender-deep); }
.modal-tag-honey    { background: var(--honey-soft);    color: var(--honey-deep); }
.modal-tag-rose     { background: var(--rose-soft);     color: var(--rose-deep); }
.modal-tag-mint     { background: var(--mint-soft);     color: var(--mint-deep); }

.modal-head {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--cocoa);
  margin-bottom: 18px;
  max-width: 96%;
}

.modal-body-text p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cocoa-soft);
  margin-bottom: 14px;
}
.modal-body-text strong { color: var(--cocoa); font-weight: 500; }
.modal-body-text em { font-style: italic; }

.modal-example {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-top: 18px;
  border: 0.5px solid var(--border);
}
.modal-example-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  font-weight: 500;
  margin-bottom: 12px;
}
.modal-example-content { font-size: 14px; color: var(--cocoa); line-height: 1.5; }

/* Mini pills used inside modals */
.m-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--cream);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cocoa);
}
.m-pill-muted {
  background: var(--white);
  color: var(--warm-gray-light);
  font-family: var(--font-serif);
  font-style: italic;
  min-width: 36px;
  justify-content: center;
}
.m-pill-active {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
  font-weight: 500;
}

@media (max-width: 540px) {
  .modal { padding: 28px 22px 24px; max-height: 92vh; border-radius: var(--radius-lg); }
  .modal-head { font-size: 22px; }
  .modal-overlay { padding: 12px; }
}

/* ============================================
   PASSWORD GATE
   ============================================ */

.gate-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--peach-soft) 50%, var(--lavender-soft) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px -12px rgba(42, 58, 45, 0.25);
}

.gate-card .brand-mark {
  justify-content: center;
  margin-bottom: 24px;
}

.gate-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.gate-card p {
  font-size: 14px;
  color: var(--warm-gray);
  margin-bottom: 24px;
}

.gate-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 16px;
  color: var(--cocoa);
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.gate-input:focus {
  outline: none;
  border-color: var(--sage-deep);
}

.gate-error {
  color: #B8442A;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

/* ============================================
   TEST FLOW
   ============================================ */

.test-header {
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--white) 100%);
  padding: 56px 0 32px;
  border-bottom: 0.5px solid var(--border);
}

.test-header-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.test-header .eyebrow { margin-bottom: 14px; }
.test-header h1 { margin-bottom: 12px; font-size: clamp(28px, 5vw, 44px); }
.test-header .lead { margin-bottom: 20px; }

.test-meta-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  color: var(--warm-gray);
  flex-wrap: wrap;
}

.test-progress-wrap {
  background: var(--cream-warm);
  padding: 20px 0;
  position: sticky;
  top: 65px;
  z-index: 30;
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(245, 237, 226, 0.92);
}

.test-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.test-progress-fill {
  height: 100%;
  /* Multi-Pigment Editorial progress — editorial red gradient */
  background: linear-gradient(90deg, var(--editorial-red) 0%, var(--rose-deep) 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.test-progress-text {
  font-size: 13px;
  color: var(--warm-gray);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* QUESTION CARD */

.question-card {
  max-width: 720px;
  margin: 40px auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 0.5px solid var(--border);
  box-shadow: 0 4px 20px -8px rgba(42, 58, 45, 0.08);
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--border-soft);
}

.question-meta-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
}

.question-meta-dim {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.question-statement {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--cocoa);
  margin-bottom: 24px;
}

.question-statement.scenario {
  font-style: italic;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-option {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 15px;
  color: var(--cocoa);
  text-align: left;
  transition: all 0.15s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-option:hover {
  border-color: var(--sage-deep);
  background: var(--sage-soft);
  transform: translateX(4px);
}

.q-option.selected {
  background: var(--sage);
  color: var(--cream);
  border-color: var(--sage);
  font-weight: 500;
}

.q-option-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cream-warm);
  font-size: 11px;
  font-weight: 500;
  color: var(--warm-gray);
  flex-shrink: 0;
}

.q-option.selected .q-option-num {
  background: var(--cream);
  color: var(--sage-deep);
}

/* Recognition (4-pt) */
.q-recognition .q-option {
  text-align: center;
  justify-content: center;
}

/* Frequency (4-pt) */
.q-frequency .q-option {
  border-style: dashed;
}
.q-frequency .q-option.selected { border-style: solid; }

/* Forced choice */
.q-forced .forced-or {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--warm-gray);
  margin: 12px 0;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Two-axis */
.q-twoaxis .axis-1 {
  text-align: center;
  margin-bottom: 24px;
}
.q-twoaxis .axis-1 .axis-row {
  display: inline-flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.q-twoaxis .axis-1 .q-option {
  min-width: 150px;
  padding: 16px 36px;
  font-size: 17px;
  font-weight: 500;
  justify-content: center;
  flex: 0 0 auto;
}

.q-twoaxis .axis-2 {
  text-align: center;
  padding-top: 22px;
  border-top: 0.5px dashed var(--border);
  margin-top: 8px;
}
.q-twoaxis .axis-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 12px;
}
.q-twoaxis .axis-2 .axis-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.q-twoaxis .axis-2 .q-option {
  flex: 0 1 auto;
  min-width: 110px;
  padding: 11px 22px;
  font-size: 13px;
  justify-content: center;
}

@media (max-width: 540px) {
  .q-twoaxis .axis-1 .q-option { min-width: 130px; padding: 14px 24px; font-size: 16px; }
  .q-twoaxis .axis-2 .q-option { min-width: 90px; padding: 10px 14px; font-size: 12px; }
}

/* Multi-context (grid of contexts × scale) */
.q-multicontext { display: flex; flex-direction: column; gap: 18px; }
.mc-row {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 0.5px solid var(--border);
}
.mc-row-label {
  font-size: 14px;
  color: var(--cocoa);
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}
.mc-row-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.mc-row-options .q-option {
  padding: 9px 8px;
  font-size: 12px;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  background: var(--white);
}
.mc-row-options .q-option:hover {
  transform: none;
  background: var(--sage-soft);
}
.mc-opt-text {
  display: inline-block;
  line-height: 1.2;
}

@media (max-width: 540px) {
  .mc-row-options { grid-template-columns: repeat(2, 1fr); }
  .mc-row-options .q-option { padding: 10px 6px; font-size: 12px; }
}

/* AI assistance buttons (escape hatches) */
.q-assist {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.q-assist-btn {
  background: var(--white);
  border: 1px dashed var(--peach);
  color: var(--peach-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-style: italic;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.q-assist-btn:hover {
  background: var(--peach-soft);
  border-style: solid;
}

.q-typed-wrap {
  margin-top: 14px;
  padding: 16px;
  background: var(--peach-soft);
  border-radius: var(--radius-md);
  display: none;
}

.q-typed-wrap.open { display: block; }

.q-typed {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  color: var(--cocoa);
  resize: vertical;
  min-height: 64px;
}

.q-examples-wrap {
  margin-top: 14px;
  padding: 16px;
  background: var(--lavender-soft);
  border-radius: var(--radius-md);
  display: none;
  font-size: 14px;
  color: var(--cocoa-soft);
}

.q-examples-wrap.open { display: block; }

.q-examples-wrap ul { padding-left: 20px; }
.q-examples-wrap li { margin-bottom: 6px; line-height: 1.5; }

/* COMMENT BOX (per-question review feature) */

.q-comment {
  margin-top: 20px;
  padding: 16px;
  background: var(--honey-soft);
  border-radius: var(--radius-md);
  border: 0.5px dashed var(--honey-deep);
}

.q-comment-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: 8px;
}

.q-comment-area {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  color: var(--cocoa);
  resize: vertical;
  min-height: 60px;
}

.q-comment-saved {
  font-size: 11px;
  color: var(--honey-deep);
  margin-top: 6px;
  font-style: italic;
}

.q-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 0.5px solid var(--border-soft);
}

.q-nav-info {
  font-size: 12px;
  color: var(--warm-gray);
}

/* ============================================
   RESULTS PAGE
   ============================================ */

.results-hero {
  padding: 72px 0 48px;
  background: linear-gradient(135deg, var(--sage-soft) 0%, var(--peach-soft) 50%, var(--lavender-soft) 100%);
  text-align: center;
}

.results-archetype-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--peach);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--cocoa);
  box-shadow: 0 10px 40px -10px rgba(244, 167, 138, 0.5);
}

.results-name {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.results-essence {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--cocoa-soft);
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.results-rarity {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.results-rarity-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  text-align: center;
  min-width: 140px;
}

.results-rarity-stat {
  font-size: 28px;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--cocoa);
  line-height: 1;
}

.results-rarity-label {
  font-size: 12px;
  color: var(--warm-gray);
  margin-top: 4px;
}

.trait-bars {
  max-width: 520px;
  margin: 0 auto;
}

.trait-bar {
  margin-bottom: 16px;
}

.trait-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--cocoa);
  margin-bottom: 6px;
}

.trait-bar-head strong { font-weight: 500; }

.trait-bar-track {
  height: 8px;
  background: var(--cream-warm);
  border-radius: 999px;
  overflow: hidden;
}

.trait-bar-fill { height: 100%; border-radius: 999px; }

.trait-bar.openness   .trait-bar-fill { background: var(--lavender); }
.trait-bar.drive      .trait-bar-fill { background: var(--peach); }
.trait-bar.energy     .trait-bar-fill { background: var(--honey); }
.trait-bar.warmth     .trait-bar-fill { background: var(--rose); }
.trait-bar.steadiness .trait-bar-fill { background: var(--sage); }

/* ============================================
   PLACEHOLDER TEST PAGE
   ============================================ */

.coming-soon-banner {
  background: var(--honey-soft);
  border: 1px dashed var(--honey-deep);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.coming-soon-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--honey);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.coming-soon-banner-text {
  font-size: 14px;
  color: var(--cocoa);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  /* Footer red — slightly deeper than the brand red #A8332E so a 100%-wide
     surface visually reads at the same weight as the smaller buttons/logo
     (large flat fields appear lighter at the same hex). Stays in family. */
  background: #962D28 !important;
  color: #FBF6EF;
  padding: 64px 0 32px;
  margin-top: 96px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

.site-footer-col h4 {
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 15px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.site-footer-col ul { list-style: none; }
.site-footer-col li { margin-bottom: 8px; }

.site-footer-col a {
  font-size: 14px;
  color: var(--cream);
  opacity: 0.7;
  transition: opacity 0.15s;
}

.site-footer-col a:hover { opacity: 1; }

.site-footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  opacity: 0.75;
  margin-top: 12px;
}

.site-footer-bottom {
  border-top: 0.5px solid rgba(251, 246, 239, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   ADMIN / COMMENTS EXPORT WIDGET
   ============================================ */

.admin-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
}

.admin-toggle {
  background: var(--cocoa);
  color: var(--cream);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px -6px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.15s;
}

.admin-toggle:hover { transform: scale(1.05); }

.admin-menu {
  position: absolute;
  bottom: 72px;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.2);
  min-width: 240px;
  display: none;
}

.admin-menu.open { display: block; }

.admin-menu h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 12px;
}

.admin-menu button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 13px;
  margin-bottom: 6px;
  transition: background 0.12s;
}

.admin-menu button:hover { background: var(--sage-soft); }

/* ============================================
   UTILITIES
   ============================================ */

.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-small { font-size: 13px; color: var(--warm-gray); }

/* ───── PAIR READING ───── */
.pair-intake { max-width: 640px; margin: 0 auto; }
.pair-h1 { font-family: var(--font-serif); font-size: 44px; line-height: 1.1; color: var(--cocoa); margin: 16px 0 18px; letter-spacing: -0.5px; }
.pair-lede { font-size: 17px; color: var(--cocoa-soft); line-height: 1.55; margin-bottom: 36px; }
.pair-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.pair-field { display: block; margin-bottom: 22px; }
.pair-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--cocoa); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px; }
.pair-field input[type="text"] { width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--cream); font-family: inherit; font-size: 16px; color: var(--cocoa); transition: border-color 150ms ease; box-sizing: border-box; }
.pair-field input[type="text"]:focus { outline: none; border-color: var(--sage); background: var(--white); }
.pair-rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pair-rel-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); background: var(--cream); border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 15px; color: var(--cocoa); transition: all 150ms ease; text-align: left; }
.pair-rel-btn:hover { border-color: var(--sage-mid); background: var(--white); }
.pair-rel-btn.selected { border-color: var(--sage); background: var(--sage-soft); }
.pair-rel-icon { font-size: 22px; color: var(--sage-deep); line-height: 1; }
.pair-rel-label { font-weight: 500; }
.pair-fineprint { font-size: 12px; color: var(--warm-gray); margin-top: 16px; text-align: center; }

.pair-test-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
.pair-test-crumb { font-size: 13px; color: var(--warm-gray); }
.pair-test-crumb strong { color: var(--cocoa); }
.pair-progress { display: flex; align-items: center; gap: 12px; flex: 1; max-width: 320px; }
.pair-progress-track { flex: 1; height: 6px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.pair-progress-fill { height: 100%; background: var(--sage); border-radius: 999px; transition: width 300ms ease; }
.pair-progress-text { font-size: 12px; color: var(--warm-gray); font-variant-numeric: tabular-nums; min-width: 50px; text-align: right; }

.pair-share { max-width: 640px; margin: 0 auto; }
.pair-share-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin: 24px 0; }
.pair-share-card-h { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); margin-bottom: 8px; }
.pair-share-card-p { font-size: 15px; color: var(--cocoa-soft); margin-bottom: 18px; line-height: 1.5; }
.pair-share-url-row { display: flex; gap: 10px; align-items: stretch; }
.pair-share-url-row input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--cream); font-family: monospace; font-size: 13px; color: var(--cocoa); min-width: 0; }
.pair-share-card-tip { font-size: 12px; color: var(--warm-gray); margin-top: 12px; }
.pair-share-preview { margin-top: 24px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 16px 18px; background: var(--cream); }
.pair-share-preview summary { cursor: pointer; font-size: 14px; color: var(--cocoa); }

.pair-joint { max-width: 760px; margin: 0 auto; }
.pair-joint-head { text-align: center; margin-bottom: 48px; }
.pair-joint-lede { font-size: 17px; color: var(--cocoa-soft); max-width: 540px; margin: 0 auto; line-height: 1.55; }
.pair-joint-section { margin: 48px 0; }
.pair-joint-h { font-family: var(--font-serif); font-size: 26px; color: var(--cocoa); margin-bottom: 8px; }
.pair-joint-p { color: var(--warm-gray); font-size: 14px; margin-bottom: 24px; }

.pair-arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-arch-card { padding: 24px; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.pair-arch-name { font-family: var(--font-serif); font-size: 24px; margin-bottom: 4px; }
.pair-arch-sub { font-size: 12px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.pair-arch-essence { font-style: italic; color: var(--cocoa-soft); font-size: 15px; line-height: 1.5; }

.pair-dual-bars { display: flex; flex-direction: column; gap: 24px; }
.pair-dual-bar-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: var(--cocoa); }
.pair-dual-bar-vals { font-size: 13px; color: var(--warm-gray); }
.pair-dual-bar-track { position: relative; height: 14px; background: var(--border-soft); border-radius: 999px; overflow: visible; }
.pair-dual-bar-fill-a { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; opacity: 0.7; }
.pair-dual-bar-fill-b { position: absolute; top: -3px; width: 4px; height: 20px; background: var(--cocoa); border-radius: 2px; box-shadow: 0 0 0 2px var(--white); transform: translateX(-2px); }
.pair-dual-bar-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--warm-gray-light); margin-top: 6px; }

.pair-dim-reads { display: flex; flex-direction: column; gap: 16px; }
.pair-dim-read { padding: 20px 22px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--white); }
.pair-dim-read.pair-dim-wide { border-color: var(--peach-mid); background: linear-gradient(180deg, var(--white) 0%, var(--peach-soft) 200%); }
.pair-dim-read.pair-dim-close { background: var(--cream); }
.pair-dim-read-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.pair-dim-name { padding: 4px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.pair-dim-gap { color: var(--warm-gray); font-variant-numeric: tabular-nums; }
.pair-dim-level { margin-left: auto; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.pair-dim-level-close { background: var(--sage-soft); color: var(--sage-deep); }
.pair-dim-level-moderate { background: var(--lavender-soft); color: var(--lavender-deep); }
.pair-dim-level-wide { background: var(--peach-soft); color: var(--peach-deep); }
.pair-dim-read-copy { font-size: 15.5px; color: var(--cocoa); line-height: 1.55; margin: 0; }

.pair-joint-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; }
.pair-joint-summary-line { font-family: var(--font-serif); font-size: 19px; color: var(--cocoa); line-height: 1.5; margin: 0; }

.btn-lg { padding: 16px 28px; font-size: 16px; width: 100%; }

.reading-rater-frame { background: var(--cream); border-left: 3px solid var(--sage); padding: 10px 16px; margin: 0 0 16px; font-size: 14px; color: var(--cocoa); border-radius: var(--radius-sm); }

/* ───── SEARCH (homepage) ───── */
.wren-search-section { padding: 56px 0 24px; background: transparent; border-bottom: 0; position: relative; }
.wren-search-section::before {
  content: '';
  position: absolute;
  width: 540px; height: 540px;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(77, 61, 140, 0.16) 0%, transparent 70%);   /* lavender */
  z-index: 0;
}
.wren-search-section::after {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  top: 50%; right: -180px;
  transform: translateY(-50%);
  border-radius: 50%;
  filter: blur(30px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(140, 94, 15, 0.16) 0%, transparent 70%);    /* honey */
  z-index: 0;
}
.wren-search-section > * { position: relative; z-index: 1; }
.wren-search-wrap { max-width: 720px; margin: 0 auto; }
.wren-search-label { display: block; text-align: center; font-size: 12px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; font-weight: 600; }
.wren-search-bar { display: flex; align-items: center; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 4px 6px 4px 18px; box-shadow: 0 2px 14px rgba(42,58,45,0.04); transition: border-color 150ms ease, box-shadow 150ms ease; }
.wren-search-bar:focus-within { border-color: var(--sage); box-shadow: 0 4px 22px rgba(122,176,152,0.18); }
.wren-search-icon { font-size: 20px; color: var(--warm-gray); margin-right: 10px; line-height: 1; }
#wren-search { flex: 1; border: 0; outline: 0; background: transparent; padding: 16px 8px; font-size: 16px; font-family: inherit; color: var(--cocoa); min-width: 0; }
#wren-search::placeholder { color: var(--warm-gray-light); }
.wren-search-clear { background: var(--border-soft); border: 0; color: var(--cocoa-soft); width: 26px; height: 26px; border-radius: 50%; font-size: 16px; cursor: pointer; line-height: 1; padding: 0; margin-right: 6px; }
.wren-search-clear:hover { background: var(--peach-soft); color: var(--peach-deep); }
.wren-search-count { font-size: 12px; color: var(--warm-gray); padding: 0 12px; font-variant-numeric: tabular-nums; }
.wren-search-suggests { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; justify-content: center; }
.wren-search-suggest-label { font-size: 12px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.6px; margin-right: 2px; }
.wren-search-suggest { background: var(--white); border: 1px solid var(--border); color: var(--cocoa-soft); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-family: inherit; cursor: pointer; transition: all 150ms ease; }
.wren-search-suggest:hover { border-color: var(--sage); color: var(--sage-deep); background: var(--sage-soft); }

#wren-search-results { max-width: var(--max-width); margin: 28px auto 0; padding: 0 24px; }
.wren-search-empty { background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.wren-search-empty-h { font-family: var(--font-serif); font-size: 18px; color: var(--cocoa); margin-bottom: 6px; }
.wren-search-empty-p { font-size: 14px; color: var(--warm-gray); max-width: 460px; margin: 0 auto; line-height: 1.55; }

/* ───── /you/ PROFILE DASHBOARD ───── */
.you-hero { text-align: center; padding: 24px 0 36px; border-bottom: 1px solid var(--border-soft); margin-bottom: 40px; }
.you-h1 { font-family: var(--font-serif); font-size: 44px; color: var(--cocoa); margin: 0 0 12px; letter-spacing: -0.5px; }
.you-lede { font-size: 16px; color: var(--warm-gray); margin: 0 0 22px; }
.you-progress { max-width: 320px; margin: 0 auto; }
.you-progress-track { height: 6px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.you-progress-fill { height: 100%; background: linear-gradient(90deg, var(--sage), var(--peach), var(--lavender)); border-radius: 999px; transition: width 600ms ease; }

.you-section { margin: 56px 0; }
.you-h2 { font-family: var(--font-serif); font-size: 28px; color: var(--cocoa); margin: 0 0 6px; letter-spacing: -0.3px; }
.you-h2-sub { color: var(--warm-gray); font-size: 14px; margin: 0 0 24px; }

.you-insights { display: grid; gap: 14px; }
.you-insight { display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); border-left: 3px solid var(--sage); }
.you-insight-icon { font-size: 22px; color: var(--sage-deep); line-height: 1; padding-top: 2px; }
.you-insight p { margin: 0; font-size: 15px; color: var(--cocoa); line-height: 1.55; }

.you-arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.you-arch-card { display: block; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); text-decoration: none; color: inherit; transition: all 200ms ease; border-left-width: 4px; }
.you-arch-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(42,58,45,0.08); }
.you-arch-card-color-sage { border-left-color: var(--sage); }
.you-arch-card-color-peach { border-left-color: var(--peach); }
.you-arch-card-color-lavender { border-left-color: var(--lavender); }
.you-arch-card-color-honey { border-left-color: var(--honey); }
.you-arch-card-color-rose { border-left-color: var(--rose); }
.you-arch-card-color-mint { border-left-color: var(--mint); }
.you-arch-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.you-arch-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; flex-shrink: 0; }
.you-arch-meta { flex: 1; min-width: 0; }
.you-arch-test { font-size: 13px; color: var(--cocoa); font-weight: 600; line-height: 1.2; }
.you-arch-when { font-size: 11px; color: var(--warm-gray); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.you-arch-name { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); margin-bottom: 8px; line-height: 1.2; }
.you-arch-essence { font-size: 14px; color: var(--cocoa-soft); font-style: italic; line-height: 1.5; margin-bottom: 14px; }
.you-arch-cta { font-size: 12px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

.you-coverage { display: grid; gap: 14px; max-width: 580px; }
.you-coverage-row {}
.you-coverage-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; color: var(--cocoa); }
.you-coverage-stat { color: var(--warm-gray); font-variant-numeric: tabular-nums; font-size: 13px; }
.you-coverage-track { height: 8px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.you-coverage-fill { height: 100%; border-radius: 999px; transition: width 600ms ease; }

.you-empty-state { text-align: center; padding: 48px 24px; }
.you-empty-icon { font-size: 64px; color: var(--sage); line-height: 1; margin-bottom: 16px; opacity: 0.5; }
.you-empty-h { font-family: var(--font-serif); font-size: 28px; color: var(--cocoa); margin-bottom: 12px; }
.you-empty-p { color: var(--warm-gray); font-size: 16px; max-width: 480px; margin: 0 auto 28px; line-height: 1.55; }
.you-empty-secondary { margin-top: 20px; font-size: 13px; color: var(--warm-gray); display: flex; gap: 12px; justify-content: center; align-items: center; }
.you-empty-secondary a { color: var(--sage-deep); }

.you-footer-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border-soft); }

/* ───── RICH READING (Throughline + flagships) ───── */
.rich-reading { display: flex; flex-direction: column; gap: 18px; margin: 48px 0; }
/* Rich-section reading card — grid layout. Icon stays in its own narrow column;
   heading + body share the wide column so neither gets squeezed. */
.rich-section { display: grid; grid-template-columns: 36px 1fr; grid-template-areas: "icon heading" "icon body"; column-gap: 18px; row-gap: 8px; padding: 26px 30px; margin: 0 0 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); border-left: 4px solid var(--sage); }
.rich-section.rich-relationships { border-left-color: var(--rose); }
.rich-section.rich-cautions { border-left-color: var(--peach); }
.rich-section.rich-growth { border-left-color: var(--sage); }
.rich-section.rich-description { border-left-color: var(--lavender); }
.rich-section.rich-recognizable { border-left-color: var(--honey); }
.rich-section.rich-careers { border-left-color: var(--mint); }
.rich-section.rich-compat { border-left-color: var(--rose); }
.rich-section.rich-notable { border-left-color: var(--peach); }

/* ── Editorial polish for the long reading ── */
/* Drop caps removed — they were decorative without utility. */
/* Force-disable drop caps — `all: unset` doesn't work reliably on pseudo-elements */
.rich-section-p > p:first-child::first-letter {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========== SOFT BLOB BACKGROUND — applied site-wide except .home-page ==========
   Base is PURE WHITE — the warm tint comes only from the soft color blobs floating on top */
body:not(.home-page) {
  /* WHITE base. Blobs are NOT on body — they're on main::before/::after as
     fixed-position corner glows that match the homepage's .diff-section
     treatment. This is the look the user refers to as "white page with elegant
     soft blobs" — distinct, corner-anchored, sharp 70% falloff. */
  background: #FFFFFF !important;
  background-attachment: initial !important;
}
/* Per-page corner glows — matches homepage's .diff-section::before/::after
   pattern. Anchored at viewport corners with TIGHT falloff so the middle of
   the viewport stays pure white. */
body:not(.home-page) main {
  position: relative;
}
body:not(.home-page) main::before,
body:not(.home-page) main::after {
  content: '';
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
}
body:not(.home-page) main::before {
  width: 640px; height: 640px;
  top: -180px; right: -200px;
  background: radial-gradient(circle, rgba(140, 61, 31, 0.22) 0%, transparent 70%);
}
body:not(.home-page) main::after {
  width: 720px; height: 720px;
  bottom: -200px; left: -240px;
  background: radial-gradient(circle, rgba(47, 90, 61, 0.20) 0%, transparent 70%);
}
/* Test pages already have hero gradients — let blob show through transparency */
body.test-page:not(.home-page) { background-attachment: fixed; }
/* /you/ inner cards keep their own background — let the blob show through wherever there isn't a card */
body:not(.home-page) main { background: transparent !important; }
body:not(.home-page) section { background: transparent; }

/* ========== FOREGROUND CARDS → WHITE (not cream) so blob bg reads cleanly behind ==========
   Only the actual ARCHETYPE LIBRARY cards stay white. Everything else floats on the blob. */
body:not(.home-page) .you-arch-card,
body:not(.home-page) .rich-section,
body:not(.home-page) .pp-portrait,
body:not(.home-page) .pp-word,
body:not(.home-page) .wren-types-panel,
body:not(.home-page) .future-details,
body:not(.home-page) .pair-share-preview,
body:not(.home-page) .pair-joint-summary {
  background: var(--white, #FFFFFF) !important;
}
/* Section-level wrappers + dashboard cards — TRANSPARENT so blob reads maximally */
body:not(.home-page) .you-dash-card,
body:not(.home-page) .you-friends-card,
body:not(.home-page) .you-shares-card,
body:not(.home-page) .you-account-card,
body:not(.home-page) .you-sync,
body:not(.home-page) .you-blindspots,
body:not(.home-page) .you-rating-locked,
body:not(.home-page) .share-panel,
body:not(.home-page) .invite-panel,
body:not(.home-page) .you-section,
body:not(.home-page) .you-section-tight,
body:not(.home-page) .you-shares-empty,
body:not(.home-page) .you-friends-empty,
body:not(.home-page) .you-readings-empty {
  background: transparent !important;
  border: 0 !important;
}
/* The insights inside Patterns Emerging keep their colored left ribbons — make them readable on the blob */
body:not(.home-page) .you-insight {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(2px);
}
/* Hero strip — transparent so blob shows through */
body:not(.home-page) .you-hero-strip,
body:not(.home-page) .you-hero-strip-bg,
body:not(.home-page) .you-hero { background: transparent !important; border: 0 !important; }
body:not(.home-page) .you-hero-strip-bg .you-hero-blob { display: none !important; }

/* ========== NAV: Portrait as standout CTA pill ========== */
.site-nav a[href$="/you/patterns/"],
.site-nav a[href="./patterns/"] {
  /* Portrait — primary CTA pill. (Current-page links are NOT pills — only Portrait is.) */
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px !important;
  background: var(--editorial-red) !important;
  color: var(--cream) !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(168,51,46,0.22);
  transition: all 0.15s ease;
  border: 1.5px solid var(--editorial-red);
  text-decoration: none !important;
  font-size: 14px;
}
.site-nav a[href$="/you/patterns/"]:hover,
.site-nav a[href="./patterns/"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168,51,46,0.32);
  background: var(--editorial-red-deep, #8a2723) !important;
}
.site-nav a[href$="/you/patterns/"]::before,
.site-nav a[href="./patterns/"]::before {
  content: '◐';
  font-size: 12px;
  opacity: 0.85;
}

/* ========== POST-TEST: Portrait-updated CTA card — soft editorial aesthetic ========== */
.portrait-updated-card {
  margin: 28px auto 36px;
  max-width: 720px;
  padding: 28px 32px 26px;
  background: linear-gradient(140deg, #FBF5E8 0%, var(--cream, #F5EBDF) 100%);
  border-radius: 18px;
  border: 1px solid rgba(168,51,46,0.14);
  border-left: 4px solid var(--editorial-red);
  color: var(--cocoa);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(42,58,45,0.04), 0 12px 32px -16px rgba(42,58,45,0.12);
}
.portrait-updated-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,51,46,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.portrait-updated-eyebrow {
  font-family: Inter, system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--editorial-red);
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.portrait-updated-eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--editorial-red);
  box-shadow: 0 0 0 3px rgba(168,51,46,0.15);
  animation: pulseSoft 2.2s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 3px rgba(168,51,46,0.15); }
  50% { box-shadow: 0 0 0 6px rgba(168,51,46,0.05); }
}
.portrait-updated-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  line-height: 1.28;
  color: var(--cocoa);
  position: relative;
}
.portrait-updated-sub {
  font-family: Inter, system-ui, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cocoa);
  opacity: 0.82;
  margin: 0 0 20px;
  position: relative;
  max-width: 540px;
}
.portrait-updated-sub strong { color: var(--cocoa); font-weight: 700; opacity: 1; }
.portrait-updated-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--editorial-red);
  color: var(--cream) !important;
  text-decoration: none;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(168,51,46,0.22);
  transition: all 0.18s ease;
  position: relative;
}
.portrait-updated-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168,51,46,0.32);
  background: var(--editorial-red-deep, #8a2723);
}
.portrait-updated-cta-arrow {
  display: inline-block;
  transition: transform 0.18s ease;
}
.portrait-updated-cta:hover .portrait-updated-cta-arrow {
  transform: translateX(3px);
}
.portrait-updated-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px;
  color: var(--warm-gray);
  position: relative;
}
.portrait-updated-meta-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.portrait-updated-meta-item strong {
  color: var(--cocoa); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ========== NAV: "You" — plain red text link, no circle ========== */
.site-nav .nav-avatar {
  display: inline-flex;
  align-items: center;
  color: var(--editorial-red) !important;
  font-weight: 700 !important;
  text-decoration: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin-left: 0 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: inherit !important;
  transition: opacity 0.15s ease;
}
.site-nav .nav-avatar:hover {
  opacity: 0.78;
  color: var(--editorial-red) !important;
  transform: none !important;
  box-shadow: none !important;
}
.site-nav .nav-avatar-inner { display: inline-block; }
.site-nav .nav-avatar-active { color: var(--editorial-red) !important; }

/* ========== DIMENSIONAL PORTRAIT — bold accordion with clear CTAs ========== */
.pp-portrait-bulk-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cocoa);
  color: var(--cream) !important;
  border: 0;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(42,58,45,0.24);
}
.pp-portrait-bulk-toggle:hover {
  background: var(--editorial-red);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(168,51,46,0.32);
}
.pp-portrait-bulk-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pp-portrait-group {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 6px !important;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--group-accent, var(--editorial-red));
  background: rgba(255,255,255,0.5);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.pp-portrait-group:hover {
  background: rgba(255,255,255,0.85);
}
.pp-portrait-group-expanded {
  background: var(--white) !important;
  box-shadow: 0 4px 16px -4px rgba(42,58,45,0.1);
}
.pp-portrait-group-header {
  position: relative;
  padding: 16px 18px !important;
  grid-template-columns: 14px 1fr auto auto !important;
  gap: 14px !important;
  align-items: center !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.pp-portrait-group-header:hover {
  background: linear-gradient(90deg, rgba(168,51,46,0.03), transparent 70%) !important;
}
.pp-portrait-group-expanded .pp-portrait-group-header {
  background: linear-gradient(90deg, rgba(168,51,46,0.04), transparent 70%) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.pp-portrait-dot {
  width: 12px !important; height: 12px !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.7), 0 1px 4px rgba(0,0,0,0.12) !important;
}

/* Stack name + summary vertically, no separate columns */
.pp-portrait-group-textcol {
  display: flex; flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.pp-portrait-group-name {
  font-size: 13.5px !important;
  color: var(--group-accent, var(--cocoa)) !important;
  font-weight: 800 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
}
.pp-portrait-group-expanded .pp-portrait-group-name {
  color: var(--group-accent, var(--editorial-red)) !important;
}
.pp-portrait-group-summary {
  font-size: 14.5px !important;
  line-height: 1.45 !important;
  color: var(--cocoa) !important;
  font-weight: 400 !important;
}
.pp-portrait-group-summary strong {
  font-weight: 700 !important;
  color: var(--group-accent, var(--editorial-red)) !important;
}
.pp-portrait-group-count {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  min-width: 36px; height: 24px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  font-size: 11px !important;
  color: var(--cocoa) !important;
  font-weight: 700 !important;
  padding: 0 10px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.pp-portrait-group-count::after {
  content: ' signals';
  font-weight: 500;
  color: var(--warm-gray);
  margin-left: 3px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}
.pp-portrait-group-expanded .pp-portrait-group-count {
  background: rgba(168,51,46,0.1);
  color: var(--editorial-red) !important;
}

/* The CTA pill — "Expand" / "Collapse" with chevron */
.pp-portrait-group-chevron {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  gap: 5px;
  min-width: 86px; height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--group-accent, var(--editorial-red)) !important;
  color: var(--cream) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px -1px rgba(168,51,46,0.32);
  transition: all 0.2s ease !important;
}
.pp-portrait-group-chevron::before {
  content: 'Expand';
}
.pp-portrait-group-chevron::after {
  content: '▾';
  font-size: 10px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.pp-portrait-group-header:hover .pp-portrait-group-chevron {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px -2px rgba(168,51,46,0.42);
}
.pp-portrait-group-expanded .pp-portrait-group-chevron {
  /* Stay in the section's accent color — just dim it slightly to differentiate */
  background: var(--group-accent, var(--editorial-red)) !important;
  filter: brightness(0.92);
  box-shadow: 0 2px 6px -1px rgba(0,0,0,0.18);
}
.pp-portrait-group-expanded .pp-portrait-group-chevron::before {
  content: 'Collapse';
}
.pp-portrait-group-expanded .pp-portrait-group-chevron::after {
  transform: rotate(180deg);
}
.pp-portrait-group-bars {
  padding: 14px 18px 18px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0.015) 0%, transparent 30%);
}

@media (max-width: 640px) {
  .pp-portrait-group-header {
    grid-template-columns: 4px 12px 1fr auto !important;
    padding: 14px 14px 14px 0 !important;
  }
  .pp-portrait-group-count { display: none !important; }
  .pp-portrait-group-summary { font-size: 13.5px !important; }
  .pp-portrait-group-chevron {
    min-width: 38px !important;
    padding: 0 9px !important;
  }
  .pp-portrait-group-chevron::before { content: '' !important; }
  .pp-portrait-group-expanded .pp-portrait-group-chevron::before { content: '' !important; }
  .pp-portrait-group-chevron::after { font-size: 13px !important; }
}

/* ========== "All types" popup on result pages ========== */
.wren-types-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.wren-types-modal.open { display: flex; }
.wren-types-backdrop {
  position: absolute; inset: 0;
  background: rgba(42,58,45,0.45);
  backdrop-filter: blur(4px);
}
.wren-types-panel {
  position: relative;
  max-width: 620px; width: 92%;
  max-height: 86vh; overflow-y: auto;
  background: linear-gradient(160deg, #FDF8EE 0%, var(--white) 100%);
  border-radius: 18px;
  padding: 30px 32px;
  box-shadow: 0 24px 56px rgba(42,58,45,0.22);
  font-family: Inter, system-ui, sans-serif;
}
.wren-types-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: 0;
  font-size: 26px; line-height: 1; color: var(--warm-gray);
  cursor: pointer;
}
.wren-types-close:hover { color: var(--editorial-red); }
.wren-types-h {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 700; color: var(--cocoa);
  margin: 0 0 6px;
}
.wren-types-sub {
  font-size: 13.5px; color: var(--warm-gray);
  margin: 0 0 22px; line-height: 1.5;
}
.wren-types-sub strong { color: var(--editorial-red); }
.wren-types-list { display: grid; gap: 10px; }
.wren-types-row {
  display: grid;
  grid-template-columns: 42px 1fr 50px;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.15s;
}
.wren-types-row:hover { border-color: var(--editorial-red); }
.wren-types-row-mine {
  background: linear-gradient(180deg, rgba(168,51,46,0.05) 0%, var(--white) 100%);
  border-color: var(--editorial-red);
  border-width: 1px;
}
.wren-types-avatar {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700;
  color: var(--cocoa); font-size: 13px;
}
.wren-types-body { min-width: 0; }
.wren-types-name {
  font-family: var(--font-serif);
  font-size: 15.5px; font-weight: 700; color: var(--cocoa);
  margin-bottom: 2px;
}
.wren-types-mine-tag {
  display: inline-block; margin-left: 6px;
  background: var(--editorial-red); color: var(--cream);
  font-family: Inter, sans-serif; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 7px 1px; border-radius: 999px;
  vertical-align: 1px;
}
.wren-types-essence {
  font-size: 13px; line-height: 1.5; color: var(--cocoa);
  opacity: 0.78;
}
.wren-types-pct {
  font-family: Inter, sans-serif;
  font-size: 14px; font-weight: 700; color: var(--editorial-red);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wren-types-foot {
  margin: 22px 0 0;
  padding: 12px 14px;
  background: rgba(0,0,0,0.025);
  border-radius: 8px;
  font-size: 11.5px; line-height: 1.5;
  color: var(--warm-gray); font-style: italic;
}

/* Subtle paper texture + soft shadow per section for visual richness without noise */
.rich-section {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  background: linear-gradient(160deg, #FDFAF4 0%, var(--white) 100%);
  box-shadow: 0 1px 2px rgba(42,58,45,0.03), 0 8px 24px -14px rgba(42,58,45,0.08);
}
.rich-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(42,58,45,0.04), 0 14px 32px -14px rgba(42,58,45,0.14);
}
/* Wider left border ribbon, gradient flowing down */
.rich-section { border-left-width: 5px; }
/* Subtle eyebrow chip under the section heading */
.rich-section-h::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  background: var(--editorial-red);
  border-radius: 2px;
  margin-top: 8px;
  opacity: 0.55;
}
/* Ornamental divider — used between major reading runs */
.reading-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--editorial-red);
  opacity: 0.45;
  font-family: var(--font-serif);
  font-size: 16px;
}
.reading-ornament::before, .reading-ornament::after {
  content: "";
  height: 1px;
  width: 80px;
  background: currentColor;
}

/* Strengthen the archetype hero card spacing + add a quiet flourish under the avatar */
.results-archetype-avatar { box-shadow: 0 14px 36px -18px rgba(42, 27, 20, 0.35); }
.results-essence {
  position: relative;
  padding-top: 18px;
}
.results-essence::before {
  content: "❦";
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--editorial-red);
  opacity: 0.7;
  letter-spacing: 0.4em;
  margin-bottom: 8px;
}
/* The "Long" reading mode is text-heavy — give the pane a soft paper-like card frame */
.reading-pane[data-reading-pane="longBasic"],
.reading-pane[data-reading-pane="longTechnical"] {
  padding: 28px 4px 8px;
}
.rich-section-icon { grid-area: icon; font-size: 26px; color: var(--cocoa-soft); line-height: 1; padding-top: 2px; }
.rich-section.rich-relationships .rich-section-icon { color: var(--rose-deep); }
.rich-section.rich-cautions .rich-section-icon { color: var(--peach-deep); }
.rich-section.rich-growth .rich-section-icon { color: var(--sage-deep); }
.rich-section-h { grid-area: heading; font-family: var(--font-serif); font-size: 20px; line-height: 1.25; color: var(--cocoa); margin: 0; font-weight: 700; letter-spacing: -0.005em; }
.rich-section-p { grid-area: body; font-size: 15.5px; color: var(--cocoa); line-height: 1.65; margin: 0; }
.rich-section-p p { margin: 0 0 12px; }
.rich-section-p p:last-child { margin-bottom: 0; }
.rich-section-p strong { color: var(--cocoa); font-weight: 700; }
@media (max-width: 640px) { .rich-section { grid-template-columns: 28px 1fr; column-gap: 12px; padding: 20px 18px; } .rich-section-h { font-size: 18px; } .rich-section-p { font-size: 15px; } }

/* ───── SELECTIVE SHARE PANEL ───── */
.share-panel { margin: 48px 0; padding: 28px; background: var(--cream); border-radius: var(--radius-lg); border: 1px solid var(--border); }
.share-panel-h { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); margin-bottom: 6px; }
.share-panel-p { font-size: 14px; color: var(--warm-gray); margin-bottom: 18px; }
.share-options { display: grid; gap: 8px; margin-bottom: 20px; }
.share-option { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cocoa); cursor: pointer; padding: 8px 12px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border-soft); }
.share-option:hover { border-color: var(--sage-mid); }
.share-option input[type="checkbox"] { accent-color: var(--sage-deep); width: 16px; height: 16px; flex-shrink: 0; }
.share-panel-actions { display: flex; gap: 12px; }
.share-result { margin-top: 18px; }

.shared-badge { display: inline-block; padding: 6px 14px; background: var(--lavender-soft); color: var(--lavender-deep); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 18px; }

/* ───── /you/ CROSS-DEVICE SYNC ───── */
.you-sync { background: var(--cream); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 20px; }
.you-sync-row { display: block; }
.you-sync-label { display: block; font-size: 12px; font-weight: 600; color: var(--cocoa); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.you-sync-tip { font-size: 12px; color: var(--warm-gray); margin-top: 8px; line-height: 1.5; }

/* ───── STRENGTHS AUDIT RESULTS ───── */
.strengths-list { display: flex; flex-direction: column; gap: 16px; }
.strength-card { display: flex; gap: 20px; padding: 24px 26px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); border-left: 4px solid var(--sage); }
.strength-lavender { border-left-color: var(--lavender); }
.strength-peach { border-left-color: var(--peach); }
.strength-honey { border-left-color: var(--honey); }
.strength-rose { border-left-color: var(--rose); }
.strength-rank { font-family: var(--font-serif); font-size: 36px; color: var(--cocoa); line-height: 1; min-width: 36px; opacity: 0.4; }
.strength-body { flex: 1; }
.strength-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.strength-name { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); }
.strength-domain { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--warm-gray); font-weight: 600; }
.strength-short { font-size: 15px; color: var(--cocoa); font-weight: 500; margin-bottom: 10px; }
.strength-long { font-size: 14.5px; color: var(--cocoa-soft); line-height: 1.55; }

.strengths-bars { display: flex; flex-direction: column; gap: 12px; }
.strengths-bar { opacity: 0.5; transition: opacity 200ms ease; }
.strengths-bar.in-top5 { opacity: 1; }
.strengths-bar-head { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; color: var(--cocoa); }
.strengths-bar-track { height: 8px; background: var(--border-soft); border-radius: 999px; overflow: hidden; }
.strengths-bar-fill { height: 100%; border-radius: 999px; transition: width 600ms ease; }

/* ───── CAT-CLASSIC — Classics wing distinct treatment ───── */
/* Single accent: a slim top rule in editorial red (brand-aligned),
   plus a cocoa pill for the eyebrow. No left border — the dual-border
   combo (cocoa-left + red-top) read as clashing/blue. */
.test-card.cat-classic { border-top: 2px solid var(--editorial-red); }
.test-card.cat-classic .test-card-pill { background: var(--cocoa); color: var(--white); font-weight: 600; }
.test-card.cat-classic .test-card-similar {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(168, 51, 46, 0.10);
  color: var(--editorial-red-deep);
  border: 1px solid rgba(168, 51, 46, 0.22);
  letter-spacing: 0.2px;
}
.test-card.cat-classic:hover { border-top-color: var(--editorial-red-deep); }

/* ───── PARENT READING — quoted insights ───── */
.parent-quote { padding: 18px 22px; margin: 14px 0; border-radius: var(--radius-md); background: var(--white); border-left: 3px solid var(--sage); }
.parent-quote.parent-quote-memory { border-left-color: var(--lavender); background: var(--lavender-soft); }
.parent-quote.parent-quote-hope { border-left-color: var(--sage); background: var(--sage-soft); }
.parent-quote.parent-quote-worry { border-left-color: var(--peach); background: var(--peach-soft); }
.parent-quote-label { font-size: 11px; font-weight: 600; color: var(--cocoa); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; opacity: 0.7; }
.parent-quote p { margin: 0; font-family: var(--font-serif); font-size: 18px; color: var(--cocoa); line-height: 1.5; font-style: italic; }

/* ───── INVITE OTHERS panel (post-result) ───── */
.invite-panel { margin: 48px 0; padding: 28px; background: linear-gradient(140deg, var(--peach-soft) 0%, var(--cream) 70%); border-radius: var(--radius-lg); border: 1px solid var(--peach-mid); }
.invite-panel-h { font-family: var(--font-serif); font-size: 24px; color: var(--cocoa); margin-bottom: 8px; }
.invite-panel-p { font-size: 15px; color: var(--cocoa); margin-bottom: 20px; line-height: 1.55; }
.invite-panel-p a { color: var(--peach-deep); }
.invite-name-row { margin-bottom: 14px; }
.invite-name-label { display: block; font-size: 12px; font-weight: 600; color: var(--cocoa); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.invite-name-row input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); font-family: inherit; font-size: 15px; color: var(--cocoa); box-sizing: border-box; }
.invite-name-row input:focus { outline: 0; border-color: var(--peach); }
.invite-panel-tip { font-size: 12px; color: var(--cocoa-soft); margin-top: 14px; line-height: 1.55; padding: 10px 12px; background: var(--white); border-radius: var(--radius-sm); }

/* ───── /you/ — HOW OTHERS SEE YOU section ───── */
.you-ratings { display: grid; gap: 16px; }
.you-rating-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.you-rating-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.you-rating-test { font-family: var(--font-serif); font-size: 18px; color: var(--cocoa); }
.you-rating-count { font-size: 12px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.you-rating-count.count-low { color: var(--peach-deep); }
.you-rating-count.count-ready { color: var(--sage-deep); }
.you-rating-body { font-size: 14px; color: var(--cocoa-soft); line-height: 1.55; }
.you-rating-body strong { color: var(--cocoa); }
.you-rating-locked { padding: 16px; background: var(--cream); border-radius: var(--radius-sm); font-size: 13px; color: var(--warm-gray); text-align: center; }

.you-blindspots { background: linear-gradient(140deg, var(--peach-soft) 0%, var(--cream) 80%); border-radius: var(--radius-lg); padding: 24px; border-left: 4px solid var(--peach); }
.you-blindspot-item { padding: 14px 16px; background: var(--white); border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 14.5px; color: var(--cocoa); line-height: 1.55; }
.you-blindspot-item:last-child { margin-bottom: 0; }
.you-blindspot-item strong { color: var(--peach-deep); }

/* ───── FUTURE TESTS section ───── */
.future-tests-row { margin-top: 64px; padding-top: 24px; border-top: 1px dashed var(--border); }
.future-details { background: var(--cream); border-radius: var(--radius-md); padding: 4px 0; }
.future-summary { cursor: pointer; padding: 16px 22px; font-size: 14px; color: var(--cocoa-soft); list-style: none; font-weight: 500; }
.future-summary::-webkit-details-marker { display: none; }
.future-summary:hover { color: var(--cocoa); }
.future-details[open] .future-summary { color: var(--cocoa); padding-bottom: 8px; }
.test-card.future-card { opacity: 0.7; }
.test-card.future-card:hover { opacity: 1; }
.test-card.future-card .test-card-pill { background: var(--cocoa-soft); color: var(--cream); }

/* ───── HERO PROMISE ───── */
.hero-promise { margin: 28px auto 0; font-size: 14.5px; color: var(--cocoa); opacity: 0.78; line-height: 1.6; max-width: 620px; text-align: center; }
.hero-promise strong { color: var(--cocoa); font-weight: 700; opacity: 1; }

/* ───── FOOTER SUPPORT ───── */
.footer-support { margin: 36px 0 16px; padding: 28px; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-lg); }
.footer-support-h { font-family: var(--font-serif); font-size: 22px; color: var(--cream); margin-bottom: 10px; }
.footer-support p { color: rgba(251, 246, 239, 0.78); font-size: 14px; line-height: 1.55; margin: 0 0 18px; max-width: 620px; }
.footer-support-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Support buttons — sit on red footer. Cream background, BRAND-RED text (same hue
   the footer is built from). Force the text color with !important so nothing in
   the global footer cascade (color inheritance from .site-footer) can wash it out. */
.site-footer .btn-support,
.btn-support {
  display: inline-block;
  padding: 11px 20px;
  background: #F5EDE2 !important;
  color: #A8332E !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.1px;
  text-decoration: none;
  border: 1px solid transparent;
  opacity: 1 !important;
  transition: background 0.15s, transform 0.15s, color 0.15s, box-shadow 0.15s;
}
.site-footer .btn-support:hover,
.btn-support:hover {
  background: #FBF6EF !important;
  color: #781F1B !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.25);
}
.site-footer .btn-support.btn-support-ghost,
.btn-support.btn-support-ghost {
  background: transparent !important;
  color: #FBF6EF !important;
  border: 1px solid rgba(251, 246, 239, 0.55);
}
.site-footer .btn-support.btn-support-ghost:hover,
.btn-support.btn-support-ghost:hover {
  background: rgba(251, 246, 239, 0.10) !important;
  color: #FBF6EF !important;
  border-color: #FBF6EF;
  box-shadow: none;
}

/* ───── PARENT READING DONATION CARD (post-result) ───── */
.donate-after-parent { margin: 48px 0 24px; padding: 28px 32px; background: linear-gradient(140deg, var(--rose-soft), var(--cream)); border-radius: var(--radius-lg); border-left: 4px solid var(--rose); }
.donate-after-parent-h { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); margin-bottom: 10px; }
.donate-after-parent p { color: var(--cocoa); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.donate-after-parent-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.donate-after-parent .btn-support { background: var(--rose); color: var(--white); }
.donate-after-parent .btn-support:hover { background: var(--rose-deep); }
.donate-skip { color: var(--warm-gray); font-size: 13px; padding-left: 6px; }

/* ───── CHILDHOOD ARC (in /you/) ───── */
.you-arc-chain { display: flex; flex-direction: column; gap: 6px; align-items: stretch; max-width: 580px; margin-bottom: 24px; }
.you-arc-step { padding: 18px 22px; border-radius: var(--radius-md); background: var(--white); border-left: 4px solid var(--sage); }
.you-arc-color-sage { border-left-color: var(--sage); background: linear-gradient(95deg, var(--sage-soft) 0%, var(--white) 60%); }
.you-arc-color-rose { border-left-color: var(--rose); background: linear-gradient(95deg, var(--rose-soft) 0%, var(--white) 60%); }
.you-arc-color-peach { border-left-color: var(--peach); background: linear-gradient(95deg, var(--peach-soft) 0%, var(--white) 60%); }
.you-arc-color-honey { border-left-color: var(--honey); background: linear-gradient(95deg, var(--honey-soft) 0%, var(--white) 60%); }
.you-arc-color-lavender { border-left-color: var(--lavender); background: linear-gradient(95deg, var(--lavender-soft) 0%, var(--white) 60%); }
.you-arc-color-mint { border-left-color: var(--mint); background: linear-gradient(95deg, var(--mint-soft) 0%, var(--white) 60%); }
.you-arc-label { font-size: 11px; color: var(--warm-gray); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; margin-bottom: 4px; }
.you-arc-value { font-family: var(--font-serif); font-size: 20px; color: var(--cocoa); line-height: 1.2; }
.you-arc-link { text-align: left; padding-left: 22px; font-size: 18px; color: var(--warm-gray-light); line-height: 0.8; }
.you-arc-narrative { background: var(--cream); border-radius: var(--radius-md); padding: 22px 26px; font-family: var(--font-serif); font-size: 17px; color: var(--cocoa); line-height: 1.6; max-width: 580px; }
.you-arc-narrative strong { color: var(--cocoa); font-style: italic; font-weight: 600; }

@media (max-width: 640px) {
  .you-h1 { font-size: 32px; }
  .you-h2 { font-size: 22px; }
  .you-arch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wren-search-section { padding: 36px 0 18px; }
  #wren-search { font-size: 15px; padding: 14px 6px; }
  .wren-search-suggests { gap: 6px; }
  .wren-search-suggest { font-size: 12px; padding: 5px 10px; }
}

@media (max-width: 640px) {
  .pair-h1 { font-size: 32px; }
  .pair-rel-grid { grid-template-columns: 1fr; }
  .pair-arch-grid { grid-template-columns: 1fr; }
  .pair-share-url-row { flex-direction: column; }
  .pair-dim-read-head { font-size: 12px; }
  .pair-dim-level { margin-left: 0; }
}

/* ============================================
   SHARE HUB (results-page teaser) + UNIFIED SHARE MODAL
   ============================================ */
.share-hub {
  margin-top: 48px;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-top: 3px solid var(--editorial-red);
}
.share-hub-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cocoa, #2A3A2D);
  margin-bottom: 6px;
}
.share-hub-p {
  font-size: 14px;
  color: var(--warm-gray, #6B7B68);
  margin: 0 0 18px;
}
.share-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.share-hub-verb {
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.share-hub-verb strong {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--editorial-red);
}
.share-hub-verb span {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.35;
}
@media (max-width: 640px) {
  .share-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Modal === */
.wren-share-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 22, 0.78);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.wren-share-modal {
  background: var(--white, #FFFFFF);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.4);
}
.wren-share-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.wren-share-title h3 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  color: var(--cocoa, #2A3A2D);
}
.wren-share-sub {
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  margin: 0;
  line-height: 1.45;
}
.wren-share-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--warm-gray, #6B7B68);
  padding: 4px 10px;
  line-height: 1;
  border-radius: 999px;
}
.wren-share-close:hover { background: rgba(0,0,0,0.05); }
.wren-share-name-row { margin-bottom: 20px; }
.wren-share-name-label {
  display: block;
  font-size: 11px;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wren-share-name-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 0.5px solid var(--border, #E5E8DF);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--cocoa, #2A3A2D);
  background: var(--cream-warm, #FBF6EF);
}
.wren-share-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 22px;
  background: var(--cream-warm, #FBF6EF);
  padding: 6px;
  border-radius: 14px;
}
.wren-share-tab {
  background: transparent;
  border: 0;
  padding: 12px 8px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  align-items: center;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}
.wren-share-tab:hover {
  background: rgba(168, 51, 46, 0.05);
}
.wren-share-tab.active {
  background: var(--white, #FFFFFF);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.08);
}
.wren-share-tab-verb {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--editorial-red);
}
.wren-share-tab.active .wren-share-tab-verb {
  color: var(--editorial-red-deep);
}
.wren-share-tab-desc {
  font-size: 10.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.3;
}
.wren-share-pane { display: none; }
.wren-share-pane.active { display: block; }
.wren-share-pane-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--cocoa, #2A3A2D);
}
.wren-share-pane-p {
  font-size: 14px;
  color: var(--cocoa, #2A3A2D);
  line-height: 1.55;
  margin: 0 0 14px;
}
.wren-share-pane-options { margin-bottom: 14px; }
.wren-share-section-h {
  display: block;
  font-size: 11px;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wren-share-section {
  display: block;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--cocoa, #2A3A2D);
  cursor: pointer;
}
.wren-share-section input { margin-right: 8px; }
.wren-share-toggle {
  display: block;
  padding: 12px 14px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--cocoa, #2A3A2D);
  cursor: pointer;
  margin-bottom: 14px;
}
.wren-share-toggle input { margin-right: 8px; }
.wren-share-url-row {
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 12px;
}
.wren-share-url-input {
  flex: 1;
  padding: 11px 12px;
  border-radius: 10px;
  border: 0.5px solid var(--border, #E5E8DF);
  background: var(--cream-warm, #FBF6EF);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--cocoa, #2A3A2D);
  min-width: 0;
}
.wren-share-helper {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.5;
  padding: 10px 14px;
  background: rgba(168, 51, 46, 0.05);
  border-left: 2px solid var(--editorial-red);
  border-radius: 0 8px 8px 0;
}
@media (max-width: 640px) {
  .wren-share-tabs { grid-template-columns: repeat(2, 1fr); }
  .wren-share-modal { padding: 22px 18px 18px; }
  .wren-share-url-row { flex-direction: column; }
}

/* ============================================
   COMPARE — joint reading (Phase 3)
   ============================================ */
.compare-joint {
  margin: 32px 0 8px;
  padding: 28px 28px 24px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-top: 4px solid var(--editorial-red);
}
.compare-joint-head { text-align: center; margin-bottom: 24px; }
.compare-joint-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 8px 0 6px;
  color: var(--cocoa, #2A3A2D);
}
.compare-joint-sub {
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  margin: 0;
}
.compare-arch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.compare-arch-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  text-align: center;
}
.compare-arch-label {
  font-size: 11px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.compare-arch-name {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--cocoa, #2A3A2D);
}
.compare-arch-essence {
  font-size: 12.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.45;
  font-style: italic;
}
.compare-bars { margin: 0 0 24px; }
.compare-bars-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
}
.compare-bar { margin-bottom: 14px; }
.compare-bar-head {
  display: flex; justify-content: space-between;
  font-size: 13px; margin-bottom: 4px;
}
.compare-bar-head strong { color: var(--cocoa, #2A3A2D); }
.compare-bar-label { color: var(--warm-gray, #6B7B68); font-size: 12px; }
.compare-bar-row {
  display: flex; align-items: center; gap: 8px;
}
.compare-bar-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  min-width: 24px;
  text-align: center;
}
.compare-bar-track {
  position: relative;
  flex: 1;
  height: 14px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 999px;
  overflow: hidden;
}
.compare-bar-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 999px;
  transition: width 0.3s;
}
.compare-bar-them-fill { mix-blend-mode: multiply; }
.compare-bars-legend {
  display: flex; gap: 18px;
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  margin-top: 12px;
}
.compare-bars-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: var(--editorial-red);
  vertical-align: middle;
}
.compare-section {
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--white, #FFFFFF);
  border-left: 3px solid var(--editorial-red);
  display: flex; gap: 14px;
}
.compare-section-diverge { border-left-color: var(--rose-deep, #B85271); background: linear-gradient(160deg, rgba(184, 82, 113, 0.06) 0%, var(--white) 100%); }
.compare-section-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--editorial-red);
  flex-shrink: 0;
}
.compare-section-diverge .compare-section-icon { color: var(--rose-deep, #B85271); }
.compare-section-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--cocoa, #2A3A2D);
}
.compare-section-p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--cocoa, #2A3A2D);
}
.compare-meta {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--warm-gray, #6B7B68);
  text-align: center;
}
.compare-meta p { margin: 0; }
@media (max-width: 640px) {
  .compare-arch-row { grid-template-columns: 1fr; }
}

/* ============================================
   /you/ — TRUE DASHBOARD: hero strip + 2-col rows + dense cards
   ============================================ */
/* Hero strip — one row, no big block */
.you-hero-strip {
  position: relative;
  padding: 26px 0 16px;
  margin-bottom: 8px;
  overflow: hidden;
}
.you-hero-strip-bg { position: absolute; inset: 0; pointer-events: none; }
.you-hero-strip-bg .you-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
}
.you-hero-strip-bg .you-hero-blob-1 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(168, 51, 46, 0.20) 0%, transparent 70%);
  top: -120px; left: -60px;
}
.you-hero-strip-bg .you-hero-blob-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(245, 198, 162, 0.4) 0%, transparent 70%);
  top: -80px; right: -40px;
}
.you-hero-strip-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.you-hero-strip-title { display: flex; flex-direction: column; gap: 4px; }
.you-h1-tight {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cocoa, #2A3A2D);
  margin: 0;
  line-height: 1.1;
}
.you-hero-strip-stats { display: flex; align-items: center; gap: 20px; }
.you-progress-strip {
  position: relative; z-index: 2;
  margin-top: 14px;
  height: 4px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 999px;
  overflow: hidden;
}
.you-progress-strip .you-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--editorial-red) 0%, var(--peach, #E89A6F) 100%);
  border-radius: 999px;
}

/* Dashboard rows */
.you-dash-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.you-dash-row-2-1 { grid-template-columns: 2fr 1fr; }
.you-dash-row-1-1 { grid-template-columns: 1fr 1fr; }

.you-dash-col { display: flex; flex-direction: column; gap: 16px; }
.you-dash-col-stack > * { flex: 1; }

.you-dash-card {
  padding: 20px 22px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 14px;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
a.you-dash-card { transition: all 0.18s; }
a.you-dash-card:hover {
  transform: translateY(-2px);
  border-color: var(--editorial-red);
  text-decoration: none;
}
.you-dash-card .eyebrow { margin-bottom: 6px; }
.you-dash-card-head { margin-bottom: 14px; }
.you-patterns-more {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--editorial-red);
  background: rgba(168, 51, 46, 0.06);
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(168, 51, 46, 0.15);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.you-patterns-more:hover {
  background: rgba(168, 51, 46, 0.10);
  border-color: rgba(168, 51, 46, 0.30);
  transform: translateY(-1px);
}
.you-dash-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cocoa, #2A3A2D);
  margin: 0;
}
.you-dash-h-small {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.you-dash-sub {
  font-size: 13px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.5;
  margin: 6px 0 14px;
}
.you-dash-sub-tight {
  font-size: 12.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.4;
  margin: 0 0 12px;
}
.you-dash-actions { display: flex; gap: 12px; align-items: center; }
.you-dash-link {
  font-size: 12px;
  color: var(--editorial-red);
  font-weight: 600;
  text-decoration: none;
}
.you-dash-empty { background: var(--cream-warm, #FBF6EF); border-style: dashed; }

/* Invite chip grid for Outside view empty state */
.you-invite-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 6px;
}
.you-invite-chip {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.you-invite-chip:hover {
  border-color: var(--editorial-red);
  background: rgba(168, 51, 46, 0.04);
  transform: translateX(2px);
}
.you-invite-chip-name {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
}
.you-invite-chip-arrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--editorial-red);
  text-transform: uppercase;
}

/* Latest reading card */
.you-dash-latest .you-dash-latest-row {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0 10px;
}
.you-dash-latest-name {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
}
.you-dash-latest-test {
  font-size: 10.5px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.you-dash-cta {
  font-size: 12.5px;
  color: var(--editorial-red);
  font-weight: 600;
  margin-top: auto;
}

/* Insights, compact variant for dashboard cards */
.you-insights-compact .you-insight {
  padding: 12px 14px;
  font-size: 13.5px;
}
.you-insights-compact .you-insight p { font-size: 13.5px; line-height: 1.5; }

/* Coverage compact */
.you-coverage-compact .you-coverage-row { margin-bottom: 10px; }
.you-coverage-compact .you-coverage-head { font-size: 12.5px; }
.you-coverage-compact .you-coverage-track { height: 5px; }

/* Section overrides for the dashboard layout */
body .you-section-tight { padding: 16px 0; }
.you-section-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
.you-section-head .eyebrow { margin-bottom: 4px; }
.you-section-count {
  color: var(--warm-gray, #6B7B68);
  font-weight: 400;
  font-size: 0.7em;
  letter-spacing: 0;
}

/* Responsive — collapse to single column */
@media (max-width: 900px) {
  .you-hero-strip-inner { flex-direction: column; align-items: flex-start; }
  .you-dash-row-2-1, .you-dash-row-1-1 { grid-template-columns: 1fr; }
  .you-h1-tight { font-size: 28px; }
}

/* ============================================
   /you/ — sequence-aware compact hero + tighter sections (legacy)
   ============================================ */
/* Override default section spacing for /you/ */
body .you-section { padding: 36px 0; }
body .you-section:first-of-type { padding-top: 28px; }
.you-h2 { font-size: 26px; margin-bottom: 6px; }
.you-h2-small { font-size: 19px; }
.you-h2-sub { font-size: 13.5px; color: var(--warm-gray, #6B7B68); margin-bottom: 18px; }

.you-hero-compact { padding: 60px 0 36px; }
.you-hero-compact .you-hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: left;
}
.you-hero-compact .eyebrow { margin-bottom: 6px; }
.you-hero-compact .you-h1 {
  font-size: 44px;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  text-align: left;
}
.you-hero-compact .you-stats-row {
  justify-content: flex-start;
  gap: 22px;
  margin: 0 0 14px;
}
.you-hero-compact .you-stat strong { font-size: 26px; }
.you-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border, #E5E8DF);
  align-self: center;
}
.you-progress-compact { max-width: 320px; margin: 0; }
.you-progress-compact .you-progress-track {
  height: 4px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 999px;
  overflow: hidden;
}
.you-progress-compact .you-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--editorial-red) 0%, var(--peach, #E89A6F) 100%);
  border-radius: 999px;
}

/* Latest reading card in hero */
.you-hero-latest {
  display: block;
  padding: 18px 20px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  box-shadow: 0 8px 24px -16px rgba(0,0,0,0.15);
}
.you-hero-latest:hover {
  transform: translateY(-2px);
  border-color: var(--editorial-red);
  text-decoration: none;
}
.you-hero-latest .eyebrow { margin-bottom: 10px; }
.you-hero-latest-row {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.you-hero-latest-name {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin-bottom: 2px;
}
.you-hero-latest-test {
  font-size: 11.5px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.you-hero-latest-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--editorial-red);
}

/* Two-column settings row (Account + Demographics) */
.you-settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.you-settings-col { min-width: 0; }
.you-settings-col .eyebrow { margin-bottom: 6px; }

@media (max-width: 900px) {
  .you-hero-compact .you-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .you-hero-compact .you-h1 { font-size: 36px; }
  .you-settings-row { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .you-hero-compact { padding: 40px 0 24px; }
  .you-hero-compact .you-h1 { font-size: 30px; }
  .you-hero-compact .you-stats-row { gap: 14px; }
  .you-stat-divider { display: none; }
  body .you-section { padding: 30px 0; }
}

/* Hide redundant recovery-code section for signed-in users (handled by JS class toggle) */
body.signed-in .you-sync,
body.signed-in .you-section:has(.you-sync) {
  display: none;
}

/* ============================================
   /you/ — Rich hero (matches homepage editorial style)
   ============================================ */
.you-hero-rich {
  position: relative;
  padding: 90px 0 56px;
  text-align: center;
  margin: 0 calc(50% - 50vw);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  overflow: hidden;
}
.you-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.you-hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}
.you-hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(168, 51, 46, 0.22) 0%, rgba(168, 51, 46, 0) 70%);
  top: -120px; left: -80px;
}
.you-hero-blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(245, 198, 162, 0.45) 0%, rgba(245, 198, 162, 0) 70%);
  top: -60px; right: -60px;
}
.you-hero-rich .eyebrow {
  position: relative; z-index: 2;
}
.you-hero-rich .you-h1 {
  position: relative; z-index: 2;
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  color: var(--cocoa, #2A3A2D);
}
.you-hero-rich .you-lede {
  position: relative; z-index: 2;
  font-size: 17px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 30px;
}
.you-stats-row {
  position: relative; z-index: 2;
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 0 0 24px;
}
.you-stat {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 2px;
}
.you-stat strong {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--editorial-red);
  line-height: 1;
}
.you-stat span {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.you-hero-rich .you-progress {
  position: relative; z-index: 2;
  max-width: 480px;
  margin: 0 auto;
}

/* Sectional eyebrow tightening for /you/ */
.you-section .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

/* Insight cards — multi-pigment edges */
.you-insights { gap: 12px; }
.you-insight {
  padding: 18px 22px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 4px solid var(--rose, #B85271);
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.18s;
}
.you-insight:nth-child(3n+1) { border-left-color: var(--sage, #7AB098); }
.you-insight:nth-child(3n+2) { border-left-color: var(--rose, #B85271); }
.you-insight:nth-child(3n+3) { border-left-color: var(--lavender, #B69ED4); }
.you-insight:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.12);
}
.you-insight-icon {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--editorial-red);
  margin-top: 2px;
}
.you-insight p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cocoa, #2A3A2D);
}

@media (max-width: 640px) {
  .you-hero-rich { padding: 56px 0 36px; }
  .you-hero-rich .you-h1 { font-size: 36px; }
  .you-hero-rich .you-lede { font-size: 15px; }
  .you-stats-row { gap: 20px; }
  .you-stat strong { font-size: 24px; }
}

/* ============================================
   POST-TEST DEMOGRAPHIC PROMPT (inline)
   ============================================ */
.wren-demo-inline {
  margin: 36px 0 0;
  padding: 22px 26px;
  background: linear-gradient(160deg, rgba(245, 198, 162, 0.16) 0%, rgba(255,255,255,1) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 3px solid var(--peach, #E89A6F);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.wren-demo-inline-icon {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--peach-deep, #B26F45);
  font-weight: 700;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 198, 162, 0.25);
  border-radius: 50%;
}
.wren-demo-inline-body { flex: 1; min-width: 0; }
.wren-demo-inline-body strong {
  display: block;
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin-bottom: 4px;
}
.wren-demo-inline-body p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.5;
}
.wren-demo-inline-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.wren-demo-inline-field {
  display: flex; flex-direction: column; gap: 3px;
}
.wren-demo-inline-field span {
  font-size: 10.5px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.wren-demo-inline-field select {
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  background: var(--white, #FFFFFF);
  color: var(--cocoa, #2A3A2D);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 8px;
}
.wren-demo-inline-actions {
  grid-column: 1 / -1;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.wren-demo-inline-status {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .wren-demo-inline-form { grid-template-columns: 1fr; }
  .wren-demo-inline { flex-direction: column; }
}

/* ============================================
   /you/ — Account panel (auth)
   ============================================ */
.you-account-card {
  padding: 18px 20px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 3px solid var(--editorial-red);
  border-radius: 14px;
}
.you-account-anon {
  background: var(--white, #FFFFFF);
  border-left-color: var(--border, #E5E8DF);
}
.you-account-row {
  display: flex; gap: 14px; align-items: center;
}
.you-account-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
}
.you-account-anon .you-account-icon {
  background: var(--cream-warm, #FBF6EF);
  color: var(--warm-gray, #6B7B68);
}
.you-account-body { flex: 1; min-width: 0; }
.you-account-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
}
.you-account-meta {
  font-size: 12.5px;
  color: var(--warm-gray, #6B7B68);
  margin-top: 2px;
  line-height: 1.45;
}
.you-account-merge {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--white, #FFFFFF);
  border-radius: 10px;
  border: 0.5px dashed var(--editorial-red);
}

/* ============================================
   Share channels + preview (in share modal)
   ============================================ */
.wren-share-channels {
  display: flex; gap: 8px;
  margin: 4px 0 12px;
  flex-wrap: wrap;
}
.wren-share-channel {
  flex: 1; min-width: 90px;
  display: flex; align-items: center; gap: 6px; justify-content: center;
  padding: 9px 12px;
  background: var(--cream-warm, #FBF6EF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  cursor: pointer;
  transition: all 0.15s;
}
.wren-share-channel:hover {
  border-color: var(--editorial-red);
  color: var(--editorial-red);
  transform: translateY(-1px);
  background: rgba(168, 51, 46, 0.04);
}
.wren-share-channel-icon { font-size: 14px; }
.wren-share-channel-native { background: var(--editorial-red); color: var(--cream, #FFFFFF); border-color: var(--editorial-red); }
.wren-share-channel-native:hover { background: var(--editorial-red-deep); color: var(--cream, #FFFFFF); }

.wren-share-preview-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0;
  padding: 8px 0;
  margin: 4px 0 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--editorial-red);
  cursor: pointer;
}
.wren-share-preview-btn:hover { color: var(--editorial-red-deep); text-decoration: underline; }
.wren-share-preview { margin: 10px 0; }
.wren-share-preview-card {
  padding: 14px 16px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.04) 0%, var(--white, #FFFFFF) 60%, var(--white) 100%);
  border: 0.5px dashed var(--editorial-red);
  border-radius: 12px;
}
.wren-share-preview-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray, #6B7B68);
  font-weight: 700;
  margin-bottom: 10px;
}
.wren-share-preview-mock {
  padding: 16px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 10px;
}

/* ============================================
   Archetype card actions (Read again / Share / Comparatives)
   ============================================ */
.you-arch-card { display: flex; flex-direction: column; }
.you-arch-card-link { flex: 1; display: block; color: inherit; text-decoration: none; }
.you-arch-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border, #E5E8DF);
}
.you-arch-action {
  flex: 1;
  text-align: center;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 6px;
  background: transparent;
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 999px;
  color: var(--cocoa, #2A3A2D);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.you-arch-action:hover {
  border-color: var(--editorial-red);
  color: var(--editorial-red);
  text-decoration: none;
}
.you-arch-action-primary {
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  border-color: var(--editorial-red);
}
.you-arch-action-primary:hover {
  background: var(--editorial-red-deep);
  color: var(--cream, #FFFFFF);
  border-color: var(--editorial-red-deep);
}

/* ============================================
   Comparatives modal body
   ============================================ */
.you-comp-body { padding: 0 4px; }
.you-comp-arch-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 12px;
  margin-bottom: 18px;
}
.you-comp-arch-name {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
}
.you-comp-arch-sub {
  font-size: 11.5px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.you-comp-state {
  text-align: center;
  padding: 14px 0 4px;
}
.you-comp-state-icon { font-size: 28px; margin-bottom: 8px; }
.you-comp-state h4 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin: 0 0 8px;
}
.you-comp-state p {
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto 18px;
}
.you-comp-progress {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 18px;
}
.you-comp-progress-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  color: var(--cocoa, #2A3A2D);
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(168, 51, 46, 0.08);
}
.you-comp-progress-row:last-child { border-bottom: 0; }
.you-comp-progress-row strong { color: var(--editorial-red); font-weight: 600; }
.you-comp-callout {
  padding: 12px 16px;
  background: rgba(168, 51, 46, 0.06);
  border-left: 3px solid var(--editorial-red);
  border-radius: 0 10px 10px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cocoa, #2A3A2D);
  text-align: left;
}
.you-comp-callout strong { color: var(--editorial-red-deep); }

.you-comp-estimated-badge {
  margin-left: auto;
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.you-comp-headline {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(160deg, rgba(168,51,46,0.08) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 3px solid var(--editorial-red);
  border-radius: 12px;
  margin-bottom: 18px;
}
.you-comp-headline-num {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--editorial-red);
  line-height: 1;
}
.you-comp-headline-text {
  font-size: 13px;
  color: var(--cocoa, #2A3A2D);
  line-height: 1.5;
}
.you-comp-row { padding: 10px 0; border-bottom: 0.5px solid rgba(168, 51, 46, 0.08); }
.you-comp-row:last-of-type { border-bottom: 0; }
.you-comp-row-label {
  display: flex; justify-content: space-between;
  font-size: 12.5px;
  color: var(--warm-gray, #6B7B68);
  margin-bottom: 6px;
}
.you-comp-row-label > span:first-child { font-weight: 600; color: var(--cocoa, #2A3A2D); }
.you-comp-row-context {
  background: var(--cream-warm, #FBF6EF);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--cocoa, #2A3A2D);
}
.you-comp-row-stat { display: flex; align-items: center; gap: 10px; }
.you-comp-bar {
  flex: 1;
  height: 6px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 999px;
  overflow: hidden;
}
.you-comp-bar-fill { height: 100%; border-radius: 999px; transition: width 0.3s; }
.you-comp-row-stat strong { font-size: 13px; color: var(--cocoa); min-width: 42px; text-align: right; }
.you-comp-delta {
  font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px;
}
.you-comp-delta-up { background: rgba(122, 176, 152, 0.18); color: var(--sage-deep, #2F5A3D); }
.you-comp-delta-down { background: rgba(184, 82, 113, 0.18); color: var(--rose-deep, #B85271); }
.you-comp-fillmore {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(168, 51, 46, 0.05);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--cocoa);
  border-left: 2px solid var(--editorial-red);
}
.you-comp-fillmore strong { color: var(--editorial-red-deep); }
.you-comp-meta {
  margin: 18px 0 4px;
  padding: 12px 16px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 10px;
}
.you-comp-meta summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--editorial-red); }
.you-comp-meta p { font-size: 12.5px; line-height: 1.55; color: var(--cocoa); margin: 8px 0; }

/* Insights inside comparatives modal */
.you-comp-insights { margin: 20px 0 18px; }
.you-comp-insights-head { margin-bottom: 12px; }
.you-comp-insights-head h4 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin: 4px 0 0;
}
.you-comp-insight {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 10px;
  margin-bottom: 8px;
}
.you-comp-insight-bar {
  flex-shrink: 0;
  width: 3px; min-height: 24px;
  background: var(--rose, #B85271);
  border-radius: 999px;
}
.you-comp-insight:nth-child(3n+1) .you-comp-insight-bar { background: var(--sage, #7AB098); }
.you-comp-insight:nth-child(3n+2) .you-comp-insight-bar { background: var(--rose, #B85271); }
.you-comp-insight:nth-child(3n+3) .you-comp-insight-bar { background: var(--lavender, #B69ED4); }
.you-comp-insight p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cocoa, #2A3A2D);
}

/* Other archetypes section in comparatives modal */
.you-comp-others { margin: 24px 0 18px; }
.you-comp-others-head { margin-bottom: 14px; }
.you-comp-others-head h4 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin: 4px 0 6px;
}
.you-comp-others-head p {
  font-size: 12.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.5;
  margin: 0;
}
.you-comp-other {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: all 0.15s;
}
.you-comp-other:hover {
  border-color: var(--editorial-red);
  transform: translateX(2px);
}
.you-comp-other-avatar {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--cream, #FFFFFF);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-weight: 700;
  font-size: 13.5px;
}
.you-comp-other-body { flex: 1; min-width: 0; }
.you-comp-other-head-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px;
}
.you-comp-other-head-row strong {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
}
.you-comp-other-pct {
  font-size: 13px;
  font-weight: 600;
  color: var(--editorial-red);
  white-space: nowrap;
}
.you-comp-other-sub {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
  margin-top: 1px;
}
.you-comp-other-summary {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cocoa, #2A3A2D);
}

/* ============================================
   /you/ — Demographics editor
   ============================================ */
.you-demo-card {
  padding: 24px 26px;
  background: linear-gradient(160deg, rgba(245, 198, 162, 0.10) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 3px solid var(--peach, #E89A6F);
  border-radius: 16px;
}
.you-demo-pitch {
  padding: 14px 18px 16px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(245, 198, 162, 0.18);
  font-size: 14px;
  line-height: 1.55;
  color: var(--cocoa, #2A3A2D);
  border-left: 3px solid var(--peach-deep, #B26F45);
}
.you-demo-pitch strong { color: var(--peach-deep, #B26F45); font-family: var(--font-serif, Fraunces, Georgia, serif); }

/* COLLAPSED VIEW — compact, low chrome, expandable */
.you-demo-card-collapsed { padding: 18px 20px; }
.you-demo-collapsed-row {
  display: flex; gap: 14px; align-items: center;
}
.you-demo-collapsed-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--peach-deep, #B26F45);
  color: var(--cream, #FFFFFF);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.you-demo-collapsed-body { flex: 1; min-width: 0; }
.you-demo-collapsed-h {
  font-size: 13px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin-bottom: 6px;
}
.you-demo-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.you-demo-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  background: var(--cream-warm, #FBF6EF);
  color: var(--cocoa, #2A3A2D);
  border-radius: 999px;
  border: 0.5px solid var(--border, #E5E8DF);
}
.you-demo-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(168, 51, 46, 0.05);
  border-left: 3px solid var(--editorial-red);
  font-size: 13.5px;
  color: var(--cocoa, #2A3A2D);
  line-height: 1.55;
}
.you-demo-callout strong { color: var(--editorial-red-deep); }
.you-demo-progress {
  margin-bottom: 20px;
}
.you-demo-progress-text {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
.you-demo-progress-track {
  height: 6px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 999px;
  overflow: hidden;
}
.you-demo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--editorial-red) 0%, var(--rose, #B85271) 100%);
  border-radius: 999px;
  transition: width 0.4s;
}
.you-demo-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}
.you-demo-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.you-demo-label {
  font-size: 11.5px;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.you-demo-input {
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--cocoa, #2A3A2D);
  background: var(--cream-warm, #FBF6EF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 8px;
  outline: none;
}
.you-demo-input:focus {
  border-color: var(--editorial-red);
  background: var(--white, #FFFFFF);
}
.you-demo-share {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--cocoa, #2A3A2D);
  margin-top: 8px;
  cursor: pointer;
}
.you-demo-share input { margin-top: 2px; }
.you-demo-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.you-demo-status {
  font-size: 13px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .you-demo-form { grid-template-columns: 1fr; }
}

/* ============================================
   /you/ — Shares I've sent panel (Phase 2)
   ============================================ */
.you-shares {
  display: grid;
  gap: 12px;
}
.you-share-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 12px;
  background: var(--white, #FFFFFF);
}
.you-share-row.revoked { opacity: 0.55; }
.you-share-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-warm, #FBF6EF);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--editorial-red);
}
.you-share-body { flex: 1; min-width: 0; }
.you-share-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--cocoa, #2A3A2D);
}
.you-share-meta {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  margin-bottom: 6px;
}
.you-share-url {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--warm-gray, #6B7B68);
  word-break: break-all;
  background: var(--cream-warm, #FBF6EF);
  padding: 6px 10px;
  border-radius: 6px;
}
.you-share-actions {
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.you-share-btn {
  background: transparent;
  border: 0.5px solid var(--border, #E5E8DF);
  color: var(--cocoa, #2A3A2D);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.you-share-btn:hover { border-color: var(--editorial-red); color: var(--editorial-red); }
.you-share-btn-revoke {
  background: rgba(168, 51, 46, 0.08);
  color: var(--editorial-red-deep);
  border-color: rgba(168, 51, 46, 0.3);
}
.you-share-empty {
  padding: 22px;
  text-align: center;
  color: var(--warm-gray, #6B7B68);
  font-size: 13.5px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 12px;
}

/* ============================================
   MATCH-FINDER (homepage 60-second quiz)
   ============================================ */
.wren-finder-cta {
  display: flex; gap: 14px; align-items: center;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.wren-finder-or {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
}
.wren-finder-toggle {
  background: linear-gradient(135deg, var(--editorial-red) 0%, var(--rose-deep, #B85271) 100%);
  color: var(--cream, #FFFFFF);
  border: 0;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(168, 51, 46, 0.4);
  transition: all 0.18s;
}
.wren-finder-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -8px rgba(168, 51, 46, 0.5);
}
.wren-finder-icon { font-size: 14px; margin-right: 4px; }

.wren-finder {
  margin: 30px auto 0;
  max-width: 900px;
  padding: 32px 32px 28px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, var(--white) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-top: 3px solid var(--editorial-red);
  border-radius: 18px;
}
.wren-finder.hidden { display: none; }
.wren-finder-head { text-align: center; margin-bottom: 24px; }
.wren-finder-head h2 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cocoa, #2A3A2D);
  margin: 8px 0 6px;
}
.wren-finder-head p {
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
}
.wren-finder-questions {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
}
.wren-finder-q {
  padding: 18px 20px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 14px;
}
.wren-finder-q h3 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin: 0 0 12px;
}
.wren-finder-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wren-finder-chips button {
  background: var(--cream-warm, #FBF6EF);
  color: var(--cocoa, #2A3A2D);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 999px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.3;
}
.wren-finder-chips button:hover {
  border-color: var(--editorial-red);
  color: var(--editorial-red);
}
.wren-finder-chips button.selected {
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  border-color: var(--editorial-red);
  font-weight: 600;
}
.wren-finder-actions {
  display: flex; gap: 12px; align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.wren-finder-count {
  font-size: 12px;
  color: var(--warm-gray, #6B7B68);
  font-weight: 600;
}
.wren-finder-results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 0.5px solid var(--border, #E5E8DF);
}
.wren-finder-results.hidden { display: none; }
.wren-finder-results-head {
  text-align: center;
  margin-bottom: 22px;
}
.wren-finder-results-head h3 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.wren-finder-results-head p {
  font-size: 13px;
  color: var(--warm-gray, #6B7B68);
  margin: 0;
}
.wren-finder-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.wren-finder-result {
  position: relative;
  display: flex; flex-direction: column;
  padding: 18px 20px;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s;
}
.wren-finder-result:hover {
  transform: translateY(-2px);
  border-color: var(--editorial-red);
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,0.18);
}
.wren-finder-rank {
  position: absolute;
  top: 14px; right: 16px;
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--editorial-red);
  opacity: 0.25;
  line-height: 1;
}
.wren-finder-result-reason {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 0.5px dashed var(--border, #E5E8DF);
  font-size: 12px;
  color: var(--editorial-red);
  font-weight: 600;
  line-height: 1.4;
}
.wren-finder-results-actions {
  text-align: center;
  margin-top: 18px;
}
.wren-finder-empty {
  padding: 20px;
  text-align: center;
  color: var(--warm-gray);
  font-size: 14px;
}
@media (max-width: 640px) {
  .wren-finder { padding: 22px 18px 20px; }
  .wren-finder-head h2 { font-size: 22px; }
}

/* ============================================
   ARCHETYPE READING — 4-mode quadrant toggle
   ============================================ */
.archetype-reading-block { margin: 40px 0 24px; }
.reading-toggles {
  display: flex; gap: 24px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 14px;
  flex-wrap: wrap;
}
.reading-toggle-group { display: flex; align-items: center; gap: 10px; }
.reading-toggle-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--warm-gray, #6B7B68);
}
.reading-toggle-set {
  display: inline-flex;
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-radius: 999px;
  padding: 3px;
}
.reading-toggle-btn {
  background: transparent;
  border: 0;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--warm-gray, #6B7B68);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.15s;
}
.reading-toggle-btn:hover { color: var(--cocoa, #2A3A2D); }
.reading-toggle-btn.active {
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
}
.reading-toggle-btn[disabled] { opacity: 0.4; cursor: not-allowed; }

.reading-pane[hidden] { display: none; }

.reading-stub {
  padding: 26px 28px;
  background: var(--cream-warm, #FBF6EF);
  border-radius: 14px;
  border-left: 3px solid var(--editorial-red);
}
.reading-stub h3 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--cocoa, #2A3A2D);
  margin: 8px 0 8px;
}
.reading-stub p {
  font-size: 14px;
  color: var(--warm-gray, #6B7B68);
  line-height: 1.55;
  margin: 0;
}

/* Technical reading style — denser, more research-tone */
.reading-pane[data-reading-pane*="Technical"] {
  font-family: var(--font-sans, Inter, system-ui, sans-serif);
}
.reading-pane[data-reading-pane*="Technical"] .rich-section,
.reading-pane[data-reading-pane*="Technical"] .reading-tech {
  background: var(--white, #FFFFFF);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 3px solid var(--lavender-deep, #6B57A8);
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--cocoa, #2A3A2D);
}
.reading-pane[data-reading-pane*="Technical"] .rich-section-h,
.reading-pane[data-reading-pane*="Technical"] .reading-tech h3 {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--lavender-deep, #6B57A8);
  margin: 0 0 8px;
}
.reading-pane[data-reading-pane*="Technical"] .rich-section-p,
.reading-pane[data-reading-pane*="Technical"] .reading-tech p {
  font-size: 13.5px;
  line-height: 1.65;
}
.reading-pane[data-reading-pane*="Technical"] .reading-tech ul {
  margin: 0; padding-left: 18px;
  font-size: 13.5px;
}
.reading-pane[data-reading-pane*="Technical"] .reading-tech li { margin-bottom: 8px; line-height: 1.55; }

/* Short basic — tighter; long basic — flowing */
.reading-pane[data-reading-pane="shortBasic"] .rich-section,
.reading-pane[data-reading-pane="shortBasic"] .reading-quick {
  padding: 18px 22px;
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .reading-toggles { gap: 14px; padding: 12px 14px; }
  .reading-toggle-btn { padding: 5px 11px; font-size: 12px; }
}

/* ============================================
   GAP INSIGHTS (asymmetry reads on results page)
   ============================================ */
.gap-insights {
  margin: 40px 0 32px;
  padding: 28px 28px 24px;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, rgba(255, 255, 255, 0.96) 60%, var(--white) 100%);
  border: 0.5px solid var(--border, #E5E8DF);
  border-left: 4px solid var(--editorial-red);
  border-radius: 16px;
}
.gap-insights-head { margin-bottom: 18px; }
.gap-insights-h {
  font-family: var(--font-serif, Fraunces, Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 6px 0 4px;
  color: var(--cocoa, #2A3A2D);
}
.gap-insights-sub {
  font-size: 13.5px;
  color: var(--warm-gray, #6B7B68);
  margin: 0;
  line-height: 1.5;
}
.gap-insight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 0.5px solid rgba(168, 51, 46, 0.18);
}
.gap-insight:first-of-type { border-top: 0; padding-top: 0; }
.gap-insight-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--editorial-red);
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.4;
}
.gap-insight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cocoa, #2A3A2D);
}
.gap-insight p strong {
  color: var(--editorial-red-deep);
  font-weight: 700;
}

/* ============================================
   MULTI-SELECT PATTERN (pick all that apply)
   ============================================ */
.q-multi { display: flex; flex-direction: column; gap: 10px; }
.q-multi-hint {
  font-size: 12.5px;
  color: var(--editorial-red);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.q-multi-option .q-multi-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--cream-warm, #FBF6EF);
  color: var(--cocoa, #2A3A2D);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border, #E5E8DF);
  transition: all 0.15s;
}
.q-multi-option.selected .q-multi-check {
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  border-color: var(--editorial-red);
}
.q-multi-option.selected {
  border-color: var(--editorial-red) !important;
  background: linear-gradient(160deg, rgba(168, 51, 46, 0.06) 0%, rgba(255,255,255,1) 100%);
}

/* ============================================
   GRADIENT PATTERN (slider between A and B)
   ============================================ */
.q-gradient { display: flex; flex-direction: column; gap: 16px; }
.q-gradient-hint {
  font-size: 12.5px;
  color: var(--editorial-red);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.q-gradient-endpoints {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.q-gradient-endpoint {
  padding: 16px 16px 14px;
  border-radius: 12px;
  border: 0.5px solid var(--border, #E5E8DF);
  background: var(--white, #FFFFFF);
  display: flex; flex-direction: column; gap: 8px;
}
.q-gradient-a { border-left: 3px solid var(--editorial-red); }
.q-gradient-b { border-right: 3px solid var(--editorial-red); text-align: right; }
.q-gradient-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--editorial-red);
  letter-spacing: 0.1em;
}
.q-gradient-text {
  font-size: 14.5px;
  color: var(--cocoa, #2A3A2D);
  line-height: 1.45;
}
.q-gradient-track-wrap { padding: 8px 4px 4px; }
.q-gradient-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--editorial-red) 0%, rgba(168, 51, 46, 0.25) 50%, var(--editorial-red) 100%);
  outline: none;
  margin: 0;
}
.q-gradient-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--editorial-red);
  border: 3px solid var(--cream, #FFFFFF);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25);
  cursor: grab;
}
.q-gradient-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--editorial-red);
  border: 3px solid var(--cream, #FFFFFF);
  box-shadow: 0 2px 8px -2px rgba(0,0,0,0.25);
  cursor: grab;
}
.q-gradient-ticks {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  color: var(--warm-gray, #6B7B68);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.q-tick {
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 999px;
  transition: all 0.15s;
  text-align: center;
  flex: 1;
  min-width: 0;
}
.q-tick:hover {
  color: var(--editorial-red);
  background: rgba(168, 51, 46, 0.06);
}
.q-tick.active {
  color: var(--editorial-red);
  background: rgba(168, 51, 46, 0.12);
  font-weight: 700;
}

/* Likert slider (recognition / frequency) — vertical stack of 5 wider tick buttons */
.q-likert-slider .q-gradient-track-wrap { padding: 12px 4px 4px; }
.q-likert-ticks {
  display: grid !important;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--cocoa, #2A3A2D);
  letter-spacing: 0;
}
.q-likert-ticks.q-ticks-5 { grid-template-columns: repeat(5, 1fr); }
.q-likert-ticks.q-ticks-4 { grid-template-columns: repeat(4, 1fr); }
.q-likert-tick {
  padding: 10px 8px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  border: 0.5px solid var(--border, #E5E8DF);
  background: var(--white, #FFFFFF);
  border-radius: 8px;
  color: var(--cocoa, #2A3A2D);
  text-align: center;
}
.q-likert-tick:hover {
  border-color: var(--editorial-red);
  background: rgba(168, 51, 46, 0.06);
  color: var(--editorial-red-deep);
}
.q-likert-tick.active {
  border-color: var(--editorial-red);
  background: var(--editorial-red);
  color: var(--cream, #FFFFFF);
  font-weight: 600;
}
@media (max-width: 640px) {
  .q-likert-ticks { grid-template-columns: 1fr !important; }
  .q-likert-tick { padding: 12px 14px; font-size: 14px; text-align: left; }
}
.q-gradient-value {
  text-align: center;
  font-size: 13px;
  color: var(--editorial-red-deep);
  font-weight: 600;
  padding: 10px 14px;
  background: rgba(168, 51, 46, 0.06);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .q-gradient-endpoints { grid-template-columns: 1fr; }
  .q-gradient-b { text-align: left; border-right: none; border-left: 3px solid var(--editorial-red); }
}

/* ============================================
   THE FAMILY MAP — test intro age picker
   ============================================ */
.family-age-picker { margin: 28px 0 20px; padding: 28px; background: var(--peach-soft); border-radius: var(--radius-lg); border: 1px solid var(--peach-mid); }
.family-age-label { font-size: 13px; color: var(--cocoa); margin-bottom: 14px; opacity: 0.8; }
.family-age-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.family-age-btn { display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all 0.15s; text-align: left; font-family: inherit; }
.family-age-btn:hover { border-color: var(--editorial-red); transform: translateY(-2px); box-shadow: 0 6px 18px -8px rgba(168, 51, 46, 0.25); }
.family-age-btn strong { font-family: var(--font-serif); font-size: 18px; color: var(--cocoa); }
.family-age-btn span { font-size: 12px; color: var(--warm-gray); }
.family-age-adult strong { color: var(--editorial-red); }
.family-age-tip { font-size: 12px; color: var(--cocoa); opacity: 0.7; line-height: 1.55; margin-top: 8px; }

.family-invite-banner { padding: 18px 22px; background: var(--rose-soft); border-left: 3px solid var(--editorial-red); border-radius: var(--radius-md); margin-bottom: 16px; }
.family-invite-banner h3 { font-family: var(--font-serif); font-size: 18px; margin: 6px 0 4px; }
.family-invite-banner p { font-size: 13px; color: var(--cocoa); margin: 0; }

@media (max-width: 640px) {
  .family-age-options { grid-template-columns: 1fr; }
}

/* ============================================
   FAMILY DASHBOARD (/you/family/)
   ============================================ */
.family-empty { padding: 40px 0; }
.family-h1 { font-family: var(--font-serif); font-size: 42px; line-height: 1.15; color: var(--cocoa); margin: 12px 0 14px; font-weight: 600; }
.family-lead { font-size: 17px; line-height: 1.55; color: var(--warm-gray); margin-bottom: 28px; max-width: 640px; }
.family-warn { padding: 12px 16px; background: var(--peach-soft); border-left: 3px solid var(--editorial-red); border-radius: var(--radius-sm); font-size: 14px; color: var(--cocoa); margin-bottom: 20px; }
.family-actions-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.family-prep { padding: 22px 26px; background: var(--cream); border-radius: var(--radius-md); border: 1px solid var(--border); max-width: 540px; }
.family-prep h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 6px; }
.family-prep p { font-size: 14px; color: var(--cocoa); line-height: 1.55; }
.family-prep-link { color: var(--editorial-red); font-weight: 600; }

.family-dashboard { display: flex; flex-direction: column; gap: 36px; }
.family-head { text-align: left; }

/* Invite block */
.family-invite-block { padding: 28px; background: linear-gradient(140deg, var(--rose-soft) 0%, var(--cream) 65%); border-radius: var(--radius-lg); border: 1px solid var(--peach-mid); }
.family-invite-head h3 { font-family: var(--font-serif); font-size: 22px; margin: 6px 0 14px; }
.family-invite-code, .family-invite-link { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.family-invite-code-label, .family-invite-link-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--cocoa); font-weight: 600; opacity: 0.7; min-width: 36px; }
.family-invite-code-value { font-family: monospace; font-size: 24px; font-weight: 700; letter-spacing: 4px; color: var(--editorial-red); background: var(--white); padding: 8px 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--peach-mid); }
.family-invite-link-value { font-family: monospace; font-size: 11px; padding: 8px 12px; background: var(--white); border-radius: var(--radius-sm); border: 1px solid var(--border); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cocoa); }
.family-invite-channels { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.family-invite-channel { padding: 8px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--cocoa); text-decoration: none; font-weight: 500; transition: all 0.15s; }
.family-invite-channel:hover { border-color: var(--editorial-red); background: var(--rose-soft); }

/* Members list */
.family-members-block, .family-dyads-block { padding: 0; }
.family-section-head { margin-bottom: 18px; }
.family-section-head h3 { font-family: var(--font-serif); font-size: 24px; color: var(--cocoa); margin: 6px 0 6px; }
.family-section-head p { font-size: 14px; color: var(--warm-gray); line-height: 1.55; }
.family-members-list { display: flex; flex-direction: column; gap: 12px; }
.family-member { display: flex; gap: 18px; align-items: center; padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); }
.family-member-pending { background: var(--cream); opacity: 0.85; }
.family-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 16px; flex-shrink: 0; font-family: var(--font-serif); }
.family-member-body { flex: 1; min-width: 0; }
.family-member-name { font-size: 16px; color: var(--cocoa); font-weight: 600; }
.family-member-role { font-weight: 400; color: var(--warm-gray); font-size: 13px; text-transform: capitalize; }
.family-member-arch { font-family: var(--font-serif); font-size: 18px; color: var(--cocoa); margin-top: 4px; }
.family-member-sub { font-size: 13px; color: var(--warm-gray); margin-top: 2px; }
.family-member-sub a { color: var(--editorial-red); font-weight: 600; }
.family-member-meta { display: flex; align-items: center; gap: 10px; }
.family-age-badge { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--cocoa); font-weight: 600; }
.family-age-adult { background: var(--sage-soft); color: var(--sage-deep); }
.family-age-teen { background: var(--lavender-soft); color: var(--lavender-deep); }
.family-age-kid { background: var(--peach-soft); color: var(--editorial-red); }

/* Whole-family system read */
.family-system-read { padding: 32px; background: linear-gradient(160deg, var(--sage-soft) 0%, var(--cream) 70%); border-radius: var(--radius-lg); border: 1px solid var(--sage-mid); }
.family-system-body { font-size: 16px; line-height: 1.65; color: var(--cocoa); margin-bottom: 20px; }
.family-system-additional { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sage-mid); }
.family-system-additional h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 14px; color: var(--cocoa); }
.family-system-pattern { margin-bottom: 14px; padding-left: 14px; border-left: 2px solid var(--sage); }
.family-system-pattern strong { font-family: var(--font-serif); font-size: 15px; display: block; margin-bottom: 4px; color: var(--cocoa); }
.family-system-pattern p { font-size: 14px; color: var(--cocoa); line-height: 1.55; opacity: 0.9; }
.family-system-carriers { padding: 12px 16px; background: var(--white); border-radius: var(--radius-sm); font-size: 14px; margin-top: 16px; color: var(--cocoa); }
.family-system-practice { margin-top: 18px; padding: 18px 22px; background: var(--honey-soft); border-left: 3px solid var(--honey); border-radius: var(--radius-sm); }
.family-system-practice p { font-size: 15px; line-height: 1.6; color: var(--cocoa); margin-top: 6px; font-style: italic; }

/* Dyad reads */
.family-dyad { padding: 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 16px; }
.family-dyad-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.family-dyad-pair { display: flex; align-items: center; gap: 14px; }
.family-dyad-vs { font-family: var(--font-serif); font-size: 22px; color: var(--warm-gray); font-weight: 600; }
.family-dyad-pair-text { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--cocoa); }
.family-dyad-archetype { font-weight: 400; color: var(--warm-gray); font-size: 13px; }
.family-dyad-section { margin-top: 18px; }
.family-dyad-section .eyebrow { display: inline-block; margin-bottom: 10px; }
.family-dyad-item { padding: 14px 16px; background: var(--cream); border-radius: var(--radius-sm); margin-bottom: 10px; }
.family-dyad-align .family-dyad-item { background: var(--sage-soft); border-left: 3px solid var(--sage); }
.family-dyad-diverge .family-dyad-item { background: var(--peach-soft); border-left: 3px solid var(--editorial-red); }
.family-dyad-item h5 { font-family: var(--font-serif); font-size: 15px; color: var(--cocoa); margin-bottom: 6px; font-weight: 600; }
.family-dyad-item p { font-size: 14px; line-height: 1.55; color: var(--cocoa); margin: 0; }
.family-dyad-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.family-dyad-action { padding: 12px 14px; background: var(--white); border-radius: var(--radius-sm); }
.family-dyad-action strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--editorial-red); font-weight: 700; margin-bottom: 4px; }
.family-dyad-action p { font-size: 13px; line-height: 1.5; }

@media (max-width: 640px) {
  .family-dyad-actions { grid-template-columns: 1fr; }
  .family-invite-link { flex-direction: column; align-items: stretch; }
  .family-invite-link-value { font-size: 10px; }
}

/* Foot */
.family-foot { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid var(--border-soft); margin-top: 20px; flex-wrap: wrap; gap: 14px; }
.family-consent { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--cocoa); cursor: pointer; }
.family-consent input { width: 16px; height: 16px; cursor: pointer; }
.family-empty-state { padding: 24px; background: var(--cream); border-radius: var(--radius-md); text-align: center; color: var(--warm-gray); font-size: 14px; }

/* Form helpers */
.wren-form-row { margin-bottom: 16px; }
.wren-form-row label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--cocoa); font-weight: 600; margin-bottom: 6px; opacity: 0.75; }
.wren-form-row input, .wren-form-row select { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; color: var(--cocoa); font-family: inherit; box-sizing: border-box; background: var(--white); }
.wren-form-row input:focus, .wren-form-row select:focus { outline: 0; border-color: var(--editorial-red); }

/* /you/ Family CTA */
.you-family-cta { background: linear-gradient(135deg, var(--rose-soft) 0%, var(--cream) 70%); border: 1px solid var(--peach-mid); }
.you-family-cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; }
.you-family-cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 220px; }
.you-family-cta-actions .btn { text-align: center; }
@media (max-width: 720px) {
  .you-family-cta-inner { grid-template-columns: 1fr; }
  .you-family-cta-actions { flex-direction: row; flex-wrap: wrap; }
  .you-family-cta-actions .btn { flex: 1; }
}

/* Family — demo & preview banners */
.family-preview-banner {
  display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center;
  padding: 26px 28px;
  margin: 24px 0;
  background: linear-gradient(140deg, var(--peach-soft) 0%, var(--cream) 70%);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--peach-mid);
}
.family-preview-banner-text h3 { font-family: var(--font-serif); font-size: 20px; margin: 6px 0; color: var(--cocoa); }
.family-preview-banner-text p { font-size: 14px; color: var(--cocoa); line-height: 1.55; opacity: 0.85; }

.family-demo-banner {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px;
  margin-bottom: 24px;
  background: var(--rose-soft);
  border-left: 4px solid var(--editorial-red);
  border-radius: var(--radius-md);
}
.family-demo-banner h3 { font-family: var(--font-serif); font-size: 18px; margin: 4px 0 4px; color: var(--cocoa); }
.family-demo-banner p { font-size: 13.5px; color: var(--cocoa); line-height: 1.55; opacity: 0.85; }

.family-demo-cta {
  margin-top: 48px;
  padding: 36px 40px;
  background: linear-gradient(140deg, var(--sage-soft) 0%, var(--cream) 70%);
  border-radius: var(--radius-lg);
  text-align: center;
}
.family-demo-cta h2 { font-family: var(--font-serif); font-size: 32px; margin: 10px 0 10px; color: var(--cocoa); }
.family-demo-cta p { font-size: 15px; line-height: 1.6; color: var(--cocoa); max-width: 580px; margin: 0 auto 22px; }
.family-demo-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 720px) {
  .family-preview-banner, .family-demo-banner { grid-template-columns: 1fr; }
}

.family-age-preview-link { margin-top: 12px; font-size: 13px; }
.family-age-preview-link a { color: var(--editorial-red); font-weight: 600; text-decoration: none; }
.family-age-preview-link a:hover { text-decoration: underline; }
.family-age-preview-link span { color: var(--warm-gray); margin-left: 8px; }

/* Family Compare meta-layer — shared-test cards under each dyad */
.family-dyad-shared { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.family-dyad-shared-sub { font-size: 13px; color: var(--warm-gray); margin: 6px 0 14px; }
.family-shared-test { padding: 16px 18px; background: var(--lavender-soft); border-left: 3px solid var(--lavender); border-radius: var(--radius-sm); margin-bottom: 10px; }
.family-shared-test-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.family-shared-test-head strong { font-family: var(--font-serif); font-size: 15px; color: var(--cocoa); }
.family-shared-same { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; background: var(--sage); color: var(--white); border-radius: 999px; font-weight: 600; }
.family-shared-test-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.family-shared-side { display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--white); border-radius: var(--radius-sm); }
.family-shared-side strong { display: block; font-size: 13px; color: var(--cocoa); font-weight: 600; }
.family-shared-side span { display: block; font-size: 12px; color: var(--warm-gray); }
.family-shared-side .family-avatar { width: 36px; height: 36px; font-size: 12px; }
.family-shared-headline { font-size: 13.5px; line-height: 1.55; color: var(--cocoa); margin: 0; padding: 10px 12px; background: var(--white); border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  .family-shared-test-pair { grid-template-columns: 1fr; }
}

/* Family Map — privacy guarantee blocks */
.family-privacy-block { margin-top: 16px; padding: 22px 24px; background: var(--white); border: 1px solid var(--peach-mid); border-left: 4px solid var(--editorial-red); border-radius: var(--radius-md); }
.family-privacy-block h3 { font-family: var(--font-serif); font-size: 17px; color: var(--cocoa); margin: 6px 0 12px; line-height: 1.4; }
.family-privacy-block ul { padding-left: 20px; margin: 0; }
.family-privacy-block li { font-size: 13.5px; color: var(--cocoa); line-height: 1.6; margin-bottom: 10px; }
.family-privacy-block li:last-child { margin-bottom: 0; }
.family-privacy-block li strong { color: var(--editorial-red-deep); font-weight: 700; }

.family-privacy-callout { padding: 18px 22px; background: var(--rose-soft); border-left: 3px solid var(--editorial-red); border-radius: var(--radius-md); margin-bottom: 28px; }
.family-privacy-callout p { font-size: 14px; line-height: 1.6; color: var(--cocoa); margin: 6px 0 0; }
.family-privacy-callout strong { color: var(--editorial-red-deep); font-weight: 700; }

/* Feedback widget (post-results) */
.wren-feedback { margin: 48px 0 24px; padding: 28px 32px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.wren-feedback-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.wren-feedback-head h3 { font-family: var(--font-serif); font-size: 22px; color: var(--cocoa); margin: 0; }
.wren-feedback-head p { font-size: 13.5px; color: var(--warm-gray); margin: 0; }
.wren-feedback-stars { display: flex; gap: 8px; margin: 16px 0 18px; flex-wrap: wrap; }
.wren-feedback-star { background: transparent; border: 1.5px solid var(--border); padding: 10px 16px; border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--cocoa); cursor: pointer; transition: all 0.15s; min-width: 60px; }
.wren-feedback-star:hover { border-color: var(--editorial-red); background: var(--rose-soft); }
.wren-feedback-star.active { background: var(--editorial-red); border-color: var(--editorial-red); color: var(--white); font-weight: 600; }
.wren-feedback-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.wren-feedback-fields > div { display: flex; flex-direction: column; gap: 6px; }
.wren-feedback-fields label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--cocoa); font-weight: 700; opacity: 0.75; }
.wren-feedback-fields textarea { width: 100%; min-height: 70px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 14px; color: var(--cocoa); background: var(--white); resize: vertical; box-sizing: border-box; }
.wren-feedback-fields textarea:focus { outline: 0; border-color: var(--editorial-red); }
.wren-feedback-actions { display: flex; justify-content: flex-end; gap: 10px; }
.wren-feedback-thanks { padding: 18px; background: var(--sage-soft); border-radius: var(--radius-md); text-align: center; font-size: 14.5px; color: var(--cocoa); }
.wren-feedback-thanks strong { display: block; font-family: var(--font-serif); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 640px) {
  .wren-feedback-fields { grid-template-columns: 1fr; }
}

/* Marketing — embedded rendered ads */
.mk-rendered-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.mk-rendered-ad { padding: 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.mk-rendered-ad video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius-md); background: #000; display: block; margin-bottom: 12px; }
.mk-rendered-ad-body h4 { font-family: var(--font-serif); font-size: 17px; color: var(--cocoa); margin: 0 0 4px; }
.mk-rendered-ad-body p { font-size: 12px; line-height: 1.5; color: var(--warm-gray); margin: 0 0 10px; }
.mk-rendered-dl { display: inline-block; padding: 6px 14px; background: var(--editorial-red); color: var(--cream); text-decoration: none; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.mk-rendered-dl:hover { background: var(--editorial-red-deep); }

/* /you/ — Joint readings panel */
.you-readings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.you-reading-card { display: block; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; transition: all 0.15s; border-left: 3px solid var(--editorial-red); }
.you-reading-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px -10px rgba(168, 51, 46, 0.25); }
.you-reading-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.you-reading-role { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--editorial-red); font-weight: 700; }
.you-reading-date { font-size: 11px; color: var(--warm-gray); }
.you-reading-body { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.you-reading-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.you-reading-line strong { color: var(--cocoa); font-weight: 600; }
.you-reading-line span { color: var(--warm-gray); font-family: var(--font-serif); font-style: italic; }
.you-reading-vs { font-family: var(--font-serif); font-size: 16px; color: var(--warm-gray); text-align: center; line-height: 1; opacity: 0.6; }
.you-reading-cta { font-size: 12px; color: var(--editorial-red); font-weight: 600; }

/* /you/ — Friends panel */
.you-friends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.you-friend-card { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all 0.15s; }
.you-friend-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px -10px rgba(42, 27, 20, 0.18); }
.you-friend-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 16px; }
.you-friend-name { font-size: 15px; font-weight: 600; color: var(--cocoa); }
.you-friend-rel { font-size: 12px; font-weight: 400; color: var(--warm-gray); text-transform: capitalize; }
.you-friend-archs { font-family: var(--font-serif); font-size: 13.5px; font-style: italic; color: var(--cocoa); margin: 3px 0 2px; opacity: 0.85; }
.you-friend-meta { font-size: 11px; color: var(--warm-gray); }
.you-friend-actions .btn { padding: 6px 12px; font-size: 12px; }

/* /you/friends/ — friends list */
.friends-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.friend-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: all 0.15s; }
.friend-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -10px rgba(42, 27, 20, 0.18); }
.friend-avatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.friend-name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--cocoa); }
.friend-tests { font-size: 12px; color: var(--warm-gray); margin-top: 2px; }
.friend-archs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.friend-arch-pill { font-size: 11px; padding: 2px 8px; background: var(--cream); border-radius: 999px; color: var(--cocoa); }
.friend-actions { display: flex; flex-direction: column; gap: 6px; }
.friend-actions .btn { padding: 6px 12px; font-size: 12px; min-width: 96px; }

/* /you/friends/compare/ — together reading */
.compare-stack { display: flex; flex-direction: column; gap: 14px; }
.compare-test { padding: 22px 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-test-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.compare-same { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; background: var(--sage); color: var(--white); border-radius: 999px; font-weight: 600; }
.compare-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--cream); border-radius: var(--radius-md); margin-bottom: 12px; }
.compare-side { display: flex; gap: 10px; align-items: center; }
.compare-avatar { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.compare-meta { display: flex; flex-direction: column; gap: 1px; }
.compare-meta strong { font-size: 13px; color: var(--cocoa); }
.compare-arch { font-family: var(--font-serif); font-size: 14px; color: var(--cocoa); }
.compare-sub { font-size: 11px; color: var(--warm-gray); }
.compare-vs { font-family: var(--font-serif); font-size: 22px; color: var(--warm-gray); opacity: 0.5; }
.compare-read { font-size: 14px; line-height: 1.55; color: var(--cocoa); margin: 0; }
@media (max-width: 640px) { .compare-pair { grid-template-columns: 1fr; } .compare-vs { text-align: center; } }

/* ========== RECOMMENDED TESTS (home page) ========== */
.test-card-recommended {
  position: relative;
  box-shadow: 0 0 0 1.5px var(--editorial-red), 0 8px 22px rgba(168,51,46,0.10);
  border-color: var(--editorial-red) !important;
  background: linear-gradient(180deg, rgba(168,51,46,0.025) 0%, var(--white) 60%);
}
.test-card-recommended:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1.5px var(--editorial-red), 0 14px 28px rgba(168,51,46,0.18);
}
/* Make room for the badge so the pill doesn't overlap */
.test-card-recommended .test-card-pill { max-width: calc(100% - 88px); }
.rec-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--editorial-red);
  color: var(--cream);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px 3px;
  border-radius: 999px;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
  z-index: 2;
  line-height: 1.2;
}
.rec-reason { display: none; }   /* hide inline reason — title tooltip on badge is enough */

/* Taken tests — faded with date stamp */
.test-card-taken {
  opacity: 0.55;
  filter: saturate(0.7);
  position: relative;
}
.test-card-taken:hover {
  opacity: 0.92;
  filter: saturate(1);
}
.taken-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: rgba(74,90,75,0.08);
  color: var(--cocoa);
  font-size: 11px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  border: 0.5px solid rgba(74,90,75,0.18);
  align-self: flex-start;
  width: fit-content;
}
.taken-stamp strong { font-weight: 600; color: var(--editorial-red); }
.taken-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: var(--sage-deep, #4a7a52);
  color: var(--white);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

/* Filter button */
.rec-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1.5px solid var(--editorial-red);
  color: var(--editorial-red);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  margin-left: 12px;
}
.rec-filter-btn:hover { background: rgba(168,51,46,0.06); }
.rec-filter-btn.active { background: var(--editorial-red); color: var(--cream); }
.rec-filter-btn .rec-star { font-size: 14px; }

/* Hero recommendation band */
.rec-hero-band {
  margin: 18px 0 0;
  padding: 12px 18px;
  background: linear-gradient(90deg, rgba(168,51,46,0.06), rgba(168,51,46,0.02));
  border: 1px solid rgba(168,51,46,0.18);
  border-left: 3px solid var(--editorial-red);
  border-radius: var(--radius-md, 10px);
  font-size: 14px;
  color: var(--cocoa, #2A3A2D);
  line-height: 1.55;
}
.rec-hero-band .rec-star { color: var(--editorial-red); font-size: 16px; margin-right: 4px; }
.rec-hero-band strong { color: var(--editorial-red); }
.rec-hero-band a.rec-jump { color: var(--editorial-red); text-decoration: underline; font-weight: 600; }

/* Filter-active mode — hide non-recommended cards */
body.filter-recommended .test-card:not(.test-card-recommended) { display: none !important; }
body.filter-recommended .test-category:not(:has(.test-card-recommended)) { display: none !important; }
body.filter-recommended .future-tests-row { display: none !important; }
body.filter-recommended .test-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); }

/* ========== UNIFIED FILTER BAR (solo / pair / family / all + match-finder) ========== */
.wren-filterbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 20px 0 0;
}
.wren-typefilter-set {
  display: inline-flex;
  gap: 0;
  background: var(--cream-warm, #F5EBDF);
  border-radius: 999px;
  padding: 3px;
}
.wren-typefilter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px 16px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cocoa);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.15s;
}
.wren-typefilter-btn:hover { background: rgba(168,51,46,0.06); }
.wren-typefilter-btn.active {
  background: var(--editorial-red);
  color: var(--cream);
}
.wren-typefilter-count {
  font-size: 11px;
  opacity: 0.7;
  font-weight: 500;
  margin-left: 2px;
}
.wren-typefilter-btn.active .wren-typefilter-count { opacity: 0.85; }
.wren-filterbar-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.wren-finder-link {
  background: transparent;
  border: 0;
  color: var(--editorial-red);
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.15s;
}
.wren-finder-link:hover { border-bottom-color: var(--editorial-red); }
/* Move the recommended button alongside the filterbar when it appears */
#rec-filter-btn {
  margin-left: 0;
  padding: 8px 14px;
  font-size: 12.5px;
}
@media (max-width: 640px) {
  .wren-filterbar { gap: 12px; }
  .wren-filterbar-sep { display: none; }
}


/* ========== RETAKE NUDGE + PORTRAIT-PROGRESS BAND ========== */
.taken-retake { color: var(--editorial-red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.rec-band-sep { opacity: 0.5; margin: 0 2px; }

/* ========== SEARCH: archetype-name hits strip ========== */
.wren-type-hits { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.wren-type-hits-label { font-family: Inter, system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--warm-gray); margin-right: 4px; }
.wren-type-hit { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 16px; background: rgba(255,255,255,0.8); border: 0.5px solid var(--border); border-radius: 12px; text-decoration: none; transition: all 0.15s; }
.wren-type-hit:hover { border-color: var(--editorial-red); transform: translateY(-1px); }
.wren-type-hit strong { font-family: var(--font-serif); font-size: 15px; color: var(--cocoa); font-weight: 600; }
.wren-type-hit span { font-family: Inter, system-ui, sans-serif; font-size: 11px; color: var(--editorial-red); font-weight: 600; }

/* ========== MOBILE NAV: hamburger toggle + slide-in drawer ========== */
/* Built by nav.js from the existing .site-nav links. The toggle is hidden
   on desktop and revealed at <=720px (see the @media rule near the nav block,
   where .site-nav is also set to display:none on mobile). */
.nav-toggle {
  display: none;            /* shown only on mobile via the 720px media query */
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  padding: 0;
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s, background 0.15s;
}
.nav-toggle:hover { border-color: var(--cocoa); background: var(--cream-warm); }
.nav-toggle-bars { display: block; width: 19px; height: 13px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--cocoa);
  transition: transform 0.22s ease, opacity 0.18s ease, top 0.22s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle-bars span:nth-child(3) { bottom: 0; }
/* Morph to an X when the drawer is open */
body.mobile-nav-open .nav-toggle-bars span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.mobile-nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
body.mobile-nav-open .nav-toggle-bars span:nth-child(3) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }

.mobile-nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(42, 58, 45, 0.34);
  opacity: 0; transition: opacity 0.26s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
body.mobile-nav-open .mobile-nav-backdrop { opacity: 1; }

.mobile-nav {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(82vw, 320px); height: 100%;
  background: var(--white);
  border-left: 0.5px solid var(--border);
  box-shadow: -18px 0 48px -22px rgba(42, 58, 45, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 16px 18px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
body.mobile-nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 0.5px solid var(--border-soft); }
.mobile-nav-title { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--warm-gray); }
.mobile-nav-close { background: transparent; border: 0; font-size: 28px; line-height: 1; color: var(--cocoa-soft); cursor: pointer; padding: 0 4px; }
.mobile-nav-close:hover { color: var(--editorial-red); }
.mobile-nav-links { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-link {
  display: block; padding: 14px 10px;
  font-size: 17px; font-weight: 500; color: var(--cocoa);
  border-radius: 10px;
  border-bottom: 0.5px solid var(--border-soft);
}
.mobile-nav-link:last-child { border-bottom: 0; }
.mobile-nav-link:hover, .mobile-nav-link:focus { background: var(--cream-warm); color: var(--editorial-red); }
.mobile-nav-link.active { color: var(--editorial-red); font-weight: 600; }
/* The Portrait pill + CTA read as buttons inside the drawer */
.mobile-nav-cta,
.mobile-nav-link[href$="/you/patterns/"] {
  margin-top: 12px; text-align: center;
  background: var(--editorial-red); color: var(--cream) !important;
  border: 0; border-radius: 999px; padding: 14px 18px; font-weight: 600;
}
.mobile-nav-cta:hover,
.mobile-nav-link[href$="/you/patterns/"]:hover { background: var(--editorial-red-deep); color: var(--cream) !important; }
body.mobile-nav-open { overflow: hidden; }

/* ========== MOBILE: test question layout (no horizontal scroll, less bloat) ========== */
@media (max-width: 720px) {
  /* Tighten the runner so a phone shows one screen, not a sideways-scrolling card */
  body.test-page .container,
  body.test-page main.container { padding-left: 14px; padding-right: 14px; }
  body.test-page .question-card {
    padding: 20px 16px 22px;
    margin: 16px auto 40px;
    border-radius: 14px;
    min-height: 0;            /* was 640px — forced needless vertical scrolling */
  }
  body.test-page .question-statement { font-size: 20px; margin-bottom: 20px; line-height: 1.3; }
  body.test-page .q-option { padding: 14px 16px; font-size: 15px; }
  /* Kill horizontal overflow on multi-column answer patterns */
  .q-twoaxis .axis-1 .axis-row,
  .q-twoaxis .axis-2 .axis-row { flex-direction: column; gap: 8px; }
  .q-twoaxis .axis-1 .q-option,
  .q-twoaxis .axis-2 .q-option { min-width: 0; width: 100%; padding: 12px 16px; font-size: 15px; }
  .mc-row-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-row-options .q-option { min-width: 0; }
  .q-gradient-endpoints { grid-template-columns: 1fr; }
}
/* Belt-and-suspenders: nothing should push the viewport sideways on a phone */
@media (max-width: 720px) {
  html, body { max-width: 100%; overflow-x: hidden; }
}

/* IMPORTANT: this must be the LAST .nav-toggle display rule in the file.
   The base `.nav-toggle { display: none }` block above appears AFTER the
   earlier @media show-rule, and (media queries add no specificity) source
   order would otherwise keep the hamburger hidden on mobile. Re-assert here. */
@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
