/* ==========================================================
   LOLA OWOLABI | BUSINESS GROWTH ALIGNMENT CHECK
   style.css : the single home for every design rule
   Palette: Espresso #251F1D | Cream #FDFBF7 | Blush #E8C1C5 | Gold #D4AF37
   Type: Playfair Display for display, Montserrat for body
   ========================================================== */

/* ---------- 1. TOKENS AND RESET ---------- */
:root {
  --bg: #FDFBF7;
  --ink: #251F1D;
  --navy: #251F1D;
  --navy-mist: rgba(37, 31, 29, 0.58);
  --rose: #E8C1C5;
  --rose-deep: #C98F96;
  --gold: #D4AF37;
  --espresso: #251F1D;
  --cream: #FDFBF7;
  --line: rgba(37, 31, 29, 0.14);
  --card: #FFFFFF;
  --display: 'Playfair Display', serif;
  --body: 'Montserrat', sans-serif;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- 2. LAYOUT HELPERS ---------- */
.app { max-width: 920px; margin: 0 auto; padding: 48px 24px 96px; position: relative; }
.narrow { max-width: 820px; }

/* ---------- 3. NAVIGATION ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--espresso);
  border-bottom: 1px solid rgba(232, 193, 197, 0.2);
}
.nav-inner {
  max-width: 920px;
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 251, 247, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--rose); }
.nav-links a.nav-cta {
  background: var(--rose);
  color: var(--espresso);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { color: var(--espresso); }

/* ---------- 4. SHARED TYPE AND BUTTONS ---------- */
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  font-weight: 600;
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.16;
  color: var(--navy);
  max-width: 16ch;
}
h1 em { font-style: italic; font-weight: 400; color: var(--rose-deep); }
.lede { font-size: 18px; color: var(--navy-mist); max-width: 52ch; margin-top: 22px; }
.section-heading {
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 30px;
}
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 34px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 31, 29, 0.25); }
.btn-primary:disabled { background: var(--line); color: #999; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--navy-mist); padding: 16px 8px; }
.btn-ghost:hover { color: var(--navy); }
.actions { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; gap: 16px; }
.actions.start-actions { justify-content: flex-start; margin-top: 40px; }

/* ---------- 5. HERO (LANDING PAGE) ---------- */
.hero-section { background: var(--espresso); color: var(--cream); }
.hero-grid { display: flex; align-items: center; gap: 56px; padding: 72px 0; }
.hero-copy { flex: 1.15; min-width: 0; }
.hero-photo-wrap { flex: 0.85; display: flex; justify-content: center; }
.hero-photo-wrap img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(232, 193, 197, 0.35);
}
.hero-section .eyebrow { color: var(--rose); }
.hero-section h1 { color: var(--cream); max-width: 15ch; }
.hero-intro-line {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: rgba(253, 251, 247, 0.75);
  max-width: 44ch;
  margin-bottom: 22px;
}
.hero-section .lede { color: rgba(253, 251, 247, 0.65); }
.hero-section .btn-primary { background: var(--rose); color: var(--espresso); }
.hero-section .btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }

