@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --navy:     #003D5C;
  --blue:     #005F86;
  --blue-d:   #004D6E;
  --blue-l:   #E8F4F8;
  --blue-m:   #CCE8F2;
  --red:      #C9252B;
  --red-l:    #FFF0F0;
  --red-m:    #F5C0C0;
  --amber:    #D97706;
  --amber-l:  #FFFBEB;
  --green:    #047857;
  --green-l:  #ECFDF5;
  --purple:   #2C3E7A;
  --purple-l: #EEF0FB;
  --teal:     #0D9488;
  --teal-l:   #F0FDFA;
  --text:     #1A1A1A;
  --text-m:   #444444;
  --grey:     #6B7280;
  --border:   #E5E7EB;
  --bg:       #F7F8FA;
  --white:    #FFFFFF;
  --content:  720px;   /* shared centred content band — header, card & FAQ all align to it */
  --gutter:   max(24px, calc((100% - var(--content)) / 2));
  --radius:   12px;
  --shadow:   0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md:0 4px 6px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.08);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */
.ns-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--gutter);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,.04);
}
.ns-header-right {
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.ns-logo { height: 32px; width: auto; }

/* ── PROGRESS ───────────────────────────────────────────────────────────── */
.progress-wrap { margin-bottom: 28px; }
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: .02em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.progress-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
  border-radius: 3px;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ── LAYOUT ─────────────────────────────────────────────────────────────── */
/* Header, main card and FAQ share the same centred band (--content) so the
   logo, the card edge and the FAQ all line up on wide screens. */
.main { padding: 40px var(--gutter) 100px; }

/* ── CARD ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) { .card { padding: 28px 20px; } }

/* ── SCREEN VISIBILITY ──────────────────────────────────────────────────── */
.screen { display: none; }
.screen.active { display: block; }

/* ── BADGE ──────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-l);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--blue-m);
}

/* ── INTRO ──────────────────────────────────────────────────────────────── */
.intro-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.5px;
  color: var(--text);
  margin-bottom: 16px;
}
/* The stat number (e.g. "73%") gets a red colour pop via JS */
.intro-h1 .stat-highlight { color: var(--red); }
.red-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: top;
  margin-top: 10px;
}
.intro-sub {
  font-size: 15px;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── META STRIP ─────────────────────────────────────────────────────────── */
.meta-strip {
  display: flex;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 28px;
  overflow: hidden;
}
.meta-item { flex: 1; padding: 16px 0; text-align: center; border-right: 1px solid var(--border); }
.meta-item:last-child { border-right: none; }
.meta-label { font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; font-weight: 700; }
.meta-val { font-size: 18px; font-weight: 700; color: var(--blue); }

/* ── DIM CHIPS ──────────────────────────────────────────────────────────── */
.dim-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 28px;
}
.dim-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.dim-chip:hover {
  border-color: var(--blue-m);
  box-shadow: 0 2px 8px rgba(0,95,134,.08);
}
.dim-chip-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dim-chip-name { font-size: 13px; color: var(--text-m); font-weight: 500; }

/* ── QUESTION SCREEN ────────────────────────────────────────────────────── */
.screen-dim-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.screen-dim-tag { display: flex; align-items: center; gap: 10px; }
.dim-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,95,134,.25);
}
.dim-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── QUESTION BLOCK ─────────────────────────────────────────────────────── */
.question-block {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.question-block.last { border-bottom: none; padding-bottom: 0; margin-bottom: 20px; }

.q-dim-mini { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.q-dim-mini-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.q-dim-mini-name { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; }

.q-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── SCALE ──────────────────────────────────────────────────────────────── */
.scale-h { display: flex; gap: 6px; }
.scale-h-opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.scale-h-num {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--grey);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .18s cubic-bezier(.4,0,.2,1);
  background: var(--white);
}
.scale-h-opt:hover .scale-h-num {
  border-color: var(--blue);
  background: var(--blue-l);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,95,134,.12);
}
.scale-h-opt.sel .scale-h-num {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,95,134,.30);
}
.scale-h-lbl {
  font-size: 10px;
  color: var(--grey);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}
