:root {
  --navy: #0a1628;
  --navy-2: #0f2138;
  --teal: #2dd4bf;
  --amber: #f0a860;
  --glass: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --text: #e8f0f5;
  --text-dim: #93a3b3;
  --band-emergent: #5b8cff;
  --band-developing: #2dd4bf;
  --band-competent: #e0954a;
  --band-masterful: #f0c15a;
  --structure: #8b93f0;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--navy); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
#app { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.mirrorly-bg {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, rgba(45,212,191,0.10), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(240,168,96,0.08), transparent 40%),
              var(--navy);
}

.wordmark {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--teal);
  letter-spacing: 0.5px;
}

.eyebrow {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #14b8a6);
  color: #04211d;
  border: none;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}

.btn-pill-gradient {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: rgba(45,212,191,0.06);
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, var(--teal), var(--amber));
  border-image-slice: 1;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 0 18px rgba(45,212,191,0.08);
}
.btn-pill-gradient:hover { box-shadow: 0 0 24px rgba(45,212,191,0.18); }
.btn-pill-gradient:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(45,212,191,0.15);
}
.btn-export:hover { background: rgba(45,212,191,0.08); }

input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.sidebar nav a, .sidebar nav button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.sidebar nav a.active, .sidebar nav button.active {
  background: rgba(45,212,191,0.10);
  color: var(--teal);
}
.sidebar nav a.active::before, .sidebar nav button.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--teal);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--teal);
}
.main-content { flex: 1; padding: 32px 40px; max-width: 1100px; }

.stat-card { text-align: center; padding: 16px; }
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--teal); }
.stat-card .label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.stat-card .icon-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; font-size: 15px; color: var(--teal); }

.band-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(45,212,191,0.15);
  color: var(--teal);
}
.band-pill.Emergent { background: rgba(91,140,255,0.15); color: var(--band-emergent); }
.band-pill.Developing { background: rgba(45,212,191,0.15); color: var(--band-developing); }
.band-pill.Competent { background: rgba(224,149,74,0.18); color: var(--band-competent); }
.band-pill.Masterful { background: rgba(240,193,90,0.18); color: var(--band-masterful); }

