/* RE5 Journey Personaliser v2 */

:root {
  --re5-blue: #0759c7;
  --re5-blue-dark: #062f75;
  --re5-navy: #071a3d;
  --re5-sky: #eaf3ff;
  --re5-pale: #f6f9fd;
  --re5-white: #ffffff;
  --re5-text: #1d2a42;
  --re5-muted: #607089;
  --re5-border: #dce5f0;
  --re5-green: #1d9248;
  --re5-orange: #e76a00;
  --re5-purple: #7041bd;
  --re5-shadow: 0 16px 40px rgba(11, 40, 86, .11);
  --re5-radius: 20px;
}

.re5-journey-selector,
.re5-journey-page,
.re5-shared-content,
.re5-human-support-panel {
  box-sizing: border-box;
  font-family: inherit;
  color: var(--re5-text);
}

.re5-journey-selector *,
.re5-journey-page *,
.re5-shared-content *,
.re5-human-support-panel * {
  box-sizing: border-box;
}

.re5-journey-selector {
  padding: clamp(46px, 6vw, 84px) 20px;
  background:
    radial-gradient(circle at 8% 5%, rgba(7, 89, 199, .13), transparent 30%),
    radial-gradient(circle at 95% 90%, rgba(7, 89, 199, .09), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.re5-journey-selector__inner,
.re5-journey-page > section,
.re5-journey-current,
.re5-shared-content > section,
.re5-human-support-panel__content {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.re5-journey-selector__heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.re5-eyebrow {
  margin: 0 0 10px;
  color: var(--re5-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.re5-journey-selector h1,
.re5-path-hero h1 {
  margin: 0;
  color: var(--re5-navy);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.re5-journey-selector h2 {
  margin: 13px 0 12px;
  color: var(--re5-blue);
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.25;
}

.re5-journey-selector__heading > p {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--re5-muted);
  font-size: 17px;
  line-height: 1.65;
}

.re5-human-note {
  font-weight: 700;
  color: var(--re5-navy) !important;
}

.re5-journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.re5-journey-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 28px 24px 24px;
  border: 1px solid var(--re5-border);
  border-radius: var(--re5-radius);
  background: var(--re5-white);
  box-shadow: var(--re5-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.re5-journey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 21px 50px rgba(11, 40, 86, .16);
}

.re5-journey-card__icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--re5-sky);
  color: var(--re5-blue);
}

.re5-journey-card--first-time .re5-journey-card__icon {
  background: #e9f7ee;
  color: var(--re5-green);
}

.re5-journey-card--rewrite .re5-journey-card__icon {
  background: #fff0e3;
  color: var(--re5-orange);
}

.re5-journey-card--fsp .re5-journey-card__icon {
  background: #f1eafd;
  color: var(--re5-purple);
}

.re5-journey-card__icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.re5-journey-card h3 {
  min-height: 68px;
  margin: 0 0 12px;
  color: var(--re5-navy);
  font-size: 23px;
  line-height: 1.28;
  text-align: center;
}

.re5-journey-card > p {
  min-height: 102px;
  margin: 0;
  color: var(--re5-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.re5-journey-card ul {
  flex: 1;
  margin: 22px 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--re5-border);
  list-style: none;
}

.re5-journey-card li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
  font-size: 14px;
}

.re5-journey-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--re5-green);
  font-weight: 900;
}

.re5-journey-button,
.re5-change-journey,
.re5-primary-button,
.re5-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 9px;
  font: inherit;
  font-weight: 750;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.re5-journey-button {
  width: 100%;
  border: 0;
  background: var(--re5-blue);
  color: #fff;
}

.re5-journey-card--first-time .re5-journey-button {
  background: var(--re5-green);
}

.re5-journey-card--rewrite .re5-journey-button {
  background: var(--re5-orange);
}

.re5-journey-card--fsp .re5-journey-button {
  background: var(--re5-purple);
}

.re5-journey-button:hover,
.re5-primary-button:hover,
.re5-secondary-button:hover,
.re5-change-journey:hover {
  transform: translateY(-2px);
  filter: brightness(.94);
}

.re5-selector-support {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border: 1px solid #cfe0f6;
  border-radius: 13px;
  background: #eef6ff;
  color: var(--re5-navy);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.re5-journey-current {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--re5-blue-dark);
  color: #fff;
}

html[data-re5-journey] .re5-journey-current {
  display: flex;
}

.re5-change-journey {
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
  color: #fff;
}

.re5-path-hero {
  overflow: hidden;
  padding: clamp(52px, 7vw, 96px) clamp(24px, 5vw, 72px);
  border-radius: var(--re5-radius);
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 58%, rgba(234,243,255,.84) 100%),
    radial-gradient(circle at 90% 20%, rgba(7,89,199,.16), transparent 35%);
  box-shadow: var(--re5-shadow);
}

.re5-path-hero__content {
  max-width: 760px;
}

.re5-path-hero h1 {
  font-size: clamp(34px, 4.6vw, 60px);
}

.re5-path-hero__lead {
  margin: 20px 0 10px;
  color: var(--re5-blue-dark);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 750;
  line-height: 1.4;
}

.re5-path-hero p:not(.re5-eyebrow):not(.re5-path-hero__lead) {
  color: var(--re5-muted);
  font-size: 17px;
  line-height: 1.7;
}

