/* ─────────────────────────────────────────
   GOOGLE FONTS
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500&display=swap');

/* ─────────────────────────────────────────
   DESIGN SYSTEM VARIABLES
───────────────────────────────────────── */
:root {
  --navy:      #07111C;   /* unified page canvas */
  --navy-mid:  #0D1E2E;   /* raised panels */
  --navy-card: #0D1E2E;   /* cards — same as raised */
  --gold:      #C9A84C;
  --gold-dim:  rgba(201,168,76,0.08);
  --gold-line: rgba(201,168,76,0.20);
  --white:     #EDE8DF;   /* unified cream */
  --muted:     #8A877F;
  --border:    #1A2A3A;
  --green:     #2ECC8E;
  --amber:     #E8A838;
  --red:       #E05252;
  --serif:     'Playfair Display', Georgia, serif;
  --mono:      'DM Mono', monospace;
  --body:      'DM Sans', system-ui, sans-serif;
  /* Aliases for shared components from style.css */
  --bg:        #07111C;
  --bg-dark:   #040C14;
  --cream:     #EDE8DF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono:  'DM Mono', monospace;
  --font-body:  'DM Sans', system-ui, sans-serif;
}

/* ─────────────────────────────────────────
   GLOBAL RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

p, h1, h2, h3 {
  margin: 0;
}

/* ─────────────────────────────────────────
   BETA BANNER
───────────────────────────────────────── */
.beta-banner {
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 10px 24px;
  text-align: center;
}
.beta-banner-text {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #8A877F;
  margin: 0;
}
.beta-tag {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.16em;
  padding: 2px 8px;
  margin-right: 10px;
  vertical-align: middle;
}
.beta-banner-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  margin-left: 10px;
}

/* ─────────────────────────────────────────
   SITE NAV — consistent with main site
───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  height: 60px;
  background: rgba(13,27,42,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26,42,58,0.7);
  z-index: 100;
  transition: background 300ms;
}
.site-nav.scrolled {
  background: rgba(8,16,26,0.97);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-wordmark {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
  transition: opacity 250ms;
}
.nav-wordmark:hover { opacity: 0.7; }

/* ── Funnel header (score flow) ── */
.score-funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.score-funnel-wordmark {
  margin-right: auto;
}
.progress-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.3);
  position: relative;
  flex-shrink: 0;
}
.pd-dot--done {
  background: rgba(201,168,76,0.55);
  border-color: rgba(201,168,76,0.55);
}
.pd-dot--active {
  background: #C9A84C;
  border-color: #C9A84C;
  width: 10px;
  height: 10px;
}
.pd-label {
  display: none; /* screen-reader only — visible text hidden, aria-label on parent covers it */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 32px 0 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--body);
  font-size: 16px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms;
  white-space: nowrap;
}
.nav-links a:hover    { color: var(--white); }
.nav-links a.nav-active { color: var(--white); }
.nav-links a.nav-action { color: rgba(201,168,76,0.85); }
.nav-links a.nav-action:hover  { color: var(--gold); }
.nav-sep {
  list-style: none;
  width: 1px;
  height: 14px;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}
.nav-cta {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--navy);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 9px 20px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 200ms, border-color 200ms;
}
.nav-cta:hover { background: #AD8930; border-color: #AD8930; }
.nav-cta-short { display: none; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  margin-left: 8px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 280ms cubic-bezier(0.4,0,0.2,1), opacity 200ms, width 280ms;
  transform-origin: center;
}
.nav-hamburger span:nth-child(1) { width: 20px; }
.nav-hamburger span:nth-child(2) { width: 13px; }
.nav-hamburger span:nth-child(3) { width: 20px; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 20px; }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 20px; }
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(5,10,18,0.99);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 240ms cubic-bezier(0.4,0,0.2,1), transform 240ms cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.nav-mobile-overlay.open { display: block; opacity: 1; transform: translateY(0); pointer-events: all; }
.nav-mobile-inner { border-top: 1px solid var(--border); padding: 4px 0 48px; }
.nav-mobile-link {
  display: block;
  font-family: var(--body);
  font-size: 18px;
  color: #8A877F;
  text-decoration: none;
  padding: 15px 32px;
  border-bottom: 1px solid var(--border);
  transition: color 150ms, background 150ms;
}
.nav-mobile-link:hover, .nav-mobile-link.nav-active { color: var(--white); background: rgba(201,168,76,0.04); }
.nav-mobile-link.nav-mobile-action { color: var(--gold); }
.nav-mobile-cta {
  display: block;
  margin: 28px 32px 0;
  text-align: center;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 8px;
  padding: 17px 24px;
  text-decoration: none;
  transition: background 200ms;
}
.nav-mobile-cta:hover { background: #AD8930; }
@media (max-width: 900px) { .nav-links { gap: 20px; } }
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 420px) { .nav-inner { padding: 0 20px; } }

/* ─────────────────────────────────────────
   LAYOUT UTILITY
───────────────────────────────────────── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hidden {
  display: none !important;
}

/* ─────────────────────────────────────────
   SCREEN 1 — HEADER
───────────────────────────────────────── */
.overline {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#ctx-screen h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 8px;
}

.subtext {
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ─────────────────────────────────────────
   SCREEN 1 — QUESTIONS
───────────────────────────────────────── */
.question-block {
  margin-bottom: 28px;
}

.q-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.q-hint {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   OPTION GRIDS
───────────────────────────────────────── */
.option-grid {
  display: grid;
  gap: 6px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ─────────────────────────────────────────
   OPTION CARDS
───────────────────────────────────────── */
.option-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 120ms;
  user-select: none;
}

.option-card:hover {
  border-color: rgba(201,168,76,0.4);
}

.option-card:active {
  transform: scale(0.98);
}

.option-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.option-card.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.option-title {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  display: block;
}

/* ─────────────────────────────────────────
   SIGNAL BLOCK INPUT
───────────────────────────────────────── */
.signal-block {
  margin-bottom: 20px;
}

.code-container {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.code-header {
  background: rgba(0,0,0,0.2);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

#sig-textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 16px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--white);
  line-height: 1.8;
  resize: vertical;
  min-height: 140px;
  display: block;
}

#sig-textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

/* ─────────────────────────────────────────
   ERROR MESSAGE
───────────────────────────────────────── */
.err-msg {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--red);
  display: none;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(224,82,82,0.08);
  border-left: 2px solid var(--red);
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

/* ── Empty signal error panel ── */
.empty-signal-error { font-family: var(--body); font-size: 15px; }
.ese-headline {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #E05252;
  margin: 0 0 10px;
}
.ese-body {
  color: #BDB8AE;
  line-height: 1.65;
  margin: 0 0 14px;
  font-size: 14px;
}
.ese-steps-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin: 0 0 8px;
}
.ese-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ese-steps li {
  color: #8A877F;
  line-height: 1.5;
  font-size: 13px;
}
.ese-steps code {
  font-family: var(--mono);
  font-size: 11px;
  color: #C9A84C;
  background: rgba(201,168,76,0.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.ese-retry-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D1B2A;
  background: #C9A84C;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 180ms;
}
.ese-retry-btn:hover { background: #b5862d; }

/* ─────────────────────────────────────────
   SUBMIT BUTTON
───────────────────────────────────────── */
#submit-btn {
  width: 100%;
  height: 52px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 200ms, transform 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#submit-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-2px);
}

#submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

#submit-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#submit-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #3A3020;
  color: rgba(201,168,76,0.35);
  border-color: rgba(201,168,76,0.1);
  transform: none;
}

/* Loading pulse dot (button) */
.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 600ms ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50%       { opacity: 1;   transform: scale(1);    }
}

/* ─────────────────────────────────────────
   FULL-PAGE LOADING OVERLAY
───────────────────────────────────────── */
#loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

#loading-overlay.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: blink 1.4s ease-in-out infinite;
}

.loading-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin-top: -18px;
}

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* Shake animation on validation fail */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-4px); }
  40%     { transform: translateX(4px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}

.shake {
  animation: shake 200ms ease-in-out;
}

/* ─────────────────────────────────────────
   PRIVACY NOTE
───────────────────────────────────────── */
.privacy-note {
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   SCREEN TRANSITIONS
───────────────────────────────────────── */
#ctx-screen, #report-screen {
  transition: opacity 300ms ease;
}

#report-screen {
  opacity: 0;
}

#report-screen.visible {
  opacity: 1;
}

/* ─────────────────────────────────────────
   REPORT SCREEN — SHARED
───────────────────────────────────────── */
#report-screen section {
  margin-bottom: 28px;
}

