/* ============================================================
   WinOps — design tokens
   Design language: Claude Design handoff "WinOps Platform
   Brochure (Blue & White)" — light paper look, Quicksand
   headings in navy, Source Sans 3 body, hairline card borders,
   navy accent boxes with radial blue glow.
   ============================================================ */
:root {
  /* Brand */
  --winops-navy: #170099;
  --winops-navy-2: #2a1bb8;
  --winops-blue: #3d74ff;
  --winops-blue-2: #6694ff;
  --winops-blue-3: #e4ecff;
  --winops-blue-4: #f3f6ff;

  /* Surfaces */
  --bg-0: #ffffff;
  --bg-1: #f7f8fc;
  --bg-2: #eef1f9;

  /* Lines */
  --line: #d8def0;
  --line-soft: #e8ecf6;
  --line-strong: #c7cee6;

  /* Text */
  --fg-0: #0c0654;
  --fg-1: #1c1670;
  --fg-2: #4a4e7a;
  --fg-3: #7c80a3;

  /* Legacy aliases (used by inline styles on pages) */
  --color-primary: var(--winops-blue);
  --color-ink: var(--winops-navy);
  --color-light: var(--bg-2);

  --font-head: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 12px;
  --shadow: 0 10px 22px -16px rgba(23, 0, 153, 0.28);
  --shadow-lift: 0 30px 80px -30px rgba(23, 0, 153, 0.25);
  --glow: radial-gradient(circle at center, rgba(61, 116, 255, 0.35) 0%, rgba(61, 116, 255, 0) 65%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg-2);
  background: var(--bg-0);
  /* Sticky footer: fill the viewport and let <main> take the slack so the
     footer sits at the bottom even when the page content is short. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--winops-navy);
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }

p { margin: 0 0 1em; }

a { color: var(--winops-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.008em;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--winops-navy);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(23, 0, 153, 0.55);
}
.btn-primary:hover { background: var(--winops-navy-2); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--winops-navy);
  background: var(--bg-0);
}
.btn-outline:hover { border-color: var(--winops-navy); }

/* ------------------------------------------------------------
   Header / navigation
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
}

.logo img { display: block; }

.main-nav { margin-left: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-1);
  border-radius: 8px;
}
.nav-menu > li > a:hover,
.nav-menu > li > a[aria-current="page"] {
  color: var(--winops-navy);
  text-decoration: none;
  background: var(--winops-blue-4);
}

.has-dropdown { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-0);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--fg-1);
  font-size: 0.92rem;
}
.dropdown a:hover { background: var(--winops-blue-4); color: var(--winops-navy); text-decoration: none; }

.header-cta { white-space: nowrap; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.section-head {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .kicker,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--winops-blue);
  margin-bottom: 0.85rem;
}
.section-head .kicker::before,
.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--winops-blue);
}

.section-light { background: var(--bg-1); }

.section-dark {
  position: relative;
  background: var(--winops-navy);
  color: #c9d0f2;
  overflow: hidden;
}
.section-dark::before,
.section-dark::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--glow);
  pointer-events: none;
}
.section-dark::before { right: -100px; top: -120px; }
.section-dark::after { left: -110px; bottom: -140px; }
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--winops-blue-2); }
.section-dark .kicker::before { background: var(--winops-blue-2); }
.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.section-dark .card p { color: #c9d0f2; }
.section-dark .btn-primary {
  background: #fff;
  color: var(--winops-navy);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}
.section-dark .btn-primary:hover { background: var(--winops-blue-3); }

/* ------------------------------------------------------------
   Hero (light, paper look)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(61, 116, 255, 0.14), transparent 60%),
    linear-gradient(170deg, var(--winops-blue-4) 0%, var(--bg-0) 55%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 0.5em;
}
.hero h1 .accent, h1 .accent, h2 .accent { color: var(--winops-blue); }

.hero .sub {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--fg-1);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero .btn-ghost {
  border-color: var(--line-strong);
  color: var(--winops-navy);
}
.hero .btn-ghost:hover { border-color: var(--winops-navy); background: var(--bg-0); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: 0.95rem;
  color: var(--fg-1);
  font-weight: 600;
}
.hero-points li::before {
  content: '✓';
  color: var(--winops-blue);
  font-weight: 700;
  margin-right: 0.5rem;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

/* Screenshot collage: desktop shots + overlapping device shots */
.shot-collage {
  position: relative;
  padding: 3rem 0 3.5rem 2.5rem;
}
.shot-collage .shot-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 96%;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
}
.shot-collage .shot-back {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  filter: brightness(0.97);
}
.shot-collage .shot-back-right {
  top: 0;
  right: -3%;
  width: 58%;
}
.shot-collage .shot-back-left {
  top: 1.25rem;
  left: 0;
  width: 46%;
}
.shot-collage .shot-phone,
.shot-collage .shot-tablet {
  position: absolute;
  z-index: 2;
  border: 4px solid var(--fg-0);
  background: var(--fg-0);
  box-shadow: 0 24px 48px -12px rgba(12, 6, 84, 0.45);
}
.shot-collage .shot-phone {
  left: 0;
  bottom: 0;
  width: 21%;
  border-radius: 18px;
}
.shot-collage .shot-tablet {
  right: -2%;
  bottom: -1rem;
  width: 32%;
  border-radius: 14px;
}