.error-text { color: #f87171; font-size: 13px; margin-top: 8px; }
.evidence-highlight {
  background: rgba(45,212,191,0.15);
  border-bottom: 2px solid var(--teal);
  padding: 1px 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/* Dashboard triple-ring orb (EI / HI / AI)                            */
/* ------------------------------------------------------------------ */
.orb-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.orb-labels { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.orb-label-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(10,22,40,0.75);
  border: 1px solid var(--border);
}
.orb-label-pill.ai { color: #a5b4fc; border-color: rgba(165,180,252,0.4); }
.orb-label-pill.hi { color: var(--teal); border-color: rgba(45,212,191,0.4); }
.orb-label-pill.ei { color: var(--amber); border-color: rgba(240,168,96,0.4); }
.orb-center-number { font-size: 44px; font-weight: 700; color: var(--text); text-align: center; }
.orb-center-band { text-align: center; margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Session Report                                                      */
/* ------------------------------------------------------------------ */
.report-dims-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.report-dim-bar-track { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.report-dim-bar-fill { height: 6px; border-radius: 4px; position: relative; }
.report-dim-bar-fill::after {
  content: "";
  position: absolute;
  right: -3px; top: -1px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.key-moments-track { display: flex; align-items: flex-start; position: relative; padding: 8px 4px 0; }
.key-moments-line { position: absolute; top: 6px; left: 4%; right: 4%; height: 2px; background: rgba(255,255,255,0.10); }
.key-moment-item { flex: 1; text-align: center; position: relative; z-index: 1; }
.key-moment-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 10px; box-shadow: 0 0 10px currentColor; }
.key-moment-label { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; line-height: 1.35; min-height: 32px; }
.evidence-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid currentColor;
  background: transparent;
}
.key-moment-quote { margin-top: 10px; font-size: 12px; font-style: italic; text-align: left; }

.footer-note { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }

/* ------------------------------------------------------------------ */
/* Coaching Trends                                                     */
/* ------------------------------------------------------------------ */
.trend-band-row {
  display: flex; align-items: center; height: 64px; margin-bottom: 4px;
  border-radius: 10px; position: relative; padding: 0 16px;
}
.trend-band-row .band-name { font-weight: 700; font-size: 14px; }
.trend-band-row.Emergent { background: rgba(91,140,255,0.10); border: 1px solid rgba(91,140,255,0.35); color: var(--band-emergent); }
.trend-band-row.Developing { background: rgba(45,212,191,0.10); border: 1px solid rgba(45,212,191,0.35); color: var(--band-developing); }
.trend-band-row.Competent { background: rgba(224,149,74,0.12); border: 1px solid rgba(224,149,74,0.4); color: var(--band-competent); }
.trend-band-row.Masterful { background: rgba(240,193,90,0.14); border: 1px solid rgba(240,193,90,0.45); color: var(--band-masterful); }

.breakthrough-tooltip {
  position: absolute;
  background: #eef4f8;
  color: #0a1628;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.breakthrough-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #eef4f8 transparent transparent transparent;
}

.trend-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
}

/* ------------------------------------------------------------------ */
/* Playground                                                          */
/* ------------------------------------------------------------------ */
.span-verified-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  border: 1px solid rgba(45,212,191,0.5);
  border-radius: 999px;
  padding: 3px 12px;
  background: rgba(45,212,191,0.08);
}
.evidence-span-label {
  text-align: center;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ */
/* Inputs                                                              */
/* ------------------------------------------------------------------ */
.input-tabs { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.input-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  border-radius: 999px; cursor: pointer; border: 1px solid var(--border);
  background: rgba(255,255,255,0.02); color: var(--text-dim);
}
.input-tab.active { background: linear-gradient(135deg, var(--teal), #14b8a6); color: #04211d; border-color: transparent; }

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.upload-zone i { font-size: 22px; display: block; margin-bottom: 10px; color: var(--teal); }

.connector-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.connector-icon {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.3);
  color: var(--teal); font-size: 13px;
}
.connector-dots { display: flex; gap: 4px; }
.connector-dots span { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: 0.6; }

.flow-diagram { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-card {
  flex: 1; min-width: 150px; max-width: 220px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
}
.flow-card i { font-size: 20px; margin-bottom: 10px; display: block; color: var(--teal); }
.flow-card.highlight {
  background: rgba(240,168,96,0.10);
  border-color: rgba(240,168,96,0.5);
  box-shadow: 0 0 16px rgba(240,168,96,0.15);
}
.flow-card.highlight i { color: var(--amber); }
.flow-card .flow-label { font-size: 13px; font-weight: 600; }
.flow-arrow { color: var(--amber); font-size: 16px; }

/* ------------------------------------------------------------------ */
/* HI Avatar                                                           */
/* ------------------------------------------------------------------ */
.avatar-orb {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 24px;
  position: relative;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 30%),
    radial-gradient(circle at 65% 70%, rgba(240,168,96,0.55), transparent 45%),
    radial-gradient(circle at 35% 70%, rgba(45,212,191,0.55), transparent 50%),
    radial-gradient(circle at 70%, rgba(45,212,191,0.35), rgba(240,168,96,0.25));
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 0 40px rgba(45,212,191,0.25), inset 0 0 30px rgba(255,255,255,0.08);
  transition: box-shadow 0.3s;
}
.avatar-orb.speaking { box-shadow: 0 0 60px rgba(45,212,191,0.45), inset 0 0 30px rgba(255,255,255,0.12); }

.waveform-row { display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 16px; }
.waveform-bar {
  width: 3px; border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
  transition: height 0.15s;
}
.waveform-dots { display: flex; gap: 3px; margin-left: 4px; }
.waveform-dots span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dim); opacity: 0.5; }

/* ------------------------------------------------------------------ */
/* My Growth hub + Client Renewals                                     */
/* ------------------------------------------------------------------ */
.growth-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.growth-hub-card { cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.growth-hub-card:hover { border-color: rgba(45,212,191,0.4); box-shadow: 0 0 18px rgba(45,212,191,0.08); }
.growth-hub-card i { font-size: 20px; color: var(--teal); margin-bottom: 10px; }

.renewal-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; margin-bottom: 10px;
}
.renewal-client { font-weight: 700; font-size: 15px; }
.renewal-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; }

/* ------------------------------------------------------------------ */
/* Brand assets — logo lockup, gold wordmark variant, hero helix       */
/* ------------------------------------------------------------------ */
.wordmark.gold { color: #e0ceb2; }
.brand-logo-img { height: 34px; display: block; }
.brand-icon-img { width: 32px; height: 32px; display: block; border-radius: 8px; }

.hero-sparkle-corner {
  position: absolute;
  width: 200px; height: 200px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.hero-sparkle-corner.top-left { top: 0; left: 0; }
.hero-sparkle-corner.bottom-right { bottom: 0; right: 0; }

.hero-helix-wrap { position: relative; display: flex; justify-content: center; padding: 24px 0; width: 100%; max-width: 640px; }
.hero-orbs-row { display: flex; gap: 48px; position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; width: 100%; }
.hero-helix-line {
  position: absolute;
  top: 50%; left: 6%; right: 6%; width: 88%;
  height: 40px;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.hero-orb-col { text-align: center; position: relative; z-index: 1; }
.hero-orb {
  width: 76px; height: 76px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.55), transparent 40%),
    radial-gradient(circle, rgba(45,212,191,0.35), rgba(240,168,96,0.18));
  border: 1px solid rgba(45,212,191,0.45);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
  margin: 0 auto 10px;
  box-shadow: 0 0 26px rgba(45,212,191,0.25), inset 0 0 16px rgba(255,255,255,0.10);
}
.hero-orb-pill {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(58,37,18,0.5);
  color: #e0ceb2;
  border: 1px solid rgba(240,168,96,0.3);
  white-space: nowrap;
}
.hero-tagline {
  font-size: 15px;
  color: #c5d2dc;
  text-align: center;
  margin: 18px 0 0;
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Hero page layout — Home + Login/Signup share this composition       */
/* ------------------------------------------------------------------ */
.hero-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
.hero-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  text-align: center;
}
.hero-logo { height: 40px; margin: 0 auto 40px; }
.hero-headline { font-size: 34px; max-width: 640px; line-height: 1.3; margin-bottom: 12px; }
.hero-subtext { color: #93a3b3; font-size: 15px; margin-bottom: 8px; }
.hero-auth-card { margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Evidence guarantee badge — "100% evidence-based, correct results"   */
/* ------------------------------------------------------------------ */
.evidence-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  border: 1px solid rgba(45,212,191,0.45);
  background: rgba(45,212,191,0.08);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 0 14px rgba(45,212,191,0.12);
}
.evidence-guarantee-badge i { font-size: 12px; }

/* ------------------------------------------------------------------ */
/* Site-wide footer — every page                                      */
/* ------------------------------------------------------------------ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.site-footer .footer-divider { opacity: 0.4; }
.site-footer .powered-by strong { color: var(--teal); font-weight: 700; }
.main-content-col { flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.main-content-col .site-footer { margin-top: auto; }
.hero-page .site-footer { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Mobile / responsive — sidebar collapses to a horizontal top bar,    */
/* hero orbs stack, corner sparkles hide, footer stacks.               */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .app-shell { flex-direction: column; min-height: auto; }
  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 12px;
    gap: 8px;
    overflow-x: auto;
  }
  .sidebar .brand-logo-img { flex-shrink: 0; margin-bottom: 0 !important; margin-left: 0 !important; height: 24px; }
  .sidebar nav { display: flex; flex-direction: row; align-items: center; gap: 4px; flex: 1; overflow-x: auto; }
  .sidebar nav a, .sidebar nav button {
    width: auto; white-space: nowrap; margin-bottom: 0; padding: 8px 10px; font-size: 13px;
  }
  .sidebar nav a.active::before, .sidebar nav button.active::before {
    left: 6px; right: 6px; top: auto; bottom: -2px; width: auto; height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .sidebar nav i { font-size: 14px; }
  .sidebar nav .signout-btn { margin-top: 0 !important; } /* sign out sits inline on mobile, not pinned below */
  .main-content { padding: 20px 16px; max-width: 100%; }
  .main-content-col { min-height: auto; }
}

@media (max-width: 600px) {
  .hero-sparkle-corner { display: none; }
  .hero-orbs-row { gap: 24px; }
  .hero-orb { width: 60px; height: 60px; font-size: 15px; }
  .hero-orb-pill { font-size: 9.5px; padding: 3px 8px; }
  .site-footer { flex-direction: column; gap: 6px; padding: 16px 16px 22px; }
  .glass-card { padding: 18px; }
  .brand-logo-img { height: 26px; }
  .hero-logo { height: 32px; margin-bottom: 28px; }
  .hero-headline { font-size: 24px; }
  .hero-content { padding: 32px 16px 16px; }
  .hero-helix-line { height: 30px; }
}

@media (max-width: 420px) {
  .growth-hub-grid { grid-template-columns: 1fr; }
  .stat-card .num { font-size: 20px; }
  .key-moments-track { flex-direction: column; gap: 18px; }
  .key-moments-line { display: none; }
  /* Icon-only nav on very small phones — labels reappear above 420px */
  .nav-label { display: none; }
  .sidebar nav a, .sidebar nav button { padding: 8px; }
  .sidebar nav i { margin-right: 0 !important; font-size: 17px; }
}
