/* width/height attrs are present to reserve layout space; let CSS drive the
   aspect ratio. Inline `height:` (logos) has higher specificity and wins. */
img { height: auto; }

body { margin: 0; background: #0a0f1c; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
  a { color: #38bdf8; text-decoration: none; }
  a:hover { color: #7dd3fc; }
.hv1:hover { border-color:rgba(56,189,248,0.35); box-shadow:0 0 55px -10px rgba(56,189,248,0.32); transform:translateY(-2px); }
.hv2:hover { background:#182644; }
[data-faq]:hover { border-color: rgba(56,189,248,0.28); }
[data-tprev]:hover, [data-tnext]:hover { border-color: rgba(56,189,248,0.5); color: #38bdf8; }
/* (the old 900px header-wrap rule is superseded by the tablet tier below) */

/* Header fit: keep the CTA on one line and let the nav offset/gap flex */
header > a:last-child { white-space: nowrap; flex: 0 0 auto; }
header nav { margin-left: clamp(24px, 4vw, 112px) !important; gap: clamp(18px, 2.4vw, 30px) !important; }
header nav a { white-space: nowrap; }

/* Video play overlay */
.vidplay:hover span { background: rgba(56, 189, 248, 0.35) !important; transform: scale(1.06); }
.vidplay:focus-visible { outline: 2px solid #38bdf8; outline-offset: -4px; }

/* Footer LinkedIn tile */
.hv-li:hover { background: rgba(56, 189, 248, 0.16) !important; }
.hv-li:hover svg { fill: #38bdf8; }
.hv-li:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }

/* Page shell. The inline wrapper on every page is max-width:1440px, which runs
   long on wide monitors; cap it here so one value governs all pages. */
[style*="max-width:1440px"] { max-width: 1360px !important; }

/* Outlined CTA panels ("Ready to get started?", "Stay Connected", etc.).
   They carry no max-width inline, so on a wide screen they stretched the full
   1440px container. Cap and centre them; the mobile/tablet gutter rules below
   come later in the file and still win on small screens. */
[style*="border:1px solid rgba(56,189,248,0.4)"] {
  /* border-box so the cap is the panel's real outer width, not the content box
     (these panels carry 64px of inline padding plus a 1px border). */
  box-sizing: border-box;
  max-width: 1000px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== Cookie consent ===== */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999;
  background: #0d1526; border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  opacity: 0; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}
.cc-banner.cc-in { opacity: 1; transform: none; }
.cc-inner {
  max-width: 1100px; margin: 0 auto; padding: 18px 22px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.cc-text { flex: 1 1 380px; margin: 0; font-size: 14.5px; line-height: 1.6; color: #c3cad9; }
.cc-text a { color: #38bdf8; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cc-btn {
  font: inherit; font-size: 14px; font-weight: 600; border-radius: 8px;
  padding: 10px 18px; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cc-primary { background: #38bdf8; color: #0a0f1c; border: 1px solid #38bdf8; }
.cc-primary:hover { background: #7dd3fc; border-color: #7dd3fc; }
.cc-ghost { background: transparent; color: #e6e9f2; border: 1px solid rgba(255, 255, 255, 0.22); }
.cc-ghost:hover { border-color: rgba(56, 189, 248, 0.6); color: #38bdf8; }
.cc-btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.cc-overlay {
  position: fixed; inset: 0; z-index: 10000; background: rgba(4, 7, 14, 0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.cc-modal {
  background: #0d1526; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: 28px; width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}
.cc-title { font-size: 22px; font-weight: 600; color: #fff; margin: 0 0 18px; }
.cc-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-row:first-of-type { border-top: none; }
label.cc-row { cursor: pointer; }
.cc-row-h { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.cc-row-d { font-size: 13.5px; line-height: 1.55; color: #9aa3b8; }
.cc-always { font-size: 13px; color: #9aa3b8; white-space: nowrap; padding-top: 2px; }
.cc-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #38bdf8; flex: 0 0 auto; margin-top: 2px; }
.cc-modal-actions { justify-content: flex-end; margin-top: 22px; }

@media (max-width: 700px) {
  .cc-banner { left: 10px; right: 10px; bottom: 10px; }
  .cc-inner { padding: 16px 18px; gap: 14px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
  .cc-modal { padding: 22px 20px; }
}

/* ===== MOBILE (generated by deploy/build-mobile-css.py) ===== */
/* Hamburger control — hidden on desktop, shown under the breakpoints below. */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.hamburger { display: none; }

/* ===== TABLET (<=900px): nav collapses, gutters halve, grids go 2-up ===== */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img, svg { max-width: 100%; }

  /* gutters 64px -> 32px */
  [style*="margin:0 64px 100px"] { margin: 0 32px 80px !important; }
  [style*="margin:0 64px 56px"] { margin: 0 32px 45px !important; }
  [style*="margin:0 64px 72px"] { margin: 0 32px 58px !important; }
  [style*="margin:20px 64px 100px"] { margin: 16px 32px 80px !important; }
  [style*="padding:0 64px 100px"] { padding: 0 32px 80px !important; }
  [style*="padding:0 64px 120px"] { padding: 0 32px 96px !important; }
  [style*="padding:0 64px 56px"] { padding: 0 32px 45px !important; }
  [style*="padding:0 64px 72px"] { padding: 0 32px 58px !important; }
  [style*="padding:0 64px 80px"] { padding: 0 32px 64px !important; }
  [style*="padding:0 64px 96px"] { padding: 0 32px 77px !important; }
  [style*="padding:20px 64px 100px"] { padding: 16px 32px 80px !important; }
  [style*="padding:20px 64px 110px"] { padding: 16px 32px 88px !important; }
  [style*="padding:20px 64px 90px"] { padding: 16px 32px 72px !important; }
  [style*="padding:24px 64px"] { padding: 19px 32px !important; }
  [style*="padding:24px 64px 96px"] { padding: 19px 32px 77px !important; }
  [style*="padding:32px 64px 0"] { padding: 26px 32px 0 !important; }
  [style*="padding:34px 64px 18px"] { padding: 27px 32px 14px !important; }
  [style*="padding:40px 64px 120px"] { padding: 32px 32px 96px !important; }
  [style*="padding:56px 64px 80px"] { padding: 45px 32px 64px !important; }
  [style*="padding:56px 64px 88px"] { padding: 45px 32px 70px !important; }
  [style*="padding:64px 64px 40px"] { padding: 51px 32px 32px !important; }
  [style*="padding:64px 64px 56px"] { padding: 51px 32px 45px !important; }
  [style*="padding:88px 64px 0"] { padding: 70px 32px 0 !important; }
  [style*="padding:96px 64px 100px"] { padding: 77px 32px 80px !important; }

  /* dense multi-column grids drop to two columns */
  [style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns:96px 1fr"] { grid-template-columns: 72px 1fr !important; }
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:1fr 1.04fr"] { grid-template-columns: minmax(0, 1fr) !important; }

  /* hero type steps down before the phone tier so it never jumps */
  .hero-title { font-size: 42px !important; }
  .hero-sub { font-size: 18px !important; }
  h2 { font-size: 31px !important; line-height: 1.2 !important; }

  /* header: hamburger takes over — the desktop nav no longer fits */
  header { flex-wrap: nowrap !important; gap: 16px !important; }
  header > div { flex: 1 1 auto; min-width: 0; }
  header > div > span { display: none !important; }
  header > a { white-space: nowrap; flex: 0 0 auto; }

  .hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 26px; height: 20px; cursor: pointer; flex: 0 0 auto;
    box-sizing: content-box; padding: 12px; margin: -12px;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    display: block; width: 100%; height: 2px; background: #e6e9f2;
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  #nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  header nav {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; margin-left: 0 !important;
    background: #0d1526;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
    padding: 2px 32px 6px; z-index: 30;
  }
  #nav-toggle:checked ~ div nav { display: flex !important; }
  header nav a {
    width: 100%; padding: 15px 0; font-size: 15px !important;
    color: #e6e9f2 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
  header nav a:first-child { border-top: none; }
  header nav a:active { color: #38bdf8 !important; }
}

/* ===== PHONE (<=700px) ===== */

@media (max-width: 700px) {

  /* --- 1. Nothing may scroll sideways --- */
  html, body { overflow-x: hidden; max-width: 100%; }
  img, svg { max-width: 100%; }

  /* --- 2. Section gutters: 64px -> 20px, vertical padding eased --- */
  [style*="margin:0 64px 100px"] { margin: 0 20px 65px !important; }
  [style*="margin:0 64px 56px"] { margin: 0 20px 36px !important; }
  [style*="margin:0 64px 72px"] { margin: 0 20px 47px !important; }
  [style*="margin:20px 64px 100px"] { margin: 13px 20px 65px !important; }
  [style*="padding:0 64px 100px"] { padding: 0 20px 65px !important; }
  [style*="padding:0 64px 120px"] { padding: 0 20px 78px !important; }
  [style*="padding:0 64px 56px"] { padding: 0 20px 36px !important; }
  [style*="padding:0 64px 72px"] { padding: 0 20px 47px !important; }
  [style*="padding:0 64px 80px"] { padding: 0 20px 52px !important; }
  [style*="padding:0 64px 96px"] { padding: 0 20px 62px !important; }
  [style*="padding:20px 64px 100px"] { padding: 13px 20px 65px !important; }
  [style*="padding:20px 64px 110px"] { padding: 13px 20px 72px !important; }
  [style*="padding:20px 64px 90px"] { padding: 13px 20px 58px !important; }
  [style*="padding:24px 64px"] { padding: 16px 20px !important; }
  [style*="padding:24px 64px 96px"] { padding: 16px 20px 62px !important; }
  [style*="padding:32px 64px 0"] { padding: 21px 20px 0 !important; }
  [style*="padding:34px 64px 18px"] { padding: 22px 20px 12px !important; }
  [style*="padding:40px 64px 120px"] { padding: 26px 20px 78px !important; }
  [style*="padding:56px 64px 80px"] { padding: 36px 20px 52px !important; }
  [style*="padding:56px 64px 88px"] { padding: 36px 20px 57px !important; }
  [style*="padding:64px 64px 40px"] { padding: 42px 20px 26px !important; }
  [style*="padding:64px 64px 56px"] { padding: 42px 20px 36px !important; }
  [style*="padding:88px 64px 0"] { padding: 57px 20px 0 !important; }
  [style*="padding:96px 64px 100px"] { padding: 62px 20px 65px !important; }

  /* --- 3. Every multi-column grid becomes a single column --- */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  /* ...except the numbered-step layout, which just gets narrower */
  [style*="grid-template-columns:96px 1fr"] {
    grid-template-columns: 46px 1fr !important; gap: 18px !important;
  }

  /* --- 4. Header: logo + burger only --- */
  /* No background here: the header stays transparent so it sits on the page
     gradient exactly as it does on desktop. An opaque bar left a hard seam
     against the glow behind it. The nav drop-down carries its own background,
     so the open menu is still readable. */
  header {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 14px 20px 12px !important;
  }
  header > div { flex: 1 1 auto; min-width: 0; }
  header img { height: 32px !important; }
  /* subpage breadcrumb text duplicates the H1 — drop it on small screens */
  header > div > span { display: none !important; }
  /* keep the CTA compact and on one line */
  header > a { padding: 8px 14px !important; font-size: 12px !important; white-space: nowrap; flex: 0 0 auto; }

  .hamburger {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 26px; height: 20px; cursor: pointer; flex: 0 0 auto;
    /* bars stay 26x20 but the tap target grows to ~50x44 (WCAG 2.5.5) */
    box-sizing: content-box; padding: 12px; margin: -12px;
    -webkit-tap-highlight-color: transparent;
  }
  .hamburger span {
    display: block; width: 100%; height: 2px; background: #e6e9f2;
    border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
  }
  #nav-toggle:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav-toggle:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* --- 5. Nav collapses into a drop-down panel --- */
  header nav {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column !important; align-items: stretch !important;
    gap: 0 !important; margin-left: 0 !important;
    background: #0d1526;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.6);
    padding: 2px 20px 6px; z-index: 30;
  }
  #nav-toggle:checked ~ div nav { display: flex !important; }
  header nav a {
    width: 100%; padding: 15px 0; font-size: 15px !important;
    color: #e6e9f2 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    transition: color .15s ease;
  }
  header nav a:first-child { border-top: none; }
  header nav a:active { color: #38bdf8 !important; }

  /* --- 6. Typography scales down ---
     Sized by element, not by inline pixel value. The old rules keyed off
     [style*="font-size:36px"] and friends, which silently stopped matching the
     moment a desktop size changed. The only value-keyed rule left is 44px,
     which targets stat <div>s rather than headings. */
  h1 { font-size: 32px !important; line-height: 1.16 !important; }
  h2 { font-size: 27px !important; line-height: 1.22 !important; }
  div[style*="font-size:44px"], div[style*="font-size: 44px"] { font-size: 30px !important; }

  /* hero: class selectors outrank the generic h1 rule above */
  .hero-title { font-size: 33px !important; line-height: 1.14 !important; }
  .hero-sub { font-size: 16.5px !important; line-height: 1.55 !important; }

  /* --- 7. Cards and inner blocks: gentler padding, no fixed widths --- */
  [style*="padding:28px 16px"] { padding: 22px 18px !important; }
  [style*="padding:24px 28px"] { padding: 20px 18px !important; }
  [style*="padding:14px 28px"] { padding: 13px 20px !important; }
  [style*="max-width:"] { max-width: 100% !important; }

  /* --- 8. Testimonial carousel: one card at a time --- */
  [data-tcard] { min-width: 0 !important; }

  /* --- 9. Footer LinkedIn / newsletter pair: stack, drop inner gutters --- */
  [style*="padding:32px 48px 32px 0"] {
    padding: 24px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  }
  [style*="padding:32px 0 32px 48px"] { padding: 24px 0 !important; }

  /* --- 10. Newsletter field + button stack instead of overflowing --- */
  [style*="display:flex; gap:10px"] { flex-wrap: wrap !important; }
  input[type="email"] { flex: 1 1 100% !important; min-width: 0 !important; }
  input[type="email"] + button { width: 100% !important; }

  /* --- 11b. Icon+text cards: trim inner padding so copy isn't squeezed --- */
  [style*="padding:36px 40px"] { padding: 24px 20px !important; gap: 16px !important; }
  [style*="padding:32px; display:flex"] { padding: 22px 18px !important; gap: 14px !important; }

  /* --- 11. Testimonials: card gets the full width, arrows move underneath --- */
  .tcarousel { flex-wrap: wrap !important; justify-content: center; gap: 18px !important; }
  .tcarousel-track { flex: 1 1 100% !important; order: 1; }
  .tcarousel [data-tprev] { order: 2; }
  .tcarousel [data-tnext] { order: 3; }
  [data-tcard] { padding-left: 18px !important; }
}
/* ===== END MOBILE ===== */
