/*
  Pulse by Code Khalaq — page-scoped stylesheet.
  Loaded only on /pulse via {% block extra_css %}. Zero global selectors:
  everything is scoped under body.pulse-body / .pulse-page.
  Tokens are lifted from static/css/main.css :root (the parent brand);
  --pulse-signal is the one new color this sub-brand introduces.
*/

body.pulse-body {
  /* Parent-brand tokens (values copied from main.css so this file stands alone) */
  --ck-primary: #1d3e59;
  --ck-primary-dark: #1a3244;
  --ck-ink: #131e27;
  --ck-bg: #ffffff;
  --ck-surface: #f8fafc;
  --ck-accent: #3b79a3;
  --ck-muted: #475569;
  --ck-line: #e2e8f0;
  --ck-footer: #203d54;
  /* The one Pulse-only color: clinical vital-sign green */
  --pulse-signal: #10b981;
  --pulse-signal-ink: #047857;
  --pulse-signal-soft: rgba(16, 185, 129, 0.12);

  --p-font-body: "Poppins", system-ui, -apple-system, sans-serif;
  --p-font-display: "Montserrat", "Poppins", system-ui, sans-serif;
  --p-font-label: "Outfit", "Poppins", system-ui, sans-serif;

  --p-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --p-radius-btn: 8px;
  --p-radius-card: 12px;
  --p-radius-big: 20px;
  --p-shadow-card: 0 8px 24px rgba(59, 121, 163, 0.15);
  --p-shadow-btn: 0 6px 16px rgba(29, 62, 89, 0.28);
  --p-shadow-nav: 0 2px 10px rgba(32, 61, 84, 0.08);

  background: var(--ck-bg);
}

/* The parent chrome is hidden on this page only; Pulse renders its own nav + footer. */
body.pulse-body .header,
body.pulse-body .site-footer {
  display: none;
}

.pulse-page {
  font-family: var(--p-font-body);
  color: var(--ck-ink);
  line-height: 1.6;
  overflow-x: clip;
}

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

.pulse-page img {
  max-width: 100%;
  height: auto;
}

/* Anchored sections clear the sticky nav when smooth-scrolled to */
.pulse-page [id] {
  scroll-margin-top: 92px;
}

/* :where() keeps this at class-level specificity so component link
   colors (.p-btn-primary, .p-nav-link, ...) can override it. */
.pulse-page :where(a) {
  color: inherit;
  text-decoration: none;
}