/* Staggered section reveal — each section fades up after report becomes visible */
#report-screen.stagger-reveal section {
  opacity: 0;
  transform: translateY(12px);
  animation: reportSectionIn 380ms ease-out forwards;
}
#report-screen.stagger-reveal section:nth-child(1)  { animation-delay: 80ms; }
#report-screen.stagger-reveal section:nth-child(2)  { animation-delay: 160ms; }
#report-screen.stagger-reveal section:nth-child(3)  { animation-delay: 240ms; }
#report-screen.stagger-reveal section:nth-child(4)  { animation-delay: 320ms; }
#report-screen.stagger-reveal section:nth-child(5)  { animation-delay: 400ms; }
#report-screen.stagger-reveal section:nth-child(6)  { animation-delay: 480ms; }
#report-screen.stagger-reveal section:nth-child(7)  { animation-delay: 540ms; }
#report-screen.stagger-reveal section:nth-child(n+8) { animation-delay: 600ms; }

@keyframes reportSectionIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #report-screen.stagger-reveal section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.gold-rule {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.30);
  margin: 28px 0;
}

/* ─────────────────────────────────────────
   TOP DRAG HERO CARD
───────────────────────────────────────── */
.top-drag-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.07) 0%, rgba(201,168,76,0.03) 100%);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.top-drag-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}
.top-drag-eyebrow {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.top-drag-name {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}
.top-drag-snippet {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 600px;
}
.top-drag-example {
  background: rgba(7,17,28,0.5);
  border-left: 3px solid rgba(201,168,76,0.4);
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.top-drag-example-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin: 0 0 8px;
}
.top-drag-example-text {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(237,232,223,0.75);
  margin: 0;
}
.top-drag-cta-hint {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

/* ─────────────────────────────────────────
   SECTION A — DOLLAR COST
───────────────────────────────────────── */
.dollar-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 64px);
  color: var(--gold);
  line-height: 1.0;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.dollar-statement {
  font-family: var(--body);
  font-size: 17px;
  color: var(--white);
  line-height: 1.75;
  margin-bottom: 20px;
}

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--navy-mid);
  border-radius: 10px;
  padding: 12px 14px;
}

.stat-value {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
}

/* ─────────────────────────────────────────
   SECTION B — STI SCORE
───────────────────────────────────────── */
.score-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.score-number {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 72px);
  color: var(--white);
  line-height: 1.1;
}

.score-denom {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
}

.tier-badge {
  font-family: var(--mono);
  font-size: 16px;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-top: 6px;
  margin-bottom: 12px;
}

.tier-badge.green  { background: rgba(46,204,142,0.15); color: var(--green); }
.tier-badge.amber  { background: rgba(232,168,56,0.15);  color: var(--amber); }
.tier-badge.red    { background: rgba(224,82,82,0.15);   color: var(--red);   }

/* ── SCORE TYPE BADGE ── */
.score-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.score-type-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.score-type-badge--ai {
  background: rgba(46,204,142,0.10);
  color: var(--green);
  border: 1px solid rgba(46,204,142,0.20);
}
.score-type-badge--sa {
  background: rgba(232,168,56,0.10);
  color: var(--amber);
  border: 1px solid rgba(232,168,56,0.22);
}

.benchmark-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   RETURNING EXEC BANNER
───────────────────────────────────────── */
.returning-exec-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(46,204,142,0.06);
  border: 1px solid rgba(46,204,142,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.returning-exec-icon {
  font-size: 20px;
  color: var(--green);
  flex-shrink: 0;
}
.returning-exec-text {
  flex: 1;
}
.returning-exec-headline {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 2px;
}
.returning-exec-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.returning-exec-cta {
  font-family: var(--body);
  font-size: 16px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(46,204,142,0.3);
}
.returning-exec-cta:hover { border-bottom-color: var(--green); }

/* ─────────────────────────────────────────
   PERCEPTION GAP — DASHBOARD NUDGE
───────────────────────────────────────── */
.pg-dashboard-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 8px;
}
.pg-dashboard-nudge-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}
.pg-dashboard-nudge-btn {
  font-family: var(--body);
  font-size: 16px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}
.pg-dashboard-nudge-btn:hover { border-bottom-color: var(--gold); }

/* ─────────────────────────────────────────
   SECTION C — PRECISION NOTE
───────────────────────────────────────── */
.precision-box {
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 14px 16px;
}

.precision-box p {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

/* ─────────────────────────────────────────
   SECTION D — PILLAR BREAKDOWN
───────────────────────────────────────── */
.pillar-calibration-note {
  border-left: 2px solid rgba(201,168,76,0.25);
  padding: 10px 0 10px 16px;
  margin-bottom: 22px;
}
.pcn-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 7px;
}
.pcn-body {
  font-family: var(--body);
  font-size: 16px;
  color: #8A877F;
  line-height: 1.8;
}
.pcn-body strong { color: #ADA9A2; }

.pillar-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.pillar-name {
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  min-width: 190px;
  flex-shrink: 0;
}

.pillar-bar-track {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 350ms ease-out;
}

.pillar-bar-fill.green { background: var(--green); }
.pillar-bar-fill.amber { background: var(--amber); }
.pillar-bar-fill.red   { background: var(--red);   }

.pillar-badge {
  font-family: var(--mono);
  font-size: 16px;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pillar-badge.green { background: rgba(46,204,142,0.15);  color: var(--green); }
.pillar-badge.amber { background: rgba(232,168,56,0.15);   color: var(--amber); }
.pillar-badge.red   { background: rgba(224,82,82,0.15);    color: var(--red);   }

/* ── Pillar dominant row ── */
.pillar-rank {
  font-family: var(--mono);
  font-size: 16px;
  color: #7F7B74;
  min-width: 24px;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.pillar-row--dominant .pillar-rank {
  color: #C9A84C;
  font-weight: 600;
}

.pillar-row--dominant {
  background: rgba(201,168,76,0.04);
  border-bottom-color: rgba(201,168,76,0.25);
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 -10px;
  border-radius: 8px;
}
.pillar-row--dominant .pillar-name { color: #C9A84C; }

.pillar-dominant-tag {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9A84C;
  border: 1px solid rgba(201,168,76,0.3);
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.pillar-score-num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--white);
  min-width: 24px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Section H+: 90-day focus ── */
.focus-pillar-card {
  border: 1px solid rgba(201,168,76,0.25);
  background: #080F18;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}
.focus-pillar-header {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.focus-pillar-score-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.focus-pillar-score {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 72px);
  color: #4CAF82;
  line-height: 1;
  letter-spacing: -1px;
}
.focus-pillar-score.green { color: #4CAF82; }
.focus-pillar-score.amber { color: #E8A838; }
.focus-pillar-score.red   { color: #E05252; }
.focus-pillar-denom {
  font-family: var(--mono);
  font-size: 16px;
  color: #4A4640;
  padding-bottom: 10px;
}
.focus-pillar-meta { display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; }
.focus-pillar-code {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A84C;
}
.focus-pillar-fullname {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #F0EDE6;
  line-height: 1.2;
}
.focus-pillar-tagline {
  font-family: var(--body);
  font-size: 16px;
  color: #8A877F;
  line-height: 1.75;
  margin-bottom: 24px;
}
/* ── Behavioral contract (SBI) ── */
.focus-contract {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 28px;
}
.focus-contract-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
  margin-bottom: 14px;
}
.focus-contract-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.focus-contract-row:last-child { border-bottom: none; }
.focus-contract-verb {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 72px;
  padding-top: 4px;
}
.focus-contract-verb.stop    { color: #E05252; }
.focus-contract-verb.start   { color: #2ECC8E; }
.focus-contract-verb.because { color: rgba(201,168,76,0.7); }
.focus-contract-text {
  font-family: var(--body);
  font-size: 16px;
  color: #D8D4CC;
  line-height: 1.65;
}

.focus-section-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6E6A62;
  margin-bottom: 14px;
}
.focus-tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: tip;
}
.focus-tips-list li {
  font-family: var(--body);
  font-size: 16px;
  color: #C8C4BC;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid #0F2035;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  counter-increment: tip;
}
.focus-tips-list li::before {
  content: counter(tip, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 16px;
  color: #C9A84C;
  flex-shrink: 0;
  padding-top: 3px;
  opacity: 0.7;
}
.focus-citation {
  border-left: 2px solid rgba(201,168,76,0.2);
  padding: 10px 0 10px 18px;
  font-family: var(--body);
  font-size: 16px;
  font-style: italic;
  color: #5A5650;
  line-height: 1.85;
  margin: 0;
}

/* ── Focus book strip ── */
.focus-book-strip {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid #1A2A3A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.focus-book-overline {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C9A84C;
  margin-bottom: 6px;
}
.focus-book-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: #F0EDE6;
  margin-bottom: 6px;
  line-height: 1.3;
}
.focus-book-body {
  font-family: var(--body);
  font-size: 16px;
  color: #6E6A62;
  line-height: 1.7;
  max-width: 440px;
}
.focus-book-btn {
  display: inline-block;
  background: #C9A84C;
  color: #0D1B2A;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 200ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.focus-book-btn:hover { opacity: 0.85; }

/* ─────────────────────────────────────────
   SECTION E — CO-OCCURRENCE PATTERNS
───────────────────────────────────────── */
.no-patterns-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.pattern-card {
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 8px;
}

.pattern-card.hostage {
  background: rgba(224,82,82,0.06);
  border: 1px solid rgba(224,82,82,0.2);
}

.pattern-card.visibility,
.pattern-card.anxiety {
  background: rgba(232,168,56,0.05);
  border: 1px solid rgba(232,168,56,0.2);
}

/* Pattern score banner — injected above score when co-occurrence fires */
.pattern-score-banner {
  background: rgba(224,82,82,0.06);
  border: 1px solid rgba(224,82,82,0.2);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.pattern-score-banner-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224,82,82,0.7);
  margin-bottom: 8px;
}
.pattern-score-banner-headline {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 6px;
}
.pattern-score-banner-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.pattern-score-banner-context {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(224,82,82,0.55);
  line-height: 1.6;
  margin: 0;
  border-top: 1px solid rgba(224,82,82,0.12);
  padding-top: 10px;
}

.pattern-headline {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 6px;
}

.pattern-subhead {
  font-family: var(--body);
  font-size: 16px;
  color: rgba(245,240,232,0.75);
  line-height: 1.65;
  margin-bottom: 10px;
}

.pattern-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.pattern-cost {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--red);
  margin-top: 8px;
}

/* ─────────────────────────────────────────
   SECTION F — CONTEXT CARDS
───────────────────────────────────────── */
.context-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.context-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}

.context-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--amber);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.context-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   SECTION G — INSIGHT BODY
───────────────────────────────────────── */
.insight-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 24px;
}

/* <strong> tags in insight render as white, not bold */
.insight-body strong {
  color: var(--white);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   SECTION H — RULE BOX
───────────────────────────────────────── */
.rule-box {
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 10px;
}

.rule-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.rule-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--white);
  line-height: 1.55;
}

.rule-note {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ─────────────────────────────────────────
   RULE LOCK-IN
───────────────────────────────────────── */
.rule-lock {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: rgba(201,168,76,0.04);
  animation: fadeUp 300ms ease both;
}
.rule-lock-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin: 0 0 6px;
}
.rule-lock-hint {
  font-family: var(--body, 'DM Sans', system-ui, sans-serif);
  font-size: 16px;
  color: rgba(245,240,232,0.4);
  line-height: 1.6;
  margin: 0 0 12px;
}
.rule-lock-input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gold-line);
  padding: 6px 0 8px;
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: border-color 160ms;
}
.rule-lock-input:focus { border-bottom-color: var(--gold); }
.rule-lock-btn {
  margin-top: 14px;
  padding: 11px 24px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 180ms;
}
.rule-lock-btn:hover { opacity: 0.82; }
.rule-lock-btn:disabled { opacity: 0.25; cursor: not-allowed; background: #2A2010; color: rgba(201,168,76,0.3); }
.rule-lock-saved {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #27AE60;
  margin: 12px 0 0;
}

/* ─────────────────────────────────────────
   SECTION I — DRILL DOWN PROMPT
───────────────────────────────────────── */
.drill-box {
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  overflow: hidden;
}

.drill-intro {
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  line-height: 1.75;
  padding: 20px 20px 0;
  margin: 0;
}

.drill-prompt-wrap {
  margin: 16px 20px 0;
  border: 1px solid var(--border-2, #1A2A3A);
  border-radius: 3px;
  overflow: hidden;
}

.drill-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0A1825;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-2, #1A2A3A);
  gap: 12px;
}

.drill-prompt-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.drill-copy-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-line);
  border-radius: 2px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms, color 150ms;
}

