/**
 * Notifal single example case-study page styles.
 *
 * Scoped under .notifal-ex-page to avoid leaking into the rest of the site.
 *
 * @package Notifal
 * @since   1.5.0
 */

.notifal-ex-page {
  --ink-950: #0c0018;
  --ink-900: #10002b;
  --ink-800: #240046;
  --ink-700: #3c1361;
  --violet-600: #5a189a;
  --violet-500: #7b2cbf;
  --violet-400: #9d4edd;
  --lilac-50: #f8ebff;
  --lilac-100: #faf3ff;
  --line: #eadcf7;
  --muted: #64748b;
  --ink: #1a0033;
  --white: #ffffff;
  --purple-primary: #7b2cbf;
  --purple-deep: #5a189a;
  --purple-mid: #9d4edd;
  --purple-pale: #f8ebff;

  font-family: "Raleway", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  /* Keep overflow visible so position:sticky on .nex-toc can stick to the viewport. */
  overflow-x: visible;
  background: #fff;
}

/* Force white page canvas on single example pages only (not the examples hub). */
body.notifal-example-single {
  background: #fff;
  /* Body overflow-x:hidden breaks sticky TOC; clip horizontal bleed without a scrollport. */
  overflow-x: clip;
}

body.notifal-example-single .site-content,
body.notifal-example-single #content,
body.notifal-example-single .notifal-ex-page {
  background: #fff;
}

.notifal-ex-page *,
.notifal-ex-page *::before,
.notifal-ex-page *::after {
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------- */
.notifal-ex-page .nex-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: 56px 24px 80px;
}

.notifal-ex-page .nex-hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(123, 44, 191, 0.35), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, rgba(90, 24, 154, 0.35), transparent 60%);
  opacity: 0.7;
}

.notifal-ex-page .nex-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.notifal-ex-page .nex-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 32px;
}

.notifal-ex-page .nex-hero__crumbs a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.notifal-ex-page .nex-hero__crumbs a:hover {
  color: #fff;
}

.notifal-ex-page .nex-hero__grid {
  display: block;
}

.notifal-ex-page .nex-hero__grid--with-shot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
}

.notifal-ex-page .nex-hero__text {
  max-width: 760px;
}

.notifal-ex-page .nex-hero__grid--with-shot .nex-hero__text {
  max-width: none;
}

.notifal-ex-page .nex-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.notifal-ex-page .nex-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-400);
}

.notifal-ex-page .nex-hero__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 20px;
  letter-spacing: -0.4px;
}

.notifal-ex-page .nex-hero__dek {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
  max-width: 640px;
}

.notifal-ex-page .nex-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-bottom: 48px;
}

.notifal-ex-page .nex-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.notifal-ex-page .nex-hero__meta-label {
  color: rgba(255, 255, 255, 0.35);
}

.notifal-ex-page .nex-hero__meta-value {
  font-weight: 700;
  color: #fff;
}

.notifal-ex-page .nex-hero__shot {
  min-width: 0;
}

.notifal-ex-page .nex-hero__figure {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, 0.55);
}

.notifal-ex-page .nex-hero__img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  max-height: 400px;
  margin: auto;
  padding: 10px;
}

/* ---------------------------------------------------------------------------
 * Campaign preview (The Template section)
 * Matches marketplace single-template layout positioning.
 * ------------------------------------------------------------------------- */
.notifal-ex-page .nex-preview {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #1c0038, #10002b);
  padding: 8px;
  box-shadow: 0 40px 80px -30px rgba(16, 0, 43, 0.6);
  margin: 28px 0 8px;
}

.notifal-ex-page .nex-preview__frame {
  border-radius: 20px;
  background: rgba(248, 235, 255, 0.04);
  padding: 20px 24px;
}