.pulse-page :focus-visible {
  outline: 2px solid var(--ck-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.pulse-page .p-dark :focus-visible,
.pulse-page .p-announce :focus-visible,
.pulse-page .p-footer :focus-visible,
.pulse-page .p-on-dark:focus-visible {
  outline-color: #ffffff;
}

.p-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* .pulse-page prefix keeps these auto margins ahead of the
   `.pulse-page h1 { margin: 0 }` reset */
.pulse-page .p-narrow {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */

.p-eyebrow {
  display: block;
  font-family: var(--p-font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pulse-signal-ink);
  margin: 0 0 14px;
}

.p-dark .p-eyebrow {
  /* Lighter signal tint: #10b981 is only 4.39:1 on --ck-primary */
  color: #34d399;
}

.pulse-page h1,
.pulse-page h2,
.pulse-page h3,
.pulse-page h4 {
  margin: 0;
  line-height: 1.15;
}

.p-h1 {
  font-family: var(--p-font-body);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ck-ink);
}

.p-h2 {
  font-family: var(--p-font-display);
  font-size: clamp(29px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ck-primary);
  text-wrap: balance;
}

.p-dark .p-h2 {
  color: #ffffff;
}

.p-lead {
  font-size: 17px;
  color: var(--ck-muted);
  max-width: 660px;
  margin: 18px 0 0;
  text-wrap: pretty;
}

/* Keeps a phrase on one line on wide screens, releases it on small ones */
.p-nb {
  white-space: nowrap;
}

@media (max-width: 700px) {
  .p-nb {
    white-space: normal;
  }
}

.p-center {
  text-align: center;
}

.p-center .p-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Placeholder markers (must be visibly unfinished) ---------- */

.p-todo {
  display: inline-block;
  border: 1.5px dashed #d97706;
  background: #fffbeb;
  color: #92400e;
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.5;
}

.p-todo-note {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: #92400e;
  background: #fffbeb;
  border: 1.5px dashed #d97706;
  border-radius: 6px;
  padding: 6px 10px;
}

/* ---------- Buttons ---------- */

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--p-radius-btn);
  font-family: var(--p-font-body);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease,
    background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.p-btn svg {
  flex: none;
}

.p-btn-primary {
  background: var(--ck-primary);
  color: #ffffff;
}

/* Every hover rule re-asserts color: the parent stylesheet's global
   `a:hover { color: var(--color-primary-dark) }` outranks the variants'
   base color and would turn button text dark-on-dark. */
.p-btn-primary:hover {
  background: var(--ck-primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--p-shadow-btn);
}

.p-btn-ghost {
  background: transparent;
  color: var(--ck-primary);
  border: 1.5px solid rgba(29, 62, 89, 0.45);
}

.p-btn-ghost:hover {
  border-color: var(--ck-primary);
  color: var(--ck-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 62, 89, 0.12);
}

.p-btn-inverse {
  background: #ffffff;
  color: var(--ck-primary);
}

.p-btn-inverse:hover {
  color: var(--ck-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.p-btn-ghost-light {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.p-btn-ghost-light:hover {
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Pulsing ring on the demo-call buttons */
.p-ring {
  position: relative;
}

.p-ring .p-ring-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pulse-signal);
  position: relative;
  flex: none;
}

.p-ring .p-ring-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--pulse-signal);
  opacity: 0;
  animation: p-ring-pulse 2.4s ease-out infinite;
}

@keyframes p-ring-pulse {
  0% { transform: scale(0.55); opacity: 0.9; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Reveal-on-scroll motion system ---------- */

.p-rev {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--p-ease), transform 500ms var(--p-ease);
  transition-delay: var(--pd, 0ms);
}

.p-rev.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Announcement bar ---------- */

.p-announce {
  background: var(--ck-ink);
  color: #e2e8f0;
  font-family: var(--p-font-label);
  font-size: 13px;
  position: relative;
  z-index: 60;
}

.p-announce .p-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.p-announce a {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.p-announce a:hover {
  color: var(--pulse-signal);
}

.p-announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.p-announce-close:hover {
  color: #ffffff;
}

/* ---------- Navigation ---------- */

.p-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 150ms ease, box-shadow 150ms ease;
}

.p-nav-wrap.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--p-shadow-nav);
}

.p-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.p-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* The two-line lockup centers as a block, dragging the main line above the
   nav's shared center — nudge it back onto the optical line. */
.p-nav .p-wordmark {
  position: relative;
  top: 3px;
}

.p-wordmark-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--p-font-body);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ck-primary);
}

.p-beat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-signal);
  animation: p-heartbeat 1.6s ease-in-out infinite;
}

@keyframes p-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.45); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  56% { transform: scale(1); }
}

.p-wordmark-sub {
  font-family: var(--p-font-label);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ck-muted);
}

.p-wordmark-sub a:hover {
  color: var(--ck-primary);
  text-decoration: underline;
}

.p-nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ck-primary);
  transition: color 150ms ease;
}

.p-nav-link:hover {
  color: var(--ck-accent);
}

.p-nav-cta {
  padding: 11px 22px;
  font-size: 14.5px;
}