.scale-h-opt.sel .scale-h-lbl { color: var(--blue); font-weight: 700; }

/* ── NAV BUTTONS ────────────────────────────────────────────────────────── */
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.btn-back {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--grey);
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.btn-back:hover { border-color: var(--grey); color: var(--text); background: var(--bg); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
  box-shadow: 0 2px 8px rgba(0,95,134,.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--navy) 100%);
  box-shadow: 0 4px 16px rgba(0,95,134,.3);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  background: var(--border);
  color: var(--grey);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn-primary.full { width: 100%; padding: 15px; font-size: 16px; }

/* ── GATE SCREEN ────────────────────────────────────────────────────────── */
.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-l);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(13,148,136,.2);
}
.gate-h2 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -.3px; }
.gate-sub { font-size: 15px; color: var(--text-m); line-height: 1.65; margin-bottom: 24px; }

.stage-pips { display: flex; gap: 5px; margin-bottom: 24px; }
.pip { flex: 1; height: 5px; border-radius: 3px; }

.form-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

input[type=text], input[type=email] {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: white;
}
input[type=text]:focus, input[type=email]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,95,134,.1);
}
input::placeholder { color: #AAAAAA; }

.privacy { font-size: 12px; color: var(--grey); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ── RESULTS SCREEN ─────────────────────────────────────────────────────── */
.stage-box {
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.stage-box::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.stage-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 10px;
  opacity: .8;
}
.stage-big {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -2px;
}
.stage-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.stage-score {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,.25);
}
.stage-desc { font-size: 14px; line-height: 1.7; max-width: 440px; margin: 0 auto; opacity: .85; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 16px;
}

.dim-rows { margin-bottom: 28px; }
.dim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dim-row-label { font-size: 13px; color: var(--text); width: 190px; flex-shrink: 0; font-weight: 500; line-height: 1.3; }
.dim-bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.dim-bar { height: 100%; border-radius: 6px; transition: width .7s cubic-bezier(.4,0,.2,1) .1s; }
.dim-val { font-size: 13px; font-weight: 700; width: 36px; text-align: right; flex-shrink: 0; }

.gap-block {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--red-m);
  background: var(--red-l);
  position: relative;
  padding-left: 20px;
}
.gap-block::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 10px 0 0 10px;
}
.gap-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--red); margin-bottom: 6px; }
.gap-text { font-size: 13px; line-height: 1.65; color: var(--text-m); }

.confirm-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}
.confirm-h { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.confirm-p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.7; }
.confirm-contact { margin-top: 14px; font-size: 13px; font-weight: 600; }
.confirm-contact a { color: rgba(255,255,255,.9); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 1px; }
.confirm-contact a:hover { color: white; border-bottom-color: white; }

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

/* ── FAQ SECTION ────────────────────────────────────────────────────────── */
.faq-section {
  padding: 8px var(--gutter) 90px;
}
.faq-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
}
.faq-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.faq-subhead {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 28px;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s;
}
.faq-item:hover { border-color: var(--blue-m); }
.faq-item.open { border-color: var(--blue-m); box-shadow: 0 4px 16px rgba(0,95,134,.10); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 19px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue-l);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform .25s cubic-bezier(.4,0,.2,1), background .2s, color .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer { max-height: 1600px; }
.faq-answer-inner {
  margin: 0 22px;
  padding: 16px 0 20px;
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-answer-inner strong { color: var(--text); font-weight: 600; }
.faq-answer-inner a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--blue-m);
  transition: border-color .15s;
}
.faq-answer-inner a:hover { border-bottom-color: var(--blue); }
@media (max-width: 600px) {
  .faq-heading { font-size: 22px; }
  .faq-question { padding: 16px 18px; font-size: 15px; }
  .faq-answer-inner { margin: 0 18px; }
}
