/* Carrier Growth — mock layout: overlapping cards on gray modal, fit viewport */

html:has(body.cp-body--growth) {
  height: 100%;
}

body.cp-body--growth {
  background: #ffffff;
  min-height: 100%;
  overflow-x: hidden;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Pack growth content under the header, leaving room for the fixed marketing footer */
body.cp-body--growth .cp-page--growth {
  padding: 0 0 12px;
  min-height: calc(100dvh - 72px - var(--cp-footer-bar-height, 56px));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

body.cp-body--growth .cp-page--growth > .cp-shell-growth {
  flex: 1 1 auto;
}

body.cp-body--growth .cp-shell.cp-shell-growth,
.cp-shell.cp-shell-growth {
  width: min(1120px, calc(100% - 40px));
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  min-height: calc(100dvh - 72px - 12px - var(--cp-footer-bar-height, 56px));
  height: auto;
  overflow: visible;
}

.cp-growth-kicker {
  margin: 0 0 4px;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cp-gray-500, #6b7280);
}

/* ---- Hero (compact) ---- */
.cp-growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.cp-growth-hero__copy h1 {
  margin: 0 0 6px;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--cp-gray-900, #0d1117);
  letter-spacing: -0.015em;
}

.cp-growth-hero__lead {
  margin: 0;
  max-width: 30rem;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cp-gray-500, #6b7280);
}

.cp-growth-hero__media {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
  overflow: hidden;
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 10px 10px 0;
}

.cp-growth-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.92) 16%,
    rgba(255, 255, 255, 0.45) 28%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 48%
  );
}

.cp-growth-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  max-height: 150px;
  object-fit: cover;
  object-position: center 45%;
}

.cp-growth-hero__media picture,
.cp-growth-card__media picture {
  display: contents;
}

/* ---- Stage: gray modal + overlapping cards ---- */
.cp-growth-stage {
  position: relative;
  margin: 10px 0 14px;
  padding: 0;
  isolation: isolate;
}

/* The light-gray "modal" band the cards sit on top of */
.cp-growth-modal {
  position: absolute;
  left: -12px;
  right: -12px;
  /* Shorter band so cards clearly overlap top + bottom (~25% shorter) */
  top: 26%;
  bottom: 22%;
  background: #e9edf2;
  border-radius: 18px;
  z-index: 0;
  pointer-events: none;
}

.cp-growth-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin: 0;
  padding: 0 6px;
}

.cp-growth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 0;
  background: #fff;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(13, 27, 42, 0.08),
    0 1px 2px rgba(13, 27, 42, 0.04);
  min-width: 0;
  min-height: 318px; /* ~20% taller than prior ~265px */
}

.cp-growth-card__body {
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px 16px;
  min-width: 0;
  gap: 0;
}

.cp-growth-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--cp-orange, #ef4c04);
  flex: 0 0 auto;
}

.cp-growth-card__icon img {
  width: 16px;
  height: 16px;
}

.cp-growth-card__title {
  margin: 0 0 8px;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--cp-gray-900, #0d1117);
  line-height: 1.3;
  letter-spacing: 0;
}

.cp-growth-card__summary {
  margin: 0 0 12px;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cp-gray-500, #6b7280);
}

.cp-growth-card__ideal-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cp-gray-900, #0d1117);
}

.cp-growth-card__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.cp-growth-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--cp-gray-700, #374151);
}

.cp-growth-card__check {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.cp-growth-card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--cp-orange, #ef4c04);
  color: #fff !important;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cp-growth-card__cta:hover,
.cp-growth-card__cta:focus-visible {
  background: var(--cp-orange-hover, #d74404);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Flush right photo strip (straight left edge, rounded with card) */
.cp-growth-card__media {
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  align-self: stretch;
  background: #dfe3e8;
  border-radius: 0;
}

.cp-growth-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 264px; /* +20% */
  max-height: 318px;
  object-fit: cover;
  object-position: center;
}

/* ---- How it works (mock: title left, steps + arrows right) ---- */
.cp-growth-process {
  /* Sit in the middle of the blank band between cards and disclaimer */
  margin-top: auto;
  margin-bottom: auto;
  padding: 12px 0;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: center;
}

.cp-growth-process__head {
  min-width: 0;
}

.cp-growth-process__head .cp-growth-kicker {
  margin: 0 0 6px;
}

.cp-growth-process__head h2 {
  margin: 0;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--cp-gray-900, #0d1117);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cp-growth-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px 28px;
  min-width: 0;
}

.cp-growth-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
}

.cp-growth-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 8px;
  right: -22px;
  color: #f4a57a;
  font-size: 1.15rem;
  line-height: 1;
  pointer-events: none;
}

.cp-growth-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff0e5;
  color: var(--cp-orange, #ef4c04);
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.cp-growth-step__copy {
  min-width: 0;
  padding-top: 2px;
}

.cp-growth-step__copy h3 {
  margin: 0 0 4px;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cp-gray-900, #0d1117);
  line-height: 1.25;
}

.cp-growth-step__copy p {
  margin: 0;
  font-family: var(--cp-font-primary, "Inter", system-ui, -apple-system, sans-serif);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cp-gray-500, #6b7280);
  max-width: 16rem;
}



.cp-growth-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0ebe3;
  color: #4a5360;
  margin-top: 0;
  flex: 0 0 auto;
}

.cp-growth-disclaimer img {
  flex: 0 0 auto;
  margin-top: 1px;
  opacity: 0.75;
  width: 16px;
  height: 16px;
}

.cp-growth-disclaimer p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.cp-growth-messages {
  padding: 16px 0 8px;
}

.cp-growth-messages__next {
  margin: 10px 0 0;
  color: var(--cp-gray-500, #6b7280);
}

/* Slightly taller viewports: let cards breathe */
@media (min-height: 900px) {
  .cp-growth-hero__media img {
    max-height: 170px;
  }

  .cp-growth-card__media img {
    min-height: 300px;
    max-height: 360px;
  }

  .cp-growth-card {
    min-height: 340px;
  }

  .cp-growth-modal {
    top: 28%;
    bottom: 24%;
  }
}

@media (max-height: 760px) {
  body.cp-body--growth .cp-shell.cp-shell-growth {
    padding-top: 10px;
  }

  .cp-growth-hero__media img {
    max-height: 120px;
  }

  .cp-growth-card__body {
    padding: 10px 10px 10px 12px;
  }

  .cp-growth-card__summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cp-growth-card__media img {
    min-height: 228px;
    max-height: 252px;
  }

  .cp-growth-card {
    min-height: 280px;
  }

  .cp-growth-modal {
    top: 24%;
    bottom: 20%;
  }

  .cp-growth-process__head h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  .cp-growth-options {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .cp-growth-modal {
    top: 4%;
    bottom: 4%;
  }

  .cp-growth-card {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .cp-growth-card__media {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
  }

  .cp-growth-card__media img {
    min-height: 200px;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .cp-growth-hero {
    grid-template-columns: 1fr;
  }

  .cp-growth-hero__media {
    justify-self: stretch;
    width: 100%;
  }

  .cp-growth-process {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .cp-growth-steps {
    flex-direction: column;
    gap: 16px;
  }

  .cp-growth-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .cp-shell.cp-shell-growth {
    width: min(100% - 24px, 1120px);
  }

  .cp-growth-card {
    grid-template-columns: 1fr;
  }

  .cp-growth-card__media {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 120px;
  }

  .cp-growth-card__media img {
    min-height: 120px;
    max-height: 120px;
  }

  .cp-growth-hero__media {
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  }
}