/* Mobile menu */
.p-nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.p-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ck-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.p-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: linear-gradient(160deg, #1d3e59 0%, #131e27 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}

.p-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

/* The author display:flex would otherwise defeat the hidden attribute */
.p-overlay[hidden] {
  display: none;
}

.p-overlay-link {
  font-size: 24px;
  font-weight: 500;
  color: #ffffff;
  padding: 12px 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 350ms var(--p-ease), transform 350ms var(--p-ease);
  transition-delay: var(--pd, 0ms);
}

.p-overlay.is-open .p-overlay-link {
  opacity: 1;
  transform: none;
}

.p-overlay-link:hover {
  color: var(--pulse-signal);
}

.p-overlay-close {
  position: absolute;
  top: 22px;
  right: 22px;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
}

/* ---------- Hero ---------- */

.p-hero {
  position: relative;
  padding: 92px 0 72px;
  text-align: center;
  background:
    radial-gradient(90% 60% at 50% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #ffffff 0%, #eef3f8 58%, #e3ecf5 100%);
}

.p-hero .p-eyebrow {
  margin-bottom: 20px;
}

.p-hero-sub {
  font-size: 17.5px;
  color: var(--ck-muted);
  max-width: 720px;
  margin: 22px auto 0;
  text-wrap: pretty;
}

.p-hero-line {
  margin: 16px auto 6px;
  max-width: 1100px;
  height: 140px;
  /* Fade the trace ends so the line breathes instead of stopping abruptly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.p-hero-line svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.p-hero-line path {
  stroke: var(--pulse-signal);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.p-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
  max-width: 1010px;
}

.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ck-primary);
}

.p-chip svg {
  color: var(--pulse-signal-ink);
  flex: none;
}

/* Hero load sequence. The hiding is gated on .p-anim, which pulse.js adds
   only when it evaluates early enough for the entrance to be worth it —
   slow connections (and no-JS) get instantly visible content and a clean LCP. */
.p-hero-seq {
  transition: opacity 550ms var(--p-ease), transform 550ms var(--p-ease);
}

.p-anim .p-hero-seq {
  opacity: 0;
  transform: translateY(18px);
}

.p-hero-seq.is-in {
  opacity: 1;
  transform: none;
}

.p-h1 .p-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* Extend the mask box below the baseline so Poppins descenders survive
     the overflow clip at line-height 1.15 */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.p-h1 .p-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 600ms var(--p-ease);
  transition-delay: var(--pd, 0ms);
}

.p-h1.is-in .p-word > span {
  transform: translateY(0);
}

/* ---------- Sections ---------- */

.p-section {
  padding: 96px 0;
}

.p-section-tint {
  background: var(--ck-surface);
}

.p-dark {
  background: linear-gradient(150deg, #1d3e59 0%, #131e27 78%);
  color: #e2e8f0;
}

.p-sec-head {
  max-width: 760px;
  margin-bottom: 52px;
}

.p-sec-head.p-center {
  margin-left: auto;
  margin-right: auto;
}

/* Section divider: a quiet hairline with a single signal dot —
   the wordmark's beat dot, not another full trace. */
.p-divider {
  position: relative;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.p-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 72vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ck-line) 18%, var(--ck-line) 82%, transparent);
}

.p-divider-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse-signal);
  box-shadow: 0 0 0 5px var(--pulse-signal-soft);
}

/* ---------- Trust bar ---------- */

.p-trust {
  padding: 44px 0 40px;
  border-top: 1px solid var(--ck-line);
  border-bottom: 1px solid var(--ck-line);
  background: #ffffff;
}

.p-trust-label {
  text-align: center;
  font-family: var(--p-font-label);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--ck-muted);
  margin: 0 0 26px;
}

.p-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* Two identical groups; the loop translates exactly one group width,
   so the tiling is seamless regardless of image load timing. */
.p-marquee-track {
  display: flex;
  width: max-content;
  animation: p-drift 30s linear infinite;
  will-change: transform;
}

.p-marquee-group {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}

.p-marquee:hover .p-marquee-track {
  animation-play-state: paused;
}

@keyframes p-drift {
  to { transform: translateX(-50%); }
}

