/* NoticeDock Phase 3: cohesive public sales surface */
:root {
  color-scheme: dark;
  --nd-v3-bg: #07111c;
  --nd-v3-bg-2: #091725;
  --nd-v3-panel: rgba(13, 27, 43, 0.92);
  --nd-v3-panel-strong: rgba(17, 33, 53, 0.97);
  --nd-v3-line: rgba(111, 151, 181, 0.24);
  --nd-v3-line-strong: rgba(76, 168, 255, 0.38);
  --nd-v3-teal: #23c9b8;
  --nd-v3-teal-soft: #8eece1;
  --nd-v3-blue: #58aaff;
  --nd-v3-purple: #9a7cff;
  --nd-v3-purple-soft: #c8b9ff;
  --nd-v3-copy: #d7e5f0;
  --nd-v3-muted: #9eb4c5;
}

body.nd-cohesion-page {
  position: relative;
  isolation: isolate;
  background: var(--nd-v3-bg);
}

body.nd-cohesion-page::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(103, 146, 181, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 146, 181, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 10% 11%, rgba(35, 201, 184, 0.15), transparent 27rem),
    radial-gradient(circle at 88% 13%, rgba(154, 124, 255, 0.15), transparent 29rem),
    radial-gradient(circle at 53% 78%, rgba(88, 170, 255, 0.07), transparent 36rem),
    linear-gradient(180deg, #08131f 0%, #07101a 52%, #091522 100%);
  background-size:
    72px 72px,
    72px 72px,
    auto,
    auto,
    auto,
    auto;
}

body.nd-cohesion-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(circle at 8% 23%, rgba(35, 201, 184, 0.92) 0 2px, transparent 3px),
    radial-gradient(circle at 93% 29%, rgba(154, 124, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 71%, rgba(88, 170, 255, 0.78) 0 1.5px, transparent 2.5px),
    linear-gradient(
      90deg,
      transparent 0 7%,
      rgba(35, 201, 184, 0.18) 7% 7.08%,
      transparent 7.08% 100%
    ),
    linear-gradient(
      90deg,
      transparent 0 91%,
      rgba(154, 124, 255, 0.16) 91% 91.08%,
      transparent 91.08% 100%
    );
}

.nd-cohesion-page .site-header {
  border-bottom-color: rgba(105, 147, 179, 0.22);
  background: rgba(5, 13, 23, 0.9);
}

.nd-cohesion-page .brand-subtitle {
  color: #95dcd5;
}

.nd-cohesion-page .site-footer {
  border-top-color: rgba(105, 147, 179, 0.22);
  background: rgba(5, 13, 23, 0.86);
}

.nd-cohesion-page .footer-columns {
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

.nd-cohesion-page .footer-column-title {
  color: var(--nd-v3-teal-soft);
}

.nd-cohesion-page :is(.card, .doc-panel, .cta-band) {
  border-color: var(--nd-v3-line);
  background: linear-gradient(155deg, rgba(17, 34, 54, 0.94), rgba(8, 19, 32, 0.96));
  box-shadow:
    0 22px 54px rgba(0, 5, 13, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.nd-cohesion-page :is(.card, .doc-panel, .cta-band):hover {
  border-color: rgba(88, 170, 255, 0.38);
}

.nd-cohesion-page .kicker,
.nd-cohesion-page .page-crumb {
  color: var(--nd-v3-teal-soft);
}

.nd-cohesion-page .muted,
.nd-cohesion-page .lede,
.nd-cohesion-page .footer-meta,
.nd-cohesion-page .note {
  color: var(--nd-v3-muted);
}

.nd-cohesion-page .btn-primary {
  border-color: rgba(35, 201, 184, 0.65);
  background: linear-gradient(135deg, #12a89b, #23c9b8);
  box-shadow: 0 12px 30px rgba(15, 162, 150, 0.22);
}

.nd-cohesion-page .btn-secondary {
  border-color: rgba(88, 170, 255, 0.3);
  background: rgba(15, 32, 52, 0.76);
}

.nd-cohesion-page .btn-secondary:hover {
  border-color: rgba(88, 170, 255, 0.55);
  background: rgba(22, 43, 67, 0.9);
}

/* Compact shared inner-page hero */
.nd-inner-hero {
  padding: clamp(4.25rem, 8vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.nd-inner-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.nd-inner-hero-copy {
  max-width: 760px;
}

.nd-inner-hero h1 {
  max-width: 13ch;
  margin: 0.7rem 0 1rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.nd-inner-hero .lede {
  max-width: 670px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.72;
}

.nd-v3-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.nd-v3-assurances span {
  padding: 0.42rem 0.68rem;
  border: 1px solid rgba(111, 151, 181, 0.22);
  border-radius: 999px;
  background: rgba(9, 21, 36, 0.72);
  color: #bfd0dd;
  font-size: 0.75rem;
  font-weight: 700;
}

.nd-v3-status-panel {
  position: relative;
  overflow: hidden;
  padding: 1.35rem;
  border: 1px solid rgba(88, 170, 255, 0.34);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(18, 35, 59, 0.98), rgba(8, 19, 34, 0.98));
  box-shadow: 0 28px 70px rgba(0, 5, 14, 0.42);
}

.nd-v3-status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(35, 201, 184, 0.08), transparent 35%),
    linear-gradient(315deg, rgba(154, 124, 255, 0.1), transparent 40%);
}

.nd-v3-status-head,
.nd-v3-status-row,
.nd-v3-status-foot {
  position: relative;
  z-index: 1;
}

.nd-v3-status-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(111, 151, 181, 0.18);
  color: #dff9f5;
  font-weight: 800;
}

.nd-v3-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5be3a2;
  box-shadow:
    0 0 0 5px rgba(91, 227, 162, 0.08),
    0 0 16px rgba(91, 227, 162, 0.64);
  animation: nd-v3-status-blink 1.8s steps(2, end) infinite;
}

.nd-v3-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(111, 151, 181, 0.14);
}

.nd-v3-status-row strong {
  display: block;
  font-size: 0.96rem;
}

.nd-v3-status-row span {
  display: block;
  margin-top: 0.18rem;
  color: var(--nd-v3-muted);
  font-size: 0.78rem;
}

.nd-v3-status-row b {
  color: #fff;
  font-size: 1.1rem;
}

.nd-v3-status-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  color: #a9bfd0;
  font-size: 0.78rem;
}

