/* ==========================================================================
   product-base.css — Shared layout primitives for all product/company pages
   Uses only var(--nx-*) tokens. No raw hex values.
   Prefix: .pg-*
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.pg-hero {
  padding: var(--nx-s-16) 0 var(--nx-s-12);
  background: var(--nx-surface-warm);
  text-align: center;
}

.pg-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--nx-s-2);
  background: var(--nx-orange-tint);
  color: var(--nx-orange-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: var(--nx-r-pill);
  margin-bottom: var(--nx-s-4);
}

.pg-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--nx-ink);
  max-width: 800px;
  margin: 0 auto var(--nx-s-4);
}

.pg-hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--nx-ink-soft);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto var(--nx-s-6);
}

.pg-hero__badge {
  display: inline-block;
  background: var(--nx-orange);
  color: var(--nx-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--nx-r-pill);
  margin-bottom: var(--nx-s-4);
}

.pg-hero__actions {
  display: flex;
  gap: var(--nx-s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Section head (used inside sections)
   -------------------------------------------------------------------------- */
.pg-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--nx-s-10);
}

.pg-section-head__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nx-orange-dark);
  margin-bottom: var(--nx-s-2);
}

.pg-section-head h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--nx-ink);
  margin: 0 auto var(--nx-s-3);
}

.pg-section-head p {
  color: var(--nx-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Problems grid (3-col)
   -------------------------------------------------------------------------- */
.pg-problems {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-s-5);
}

@media (min-width: 768px) {
  .pg-problems {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg-problem {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-6);
  box-shadow: var(--nx-shadow-soft);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.pg-problem:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lift);
}

.pg-problem__icon {
  width: 48px;
  height: 48px;
  background: var(--nx-orange-tint);
  border-radius: var(--nx-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--nx-s-4);
}

.pg-problem__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--nx-orange-dark);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-problem h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-2);
}

.pg-problem p {
  font-size: 0.9375rem;
  color: var(--nx-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Steps (3-col How It Works)
   -------------------------------------------------------------------------- */
.pg-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-s-5);
  counter-reset: step-counter;
}

@media (min-width: 768px) {
  .pg-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg-step {
  position: relative;
  padding: var(--nx-s-6);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  box-shadow: var(--nx-shadow-soft);
}

.pg-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--nx-orange);
  color: var(--nx-ink);
  font-size: 1rem;
  font-weight: 800;
  border-radius: var(--nx-r-pill);
  margin-bottom: var(--nx-s-4);
}

.pg-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-2);
}

.pg-step p {
  font-size: 0.9375rem;
  color: var(--nx-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Features grid (2-col)
   -------------------------------------------------------------------------- */
.pg-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-s-5);
}

@media (min-width: 768px) {
  .pg-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pg-feature {
  display: flex;
  gap: var(--nx-s-4);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-6);
  box-shadow: var(--nx-shadow-soft);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.pg-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lift);
}

.pg-feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--nx-orange-tint);
  border-radius: var(--nx-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--nx-orange-dark);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-feature__body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-2);
}

.pg-feature__body p {
  font-size: 0.9375rem;
  color: var(--nx-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Features grid (3-col variant for custom.html & dashboard.html)
   -------------------------------------------------------------------------- */
.pg-features--3col {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pg-features--3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pg-features--3col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Use Cases grid (3-col)
   -------------------------------------------------------------------------- */
.pg-use-cases {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-s-5);
}

@media (min-width: 768px) {
  .pg-use-cases {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg-use-case {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-6);
  box-shadow: var(--nx-shadow-soft);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.pg-use-case:hover {
  transform: translateY(-4px);
  box-shadow: var(--nx-shadow-lift);
}

.pg-use-case__icon {
  width: 48px;
  height: 48px;
  background: var(--nx-orange-tint);
  border-radius: var(--nx-r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--nx-s-4);
}

.pg-use-case__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--nx-orange-dark);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pg-use-case h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-2);
}

.pg-use-case p {
  font-size: 0.9375rem;
  color: var(--nx-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Pricing (2-col cards)
   -------------------------------------------------------------------------- */
.pg-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--nx-s-5);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pg-pricing {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pg-price-card {
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-7) var(--nx-s-6);
  box-shadow: var(--nx-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-5);
}

.pg-price-card--featured {
  border-color: var(--nx-orange);
  box-shadow: 0 0 0 2px var(--nx-orange), var(--nx-shadow-lift);
  position: relative;
}

.pg-price-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nx-orange);
  color: var(--nx-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--nx-r-pill);
  white-space: nowrap;
}

