:root {
  --pack-navy: var(--fv-navy, #10184f);
  --pack-coral: var(--fv-coral, #ff514d);
  --pack-muted: var(--fv-muted, #5f6783);
  --pack-line: var(--fv-line, #e7eaf3);
  --pack-soft-blue: var(--fv-soft-blue, #edf5ff);
  --pack-soft-coral: var(--fv-soft-coral, #fff0ef);
}

.pack-shell {
  width: min(1160px, calc(100% - 48px));
  max-width: none;
  padding: 82px 0 112px;
}

.pack-hero {
  display: grid;
  gap: 38px;
  margin-bottom: 28px;
}

.pack-hero > div {
  max-width: 980px;
}

.pack-product-name {
  display: flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  margin: 0 0 28px;
  color: var(--pack-navy);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

.pack-product-name > span {
  width: 48px;
  height: 4px;
  flex: 0 0 48px;
  border-radius: 99px;
  background: var(--pack-coral);
}

.pack-hero h1 {
  max-width: 980px;
  margin: 0 0 28px;
  color: var(--pack-navy);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(4rem, 7vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .95;
}

.pack-hero h1 em {
  color: var(--pack-coral);
  font-style: normal;
  font-weight: inherit;
}

.pack-lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: #505a78;
  font-size: 1.15rem;
  line-height: 1.7;
}

.pack-hero .restore-button {
  width: fit-content;
}

.pack-price-card {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(300px, 1fr) minmax(250px, .92fr) auto;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  color: var(--pack-navy);
  border: 2px solid var(--pack-coral);
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 45px rgba(255, 81, 77, .09);
}

.pack-price-card::after {
  content: "✓";
  grid-column: 4;
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--pack-coral);
  font-size: 1rem;
  font-weight: 800;
}

.pack-price-card > span {
  display: block;
  color: var(--pack-navy);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pack-price-card strong {
  display: block;
  color: var(--pack-coral);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .9;
  white-space: nowrap;
}

.pack-price-card strong small {
  color: var(--pack-navy);
  font-family: "DM Sans", sans-serif;
  font-size: .85rem;
  letter-spacing: .07em;
}

.pack-price-card p {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--pack-muted);
  font-size: .9rem;
  white-space: nowrap;
}

.pack-price-card p s {
  color: #68708e;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(2.35rem, 3.7vw, 3.45rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .9;
  text-decoration-color: var(--pack-coral);
  text-decoration-thickness: 3px;
}

.pack-price-card p span {
  font-weight: 600;
}

.pack-price-card b {
  color: var(--pack-navy);
  font-size: .92rem;
}

.pack-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pack-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(16, 24, 79, .05);
  list-style: none;
}

.pack-benefits li {
  min-height: 106px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-left: 1px solid var(--pack-line);
}

.pack-benefits li:first-child {
  border-left: 0;
}

.pack-benefits strong {
  color: var(--pack-coral);
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

.pack-benefits span {
  color: var(--pack-muted);
  font-size: .84rem;
  line-height: 1.35;
}

.pack-upload-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: -4px 0 18px;
}

.pack-upload-heading strong {
  color: var(--pack-navy);
}

.pack-upload-heading span {
  color: var(--pack-muted);
  font-size: .85rem;
}

.pack-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pack-photo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pack-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 79, .06);
}

.pack-slot {
  position: relative;
  min-height: 215px;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--pack-navy);
  border: 2px dashed #bac7df;
  border-radius: 18px;
  background: #f7faff;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pack-photo-card .pack-slot {
  border: 0;
  border-bottom: 1px solid var(--pack-line);
  border-radius: 0;
}

.pack-slot:hover,
.pack-slot:focus-within {
  border-color: var(--pack-coral);
  background: var(--pack-soft-coral);
  transform: translateY(-2px);
}

.pack-slot.has-file {
  justify-content: flex-end;
  border-style: solid;
  border-color: var(--pack-coral);
  background: #fff;
}

.pack-slot input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pack-slot img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.pack-slot-number {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--pack-coral);
  box-shadow: 0 5px 14px rgba(255, 81, 77, .24);
  font-size: .78rem;
  font-weight: 800;
}

.pack-slot strong {
  position: relative;
  z-index: 1;
  font-size: .86rem;
}

.pack-slot small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  color: var(--pack-muted);
  font-size: .7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-finish-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  color: #fff;
  border-radius: 16px;
  background: var(--pack-navy);
}