.nd-content-section {
  padding: clamp(2.75rem, 5.5vw, 5rem) 0;
}

.nd-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.62fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: 1.5rem;
}

.nd-section-heading h2 {
  max-width: 15ch;
  margin: 0.45rem 0 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.nd-section-heading p {
  margin: 0;
  color: var(--nd-v3-muted);
}

/* Unified pricing */
.nd-stripe-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.nd-unified-price-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.3rem, 2.8vw, 2rem) !important;
  border: 1px solid var(--nd-v3-line) !important;
  border-radius: 24px !important;
  background: linear-gradient(155deg, rgba(20, 38, 62, 0.98), rgba(8, 19, 33, 0.98)) !important;
}

.nd-unified-price-card::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--nd-card-accent, var(--nd-v3-teal)),
    transparent
  );
  opacity: 0.72;
}

.nd-unified-price-card-billing {
  --nd-card-accent: var(--nd-v3-purple);
}

.nd-unified-price-card-guard {
  --nd-card-accent: var(--nd-v3-blue);
}

.nd-unified-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nd-unified-price-card h2,
.nd-unified-price-card h3 {
  margin: 1rem 0 0;
  color: #fff !important;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.nd-unified-outcome {
  margin: 0.75rem 0 0;
  color: #d8e6f1 !important;
  font-size: 1rem;
  line-height: 1.65;
}

.nd-unified-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
}

.nd-unified-price strong {
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.nd-unified-price span {
  color: var(--nd-v3-muted) !important;
  font-size: 0.82rem;
}

.nd-unified-checks {
  display: grid;
  gap: 0;
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.nd-unified-checks li {
  position: relative;
  padding: 0.72rem 0 0.72rem 1.45rem;
  border-top: 1px solid rgba(111, 151, 181, 0.13);
  color: #c8d8e5 !important;
  font-size: 0.88rem;
}

.nd-unified-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--nd-card-accent, var(--nd-v3-teal));
  box-shadow: 0 0 12px color-mix(in srgb, var(--nd-card-accent, var(--nd-v3-teal)) 60%, transparent);
}

.nd-unified-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.nd-unified-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.nd-unified-detail-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: #a9d7ff;
  font-size: 0.82rem;
  font-weight: 800;
}

.nd-secondary-product-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 1px solid rgba(111, 151, 181, 0.16);
}

.nd-frontline-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.nd-frontline-summary-copy {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(35, 201, 184, 0.24);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(11, 37, 49, 0.9), rgba(8, 19, 32, 0.96));
}

.nd-frontline-summary-copy h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.nd-frontline-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.nd-frontline-plan-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.15rem !important;
  border-radius: 20px !important;
}

.nd-frontline-plan-card h3 {
  margin: 0.65rem 0 0;
  color: #fff !important;
  font-size: 1.15rem;
}

.nd-frontline-plan-card .nd-unified-price {
  margin-top: 0.75rem;
}

.nd-frontline-plan-card .nd-unified-price strong {
  font-size: 1.9rem;
}

.nd-frontline-plan-card .nd-unified-checks {
  margin-top: 0.85rem;
}

.nd-frontline-plan-card .nd-unified-checks li {
  padding-block: 0.55rem;
  font-size: 0.76rem;
}

.nd-frontline-plan-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Support */
.nd-support-grid-primary,
.nd-support-grid-secondary {
  display: grid;
  gap: 1rem;
}

.nd-support-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nd-support-grid-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.nd-support-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.25rem, 2.6vw, 1.8rem) !important;
  border-radius: 22px !important;
}

.nd-support-card h2 {
  margin: 0.55rem 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.12;
}