/* ------------------------------------------------------------
   KPI band — brochure stat row
   ------------------------------------------------------------ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--winops-navy);
  border-bottom: 1px solid var(--line);
}

.kpi {
  padding: 1.4rem 1.5rem 1.5rem 0;
  text-align: left;
}
.kpi + .kpi {
  border-left: 1px solid var(--line-strong);
  padding-left: 1.6rem;
}
.kpi .num {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--winops-navy);
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.kpi .label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--winops-navy);
  letter-spacing: -0.01em;
  margin: 0.9rem 0 0.35rem;
}
.kpi p { font-size: 0.85rem; line-height: 1.4; color: var(--fg-2); margin: 0; max-width: 24ch; }

/* ------------------------------------------------------------
   Card grids
   ------------------------------------------------------------ */
/* Flex instead of grid so incomplete last rows center instead of
   left-aligning; max-width keeps orphan cards from stretching wide. */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.card-grid > * {
  flex: 1 1 250px;
  max-width: 380px;
  min-width: 0;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card { color: inherit; }
a.card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { font-size: 0.9rem; line-height: 1.5; margin-bottom: 0; }
.card .card-link {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.008em;
  color: var(--winops-blue);
}
.card img.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 1.1rem;
}

/* Team portraits keep their square aspect instead of the 190px crop */
#team .card-img {
  height: auto;
  aspect-ratio: 1 / 1;
}

/* ------------------------------------------------------------
   Split (text + media) blocks
   ------------------------------------------------------------ */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: center;
}
.split.reverse > .split-media { order: -1; }
.split-media .shot-portrait {
  display: block;
  max-height: 460px;
  width: auto;
  margin-inline: auto;
}
.split-media img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------
   Trust band (facts strip under the hero) — navy closeband
   ------------------------------------------------------------ */
.trust-band {
  position: relative;
  background: var(--winops-navy);
  padding: 1.1rem 0;
  overflow: hidden;
}
.trust-band::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--glow);
  pointer-events: none;
}
.trust-band .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 3rem;
}
.trust-band .fact {
  color: #c9d0f2;
  font-size: 0.95rem;
}
.trust-band .fact strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  margin-right: 0.4rem;
}
.trust-band a { color: var(--winops-blue-2); white-space: nowrap; }

/* ------------------------------------------------------------
   Timeline (company journey)
   ------------------------------------------------------------ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.timeline li {
  background: var(--bg-0);
  padding: 1.6rem 1.5rem 1.7rem;
}
.timeline-year {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--winops-blue);
  margin-bottom: 0.75rem;
}
.timeline h3 { font-size: 1.1rem; }
.timeline p { font-size: 0.9rem; line-height: 1.5; margin: 0; }

/* ------------------------------------------------------------
   Quote — navy pullquote with glow
   ------------------------------------------------------------ */
.quote {
  position: relative;
  margin: 0;
  padding: 2.4rem 2.5rem 2.2rem 3.4rem;
  background: var(--winops-navy);
  border-radius: 14px;
  overflow: hidden;
}
.quote::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--glow);
  pointer-events: none;
}
.quote::after {
  content: "“";
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6.5rem;
  line-height: 0.5;
  color: var(--winops-blue);
  opacity: 0.55;
  position: absolute;
  left: 1.4rem;
  top: 2.6rem;
}
.quote p {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #fff;
}
.quote footer {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--winops-blue-2);
}

/* ------------------------------------------------------------
   Services: section head with schematic illustration
   ------------------------------------------------------------ */
.svc-head { margin-bottom: 3rem; }
.svc-art svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 10px 22px rgba(23, 0, 153, 0.10));
}
.svc-note {
  display: inline-block;
  background: var(--winops-blue-3);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--fg-1);
  font-weight: 600;
}

/* ------------------------------------------------------------
   Phone screenshot figures (app pages) — brochure shot-card
   ------------------------------------------------------------ */