.notifal-ex-page .nex-preview__chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notifal-ex-page .nex-preview__dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.notifal-ex-page .nex-preview__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.notifal-ex-page .nex-preview__dots span:nth-child(1) { background: rgba(255, 107, 107, 0.7); }
.notifal-ex-page .nex-preview__dots span:nth-child(2) { background: rgba(255, 209, 102, 0.7); }
.notifal-ex-page .nex-preview__dots span:nth-child(3) { background: rgba(123, 216, 143, 0.7); }

.notifal-ex-page .nex-preview__badge {
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.notifal-ex-page .nex-preview__stage--layout {
  margin-top: 20px;
}

.notifal-ex-page .nex-preview .preview-area {
  width: 100%;
  min-width: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: #b8b8b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.notifal-ex-page .nex-preview .preview-area .image-holder img {
  transition: opacity 0.3s ease;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-holder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-site {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #eae6f2 0%, #eee8f0 100%);
  overflow: hidden;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 10px 10px;
  pointer-events: none;
  background: linear-gradient(135deg, #e8e4f4 0%, #f0e8f0 50%, #f4e8ee 100%);
  box-sizing: border-box;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  padding: 4px 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-logo {
  display: block;
  width: 28px;
  height: 10px;
  border-radius: 3px;
  background: rgba(120, 100, 140, 0.35);
  flex-shrink: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-nav-links {
  display: block;
  width: 52%;
  max-width: 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(120, 100, 140, 0.28);
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-hero {
  flex-shrink: 0;
  height: 14px;
  width: 100%;
  border-radius: 4px;
  background: rgba(120, 100, 140, 0.22);
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-main {
  display: flex;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-start;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-heading {
  height: 10px;
  width: 65%;
  border-radius: 3px;
  background: rgba(90, 75, 110, 0.42);
  flex-shrink: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-line {
  height: 5px;
  min-height: 5px;
  border-radius: 2px;
  background: rgba(90, 75, 110, 0.34);
  width: 100%;
  flex-shrink: 0;
  display: block;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-line--short {
  width: 82%;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-body {
  flex: 1;
  min-height: 28px;
  border-radius: 4px;
  background: rgba(90, 75, 110, 0.2);
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 42px;
  border-radius: 4px;
  background: rgba(90, 75, 110, 0.28);
  flex-shrink: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-cta {
  height: 8px;
  width: 45%;
  border-radius: 4px;
  background: rgba(90, 75, 110, 0.32);
  flex-shrink: 0;
  margin-top: 2px;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-sidebar {
  flex: 0 0 28%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-card {
  flex: 1;
  min-height: 24px;
  border-radius: 4px;
  background: rgba(90, 75, 110, 0.32);
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-card:last-child {
  flex: 0.6;
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-cover-footer {
  flex-shrink: 0;
  height: 6px;
  width: 70%;
  margin-top: 2px;
  border-radius: 2px;
  background: rgba(100, 90, 120, 0.2);
}

.notifal-ex-page .nex-preview .preview-area .image-holder .notifal-layout-feature {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px 10px;
  box-sizing: border-box;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--popup .notifal-layout-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--popup .notifal-layout-feature img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--floating-bar .notifal-layout-feature {
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 10px 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--floating-bar .notifal-layout-feature img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 38%;
  min-height: 28px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--floating-box .notifal-layout-feature {
  align-items: flex-end;
  justify-content: flex-start;
}

.notifal-ex-page .nex-preview .preview-area .image-holder.notifal-layout--floating-box .notifal-layout-feature img {
  max-width: 60%;
  max-height: 68%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom left;
}

.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"] {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 9 / 19.5;
  min-height: 360px;
  border-radius: 22px;
  border: 6px solid #1a1a1a;
  box-shadow: 0 0 0 1px #333, 0 16px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"] .notifal-layout-holder,
.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"] .notifal-layout-site {
  min-height: 100%;
}

.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"].notifal-layout--popup .notifal-layout-feature img {
  max-width: 85%;
  max-height: 72%;
}

.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"].notifal-layout--floating-bar .notifal-layout-feature img {
  width: auto;
  max-width: 100%;
  max-height: 36%;
  object-fit: contain;
  object-position: top center;
}

.notifal-ex-page .nex-preview .preview-area .image-holder[data-device="mobile"].notifal-layout--floating-box .notifal-layout-feature img {
  max-width: 70%;
  max-height: 55%;
}

.notifal-ex-page .nex-preview__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
  padding-top: 18px;
}

.notifal-ex-page .nex-preview__devices {
  display: flex;
  gap: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.notifal-ex-page .nex-preview__device {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.notifal-ex-page .nex-preview__device.is-active {
  background: #fff;
  color: var(--ink-800);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.notifal-ex-page .nex-preview__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  box-shadow: 0 10px 24px rgba(123, 44, 191, 0.3);
  transition: filter 0.2s ease;
}

.notifal-ex-page .nex-preview__cta:hover {
  filter: brightness(1.08);
}

/* ---------------------------------------------------------------------------
 * Snapshot
 * ------------------------------------------------------------------------- */
.notifal-ex-page .nex-snapshot {
  position: relative;
  margin-top: -40px;
  padding: 0 24px;
  z-index: 2;
}

.notifal-ex-page .nex-snapshot__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.notifal-ex-page .nex-snapshot__card {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 28px 32px;
  box-shadow: 0 20px 45px -25px rgba(16, 0, 43, 0.35);
}

.notifal-ex-page .nex-snapshot__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.notifal-ex-page .nex-snapshot__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-800);
  margin: 0;
}

.notifal-ex-page .nex-snapshot__asof {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.notifal-ex-page .nex-snapshot__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  background: #f1f5f9;
}

.notifal-ex-page .nex-snapshot__stat {
  background: #fff;
  padding: 20px;
}

.notifal-ex-page .nex-snapshot__value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--violet-600);
  margin: 0;
}

.notifal-ex-page .nex-snapshot__label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-800);
}

.notifal-ex-page .nex-snapshot__sub {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #94a3b8;
}

/* ---------------------------------------------------------------------------
 * Article layout
 * ------------------------------------------------------------------------- */
.notifal-ex-page .nex-article {
  padding: 64px 24px;
}

.notifal-ex-page .nex-article__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.notifal-ex-page .nex-toc {
  position: sticky;
  /* Sit below the fixed site header while the article scrolls. */
  top: calc(var(--site-header-height, 68px) + 16px);
  align-self: start;
  z-index: 4;
  max-height: calc(100vh - var(--site-header-height, 68px) - 32px);
  overflow-y: auto;
}

/* Admin bar pushes the sticky offset down so TOC stays clear of both bars. */
body.admin-bar.notifal-example-single .notifal-ex-page .nex-toc {
  top: calc(var(--site-header-height, 68px) + 32px + 16px);
  max-height: calc(100vh - var(--site-header-height, 68px) - 32px - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar.notifal-example-single .notifal-ex-page .nex-toc {
    top: calc(var(--site-header-height, 68px) + 46px + 16px);
    max-height: calc(100vh - var(--site-header-height, 68px) - 46px - 32px);
  }
}

.notifal-ex-page .nex-toc__label {
  margin: 0 0 12px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
}

.notifal-ex-page .nex-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid #e2e8f0;
}

.notifal-ex-page .nex-toc__link {
  display: block;
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 6px 12px;
  font-size: 13.5px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.notifal-ex-page .nex-toc__link:hover,
.notifal-ex-page .nex-toc__link.is-active {
  border-left-color: var(--violet-500);
  color: var(--violet-600);
  font-weight: 700;
}

.notifal-ex-page .nex-article__main {
  min-width: 0;
}

.notifal-ex-page .nex-section {
  scroll-margin-top: 96px;
  padding: 40px 0;
}

.notifal-ex-page .nex-section--bordered {
  border-top: 1px solid #f1f5f9;
}

.notifal-ex-page .nex-section__eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 8px;
}

.notifal-ex-page .nex-section__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
}

.notifal-ex-page .nex-prose p,
.notifal-ex-page .nex-prose-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 16px;
}

.notifal-ex-page .nex-prose-lead--spaced {
  margin-top: 24px;
}

.notifal-ex-page .nex-em {
  font-weight: 700;
  color: var(--ink-700);
}

.notifal-ex-page .nex-callout {
  margin-top: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--lilac-100);
  padding: 20px;
}

.notifal-ex-page .nex-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
}

/* Solution steps (single column) */
.notifal-ex-page .nex-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12px;
}

.notifal-ex-page .nex-step {
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 22px 24px;
}

.notifal-ex-page .nex-step__num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 6px;
}

.notifal-ex-page .nex-step__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.notifal-ex-page .nex-step__desc {
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.notifal-ex-page .nex-step__shot {
  margin: 18px 0 0;
  border-radius: 12px;
  border: 1px solid #eadcf7;
  overflow: hidden;
  background: var(--lilac-100);
}

.notifal-ex-page .nex-step__shot img {
  display: block;
  width: auto;
  height: auto;
  max-height: 500px;
  max-width: 100%;
  margin: auto;
}

/* Trigger panel */
.notifal-ex-page .nex-trigger {
  margin-top: 56px;
  border-radius: 16px;
  background: var(--ink-900);
  padding: 28px 32px;
}

.notifal-ex-page .nex-trigger__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.notifal-ex-page .nex-trigger__sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px;
}

.notifal-ex-page .nex-trigger__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  margin: 0;
}

.notifal-ex-page .nex-trigger__item {
  background: #170034;
  padding: 16px;
}

.notifal-ex-page .nex-trigger__item dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #c084fc;
  margin: 0 0 6px;
}

.notifal-ex-page .nex-trigger__item dd {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Principles */
.notifal-ex-page .nex-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.notifal-ex-page .nex-principle {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.notifal-ex-page .nex-principle:hover {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 12px 30px -15px rgba(123, 44, 191, 0.35);
}

.notifal-ex-page .nex-principle__tag {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: #f0dcff;
  line-height: 1;
}

.notifal-ex-page .nex-principle__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: -4px 0 8px;
}

.notifal-ex-page .nex-principle__body {
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

/* Results panels */
.notifal-ex-page .nex-panel__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 20px;
}

.notifal-ex-page .nex-funnel,
.notifal-ex-page .nex-clicks {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  margin-top: 32px;
}

.notifal-ex-page .nex-funnel__bar {
  display: flex;
  height: 16px;
  width: 100%;
  overflow: hidden;
  border-radius: 100px;
  background: #f1f5f9;
}

.notifal-ex-page .nex-funnel__seg {
  display: block;
  height: 100%;
}

.notifal-ex-page .nex-funnel__seg:first-child {
  border-radius: 100px 0 0 100px;
}

.notifal-ex-page .nex-funnel__seg:last-child {
  border-radius: 0 100px 100px 0;
}

.notifal-ex-page .nex-funnel__legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.notifal-ex-page .nex-funnel__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notifal-ex-page .nex-funnel__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.notifal-ex-page .nex-funnel__pct {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.notifal-ex-page .nex-funnel__count {
  font-weight: 400;
  color: #94a3b8;
}

.notifal-ex-page .nex-funnel__label {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.notifal-ex-page .nex-clicks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notifal-ex-page .nex-clicks__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notifal-ex-page .nex-clicks__name {
  width: 180px;
  flex-shrink: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.notifal-ex-page .nex-clicks__row.is-muted .nex-clicks__name {
  font-weight: 400;
  color: #94a3b8;
}

.notifal-ex-page .nex-clicks__track {
  flex: 1;
  height: 10px;
  overflow: hidden;
  border-radius: 100px;
  background: #f1f5f9;
}

.notifal-ex-page .nex-clicks__fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--violet-600), var(--violet-400));
}

.notifal-ex-page .nex-clicks__row.is-muted .nex-clicks__fill {
  background: #cbd5e1;
}

.notifal-ex-page .nex-clicks__value {
  width: 40px;
  flex-shrink: 0;
  text-align: right;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
}

.notifal-ex-page .nex-clicks__note {
  margin: 20px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
}

.notifal-ex-page .nex-commercial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--lilac-100);
  padding: 24px;
}

.notifal-ex-page .nex-commercial__label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--violet-400);
}

