/* =============================================================
   landing.css — High-converting landing page styles
   Resilience Atlas Marketing Site
   ============================================================= */

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f2942 0%, #1a3a5c 60%, #163351 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(79,70,229,.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(79,70,229,.25);
  border: 1px solid rgba(79,70,229,.5);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-ctas .btn-hero-primary {
  background: #4F46E5;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background 200ms, transform 150ms;
}

.hero-ctas .btn-hero-primary:hover {
  background: #4338CA;
  transform: translateY(-2px);
  text-decoration: none;
}

.hero-ctas .btn-hero-secondary {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  font-size: 1.05rem;
  font-weight: 600;
  padding: .85rem 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background 200ms, transform 150ms;
}

.hero-ctas .btn-hero-secondary:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Section base ─────────────────────────────────────────── */
.landing-section {
  padding: 5rem 1.5rem;
}

.landing-section.alt-bg {
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #4F46E5;
  margin-bottom: .75rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin-bottom: .75rem;
}

.section-header p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
}

/* ── Six Dimensions Grid ──────────────────────────────────── */
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.dimension-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: box-shadow 200ms, transform 200ms;
}

.dimension-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  transform: translateY(-3px);
}

.dimension-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: .75rem;
}

.dimension-icon--relational  { background: #EDE9FE; }
.dimension-icon--cognitive   { background: #DBEAFE; }
.dimension-icon--somatic     { background: #D1FAE5; }
.dimension-icon--emotional   { background: #FEE2E2; }
.dimension-icon--spiritual   { background: #FEF3C7; }
.dimension-icon--agentic     { background: #FCE7F3; }

.dimension-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin-bottom: .4rem;
}

.dimension-card p {
  font-size: .95rem;
  color: #475569;
  line-height: 1.6;
}

/* ── Example Results Section ──────────────────────────────── */
.example-results {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 640px) {
  .example-results {
    grid-template-columns: 1fr;
  }
}

.example-radar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.example-profile-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.07);
}

.example-profile-card .profile-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4F46E5;
  margin-bottom: .5rem;
}

.example-profile-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin-bottom: .75rem;
}

.example-profile-card p {
  font-size: .95rem;
  color: #475569;
  line-height: 1.6;
}

.example-profile-badge {
  display: inline-block;
  background: #EDE9FE;
  color: #4F46E5;
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* ── Social Proof ─────────────────────────────────────────── */
.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.testimonial-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.testimonial-card blockquote {
  font-size: .97rem;
  color: #334155;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4F46E5, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.testimonial-meta strong {
  display: block;
  font-size: .9rem;
  color: #0f172a;
  font-weight: 600;
}

.testimonial-meta span {
  font-size: .82rem;
  color: #64748b;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #4F46E5;
  line-height: 1;
}

.stat-label {
  font-size: .9rem;
  color: #64748b;
  margin-top: .3rem;
}

/* ── B2B / Business Section ───────────────────────────────── */
.business-section {
  background: linear-gradient(135deg, #0f2942 0%, #1a3a5c 100%);
  color: #fff;
}

.business-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 640px) {
  .business-inner {
    grid-template-columns: 1fr;
  }
}

.business-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.business-inner p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.business-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.business-benefits li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .97rem;
  color: #cbd5e1;
  margin-bottom: .7rem;
}

.business-benefits li::before {
  content: '✓';
  color: #34d399;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

.btn-business {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #4F46E5;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms, transform 150ms;
}

.btn-business:hover {
  background: #4338CA;
  transform: translateY(-2px);
  text-decoration: none;
}

.business-dashboard-preview {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
}

.dashboard-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.mock-card {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.mock-card .mock-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #a5b4fc;
  line-height: 1;
}

.mock-card .mock-label {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: .3rem;
}

/* ── Final CTA Section ────────────────────────────────────── */
.final-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--slate-900, #0f172a);
  margin-bottom: .75rem;
}

.final-cta p {
  color: #475569;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── Educational Why Section ──────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.why-card {
  padding: 1.5rem;
  border-left: 3px solid #4F46E5;
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900, #0f172a);
  margin-bottom: .4rem;
}

.why-card p {
  font-size: .92rem;
  color: #475569;
  line-height: 1.6;
}

/* ── Responsive compass canvas ────────────────────────────── */
.hero-radar-preview canvas,
.example-radar canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 360px;
  margin: 0 auto;
}

.hero-radar-preview {
  max-width: 360px;
  margin: 0 auto;
  opacity: .95;
  /* ensure canvas is never clipped by the hero overflow:hidden */
  overflow: visible;
}

/* ── Compass dominant-dimension label (HTML fallback) ─────── */
.compass-dominant-label {
  display: block;
  text-align: center;
  margin-top: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: #1565C0;
  letter-spacing: .02em;
}

/* ── Dark Mode ────────────────────────────────────────────── */

/* Card headings must stay dark since cards are forced to white background in dark mode */
[data-theme="dark"] .dimension-card h3,
[data-theme="dark"] .example-profile-card h3,
[data-theme="dark"] .why-card h4 {
  color: #0f172a;
}

[data-theme="dark"] .dimension-card,
[data-theme="dark"] .example-profile-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .example-radar {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="dark"] .landing-section.alt-bg {
  background: #0f172a;
}

[data-theme="dark"] .dimension-card p,
[data-theme="dark"] .example-profile-card p,
[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .why-card p {
  color: #475569;
}

[data-theme="dark"] .section-header p,
[data-theme="dark"] .final-cta p {
  color: var(--slate-600, #94a3b8);
}

[data-theme="dark"] .section-label {
  color: var(--blue, #818cf8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dimension-card,
  :root:not([data-theme="light"]) .example-profile-card,
  :root:not([data-theme="light"]) .testimonial-card,
  :root:not([data-theme="light"]) .why-card,
  :root:not([data-theme="light"]) .example-radar {
    background: #ffffff;
    border-color: #e2e8f0;
  }

  :root:not([data-theme="light"]) .landing-section.alt-bg {
    background: #0f172a;
  }

  :root:not([data-theme="light"]) .dimension-card h3,
  :root:not([data-theme="light"]) .example-profile-card h3,
  :root:not([data-theme="light"]) .why-card h4 {
    color: #0f172a;
  }

  :root:not([data-theme="light"]) .dimension-card p,
  :root:not([data-theme="light"]) .example-profile-card p,
  :root:not([data-theme="light"]) .testimonial-card p,
  :root:not([data-theme="light"]) .why-card p,
  :root:not([data-theme="light"]) .section-header p,
  :root:not([data-theme="light"]) .final-cta p {
    color: var(--slate-600, #94a3b8);
  }

  :root:not([data-theme="light"]) .section-label {
    color: var(--blue, #818cf8);
  }
}