.drill-copy-btn:hover {
  background: var(--gold);
  color: #0D1B2A;
}

.drill-prompt-text {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.8;
  padding: 16px;
  margin: 0;
  background: #060F18;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 340px;
  overflow-y: auto;
}

.drill-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px 20px;
  flex-wrap: wrap;
}

.drill-open-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #0D1B2A;
  background: var(--gold);
  padding: 10px 18px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 150ms;
}

.drill-open-btn:hover { opacity: 0.88; }

.drill-privacy {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 560px) {
  .drill-prompt-header { flex-direction: column; align-items: flex-start; }
  .drill-actions { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────
   SECTION J — WHAT COMES NEXT
───────────────────────────────────────── */
.next-intro {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin: 6px 0 24px;
}

.next-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.12);
  margin-bottom: 20px;
}

.next-card {
  background: var(--navy);
  padding: 20px 22px 24px;
}

.next-card-day {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.next-card-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6E6A62;
  margin: 0 0 10px;
}

.next-card-body {
  font-family: var(--mono);
  font-size: 16px;
  color: #9A9285;
  line-height: 1.75;
  margin: 0;
}

.next-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: #4A4740;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 620px) {
  .next-cards { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   START OVER LINK
───────────────────────────────────────── */
#start-over {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
  display: block;
  margin-top: 16px;
  margin-bottom: 40px;
}

#start-over:hover {
  color: var(--white);
}

/* ─────────────────────────────────────────
   REPORT DISCLAIMER
───────────────────────────────────────── */
/* Score-to-book handoff strip — fully native to score page */
.report-book-strip {
  background: transparent;
  border-top: 1px solid #1A2A3A;
  border-bottom: none;
  padding: 48px 0 0;
  margin: 48px 0 0;
}
.report-book-strip .book-strip-inner {
  max-width: 100%;
  gap: 40px;
}
.report-book-strip .book-strip-overline {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9A84C;
  margin: 0 0 10px;
}
.report-book-strip .book-strip-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #EDE8DF;
  line-height: 1.25;
  margin: 0 0 12px;
}
.report-book-strip .book-strip-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #8A877F;
  margin: 0;
}
.report-book-strip .book-capture-input {
  background: #0D1E2E;
  border: 1px solid #1A2A3A;
  border-radius: 8px;
  color: #EDE8DF;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 17px;
  height: 48px;
  padding: 0 16px;
}
.report-book-strip .book-capture-input::placeholder { color: #4A5868; }
.report-book-strip .book-capture-input:focus { outline: none; border-color: #C9A84C; }
.report-book-strip .book-capture-btn {
  display: inline-block;
  width: auto;
  background: #C9A84C;
  color: #07111C;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 8px;
  height: 48px;
  line-height: 48px;
  padding: 0 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 180ms;
}
.report-book-strip .book-capture-btn:hover { opacity: 0.85; }
.report-book-strip .book-strip-meta {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: #4A5868;
  margin: 10px 0 0;
  opacity: 1;
}

/* ─────────────────────────────────────────
   ENTERPRISE CONNECT SECTION
───────────────────────────────────────── */
#sec-enterprise-connect {
  margin: 0;
  padding: 40px 0 0;
}
.ec-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: rgba(13,27,42,0.6);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  padding: 36px 36px 36px 36px;
}
@media (max-width: 680px) {
  .ec-card { grid-template-columns: 1fr; padding: 24px; gap: 28px; }
}
.ec-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin: 0 0 12px;
}
.ec-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  color: #E8E0D0;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 400;
}
.ec-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #8A877F;
  line-height: 1.7;
  margin: 0 0 18px;
}
.ec-proof {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ec-proof li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #6A6760;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.ec-proof li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: rgba(201,168,76,0.5);
  font-size: 11px;
  top: 2px;
}
.ec-form-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin: 0 0 14px;
}
.ec-input {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 11px 14px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #E8E0D0;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: border-color 180ms;
}
.ec-input::placeholder { color: rgba(138,135,127,0.5); }
.ec-input:focus { outline: none; border-color: rgba(201,168,76,0.4); }
.ec-platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.ec-platform-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: #8A877F;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms;
  text-align: left;
}
.ec-platform-btn:hover { background: rgba(255,255,255,0.08); color: #E8E0D0; }
.ec-platform-btn--selected {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.5);
  color: #E8E0D0;
}
.ec-submit-btn {
  width: 100%;
  background: #C9A84C;
  border: none;
  border-radius: 8px;
  padding: 13px 20px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0D1B2A;
  cursor: pointer;
  transition: background 180ms;
  margin-top: 4px;
}
.ec-submit-btn:hover { background: #b5862d; }
.ec-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ec-disclaimer {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: #5A5550;
  line-height: 1.5;
  margin: 10px 0 0;
  text-align: center;
}
.ec-err {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: #E05252;
  margin: 6px 0 0;
}
.ec-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(46,204,142,0.15);
  border: 1px solid rgba(46,204,142,0.4);
  color: #2ECC8E;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ec-success-headline {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #E8E0D0;
  margin: 0 0 10px;
}
.ec-success-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  color: #8A877F;
  line-height: 1.65;
  margin: 0 0 14px;
}
.ec-security-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(201,168,76,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}
.ec-security-link:hover { color: #C9A84C; border-color: rgba(201,168,76,0.6); }

.report-disclaimer {
  margin: 48px 0 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.report-disclaimer p {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--ink);
  line-height: 1.8;
}
.report-disclaimer a {
  color: rgba(201,168,76,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.report-disclaimer a:hover {
  color: #C9A84C;
  border-color: rgba(201,168,76,0.6);
}

/* ─────────────────────────────────────────
   SCORE PAGE FOOTER
───────────────────────────────────────── */
.score-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  text-align: center;
}
.score-footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.score-footer p {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.7;
}
.score-footer-links a {
  color: rgba(201,168,76,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.score-footer-links a:hover { color: #C9A84C; border-color: rgba(201,168,76,0.6); }

/* ─────────────────────────────────────────
   COMPONENT 1 — PERCEPTION GAP
───────────────────────────────────────── */
#sec-perception-gap {
  margin: 32px 0 0;
  padding: 24px 24px 20px;
  border: 1px solid var(--gold-line);
  background: rgba(201,168,76,0.03);
  border-radius: 4px;
}

.pg-context {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 10px;
}

.pg-context strong {
  color: var(--white);
  font-weight: 500;
}

.pg-question-text {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--white);
  line-height: 1.5;
  margin: 0 0 20px;
  font-style: italic;
}

.pg-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pg-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 2px;
  border: 1px solid;
  cursor: pointer;
  transition: opacity 200ms, transform 200ms;
  background: transparent;
}

.pg-btn:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.pg-btn--right {
  color: var(--gold);
  border-color: var(--gold-line);
}

.pg-btn--off {
  color: var(--white);
  border-color: var(--border);
}

.pg-confirmation-text {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.pg-debrief-copy {
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
  margin: 0 0 14px;
}

.pg-debrief-cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 10px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 200ms;
}

.pg-debrief-cta:hover { opacity: 0.85; }

.pg-share-box {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.pg-share-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  line-height: 1.65;
  margin: 0 0 14px;
  white-space: pre-wrap;
}

.pg-share-copy-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: none;
  padding: 9px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 200ms;
}

.pg-share-copy-btn:hover { opacity: 0.85; }

.pg-share-muted {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  opacity: 0.6;
  margin: 0;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   COMPONENT 2 — PERCEIVED PILLAR (return visit)
───────────────────────────────────────── */
.pp-container {
  padding: 24px 0 20px;
}

.pp-question {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--white);
  line-height: 1.5;
  margin: 8px 0 20px;
  font-style: italic;
}

.pp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.pp-btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 200ms, color 200ms, transform 200ms;
}

