/* ── TOKENS ───────────────────────────────────────────── */
:root {
  --p-bg:          #F7F5F2;
  --p-surface:     #FFFFFF;
  --p-border:      #E5E0D8;
  --p-border-soft: #F0EDE8;
  --p-text:        #1A1A1A;
  --p-muted:       #6B6B6B;
  --p-muted2:      #A8A29A;
  --p-heading:     #0D1B0F;
  --p-terra:       #C4622D;
  --p-terra-light: rgba(196, 98, 45, 0.08);
  --p-terra-hover: #A8501F;
  --p-green:       #b8f55a;

  --p-tier-scout-bg:    #EFF8EC;
  --p-tier-scout-text:  #1B5E20;
  --p-tier-scout-bdr:   #A5D6A7;
  --p-tier-deal-bg:     #FFF3E0;
  --p-tier-deal-text:   #7D3100;
  --p-tier-deal-bdr:    #FFCC80;
  --p-tier-inv-bg:      #EEF2FF;
  --p-tier-inv-text:    #1A237E;
  --p-tier-inv-bdr:     #9FA8DA;
  --p-tier-full-bg:     #F3E5F5;
  --p-tier-full-text:   #4A148C;
  --p-tier-full-bdr:    #CE93D8;

  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius:    10px;
  --shadow:    0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--p-bg);
  color: var(--p-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── PROFILE NAV ──────────────────────────────────────── */
.profile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p-border);
}
.profile-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-nav-logo img { display: block; }
.profile-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-nav-back {
  font-size: 13px;
  color: var(--p-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.profile-nav-back:hover { color: var(--p-text); }

/* ── PAGE WRAPPER ─────────────────────────────────────── */
.profile-page {
  padding-top: 60px;
  min-height: 100vh;
}

/* ── STATE MANAGEMENT ─────────────────────────────────── */
.profile-state { display: none; }
.profile-state.active { display: block; }

/* ── INTRO STATE ──────────────────────────────────────── */
.intro-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 24px 80px;
}
.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-terra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.intro-badge span {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--p-terra);
}
.intro-h1 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--p-heading);
  margin-bottom: 20px;
}
.intro-h1 em {
  font-style: normal;
  color: var(--p-terra);
}
.intro-sub {
  font-size: 17px;
  color: var(--p-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}
.intro-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}
.intro-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--p-text);
}
.intro-bullets li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-terra);
}
.intro-bullets li strong { font-weight: 600; }

