/* Nicco SaaS products catalog */
.nws-products {
  --nws-ink: var(--theme-color2, #131313);
  --nws-muted: #64748b;
  --nws-line: rgba(19, 19, 19, 0.1);
  --nws-soft: #f6f7f9;
  --nws-accent: var(--theme-color1, #f2520d);
  --nws-radius: 20px;
  --nws-shadow: 0 16px 40px rgba(19, 19, 19, 0.08);
  padding: 0;
  background: transparent;
}

.nws-products .auto-container {
  position: relative;
}

.nws-products-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px 40px;
  align-items: center;
  margin: 0;
  text-align: left;
  position: relative;
  z-index: 0;
}

.nws-products-intro__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--nws-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nws-products-intro__kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--nws-accent);
}

.nws-products-intro__title {
  margin: 0 0 14px;
  color: var(--nws-ink);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.nws-products-intro__text {
  max-width: 540px;
  margin: 0 0 16px;
  color: var(--nws-muted);
  font-size: 16.5px;
  line-height: 1.7;
}

.nws-products-intro__text:last-of-type {
  margin-bottom: 24px;
}

.nws-intro-features {
  list-style: none;
  max-width: 540px;
  margin: 0;
  padding: 4px 0 0;
  border-top: 1px solid var(--nws-line);
}

.nws-intro-features li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--nws-line);
}

.nws-intro-features li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nws-intro-features__idx {
  display: block;
  padding-top: 3px;
  color: var(--nws-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.nws-intro-features h3 {
  margin: 0 0 5px;
  color: var(--nws-ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.nws-intro-features p {
  margin: 0;
  color: var(--nws-muted);
  font-size: 14px;
  line-height: 1.6;
}

.nws-products .theme-btn {
  border: 1px solid transparent;
  box-shadow: none;
}

/* Card CTAs are small — skip the theme ::before wipe (slow and easy to miss). */
.nws-products .theme-btn:before,
.nws-products .theme-btn:hover:before,
.nws-products .theme-btn:focus-visible:before {
  content: none;
  display: none;
  transform: none;
}

/* Primary (View product): invert to white + orange type so the hover is obvious. */
.nws-products .btn-style-two {
  background-color: var(--nws-accent);
  color: #fff;
  border-color: var(--nws-accent);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nws-products .btn-style-two:hover,
.nws-products .btn-style-two:focus-visible {
  background-color: #fff;
  border-color: var(--nws-accent);
  color: var(--nws-accent);
}

.nws-products .btn-style-three {
  background-color: #fff;
  color: var(--nws-ink);
  border-color: var(--nws-line);
}

.nws-products .btn-style-three:hover,
.nws-products .btn-style-three:focus-visible {
  background-color: var(--nws-ink);
  border-color: var(--nws-ink);
  color: #fff;
}

.nws-products .btn-style-one:hover,
.nws-products .btn-style-one:focus-visible {
  background-color: var(--nws-ink);
  color: #fff;
}

.nws-products .btn-style-one:hover span {
  background-color: #fff;
}

.nws-orbit {
  --r: 42%;
  --hub: 148px;
  --spin: 48s;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin-inline: auto;
  isolation: isolate;
}

.nws-orbit__glow {
  position: absolute;
  inset: 8%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 82, 13, 0.1) 0%, rgba(242, 82, 13, 0.03) 38%, transparent 70%);
}

.nws-orbit__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: nws-orbit-spin var(--spin) linear infinite;
}

.nws-orbit:hover .nws-orbit__stage,
.nws-orbit:hover .nws-orbit__node,
.nws-orbit:focus-within .nws-orbit__stage,
.nws-orbit:focus-within .nws-orbit__node {
  animation-play-state: paused;
}

.nws-orbit__rings {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.nws-orbit__ring {
  position: absolute;
  inset: 8%;
  border: 1.5px dashed rgba(19, 19, 19, 0.14);
  border-radius: 50%;
}

.nws-orbit__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  width: var(--hub);
  height: var(--hub);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(19, 19, 19, 0.06);
  border-radius: 50%;
  box-shadow:
    0 18px 44px rgba(19, 19, 19, 0.1),
    0 0 0 10px rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
}

.nws-orbit__badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  background: #111;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(242, 82, 13, 0.22);
}

.nws-orbit__mark {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: cover;
}

.nws-orbit__hub-label {
  max-width: 96px;
  color: #334155;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.nws-orbit__node {
  position: absolute;
  left: calc(50% + cos(var(--a)) * var(--r));
  top: calc(50% + sin(var(--a)) * var(--r));
  z-index: 3;
  display: flex;
  width: 86px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--nws-ink);
  text-decoration: none;
  transform: translate(-50%, -50%);
  animation: nws-orbit-counter var(--spin) linear infinite;
}