.pp-btn:hover {
  border-color: var(--gold-line);
  color: var(--gold);
  transform: translateY(-1px);
}

.pp-confirmation-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  line-height: 1.65;
  margin: 0 0 16px;
}

/* ─────────────────────────────────────────
   RESPONSIVE — MOBILE (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {

  /* Layout */
  .container {
    padding: 24px 16px;
  }

  /* Screen 1 — header */
  #ctx-screen h1 {
    font-size: 26px;
  }

  /* Screen 1 — option grids:
     role (grid-2) stays 2 columns — fits fine
     size (grid-2) stays 2 columns — fits fine
     years (grid-3) → single column */
  #q-years .option-grid {
    grid-template-columns: 1fr;
  }

  /* Screen 2 — dollar section */
  .dollar-amount {
    font-size: 44px;
  }

  .stat-cards {
    grid-template-columns: 1fr;
  }

  /* Screen 2 — score section */
  .score-number {
    font-size: 52px;
  }

  /* Screen 2 — pillar rows */
  .pillar-name {
    min-width: 150px;
    font-size: 16px;
  }

  /* Screen 2 — context cards */
  .context-cards {
    grid-template-columns: 1fr;
  }

}

/* ─────────────────────────────────────
   SOCIAL PROOF BAR (intake)
───────────────────────────────────────── */
.social-proof-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 24px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sp-stat {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sp-divider {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--border-2);
}

/* ─────────────────────────────────────
   PROGRESS BAR (intake)
───────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin-bottom: 36px;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 1px;
  transition: width 300ms ease;
  width: 0%;
}

/* ─────────────────────────────────────
   QUESTION NUMBER (intake)
───────────────────────────────────────── */
.q-num {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  opacity: 0.7;
}

/* ─────────────────────────────────────
   EMAIL GATE OVERLAY
───────────────────────────────────────── */
#email-gate {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

#email-gate.active {
  display: flex;
}

.gate-inner {
  width: 100%;
  max-width: 460px;
  text-align: center;
}

.gate-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
  margin: 12px 0 10px;
  line-height: 1.2;
}

.gate-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

#email-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--white);
  font-size: 17px;
  font-family: var(--body);
  outline: none;
  text-align: center;
  transition: border-color 200ms;
}

#email-input:focus {
  border-color: var(--gold);
}

#email-input::placeholder {
  color: var(--muted);
}

#email-submit-btn {
  width: 100%;
  height: 50px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 200ms, transform 200ms;
}

#email-submit-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

#email-err {
  margin-top: 4px;
  margin-bottom: 0;
}

/* Skip-to-main link — visually hidden, appears on keyboard focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 0 0 6px 6px;
  transition: top 200ms;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}

/* ─────────────────────────────────────
   EMAIL GATE — SOCIAL LOGIN BUTTONS
───────────────────────────────────────── */
.gate-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  background: #0F2035;
  border: 1px solid #1A2A3A;
  border-radius: 4px;
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
}

.social-btn:hover {
  border-color: rgba(201,168,76,0.4);
  background: #132333;
}

.social-btn--apple {
  background: #1a1a1a;
  border-color: #2a2a2a;
}
.social-btn--apple:hover {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gate-divider::before,
.gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────
   EMAIL GATE — INBOX STATE
───────────────────────────────────────── */
.gate-inbox-icon {
  font-size: 40px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.gate-inbox-note {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
}

.gate-retry-link {
  color: var(--gold);
  cursor: pointer;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  text-decoration: none;
}

.gate-retry-link:hover {
  color: var(--white);
}

/* ─────────────────────────────────────
   SAVED BANNER (report screen)
───────────────────────────────────────── */
.saved-banner {
  margin: 0 0 32px;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
  border-radius: 8px;
  padding: 18px 22px;
  animation: fadeIn 300ms ease;
}
.saved-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.saved-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.saved-banner-check {
  font-size: 18px;
  color: #27AE60;
  flex-shrink: 0;
}
.saved-banner-headline {
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  color: #EDE8DF;
  margin: 0 0 3px;
  line-height: 1.3;
}
.saved-banner-sub {
  font-family: var(--mono);
  font-size: 16px;
  color: #8A877F;
  margin: 0;
  letter-spacing: 0.02em;
}
.saved-banner-cta {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: #EDE8DF;
  background: rgba(39,174,96,0.15);
  border: 1px solid rgba(39,174,96,0.4);
  border-radius: 6px;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms, border-color 150ms;
  flex-shrink: 0;
}
.saved-banner-cta:hover {
  background: rgba(39,174,96,0.25);
  border-color: rgba(39,174,96,0.6);
}
.cost-calc-basis {
  font-family: var(--mono);
  font-size: 16px;
  color: #6A6760;
  letter-spacing: 0.03em;
  margin: 6px 0 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   FULL DOLLAR STACK (Wave 1b)
───────────────────────────────────────── */
.dollar-stack {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 24px 0;
}

.dollar-stack-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.dollar-stack-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dollar-stack-table tr:last-child {
  border-bottom: none;
}

.ds-label {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  width: 65%;
}

.ds-note {
  font-size: 12px;
  opacity: 0.6;
}

.ds-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--white);
  text-align: right;
  padding: 10px 0;
  white-space: nowrap;
}

.ds-total-row .ds-label,
.ds-total-row .ds-value {
  font-size: 15px;
  color: var(--gold);
  padding-top: 14px;
  padding-bottom: 14px;
}

.ds-unlock {
  color: rgba(46,204,142,0.9);
}

.gap-explanation {
  font-family: var(--body);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Save panel wrapper ── */
#save-panel {
  position: relative;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(13,27,42,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  margin-bottom: 32px;
  animation: saveSlideIn 320ms ease both;
}
@keyframes saveSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Dismiss button ── */
.save-dismiss {
  position: absolute;
  top: 14px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1;
  color: rgba(232,224,208,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 160ms, color 160ms;
  z-index: 2;
}
.save-dismiss:hover {
  background: rgba(255,255,255,0.11);
  color: rgba(232,224,208,0.9);
}

/* ── Inner grid: copy left, auth right ── */
.save-panel-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 22px 48px 24px 24px;
  align-items: start;
}
@media (max-width: 620px) {
  .save-panel-inner {
    grid-template-columns: 1fr;
    padding-right: 40px;
  }
}

/* ── Copy block ── */
.save-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  opacity: 0.75;
  margin-bottom: 6px;
  display: block;
}
.save-headline {
  font-family: 'DM Mono', monospace;
  font-size: 17px;
  color: #E8E0D0;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.3;
}
.save-subhead {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #8A877F;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 340px;
}
.save-sub {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #7A7570;
  line-height: 1.75;
  margin: 0;
  max-width: 340px;
}

/* ── Milestone track preview ── */
.save-track-preview {
  margin: 18px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.stp-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,42,58,0.8);
  position: relative;
}
.stp-row:last-child { border-bottom: none; }
.stp-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(201,168,76,0.05);
  color: #6E6A62;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.stp-dot--done {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.15);
  color: #C9A84C;
  font-size: 16px;
}
.stp-row--locked .stp-dot {
  opacity: 0.45;
}
.stp-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stp-day {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #E8E0D0;
  font-weight: 500;
}
.stp-row--done .stp-day { color: #C9A84C; }
.stp-row--locked .stp-day { color: #6E6A62; }
.stp-what {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11.5px;
  color: #8A877F;
  line-height: 1.4;
}
.stp-row--locked .stp-what { color: #4A4840; }

/* ── Weekly note ── */
.save-weekly-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(201,168,76,0.05);
  border-left: 2px solid rgba(201,168,76,0.3);
  margin: 6px 0 14px;
}
.swn-icon {
  color: #C9A84C;
  font-size: 8px;
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 0.7;
}
.save-weekly-note span:last-child {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11.5px;
  color: #8A877F;
  line-height: 1.5;
}

/* ── Value list ── */
.save-value-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
}
.save-value-list li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #8A877F;
  line-height: 1;
  padding: 9px 0;
  border-bottom: 1px solid #0F2035;
  display: flex;
  align-items: center;
  gap: 10px;
}
.save-value-list li::before {
  content: '\2713';
  color: #C9A84C;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ── Auth block ── */
.save-auth {
  min-width: 240px;
  max-width: 300px;
}
@media (max-width: 620px) {
  .save-auth { max-width: 100%; }
}

/* ── Social buttons — primary CTAs ── */
.save-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.save-social-btn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: #E8E0D0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 15px 18px;
  cursor: pointer;
  transition: background 180ms, border-color 200ms, box-shadow 200ms;
  text-align: left;
}
.save-social-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.12);
}
.save-social-btn--apple {
  background: rgba(255,255,255,0.05);
  color: #E8E0D0;
  border-color: rgba(255,255,255,0.12);
}
.save-social-btn--apple:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 1px rgba(201,168,76,0.12);
}
.save-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Email fallback — small, below social ── */
.save-email-fallback {
  text-align: center;
  margin-top: 10px;
}
.save-email-fallback-toggle {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.55;
  transition: opacity 150ms;
}
.save-email-fallback-toggle:hover { opacity: 1; }