.intro-form {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.intro-form h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 6px;
}
.intro-form p {
  font-size: 13px;
  color: var(--p-muted);
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 600; color: var(--p-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.form-field input {
  padding: 11px 14px;
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--p-text);
  background: var(--p-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-field input:focus {
  border-color: var(--p-terra);
  box-shadow: 0 0 0 3px var(--p-terra-light);
}
.form-field input::placeholder { color: var(--p-muted2); }

.btn-primary-terra {
  width: 100%;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--p-terra);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary-terra:hover:not(:disabled) {
  background: var(--p-terra-hover);
  transform: translateY(-1px);
}
.btn-primary-terra:disabled { opacity: 0.6; cursor: not-allowed; }

.form-privacy {
  margin-top: 12px;
  font-size: 11px;
  color: var(--p-muted2);
  text-align: center;
}
.form-error {
  margin-top: 10px;
  font-size: 13px;
  color: #C0392B;
  text-align: center;
  display: none;
}
.form-error.visible { display: block; }

/* ── RESUME BANNER ────────────────────────────────────── */
.resume-banner {
  background: #FFF8F4;
  border: 1px solid #FCCBAD;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--p-terra);
  display: none;
}
.resume-banner.visible { display: flex; align-items: center; gap: 10px; }
.resume-banner strong { font-weight: 600; color: var(--p-heading); }

/* ── CHAT STATE ───────────────────────────────────────── */
.chat-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.chat-header {
  margin-bottom: 24px;
}
.chat-header h2 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 4px;
}
.chat-header p {
  font-size: 13px;
  color: var(--p-muted);
}

.chat-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p-border-soft);
}
.chat-progress-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chat-progress-dots {
  display: flex;
  gap: 6px;
}
.chat-progress-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-border);
  transition: background 0.3s;
}
.chat-progress-dot.filled  { background: var(--p-terra); }
.chat-progress-dot.current { background: var(--p-terra); box-shadow: 0 0 0 3px var(--p-terra-light); }

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: msgIn 0.25s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg-sender {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--p-muted2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chat-msg.advisor .chat-msg-sender { padding-left: 2px; }
.chat-msg.user    .chat-msg-sender { text-align: right; padding-right: 2px; }

.chat-msg-bubble {
  max-width: 82%;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.chat-msg.advisor .chat-msg-bubble {
  align-self: flex-start;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  color: var(--p-text);
  border-radius: 2px 12px 12px 12px;
}
.chat-msg.user .chat-msg-bubble {
  align-self: flex-end;
  background: #FFF1EA;
  border: 1px solid #FCCBAD;
  color: var(--p-text);
  border-radius: 12px 2px 12px 12px;
}

.chat-typing {
  display: none;
  align-self: flex-start;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 2px 12px 12px 12px;
  padding: 14px 18px;
  gap: 5px;
  align-items: center;
}
.chat-typing.visible { display: flex; animation: msgIn 0.25s ease; }
.typing-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--p-muted2);
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

.chat-input-area {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(247, 245, 242, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--p-border);
  padding: 16px 24px 20px;
}
.chat-input-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input-inner textarea {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--p-text);
  background: var(--p-surface);
  resize: none;
  min-height: 48px;
  max-height: 140px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
.chat-input-inner textarea:focus {
  border-color: var(--p-terra);
  box-shadow: 0 0 0 3px var(--p-terra-light);
}
.chat-input-inner textarea::placeholder { color: var(--p-muted2); }
.chat-send-btn {
  padding: 12px 20px;
  background: var(--p-terra);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  height: 48px;
}
.chat-send-btn:hover:not(:disabled) { background: var(--p-terra-hover); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── GENERATING STATE ─────────────────────────────────── */
.generating-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  text-align: center;
}
.generating-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--p-terra-light);
  border: 2px solid var(--p-terra);
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--p-terra-light); }
  50%       { box-shadow: 0 0 0 12px transparent; }
}
.generating-icon svg { width: 28px; height: 28px; stroke: var(--p-terra); }
.generating-wrap h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 12px;
}
.generating-step {
  font-size: 15px;
  color: var(--p-muted);
  min-height: 24px;
  transition: opacity 0.3s;
}
.generating-steps-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.gen-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-border);
  animation: genPulse 1.5s infinite;
}
.gen-dot:nth-child(2) { animation-delay: 0.3s; }
.gen-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes genPulse {
  0%, 100% { background: var(--p-border); transform: scale(1); }
  50%       { background: var(--p-terra); transform: scale(1.3); }
}

/* ── REPORT STATE ─────────────────────────────────────── */
.report-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Report document */
.report-doc {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Report header */
.report-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 3px solid var(--p-terra);
  background: var(--p-surface);
}
.report-doc-title {
  text-align: right;
}
.report-doc-title h1 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-bottom: 4px;
}
.report-doc-title .report-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-muted2);
}

/* Archetype hero */
.report-archetype-hero {
  padding: 40px 40px 36px;
  border-bottom: 1px solid var(--p-border-soft);
}
.archetype-badge {
  display: inline-block;
  background: var(--p-terra);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.archetype-tagline {
  font-size: 18px;
  font-weight: 600;
  color: var(--p-heading);
  margin-bottom: 16px;
  line-height: 1.4;
}
.executive-summary {
  font-size: 15px;
  color: var(--p-muted);
  line-height: 1.75;
  max-width: 700px;
}

/* Section */
.report-section {
  padding: 36px 40px;
  border-bottom: 1px solid var(--p-border-soft);
}
.report-section:last-child { border-bottom: none; }
.report-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--p-terra);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--p-border);
}

/* Strategy + returns grid */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) { .strategy-grid { grid-template-columns: 1fr; } }
.strategy-block {}
.strategy-name {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  color: var(--p-heading);
  margin-bottom: 12px;
}
.strategy-rationale {
  font-size: 14px;
  color: var(--p-muted);
  line-height: 1.7;
}
.returns-block {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 20px;
}
.returns-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--p-border-soft);
}
.returns-row:last-child { border-bottom: none; }
.returns-label { font-size: 12px; color: var(--p-muted); font-weight: 500; }
.returns-value { font-family: var(--font-mono); font-size: 14px; color: var(--p-heading); font-weight: 500; }

