/* Jobs After AI quiz — brand: dark-mode primary, EB Garamond SemiBold headings,
   Inter body, rust orange #b96842 accent (see marketing/06-brand-identity.md) */

:root {
  --bg: #161412;
  --surface: #211e1b;
  --surface-2: #2a2622;
  --text: #ece7e1;
  --text-dim: #a89f95;
  --accent: #b96842;
  --accent-soft: rgba(185, 104, 66, 0.16);
  --border: #3a342e;
  --radius: 10px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; }
/* auto vertical margins center short screens but collapse to 0 when content
   overflows the viewport, so long screens (breakdown) still scroll normally */
.screen { margin: auto 0; width: 100%; }
footer { text-align: center; padding: 24px; color: var(--text-dim); font-size: 13px; }
footer a { color: var(--text-dim); }

h1, h2, .masthead, .score {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
}

.masthead {
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 28px;
}
.masthead-q { font-size: 15px; margin-bottom: 18px; }

/* Share-arrival comparison: a rust score badge (echoes the share card's score
   badge) + label, above the H1. Noticeable, on-brand, still under the H1. */
.intro-shared {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.intro-shared-badge {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 26px;
  text-align: center;
  line-height: 52px;
}
.intro-shared-label { display: flex; flex-direction: column; line-height: 1.25; }
.intro-shared-cap {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.intro-shared-band {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

h1 { font-size: 42px; line-height: 1.12; margin-bottom: 18px; }
h2 { font-size: 30px; line-height: 1.2; margin-bottom: 8px; }
h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }

.lede { color: var(--text-dim); font-size: 17px; margin-bottom: 32px; }
.sub { color: var(--text-dim); margin-bottom: 8px; }
.fineprint { color: var(--text-dim); font-size: 13px; margin-top: 16px; }
.fineprint a { color: var(--text-dim); }

/* Card wrapper for intro + question screens (result screen uses inner .card blocks) */
.screen-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
}

/* Progress */
.progress { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s; }
.progress-label { font-size: 15px; color: var(--text-dim); margin-bottom: 28px; }

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.4; cursor: default; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 15px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Options */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.option {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 18px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.option:hover { border-color: var(--accent); }
.option.selected { background: var(--accent-soft); border-color: var(--accent); }
.option-sub { display: block; font-size: 13px; color: var(--text-dim); margin-top: 3px; }

/* Occupation search */
.search-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 16px 18px;
  font-size: 17px;
  font-family: "Inter", sans-serif;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.search-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.search-item:hover { border-color: var(--accent); }
.search-item span { color: var(--text-dim); font-size: 13px; }
.search-free { color: var(--text-dim); font-style: italic; }

/* Result */
.result { text-align: center; }
.result-label { color: var(--text-dim); font-size: 15px; margin-bottom: 4px; }
.score { font-size: 96px; line-height: 1; color: var(--accent); }
.score-max { font-size: 28px; color: var(--text-dim); }
.band {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 14px 0 6px;
}
.band-tone { color: var(--text-dim); margin-bottom: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 14px 0;
  text-align: left;
}
.action-card { border-left: 3px solid var(--accent); }

.share-row { margin: 18px 0; }
.share-card {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.share-label { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.share-icons { display: flex; justify-content: center; gap: 12px; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.share-btn:hover { color: var(--text); border-color: var(--accent); background: var(--surface); }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; }
.share-btn.copied { color: #5f8f6a; border-color: #5f8f6a; }

/* Gate */
.gate form { display: flex; gap: 10px; margin-top: 14px; }
.gate input[type="email"] {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
}
.gate input[type="email"]:focus { outline: none; border-color: var(--accent); }
.gate p { color: var(--text-dim); font-size: 14px; }

/* Breakdown */
.confirm-cta {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px;
  margin: 14px 0;
}
.cta-kicker {
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}
.confirm-cta h4 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--text);
  margin-bottom: 8px;
}
.confirm-cta p { font-size: 14px; color: var(--text); }
.confirm-cta .confirm-email { font-weight: 600; color: var(--text); }
/* Report-ranking teaser: real screenshot, bottom-faded (see quiz/build-report-peek.py).
   Full-bleed "media well" — bleeds to the card's inner edges, bg matches the baked
   fade colour (#121212) so the list dissolves into it. */
.report-peek {
  margin: 18px -18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #121212;
  overflow: hidden;
}
.report-peek img { display: block; width: 100%; }
.report-rank { font-size: 13px; color: var(--text-dim); margin-top: 16px; }
.report-rank strong { color: var(--text); font-weight: 600; }

/* Personalized rank stat — where the taker's role sits on the exposure spectrum. */
.rank-stat { margin-top: 18px; }
.rank-stat-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rank-occ-wrap { min-width: 0; text-align: left; }
.rank-eyebrow {
  display: block;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 1px;
}
.rank-occ {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700; font-size: 23px; line-height: 1.15; color: var(--text);
}
.rank-fig { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.rank-num { font-family: "EB Garamond", Georgia, serif; font-weight: 600; font-size: 36px; line-height: 1; color: var(--text); }
.rank-of { font-size: 12px; color: var(--text-dim); margin-top: 3px; white-space: nowrap; }
.rank-track {
  position: relative;
  height: 6px; border-radius: 3px; margin: 16px 0 6px;
  background: linear-gradient(90deg, #bd5a40, #c79a4e 50%, #5f8f6a);
}
.rank-marker {
  position: absolute; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
}
.rank-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.rank-cta {
  display: block; text-align: center; margin-top: 14px;
  color: var(--text); font-weight: 500; font-size: 14px;
}
.confirm-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 18px;
}
.confirm-note a { color: var(--accent); }
.driver { display: flex; gap: 14px; margin: 18px 0; }
.driver-num {
  flex: 0 0 28px; height: 28px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.driver-text { font-weight: 600; margin-bottom: 4px; }
.driver-action { color: var(--text-dim); font-size: 14px; }
.time-note { color: var(--text-dim); font-size: 14px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 18px; }

/* Paid pitch */
.paid-pitch { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 18px; }
.paid-pitch h3 { color: var(--accent); }
.paid-pitch ul { margin: 10px 0 14px 18px; color: var(--text-dim); font-size: 14px; }
.paid-pitch li { margin: 5px 0; }
.coming-soon { color: var(--text-dim); font-size: 14px; font-style: italic; }

@media (max-width: 520px) {
  .screen-card { padding: 24px 18px; }
  h1 { font-size: 32px; }
  .score { font-size: 72px; }
  .options-grid { grid-template-columns: 1fr; }
  .gate form { flex-direction: column; }
}
