/* Styling for the "Why Nonjiz?" page only: the features, the two images and the security section (decision 389) */
/* Loaded after site.css on this page only, so the shared styling stays lighter for the other pages */
/* "Why Nonjiz?" page (decision 352): features as numbered points, then workflow and measurement with their points and images, then security */
/* The first section of the Why Nonjiz page, directly under the header: half the usual spacing above it */
.why-section--first {
  padding-block-start: calc(var(--section-y) / 2);
}

.why-features {
  display: grid;
  gap: var(--sp-3);
}

.why-feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border: var(--line) solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.why-num {
  display: inline-grid;
  place-items: center;
  inline-size: var(--slide-num);
  block-size: var(--slide-num);
  border-radius: var(--r-pill);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: var(--fw-black);
}

.why-feature-title,
.why-point-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
}

.why-feature-text,
.why-point-text {
  margin-block-start: var(--sp-1);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

/* An on-demand service: a quiet orange pill next to its title */
.why-tag {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--chip-h);
  padding-inline: var(--sp-2);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
}

.why-split {
  display: grid;
  align-items: center;
  gap: var(--sp-8);
}

.why-points {
  display: grid;
  gap: var(--sp-5);
}

.why-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--sp-4);
}

@media (min-width: 48rem) {
  .why-features,
  .why-points--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-4) var(--sp-6);
  }
}

@media (min-width: 64rem) {
  .why-split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--sp-12);
  }
}

@media (min-width: 72rem) {
  .why-features,
  .why-points--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* "Why Nonjiz?" page in the new design (decision 389): the feature number in a circle in the brand color and a light shadow on the card */
.why-feature {
  padding: var(--sp-6);
  box-shadow: var(--shadow-1);
}

.why-num {
  background: var(--primary);
  color: var(--on-primary);
}

/* Security is a deep panel with white points */
.why-deep {
  padding: clamp(2rem, 1rem + 4vw, 4rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  border-radius: var(--r-device);
  background-color: var(--hero-deep);
  background-image:
    radial-gradient(55% 90% at 100% 0%, var(--hero-glow-1), transparent 72%),
    radial-gradient(35% 60% at 0% 100%, var(--hero-glow-2), transparent 70%),
    linear-gradient(180deg, var(--hero-deep), var(--hero-deep-2));
  color: var(--on-deep);
  --focus: var(--on-deep);
}

.why-deep .why-point-text {
  color: var(--on-deep-muted);
}