.p-logo-item {
  display: flex;
  align-items: center;
  filter: grayscale(1);
  opacity: 0.6;
  transition: filter 200ms ease, opacity 200ms ease;
}

.p-logo-item:hover {
  filter: none;
  opacity: 1;
}

/* Every mark ships on an identical 360x120 transparent canvas */
.p-logo-item img {
  height: 40px;
  width: 120px;
}

/* ---------- Problem stats ---------- */

.p-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.p-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--p-radius-card);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

/* Pin the source notes to a shared bottom edge across the row */
.p-stat-card .p-todo-note {
  margin-top: auto;
}

.p-stat-card .p-stat-label {
  margin-bottom: 16px;
}

.p-stat-card:hover {
  border-color: var(--ck-accent);
  box-shadow: var(--p-shadow-card);
}

.p-stat-num {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 600;
  color: var(--ck-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.p-stat-label {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ck-muted);
}

.p-stat-note {
  margin: 26px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  text-wrap: pretty;
}

/* ---------- Solution grid ---------- */

.p-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.p-feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--p-radius-card);
  padding: 32px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
  will-change: transform;
}

.p-feature-card:hover {
  border-color: var(--ck-accent);
  box-shadow: var(--p-shadow-card);
}

.p-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pulse-signal-soft);
  color: var(--pulse-signal-ink);
  margin-bottom: 20px;
}

.p-feature-card h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ck-ink);
  margin-bottom: 10px;
}

.p-feature-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ck-muted);
}

.p-solution-note {
  margin: 44px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 17.5px;
  font-weight: 500;
  color: var(--ck-primary);
  text-wrap: balance;
}

.p-solution-note strong {
  color: var(--pulse-signal-ink);
  font-weight: 600;
}

/* ---------- Live demo ---------- */

.p-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.p-demo-copy .p-lead {
  margin-bottom: 30px;
}

.p-demo-small {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ck-muted);
}

.p-phone {
  background: var(--ck-ink);
  border-radius: var(--p-radius-big);
  padding: 26px 24px 30px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: 0 20px 45px rgba(19, 30, 39, 0.35);
}

.p-phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 12.5px;
  font-family: var(--p-font-label);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.p-phone-top .p-ring-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-signal);
}

.p-bubbles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
}

.p-bubble {
  max-width: 88%;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms var(--p-ease), transform 350ms var(--p-ease);
}

.p-bubble.is-in {
  opacity: 1;
  transform: none;
}

.p-bubble-caller {
  align-self: flex-end;
  background: #2a4d68;
  color: #f1f5f9;
  border-bottom-right-radius: 4px;
}

.p-bubble-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.p-bubble-ai .p-bubble-tag {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pulse-signal);
  margin-bottom: 4px;
  font-family: var(--p-font-label);
}

/* ---------- How it works ---------- */

.p-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 26px;
}

/* Runs from marker-1 center to marker-3 center (3 cols, 28px gaps,
   46px markers) and hides beneath the white marker circles. */
.p-steps-line {
  position: absolute;
  top: 22px;
  left: 23px;
  right: calc((100% - 125px) / 3);
  height: 1.5px;
  pointer-events: none;
  background: rgba(16, 185, 129, 0.4);
}

.p-step {
  position: relative;
  padding-top: 66px;
}

.p-step-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--pulse-signal);
  color: var(--pulse-signal-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
}

.p-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ck-ink);
  margin-bottom: 10px;
}

.p-step-when {
  font-size: 14px;
  font-weight: 400;
  color: var(--ck-muted);
  white-space: nowrap;
}

.p-step p {
  margin: 0;
  font-size: 15px;
  color: var(--ck-muted);
  text-wrap: pretty;
}

/* ---------- Pricing ---------- */

.p-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 30px;
}

.p-price-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--p-radius-card);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.p-price-card:hover {
  border-color: var(--ck-accent);
  box-shadow: var(--p-shadow-card);
}

.p-price-featured {
  border: 1.5px solid var(--pulse-signal-ink);
  box-shadow: 0 16px 40px rgba(29, 62, 89, 0.12);
}

