/* ============================================================================
 * Strategist CM Staffing Agency — stainless steel + black theme
 * ========================================================================== */
:root {
  --bg: #0a0b0d;
  --bg-2: #101215;
  --panel: #15181d;
  --panel-2: #1b1f26;
  --line: #2b3038;
  --line-soft: #22262d;
  --steel-1: #f4f6f9;
  --steel-2: #ccd1d9;
  --steel-3: #8f959e;
  --steel-4: #5d626b;
  --text: #eceef1;
  --muted: #9aa1ab;
  --faint: #6b717a;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #7dd3fc;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(1200px 600px at 50% -10%, #1a1e24 0%, var(--bg) 55%) fixed,
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--steel-1); }

/* ---- layout ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(145deg, #f2f4f7 0%, #aeb4bd 45%, #6e747d 100%);
  display: grid; place-items: center;
  font-weight: 800; color: #101215; font-size: 18px;
  box-shadow: 0 2px 10px rgba(200, 205, 215, 0.25);
}
.brand-name { font-weight: 700; letter-spacing: 0.04em; font-size: 15px; }
.brand-name small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
nav.mainnav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav.mainnav a, nav.mainnav button.linklike {
  color: var(--muted); text-decoration: none; font-size: 14px;
  padding: 8px 12px; border-radius: 8px; border: 0; background: none; cursor: pointer;
}
nav.mainnav a:hover, nav.mainnav button.linklike:hover { color: var(--text); background: var(--panel-2); }
nav.mainnav a.active { color: var(--text); background: var(--panel-2); }

/* ---- hero / landing ---- */
.hero { padding: 84px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.22em;
  color: var(--steel-3); text-transform: uppercase; margin-bottom: 18px;
  border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px); line-height: 1.08; margin: 0 0 18px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 20%, #b9bfc8 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto 34px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.06s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-steel {
  background: linear-gradient(180deg, #f5f7fa 0%, #c9ced6 55%, #a9afb9 100%);
  color: #101215; box-shadow: 0 4px 18px rgba(200, 206, 216, 0.18);
}
.btn-steel:hover { box-shadow: 0 6px 24px rgba(200, 206, 216, 0.3); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--steel-4); background: var(--panel); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: transparent; border-color: #5b2b2b; color: var(--bad); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---- cards / panels ---- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin: 0 0 10px; font-size: 18px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.card .card-icon { font-size: 26px; margin-bottom: 12px; }

.section { padding: 44px 0; }
.section h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
.section .sub { color: var(--muted); margin: 0 0 26px; max-width: 680px; }

/* ---- S.E.T-Money strip ---- */
.setmoney {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: 22px;
}
@media (max-width: 720px) { .setmoney { grid-template-columns: 1fr 1fr; } }
.setmoney .step { padding: 22px 18px; background: var(--panel); border-left: 1px solid var(--line-soft); }
.setmoney .step:first-child { border-left: 0; }
.setmoney .step .n {
  font-size: 12px; color: var(--faint); letter-spacing: 0.18em; margin-bottom: 6px;
}
.setmoney .step .t { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.setmoney .step .d { font-size: 13px; color: var(--muted); }
.setmoney-note { margin-top: 14px; font-size: 13.5px; color: var(--faint); }

/* ---- forms ---- */
form.styled { display: grid; gap: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  background: #0e1013; border: 1px solid var(--line); color: var(--text);
  font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel-4); box-shadow: 0 0 0 3px rgba(150,158,170,0.15);
}
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.checkline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.checkline input { width: 18px; height: 18px; accent-color: #c9ced6; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-soft); margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: none; border: 0; color: var(--muted); font-size: 14.5px; font-weight: 600;
  padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--steel-2); }
.tabs button:hover { color: var(--text); }

/* ---- pipeline / stages ---- */
.stages { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.stage-pill {
  font-size: 12.5px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--faint); background: var(--panel);
}
.stage-pill.done { color: #101215; background: linear-gradient(180deg, #e8ebef, #b9bfc8); border-color: transparent; font-weight: 600; }
.stage-pill.now { color: var(--text); border-color: var(--steel-3); background: var(--panel-2); font-weight: 600; }
.stage-pill.bad { color: var(--bad); border-color: #5b2b2b; }

/* ---- tables ---- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:hover td { background: rgba(255,255,255,0.015); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }

/* ---- misc components ---- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
  text-transform: capitalize; white-space: nowrap;
}
.badge.ok { color: var(--ok); border-color: #1d4a30; }
.badge.warn { color: var(--warn); border-color: #5a4517; }
.badge.bad { color: var(--bad); border-color: #5b2b2b; }
.badge.info { color: var(--info); border-color: #1e3f52; }
.badge.steel { color: #101215; background: linear-gradient(180deg, #e8ebef, #b9bfc8); border-color: transparent; }

.progress { height: 10px; background: #0e1013; border: 1px solid var(--line-soft); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, #9aa1ab, #e8ebef); border-radius: 999px; transition: width 0.3s ease; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert.err { background: rgba(248,113,113,0.08); border-color: #5b2b2b; color: #fca5a5; }
.alert.ok { background: rgba(74,222,128,0.08); border-color: #1d4a30; color: #86efac; }
.alert.info { background: rgba(125,211,252,0.07); border-color: #1e3f52; color: #bae6fd; }
.alert.warn { background: rgba(251,191,36,0.08); border-color: #5a4517; color: #fde68a; }

.empty { text-align: center; padding: 44px 20px; color: var(--faint); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .big { font-size: 34px; margin-bottom: 10px; }

.accordion { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.accordion > button.head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: var(--panel); border: 0; color: var(--text); padding: 16px 18px;
  font-size: 15.5px; font-weight: 650; cursor: pointer; text-align: left;
}
.accordion > button.head:hover { background: var(--panel-2); }
.accordion > button.head .meta { font-size: 12.5px; color: var(--faint); font-weight: 400; }
.accordion .body { display: none; border-top: 1px solid var(--line-soft); }
.accordion.open .body { display: block; }
.lesson-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: rgba(255,255,255,0.015); }
.lesson-row .t { display: flex; gap: 10px; align-items: center; }
.lesson-row .num { color: var(--faint); font-size: 12.5px; min-width: 34px; }

.detail-drawer {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 24px; margin-top: 18px;
}
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; font-size: 14px; margin-bottom: 6px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 8px; } }

footer.site { border-top: 1px solid var(--line-soft); margin-top: 64px; padding: 28px 0 40px; color: var(--faint); font-size: 13px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.config-error {
  max-width: 720px; margin: 60px auto; padding: 22px;
  border: 1px solid #5a4517; background: rgba(251,191,36,0.07);
  border-radius: var(--radius); color: #fde68a; font-size: 14.5px;
}
.config-error code { background: rgba(0,0,0,0.35); padding: 2px 6px; border-radius: 5px; }

.quiz-q { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--bg-2); }
.quiz-q .stem { font-weight: 600; margin-bottom: 12px; }
.quiz-q label.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.quiz-q label.opt:hover { background: var(--panel-2); }