.nd-support-card > p {
  margin: 0.7rem 0 0;
  color: var(--nd-v3-muted);
}

.nd-support-card .support-checklist {
  margin-top: 1rem !important;
}

.nd-support-card .hero-actions {
  margin-top: auto !important;
  padding-top: 1.1rem;
}

.nd-support-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.nd-support-about-panel {
  margin-top: 1rem;
}

/* Frontline page alignment */
.nd-frontline-v3 .page-shell-frontline {
  padding-top: clamp(3.75rem, 7vw, 6rem);
}

.nd-frontline-v3 .page-intro {
  max-width: 790px;
  margin-bottom: 1.25rem;
}

.nd-frontline-v3 .page-intro h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.nd-frontline-v3 .home-frontline-motion,
.nd-frontline-v3 .home-demo-shell {
  margin-top: 1rem !important;
  border-color: var(--nd-v3-line);
  background: linear-gradient(155deg, rgba(15, 32, 51, 0.96), rgba(7, 18, 30, 0.98));
}

.nd-frontline-v3 .content-stack {
  gap: 1rem;
  margin-top: 1rem !important;
}

.nd-frontline-v3 .doc-panel {
  padding: clamp(1.25rem, 2.7vw, 1.85rem);
}

.nd-frontline-v3 .field-row {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 0.9rem;
}

.nd-frontline-v3 .pricing-grid {
  gap: 0.75rem;
}

.nd-frontline-v3 .pricing-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.15rem !important;
  border-radius: 20px !important;
  background: linear-gradient(155deg, rgba(16, 34, 53, 0.98), rgba(8, 19, 32, 0.98)) !important;
}

.nd-frontline-v3 .pricing-card .hero-actions,
.nd-frontline-v3 .pricing-card > div:last-child {
  margin-top: auto !important;
  padding-top: 1rem;
}

.nd-frontline-v3 .pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* Existing homepage and Stripe pages: richer static background and tighter section rhythm. */
.nd-cohesion-page.nd-home-v2 .section,
.nd-cohesion-page.nd-stripe-product-page .section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.nd-cohesion-page.nd-home-v2 .nd-app-sales-card,
.nd-cohesion-page.nd-stripe-product-page
  :is(.nd-product-card, .nd-app-choice-card, .nd-product-boundary-card) {
  border-color: var(--nd-v3-line);
  background: linear-gradient(155deg, rgba(17, 34, 55, 0.96), rgba(8, 19, 33, 0.98));
}

.nd-v3-final-cta {
  margin-top: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(35, 201, 184, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(35, 201, 184, 0.08), transparent 42%),
    linear-gradient(155deg, rgba(16, 34, 52, 0.95), rgba(7, 18, 30, 0.98));
}

.nd-v3-final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.nd-v3-final-cta h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.nd-v3-final-cta p {
  max-width: 680px;
  margin: 0.7rem 0 0;
  color: var(--nd-v3-muted);
}

@keyframes nd-v3-status-blink {
  0%,
  44% {
    opacity: 0.45;
  }
  45%,
  100% {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .nd-inner-hero-grid,
  .nd-section-heading,
  .nd-frontline-summary,
  .nd-support-contact-grid {
    grid-template-columns: 1fr;
  }

  .nd-inner-hero h1,
  .nd-section-heading h2 {
    max-width: none;
  }

  .nd-frontline-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nd-stripe-pricing-grid,
  .nd-support-grid-primary,
  .nd-support-grid-secondary {
    grid-template-columns: 1fr;
  }

  .nd-unified-actions,
  .nd-v3-final-cta-inner {
    grid-template-columns: 1fr;
  }

  .nd-v3-final-cta-inner {
    align-items: start;
  }

  .nd-v3-final-cta .hero-actions {
    margin-top: 0;
  }

  .nd-frontline-v3 .field-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nd-v3-status-dot {
    animation: none;
  }
}

/* Reduce excess vertical air while preserving the existing sales layouts. */
.nd-cohesion-page.nd-home-v2 .nd-sales-hero {
  padding: clamp(4.4rem, 7vw, 6.4rem) 0 clamp(3.2rem, 5.5vw, 4.8rem);
}

.nd-cohesion-page.nd-stripe-product-page :is(.nd-product-hero, .nd-app-overview-hero) {
  padding: clamp(4.4rem, 7vw, 6.5rem) 0 clamp(3.2rem, 5.5vw, 4.8rem);
  background:
    radial-gradient(circle at 87% 17%, rgba(154, 124, 255, 0.13), transparent 25rem),
    radial-gradient(circle at 13% 74%, rgba(35, 201, 184, 0.08), transparent 24rem),
    linear-gradient(
      90deg,
      rgba(8, 19, 31, 0.98),
      rgba(10, 23, 39, 0.93) 58%,
      rgba(18, 22, 48, 0.94)
    );
}

.nd-frontline-plan-card .price-suffix {
  margin-left: 0.15rem;
  color: var(--nd-v3-muted) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}
