/*
 * Client checkpoint pages, Contact workflow and policy foundations.
 */

.checkpoint-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 209, 92, 0.42), transparent 25rem),
    radial-gradient(circle at 91% 18%, rgba(120, 167, 245, 0.28), transparent 28rem),
    linear-gradient(135deg, var(--cream), #f8f0fb 56%, #eef9f6);
}

.checkpoint-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.72fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 7rem);
}

.checkpoint-hero__content {
  position: relative;
  z-index: 2;
}

.checkpoint-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.9rem, 5.6vw, 4.9rem);
}

.checkpoint-hero__lead {
  max-width: 45rem;
  color: rgba(27, 27, 50, 0.76);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.68;
}

.checkpoint-hero__art {
  position: relative;
  min-height: clamp(21rem, 36vw, 30rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 209, 92, 0.95) 0 4.5rem, transparent 4.6rem),
    radial-gradient(circle at 72% 34%, rgba(240, 78, 152, 0.36) 0 6.5rem, transparent 6.6rem),
    radial-gradient(circle at 52% 76%, rgba(125, 190, 71, 0.35) 0 5.5rem, transparent 5.6rem),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(116, 36, 143, 0.1);
  border-radius: 3rem 7rem 3rem 6rem;
  box-shadow: var(--shadow);
}

.checkpoint-hero__art > span {
  position: absolute;
  color: var(--purple);
  font-size: 3.5rem;
  line-height: 1;
}

.checkpoint-hero__art > span:nth-child(1) {
  top: 15%;
  right: 13%;
  transform: rotate(12deg);
}

.checkpoint-hero__art > span:nth-child(2) {
  bottom: 20%;
  left: 14%;
  color: var(--pink);
  font-size: 2.7rem;
}

.checkpoint-hero__art > span:nth-child(3) {
  top: 48%;
  left: 44%;
  color: var(--blue);
  font-size: 2rem;
}

.checkpoint-hero__art > div {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: grid;
  width: min(14rem, calc(100% - 2.8rem));
  gap: 0.3rem;
  padding: 1.25rem 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.checkpoint-hero__art strong {
  color: var(--purple-deep);
  font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.15;
}

.checkpoint-intro {
  padding: var(--section) 0;
  background: #fff;
}

.checkpoint-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 8vw, 7rem);
}

.checkpoint-intro h2 {
  max-width: 14ch;
}

.checkpoint-intro__lead {
  max-width: 43rem;
  color: #35354c;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
}

.checkpoint-highlights {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.checkpoint-highlights li {
  position: relative;
  padding: 1rem 1rem 1rem 3.25rem;
  color: var(--ink);
  font-weight: 800;
  background: #f7fbf9;
  border: 1px solid rgba(125, 190, 71, 0.18);
  border-radius: 1rem;
}

.checkpoint-highlights li::before {
  position: absolute;
  top: 0.95rem;
  left: 1.15rem;
  color: var(--green);
  content: "✓";
}

.checkpoint-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  margin-top: 3rem;
  color: #5a3510;
  background: #fff7df;
  border: 1px solid #edd697;
  border-radius: 1.15rem;
}

.checkpoint-notice span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: #a76516;
  border-radius: 50%;
}

.checkpoint-notice p {
  margin: 0;
  font-weight: 700;
}

.checkpoint-section {
  padding: var(--section) 0;
  background: #fff;
}

.checkpoint-section--tint {
  background: linear-gradient(180deg, #f8fcfa, #fbf7fb);
}

.checkpoint-section .section-heading--split h2 {
  max-width: 15ch;
}

.checkpoint-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.checkpoint-card {
  min-height: 19rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgba(65, 24, 81, 0.07);
}

.checkpoint-card > span {
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  place-items: center;
  margin-bottom: 2.2rem;
  color: var(--purple);
  font-weight: 900;
  background: #f2e8f6;
  border-radius: 1.1rem;
}

.checkpoint-card:nth-child(2) > span {
  color: #b62062;
  background: #fde9f3;
}

.checkpoint-card:nth-child(3) > span {
  color: #4479ce;
  background: #e9f0fe;
}

.checkpoint-card h3 {
  margin-bottom: 0.8rem;
}

.checkpoint-card p {
  margin: 0;
  color: var(--muted);
}

.checkpoint-editor-content {
  padding: var(--section) 0;
}

.checkpoint-editor-content .entry-content {
  max-width: 52rem;
  margin-inline: auto;
}

.checkpoint-final-cta {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 209, 92, 0.28), transparent 20rem),
    linear-gradient(135deg, var(--purple-deep), #bd2865);
}

