/* ─── Emotional Gap Audit — Brand Design System ─────────────────────────── */
/* Activate Vision · activate.vision */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400;1,9..144,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --bg:           #0D0D0D;
  --surface:      #141414;
  --card:         #1A1A1A;
  --gold:         #C9A24A;
  --gold-dim:     rgba(201,162,74,0.15);
  --sage:         #6B8F71;
  --sage-dim:     rgba(107,143,113,0.15);
  --terra:        #C4694A;
  --terra-dim:    rgba(196,105,74,0.15);
  --text:         #F0EDE6;
  --text-muted:   #7A7A7A;
  --text-soft:    #B0ADA6;
  --border:       rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius-card:  16px;
  --radius-btn:   60px;
  --transition:   200ms ease;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
p { line-height: 1.65; }
a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 680px; }
.container--wide { max-width: 1280px; }

section { position: relative; z-index: 1; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--gold);
  color: #0D0D0D;
}
.btn--primary:hover { background: #D4AD55; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(201,162,74,0.25); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--full { width: 100%; }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.card:hover { border-color: var(--border-hover); }

/* ─── Form elements ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,74,0.12);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* ─── Progress bar ───────────────────────────────────────────────────────── */
.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 400ms ease;
}

/* ─── Score ring ─────────────────────────────────────────────────────────── */
.score-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-ring-center {
  position: absolute;
  text-align: center;
}
.score-ring-number {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--text);
}
.score-ring-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ─── Dimension card bar ─────────────────────────────────────────────────── */
.dimension-bar {
  height: 5px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px 0;
}
.dimension-bar__fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.dimension-bar__fill--strong { background: var(--sage); }
.dimension-bar__fill--medium { background: var(--gold); }
.dimension-bar__fill--weak   { background: var(--terra); }

/* ─── Status badge ───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--strong { background: var(--sage-dim); color: var(--sage); }
.badge--medium { background: var(--gold-dim); color: var(--gold); }
.badge--weak   { background: var(--terra-dim); color: var(--terra); }

/* ─── Coherence node ─────────────────────────────────────────────────────── */
.coherence-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.coherence-node__circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 6px;
  line-height: 1.2;
  transition: transform 300ms ease, box-shadow 300ms ease;
  opacity: 0;
  transform: scale(0.6);
}
.coherence-node__circle.visible {
  opacity: 1;
  transform: scale(1);
}
.coherence-node__circle--strong { background: var(--sage); color: #0D0D0D; box-shadow: 0 0 20px rgba(107,143,113,0.3); }
.coherence-node__circle--medium { background: var(--gold); color: #0D0D0D; box-shadow: 0 0 20px rgba(201,162,74,0.3); }
.coherence-node__circle--weak   { background: var(--terra); color: #fff; box-shadow: 0 0 20px rgba(196,105,74,0.3); }

.coherence-node__label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  line-height: 1.3;
}
.coherence-connector {
  display: flex;
  align-items: center;
  padding-bottom: 28px;
  opacity: 0;
  transition: opacity 400ms ease;
}
.coherence-connector.visible { opacity: 1; }
.coherence-connector__line {
  height: 1px;
  min-width: 24px;
  flex: 1;
  background: var(--border-hover);
}

/* ─── Loading screen ─────────────────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  gap: 48px;
}
.loading-orb {
  position: relative;
  width: 120px;
  height: 120px;
}
.loading-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--sage);
  opacity: 0;
  animation: orb-pulse 2.4s ease-out infinite;
}
.loading-orb__ring:nth-child(2) { animation-delay: 0.6s; }
.loading-orb__ring:nth-child(3) { animation-delay: 1.2s; }
.loading-orb__ring:nth-child(4) { animation-delay: 1.8s; }
.loading-orb__core {
  position: absolute;
  inset: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%);
  opacity: 0.6;
  animation: orb-glow 2.4s ease-in-out infinite;
}
@keyframes orb-pulse {
  0%   { transform: scale(0.4); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes orb-glow {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%       { transform: scale(1.2); opacity: 0.8; }
}

.loading-text {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-soft);
  text-align: center;
  height: 32px;
  overflow: hidden;
}
.loading-text span {
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.loading-text span.active { opacity: 1; transform: translateY(0); }

/* ─── Radial glow atmospherics ───────────────────────────────────────────── */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.06;
}
.glow--gold { background: var(--gold); }
.glow--sage { background: var(--sage); }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(13,13,13,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav__logo span { color: var(--gold); }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  max-width: 680px;
}
.hero__headline {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--text);
  margin: 20px 0 24px;
  line-height: 1.08;
}
.hero__sub {
  font-size: 18px;
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ─── How it works ───────────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}
.step-card p { color: var(--text-muted); font-size: 14px; }

/* ─── Social proof ───────────────────────────────────────────────────────── */
.social-proof {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.social-proof__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 32px;
}
.client-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.client-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  opacity: 0.5;
  transition: opacity var(--transition);
}
.client-name:hover { opacity: 0.9; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-text { font-size: 13px; color: var(--text-muted); }

/* ─── Multi-step form overlay ────────────────────────────────────────────── */
.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.96);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  backdrop-filter: blur(8px);
}
.form-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 400ms ease;
}
.form-overlay.open .form-panel { transform: translateY(0); }

.form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
}
.form-close:hover { border-color: var(--border-hover); color: var(--text); }

.form-step {
  display: none;
  animation: step-in 300ms ease;
}
.form-step.active { display: block; }

@keyframes step-in {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-step-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 8px;
}
.form-step-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }
.form-nav { display: flex; gap: 12px; margin-top: 28px; }

/* Touchpoint item */
.touchpoint-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.touchpoint-item__name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}
.touchpoint-item__remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition);
}
.touchpoint-item__remove:hover { color: var(--terra); }

.add-touchpoint-btn {
  width: 100%;
  background: transparent;
  border: 1px dashed rgba(201,162,74,0.3);
  border-radius: 10px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 4px;
}
.add-touchpoint-btn:hover { background: var(--gold-dim); border-style: solid; }
.add-touchpoint-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ─── Admin layout ───────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 20;
  overflow-y: auto;
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 40px;
  min-height: 100vh;
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo .name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
}
.sidebar-logo .sub {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover { color: var(--text); background: var(--card); }
.sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); background: var(--gold-dim); }

/* ─── Table ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:hover td { background: var(--card); }

/* ─── Action icon buttons ────────────────────────────────────────────────── */
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.icon-btn:hover { border-color: var(--border-hover); color: var(--text); }
.icon-btn--danger:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-dim); }

/* ─── Stat card ──────────────────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,13,13,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  backdrop-filter: blur(8px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  transform: scale(0.96);
  transition: transform 300ms ease;
}
.modal-overlay.open .modal { transform: scale(1); }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.text-gold { color: var(--gold); }
.text-sage { color: var(--sage); }
.text-terra { color: var(--terra); }
.text-muted { color: var(--text-muted); }
.text-soft  { color: var(--text-soft); }
.font-display { font-family: var(--font-display); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-panel { padding: 28px 20px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 20px; }
  .hero { padding: 100px 0 60px; }
  .hero__sub { font-size: 16px; }
  .client-strip { gap: 28px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; }
}