/* Markets */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .markets-grid { grid-template-columns: 1fr; } }
.market-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 18px;
}
.market-card-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--p-terra);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.market-city {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 2px;
}
.market-area {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--p-terra);
  margin-bottom: 10px;
}
.market-rationale {
  font-size: 13px;
  color: var(--p-muted);
  line-height: 1.6;
}

/* Action plan */
.action-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 640px) { .action-plan-grid { grid-template-columns: 1fr; } }
.action-phase {
  position: relative;
}
.action-phase-header {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--p-terra);
}
.action-phase-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--p-terra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.action-phase-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--p-heading);
}
.action-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.action-items li {
  font-size: 13px;
  color: var(--p-muted);
  line-height: 1.5;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.action-items li::before {
  content: '→';
  color: var(--p-terra);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* RE.OS skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.skill-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 16px;
}
.skill-tier-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.tier-scout   { background: var(--p-tier-scout-bg); color: var(--p-tier-scout-text); border-color: var(--p-tier-scout-bdr); }
.tier-watcher { background: var(--p-tier-deal-bg);  color: var(--p-tier-deal-text);  border-color: var(--p-tier-deal-bdr); }
.tier-investor{ background: var(--p-tier-inv-bg);   color: var(--p-tier-inv-text);   border-color: var(--p-tier-inv-bdr); }
.tier-partner { background: var(--p-tier-full-bg);  color: var(--p-tier-full-text);  border-color: var(--p-tier-full-bdr); }

.skill-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--p-heading);
  margin-bottom: 6px;
}
.skill-why {
  font-size: 12px;
  color: var(--p-muted);
  line-height: 1.55;
}

.skills-cta-box {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.skills-cta-text {}
.skills-cta-text h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 4px;
}
.skills-cta-text p {
  font-size: 13px;
  color: var(--p-muted);
}
.skills-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-scout {
  padding: 10px 18px;
  background: var(--p-tier-scout-bg);
  color: var(--p-tier-scout-text);
  border: 1px solid var(--p-tier-scout-bdr);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-scout:hover { opacity: 0.8; }

.btn-upgrade {
  padding: 10px 18px;
  background: var(--p-terra);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-upgrade:hover { background: var(--p-terra-hover); }

/* Risks */
.risks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .risks-grid { grid-template-columns: 1fr; } }
.risk-card {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 18px;
}
.risk-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--p-heading);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.risk-title::before {
  content: '⚠';
  font-size: 12px;
  opacity: 0.7;
}
.risk-desc {
  font-size: 13px;
  color: var(--p-muted);
  margin-bottom: 8px;
  line-height: 1.55;
}
.risk-mitigation {
  font-size: 12px;
  color: var(--p-terra);
  font-style: italic;
  line-height: 1.55;
}