.pg-price-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nx-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pg-price-card__setup {
  font-size: 0.875rem;
  color: var(--nx-ink-soft);
  margin-top: var(--nx-s-1);
}

.pg-price-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--nx-ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pg-price-card__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--nx-ink-soft);
}

.pg-price-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--nx-s-3);
  flex: 1;
}

.pg-price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--nx-s-2);
  font-size: 0.9375rem;
  color: var(--nx-ink-soft);
  line-height: 1.5;
}

.pg-price-card__list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--nx-orange-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

/* Pricing single card (custom.html contact) */
.pg-pricing-contact {
  max-width: 560px;
  margin: 0 auto;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-8) var(--nx-s-7);
  box-shadow: var(--nx-shadow-soft);
  text-align: center;
}

.pg-pricing-contact h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-3);
}

.pg-pricing-contact p {
  color: var(--nx-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 var(--nx-s-6);
}

.pg-pricing-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--nx-ink-soft);
  max-width: 640px;
  margin: var(--nx-s-6) auto 0;
  line-height: 1.6;
}

.pg-pricing-note a {
  color: var(--nx-orange-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   CTA band (navy)
   -------------------------------------------------------------------------- */
.pg-cta {
  background: var(--nx-navy);
  padding: var(--nx-s-14) 0;
  text-align: center;
}

.pg-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--nx-surface);
  margin: 0 auto var(--nx-s-3);
  max-width: 640px;
  line-height: 1.2;
}

.pg-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto var(--nx-s-7);
}

/* --------------------------------------------------------------------------
   Stats strip (reach.html)
   -------------------------------------------------------------------------- */
.pg-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--nx-s-5);
  margin-bottom: var(--nx-s-10);
}

@media (min-width: 768px) {
  .pg-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pg-stat {
  text-align: center;
  padding: var(--nx-s-6) var(--nx-s-4);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  box-shadow: var(--nx-shadow-soft);
}

.pg-stat__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--nx-orange-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: var(--nx-s-2);
}

.pg-stat__label {
  font-size: 0.8125rem;
  color: var(--nx-ink-soft);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Waitlist form (reach.html)
   -------------------------------------------------------------------------- */
.pg-waitlist {
  max-width: 560px;
  margin: 0 auto;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg);
  padding: var(--nx-s-8) var(--nx-s-7);
  box-shadow: var(--nx-shadow-soft);
}

.pg-waitlist__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-ink);
  margin: 0 0 var(--nx-s-2);
  text-align: center;
}

.pg-waitlist__sub {
  color: var(--nx-ink-soft);
  font-size: 0.9375rem;
  text-align: center;
  margin: 0 0 var(--nx-s-6);
}

/* --------------------------------------------------------------------------
   Section alt (warm background)
   -------------------------------------------------------------------------- */
.pg-section--alt {
  background: var(--nx-surface-warm);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pg-problem,
  .pg-feature,
  .pg-use-case {
    transition: none;
  }
}

/* hero caption on ONE line at desktop (Jack, 2026-06-12) */
@media (min-width: 1024px) {
  .pg-hero h1 { max-width: none; white-space: nowrap; font-size: clamp(1.9rem, 3vw, 2.7rem); }
}
