/*
 * Shared presentation for the six public commercial landings.
 * Text/header rhythm comes from site-tpost.css; the product grid follows the
 * homepage catalog. Families only modify composition and never create a
 * parallel component system.
 */

.nz-seo-landing-page {
  --nz-seo-orange: #ff7354;
  --nz-seo-orange-hover: #fc613e;
  --nz-seo-purple: #9d60df;
  --nz-seo-product-ink: #505050;
  --nz-seo-border: rgba(32, 32, 32, 0.16);
  --nz-seo-related-ink: #4b443f;
  --nz-seo-catalog-rail: 1160px;
  --nz-seo-tablet-rail: 740px;
}

.nz-seo-landing-page .nz-tpost-back:hover,
.nz-seo-landing-page .nz-tpost-back:focus-visible {
  color: #201f1e;
}

.nz-seo-intro {
  width: min(var(--nz-seo-tablet-rail), calc(100% - 40px));
  padding-bottom: 32px;
}

.nz-seo-intro .nz-tpost-article {
  max-width: 760px;
}

.nz-seo-intro .nz-tpost-title {
  margin-bottom: 16px;
  line-height: 44px;
}

.nz-seo-intro .nz-tpost-body {
  max-width: 760px;
  font-size: 18px;
  line-height: 27px;
}

.nz-seo-intro .nz-tpost-body p {
  margin-bottom: 0;
}

.nz-seo-products {
  padding: 0 20px 68px;
}

.nz-seo-product-grid {
  display: grid;
  width: min(var(--nz-seo-tablet-rail), 100%);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 360px));
  justify-content: start;
  gap: 46px 20px;
}

@media screen and (min-width: 1080px) {
  .nz-seo-intro {
    width: min(var(--nz-seo-catalog-rail), calc(100% - 40px));
  }

  .nz-seo-product-grid,
  .nz-seo-empty-shell {
    width: min(var(--nz-seo-catalog-rail), 100%);
  }

  .nz-seo-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 40px;
  }
}

.nz-seo-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

.nz-seo-product-card__image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
  text-decoration: none;
}

.nz-seo-product-card__image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nz-seo-product-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #f7f3fa;
  color: var(--nz-seo-purple);
  font-size: 18px;
  font-weight: 900;
}

.nz-seo-product-card__text {
  flex: 1 1 auto;
  padding-top: 18px;
}

.nz-seo-product-card__title {
  margin: 0;
  color: var(--nz-seo-orange);
  font-size: 20px;
  line-height: 26px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.nz-seo-product-card__price {
  margin: 10px 0 0;
  color: var(--nz-seo-product-ink);
  font-size: 20px;
  line-height: 24px;
  font-weight: 900;
}

.nz-seo-product-card__button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--nz-seo-purple);
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.nz-seo-product-card__button:hover,
.nz-seo-product-card__button:focus-visible {
  background: var(--nz-seo-orange);
  color: #fff !important;
}

.nz-seo-product-card__button:focus-visible,
.nz-seo-empty__catalog-link:focus-visible,
.nz-seo-related__links a:focus-visible,
.nz-seo-supporting-link a:focus-visible {
  outline: 3px solid var(--nz-seo-purple);
  outline-offset: 3px;
}

.nz-seo-empty-shell {
  width: min(var(--nz-seo-tablet-rail), 100%);
  margin: 0 auto;
}

.nz-seo-empty {
  margin: 0;
}

.nz-seo-empty__status {
  margin: 0;
  color: #817a75;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
}

.nz-seo-empty__text {
  max-width: 680px;
  margin: 9px 0 0;
  color: #111;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
}

.nz-seo-empty__actions {
  display: flex;
  margin-top: 20px;
  align-items: center;
  gap: 20px;
}

.nz-seo-empty__actions .nz-tpost-cta__link--primary {
  width: auto;
  min-width: 280px;
}