.pack-finish-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.pack-finish-toolbar span {
  color: #bdc6e3;
  font-size: .78rem;
}

.pack-finish-toolbar > div:last-child,
.pack-finish-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pack-finish-toolbar button,
.pack-finish-choice button {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--pack-navy);
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.pack-finish-toolbar button:last-child {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: transparent;
}

.pack-finish-choice {
  padding: 9px;
  background: #fff;
}

.pack-finish-choice button {
  min-width: 0;
  padding-inline: 6px;
  color: #69718c;
  border-color: var(--pack-line);
  background: #f7f8fc;
}

.pack-finish-choice button[aria-pressed="true"] {
  color: #fff;
  border-color: var(--pack-coral);
  background: var(--pack-coral);
  box-shadow: 0 6px 15px rgba(255, 81, 77, .2);
}

.pack-finish-choice button[data-pack-mode="color"][aria-pressed="true"] {
  border-color: var(--pack-navy);
  background: var(--pack-navy);
  box-shadow: 0 6px 15px rgba(16, 24, 79, .2);
}

.pack-finish-choice button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.pack-consent {
  margin-top: 26px;
}

.pack-confirmation,
.pack-progress {
  margin-top: 24px;
}

.pack-confirmation-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.pack-confirmation-thumbs img,
.pack-confirmation-thumbs .pack-thumb-placeholder {
  width: 100%;
  height: 150px;
  object-fit: cover;
  overflow: hidden;
  border: 1px solid var(--pack-line);
  border-radius: 14px;
  background: var(--pack-soft-blue);
}

.pack-confirmation-thumb {
  position: relative;
  min-width: 0;
}

.pack-confirmation-thumb > img,
.pack-confirmation-thumb > .pack-thumb-placeholder {
  display: block;
}

.pack-confirmation-thumb > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  color: #fff;
  border-radius: 99px;
  background: var(--pack-navy);
  box-shadow: 0 5px 14px rgba(16, 24, 79, .24);
  font-size: .64rem;
  font-weight: 800;
}

.pack-thumb-placeholder {
  display: grid;
  place-items: center;
  color: var(--pack-muted);
  font-size: .78rem;
}

.pack-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 0 0 25px;
  padding-left: 22px;
  color: #4f5877;
  line-height: 1.5;
}

.pack-includes li::marker {
  color: var(--pack-coral);
}

.pack-job-list {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.pack-job-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
}

.pack-job-list .job-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--pack-coral);
  font-weight: 800;
}

.pack-job-list small {
  color: #bdc6e3;
}