.checkpoint-final-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.55fr);
  align-items: center;
  gap: 3rem;
}

.checkpoint-final-cta h2,
.checkpoint-final-cta p {
  color: inherit;
}

.checkpoint-final-cta h2 {
  max-width: 15ch;
}

.checkpoint-final-cta__inner > div:first-child > p:last-child {
  max-width: 43rem;
  color: rgba(255, 255, 255, 0.8);
}

.checkpoint-final-cta .button--ghost-light:hover {
  color: var(--purple-deep);
  background: #fff;
}

/* Contact journey. */
.checkpoint-hero--contact h1 {
  max-width: 15ch;
}

.contact-quick-grid {
  display: grid;
  gap: 1rem;
}

.contact-quick-grid a {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-quick-grid a > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  grid-row: 1 / 3;
  place-items: center;
  color: var(--purple);
  background: #f2e8f6;
  border-radius: 0.9rem;
}

.contact-quick-grid small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-quick-grid strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.contact-main-section {
  padding: var(--section) 0;
  background: linear-gradient(180deg, #fff, #fbf8fc);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.contact-intro {
  position: sticky;
  top: 8rem;
}

.contact-intro h2 {
  max-width: 12ch;
}

.contact-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-safeguarding-note {
  padding: 1.25rem;
  margin-top: 2rem;
  color: #6b2637;
  background: #fff0f3;
  border: 1px solid #edbdc8;
  border-radius: 1rem;
}

.contact-safeguarding-note p {
  margin: 0.4rem 0 0;
}

.contact-form-card {
  max-width: none;
}

.form-notice--info {
  background: #eef5ff;
  border: 1px solid #bfd3ee;
}

.contact-success-card {
  max-width: 54rem;
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.contact-success-card__icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 2rem;
  background: var(--green);
  border-radius: 50%;
}

.contact-success-card h2 {
  max-width: 17ch;
  margin-inline: auto;
}

.contact-success-card__reference {
  display: inline-block;
  padding: 0.85rem 1.1rem;
  color: var(--purple-deep);
  background: #f2e8f6;
  border-radius: 0.85rem;
}

.contact-success-card .button-row {
  justify-content: center;
}

/* Friendly 404. */
.not-found-section {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 209, 92, 0.34), transparent 21rem),
    radial-gradient(circle at 84% 75%, rgba(120, 167, 245, 0.24), transparent 24rem),
    var(--cream);
}

.not-found-card {
  max-width: 58rem;
  padding: clamp(2rem, 7vw, 5rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 2.5rem;
  box-shadow: var(--shadow);
}

.not-found-card__art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--purple);
  font-family: "Trebuchet MS", "Avenir Next", Arial, sans-serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
}

.not-found-card__art i {
  color: var(--pink);
  font-size: 0.6em;
  font-style: normal;
  transform: rotate(12deg);
}

.not-found-card h1 {
  max-width: 13ch;
  margin-inline: auto;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.not-found-card > p:not(.eyebrow) {
  max-width: 43rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.not-found-card .button-row {
  justify-content: center;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

/* Keep the approved purple identity legible and unchanged in the dark footer. */
.site-footer a.brand-mark--footer,
.site-footer a.brand-mark--footer:hover {
  width: fit-content;
  padding: 1rem 1.25rem 0.8rem;
  color: var(--purple);
  background: var(--white);
  border-radius: 1rem;
}

@media (max-width: 62rem) {
  .checkpoint-hero__grid,
  .checkpoint-intro__grid,
  .checkpoint-final-cta__inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .checkpoint-hero__art {
    width: min(100%, 38rem);
    min-height: 23rem;
    margin-inline: auto;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 52rem) {
  .checkpoint-card-grid {
    grid-template-columns: 1fr;
  }

  .checkpoint-card {
    min-height: auto;
  }
}

@media (max-width: 40rem) {
  .checkpoint-hero {
    padding-top: 3.25rem;
  }

  .checkpoint-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .checkpoint-hero__art {
    min-height: 19rem;
    border-radius: 2rem 4rem 2rem 3.5rem;
  }

  .checkpoint-hero__art > div {
    right: 1rem;
    bottom: 1rem;
  }

  .checkpoint-card > span {
    margin-bottom: 1.5rem;
  }

  .checkpoint-notice {
    align-items: start;
  }

  .contact-success-card,
  .not-found-card {
    border-radius: 1.4rem;
  }

  .site-footer__legal {
    justify-content: flex-start;
  }
}