.notifal-ex-page .nex-commercial__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
  font-weight: 600;
}

.notifal-ex-page .nex-commercial__badge {
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid rgba(123, 44, 191, 0.3);
  background: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-600);
}

/* Limitations */
.notifal-ex-page .nex-limits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.notifal-ex-page .nex-limit {
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(255, 251, 235, 0.55);
  padding: 20px;
}

.notifal-ex-page .nex-limit__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  margin-bottom: 8px;
}

.notifal-ex-page .nex-limit__title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

.notifal-ex-page .nex-limit__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(120, 53, 15, 0.75);
}

/* Customer quote */
.notifal-ex-page .nex-quote {
  margin: 8px 0 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #faf3ff, #fff);
  padding: 28px 30px;
}

.notifal-ex-page .nex-quote__text {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--ink-800);
}

.notifal-ex-page .nex-quote__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-top: 18px;
}

.notifal-ex-page .nex-quote__name {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  color: var(--violet-600);
}

.notifal-ex-page .nex-quote__meta {
  font-size: 13px;
  color: #64748b;
}

/* Suggested internal links */
.notifal-ex-page .nex-links {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notifal-ex-page .nex-links__item {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 16px 18px;
  line-height: 1.5;
}

.notifal-ex-page .nex-links__anchor {
  font-size: 15px;
  font-weight: 700;
  color: var(--violet-600);
  text-decoration: none;
}

.notifal-ex-page .nex-links__anchor:hover {
  text-decoration: underline;
}

.notifal-ex-page .nex-links__sep {
  color: #94a3b8;
  margin: 0 4px 0 2px;
}

.notifal-ex-page .nex-links__desc {
  font-size: 14px;
  color: #64748b;
}

/* Takeaway */
.notifal-ex-page .nex-takeaway {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  padding: 36px 40px;
}

.notifal-ex-page .nex-takeaway__eyebrow {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 12px;
}

.notifal-ex-page .nex-takeaway__headline {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 16px;
}

.notifal-ex-page .nex-takeaway__body {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* FAQ */
.notifal-ex-page .nex-faq {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-top: 24px;
}

.notifal-ex-page .nex-faq__item {
  border-bottom: 1px solid #e2e8f0;
}

.notifal-ex-page .nex-faq__item:last-child {
  border-bottom: 0;
}

.notifal-ex-page .nex-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.notifal-ex-page .nex-faq__q::-webkit-details-marker {
  display: none;
}

.notifal-ex-page .nex-faq__chev {
  display: inline-flex;
  color: var(--violet-400);
  transition: transform 0.2s ease;
}

.notifal-ex-page .nex-faq__item[open] .nex-faq__chev {
  transform: rotate(180deg);
}

.notifal-ex-page .nex-faq__a {
  padding: 0 20px 16px;
}

.notifal-ex-page .nex-faq__a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #475569;
}

/* CTA */
.notifal-ex-page .nex-cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  padding: 80px 24px;
}