.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 250px));
  justify-content: center;
  gap: 1.5rem;
}
.phone-grid.five { grid-template-columns: repeat(5, 1fr); }

/* Below desktop: horizontal swipe strip — no orphaned last figure */
@media (max-width: 1020px) {
  .phone-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  .phone-grid figure {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}
.phone-grid figure {
  margin: 0;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.phone-grid figure img { display: block; width: 100%; }
.phone-grid figcaption {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: -0.008em;
  color: var(--winops-navy);
}

/* ------------------------------------------------------------
   Integrations band
   ------------------------------------------------------------ */
.integrations-band img {
  display: block;
  margin: 0 auto;
}
.cobrand-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  background: var(--winops-navy);
  border-radius: 14px;
  padding: 3.5rem 2.5rem;
  overflow: hidden;
}
.cobrand-panel::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -70px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--glow);
  pointer-events: none;
}
.cobrand-panel img {
  position: relative;
  z-index: 1;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.cobrand-x {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--winops-blue-2);
}

.partner-logo {
  align-self: flex-start;
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   Demo / Calendly
   ------------------------------------------------------------ */
.calendly-inline-widget {
  /* Full width is load-bearing: Calendly renders its cramped mobile layout
     whenever the widget's parent is narrower than ~650px, and as a flex item
     inside .calendly-consent the div would otherwise shrink to min-width. */
  width: 100%;
  min-width: 320px;
  height: 700px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Consent-gated YouTube facade: local poster, iframe only after play */
.video-consent {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  background: var(--winops-navy);
}
.video-consent > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-consent-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 6, 84, 0) 40%, rgba(12, 6, 84, 0.72));
}
.video-consent-overlay p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.85rem;
  color: #e7eaff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.video-consent iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Consent-gated Calendly placeholder */
.calendly-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 340px;
  background: var(--bg-1);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.calendly-consent p {
  max-width: 46ch;
  margin: 0;
  color: var(--fg-2);
}
.section-dark .calendly-consent {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}
.section-dark .calendly-consent p { color: #c9d0f2; }

/* ------------------------------------------------------------
   Consent banner + preference toggles
   ------------------------------------------------------------ */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-0);
  border-top: 3px solid var(--winops-blue);
  box-shadow: 0 -14px 44px rgba(12, 6, 84, 0.22);
}
.consent-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.consent-inner p { margin: 0; flex: 1 1 380px; font-size: 0.92rem; }
.consent-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.consent-actions .btn { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.consent-prefs-link { font-size: 0.88rem; white-space: nowrap; }

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.consent-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--winops-navy);
  flex: none;
}
.consent-option h3 { margin-bottom: 0.25rem; font-size: 1.05rem; }
.consent-option p { margin: 0; font-size: 0.92rem; }

/* ------------------------------------------------------------
   Page hero (subpages) — light paper
   ------------------------------------------------------------ */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(61, 116, 255, 0.13), transparent 60%),
    linear-gradient(170deg, var(--winops-blue-4) 0%, var(--bg-0) 70%);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .sub { font-size: 1.1rem; color: var(--fg-1); max-width: 42rem; margin: 0; }

/* Legal pages — region switcher + cookie inventory table */
.region-switch {
  font-size: 0.9rem;
  color: var(--fg-1);
  padding: 0.6rem 0.9rem;
  background: var(--bg-1);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 2rem;
}
.region-switch a { white-space: nowrap; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.92rem;
}
.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-soft);
  vertical-align: top;
}
.cookie-table th { background: var(--bg-1); font-weight: 600; }
.cookie-table code { font-size: 0.88em; }