/* ── Mini milestone rail (inside save panel) ── */
.save-track-rail {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 16px 0 14px;
}
.save-track-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}
.save-track-line {
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.18);
  margin-top: 14px;
  min-width: 12px;
}
.save-track-done .save-track-line { background: #C9A84C; }
.save-track-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  background: #0A1825;
  border: 1px solid rgba(201,168,76,0.2);
  color: #4A4640;
  letter-spacing: 0;
}
.save-track-done .save-track-dot {
  background: rgba(201,168,76,0.12);
  border-color: #C9A84C;
  color: #C9A84C;
}
.save-track-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: #4A4640;
  text-align: center;
  line-height: 1.4;
  text-transform: uppercase;
}
.save-track-lbl span {
  color: #6E6A62;
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.save-track-done .save-track-lbl { color: #C9A84C; }

/* ── Or divider ── */
.save-divider {
  position: relative;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #4A4740;
  margin: 10px 0 9px;
}
.save-divider::before,
.save-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 16px);
  height: 1px;
  background: rgba(201,168,76,0.1);
}
.save-divider::before { left: 0; }
.save-divider::after  { right: 0; }

/* ── Email row ── */
.save-email-row {
  display: flex;
  gap: 6px;
}
.save-email-input {
  flex: 1;
  min-width: 0;
  background: rgba(5,10,18,0.7);
  border: 1px solid rgba(201,168,76,0.18);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #E8E0D0;
  padding: 8px 12px;
  outline: none;
  transition: border-color 180ms;
}
.save-email-input::placeholder { color: #6E6A62; opacity: 0.7; }
.save-email-input:focus { border-color: rgba(201,168,76,0.5); }
.save-email-btn {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A1628;
  background: #C9A84C;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 180ms;
}
.save-email-btn:hover { background: #b5862d; }
.save-email-btn:disabled { opacity: 0.4; cursor: not-allowed; background: #2A2010; color: rgba(201,168,76,0.3); }

/* Error message */
.save-email-err {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #E05555;
  margin-top: 6px;
  min-height: 16px;
}

/* Inbox confirmation */
.save-inbox-msg {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #2A9A5B;
  padding: 8px 0 4px;
  margin: 0;
}
.save-retry {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #6E6A62;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms;
}
.save-retry:hover { color: #9A9285; }

/* Skip link */
.save-skip-line {
  margin-top: 10px;
  text-align: center;
}
.save-skip-link {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #3A3730;
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms;
  letter-spacing: 0.02em;
}
.save-skip-link:hover { color: #5A5550; }

/* ── Bottom reminder strip ── */
.save-reminder-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(201,168,76,0.1);
  flex-wrap: wrap;
}
.save-reminder-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: #6E6A62;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.save-reminder-row {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 220px;
}
.save-reminder-input {
  max-width: 220px;
}
@media (max-width: 520px) {
  .save-reminder-strip { flex-direction: column; align-items: flex-start; }
  .save-reminder-row { width: 100%; }
  .save-reminder-input { max-width: 100%; }
}

/* ── Fade-out animation (applied by JS on dismiss) ── */
.save-panel-hiding {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

/* ─────────────────────────────────────
   SCROLL OFFSET — compensate for sticky site-nav (60px)
   Applied to every section the report nav anchors point to.
───────────────────────────────────────── */
#sec-dollar,
#sec-score,
#sec-pillars,
#sec-patterns,
#sec-context,
#sec-insight,
#sec-track-gate {
  scroll-margin-top: 76px; /* 60px nav + 16px breathing room */
}

/* ─────────────────────────────────────
   REPORT NAV (F-pattern anchors)
───────────────────────────────────────── */
.report-nav {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.report-nav::-webkit-scrollbar { display: none; }

.report-nav a {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px 10px 0;
  margin-right: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 150ms, border-color 150ms;
}

.report-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ─────────────────────────────────────
   PULSE GAIN FRAME
───────────────────────────────────────── */
.pulse-gain-frame {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.05);
}
.pulse-gain-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
}
.pulse-gain-amount {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.pulse-gain-context {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(245,240,232,0.55);
  line-height: 1.6;
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   DOLLAR RECOVERY BOX
───────────────────────────────────────── */
.recovery-box {
  background: rgba(46, 204, 142, 0.05);
  border: 1px solid rgba(46, 204, 142, 0.18);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 4px;
}

.recovery-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 5px;
}

.recovery-text {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.recovery-text strong {
  color: var(--green);
  font-weight: 500;
}

/* ─────────────────────────────────────
   CONFIDENCE RANGE (score section)
───────────────────────────────────────── */
.confidence-range-label {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  margin: 2px 0 10px;
  display: block;
}

/* ─────────────────────────────────────
   TRAJECTORY BOX
───────────────────────────────────────── */
.trajectory-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--navy-card);
}

.trajectory-box p {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.trajectory-box.improving {
  border-color: rgba(46, 204, 142, 0.25);
}

.trajectory-box.improving p {
  color: var(--green);
}

.trajectory-box.deteriorating {
  border-color: rgba(224, 82, 82, 0.25);
}

.trajectory-box.deteriorating p {
  color: var(--red);
}


.top-pillar-display {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 12px 0 0;
}

.delta-display {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 6px 0 0;
}

.next-run-display {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  opacity: 0.6;
  margin: 6px 0 0;
}

/* ─────────────────────────────────────
   ORG SIGNAL BOX
───────────────────────────────────────── */
.org-signal-box {
  padding: 36px 40px;
  border: 1px solid var(--border);
  background: var(--navy-card);
  margin-top: 8px;
}

.org-signal-headline {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin: 12px 0 18px;
}

.org-signal-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 28px;
  max-width: 560px;
}

.org-signal-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.org-signal-cta-primary {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 13px 26px;
  text-decoration: none;
  transition: background 200ms;
}
.org-signal-cta-primary:hover { background: #b5862d; }

.org-signal-cta-secondary {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(196,147,63,0.35);
  padding-bottom: 2px;
  transition: border-color 200ms;
}
.org-signal-cta-secondary:hover { border-color: var(--gold); }

.org-signal-box--improving {
  background: transparent;
  border-color: rgba(46, 204, 142, 0.2);
}

.org-signal-improving-text {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--green);
  line-height: 1.7;
  margin: 0;
  padding: 20px 24px;
}

@media (max-width: 600px) {
  .org-signal-box { padding: 24px 20px; }
  .org-signal-headline { font-size: 22px; }
  .org-signal-ctas { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────
   STRESS CONTEXT BOX
───────────────────────────────────────── */
.stress-context-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-line);
}

.stress-context-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 6px;
}

.stress-context-body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ─────────────────────────────────────
   STRESS DESC INPUT (Q6)
───────────────────────────────────────── */
.stress-desc-input {
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cream);
  outline: none;
}