.notifal-ex-page .nex-cta__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(123, 44, 191, 0.35), transparent 65%);
}

.notifal-ex-page .nex-cta__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.notifal-ex-page .nex-cta__title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.notifal-ex-page .nex-cta__sub {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 28px;
}

.notifal-ex-page .nex-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.notifal-ex-page .nex-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease;
}

.notifal-ex-page .nex-btn--primary {
  background: linear-gradient(90deg, var(--violet-500), var(--violet-400));
  color: #fff;
  box-shadow: 0 10px 24px rgba(123, 44, 191, 0.3);
}

.notifal-ex-page .nex-btn--primary:hover {
  filter: brightness(1.08);
}

.notifal-ex-page .nex-btn--secondary {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.notifal-ex-page .nex-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Related */
.notifal-ex-page .nex-related {
  padding: 64px 24px 90px;
  background: #faf7fc;
}

.notifal-ex-page .nex-related__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.notifal-ex-page .nex-related__head {
  text-align: center;
  margin-bottom: 36px;
}

.notifal-ex-page .nex-related__title {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.notifal-ex-page .nex-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.notifal-ex-page .nex-related__all {
  text-align: center;
  margin: 28px 0 0;
}

.notifal-ex-page .nex-related__all a {
  font-size: 14px;
  font-weight: 700;
  color: var(--violet-500);
  text-decoration: none;
}

.notifal-ex-page .nex-related__all a:hover {
  text-decoration: underline;
}

/* Related / shared hub card styles (also used on the hub page) */
.notifal-ex-page .nexh-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.notifal-ex-page .nexh-card:hover {
  transform: translateY(-4px);
  border-color: #d4b3f5;
  box-shadow: 0 20px 40px -24px rgba(123, 44, 191, 0.4);
}

.notifal-ex-page .nexh-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.notifal-ex-page .nexh-card__category {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--purple-deep);
  background: var(--purple-pale);
  border-radius: 100px;
  padding: 5px 10px;
}

.notifal-ex-page .nexh-card__metric {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-primary);
}