/* ------------------------------------------------------------
   Footer — deep navy
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  background: var(--fg-0);
  color: #aab0c8;
  padding: 4rem 0 1.5rem;
  font-size: 0.95rem;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--glow);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: #aab0c8; }
.footer-col a:hover { color: #fff; }
.footer-brand p { margin-top: 1rem; }
address { font-style: normal; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
}
.footer-legal p { margin: 0; }
.footer-legal ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal a { color: #aab0c8; }
.footer-legal a:hover { color: #fff; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1020px) {
  .header-cta { display: none; }

  .nav-toggle {
    display: grid;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.6rem;
    cursor: pointer;
  }
  .nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--winops-navy);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-0);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lift);
    padding: 0.75rem 1.25rem 1.25rem;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1rem;
    min-width: 0;
  }

  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  /* keep the 2x2 stat grid, just more compact */
  .kpi { padding: 1rem 0.75rem 1.1rem 0; }
  .kpi + .kpi { padding-left: 1rem; }
  .kpi .num { font-size: 2.1rem; }
  .kpi .label { font-size: 0.85rem; margin: 0.55rem 0 0.3rem; }
  .kpi p { font-size: 0.76rem; line-height: 1.35; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Dark theme
   The inline boot script in <head> stamps data-theme="light|dark"
   on <html> before styles apply: a stored toggle choice wins,
   otherwise the OS preference (prefers-color-scheme) decides and
   is tracked live. All dark styling keys off [data-theme="dark"],
   so automatic and manual selection share one set of rules.
   ============================================================ */
:root { color-scheme: light; }

:root[data-theme="dark"] {
  color-scheme: dark;

  /* Brighter blues for contrast on dark surfaces */
  --winops-blue: #5b87ff;
  --winops-blue-2: #7fa3ff;
  --winops-blue-4: #1a1b40;

  --bg-0: #0f0e24;
  --bg-1: #14132e;
  --bg-2: #1b1a3e;

  --line: #2b2a55;
  --line-soft: #232148;
  --line-strong: #3d3c78;

  --fg-0: #f2f3ff;
  --fg-1: #cdd1f4;
  --fg-2: #a4a8d3;
  --fg-3: #8286ab;

  --shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.65);
  --shadow-lift: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --glow: radial-gradient(circle at center, rgba(91, 135, 255, 0.22) 0%, rgba(91, 135, 255, 0) 65%);
}

/* Brand-navy panels glare on a dark page: tone them down to a deep,
   desaturated navy surface with hairlines. Buttons keep brand navy. */
[data-theme="dark"] .section-dark,
[data-theme="dark"] .trust-band {
  background: #1a1950;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
[data-theme="dark"] .quote,
[data-theme="dark"] .cobrand-panel {
  background: #1a1950;
  border: 1px solid var(--line);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: var(--fg-0); }

[data-theme="dark"] .site-header { background: rgba(15, 14, 36, 0.92); }
[data-theme="dark"] .nav-toggle-bar { background: var(--fg-0); }

/* Active/hovered nav pills get a dark background via --winops-blue-4;
   the navy text must flip to white to stay readable on it. */
[data-theme="dark"] .nav-menu > li > a:hover,
[data-theme="dark"] .nav-menu > li > a[aria-current="page"] { color: #fff; }
[data-theme="dark"] .dropdown a:hover { color: #fff; }
[data-theme="dark"] .consent-option input[type="checkbox"] { accent-color: var(--winops-blue); }

[data-theme="dark"] .btn-outline { color: var(--fg-0); }
[data-theme="dark"] .btn-outline:hover { border-color: var(--fg-1); }
[data-theme="dark"] .hero .btn-ghost { color: var(--fg-0); }
[data-theme="dark"] .hero .btn-ghost:hover { border-color: var(--fg-1); background: var(--bg-1); }

/* Raised surfaces sit above the page background instead of white.
   (.section-dark .card keeps its glass look via higher specificity.) */
[data-theme="dark"] .card,
[data-theme="dark"] .timeline li,
[data-theme="dark"] .phone-grid figure,
[data-theme="dark"] .dropdown,
[data-theme="dark"] .consent-option { background: var(--bg-2); }
[data-theme="dark"] .consent-banner {
  background: var(--bg-2);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, 0.6);
}
@media (max-width: 1020px) {
  [data-theme="dark"] .nav-menu { background: var(--bg-1); }
}

[data-theme="dark"] .kpi-grid { border-top-color: var(--winops-blue); }
[data-theme="dark"] .kpi .num,
[data-theme="dark"] .kpi .label { color: var(--fg-0); }
[data-theme="dark"] .phone-grid figcaption { color: var(--fg-1); }
[data-theme="dark"] .svc-note { background: var(--bg-2); }

[data-theme="dark"] .shot-collage .shot-phone,
[data-theme="dark"] .shot-collage .shot-tablet {
  border-color: #060512;
  background: #060512;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
}

/* Partner marks are drawn for light paper - give them a white plate */
[data-theme="dark"] .integrations-band img {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
}
[data-theme="dark"] .partner-logo {
  background: #fff;
  height: 52px;
  padding: 6px 10px;
  border-radius: 8px;
}

[data-theme="dark"] .site-footer { background: #0a0918; }

/* ------------------------------------------------------------
   Theme toggle (header) + logo variants
   ------------------------------------------------------------ */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg-1);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  color: var(--winops-navy);
  transform: translateY(-1px);
}
[data-theme="dark"] .theme-toggle:hover { color: #fff; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark { display: block; }