.stress-desc-input::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.stress-desc-input:focus {
  border-color: var(--gold-line);
}

/* ─────────────────────────────────────
   RESPONSIVE — new elements (≤ 768px)
───────────────────────────────────────── */
@media (max-width: 768px) {
  #q-recognition .option-grid,
  #q-challenged .option-grid {
    grid-template-columns: 1fr;
  }

  .gate-title {
    font-size: 22px;
  }

  .report-nav {
    gap: 0;
  }

  .recovery-box {
    padding: 12px 14px;
  }
}

/* ═══════════════════════════════════════════
   90-DAY MILESTONE TRACK
═══════════════════════════════════════════ */

/* ── Track headline ── */
.track-headline {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: #E8E0D0;
  font-weight: 500;
  margin: 6px 0 8px;
  line-height: 1.35;
}
.track-subtext {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #6E6A62;
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ── Milestone rail ── */
.milestone-rail {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}
.milestone-connector {
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.18);
  position: relative;
}
.milestone-connector::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: #C9A84C;
  transition: width 600ms ease;
}
.milestone-node.milestone-complete + .milestone-connector::after {
  width: 100%;
}

.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  cursor: default;
}
.node-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  border: 1.5px solid rgba(201,168,76,0.2);
  background: rgba(5,10,18,0.8);
  transition: border-color 300ms, background 300ms;
}
.node-label {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E6A62;
  transition: color 300ms;
}
.node-desc {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #4A4740;
  text-align: center;
  line-height: 1.4;
}

/* Complete state */
.milestone-node.milestone-complete .node-icon {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.12);
  color: #C9A84C;
}
.milestone-node.milestone-complete .node-label { color: #C9A84C; }
.milestone-node.milestone-complete .node-desc  { color: #9A9285; }

/* Active state */
.milestone-node.milestone-active .node-icon {
  border-color: #C9A84C;
  background: rgba(201,168,76,0.08);
  color: #E8E0D0;
  animation: nodePulse 2s ease-in-out infinite;
}
.milestone-node.milestone-active .node-label { color: #E8E0D0; }
.milestone-node.milestone-active .node-desc  { color: #C9A84C; }
@keyframes nodePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%      { box-shadow: 0 0 0 6px rgba(201,168,76,0.15); }
}

/* Flat / no movement state */
.milestone-node.milestone-flat .node-icon {
  border-color: rgba(200,140,40,0.5);
  background: rgba(200,100,0,0.08);
  color: #C8912A;
}
.milestone-node.milestone-flat .node-label { color: #C8912A; }
.milestone-node.milestone-flat .node-desc  { color: #C8912A; }

/* ── Login nudge ── */
.track-login-nudge {
  margin: 8px 0 28px;
}
.tln-inner {
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.04);
  border-radius: 6px;
  padding: 20px 22px 18px;
}
.tln-headline {
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: #E8E0D0;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.tln-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tln-list li {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #8A877F;
  line-height: 1.45;
  padding-left: 16px;
  position: relative;
}
.tln-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #C9A84C;
  font-size: 16px;
  line-height: 1.2;
}
.tln-cta {
  display: inline-block;
  background: #C9A84C;
  color: #0D1B2A;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 150ms;
}
.tln-cta:hover { opacity: 0.85; }

/* ── Milestone notice ── */
.milestone-notice {
  margin: 20px 0 24px;
  padding: 20px 24px;
  border-left: 3px solid #C9A84C;
  background: rgba(201,168,76,0.06);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  line-height: 1.75;
  color: #A8A098;
  white-space: pre-wrap;
}
.milestone-notice strong {
  color: #E8DFC8;
  font-weight: 600;
}

/* ── Milestone prompt block ── */
.milestone-prompt-block {
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(5,10,18,0.4);
  margin-top: 4px;
  animation: fadeUp 300ms ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.milestone-prompt-header {
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.milestone-prompt-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A84C;
  opacity: 0.75;
  margin-bottom: 6px;
}
.milestone-prompt-instruction {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #9A9285;
  line-height: 1.7;
  margin: 0;
}

/* ── Peer pillar context ── */
#sec-peer-context {
  border-left: 2px solid rgba(201,168,76,0.28);
  padding: 16px 20px;
  background: rgba(201,168,76,0.03);
  border-radius: 0 8px 8px 0;
}
.pcx-overline {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin: 0 0 8px;
}
.pcx-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #EDE8DF;
  margin: 0 0 10px;
  line-height: 1.3;
}
.pcx-body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #8A8278;
  line-height: 1.7;
  margin: 0 0 10px;
}
.pcx-source {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #3A3830;
  margin: 0;
  letter-spacing: 0.06em;
}

/* ── Pulse copy block (single-column, hidden prompt) ── */
.pulse-copy-block { margin-bottom: 24px; }
.pulse-copy-context {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.8);
  margin: 0 0 6px;
}
.pulse-copy-instruction {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #6E6A62;
  margin: 0 0 14px;
}
.pulse-copy-standalone {
  width: 100%;
  padding: 18px;
  background: #C9A84C;
  color: #0A1020;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: opacity 200ms, background 200ms;
  margin-bottom: 10px;
}
.pulse-copy-standalone:hover { opacity: 0.86; }
.pulse-copy-standalone.copied {
  background: #1A5C35;
  color: #4ADE80;
  letter-spacing: 0.12em;
}
.pulse-return-note {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  color: #4ADE80;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0;
  line-height: 1.5;
}
.pulse-paste-block { margin-top: 24px; }
.pulse-paste-label {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.8);
  margin: 0 0 10px;
}

/* ── M365 two-panel layout ── */
.m365-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 700px) {
  .m365-panels { grid-template-columns: 1fr; }
}
.m365-panel {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}
.m365-panel + .m365-panel {
  border-left: 1px solid rgba(201,168,76,0.1);
}
@media (max-width: 700px) {
  .m365-panel + .m365-panel {
    border-left: none;
    border-top: 1px solid rgba(201,168,76,0.1);
  }
}
.m365-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.m365-panel-title {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8278;
}
.m365-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.m365-copy-btn {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A1628;
  background: #C9A84C;
  border: none;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 160ms;
}
.m365-copy-btn:hover { background: #b5862d; }
.m365-copy-btn.copied { background: #2A9A5B; color: #fff; }
.m365-open-btn {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9A84C;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: opacity 150ms;
}
.m365-open-btn:hover { opacity: 0.75; }
.m365-prompt-pre {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: #C0B8A8;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.m365-panel-note,
.m365-panel-paste-hint {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #4A4740;
  line-height: 1.6;
  margin-top: 10px;
}

#pulse-sig-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#pulse-sig-textarea {
  flex: 1;
  width: 100%;
  min-height: 180px;
  background: transparent;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #C9A84C;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  display: block;
}

#pulse-sig-textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

/* ── Flat score panel ── */
.flat-score-panel {
  border: 1px solid rgba(200,140,40,0.3);
  background: rgba(200,100,0,0.04);
  padding: 24px 28px 28px;
  margin-top: 20px;
  animation: fadeUp 300ms ease both;
}
.flat-score-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8912A;
  margin-bottom: 8px;
}
.flat-score-headline {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #E8E0D0;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}
.flat-score-body {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #9A9285;
  line-height: 1.8;
  margin-bottom: 20px;
}
.flat-score-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.flat-score-cta-primary {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0A1628;
  background: #C9A84C;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 180ms;
}
.flat-score-cta-primary:hover { background: #b5862d; }
.flat-score-cta-secondary {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9A84C;
  border: 1px solid rgba(201,168,76,0.4);
  padding: 10px 20px;
  text-decoration: none;
  transition: border-color 180ms, color 180ms;
}
.flat-score-cta-secondary:hover { border-color: #C9A84C; color: #E8E0D0; }

@media (max-width: 560px) {
  .milestone-rail { gap: 0; }
  .milestone-node { min-width: 56px; }
  .node-icon { width: 34px; height: 34px; font-size: 16px; }
  .track-headline { font-size: 17px; }
  .flat-score-ctas { flex-direction: column; }
}

/* ── Share trigger button ── */
.share-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A7060;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.2);
  padding: 7px 14px;
  cursor: pointer;
  transition: color 180ms, border-color 180ms;
}
.share-trigger-btn:hover { color: #C9A84C; border-color: rgba(201,168,76,0.5); }

/* ── Share popup backdrop ── */
.share-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5,10,20,0.6);
  z-index: 1100;
  backdrop-filter: blur(2px);
}

/* ── Share popup ── */
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  opacity: 0;
  width: min(480px, calc(100vw - 32px));
  background: #0E1A2E;
  border: 1px solid rgba(201,168,76,0.28);
  padding: 32px 28px 28px;
  z-index: 1101;
  transition: opacity 200ms ease, transform 200ms ease;
}
.share-popup--open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.share-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #5A5348;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 150ms;
}
.share-popup-close:hover { color: #E8E0D0; }

.share-popup-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: #C9A84C;
  margin-bottom: 16px;
}