.notifal-ex-page .nexh-card__title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #1a1a2e;
}

.notifal-ex-page .nexh-card__industry {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-mid);
  margin: 0 0 10px;
}

.notifal-ex-page .nexh-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: #6b6b8a;
  margin: 0 0 16px;
  flex: 1;
}

.notifal-ex-page .nexh-card__highlights {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.notifal-ex-page .nexh-card__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.notifal-ex-page .nexh-card__check {
  color: var(--purple-primary);
  flex-shrink: 0;
}

.notifal-ex-page .nexh-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0e8fa;
  padding-top: 14px;
  margin-top: auto;
}

.notifal-ex-page .nexh-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-primary);
}

.notifal-ex-page .nexh-card__arrow {
  color: var(--purple-primary);
  display: inline-flex;
  transition: transform 0.2s ease;
}

.notifal-ex-page .nexh-card:hover .nexh-card__arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .notifal-ex-page .nex-article__inner {
    grid-template-columns: 1fr;
  }

  .notifal-ex-page .nex-toc {
    display: none;
  }

  .notifal-ex-page .nex-hero__grid--with-shot {
    grid-template-columns: 1fr;
  }

  .notifal-ex-page .nex-related__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .notifal-ex-page .nex-hero {
    padding: 40px 20px 64px;
  }

  .notifal-ex-page .nex-hero__title {
    font-size: 28px;
  }

  .notifal-ex-page .nex-snapshot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .notifal-ex-page .nex-trigger__grid,
  .notifal-ex-page .nex-principles,
  .notifal-ex-page .nex-limits,
  .notifal-ex-page .nex-funnel__legend,
  .notifal-ex-page .nex-related__grid {
    grid-template-columns: 1fr;
  }

  .notifal-ex-page .nex-clicks__row {
    flex-wrap: wrap;
  }

  .notifal-ex-page .nex-clicks__name {
    width: 100%;
  }

  .notifal-ex-page .nex-takeaway {
    padding: 28px 22px;
  }

  .notifal-ex-page .nex-cta__title {
    font-size: 24px;
  }
}
