/* EchoDepth Deferred CSS - Below-the-fold styles */

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  text-align: center;
}
.trust-bar-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.trust-bar-text span { color: var(--primary-dk); font-weight: 600; }

/* ── PROBLEM SECTION ── */
.problem-section { background: var(--bg-soft); }
.problem-section h2 { text-align: center; margin-bottom: 3rem; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.problem-card {
  background: var(--bg);
  padding: 2rem 2.2rem;
  border-radius: 12px;
  border-left: 4px solid var(--amber);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.problem-card h3 { color: var(--text); margin-bottom: 0.6rem; font-size: 1.05rem; }
.problem-card p  { font-size: 0.9rem; line-height: 1.7; }

.problem-quote {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
}
.problem-quote strong { color: var(--primary); }

/* ── FEATURES SECTION ── */
.features-section { background: var(--bg); }
.features-header { text-align: center; margin-bottom: 5rem; }
.features-header h2 { margin-bottom: 1rem; }
.features-header p { font-size: 1.1rem; max-width: 580px; margin: 0 auto; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-visual { order: -1; }

.feature-content h3 { font-size: 1.9rem; color: var(--text); margin-bottom: 0.4rem; }
.feature-subtitle { color: var(--primary); font-weight: 600; font-size: 1rem; margin-bottom: 1.2rem; }
.feature-content p { font-size: 0.97rem; line-height: 1.8; margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: var(--muted);
}
.feature-list li::before { content: '→'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── DASHBOARD MOCKUPS ── */
.mockup-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}
.mockup-wrap:hover { transform: scale(1.015); }

.mockup-titlebar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; }
.tb-dot-r { background: #ff5f57; }
.tb-dot-y { background: #febc2e; }
.tb-dot-g { background: #28c840; }
.mockup-titlebar-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-left: 8px;
}

.mockup-body { padding: 1.8rem; }
.mockup-body.screenshot { padding: 0; }
.mockup-body.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Dashboard #1 — Emotional Presence */
.score-ring {
  width: 100px; height: 100px;
  margin: 0 auto 0.6rem;
  position: relative;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.score-ring-num { font-size: 1.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score-ring-label { font-size: 0.58rem; color: var(--muted-2); letter-spacing: 0.08em; margin-top: 2px; }

.score-label { text-align: center; font-size: 0.75rem; color: var(--muted); margin-bottom: 1.2rem; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1rem; }
.metric-cell {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.metric-cell-label { font-size: 0.62rem; color: var(--muted); margin-bottom: 4px; font-family: var(--font-mono); }
.metric-cell-val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.status-row {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.status-tag { font-weight: 600; color: var(--green); }

/* Dashboard #2 — Chart mockup */
.chart-header-bar {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}
.chart-area {
  background: var(--bg-subtle);
  border-radius: 8px;
  height: 150px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.chart-legend {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--muted);
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.chart-trend { font-size: 0.72rem; color: var(--green); font-weight: 600; margin-top: 0.5rem; }

/* Dashboard #3 — Feedback report */
.overall-score-row {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.overall-score-circle {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(102,126,234,0.35);
}
.overall-score-label { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.overall-score-label strong { color: var(--text); display: block; font-size: 0.9rem; }

.feedback-block {
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.feedback-block.good { background: rgba(34,197,94,0.08); border-left: 3px solid var(--green); }
.feedback-block.warn { background: rgba(245,158,11,0.08); border-left: 3px solid var(--amber); }
.feedback-block h5 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.feedback-block.good h5 { color: var(--green); }
.feedback-block.warn h5 { color: var(--amber); }
.feedback-block p { color: var(--muted); margin: 0; }

.coaching-tip {
  background: rgba(102,126,234,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Dashboard #4 — Team Progress */
.team-stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 1.2rem;
}
.team-stat-cell {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.team-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.team-stat-label { font-size: 0.65rem; color: var(--muted); margin-top: 3px; font-family: var(--font-mono); letter-spacing: 0.06em; }

.progress-bar-row { margin-bottom: 10px; }
.progress-bar-label { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-bottom: 5px; }
.progress-bar-track { background: var(--bg-subtle); border-radius: 100px; height: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 100px; background: var(--grad); transition: width 1.5s ease; }

.team-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 1rem; }
.team-mini-cell { background: var(--bg-subtle); border-radius: 8px; padding: 10px 6px; text-align: center; }
.team-mini-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.team-mini-label { font-size: 0.58rem; color: var(--muted-2); margin-top: 2px; font-family: var(--font-mono); }

/* ── HOW IT WORKS ── */
.how-section { background: var(--bg-soft); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
.how-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.how-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.09); transform: translateY(-3px); }

.how-num {
  width: 52px; height: 52px;
  background: var(--grad);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(102,126,234,0.35);
}
.how-card h3 { color: var(--text); margin-bottom: 0.9rem; font-size: 1.25rem; }
.how-card .how-desc { font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.2rem; }
.how-benefits { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.how-benefits li {
  font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 7px;
}
.how-benefits li::before { content: '→'; color: var(--primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── FAQ ── */
.faq-section { background: var(--bg); }
.faq-section h2 { text-align: center; margin-bottom: 3rem; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.8rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.8rem;
  cursor: default;
}
.faq-a { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }
.faq-a strong { color: var(--text); }

/* ── CTA ── */
.cta-section {
  background: var(--grad);
  color: #fff;
  text-align: center;
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-section h2 { color: #fff; margin-bottom: 1.2rem; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.88); max-width: 520px; margin: 0 auto 2.8rem; line-height: 1.75; }
.cta-note { margin-top: 1.2rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 5% 2.5rem;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: #fff; margin-bottom: 0.8rem;
}
.footer-brand-name span { color: var(--primary); }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; max-width: 260px; color: #cbd5e1; }
.footer-brand .powered { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.footer-brand .powered a { color: #93c5fd; text-decoration: underline; text-underline-offset: 2px; }
.footer-col h5, .footer-col-heading { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul a { font-size: 0.84rem; color: rgba(255,255,255,0.75); transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width); margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.72rem; color: #cbd5e1;
  font-family: var(--font-mono);
}
.footer-bottom p { margin: 0; color: #cbd5e1; }
.footer-bottom a { color: #cbd5e1; transition: color 0.2s; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .feature-row { gap: 3rem; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 2rem 5%; gap: 1.4rem; border-bottom: 1px solid var(--border); z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-row.reverse .feature-visual { order: 0; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── NOSCRIPT FALLBACKS ── */
/* Show mobile nav and animations when JS is disabled */
.no-js .nav-links { display: flex !important; position: static; background: transparent; flex-direction: row; padding: 0; gap: 1.4rem; border-bottom: none; box-shadow: none; flex-wrap: wrap; }
.no-js .hamburger { display: none !important; }
.no-js .fade-up { opacity: 1; transform: none; }
