/* ==========================================================================
   Home: "From First Idea To Live Product." — intro with illustration, six steps with
   how long each takes, and the tech stack. Class names avoid the "-card" suffix,
   which luxury.js would otherwise animate.
   Shared type sizes and section spacing come from css/home-scale.css.
   ========================================================================== */

.prc-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #F5F8FE 0%, #EEF4FD 100%);
  font-family: var(--font-sans);
}

.prc-wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.prc-wave--left {
  top: -180px;
  left: -260px;
  width: 640px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.8), rgba(191, 219, 254, 0));
}

.prc-wave--right {
  top: 30%;
  right: -260px;
  width: 620px;
  height: 640px;
  background: radial-gradient(closest-side, rgba(147, 197, 253, 0.5), rgba(147, 197, 253, 0));
}

.prc-inner {
  max-width: 1440px;
}

/* ---- Intro ---- */
.prc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 40px;
}

.prc-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border: 1px solid #BFDBFE;
  border-radius: 999px;
  background: #E8F1FD;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 700;
}

.prc-pill svg {
  width: 20px;
  height: 20px;
}

.prc-heading {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #071827;
}

.prc-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  color: #1D4ED8;
}

.prc-swoosh {
  position: absolute;
  left: 36%;
  bottom: -6px;
  width: 64%;
  height: 18px;
}

.prc-sub {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: #334155;
  text-wrap: pretty;
}

.prc-promises {
  display: flex;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.prc-promises li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  white-space: nowrap;
}

.prc-promises li:first-child {
  padding-left: 0;
}

.prc-promises li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 38px;
  background: #CBD5E1;
  transform: translateY(-50%);
}

.prc-promise-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #E3EBF6;
  border-radius: 50%;
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 10px 20px -14px rgba(11, 34, 57, 0.45);
}

.prc-promise-icon svg {
  width: 24px;
  height: 24px;
}

.prc-promises strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: #071827;
}

.prc-promises small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: #475569;
}

.prc-visual {
  margin: 0 -24px 0 0;
}

.prc-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Steps ---- */
.prc-track {
  position: relative;
  margin-top: 56px;
}

/* line through the icons, with a dot between each pair (wide screens only) */
.prc-line {
  position: absolute;
  top: 44px;
  left: 8.33%;
  right: 8.33%;
  height: 2px;
  background: linear-gradient(90deg, #3B82F6, #7C3AED 50%, #3B82F6);
  opacity: 0.55;
}

.prc-dots span {
  position: absolute;
  top: 44px;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #2563EB;
  box-shadow: 0 0 0 4px #FFFFFF, 0 4px 10px rgba(37, 99, 235, 0.35);
}

.prc-dots span:nth-child(1) { left: 16.67%; }
.prc-dots span:nth-child(2) { left: 33.33%; background: #4F46E5; }
.prc-dots span:nth-child(3) { left: 50%; }
.prc-dots span:nth-child(4) { left: 66.67%; background: #4F46E5; }
.prc-dots span:nth-child(5) { left: 83.33%; }

.prc-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prc-step {
  --tone: #2563EB;
  --tone-2: #1D4ED8;
  --tone-hi: #60A5FA;
  --tone-soft: #DBEAFE;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 66px; /* the icon sits on the card's top edge */
  text-align: center;
}

.prc-step:nth-child(even) {
  --tone: #6D28D9;
  --tone-2: #5B21B6;
  --tone-hi: #A78BFA;
  --tone-soft: #EDE9FE;
}

.prc-icon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9), 0 16px 30px -14px rgba(30, 64, 175, 0.45);
  transform: translateX(-50%);
  transition: transform 0.3s ease;
}

.prc-icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--tone-hi) 0%, var(--tone) 55%, var(--tone-2) 100%);
  color: #FFFFFF;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.45), inset 0 -6px 12px rgba(0, 0, 0, 0.18);
}

.prc-icon-tile::before {
  content: "";
  position: absolute;
  inset: -40% -20% 52%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.prc-icon svg {
  position: relative;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.2));
}

.prc-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow: hidden;
  padding: 38px 16px 34px;
  border: 1px solid #E3EBF6;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 22px 44px -30px rgba(11, 34, 57, 0.4);
  transition: box-shadow 0.3s ease;
}

.prc-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 5px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(90deg, var(--tone-hi), var(--tone));
}

.prc-step:hover .prc-body {
  box-shadow: 0 28px 50px -30px rgba(11, 34, 57, 0.5);
}

.prc-num {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone-2);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.prc-title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: #071827;
  text-wrap: balance;
}

.prc-desc {
  flex: 1;
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #334155;
  text-wrap: pretty;
}

.prc-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid #DBE5F3;
  border-radius: 999px;
  background: #F8FAFC;
  color: #0B2239;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.prc-time svg {
  width: 16px;
  height: 16px;
  color: var(--tone);
}

/* ---- Tech stack ---- */
.prc-stack {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding: 14px 16px 14px 28px;
  border: 1px solid #E3EBF6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 44px -32px rgba(11, 34, 57, 0.4);
}

.prc-stack-label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid #E2E8F0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #071827;
}

.prc-stack-label svg {
  width: 26px;
  height: 26px;
  color: #2563EB;
}

.prc-stack-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prc-stack-list li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: #0B2239;
}

.prc-stack-list img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.prc-stack-list img.is-aws {
  width: 38px;
}

.prc-more {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid #2563EB;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease;
}

.prc-more svg {
  width: 18px;
  height: 18px;
}

.prc-more:hover {
  background: #EFF6FF;
  color: #1D4ED8;
}

.prc-more:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 1399px) {
  .prc-steps {
    gap: 14px;
  }

  .prc-body {
    padding: 36px 12px 30px;
  }

  .prc-title {
    font-size: 18px;
  }

  .prc-desc {
    font-size: 14px;
  }

  .prc-time {
    padding: 5px 11px;
    font-size: 13px;
  }

  .prc-stack-list li {
    font-size: 14.5px;
  }
}

/* below 1360px the three promises sit one under another */
@media (max-width: 1359px) {
  .prc-promises {
    flex-direction: column;
    gap: 14px;
  }

  .prc-promises li {
    padding: 0;
  }

  .prc-promises li + li::before {
    display: none;
  }
}

@media (max-width: 1199px) {
  .prc-line,
  .prc-dots {
    display: none;
  }

  .prc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .prc-title {
    font-size: 20px;
  }

  .prc-desc {
    font-size: 15px;
  }

  .prc-stack {
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    border-radius: 28px;
  }

  .prc-stack-label {
    width: 100%;
    justify-content: center;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid #E2E8F0;
  }

  .prc-stack-list {
    flex-basis: 100%;
    justify-content: center;
  }
}

@media (max-width: 1023px) {
  .prc-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .prc-visual {
    max-width: 680px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .prc-section {
    padding: 72px 0;
  }

  .prc-sub {
    font-size: 17px;
  }

  .prc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .prc-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .prc-stack-list {
    gap: 14px 18px;
  }

  .prc-more {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .prc-step:hover .prc-icon {
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prc-icon,
  .prc-body,
  .prc-more {
    transition: none;
  }
}

.prc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