@media (min-width: 981px) {
  /* top, not transform: the reveal system's `.p-rev.is-in { transform: none }`
     would cancel a transform-based raise once the reveal completes. */
  .p-price-featured {
    top: -14px;
  }

  .p-price-featured:hover {
    top: -16px;
  }
}

.p-price-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pulse-signal-ink);
  color: #ffffff;
  font-family: var(--p-font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.p-price-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ck-ink);
}

.p-price-line {
  font-size: 16px;
  font-weight: 500;
  color: var(--ck-primary);
  margin: 12px 0 20px;
}

.p-price-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.p-price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--ck-muted);
}

.p-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pulse-signal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
}

.p-pricing-foot {
  margin-top: 44px;
  text-align: center;
}

.p-pricing-foot p {
  font-size: 15.5px;
  color: var(--ck-muted);
  margin: 0 0 22px;
  text-wrap: pretty;
}

/* ---------- Integrations ---------- */

.p-int-rows {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.p-int-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
  /* Symmetric padding keeps each border-bottom centered between rows */
  padding: 35px 0;
  border-bottom: 1px solid var(--ck-line);
}

.p-int-row:last-child {
  border-bottom: 0;
}

.p-int-label {
  font-family: var(--p-font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ck-muted);
  padding-top: 9px;
}

.p-int-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p-int-chip {
  border: 1px solid var(--ck-line);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ck-primary);
}

.p-int-note {
  margin-top: 34px;
  font-size: 15.5px;
  color: var(--ck-muted);
}

.p-int-note a {
  color: var(--ck-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-int-legal {
  margin-top: 14px;
  font-size: 12.5px;
  color: #64748b;
}

/* ---------- Compliance (dark) ---------- */

.p-comp-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.p-comp-copy .p-lead {
  color: #b6c2cf;
}

.p-checklist {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--p-radius-card);
  padding: 34px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-checklist li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: #e2e8f0;
}

.p-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--pulse-signal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 9px;
  background-position: center;
  background-repeat: no-repeat;
}

.p-checklist .p-todo {
  font-size: 11px;
}

/* ---------- Case study ---------- */

.p-case-card {
  background: linear-gradient(135deg, #1d3e59 0%, #131e27 100%);
  color: #e2e8f0;
  border-radius: var(--p-radius-big);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 48px;
  align-items: center;
}

.p-case-card h3 {
  font-family: var(--p-font-display);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.p-case-card p {
  margin: 0 0 12px;
  font-size: 15.5px;
  color: #b6c2cf;
}

.p-case-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: #34d399;
}

.p-case-link:hover {
  color: #5ce0b3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-case-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--p-radius-card);
  padding: 30px;
  text-align: center;
}

.p-case-stat-num {
  font-size: 46px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.p-case-stat-label {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: #b6c2cf;
}

/* ---------- Why Code Khalaq ---------- */

.p-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.p-why-col {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--p-radius-card);
  padding: 30px;
  font-size: 15.5px;
  color: var(--ck-muted);
}

.p-why-col strong {
  display: block;
  color: var(--ck-primary);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  text-wrap: balance;
}

.p-why-close {
  margin: 40px 0 0;
  font-size: 16px;
  color: var(--ck-muted);
}

.p-why-close a {
  color: var(--ck-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Testimonials ---------- */

.p-testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.p-testi-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--p-radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.p-testi-card:hover {
  border-color: var(--ck-accent);
  box-shadow: var(--p-shadow-card);
}

.p-testi-quote {
  margin: 0;
  font-size: 15.5px;
  color: var(--ck-ink);
  flex: 1;
}

.p-testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-testi-person img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1);
}

.p-testi-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ck-primary);
}

.p-testi-role {
  font-size: 13px;
  color: var(--ck-muted);
}

/* ---------- FAQ ---------- */

.p-faq-list {
  max-width: 800px;
  margin: 26px auto 0;
}

