/* Main Stylesheet - SMEAT Assessment Framework
 *
 * Thrushcross Verify design language: light ground, hairline rules, tight
 * display type, uppercase letterspaced micro-labels, status carried by pills.
 *
 * Variable NAMES are deliberately unchanged from the previous dark theme.
 * forms.css, analysis.css, and the inline styles in the HTML all consume
 * them, so repointing the values here converts every surface at once.
 */

:root {
  /* Surface (was dark) */
  --bg: #ffffff;
  --surface: #fafaf8;
  --surface2: #f4f4f1;

  /* Line */
  --border: #e4e4e0;
  --border-strong: #d2d2cc;

  /* Ink */
  --text: #111111;
  --muted: #6e6e6e;
  --faint: #9a9a9a;

  /* Accents collapse to ink — the language carries emphasis with weight,
     rule, and letterspacing rather than hue. */
  --accent: #111111;
  --accent2: #111111;
  --accent3: #6e6e6e;

  /* Signal */
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --good: #15803d;
  --good-bg: #dcfce7;
  --info: #1d4ed8;
  --info-bg: #dbeafe;

  /* Maturity scale 1-4: Advanced, Developing, Emerging, Nascent */
  --s1: #15803d;
  --s2: #1d4ed8;
  --s3: #b45309;
  --s4: #b91c1c;

  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --masthead-h: 64px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The dark theme's grid overlay does not belong on a light ground. */
body::before {
  content: none;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Masthead ================================================================= */

.masthead {
  height: var(--masthead-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  background: #000;
  color: #fff;
}

.masthead a {
  color: #fff;
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wordmark:hover {
  text-decoration: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.masthead-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* Container ================================================================ */

.app {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 80px;
  animation: fadein 0.25s ease;
}

/* Typography =============================================================== */

h1,
h2,
h3 {
  font-family: var(--sans);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 16px;
}

/* Page head ================================================================ */

.header {
  text-align: left;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  font-weight: 500;
}

/* The dark theme drew rules either side of the eyebrow; the Thrushcross
   treatment is a plain letterspaced label. */
.eyebrow::before,
.eyebrow::after {
  content: none;
}

.header h1 {
  /* Was a mint-to-indigo gradient fill. */
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  margin-bottom: 12px;
}

.header p {
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Stepper ================================================================== */

.stepper {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 32px;
  overflow: hidden;
}

.step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  background: var(--bg);
}

.step-pill:hover {
  background: var(--surface);
}

.step-pill.active {
  background: var(--surface2);
}

.step-pill.locked {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  background: var(--bg);
  transition: all 0.15s;
}

.step-pill.active .step-num {
  border-color: var(--text);
  color: #fff;
  background: var(--text);
}

.step-pill.done .step-num {
  border-color: var(--good);
  color: var(--good);
  background: var(--good-bg);
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.step-sub-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-pill.active .step-label {
  color: var(--text);
}

.step-pill.done .step-label {
  color: var(--text);
}

.step-sep {
  width: 1px;
  height: auto;
  background: var(--border);
  flex-shrink: 0;
  margin: 0;
}

/* Cards ==================================================================== */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Badges =================================================================== */

.ai-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--surface2);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: auto;
  font-weight: 500;
}

/* Profile bar ============================================================== */

.profile-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-bar strong {
  color: var(--text);
  font-weight: 600;
}

.profile-bar a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Buttons ================================================================== */

.btn-primary,
.btn-secondary,
.btn-ai,
.btn-success {
  font-family: var(--sans);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.btn-primary:hover {
  background: #3d3d3d;
  border-color: #3d3d3d;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--surface2);
  border-color: var(--text);
  color: var(--text);
}

/* Was a violet-to-pink gradient. Kept distinct from the primary action by
   outline rather than hue. */
.btn-ai {
  background: var(--bg);
  color: var(--text);
  border-color: var(--text);
}

.btn-ai:hover {
  background: var(--surface2);
}

.btn-ai:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-success {
  background: var(--good-bg);
  color: var(--good);
  border-color: #b7e4c7;
  padding: 11px 20px;
}

.btn-success:hover {
  background: #c9f5d8;
}

.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Links ==================================================================== */

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive =============================================================== */

@media (max-width: 760px) {
  .app {
    padding: 24px 16px 60px;
  }

  .stepper {
    flex-direction: column;
  }

  .step-sep {
    width: auto;
    height: 1px;
  }

  .step-sub-label {
    display: none;
  }

  .card {
    padding: 18px 16px;
  }

  .masthead {
    padding: 0 16px;
  }

  .masthead-meta {
    display: none;
  }
}