.nws-orbit__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--c, var(--nws-accent));
  font-size: 21px;
  background: color-mix(in srgb, var(--c) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 18%, rgba(19, 19, 19, 0.05));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(19, 19, 19, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.nws-orbit__node span:last-child {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.01em;
}

.nws-orbit__node:hover .nws-orbit__icon,
.nws-orbit__node:focus-visible .nws-orbit__icon {
  transform: translateY(-4px) scale(1.06);
  background: color-mix(in srgb, var(--c) 10%, #fff);
  border-color: color-mix(in srgb, var(--c) 35%, transparent);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--c) 28%, rgba(19, 19, 19, 0.08));
}

.nws-orbit__node:hover span:last-child,
.nws-orbit__node:focus-visible span:last-child {
  color: var(--c, var(--nws-accent));
}

.nws-orbit__node:focus-visible {
  outline: none;
}

.nws-orbit__node:focus-visible .nws-orbit__icon {
  outline: 2px solid var(--c, var(--nws-accent));
  outline-offset: 3px;
}

@keyframes nws-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nws-orbit-counter {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nws-orbit__stage,
  .nws-orbit__node {
    animation: none;
  }

  .nws-orbit__node:hover .nws-orbit__icon,
  .nws-orbit__node:focus-visible .nws-orbit__icon {
    transform: none;
  }
}

.nws-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}

.nws-filters button {
  appearance: none;
  border: 1px solid var(--nws-line);
  background: #fff;
  color: var(--nws-ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nws-filters button:hover {
  background: rgba(242, 82, 13, 0.1);
  border-color: var(--nws-accent);
  color: var(--nws-accent);
}

.nws-filters button.is-active,
.nws-filters button.is-active:hover {
  background: var(--nws-accent);
  border-color: var(--nws-accent);
  color: #fff;
}

.nws-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.nws-product {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  scroll-margin-top: 110px;
  background: #fff;
  border: 1px solid var(--nws-line);
  border-radius: var(--nws-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(19, 19, 19, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nws-product:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 82, 13, 0.35);
  box-shadow: var(--nws-shadow);
}

.nws-product__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1a1a;
}

.nws-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.nws-product:hover .nws-product__media img {
  transform: scale(1.06);
}

.nws-product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 19, 19, 0.55) 100%);
  pointer-events: none;
}

.nws-product__cat {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nws-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.nws-product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.nws-product__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--nws-ink);
  font-weight: 700;
}

.nws-product__desc {
  margin: 0 0 14px;
  color: var(--nws-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.nws-product__features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 7px;
}

.nws-product__features li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.4;
}

.nws-product__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nws-accent);
}

.nws-product__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nws-product__actions .theme-btn {
  margin: 0;
  padding: 11px 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nws-products .nws-how.sd-block-section {
  background: #131313;
  padding: 88px 0;
}

.nws-how__head {
  margin-bottom: 40px;
}

.nws-how__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--nws-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nws-how__kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--nws-accent);
}

.nws-how__title {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.nws-how__step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--nws-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nws-how__step:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(242, 82, 13, 0.2);
}

.nws-how__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1a1a1a;
}

.nws-how__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.nws-how__step:hover .nws-how__media img {
  transform: scale(1.07);
}

.nws-how__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(19, 19, 19, 0.72) 100%);
  pointer-events: none;
}

.nws-how__num {
  position: absolute;
  left: 16px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.nws-how__body {
  padding: 20px 20px 22px;
}

.nws-how__body h3 {
  margin: 0 0 8px;
  color: var(--nws-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nws-how__body p {
  margin: 0;
  color: var(--nws-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .nws-how__step,
  .nws-how__media img {
    transition: none;
  }

  .nws-how__step:hover {
    transform: none;
  }

  .nws-how__step:hover .nws-how__media img {
    transform: none;
  }
}

.nws-faq {
  padding: 0;
}

.nws-faq .sec-title {
  text-align: center;
  margin-bottom: 24px;
}

.nws-faq .sec-title .text {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--nws-muted);
}

.nws-faq .faq-column {
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 1199.98px) {
  .nws-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .nws-products-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nws-orbit {
    max-width: 440px;
    --hub: 128px;
  }

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

@media (max-width: 767.98px) {
  .nws-product-grid {
    grid-template-columns: 1fr;
  }

  .nws-orbit {
    --hub: 112px;
    --r: 40%;
  }

  .nws-orbit__badge,
  .nws-orbit__mark {
    width: 40px;
    height: 40px;
  }

  .nws-orbit__hub-label {
    font-size: 8px;
    max-width: 78px;
  }

  .nws-orbit__icon {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .nws-how__track {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nws-how__media {
    aspect-ratio: 16 / 10;
  }

  .nws-product__title {
    font-size: 20px;
  }
}

body.products-page .nicco-cookie-banner,
body.products-page .nicco-cookie-modal,
body.products-page .nicco-offers-popup {
  z-index: 1000000;
}

@media (max-width: 480px) {
  .nws-orbit__node {
    width: 70px;
  }

  .nws-orbit__node span:last-child {
    font-size: 10px;
  }
}