.p-faq-item {
  border-bottom: 1px solid var(--ck-line);
}

.p-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--p-font-body);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ck-ink);
  cursor: pointer;
}

.p-faq-q:hover {
  color: var(--ck-primary);
}

.p-faq-q svg {
  flex: none;
  color: var(--ck-accent);
  transition: transform 300ms var(--p-ease);
}

.p-faq-q[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.p-faq-a {
  overflow: hidden;
  max-height: 0;
  /* visibility keeps collapsed answers out of the accessibility tree;
     the delay hides them only after the collapse animation ends */
  visibility: hidden;
  transition: max-height 350ms var(--p-ease), visibility 0s linear 350ms;
}

.p-faq-q[aria-expanded="true"] + .p-faq-a {
  visibility: visible;
  transition-delay: 0s, 0s;
}

.p-faq-a p {
  margin: 0;
  padding: 0 4px 24px;
  font-size: 15px;
  color: var(--ck-muted);
  max-width: 700px;
}

/* ---------- Final CTA band ---------- */

.p-cta-band {
  position: relative;
  background: linear-gradient(135deg, #1d3e59 0%, #131e27 100%);
  color: #ffffff;
  padding: 96px 0;
  overflow: hidden;
  text-align: center;
}

/* Backdrop echoes the parent site's dashed hero grid instead of the pulse
   line: same company, different texture. */
.p-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M55.5 0v56M0 55.5h56' fill='none' stroke='%23ffffff' stroke-opacity='0.07' stroke-width='1' stroke-dasharray='1.5 4'/%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 100% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 100% at 50% 50%, #000 30%, transparent 100%);
}

.p-cta-band .p-container {
  position: relative;
}

.p-cta-band h2 {
  font-family: var(--p-font-display);
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.p-cta-band p {
  margin: 18px auto 34px;
  font-size: 16.5px;
  color: #cbd5e1;
  max-width: 560px;
  text-wrap: balance;
}

.p-cta-band .p-hero-ctas {
  margin-top: 0;
}

/* ---------- Booking (#book): framed inline Calendly ---------- */

.p-book-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.p-book-copy .p-lead {
  margin-bottom: 30px;
}

.p-book-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-book-points li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--ck-muted);
  text-wrap: pretty;
}

.p-book-points li strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ck-ink);
  margin-bottom: 3px;
}

.p-book-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pulse-signal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}

.p-book-assure {
  margin: 30px 0 0;
  font-family: var(--p-font-label);
  font-size: 13.5px;
  color: var(--ck-muted);
}

.p-book-assure .p-dot-sep {
  margin: 0 8px;
  color: var(--pulse-signal-ink);
}

.p-book-frame {
  background: #ffffff;
  border: 1px solid var(--ck-line);
  border-radius: var(--p-radius-big);
  box-shadow: 0 16px 40px rgba(29, 62, 89, 0.1);
  padding: 10px;
}

.p-book-frame iframe {
  display: block;
  width: 100%;
  height: 1010px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
}

/* Placeholder shown inside the frame until the iframe lazy-loads */
.p-book-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1010px;
  border-radius: 14px;
  background: var(--ck-surface);
  color: var(--ck-muted);
  font-size: 14.5px;
}

.p-book-alt {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--ck-muted);
}

.p-book-alt a {
  color: var(--ck-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .p-book-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-book-frame iframe,
  .p-book-wait {
    height: 980px;
  }
}

/* ---------- Footer ---------- */

.p-footer {
  background: var(--ck-footer);
  color: #cbd5e1;
  padding: 52px 0 0;
  font-family: var(--p-font-label);
  overflow: hidden;
}

/* Oversized wordmark docked at the footer's bottom edge */
.p-footer-giant {
  font-family: var(--p-font-body);
  font-size: clamp(182px, 30.8vw, 490px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  text-align: center;
  color: rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-top: 24px;
  transform: translateY(6%);
}

.p-footer-giant-dot {
  display: inline-block;
  width: 0.1em;
  height: 0.1em;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.32);
  margin-left: 0.05em;
}

.p-footer-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.p-footer .p-wordmark-main {
  color: #ffffff;
}

.p-footer-tag {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: #a5b3c1;
}

.p-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-footer-links a {
  font-size: 14px;
  color: #cbd5e1;
}

.p-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
  font-size: 12.5px;
  color: #a5b3c1;
}