.share-text-box {
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.14);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.share-dynamic-text {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #C8C0B0;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: none;
  cursor: pointer;
  transition: opacity 150ms, background 150ms;
}
.share-btn--linkedin {
  background: #0A66C2;
  color: #fff;
}
.share-btn--linkedin:hover { opacity: 0.88; }
.share-btn--twitter {
  background: #0F0F0F;
  color: #fff;
  border: 1px solid #333;
}
.share-btn--twitter:hover { background: #1a1a1a; }
.share-btn--copy {
  background: transparent;
  color: #C9A84C;
  border: 1px solid rgba(201,168,76,0.35);
}
.share-btn--copy:hover { border-color: #C9A84C; }

.share-popup-nudge {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #4A4540;
  letter-spacing: 0.04em;
  margin: 0;
}

@media (max-width: 480px) {
  .share-popup { padding: 28px 20px 24px; }
  .share-btn { font-size: 16px; padding: 8px 12px; }
}

/* ── Pillar tab selector ── */
.pillar-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  margin-bottom: 24px;
}

.pillar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  margin-bottom: -1px;
  transition: border-color 180ms;
  position: relative;
}
.pillar-tab[data-dominant="true"]::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201,168,76,0.5);
}

.pillar-tab-code {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A7060;
  transition: color 180ms;
}
.pillar-tab-name {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #5A5348;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: color 180ms;
}

