/* Colours cross-referenced against the live RFE ScoreApp funnel
   (growthgap.scoreapp.com), sampled from computed styles and the
   ScaleOS™ logo asset actually in use, not guessed. Real palette found:
   deep purple as a rare dark accent, solid orange as the functional
   action colour (buttons), pink/magenta only inside the logo's gradient
   wordmark (never used for UI elements), near-black body text, white/
   light-grey backgrounds. Reassigned below: pink is kept for the
   brand-mark only, matching how it's actually used; orange replaces pink
   as the functional action colour throughout (buttons, links, focus
   states, tags) to match. */
:root {
  --purple: #250E66;
  --purple-light: #3A1D8C;
  --pink: #EE2D7E;
  --pink-dark: #D63270;
  --orange: #FF8A00;
  --orange-dark: #D97600;
  --grey: #6B7280;
  --bg: #F2F2F3;
  --border: #D9DCE3;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--purple);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* Branded header band, styled after the RFE LinkedIn banner */
.site-header {
  background: var(--purple);
  padding: 40px 16px 56px;
  margin-bottom: -32px; /* lets the first card overlap the band slightly */
}

.site-header-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ScaleOS wordmark. Supplied as a JPG on white, so the white was stripped to
   transparency before use, otherwise it renders as a white box on the purple
   band. */
.brand-logo {
  display: block;
  width: 190px;
  max-width: 60%;
  height: auto;
  margin: 0 auto 22px;
}

.hero-headline {
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero-subheadline {
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 14px;
  line-height: 1.55;
}

.hero-privacy {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-style: italic;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

/* Shown in place of the intro block once results are on screen, so the purple
   band carries the logo and one line rather than the whole pitch again. */
.hero-results {
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-results.hidden, #hero-intro.hidden { display: none; }

.hero-tagline {
  color: var(--orange);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

/* Sits just above the submit button, moved out of the hero so the top of the
   page is headline only. */
.form-tagline {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
  text-align: center;
  margin: 20px 0 12px;
}

/* Reassurance placed immediately before the revenue questions, which is where
   hesitation actually happens, not at the top of the page. */
.confidentiality-note {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.5;
  margin: -6px 0 16px;
  padding-left: 20px;
  position: relative;
}

.confidentiality-note::before {
  content: "\1F512";
  position: absolute;
  left: 0;
  font-size: 11px;
}

.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 4px 16px rgba(37,14,102,0.12);
}

.card.hidden { display: none; }

h1, h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; line-height: 1.3; color: var(--purple); }

.form-eyebrow {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.subhead {
  color: var(--grey);
  margin-bottom: 16px;
  font-size: 14px;
}

.form-facts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.form-facts li {
  font-size: 14px;
  color: var(--purple);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.form-facts li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--purple);
}

form input, form select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}

form input:focus, form select:focus {
  outline: none;
  border-color: var(--orange);
}

button[type="submit"] {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
}

button[type="submit"]:hover { background: var(--orange-dark); }

.disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--grey);
  margin-top: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--orange-dark);
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 16px;
  font-size: 14px;
  font-family: inherit;
}

.form-divider {
  text-align: center;
  margin: 28px 0 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

.form-divider span {
  position: relative;
  top: -11px;
  background: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.scores-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 8px;
}

.score-explainer {
  font-size: 15px;
  color: var(--purple);
  line-height: 1.6;
  margin: 12px 0 0;
}

.score-card {
  flex: 1;
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.score-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--grey);
  margin-bottom: 6px;
}

.score-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--purple);
  overflow-wrap: break-word;
}

.score-band {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.score-band.low { color: #C0392B; }
.score-band.medium { color: var(--orange-dark); }
.score-band.high { color: #1E8A4C; }

.score-caveat {
  font-size: 12px;
  color: var(--grey);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.4;
}

.chart-container {
  margin: 16px 0 8px;
  height: 260px;
}

.chart-stat {
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 4px;
}

.chart-caption {
  font-size: 13px;
  color: var(--grey);
  margin: 0 0 8px;
  line-height: 1.5;
}

.benchmark-citation {
  font-size: 11px;
  color: var(--grey);
  margin: 0 0 8px;
  line-height: 1.5;
  font-style: italic;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  border-top: 1px solid #EAEBEF;
  margin-top: 24px;
  padding-top: 20px;
}

.tag-list, .rec-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.tag-list li {
  display: inline-block;
  background: rgba(255,138,0,0.10);
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 0 8px 8px 0;
}

.rec-list li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
}

.rec-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.methodology-note {
  font-size: 12px;
  color: var(--grey);
  margin: 24px 0 0;
}

.analysis-block { margin-bottom: 18px; }

.analysis-block h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin: 0 0 6px;
}

.analysis-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.capture-sub {
  font-size: 14px;
  color: var(--grey);
  margin: 0 0 14px;
  line-height: 1.5;
}

.capture-row {
  display: flex;
  gap: 10px;
}

.cta input {
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  text-align: left;
}

.capture-row input { margin-bottom: 10px; }

.cta input:focus {
  outline: none;
  border-color: var(--orange);
}

.cta button[type="submit"] {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cta button[type="submit"]:hover { background: var(--orange-dark); }

.cta-divider {
  text-align: center;
  margin: 20px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.cta-divider span {
  position: relative;
  top: -11px;
  background: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.cta-secondary {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
  margin: 0 0 14px;
}

.capture-note {
  text-align: center;
  font-size: 11px;
  color: var(--grey);
  margin: 10px 0 0;
}

.capture-success {
  font-size: 14px;
  color: var(--purple);
  font-weight: 600;
  text-align: center;
  padding: 10px 0 0;
}

.cta {
  text-align: center;
  margin-top: 12px;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary:hover { background: var(--orange-dark); }

@media (max-width: 480px) {
  .card { padding: 20px 16px; }
  .hero-headline { font-size: 25px; }
  .hero-results { font-size: 30px; }
  .hero-subheadline { font-size: 15px; }
  .brand-logo { width: 160px; }
  .site-header { padding: 32px 16px 48px; }
}