/* ---------- Document pages (privacy policy) ---------- */

.p-doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 90px;
}

.p-doc-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ck-primary);
  margin-bottom: 30px;
}

.p-doc-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-doc h1 {
  font-family: var(--p-font-body);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ck-ink);
  margin-bottom: 10px;
}

.p-doc-meta {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 36px;
}

.p-doc h2 {
  font-family: var(--p-font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--ck-primary);
  margin: 38px 0 10px;
  letter-spacing: -0.01em;
}

.p-doc p,
.p-doc li {
  font-size: 15.5px;
  color: var(--ck-muted);
  text-wrap: pretty;
}

.p-doc p {
  margin: 0 0 14px;
}

.p-doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.p-doc li {
  margin-bottom: 8px;
}

.p-doc a {
  color: var(--ck-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.p-footer-bottom a {
  color: #cbd5e1;
}

.p-footer-bottom a:hover {
  color: #ffffff;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .p-section {
    padding: 72px 0;
  }

  .p-nav-links {
    display: none;
  }

  .p-nav-cta-desktop {
    display: none;
  }

  .p-nav-toggle {
    display: block;
  }

  .p-stats-grid,
  .p-grid-2x2,
  .p-pricing-grid,
  .p-why-grid,
  .p-testi-grid {
    grid-template-columns: 1fr;
  }

  .p-demo-grid,
  .p-comp-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .p-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-steps-line {
    display: none;
  }

  .p-case-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
    gap: 32px;
  }

  .p-int-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .p-price-featured {
    top: 0;
  }
}

@media (max-width: 640px) {
  .p-section {
    padding: 60px 0;
  }

  .p-hero {
    padding: 56px 0 56px;
  }

  .p-h1 {
    font-size: 34px;
  }

  .p-hero-line {
    height: 96px;
    margin-top: 26px;
  }

  .p-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .p-hero-ctas .p-btn {
    width: 100%;
  }

  .p-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .p-chip {
    justify-content: flex-start;
    text-align: left;
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .p-announce .p-container {
    padding-right: 44px;
    justify-content: flex-start;
    text-align: left;
  }

  .p-case-card {
    padding: 32px 24px;
  }

  .p-cta-band .p-hero-ctas .p-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .p-chips {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion: show final states instantly, everywhere ---------- */

@media (prefers-reduced-motion: reduce) {
  .pulse-page .p-rev,
  .pulse-page .p-hero-seq,
  .pulse-page .p-bubble,
  .pulse-page .p-overlay-link {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .pulse-page .p-h1 .p-word > span {
    transform: none !important;
    transition: none !important;
  }

  .pulse-page .p-marquee-track,
  .pulse-page .p-beat-dot,
  .pulse-page .p-ring .p-ring-dot::after {
    animation: none !important;
  }

  /* Static logo wall instead of a frozen marquee */
  .pulse-page .p-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .pulse-page .p-marquee-track {
    width: 100%;
  }

  .pulse-page .p-marquee-group {
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 44px;
    padding: 0 24px;
  }

  .pulse-page .p-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .pulse-page .p-hero-line circle {
    opacity: 0 !important;
  }

  .pulse-page .p-btn,
  .pulse-page .p-stat-card,
  .pulse-page .p-feature-card,
  .pulse-page .p-price-card,
  .pulse-page .p-testi-card,
  .pulse-page .p-faq-q svg,
  .pulse-page .p-faq-a {
    transition: none !important;
  }

  .pulse-page .p-btn:hover {
    transform: none !important;
  }
}
