@font-face {
  font-family: 'Work Sans';
  src: url('assets/work-sans-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('assets/work-sans-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('assets/work-sans-extrabold.ttf') format('truetype');
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #222222;
  --foreground: #ffffff;
  --cream: #fff1df;
  --pink: #cf2f70;
  --yellow: #ffc20a;
  --ink: #222222;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color-scheme: light;
  font-family: 'Work Sans', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgb(207 47 112 / 14%), transparent 24rem),
    var(--background);
  color: var(--foreground);
}

main {
  overflow: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flyer {
  width: min(100%, 704px);
  margin: 0 auto;
  padding: 12px;
}

.panel {
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  border: 2px solid #111111;
  border-radius: 12px;
  background: var(--cream);
  box-shadow: 0 14px 36px rgb(0 0 0 / 20%);
}

.panel img {
  display: block;
  width: 100%;
  height: auto;
}

.panel--p4 {
  container-type: inline-size;
  background: var(--ink);
  color: #ffffff;
}

.panel--p5 {
  position: relative;
  container-type: inline-size;
  background: #cc3370;
}

.p5-copy-replacement {
  position: absolute;
  z-index: 1;
  top: 57.8%;
  right: 5%;
  bottom: 29.2%;
  left: 7%;
  padding: 2.1% 2.2%;
  background: #cc3370;
  color: #ffffff;
}

.p5-copy-replacement h2 {
  margin: 0 0 clamp(6px, 1.35cqi, 10px);
  font-size: clamp(0.75rem, 3.6cqi, 1.55rem);
  font-weight: 900;
  line-height: 1.05;
}

.p5-copy-replacement p {
  margin: 0;
  font-size: clamp(0.58rem, 2.4cqi, 1.05rem);
  font-weight: 400;
  line-height: 1.32;
}

.case-quote-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(92px, 21vw, 142px);
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
  margin-top: -6%;
  padding: 7% 6% 3%;
  background: var(--ink);
}

.case-quote-card {
  display: grid;
  grid-template-columns: clamp(44px, 9vw, 68px) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
  margin: 0;
  padding: clamp(18px, 4vw, 30px);
  border: 2px solid #111111;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
}

.case-quote-mark {
  color: #ffffff;
  font-size: clamp(4rem, 13vw, 6.4rem);
  font-weight: 900;
  line-height: 0.72;
}

.case-quote-card p {
  margin: 0;
  font-size: clamp(0.94rem, 2.7vw, 1.28rem);
  font-weight: 800;
  line-height: 1.28;
}

.case-quote-card footer {
  display: grid;
  gap: 2px;
  margin-top: clamp(12px, 2.5vw, 20px);
}

.case-quote-card footer strong {
  font-size: clamp(0.92rem, 2.5vw, 1.18rem);
}

.case-quote-card footer span {
  font-size: clamp(0.7rem, 1.9vw, 0.9rem);
  line-height: 1.3;
}

.case-badge-clean {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 12%;
  border: clamp(5px, 1.2vw, 8px) solid var(--yellow);
  border-radius: 50%;
  background: var(--pink);
  box-shadow:
    0 0 0 2px #111111,
    0 0 0 clamp(8px, 2vw, 14px) var(--yellow);
  color: #ffffff;
  text-align: center;
  transform: rotate(4deg);
}

.case-badge-clean small {
  font-size: clamp(0.42rem, 1vw, 0.6rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.case-badge-clean strong {
  font-size: clamp(0.8rem, 2.3vw, 1.2rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.case-study {
  display: grid;
  justify-items: center;
  padding: 3% 0 5%;
}

.case-brochures-frame {
  position: relative;
  width: 94%;
  aspect-ratio: 910 / 700;
  overflow: hidden;
  transform: translateX(-2.5%);
}

.case-brochures-frame .case-brochures {
  width: 100%;
  max-width: none;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 4%,
    98.5% 7%,
    98.5% 17%,
    97% 30%,
    95% 42%,
    92.5% 53.5%,
    91.5% 65%,
    89.6% 78%,
    88.5% 90%,
    0 100%
  );
}

.case-outcomes {
  width: 88%;
  margin-top: 1%;
  text-align: center;
}

.case-outcomes h2 {
  max-width: 17ch;
  margin: 0 auto clamp(24px, 6vw, 44px);
  font-size: clamp(1.7rem, 6.6vw, 3.15rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.case-outcomes h2 span {
  color: #ed583f;
}

.case-outcomes ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.case-outcomes li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(16px, 3.5cqi, 28px);
  align-items: center;
  min-height: clamp(112px, 31vw, 190px);
  padding: clamp(18px, 4vw, 30px) 0;
  border-bottom: 2px solid #ffffff;
}

.case-outcomes li:last-child {
  border-bottom: 0;
}

.case-outcomes strong {
  color: #ed583f;
  font-size: clamp(2.4rem, 10cqi, 4.5rem);
  font-weight: 900;
  line-height: 1;
}

.case-outcomes p {
  min-width: 0;
  margin: 0;
  font-size: clamp(1.05rem, 4.2cqi, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

.qr-panel {
  position: relative;
}

.qr-link {
  position: absolute;
  z-index: 2;
  display: block;
  border-radius: 14px;
  cursor: pointer;
}

.qr-link--need {
  top: 77.1%;
  left: 6.6%;
  width: 36.8%;
  height: 16.8%;
}

.qr-link--join {
  top: 86.4%;
  left: 46%;
  width: 19.8%;
  height: 9.25%;
}

.qr-link:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
}

.qr-link span {
  position: absolute;
  top: calc(100% + clamp(2px, 0.45vw, 5px));
  left: 50%;
  width: max-content;
  max-width: 118%;
  transform: translateX(-50%);
  color: var(--ink);
  font-size: clamp(0.52rem, 1.35vw, 0.72rem);
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.call-to-action {
  position: relative;
  display: grid;
  justify-items: start;
  width: min(calc(100% - 24px), 680px);
  margin: 8px auto 48px;
  padding: clamp(28px, 7vw, 48px);
  overflow: hidden;
  border: 2px solid #111111;
  border-radius: 18px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--pink);
}

.call-to-action::after {
  position: absolute;
  right: -26px;
  bottom: -46px;
  width: 148px;
  height: 148px;
  border: 2px solid #111111;
  border-radius: 50%;
  background: var(--yellow);
  content: '';
}

.call-to-action h2 {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  margin: 0 0 24px;
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.call-to-action a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid #111111;
  border-radius: 12px;
  background: var(--pink);
  box-shadow: 4px 4px 0 var(--ink);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.call-to-action a:hover {
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(2px, 2px);
}

.call-to-action a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 520px) {
  .case-quote-row {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 7%;
  }

  .case-quote-card {
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .case-badge-clean {
    width: 96px;
    height: 96px;
    margin: 10px 0 18px;
    padding: 10px;
  }
}

@media (min-width: 760px) {
  .flyer {
    padding-top: 28px;
  }

  .panel {
    margin-bottom: 20px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .call-to-action a {
    animation: none;
    transition: none;
  }
}
