/* ============================================================
   SM3 ONBOARDING — built on the SM3 People design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink:         #F5F7FA;
  --surface:     #FFFFFF;
  --surface-2:   #F9FAFB;
  --border:      #E5E7EB;
  --border-2:    #D1D5DB;

  --brand:       #4F46E5;
  --brand-soft:  #6366F1;
  --brand-dim:   rgba(79,70,229,0.10);
  --brand-glow:  rgba(79,70,229,0.22);

  --good:        #059669;
  --good-dim:    rgba(5,150,105,0.12);
  --bad:         #DC2626;
  --bad-dim:     rgba(220,38,38,0.12);
  --gold:        #D97706;
  --gold-dim:    rgba(217,119,6,0.12);

  --text:        #111827;
  --text-dim:    #374151;
  --text-faint:  #6B7280;

  --font-display: 'Plus Jakarta Sans', 'Manrope', 'Outfit', sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Manrope', 'Outfit', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --radius-sm: 8px;  --radius: 14px;  --radius-lg: 20px;  --radius-xl: 28px;

  --shadow:        0 4px 16px rgba(15,23,42,0.08), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-lg:     0 16px 40px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-brand:  0 8px 24px rgba(79,70,229,0.18);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ─── AUTH GATE ─────────────────────────────────────────── */
.auth-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.auth-gate-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: auth-gate-spin 0.7s linear infinite;
}
@keyframes auth-gate-spin { to { transform: rotate(360deg); } }
.auth-gate-text { font-size: 13px; color: var(--text-faint); font-weight: 600; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ─── TOP BAR ───────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 30px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  color: #fff;
  box-shadow: var(--shadow-brand);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}
.hero-eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; margin-bottom: 10px; position: relative; }
.hero h1 { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; position: relative; }
.hero p { font-size: 14.5px; opacity: 0.92; max-width: 560px; position: relative; }

/* ─── SECTION HEADERS ───────────────────────────────────── */
.chevron-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.chevron-divider .step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.chevron-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-desc { font-size: 13px; color: var(--text-faint); margin: -8px 0 16px; }

/* ─── CARDS / TILES ─────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-dim);
}
.icon-badge {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge.tone-brand { background: var(--brand-dim); color: var(--brand-soft); }
.icon-badge.tone-good  { background: var(--good-dim); color: var(--good); }
.icon-badge.tone-bad   { background: var(--bad-dim); color: var(--bad); }
.icon-badge.tone-gold  { background: var(--gold-dim); color: var(--gold); }

.card-title { font-weight: 700; font-size: 14.5px; letter-spacing: -0.01em; }
.card-desc { font-size: 12.5px; color: var(--text-faint); line-height: 1.5; }
.card-cta {
  margin-top: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--brand-soft);
}
.card-cta svg { width: 13px; height: 13px; transition: transform 0.2s; }
a.card:hover .card-cta svg { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px;
  background: var(--gold-dim); color: var(--gold);
  align-self: flex-start;
}
.badge.badge-hr { background: var(--bad-dim); color: var(--bad); }

/* Feature tile (Step 1) */
.feature-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand-dim); }
.feature-card .icon-badge { width: 56px; height: 56px; border-radius: 14px; }
.feature-card .icon-badge svg { width: 26px; height: 26px; }
.feature-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 4px; }
.feature-desc { font-size: 13px; color: var(--text-faint); }
.feature-arrow { margin-left: auto; color: var(--text-faint); flex-shrink: 0; }
.feature-arrow svg { width: 20px; height: 20px; }

/* ─── FOOTER ────────────────────────────────────────────── */
.footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.footer a { color: var(--brand-soft); font-weight: 600; }

@media (max-width: 640px) {
  .hero { padding: 32px 24px; }
  .hero h1 { font-size: 24px; }
  .feature-card { flex-wrap: wrap; }
  .feature-arrow { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}