/* ---------- 6. PROBLEM AND PREVIEW SECTIONS ---------- */
.problem-section { padding: 64px 0; background: var(--card); }
.problem-section .app { padding-top: 0; padding-bottom: 0; }
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.problem-list li { font-size: 18px; color: var(--ink); padding-left: 22px; position: relative; max-width: 56ch; }
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-deep);
}
.categories-section { padding: 64px 0 40px; }
.reassurance-note { font-size: 15px; line-height: 1.6; color: var(--navy-mist); max-width: 540px; margin: 14px 0 32px; }
.cat-preview-grid { display: flex; flex-direction: column; gap: 22px; margin-bottom: 12px; }
.cat-preview-item { border-top: 1px solid var(--line); padding-top: 18px; }
.cat-preview-item:last-child { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.cat-preview-title { font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.cat-preview-sub { font-size: 14.5px; color: var(--navy-mist); max-width: 56ch; }
.time-note { font-size: 14px; color: var(--navy-mist); margin: 26px 0 30px; }

/* ---------- 7. ASSESSMENT SCREENS ---------- */
.spine { display: flex; align-items: center; gap: 6px; margin-bottom: 56px; justify-content: center; }
.spine .node { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.4s ease, transform 0.4s ease; }
.spine .stem { width: 28px; height: 1px; background: var(--line); }
.spine .node.done { background: var(--rose-deep); }
.spine .node.active { background: var(--navy); transform: scale(1.5); }
.screen { display: none; animation: fade 0.5s ease; }
.screen.visible { display: block; }
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-label { font-family: var(--display); font-style: italic; font-size: 15px; color: var(--rose-deep); margin-bottom: 6px; }
.category-title { font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.category-sub { font-size: 15px; color: var(--navy-mist); max-width: 56ch; margin-bottom: 36px; }
.question-block { margin-bottom: 36px; }
.question-num { font-family: var(--display); font-size: 13px; color: var(--navy-mist); margin-bottom: 8px; }
.question-text { font-size: 19px; color: var(--ink); max-width: 58ch; margin-bottom: 18px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-opt {
  flex: 1;
  min-width: 90px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--navy-mist);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.scale-opt .num { display: block; font-family: var(--display); font-size: 20px; color: var(--navy); margin-bottom: 4px; }
.scale-opt:hover { border-color: var(--rose); }
.scale-opt.selected { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.75); }
.scale-opt.selected .num { color: #fff; }

/* ---------- 8. MINI FORM ---------- */
.field { margin-top: 24px; max-width: 420px; }
.field label { display: block; font-size: 13px; color: var(--navy-mist); margin-bottom: 8px; }
.optional-tag { font-weight: 400; opacity: 0.65; text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy-mist) 50%), linear-gradient(135deg, var(--navy-mist) 50%, transparent 50%);
  background-position: calc(100% - 22px) center, calc(100% - 17px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field input:focus, .field select:focus { border-color: var(--navy); }
.privacy-note { font-size: 12.5px; color: var(--navy-mist); margin-top: 12px; }
.confirm-icon { font-size: 40px; margin-bottom: 20px; }
.confirm-note { font-size: 14px; color: var(--navy-mist); margin-top: 18px; max-width: 46ch; }

/* ---------- 9. RESULTS PAGE ---------- */
#results-page { display: none; }
#results-page.visible { display: block; }
.results-open { font-size: 18px; color: var(--ink); max-width: 56ch; margin: 22px 0 34px; }
.score-block { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.score-num { font-family: var(--display); font-weight: 500; font-size: 64px; color: var(--navy); line-height: 1; }
.score-of { font-size: 16px; color: var(--navy-mist); }
.stage-badge { display: inline-block; margin-top: 10px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--rose-deep); }
.section-block { margin-top: 44px; }
.section-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose-deep); font-weight: 600; margin-bottom: 12px; }
.working-line { font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.notice-para { font-size: 17px; color: var(--ink); max-width: 58ch; margin-bottom: 14px; }
.focus-question {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  color: var(--navy);
  max-width: 46ch;
  line-height: 1.5;
  padding: 22px 26px;
  background: var(--card);
  border-left: 3px solid var(--rose-deep);
  border-radius: 4px;
}
.closing-note { font-size: 16px; color: var(--navy-mist); max-width: 54ch; margin-top: 10px; }
.closing-note .sign { display: block; margin-top: 16px; color: var(--ink); font-family: var(--display); font-style: italic; font-size: 17px; }
.snapshot-wrap { margin-top: 12px; }
.align-row { border-top: 1px solid var(--line); padding: 22px 0; }
.align-row:last-child { border-bottom: 1px solid var(--line); }
.align-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 12px; }
.align-name { font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--navy); }
.align-pct { font-family: var(--display); font-size: 14px; color: var(--navy-mist); }
.align-track { position: relative; height: 3px; background: var(--line); border-radius: 2px; margin-bottom: 4px; }
.align-marker {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--rose-deep);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rose-deep);
  transform: translate(-50%, -50%);
  transition: left 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.align-track .end-label { position: absolute; top: 9px; font-size: 10.5px; color: var(--navy-mist); }
.end-label.left { left: 0; }
.end-label.right { right: 0; }
.cta-block { margin-top: 56px; padding: 36px; background: var(--navy); border-radius: 20px; color: #fff; }
.cta-block h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 10px; }
.cta-block p { color: rgba(255, 255, 255, 0.7); max-width: 50ch; margin-bottom: 22px; font-size: 15px; }
.cta-block .btn-primary { background: var(--rose); color: var(--navy); }
.cta-block .btn-primary:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.cta-bio-row { display: flex; align-items: center; gap: 28px; }
.cta-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, 0.25); }
.cta-bio-text { flex: 1; }

/* ---------- 10. SITE FOOTER (ALL PAGES) ---------- */
.site-footer {
  background: var(--espresso);
  padding: 32px 24px;
  text-align: center;
}
.site-footer .foot-brand {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.site-footer p { font-size: 11px; color: rgba(253, 251, 247, 0.6); margin-bottom: 6px; }
.site-footer a { color: var(--rose); text-decoration: none; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 760px) {
  .hero-grid { flex-direction: column-reverse; padding: 48px 0; gap: 32px; }
  .hero-photo-wrap img { max-width: 220px; }
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 18px 14px;
    row-gap: 12px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 22px;
  }
  html { scroll-padding-top: 118px; }
}
@media (max-width: 640px) {
  .cta-bio-row { flex-direction: column; align-items: flex-start; }
  .cta-photo { width: 84px; height: 84px; }
  .app { padding: 32px 18px 72px; }
  .scale { gap: 6px; }
  .scale-opt { min-width: 56px; padding: 10px 6px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .align-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .score-num { font-size: 48px; }
}
