/* NoticeDock Phase 4: layout reliability and CTA restoration. */
:root {
  color-scheme: dark;
  --nd-v4-bg: #07121f;
  --nd-v4-panel: rgba(13, 29, 48, 0.96);
  --nd-v4-panel-2: rgba(9, 21, 36, 0.98);
  --nd-v4-border: rgba(111, 151, 181, 0.24);
  --nd-v4-text: #f5f8fc;
  --nd-v4-copy: #c8d6e3;
  --nd-v4-muted: #9eb3c5;
}

/* Stable colour depth without decorative dots, rails, or moving background effects. */
body.nd-cohesion-page {
  background: var(--nd-v4-bg) !important;
  animation: none !important;
}

body.nd-cohesion-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 6%, rgba(26, 176, 165, 0.16), transparent 29rem),
    radial-gradient(circle at 91% 8%, rgba(127, 93, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 52% 94%, rgba(65, 140, 224, 0.09), transparent 36rem),
    linear-gradient(180deg, #081522 0%, #07121f 52%, #091624 100%);
  background-size: auto;
}

body.nd-cohesion-page::after {
  content: none !important;
  display: none !important;
}

/* Content must never disappear because a reveal observer or extension failed. */
.nd-cohesion-page .reveal,
.nd-cohesion-page .reveal.ready {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  animation: none !important;
}

.nd-cohesion-page .site-header,
.nd-cohesion-page .site-footer {
  background: rgba(5, 14, 25, 0.94) !important;
  backdrop-filter: blur(14px);
}

.nd-cohesion-page .section,
.nd-cohesion-page .nd-content-section,
.nd-cohesion-page .nd-secondary-product-section {
  padding-block: clamp(2.7rem, 4.8vw, 4.4rem) !important;
}

.nd-cohesion-page :is(.nd-product-hero, .nd-app-overview-hero, .nd-inner-hero) {
  min-height: 0 !important;
  padding: clamp(3.35rem, 5.5vw, 5rem) 0 clamp(2.8rem, 4.8vw, 4rem) !important;
  background:
    radial-gradient(circle at 88% 18%, rgba(128, 92, 255, 0.13), transparent 25rem),
    radial-gradient(circle at 10% 82%, rgba(27, 190, 178, 0.09), transparent 23rem),
    linear-gradient(
      100deg,
      rgba(8, 19, 32, 0.99),
      rgba(10, 24, 40, 0.97) 58%,
      rgba(17, 23, 48, 0.96)
    ) !important;
}

.nd-cohesion-page :is(.nd-product-hero, .nd-app-overview-hero)::before,
.nd-cohesion-page .nd-product-proof::before,
.nd-cohesion-page .nd-product-proof::after {
  content: none !important;
  display: none !important;
}

.nd-cohesion-page .nd-product-main {
  overflow: clip;
}

.nd-cohesion-page .nd-section-heading {
  margin-bottom: clamp(1.25rem, 2.6vw, 2rem);
}

.nd-cohesion-page .nd-section-heading h2 {
  max-width: 18ch;
}

/* Stripe overview: remove the empty opening band and keep the comparison aligned. */
.nd-app-overview-page .nd-app-overview-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.nd-app-overview-page .nd-app-overview-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.7vw, 5.8rem);
}

.nd-app-overview-page .nd-app-choice-section {
  padding-top: clamp(2.5rem, 4.5vw, 4rem) !important;
}

.nd-app-overview-page .nd-app-choice-section .nd-section-heading {
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  align-items: end;
}

.nd-app-overview-page .nd-app-choice-section .nd-section-heading > div {
  min-width: 0;
}

.nd-app-overview-page .nd-app-choice-section .nd-section-heading p {
  max-width: 34rem;
  justify-self: end;
  line-height: 1.65;
}

.nd-app-overview-page .nd-app-choice-grid {
  align-items: stretch;
}

.nd-app-overview-page .nd-app-choice-card {
  display: flex;
  min-height: 0 !important;
  flex-direction: column;
  padding: clamp(1.35rem, 2.7vw, 2rem);
  border: 1px solid var(--nd-v4-border);
  border-radius: 22px;
  background: linear-gradient(155deg, var(--nd-v4-panel), var(--nd-v4-panel-2));
  box-shadow: 0 20px 50px rgba(0, 5, 14, 0.28);
}

.nd-app-overview-page .nd-app-choice-card h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
}

.nd-app-overview-page .nd-app-choice-outcome {
  min-height: 0;
  margin-top: 0.55rem;
}

.nd-app-overview-page .nd-check-list {
  margin-top: 1.1rem;
}

.nd-app-overview-page .nd-app-choice-fit {
  margin-top: 1.1rem;
  padding-top: 1rem;
}

.nd-app-overview-page .nd-app-choice-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.15rem;
}

.nd-app-overview-page .nd-app-choice-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 0.75rem;
  text-align: center;
}

.nd-app-overview-page .nd-app-card-line {
  display: none;
}

/* Product pages: compact proof and keep purchase actions aligned. */
.nd-stripe-product-page .nd-product-hero-grid {
  gap: clamp(2rem, 5vw, 4.5rem);
}

.nd-stripe-product-page .nd-product-hero h1 {
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
}

.nd-stripe-product-page .nd-product-proof-frame {
  box-shadow: 0 24px 60px rgba(0, 4, 14, 0.38);
}

.nd-stripe-product-page .nd-cross-sell-card {
  gap: 1.25rem;
}

/* Homepage cards: restored resource buttons stay readable and aligned. */
.nd-home-v2 .nd-app-sales-card {
  display: flex;
  flex-direction: column;
}

.nd-home-v2 .nd-home-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1rem;
}

.nd-home-v2 .nd-home-card-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-inline: 0.75rem;
  text-align: center;
}

/* Pricing: equal cards, consistent actions, and visible resources. */
.nd-pricing-v3 .nd-stripe-pricing-grid {
  align-items: stretch;
}

.nd-pricing-v3 .nd-unified-price-card {
  min-height: 0;
}

.nd-pricing-v3 .nd-unified-actions {
  margin-top: auto;
}

.nd-price-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(111, 151, 181, 0.15);
}

.nd-price-resource-links a {
  color: #add8ff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.nd-price-resource-links a:hover {
  color: #e4f2ff;
}

/* Support and Frontline should follow the same compact vertical rhythm. */
.nd-support-v3 .nd-inner-hero,
.nd-frontline-v3 .page-shell-frontline {
  padding-top: clamp(3.25rem, 5vw, 4.75rem) !important;
}

.nd-support-v3 .nd-support-card,
.nd-frontline-v3 .pricing-card,
.nd-pricing-v3 .nd-unified-price-card {
  background: linear-gradient(155deg, var(--nd-v4-panel), var(--nd-v4-panel-2)) !important;
  border-color: var(--nd-v4-border) !important;
}

@media (max-width: 980px) {
  .nd-app-overview-page .nd-app-choice-section .nd-section-heading {
    grid-template-columns: 1fr;
  }

  .nd-app-overview-page .nd-app-choice-section .nd-section-heading p {
    justify-self: start;
  }

  .nd-home-v2 .nd-home-card-actions,
  .nd-app-overview-page .nd-app-choice-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nd-cohesion-page :is(.nd-product-hero, .nd-app-overview-hero, .nd-inner-hero) {
    padding-top: 2.8rem !important;
  }

  .nd-app-overview-page .nd-app-overview-hero-grid {
    grid-template-columns: 1fr;
  }

  .nd-app-overview-page .nd-overview-status {
    max-width: none;
  }
}