.re5-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.re5-primary-button {
  border: 2px solid var(--re5-blue);
  background: var(--re5-blue);
  color: #fff !important;
}

.re5-secondary-button {
  border: 2px solid var(--re5-blue);
  background: #fff;
  color: var(--re5-blue-dark) !important;
}

.re5-content-section,
.re5-proof-section,
.re5-final-cta {
  margin-top: 28px;
  padding: clamp(48px, 6vw, 78px) clamp(22px, 5vw, 64px);
  border-radius: var(--re5-radius);
}

.re5-content-section,
.re5-proof-section {
  background: #fff;
  box-shadow: var(--re5-shadow);
}

.re5-light-section {
  background: var(--re5-pale);
}

.re5-section-heading {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.re5-section-heading h2,
.re5-human-support-panel h2,
.re5-final-cta h2 {
  margin: 0 0 14px;
  color: var(--re5-navy);
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.18;
}

.re5-section-heading p,
.re5-proof-section > p,
.re5-final-cta > p,
.re5-human-support-panel p {
  color: var(--re5-muted);
  font-size: 16px;
  line-height: 1.7;
}

.re5-step-grid,
.re5-resource-grid,
.re5-trust-grid {
  display: grid;
  gap: 18px;
}

.re5-step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.re5-resource-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.re5-trust-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.re5-step-card,
.re5-resource-card,
.re5-trust-card {
  padding: 25px 22px;
  border: 1px solid var(--re5-border);
  border-radius: 15px;
  background: #fff;
}

.re5-step-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 50%;
  background: var(--re5-blue);
  color: #fff;
  font-weight: 800;
}

.re5-step-card h3,
.re5-resource-card h3,
.re5-trust-card h3 {
  margin: 0 0 10px;
  color: var(--re5-navy);
  font-size: 20px;
  line-height: 1.35;
}

.re5-step-card p,
.re5-resource-card p,
.re5-trust-card p {
  margin: 0;
  color: var(--re5-muted);
  font-size: 14px;
  line-height: 1.65;
}

.re5-resource-card a {
  display: inline-block;
  margin-top: 17px;
  color: var(--re5-blue);
  font-weight: 800;
  text-decoration: none;
}

.re5-centred-button {
  margin-top: 32px;
  text-align: center;
}

.re5-proof-section {
  text-align: left;
}

.re5-proof-section > p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.re5-check-list {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.re5-check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 27px;
  break-inside: avoid;
}

.re5-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--re5-green);
  font-weight: 900;
}

.re5-testimonial {
  max-width: 880px;
  margin: 28px auto;
  padding: 24px 28px;
  border-left: 5px solid var(--re5-blue);
  border-radius: 0 14px 14px 0;
  background: var(--re5-sky);
  color: var(--re5-navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
}

.re5-final-cta {
  background: linear-gradient(135deg, var(--re5-blue-dark), var(--re5-blue));
  color: #fff;
  text-align: center;
}

.re5-final-cta h2,
.re5-final-cta > p {
  color: #fff;
}

.re5-final-cta .re5-button-group {
  justify-content: center;
}

.re5-final-cta .re5-primary-button {
  border-color: #fff;
  background: #fff;
  color: var(--re5-blue-dark) !important;
}

.re5-final-cta .re5-secondary-button {
  border-color: rgba(255,255,255,.75);
  background: transparent;
  color: #fff !important;
}

.re5-human-support-panel {
  margin: 28px 0;
}

.re5-human-support-panel__content {
  padding: clamp(40px, 5vw, 64px);
  border: 1px solid #cfe0f6;
  border-radius: var(--re5-radius);
  background:
    linear-gradient(135deg, #edf6ff 0%, #ffffff 72%);
  box-shadow: var(--re5-shadow);
}

[data-re5-content] {
  display: none !important;
}

html[data-re5-journey="new-industry"] [data-re5-content~="new-industry"],
html[data-re5-journey="first-time"] [data-re5-content~="first-time"],
html[data-re5-journey="rewrite"] [data-re5-content~="rewrite"],
html[data-re5-journey="fsp"] [data-re5-content~="fsp"],
html[data-re5-journey] [data-re5-content~="all"] {
  display: block !important;
}

html[data-re5-journey] [data-re5-selector][data-mode="first-visit"] {
  display: none;
}

@media (max-width: 1100px) {
  .re5-journey-grid,
  .re5-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .re5-journey-card {
    min-height: 470px;
  }

  .re5-step-grid,
  .re5-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .re5-journey-grid,
  .re5-step-grid,
  .re5-resource-grid,
  .re5-trust-grid {
    grid-template-columns: 1fr;
  }

  .re5-journey-card {
    min-height: 0;
  }

  .re5-journey-card h3,
  .re5-journey-card > p {
    min-height: 0;
  }

  .re5-journey-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .re5-button-group {
    flex-direction: column;
  }

  .re5-primary-button,
  .re5-secondary-button {
    width: 100%;
  }

  .re5-check-list {
    columns: 1;
  }

  .re5-journey-selector__inner,
  .re5-journey-page > section,
  .re5-journey-current,
  .re5-shared-content > section,
  .re5-human-support-panel__content {
    width: min(100% - 20px, 1280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .re5-journey-card,
  .re5-journey-button,
  .re5-primary-button,
  .re5-secondary-button,
  .re5-change-journey {
    transition: none;
  }
}
