/* ---------------------------------------------------------------------------
   Pathway navigator — anne healthcare house-style demo.
   Decision-tree wizard producing a personalised action plan.
--------------------------------------------------------------------------- */

:root {
  --cta:            #1a67cc;
  --cta-dark:       #14509f;
  --cta-darker:     #175cb5;
  --accent:         #18d6c4;
  --accent-dark:    #13a89a;
  --cream:          #f4eed7;
  --cream-border:   #e9ddaf;
  --cream-light:    #fffcf0;
  --cool:           #e5eef8;
  --cool-border:    #bdd4ed;

  --dark:           #333;
  --grey:           #4d4d4d;
  --grey-soft:      #676767;
  --grey-line:      #e0e0e0;
  --light:          #fff;
  --danger:         #c12727;
  --success:        #15803d;

  --font-heading:   "Inter", system-ui, sans-serif;
  --font-body:      "DM Sans", system-ui, sans-serif;

  --radius-sm:      0.5rem;
  --radius-md:      1.5rem;
  --radius-lg:      2rem;
  --radius-pill:    100em;
  --shadow-soft:    0 3px 6px 0 rgba(0, 0, 0, 0.06);
  --shadow-lift:    0 12px 32px -16px rgba(20, 80, 159, 0.22),
                    0  3px  6px  0   rgba(0, 0, 0, 0.06);
  --ring:           0 0 0 3px rgba(26, 103, 204, 0.18);

  --content-max:    112rem;
  --gutter:         clamp(2rem, 5vw, 6rem);
}

/* 10px rem base */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--light);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1.7rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(ellipse 90rem 50rem at 8% -10%,  rgba(229, 238, 248, 0.9), transparent 60%),
    radial-gradient(ellipse 70rem 40rem at 100% 5%,  rgba(244, 238, 215, 0.65), transparent 55%);
  background-repeat: no-repeat;
}

a { color: var(--cta); text-decoration: none; }
a:hover { color: var(--cta-dark); text-decoration: underline; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--cta); color: var(--light);
  padding: 1rem 1.6rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }


/* --- Header --------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.4rem var(--gutter);
  max-width: var(--content-max);
  margin: 0 auto;
}
.brand { display: inline-flex; }
.brand img { height: 3.6rem; width: auto; display: block; }

.brand-group { display: flex; flex-direction: column; gap: 0.6rem; }
.back-links { display: flex; gap: 1.2rem; }


.back-link {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.back-link:hover { color: var(--cta-dark); text-decoration: underline; }

.chip {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--cta-dark);
  border: 1px solid var(--cream-border);
}


/* --- Intro ---------------------------------------------------------------- */

.intro {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem var(--gutter) 2rem;
}
.kicker {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cta);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.kicker::before {
  content: "";
  width: 2.4rem;
  height: 0.2rem;
  background: var(--accent);
  border-radius: 2px;
}
.intro h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(3.8rem, 5.6vw, 6.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.6rem;
}
.lede {
  font-size: clamp(1.8rem, 1.6vw, 2.1rem);
  color: var(--grey);
  margin: 0 0 3rem;
  max-width: 54rem;
}


/* --- Wizard container ----------------------------------------------------- */

.wizard {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter) 8rem;
}


/* --- Progress bar --------------------------------------------------------- */

.progress-bar {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.2rem;
}
.progress-bar__label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--grey-soft);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.progress-bar__track {
  flex: 1;
  height: 0.5rem;
  background: var(--grey-line);
  border-radius: 10rem;
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 10rem;
  transition: width 0.4s ease;
  width: 0%;
}


/* --- Step card ------------------------------------------------------------- */

.step-card {
  background: var(--light);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 3.6rem 3.2rem 3.2rem;
  position: relative;
  overflow: hidden;
  animation: stepIn 0.35s ease both;
}
.step-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0.5rem;
  background: #6499dd;
}

.step-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.4rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  color: var(--dark);
}
.step-card__sub {
  font-size: 1.5rem;
  color: var(--grey-soft);
  margin: 0 0 2.8rem;
  line-height: 1.5;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(1.2rem); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- Option cards (question choices) -------------------------------------- */

.option-group {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.option-card {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.8rem 2rem;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--light);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.option-card:hover {
  border-color: var(--cta);
  background: rgba(26, 103, 204, 0.03);
}
.option-card--selected {
  border-color: var(--cta);
  background: var(--cool);
  box-shadow: var(--ring);
}
.option-card__radio {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--grey-line);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s;
}
.option-card--selected .option-card__radio {
  border-color: var(--cta);
}
.option-card--selected .option-card__radio::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px; right: 3px; bottom: 3px;
  border-radius: 50%;
  background: var(--cta);
}
.option-card__text {
  flex: 1;
  min-width: 0;
}
.option-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.3;
  color: var(--dark);
  margin: 0;
}
.option-card__desc {
  font-size: 1.35rem;
  color: var(--grey-soft);
  margin: 0.3rem 0 0;
  line-height: 1.4;
}