/* Report footer CTA */
.report-cta-footer {
  background: var(--p-heading);
  color: #fff;
  padding: 44px 40px;
  text-align: center;
}
.report-cta-footer h2 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.report-cta-footer p {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.report-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-outline {
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-cta-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-cta-terra {
  padding: 12px 24px;
  background: var(--p-terra);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-cta-terra:hover { background: var(--p-terra-hover); }

/* Report meta bar */
.report-meta-bar {
  padding: 12px 40px;
  background: var(--p-bg);
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.report-meta-bar p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--p-muted2);
}

/* ── ERROR STATE ──────────────────────────────────────── */
.chat-error-banner {
  background: #FFF0F0;
  border: 1px solid #FFCDD2;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #C62828;
  margin-bottom: 12px;
  display: none;
}
.chat-error-banner.visible { display: block; }

/* ── LAYER 2: DEEP PROFILE STYLES ────────────────────── */

/* Deep section marker */
.deep-section {
  background: #FFFDF9;
  border-left: 3px solid var(--p-terra);
  position: relative;
}
.deep-section::after {
  content: 'DEEP PROFILE';
  position: absolute;
  top: 16px; right: 40px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--p-terra);
  opacity: 0.6;
}

/* Social persona */
.persona-headline {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--p-heading);
  margin-bottom: 12px;
}
.persona-summary {
  font-size: 15px;
  color: var(--p-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.persona-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.signal-pill {
  background: var(--p-terra-light);
  border: 1px solid rgba(196,98,45,0.2);
  color: var(--p-terra);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}
.persona-refinements {
  font-size: 14px;
  color: var(--p-muted);
  font-style: italic;
  line-height: 1.65;
}

/* Live deal cards */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 12px;
}
@media (max-width: 700px) { .deals-grid { grid-template-columns: 1fr; } }

.deal-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.deal-rank {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--p-terra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.deal-verdict {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verdict-buy   { background: #EFF8EC; color: #1B5E20; border: 1px solid #A5D6A7; }
.verdict-watch { background: #FFF3E0; color: #7D3100; border: 1px solid #FFCC80; }
.verdict-avoid { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }

.deal-address {
  font-weight: 600;
  font-size: 14px;
  color: var(--p-heading);
  line-height: 1.4;
}
.deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.deal-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--p-heading);
}
.deal-type, .deal-days {
  font-size: 12px;
  color: var(--p-muted);
}
.deal-match {
  font-size: 13px;
  color: var(--p-muted);
  line-height: 1.55;
}
.deal-valapp {
  background: var(--p-bg);
  border: 1px solid var(--p-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.valapp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
}
.valapp-row span   { color: var(--p-muted); }
.valapp-row strong { font-family: var(--font-mono); color: var(--p-heading); }
.deal-verdict-reason {
  font-size: 12px;
  color: var(--p-muted);
  font-style: italic;
  line-height: 1.5;
}
.deals-disclaimer {
  font-size: 11px;
  color: var(--p-muted2);
  margin-top: 4px;
}

/* Deep Profile upgrade upsell */
.deep-upsell {
  margin: 0;
  padding: 40px;
  background: linear-gradient(135deg, #FFF8F4 0%, #FFF1E8 100%);
  border-top: 1px solid rgba(196,98,45,0.15);
  border-bottom: 1px solid rgba(196,98,45,0.15);
}
.deep-upsell-badge {
  display: inline-block;
  background: var(--p-terra);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.deep-upsell h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--p-heading);
  margin-bottom: 10px;
}
.deep-upsell > p {
  font-size: 15px;
  color: var(--p-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.deep-upsell-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.deep-upsell-list li {
  font-size: 14px;
  color: var(--p-text);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.deep-upsell-list li::before {
  content: '✓';
  color: var(--p-terra);
  font-weight: 700;
  flex-shrink: 0;
}
.btn-deep-upgrade {
  display: inline-block;
  padding: 14px 28px;
  background: var(--p-terra);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-deep-upgrade:hover:not(:disabled) {
  background: var(--p-terra-hover);
  transform: translateY(-1px);
}
.btn-deep-upgrade:disabled { opacity: 0.6; cursor: not-allowed; }
.deep-upsell-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--p-muted2);
}

@media (max-width: 600px) {
  .deep-upsell { padding: 28px 20px; }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 600px) {
  .report-doc-header  { padding: 20px 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .report-archetype-hero { padding: 28px 20px; }
  .report-section     { padding: 28px 20px; }
  .report-cta-footer  { padding: 36px 20px; }
  .report-meta-bar    { padding: 12px 20px; }
  .strategy-grid      { grid-template-columns: 1fr; }
}

/* ── RESTORATION ADDITIONS ────────────────────────────── */

/* Issue 3: suppressed valapp numbers */
.valapp-pending {
  font-size: 13px;
  color: var(--p-muted);
  font-style: italic;
  background: var(--p-border-soft);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 4px;
}

/* Issue 4: matched-deals freshness line */
.deals-asof {
  font-size: 12px;
  color: var(--p-muted2);
  margin: 0 0 16px;
}

/* Issue 1: softened CTA */
.skills-cta-alt {
  font-size: 13px;
  color: var(--p-muted);
  margin-top: 8px;
}
.report-cta-soft {
  text-align: center;
  background: var(--p-border-soft);
  border: 1px solid var(--p-border);
  border-radius: 12px;
}
.report-cta-soft p {
  font-size: 14px;
  color: var(--p-muted);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}
.report-cta-soft a {
  color: var(--p-terra);
  font-weight: 600;
  text-decoration: none;
}
.report-cta-soft a:hover { text-decoration: underline; }

/* Sample-mode banner */
.sample-banner {
  background: var(--p-terra-light);
  border: 1px solid rgba(196, 98, 45, 0.25);
  color: var(--p-terra);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.sample-banner a { color: var(--p-terra-hover); text-decoration: underline; }