.pillar-tab.active {
  border-bottom-color: #C9A84C;
}
.pillar-tab.active .pillar-tab-code { color: #C9A84C; }
.pillar-tab.active .pillar-tab-name { color: #D4C8A8; }
.pillar-tab:hover:not(.active) .pillar-tab-code { color: #9A8A6A; }
.pillar-tab:hover:not(.active) .pillar-tab-name  { color: #7A7060; }

.pillar-dominant-hint {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #9A9285;
  margin: -16px 0 20px;
  min-height: 16px;
  line-height: 1.6;
}

/* fade transition when switching tabs */
.m365-prompt-pre.fading {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.m365-prompt-pre {
  transition: opacity 180ms ease, transform 180ms ease;
}

@media (max-width: 480px) {
  .pillar-tab { padding: 10px 4px 8px; }
  .pillar-tab-name { display: none; }
  .pillar-tab-code { font-size: 16px; letter-spacing: 0.12em; }
}

/* ── Pulse submit button ── */
#pulse-submit-btn {
  width: 100%;
  margin-top: 20px;
  padding: 15px 24px;
  background: #C9A84C;
  color: #0A1628;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 180ms, transform 180ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
#pulse-submit-btn::after {
  content: '\2192';
  font-size: 16px;
  font-weight: 300;
}
#pulse-submit-btn:hover { opacity: 0.88; transform: translateY(-1px); }
#pulse-submit-btn:active { transform: translateY(0); }

/* ── Pulse auth gate ── */
.pulse-auth-gate {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.05);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.pulse-gate-text {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #A8A098;
  line-height: 1.6;
  margin: 0;
}
.pulse-gate-btn {
  background: #C9A84C;
  color: #0A0A08;
  border: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 150ms;
}
.pulse-gate-btn:hover { opacity: 0.85; }

/* ── Pulse wait message ── */
.pulse-wait-msg {
  margin-top: 16px;
  padding: 20px 24px;
  border-left: 3px solid #6E6A62;
  background: rgba(255,255,255,0.02);
}
.pulse-wait-title {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #E8DFC8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.pulse-wait-body {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #A8A098;
  line-height: 1.75;
  margin: 0 0 10px;
}
.pulse-wait-reminder {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #C9A84C;
  margin: 0;
}

/* ── Pulse movement result ── */
.pulse-movement-result {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(5,10,18,0.5);
  animation: fadeUp 300ms ease both;
}
.pmr-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.pmr-overline {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #C9A84C;
  text-transform: uppercase;
}
.pmr-pillar {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #6E6A62;
  text-transform: uppercase;
}
.pmr-scores {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pmr-score-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pmr-score-label {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #6E6A62;
  text-transform: uppercase;
}
.pmr-score-value {
  font-family: 'DM Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #E8DFC8;
  line-height: 1;
}
.pmr-score-now { color: #C9A84C; }
.pmr-score-now.improving { color: #6DB87A; }
.pmr-score-now.worsening { color: #C96B6B; }
.pmr-arrow {
  font-size: 20px;
  color: #4A4640;
  padding-top: 16px;
}
.pmr-delta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
}
.pmr-delta {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #C9A84C;
}
.pmr-delta.improving { color: #6DB87A; }
.pmr-delta.worsening { color: #C96B6B; }
.pmr-delta-label {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #6E6A62;
  text-transform: uppercase;
}
.pmr-verdict {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #A8A098;
  line-height: 1.75;
  margin: 0 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pmr-next {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #6E6A62;
  margin: 0 0 24px;
}
.pmr-dashboard-btn {
  display: inline-block;
  background: #C9A84C;
  color: #0D1B2A;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity 150ms;
}
.pmr-dashboard-btn:hover { opacity: 0.88; }

/* ── BETA BANNER (shared across score + dashboard) ── */
.beta-banner {
  background: rgba(201,168,76,0.06);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 9px 24px;
  text-align: center;
}
.beta-banner-text {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #6E6A62;
  margin: 0;
}
.beta-tag {
  display: inline-block;
  background: rgba(201,168,76,0.12);
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 0.2em;
  padding: 2px 7px;
  margin-right: 10px;
  vertical-align: middle;
}
.beta-capture-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  margin-left: 10px;
}
.beta-capture-inline input[type="email"] {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.07em;
  padding: 0 4px 2px;
  width: 170px;
  outline: none;
  transition: border-color 0.2s;
}
.beta-capture-inline input[type="email"]:focus { border-color: var(--gold); }
.beta-capture-inline input[type="email"]::placeholder { color: rgba(201,168,76,0.35); }
.beta-capture-inline button[type="submit"] {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  cursor: pointer;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  padding: 0 0 2px 8px;
  transition: border-color 0.2s, color 0.2s;
}
.beta-capture-inline button[type="submit"]:hover { border-color: var(--gold); color: #E8C870; }
.beta-capture-msg {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-left: 10px;
}

/* ── MY DATA PANEL (dashboard) ── */
.my-data-panel {
  margin: 40px 0 0;
  padding: 20px 24px;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.02);
}
.mdp-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.85);
  margin: 0 0 8px;
}
.mdp-body {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 0 14px;
}
.mdp-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mdp-link {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: rgba(201,168,76,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.35);
  transition: color 0.2s, border-color 0.2s;
}
.mdp-link:hover { color: #C9A84C; border-color: rgba(201,168,76,0.5); }

/* ── SCORE FOOTER TRUST BAR ── */
.score-footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: rgba(201,168,76,0.65);
}
.score-footer-trust span::before { content: '✓ '; }


/* ═══════════════════════════════════════════════════════════
   WIZARD SCREEN
═══════════════════════════════════════════════════════════ */

.wiz-outer {
  max-width: 680px;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Progress bar */
.wiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.wiz-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.wiz-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  width: 14.28%;
  transition: width 0.35s ease;
}
.wiz-step-count {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: rgba(201,168,76,0.85);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Back link */
.wiz-back-link {
  margin: 0 0 20px;
}
.wiz-back-link a {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(138,135,127,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.wiz-back-link a:hover { color: var(--muted); }

@keyframes wiz-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wiz-exit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-14px); }
}

.wiz-card { display: none; }
.wiz-card.active {
  display: block;
  animation: wiz-enter 0.3s ease forwards;
}
.wiz-card.exiting {
  display: block;
  animation: wiz-exit 0.2s ease forwards;
  pointer-events: none;
}

.wiz-q-hint {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin: 0 0 10px;
}
.wiz-q-text {
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
  margin: 0 0 28px;
}

.wiz-continue-btn {
  margin-top: 24px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 9px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}
.wiz-continue-btn:hover { background: #D4B05A; transform: translateY(-1px); }


/* ═══════════════════════════════════════════════════════════
   MISSION SCREEN
═══════════════════════════════════════════════════════════ */

.mission-outer {
  max-width: 680px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.mission-h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--white);
  margin: 0 0 16px;
}
.mission-sub {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 40px;
  max-width: 520px;
}

.mission-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.mp-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
  flex: 1;
  min-width: 140px;
}
.mp-btn:hover { border-color: rgba(201,168,76,0.45); background: rgba(201,168,76,0.07); }
.mp-btn.active { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.mp-name {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
}
.mp-tier {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.mp-btn.active .mp-tier { color: rgba(201,168,76,0.65); }

.mission-mirror-callout {
  border-left: 2px solid rgba(201,168,76,0.35);
  padding: 16px 20px;
  background: rgba(201,168,76,0.04);
  border-radius: 0 8px 8px 0;
  margin-bottom: 36px;
}
.mmc-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  margin: 0 0 10px;
}
.mmc-body {
  font-family: var(--body);
  font-size: 16px;
  color: rgba(237,232,223,0.8);
  line-height: 1.65;
  margin: 0 0 8px;
}
.mmc-body:last-child { margin-bottom: 0; }

.mission-step { margin-bottom: 28px; }
.mission-step-label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.5);
  margin: 0 0 10px;
}
.mission-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 9px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
}
.mission-copy-btn:hover { background: #D4B05A; transform: translateY(-1px); }
.mission-copy-btn.copied { background: var(--green); color: #fff; }

.mission-copy-note,
.mission-open-note {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
}
.mission-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 9px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.15s;
}
.mission-open-btn:hover { background: rgba(201,168,76,0.1); transform: translateY(-1px); }

@keyframes step2-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
#mission-open-step.visible {
  display: block !important;
  animation: step2-reveal 0.35s ease forwards;
}


/* ═══════════════════════════════════════════════════════════
   WAITING SCREEN
═══════════════════════════════════════════════════════════ */

.waiting-outer {
  max-width: 680px;
  padding-top: 64px;
  padding-bottom: 80px;
}

.waiting-status {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.65);
  margin: 0 0 24px;
}

.waiting-pulse {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}
.wp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}
.wp-dot--active {
  background: var(--gold);
  animation: pulse-gold 1.4s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { transform: scale(1);   opacity: 1;   }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
.wp-line {
  flex: 0 0 32px;
  height: 1px;
  background: rgba(201,168,76,0.18);
}

.waiting-mirror-callout {
  border-left: 2px solid rgba(201,168,76,0.35);
  padding: 14px 18px;
  background: rgba(201,168,76,0.04);
  border-radius: 0 8px 8px 0;
  font-family: var(--body);
  font-size: 16px;
  color: rgba(237,232,223,0.75);
  line-height: 1.65;
  margin-bottom: 20px;
}
.waiting-return-note {
  font-family: var(--body);
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 40px;
}

.waiting-wb-text {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 8px;
}
.waiting-wb-sub {
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 36px;
}

.paste-zone {
  position: relative;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  background: rgba(13,30,46,0.6);
  overflow: hidden;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.paste-zone--valid { border-color: var(--green); }
.paste-textarea {
  width: 100%;
  min-height: 180px;
  padding: 20px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(237,232,223,0.85);
  position: relative;
  z-index: 2;
}
.paste-textarea::placeholder { color: rgba(138,135,127,0.5); }

.paste-zone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 1;
  padding: 20px;
  text-align: center;
}
.paste-zone-overlay.hidden { display: none; }
.pzo-text {
  font-family: var(--body);
  font-size: 16px;
  color: rgba(138,135,127,0.7);
  margin: 0;
  font-weight: 500;
}
.pzo-sub {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(138,135,127,0.4);
  line-height: 1.6;
  margin: 0;
}
.pzo-sub code { background: none; font-family: inherit; }

.paste-validated {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(46,204,142,0.08);
  border-top: 1px solid rgba(46,204,142,0.2);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}
.pv-check { font-size: 16px; font-weight: bold; }

.waiting-back { text-align: center; margin-top: 24px; }

#submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 17px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 12px;
  opacity: 0.45;
  transition: background 0.18s, transform 0.15s, opacity 0.22s;
}
#submit-btn:hover { background: #D4B05A; transform: translateY(-1px); }
#submit-btn.visible {
  opacity: 1;
  animation: wiz-enter 0.3s ease forwards;
}


/* ═══════════════════════════════════════════════════════════
   SCORE REVEAL SEQUENCING
═══════════════════════════════════════════════════════════ */

.reveal-beat {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-beat.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .wiz-outer, .mission-outer, .waiting-outer {
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .mission-platforms { flex-direction: column; }
  .mp-btn { min-width: unset; }
  .paste-textarea { min-height: 140px; font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   SCORE PAGE INTRO
═══════════════════════════════════════════════════════════ */

.score-intro {
  margin-bottom: 52px;
}
.score-intro-eyebrow {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.6);
  margin: 0 0 18px;
}
.score-intro-h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.score-intro-sub {
  font-family: var(--body);
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 480px;
}
.score-intro-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sis-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  background: rgba(201,168,76,0.04);
}
.sis-num {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  width: 20px;
  height: 20px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sis-label {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(237,232,223,0.8);
}
.sis-arrow {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(201,168,76,0.3);
}


/* ═══════════════════════════════════════════════════════════
   WIZARD OPTION CARDS — UPGRADED FOR TOUCH / EXECUTIVE USE
═══════════════════════════════════════════════════════════ */

/* Larger, more touch-friendly cards inside the wizard */
.wiz-card .option-card {
  padding: 18px 22px;
  border-radius: 10px;
  transition: border-color 150ms, background 150ms, transform 120ms;
}
.wiz-card .option-card:hover {
  border-color: rgba(201,168,76,0.5);
  background: rgba(201,168,76,0.05);
}
.wiz-card .option-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.09);
  transform: scale(1.01);
}
.wiz-card .option-title {
  font-size: 17px;
  line-height: 1.45;
}
.wiz-card .option-grid {
  gap: 10px;
}

/* Stress description input — scoped to wizard */
.stress-desc-input {
  width: 100%;
  background: rgba(13,30,46,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 14px 18px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.stress-desc-input:focus { border-color: rgba(201,168,76,0.5); }
.stress-desc-input::placeholder { color: var(--muted); }

@media (max-width: 600px) {
  .score-intro-h1 { font-size: clamp(26px, 7vw, 36px); }
  .score-intro-steps { gap: 8px; }
  .sis-step { padding: 8px 14px; }
  .wiz-card .option-card { padding: 16px 18px; }
  .wiz-card .option-title { font-size: 16px; }
}



/* ================================================================
   PRINT — Score report
   ================================================================ */

@media print {
  /* Hide all interactive chrome, only show report content */
  #track-status-screen,
  #ctx-screen,
  #waiting-screen,
  #loading-overlay,
  .site-nav,
  .nav-mobile-overlay,
  .skip-link,
  .score-footer,
  #submit-btn,
  .paste-zone,
  .submission-trust-panel,
  .saved-banner,
  .sa-callout,
  .save-score-panel,
  .score-type-badge,
  #report-screen .gold-rule + section:last-child {
    display: none !important;
  }

  #report-screen {
    opacity: 1 !important;
    display: block !important;
  }

  /* Force each report section to fit on page */
  #report-screen section {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ddd;
    margin-bottom: 12pt;
    padding: 8pt;
  }

  .pillar-bar-track { background: #eee !important; }
  .pillar-bar-fill  { background: #9a6c00 !important; }
}

/* ═══════════════════════════════════════════════════════════
   TRACK GATE — #sec-track-gate
   State 1: overlay (no session / track_eligible false)
   State 1b: unlocked confirmation screen (just authenticated)
   State 2: invisible — track shows normally
═══════════════════════════════════════════════════════════ */

/* ── Gate overlay (State 1) ── */
#track-gate-overlay {
  margin-bottom: 36px;
}
.tgo-inner {
  border: 1px solid rgba(201,168,76,0.22);
  background: rgba(201,168,76,0.04);
  border-radius: 4px;
  padding: 32px 28px 28px;
  max-width: 520px;
}
.tgo-headline {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.25;
  margin: 0 0 14px;
}
.tgo-sub {
  font-family: var(--body);
  font-size: 13.5px;
  color: #9A9285;
  line-height: 1.65;
  margin: 0 0 20px;
}
.tgo-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tgo-list li {
  font-family: var(--body);
  font-size: 16px;
  color: #C4B99A;
  line-height: 1.4;
  padding-left: 18px;
  position: relative;
}
.tgo-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
  line-height: 1.2;
}
.tgo-auth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.tgo-legal {
  font-family: var(--mono);
  font-size: 16px;
  color: #5A5450;
  line-height: 1.7;
  margin: 2px 0 12px;
}
.tgo-skip {
  font-family: var(--mono);
  font-size: 16px;
  color: #5A5450;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 150ms;
}
.tgo-skip:hover { color: #9A9285; }

/* ── Unlocked confirmation (State 1b) ── */
.tgu-inner {
  border-left: 3px solid var(--gold);
  background: rgba(201,168,76,0.06);
  padding: 28px 28px 24px;
  margin-bottom: 36px;
  max-width: 520px;
}
.tgu-overline {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}
.tgu-headline {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin: 0 0 12px;
}
.tgu-body {
  font-family: var(--body);
  font-size: 13.5px;
  color: #9A9285;
  line-height: 1.65;
  margin: 0 0 22px;
}
.tgu-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tgu-cta-primary {
  display: inline-block;
  background: var(--gold);
  color: #07111C;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 2px;
  text-decoration: none;
  transition: opacity 150ms;
}
.tgu-cta-primary:hover { opacity: 0.85; }
.tgu-cta-secondary {
  font-family: var(--mono);
  font-size: 16px;
  color: #5A5450;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 150ms;
}
.tgu-cta-secondary:hover { color: #9A9285; }

/* ── book-only: hidden until book_registered = true ── */
.book-only { display: none !important; }
