/* ============================================================================
   CareerAI Phase-0 — Design Tokens
   Palette: cool, quiet sage/teal — deliberately NOT the dark cyan/navy
   cybersecurity theme used elsewhere in the portfolio. This tool is for
   general career-switchers across any field, so it reads as calm and
   trustworthy rather than "hacker dashboard." One warm accent (amber) is
   reserved ONLY for the price/CTA, so the eye has exactly one place it's
   pulled to act.
   ============================================================================ */

:root {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --surface-muted: #EEF2F0;
  --border: #E2E8E6;
  --text: #1E2A28;
  --text-muted: #5B6B68;
  --accent: #3F7C74;
  --accent-dark: #2F5F58;
  --accent-soft: #E5EFEC;
  --cta: #C98A4B;
  --cta-dark: #AD7340;
  --success: #4F9C82;
  --warn: #B85C50;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 40, 0.04), 0 4px 16px rgba(30, 42, 40, 0.06);
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--accent-dark); letter-spacing: -0.01em; }
.logo span { color: var(--cta); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; text-align: center; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero p.lede {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}
.card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.card .subtle { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }

/* ---------- Pricing card (the one place the warm accent appears) ---------- */
.price-card { text-align: center; border-color: var(--cta); }
.price-amount { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--cta-dark); }
.price-amount span { font-size: 18px; font-weight: 500; color: var(--text-muted); }
.price-includes { text-align: left; max-width: 320px; margin: 18px auto 24px; font-size: 14px; color: var(--text-muted); }
.price-includes li { margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); }
.btn-secondary { background: var(--accent-soft); color: var(--accent-dark); }
.btn-secondary:hover { background: #DCEAE5; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Form elements ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  margin-bottom: 16px;
}
textarea { min-height: 220px; resize: vertical; font-family: 'JetBrains Mono', monospace; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.upload-zone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  background: var(--surface-muted);
}

/* ---------- Score readout ---------- */
.score-display { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.score-circle {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent-dark);
  flex-shrink: 0;
}
.score-summary { font-size: 14px; color: var(--text-muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.tag-list li {
  font-size: 12.5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  border: 1px solid var(--border);
}
.tag-list.strengths li { background: #EAF5F0; color: var(--accent-dark); border-color: #CFE7DD; }
.tag-list.weaknesses li { background: #FBEFEC; color: #8A4337; border-color: #F0D6CE; }

.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin: 18px 0 8px; }

/* ---------- Credit meter ---------- */
.credit-meter {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-muted); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 20px;
}
.credit-meter strong { color: var(--text); }

/* ---------- Course recommendation cards ---------- */
.course-item { border-top: 1px solid var(--border); padding: 14px 0; }
.course-item:first-child { border-top: none; padding-top: 0; }
.course-skill { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.course-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
@media (max-width: 600px) { .course-options { grid-template-columns: 1fr; } }
.course-option { background: var(--surface-muted); border-radius: 8px; padding: 10px 12px; }
.course-option .option-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 4px; }

.error-box { background: #FBEFEC; border: 1px solid #F0D6CE; color: #8A4337; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; margin-bottom: 16px; }

.footer-note { text-align: center; font-size: 12px; color: var(--text-muted); padding: 32px 0; }