.nz-seo-empty__catalog-link {
  width: fit-content;
  color: var(--nz-seo-related-ink);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.nz-seo-empty__catalog-link::after {
  content: " →";
  color: var(--nz-seo-orange);
  text-decoration: none;
}

.nz-seo-reading {
  padding-top: 52px;
  padding-bottom: 72px;
  border-top: 1px solid var(--nz-seo-border);
}

.nz-seo-copy__section h2,
.nz-seo-faq h2,
.nz-seo-related h2 {
  margin-top: 0;
}

.nz-seo-copy__section + .nz-seo-copy__section,
.nz-seo-faq,
.nz-seo-related {
  margin-top: 44px;
}

.nz-seo-faq__list {
  margin-top: 10px;
  border-top: 1px solid var(--nz-seo-border);
}

.nz-seo-faq__item {
  border-bottom: 1px solid var(--nz-seo-border);
}

.nz-seo-faq__item summary {
  position: relative;
  cursor: pointer;
  padding: 17px 38px 17px 0;
  list-style: none;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
}

.nz-seo-faq__item summary::-webkit-details-marker {
  display: none;
}

.nz-seo-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 14px;
  right: 0;
  color: var(--nz-seo-orange);
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.nz-seo-faq__item[open] summary::after {
  content: "−";
}

.nz-tpost-body .nz-seo-faq__item p {
  margin: -2px 0 18px;
  padding: 0 38px 0 0;
}

.nz-seo-related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 12px;
}

.nz-seo-related__links a,
.nz-seo-supporting-link a {
  width: fit-content;
  color: var(--nz-seo-related-ink);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.nz-seo-related__links a::after {
  content: " →";
  color: var(--nz-seo-orange);
  text-decoration: none;
}

.nz-seo-final-cta {
  margin-top: 48px;
  padding-top: 28px;
}

.nz-seo-final-cta__actions {
  width: auto;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.nz-seo-final-cta__actions .nz-tpost-cta__link {
  width: auto;
  min-width: 220px;
}

.nz-seo-supporting-link {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.nz-seo-meta {
  padding-bottom: 0;
}

@media screen and (min-width: 640px) and (max-width: 1079px) {
  .nz-seo-intro .nz-tpost-title {
    font-size: 34px;
    line-height: 41px;
  }
}

@media screen and (max-width: 1079px) {
  .nz-seo-products {
    padding-bottom: 58px;
  }

  .nz-seo-reading {
    padding-top: 46px;
    padding-bottom: 64px;
  }

  .nz-seo-final-cta__actions {
    align-items: stretch;
  }

  .nz-seo-final-cta__actions .nz-tpost-cta__link {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media screen and (max-width: 639px) {
  .nz-seo-intro {
    width: calc(100% - 20px);
    padding-bottom: 24px;
  }

  .nz-seo-intro .nz-tpost-title {
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 14px;
  }

  .nz-seo-intro .nz-tpost-body {
    font-size: 16px;
    line-height: 24px;
  }

  .nz-seo-products {
    padding: 0 10px 48px;
  }

  .nz-seo-empty__status {
    font-size: 15px;
  }

  .nz-seo-empty__text {
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.5;
  }

  .nz-seo-product-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 10px;
  }

  .nz-seo-empty-shell {
    width: 100%;
  }

  .nz-seo-product-card__text {
    padding-top: 13px;
  }

  .nz-seo-product-card__title {
    font-size: 16px;
    line-height: 21px;
  }

  .nz-seo-product-card__price {
    margin-top: 7px;
    font-size: 16px;
    line-height: 19px;
  }

  .nz-seo-product-card__button {
    min-height: 44px;
    margin-top: 13px;
    padding: 10px 8px;
    font-size: 12px;
  }

  .nz-seo-reading {
    padding-top: 38px;
    padding-bottom: 52px;
  }

  .nz-seo-copy__section + .nz-seo-copy__section,
  .nz-seo-faq,
  .nz-seo-related {
    margin-top: 34px;
  }

  .nz-seo-faq__item summary {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 16px;
  }

  .nz-seo-faq__item summary::after {
    top: 13px;
  }

  .nz-seo-related__links {
    display: grid;
    gap: 9px;
  }

  .nz-seo-final-cta {
    margin-top: 40px;
    padding-top: 22px;
  }

  .nz-seo-final-cta__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nz-seo-final-cta__actions .nz-tpost-cta__link {
    width: 100%;
    min-width: 0;
  }

  .nz-seo-empty__actions {
    margin-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nz-seo-empty__actions .nz-tpost-cta__link--primary {
    width: 100%;
    min-width: 0;
  }
}
