/* ============================================
   Pipeline Pulse — shared styles
   Theme aligned to BlueSky DT brand family.
   ============================================ */

:root {
  /* Color system — BlueSky navy + periwinkle */
  --ink: #1E2A5E;            /* primary dark navy */
  --ink-soft: #2A3870;       /* slightly lifted navy for body emphasis */
  --ink-deep: #131A3D;       /* darker navy for surfaces */
  --body: #333333;           /* body copy */
  --muted: #6B7385;
  --line: #E4E6EE;
  --line-strong: #C9CDDC;
  --paper: #FFFFFF;          /* page background */
  --paper-warm: #F5F6FA;     /* secondary surface (replaces warm cream) */
  --white: #FFFFFF;

  /* Accent — periwinkle (named --pulse for legacy compatibility) */
  --pulse: #5B6ABF;
  --pulse-soft: #B7BFE2;
  --pulse-tint: #EEF0FA;
  --pulse-deep: #3E4D9E;
  --pulse-deep2: #1E2A5E;

  /* Secondary cool blue (data UI accents) */
  --signal: #5B6ABF;
  --signal-soft: #DCE0F2;
  --signal-tint: #EEF0FA;

  /* Status colors */
  --green: #1F7A4D;
  --green-soft: #D4ECDD;
  --amber: #B5731B;
  --amber-soft: #F4E2C4;

  /* Type — Poppins throughout (matches blueskydt corporate feel) */
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Poppins", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "Poppins", -apple-system, sans-serif;

  /* Layout */
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body { width: 100%; max-width: 100vw; }

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--pulse); }

/* ============================================
   Typography
   ============================================ */

.h-display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.h-display em {
  font-style: normal;
  color: var(--pulse);
  font-weight: 700;
}

.h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 .4em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}

.h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 .35em;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--pulse);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 4px rgba(91, 106, 191, .18);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 106, 191, .18); }
  50%      { box-shadow: 0 0 0 8px rgba(91, 106, 191, .04); }
}

.lede {
  font-size: clamp(17px, 1.1vw, 19px);
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
  text-wrap: pretty;
  font-weight: 400;
}

p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; color: var(--body); }
strong, b { color: var(--ink); font-weight: 700; }

/* ============================================
   Layout
   ============================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.section-tight {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: clamp(56px, 6vw, 88px);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--pulse);
  color: var(--white);
  box-shadow: 0 6px 18px -8px rgba(30, 42, 94, .35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-accent {
  background: var(--pulse);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--pulse-deep);
  color: var(--white);
}

.btn .arrow {
  display: inline-block;
  transition: transform .15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   Top nav
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .15s ease;
}

.nav.scrolled { box-shadow: 0 2px 12px -6px rgba(30, 42, 94, .15); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
}

.logo-mark svg { width: 100%; height: 100%; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.logo-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a:hover { color: var(--pulse); }
.nav-links a.active { color: var(--pulse); }

@media (max-width: 820px) {
  /* Hide FAQ anchor on small screens; keep primary nav links visible */
  .nav-links a[href*="#faq"] { display: none; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 56px 0 40px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-grid h4 {
  font-size: 12px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 700;
}

.footer-grid a {
  display: block;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--pulse); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================
   Reusable card surfaces
   ============================================ */

.surface {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.surface-warm {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.surface-ink {
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
}

/* ============================================
   Reveal-on-scroll
   ============================================ */

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.pre { opacity: 0; transform: translateY(14px); }
.reveal.in  { opacity: 1; transform: none; }

/* ============================================
   Selection
   ============================================ */
::selection { background: var(--pulse); color: var(--white); }

/* ============================================
   Mobile responsiveness
   ============================================ */

/* Tablet / small laptop */
@media (max-width: 820px) {
  .nav-inner { height: 64px; }
  .logo { font-size: 15px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-sub {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding-left: 8px;
    margin-left: 0;
  }
  .nav-links { gap: 16px; }
  .nav-links .btn {
    padding: 11px 16px;
    font-size: 13.5px;
    gap: 6px;
  }
  .btn { padding: 14px 22px; font-size: 14.5px; }
}

/* Phone */
@media (max-width: 600px) {
  html, body { font-size: 16px; line-height: 1.6; }
  .nav-inner { height: 60px; }
  .logo { font-size: 14.5px; }
  .logo-sub { display: none; }
  .nav-links { gap: 10px; }
  .nav-links .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  .nav-links .btn .arrow { display: none; }

  /* Type — pull down a notch so it breathes on a 360-390px viewport */
  .h-display { font-size: clamp(36px, 8.4vw, 42px); line-height: 1.15; }
  .h1 { font-size: clamp(26px, 6.6vw, 30px); line-height: 1.25; }
  .h3 { font-size: 18px; line-height: 1.35; }
  .lede { font-size: 16px; line-height: 1.6; }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 18px;
  }

  /* Buttons feel tappable */
  .btn {
    padding: 14px 22px;
    font-size: 14.5px;
    min-height: 46px;
  }

  /* Buttons in hero / banner stack full-width for clearer hit targets */
  .hero-meta .btn,
  .cta-banner-cta .btn,
  .final-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-meta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-banner-cta { width: 100%; }
  .cta-banner-cta > * { width: 100%; }
  .cta-banner-cta .micro { text-align: left; }
}

/* Footer collapses cleanly on small phones */
@media (max-width: 540px) {
  .footer { padding: 40px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 32px;
  }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-grid h4 { margin-bottom: 10px; }
  .footer-bottom { font-size: 12.5px; }
}

/* Tighten section padding on tiny screens */
@media (max-width: 480px) {
  :root { --gutter: 18px; }
}


/* ============ Cookie notice ============ */
.pp-cookie {
  position: fixed;
  z-index: 200;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin-left: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(30, 42, 94, 0.14);
  border-radius: 14px;
  box-shadow: 0 12px 32px -16px rgba(30, 42, 94, 0.28), 0 2px 6px -2px rgba(30, 42, 94, 0.08);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.pp-cookie--in { opacity: 1; transform: translateY(0); }
.pp-cookie-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.pp-cookie-btn {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .15s ease;
}
.pp-cookie-btn:hover { background: #0f1838; }
.pp-cookie-btn:focus-visible { outline: 2px solid var(--pulse); outline-offset: 2px; }
@media (max-width: 540px) {
  .pp-cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .pp-cookie-text { font-size: 13px; }
  .pp-cookie-btn { width: 100%; padding: 10px; }
}