.pack-job-list [data-state="completed"] { color: #88e3b0; }
.pack-job-list [data-state="failed"] { color: #ffaaa7; }
.pack-job-list [data-state="processing"],
.pack-job-list [data-state="queued"] { color: #fff; }

.pack-progress {
  color: #fff;
  border: 0;
  background: var(--pack-navy);
  box-shadow: 0 24px 60px rgba(16, 24, 79, .2);
}

.pack-progress .lab-card-heading h2 {
  color: #fff;
}

.pack-progress .lab-card-heading p:not(.step-kicker) {
  color: #bdc6e3;
}

.pack-progress .secondary-button {
  border-color: #fff;
}

.pack-results {
  margin-top: 36px;
  padding: 38px;
  color: #fff;
  border-radius: 28px;
  background: var(--pack-navy);
  box-shadow: 0 24px 60px rgba(16, 24, 79, .2);
}

.pack-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px;
  margin-bottom: 26px;
}

.pack-results-heading .lab-eyebrow {
  color: #bdc6e3;
}

.pack-results-heading h2 {
  margin: 0;
  color: #fff;
  font-family: "Manrope", "DM Sans", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
}

.pack-result-grid {
  display: grid;
  gap: 30px;
}

.pack-result-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
}

.pack-result-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pack-result-card h3 {
  margin: 0;
  font-size: 1rem;
}

.pack-result-card .lab-compare {
  min-height: 570px;
}

.pack-result-card .download-button {
  min-height: 44px;
  padding: 10px 16px;
}

.pack-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  color: var(--pack-muted);
  font-size: .8rem;
}

.pack-footer button {
  padding: 0;
  color: inherit;
  border: 0;
  border-bottom: 1px solid var(--pack-coral);
  background: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .pack-price-card {
    grid-template-columns: 1fr 1fr auto;
  }

  .pack-price-card > span {
    grid-column: 1;
    grid-row: 1;
  }

  .pack-price-card strong {
    grid-column: 1;
    grid-row: 2;
  }

  .pack-price-card p {
    grid-column: 2;
    grid-row: 2;
  }

  .pack-price-card b {
    grid-column: 2;
    grid-row: 1;
  }

  .pack-price-card::after {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .pack-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .pack-benefits li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--pack-line);
  }

  .pack-benefits li:nth-child(4) {
    border-top: 1px solid var(--pack-line);
  }

  .pack-upload-grid,
  .pack-confirmation-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .pack-photo-card:last-child,
  .pack-confirmation-thumbs > *:last-child {
    grid-column: span 2;
  }

  .pack-slot {
    min-height: 225px;
  }

  .pack-includes {
    grid-template-columns: 1fr;
  }

  .pack-result-card .lab-compare {
    min-height: 480px;
  }
}

@media (max-width: 720px) {
  .pack-shell {
    width: min(100% - 28px, 560px);
    padding: 52px 0 76px;
  }

  .pack-hero {
    gap: 28px;
  }

  .pack-hero h1 {
    font-size: clamp(3.15rem, 15vw, 4.6rem);
  }

  .pack-product-name {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.08rem;
    letter-spacing: .06em;
  }

  .pack-product-name > span {
    width: 36px;
    height: 3px;
    flex-basis: 36px;
  }

  .pack-lead {
    font-size: 1rem;
  }

  .pack-hero .restore-button {
    width: 100%;
  }

  .pack-price-card {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding: 24px 22px;
  }

  .pack-price-card > span,
  .pack-price-card strong,
  .pack-price-card p,
  .pack-price-card b {
    grid-column: 1;
    grid-row: auto;
  }

  .pack-price-card::after {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .pack-price-card p {
    flex-wrap: wrap;
    gap: 5px 9px;
  }

  .pack-price-card p s {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  .pack-upload-heading,
  .pack-results-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .pack-finish-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pack-results {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .pack-results-heading .download-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .pack-benefits li {
    min-height: 98px;
    padding: 18px;
  }

  .pack-upload-grid {
    grid-template-columns: 1fr;
  }

  .pack-photo-card,
  .pack-photo-card:last-child {
    grid-column: auto;
  }

  .pack-slot {
    min-height: 280px;
  }

  .pack-slot img {
    height: 220px;
  }

  .pack-confirmation-thumbs {
    grid-template-columns: repeat(5, 130px);
    overflow-x: auto;
  }

  .pack-confirmation-thumbs > *:last-child {
    grid-column: auto;
  }

  .pack-result-card {
    padding: 12px;
  }

  .pack-result-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .pack-result-card .lab-compare {
    min-height: 400px;
  }

  .pack-footer {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-slot {
    transition: none;
  }
}