/* --- Buttons -------------------------------------------------------------- */

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.8rem;
  gap: 1.6rem;
}

.btn {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  padding: 1.2rem 3.2rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.btn--primary {
  background: var(--cta);
  color: var(--light);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover {
  background: var(--cta-dark);
  color: var(--light);
  text-decoration: none;
}
.btn--primary:disabled {
  background: var(--grey-line);
  color: var(--grey-soft);
  cursor: not-allowed;
  box-shadow: none;
}
.btn--accent {
  background: var(--accent);
  color: var(--light);
  box-shadow: var(--shadow-soft);
}
.btn--accent:hover {
  background: var(--accent-dark);
  color: var(--light);
  text-decoration: none;
}
.btn--secondary {
  background: transparent;
  color: var(--cta);
  border: 1.5px solid var(--grey-line);
}
.btn--secondary:hover {
  border-color: var(--cta);
  background: rgba(26, 103, 204, 0.04);
  color: var(--cta);
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--grey-soft);
  padding: 1.2rem 1.6rem;
}
.btn--ghost:hover {
  color: var(--cta);
}


/* --- Result page ---------------------------------------------------------- */

.result {
  animation: stepIn 0.4s ease both;
}

.result__headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.6rem, 3.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.8rem;
  color: var(--dark);
}

.result__pathway-label {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cta);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.result__pathway-label::before {
  content: "";
  width: 2.4rem;
  height: 0.2rem;
  background: var(--accent);
  border-radius: 2px;
}

.result__summary {
  font-size: 1.7rem;
  color: var(--grey);
  margin: 0 0 3.6rem;
  line-height: 1.6;
  max-width: 54rem;
}


/* --- Steps list ----------------------------------------------------------- */

.plan-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-step {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--grey-line);
}
.plan-step:first-child {
  padding-top: 0;
}
.plan-step:last-child {
  border-bottom: none;
}

.plan-step__num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--light);
  background: var(--cta);
  border-radius: 50%;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.plan-step__content {
  flex: 1;
  min-width: 0;
}

.plan-step__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dark);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.plan-step__desc {
  font-size: 1.5rem;
  color: var(--grey-soft);
  margin: 0;
  line-height: 1.5;
}


/* --- Info panels ---------------------------------------------------------- */

.info-panel {
  border-radius: var(--radius-md);
  padding: 2.4rem 2.6rem;
  margin-bottom: 2.4rem;
}

.info-panel--considerations {
  background: var(--cream-light);
  border: 1px solid var(--cream-border);
}

.info-panel--anne {
  background: var(--cool);
  border: 1px solid var(--cool-border);
}

.info-panel--timeline {
  background: var(--light);
  border: 1px solid var(--grey-line);
  box-shadow: var(--shadow-soft);
}

.info-panel__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--dark);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.info-panel__icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  color: var(--cta);
}

.info-panel--considerations .info-panel__icon {
  color: #b8860b;
}

.info-panel--anne .info-panel__icon {
  color: var(--accent-dark);
}

.info-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-panel__list li {
  font-size: 1.5rem;
  color: var(--grey);
  line-height: 1.5;
  padding-left: 2rem;
  position: relative;
}

.info-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--grey-line);
}

.info-panel--considerations .info-panel__list li::before {
  background: var(--cream-border);
}

.info-panel--anne .info-panel__list li::before {
  background: var(--accent);
}

.info-panel__text {
  font-size: 1.5rem;
  color: var(--grey);
  line-height: 1.55;
  margin: 0;
}

.info-panel__timeline {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.info-panel__timeline-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.4rem;
  color: var(--cta);
  white-space: nowrap;
}

.info-panel__timeline-note {
  font-size: 1.4rem;
  color: var(--grey-soft);
  line-height: 1.45;
}


/* --- Result actions ------------------------------------------------------- */

.result-actions {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 3.6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--grey-line);
}


/* --- Toast ---------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 1.2rem 2.4rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast--success {
  background: var(--success);
}


/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: 3rem var(--gutter) 4rem;
  max-width: var(--content-max);
  margin: 4rem auto 0;
  color: var(--grey-soft);
  font-size: 1.35rem;
}
.site-footer p { margin: 0; }


/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 600px) {
  .step-card {
    padding: 2.8rem 2rem 2.4rem;
  }
  .wizard-nav {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .wizard-nav .btn {
    width: 100%;
    justify-content: center;
  }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .info-panel {
    padding: 2rem 1.8rem;
  }
  .info-panel__timeline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .plan-step {
    gap: 1.2rem;
  }
}
