/* ==========================================================================
   Xactware.com — design system
   Sibling brand to verisk.com: navy foundation, Verisk-blue action color,
   editorial type, generous whitespace. Tokens live in :root.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Verisk brand tokens (from verisk.com production CSS, 2021 rebrand) */
  --navy-950: #03183c;   /* Verisk body navy — darkest surfaces */
  --navy-900: #002d61;   /* Verisk dark navy bg (--extBlue1) */
  --navy-800: #00358e;   /* Globe Blue — primary brand color */
  --navy-700: #1a4bad;
  --blue-600: #0062ff;   /* Radical Blue — links, action accents */
  --blue-500: #3d84ff;
  --blue-100: #edf4ff;   /* Verisk --neutralFive blue-tinted light bg */
  --teal-500: #6eefff;   /* Verisk secondary teal — dark-bg accent + CTA fill */
  --teal-400: #bbffff;   /* teal hover tint */
  --teal-100: #e4fcff;
  --teal-ink: #047cb1;   /* Verisk data-viz blue — teal-family accent on light */
  --gold-500: #ffc600;   /* Verisk secondary gold — sparing highlights */

  --ink: #03183c;
  --ink-soft: #3e5273;
  --ink-faint: #647694;
  --line: #d5deed;
  --line-soft: #e5ebf5;
  --paper: #ffffff;
  --paper-tint: #f4f7fc;
  --paper-warm: #f9fafc;

  --font-display: "Martel", Georgia, "Times New Roman", serif;
  --font-text: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --size-hero: clamp(2.6rem, 5.2vw, 4.25rem);
  --size-h1: clamp(2.2rem, 4vw, 3.25rem);
  --size-h2: clamp(1.75rem, 3vw, 2.5rem);
  --size-h3: 1.375rem;
  --size-h4: 1.0625rem;
  --size-body-lg: 1.1875rem;
  --size-body: 1rem;
  --size-small: 0.875rem;
  --size-eyebrow: 0.8125rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --container-wide: 1360px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --space-section: clamp(3.5rem, 6vw, 5.5rem);
  --space-section-sm: clamp(2.5rem, 4.5vw, 3.75rem);

  --shadow-card: 0 1px 2px rgba(10, 31, 61, 0.06), 0 8px 24px -12px rgba(10, 31, 61, 0.12);
  --shadow-lift: 0 2px 4px rgba(10, 31, 61, 0.08), 0 20px 40px -20px rgba(10, 31, 61, 0.25);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 {
  /* Verisk family signature: Martel serif display headings */
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h3, h4 {
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); line-height: 1.3; }
h4 { font-size: var(--size-h4); line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

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

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-text);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; opacity: 0.85;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--teal-500); }
.lede { font-size: var(--size-body-lg); line-height: 1.65; color: var(--ink-soft); max-width: 46rem; }
.on-dark .lede { color: #b7c7de; }

/* Section header: editorial two-column on wide screens */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.split {
  display: grid; gap: 1rem 4rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
}
.section-head.split .lede { margin-bottom: 0.35rem; }
@media (max-width: 860px) {
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-text); font-weight: 600; font-size: 0.9375rem;
  padding: 0.78em 1.6em; border-radius: 100px;
  border: 1.5px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.55em 1.25em; font-size: 0.875rem; }
.btn-lg { padding: 0.92em 2em; font-size: 1rem; }

/* Verisk pattern: Globe Blue fill on light bg, teal fill on dark heroes */
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-teal { background: var(--teal-500); color: var(--navy-800); }
.btn-teal:hover { background: var(--teal-100); color: var(--navy-800); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.32); color: #fff; }
.on-dark .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--teal-100); color: var(--navy-800); }

/* Touch devices: hover states stick after a tap — neutralize them */
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn-primary:hover { background: var(--navy-800); }
  .btn-teal:hover { background: var(--teal-500); }
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { border-color: var(--line); }
  .site-nav > ul > li > a:hover,
  .site-nav > ul > li > button:hover { background: none; }
  .product-card:hover { border-color: var(--line); box-shadow: none; transform: none; }
}
/* CTA buttons in the nav must never take current-page link styling */
.site-nav a.btn.is-current, .site-nav a.btn { color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: 0.9375rem; color: var(--blue-600);
}
.text-link .arrow { transition: transform 0.18s var(--ease); }
.text-link:hover { text-decoration: none; }
.text-link:hover .arrow { transform: translateX(3px); }
.on-dark .text-link { color: var(--teal-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 20px -12px rgba(10, 31, 61, 0.18);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: auto; }
.brand-division {
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.015em;
  line-height: 1.25; color: var(--navy-800);
  border-left: 1px solid var(--line); padding-left: 0.75rem;
  max-width: 13em;
}
@media (max-width: 480px) {
  .brand-division { font-size: 0.72rem; max-width: 11em; }
}
.site-nav { display: flex; align-items: center; flex: 1; gap: 1.25rem; min-width: 0; }
.site-nav > ul {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav > ul > li > a,
.site-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.5rem 0.55rem; border: 0; background: none;
  font-weight: 500; font-size: 0.9rem; color: var(--ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > button:hover { background: var(--paper-tint); text-decoration: none; }
.site-nav a.is-current { color: var(--blue-600); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-utility { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.nav-utility:hover { color: var(--ink); text-decoration: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s;
}
.nav-dropdown.is-open > button::after { transform: rotate(225deg); margin-top: 3px; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(660px, 92vw);
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 1rem; display: grid;
  grid-template-columns: 1fr 1fr; gap: 0.25rem;
  visibility: hidden; opacity: 0; pointer-events: none;
  /* closing: 120ms grace before fading, stays interactive until fully hidden */
  transition: opacity 0.15s var(--ease) 0.12s, visibility 0s linear 0.27s;
}
/* invisible bridge covering the gap between trigger and panel */
.dropdown-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-dropdown.is-open > .dropdown-panel {
  visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s, 0s;
}
@media (hover: hover) {
  .nav-dropdown:hover > .dropdown-panel {
    visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s, 0s;
  }
}
/* grouped dropdown: core suite (2-col) + ancillary column */
.dropdown-panel:has(.dd-group) {
  width: min(940px, 94vw);
  grid-template-columns: 1fr 1fr 1fr; gap: 0.25rem 0.75rem;
}
.dd-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; grid-column: span 2; align-content: start; }
.dd-group.dd-more { grid-template-columns: 1fr; grid-column: span 1; border-left: 1px solid var(--line-soft); padding-left: 0.75rem; }
.dd-head {
  grid-column: 1 / -1;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 0.35rem 0.8rem 0.45rem;
}
@media (max-width: 1180px) {
  .dd-group, .dd-group.dd-more { grid-template-columns: 1fr; grid-column: auto; border-left: 0; padding-left: 0; }
}

.dropdown-item {
  display: flex; gap: 0.8rem; padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md); text-decoration: none;
}
.dropdown-item:hover { background: var(--paper-tint); text-decoration: none; }
.dropdown-item .di-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.dropdown-item strong {
  display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.dropdown-item span { display: block; font-size: 0.8125rem; color: var(--ink-faint); line-height: 1.4; }
.dropdown-cta {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.35rem; padding: 0.85rem 0.9rem 0.35rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem; color: var(--ink-soft);
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown > button {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.42rem 0.75rem; border: 1.5px solid var(--line); border-radius: 100px;
  background: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-dropdown > button:hover { border-color: var(--ink-soft); color: var(--ink); }
.lang-dropdown > button::after { content: none; }
.lang-panel {
  left: auto; right: 0; transform: none;
  width: 230px; grid-template-columns: 1fr; padding: 0.5rem; gap: 0.1rem;
}
.lang-item {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--ink); text-decoration: none;
}
.lang-item:hover { background: var(--paper-tint); text-decoration: none; }
.lang-item.is-current { font-weight: 700; color: var(--navy-800); }
.lang-item.is-current::after { content: " ✓"; color: var(--teal-ink); }
@media (max-width: 1180px) {
  .lang-dropdown { align-self: flex-start; }
  .lang-dropdown .lang-panel { position: absolute; top: calc(100% + 8px); left: 0; right: auto; box-shadow: var(--shadow-lift); border: 1px solid var(--line-soft); }
}

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .header-inner { gap: 1rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* absolute (not fixed): backdrop-filter on the sticky header makes the
     header the containing block for fixed descendants */
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 72px); z-index: 50;
    background: #fff; overflow-y: auto;
    border-top: 1px solid var(--line-soft);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 3rem;
  }
  .site-nav.is-open { display: flex; }
  body.nav-locked { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .site-nav > ul > li > a, .site-nav > ul > li > button {
    width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.05rem;
  }
  .dropdown-panel {
    position: static; transform: none; width: 100%;
    border: 0; box-shadow: none; padding: 0 0 1rem;
    grid-template-columns: 1fr;
    display: none; visibility: visible; opacity: 1;
    pointer-events: auto; transition: none;
  }
  .dropdown-panel::before { content: none; }
  .nav-dropdown.is-open .dropdown-panel { display: grid; }
  .nav-actions {
    margin: 1.25rem 0 0; flex-direction: column; align-items: stretch; gap: 0.9rem;
  }
  .nav-actions .btn { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-sm { padding-block: var(--space-section-sm); }
/* closing CTA section always follows another section on the same background —
   collapse its top padding so the seam doesn't double up */
main > .section-sm:last-child { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--navy-900); color: #cdd9e8; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* ---------- Hero (homepage) ---------- */
.hero-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(0, 98, 255, 0.38), transparent 60%),
    radial-gradient(900px 600px at -8% 110%, rgba(110, 239, 255, 0.10), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 130%);
  color: #c3d2e4;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 620px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 620px at 70% 20%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.hero-copy h1 {
  font-size: var(--size-hero); font-weight: 700; color: #fff;
  letter-spacing: -0.008em; line-height: 1.14; margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero-copy .accent { color: var(--teal-500); }
.hero-copy .lede { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 4rem; }
}

/* ---------- Stat band ---------- */
.stat-band { border-block: 1px solid var(--line-soft); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stat-item { border-left: 2px solid var(--blue-600); padding-left: 1.25rem; }
.stat-value {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em;
  color: var(--navy-800); line-height: 1.05;
}
.stat-label { font-size: var(--size-small); color: var(--ink-soft); margin-top: 0.45rem; line-height: 1.45; }
.section-dark .stat-item, .hero-dark .stat-item { border-left-color: var(--teal-500); }
.section-dark .stat-value, .hero-dark .stat-value { color: #fff; }
.section-dark .stat-label, .hero-dark .stat-label { color: #9fb3ca; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover {
  text-decoration: none; border-color: var(--blue-500);
  box-shadow: var(--shadow-card); transform: translateY(-3px);
}
.product-card .pc-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.product-card .pc-role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 0.65rem;
}
.product-card p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.product-card .text-link { margin-top: auto; }

/* Feature rows (icon + copy) */
.feature-list { display: grid; gap: 2rem; }
.feature-item { display: flex; gap: 1.1rem; }
.feature-item .fi-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.feature-item h4 { margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.section-dark .feature-item .fi-icon { background: rgba(127, 183, 240, 0.14); color: #7fb7f0; }
.section-dark .feature-item p { color: #9fb3ca; }

/* ---------- Lifecycle diagram ---------- */
.lifecycle {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem;
  counter-reset: stage;
}
.lifecycle-stage {
  position: relative; counter-increment: stage;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 1.1rem 1rem 1rem;
  text-align: left; font: inherit; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
}
.lifecycle-stage::before {
  content: "0" counter(stage);
  display: block; font-family: var(--font-text); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.lifecycle-stage strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.lifecycle-stage.is-active, .lifecycle-stage:hover {
  border-color: var(--blue-500); box-shadow: var(--shadow-card); background: #fff;
}
.lifecycle-stage.is-active::before { color: var(--blue-600); }
@media (max-width: 1020px) { .lifecycle { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }

.stage-panels { margin-top: 1.75rem; }
.stage-panel {
  display: none; gap: 2.5rem; align-items: start;
  background: var(--paper-tint); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 2rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.stage-panel.is-active { display: grid; }
.stage-panel h3 { margin-bottom: 0.5rem; }
.stage-panel .sp-products { display: flex; flex-direction: column; gap: 0.6rem; }
.sp-product-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 0.6rem 0.9rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.sp-product-chip:hover { border-color: var(--blue-500); text-decoration: none; }
.sp-product-chip svg { color: var(--blue-600); }
@media (max-width: 860px) { .stage-panel { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Split feature sections ---------- */
.split-section {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split-section.flip > .split-media { order: -1; }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section.flip > .split-media { order: 0; }
}

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 12px; align-self: center;
  border-right: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500);
  transform: rotate(45deg) translateY(-2px);
}
.section-dark .checklist li { color: #b4c4d9; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(0, 98, 255, 0.45), transparent 60%),
    var(--navy-800);
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  color: #c3d2e4;
  display: grid; grid-template-columns: minmax(0, 7fr) auto;
  gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; color: #b4c4d9; }
.cta-band .hero-ctas { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-ctas { justify-content: flex-start; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 18em; text-wrap: balance; }
.page-hero .lede { margin-top: 0.25rem; }
.page-hero-dark {
  background:
    radial-gradient(1000px 480px at 85% -20%, rgba(0, 98, 255, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 140%);
  color: #c3d2e4;
}
.page-hero-dark h1 { color: #fff; }

/* Product hero with app screenshot */
.product-hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.ph-shot .shot-frame {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.ph-shot .shot-frame.device { max-width: 290px; margin-inline: auto; }
@media (max-width: 960px) {
  .product-hero { grid-template-columns: 1fr; }
  .ph-shot { max-width: 480px; }
}

.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.8438rem; color: var(--ink-faint); margin-bottom: 1.75rem;
}
.breadcrumb a { color: inherit; }
.breadcrumb .sep { opacity: 0.5; }
.on-dark .breadcrumb, .page-hero-dark .breadcrumb { color: #8fa3bc; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: #9fb3ca;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem; padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid.five-col { grid-template-columns: minmax(0, 3.5fr) repeat(4, minmax(0, 2.2fr)); gap: 2.25rem; }
.footer-brand .brand-name { color: #fff; }
.footer-motto {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; color: #fff;
  margin: 1.25rem 0 0;
}
.footer-brand p { margin-top: 1rem; max-width: 26rem; line-height: 1.6; }
.site-footer h4 {
  color: #fff; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.site-footer ul a { color: #9fb3ca; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: 0.8125rem; color: #7288a3;
}
.footer-legal a { color: inherit; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
[data-reveal="4"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Journey timeline (ecosystem page) ---------- */
.journey { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.journey::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 27px;
  width: 2px; background: linear-gradient(var(--blue-600), var(--teal-ink));
  opacity: 0.25;
}
.journey-item {
  position: relative; display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.journey-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue-600);
  font-family: var(--font-text); font-weight: 700; font-size: 1.05rem;
  color: var(--navy-800);
}
.journey-body {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem;
}
.journey-body .jb-aside {
  border-left: 1px solid var(--line-soft); padding-left: 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.jb-aside-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem;
}
.journey-stage-label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.5rem;
}
.journey-outcome {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem; color: var(--ink-soft);
}
.journey-outcome strong { color: var(--navy-800); }
@media (max-width: 860px) {
  .journey::before { left: 21px; }
  .journey-item { grid-template-columns: 44px minmax(0, 1fr); }
  .journey-num { width: 44px; height: 44px; font-size: 0.95rem; }
  .journey-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .journey-body .jb-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
}

/* ---------- Lifecycle fit strip (product pages) ---------- */
.fit-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem;
  counter-reset: fit;
}
.fit-step {
  counter-increment: fit;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-faint); background: var(--paper);
}
.fit-step::before {
  content: "0" counter(fit);
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 0.35rem; opacity: 0.7;
}
.fit-step.is-fit {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
  font-weight: 600;
}
.fit-step.is-fit::before { color: var(--teal-500); opacity: 1; }
@media (max-width: 900px) { .fit-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fit-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms (get-started) ---------- */
.form-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem; align-items: start;
  margin-top: calc(-1 * clamp(2rem, 4vw, 2.5rem));
}
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7em 0.9em; background: #fff;
  transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8125rem; color: var(--ink-faint); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Photos & video ---------- */
.photo-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-square { aspect-ratio: 1; }

/* card with photo header (who-we-serve, homepage audience tiles) */
.product-card .pc-photo {
  margin: -1.75rem -1.75rem 1.4rem;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-card .pc-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .pc-photo img { transform: scale(1.04); }

/* editorial overlap: photo with a floating quote/stat card */
.photo-overlap { position: relative; }
.photo-overlap .po-card {
  position: absolute; left: clamp(-2.5rem, -4vw, -1rem); bottom: 2rem;
  max-width: 21rem;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 1.4rem 1.6rem;
}
.photo-overlap .po-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.05rem;
  line-height: 1.5; color: var(--navy-800);
}
.photo-overlap .po-card cite {
  display: block; margin-top: 0.6rem; font-style: normal;
  font-size: 0.8125rem; color: var(--ink-faint);
}
@media (max-width: 900px) {
  .photo-overlap .po-card { position: static; margin: -3rem 1rem 0 auto; }
}

/* responsive video embed */
.video-embed {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-lift);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-caption {
  margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-faint);
}
.on-dark .video-caption { color: #8fa3bc; }

/* hero with photographic background (navy duotone wash for brand consistency) */
.hero-photo {
  position: relative; overflow: hidden; color: #c3d2e4;
}
.hero-photo .hp-img {
  position: absolute; inset: 0;
}
.hero-photo .hp-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo .hp-img video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .hp-img video { display: none; }
}
.hero-photo .hp-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 24, 60, 0.94) 0%, rgba(3, 24, 60, 0.82) 42%, rgba(0, 45, 97, 0.45) 100%),
    linear-gradient(rgba(0, 53, 142, 0.18), rgba(0, 53, 142, 0.18));
}
.hero-photo > .container { position: relative; }
/* softer duotone variant for hero photos with a subject on the text side */
.hero-photo .hp-img.hp-soft::after {
  background:
    linear-gradient(100deg, rgba(3, 24, 60, 0.82) 0%, rgba(3, 24, 60, 0.6) 45%, rgba(0, 45, 97, 0.35) 100%),
    linear-gradient(rgba(0, 53, 142, 0.15), rgba(0, 53, 142, 0.15));
}

/* ---------- Screenshot gallery (product pages) ---------- */
.shot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: start;
}
.shot-grid.two-up { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .shot-grid, .shot-grid.two-up { grid-template-columns: 1fr; } }
.shot-figure { margin: 0; }
.shot-frame {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.shot-frame.browser::before {
  content: ""; display: block; height: 26px;
  background: var(--paper-tint); border-bottom: 1px solid var(--line-soft);
  background-image: radial-gradient(circle 4px at 16px 13px, #d40019aa 4px, transparent 5px),
    radial-gradient(circle 4px at 32px 13px, #ffc600aa 4px, transparent 5px),
    radial-gradient(circle 4px at 48px 13px, #6abf4baa 4px, transparent 5px);
}
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-frame.device {
  border-radius: 22px; border-width: 6px; border-color: var(--navy-950);
  max-width: 260px; margin-inline: auto;
}
.shot-caption {
  margin-top: 0.8rem; font-size: 0.875rem; color: var(--ink-faint); line-height: 1.5;
}

/* ---------- Pricing (product pages) ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-cards.two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: start; }
@media (max-width: 900px) { .price-cards, .price-cards.two { grid-template-columns: 1fr; } }
.price-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem;
}
.price-card .pc-plan {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.9rem;
}
.price-amount {
  font-family: var(--font-text); font-weight: 700;
  font-size: 2.4rem; letter-spacing: -0.02em; color: var(--navy-800); line-height: 1;
}
.price-amount .pa-term { font-size: 0.9375rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.price-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.6rem; }
.price-card .checklist { margin: 1.25rem 0 1.5rem; font-size: 0.9375rem; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card.featured { border-color: var(--navy-800); border-width: 2px; position: relative; }
.price-card.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 1.6rem;
  background: var(--navy-800); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25em 0.9em; border-radius: 100px;
}
.price-custom {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
}
.price-custom .hero-ctas { justify-content: flex-end; }
@media (max-width: 860px) {
  .price-custom { grid-template-columns: 1fr; }
  .price-custom .hero-ctas { justify-content: flex-start; }
}
.price-fineprint { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--ink-faint); }

/* ---------- Misc ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center;
  opacity: 0.75;
}
.logo-strip span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.01em; color: var(--ink-faint);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-tint); border: 1px solid var(--line-soft);
  border-radius: 100px; padding: 0.3em 0.9em;
}
.on-dark .pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #b4c4d9; }



/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 {
  /* Verisk family signature: Martel serif display headings */
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h3, h4 {
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); line-height: 1.3; }
h4 { font-size: var(--size-h4); line-height: 1.35; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding-inline: var(--gutter); }

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

/* ---------- Type utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-text);
  font-size: var(--size-eyebrow);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; opacity: 0.85;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--teal-500); }
.lede { font-size: var(--size-body-lg); line-height: 1.65; color: var(--ink-soft); max-width: 46rem; }
.on-dark .lede { color: #b7c7de; }

/* Section header: editorial two-column on wide screens */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.split {
  display: grid; gap: 1rem 4rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
}
.section-head.split .lede { margin-bottom: 0.35rem; }
@media (max-width: 860px) {
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--font-text); font-weight: 600; font-size: 0.9375rem;
  padding: 0.78em 1.6em; border-radius: 100px;
  border: 1.5px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.55em 1.25em; font-size: 0.875rem; }
.btn-lg { padding: 0.92em 2em; font-size: 1rem; }

/* Verisk pattern: Globe Blue fill on light bg, teal fill on dark heroes */
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-teal { background: var(--teal-500); color: var(--navy-800); }
.btn-teal:hover { background: var(--teal-100); color: var(--navy-800); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-soft); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,0.32); color: #fff; }
.on-dark .btn-ghost:hover { border-color: rgba(255,255,255,0.7); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--teal-100); color: var(--navy-800); }

/* Touch devices: hover states stick after a tap — neutralize them */
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn-primary:hover { background: var(--navy-800); }
  .btn-teal:hover { background: var(--teal-500); }
  .btn-light:hover { background: #fff; }
  .btn-ghost:hover { border-color: var(--line); }
  .site-nav > ul > li > a:hover,
  .site-nav > ul > li > button:hover { background: none; }
  .product-card:hover { border-color: var(--line); box-shadow: none; transform: none; }
}
/* CTA buttons in the nav must never take current-page link styling */
.site-nav a.btn.is-current, .site-nav a.btn { color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: 0.9375rem; color: var(--blue-600);
}
.text-link .arrow { transition: transform 0.18s var(--ease); }
.text-link:hover { text-decoration: none; }
.text-link:hover .arrow { transform: translateX(3px); }
.on-dark .text-link { color: var(--teal-500); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 20px -12px rgba(10, 31, 61, 0.18);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: auto; }
.brand-division {
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.015em;
  line-height: 1.25; color: var(--navy-800);
  border-left: 1px solid var(--line); padding-left: 0.75rem;
  max-width: 13em;
}
@media (max-width: 480px) {
  .brand-division { font-size: 0.72rem; max-width: 11em; }
}
.site-nav { display: flex; align-items: center; flex: 1; gap: 1.25rem; min-width: 0; }
.site-nav > ul {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav > ul > li > a,
.site-nav > ul > li > button {
  display: inline-flex; align-items: center; gap: 0.35em;
  padding: 0.5rem 0.55rem; border: 0; background: none;
  font-weight: 500; font-size: 0.9rem; color: var(--ink);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li > button:hover { background: var(--paper-tint); text-decoration: none; }
.site-nav a.is-current { color: var(--blue-600); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-utility { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.nav-utility:hover { color: var(--ink); text-decoration: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > button::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.15s;
}
.nav-dropdown.is-open > button::after { transform: rotate(225deg); margin-top: 3px; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(660px, 92vw);
  background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 1rem; display: grid;
  grid-template-columns: 1fr 1fr; gap: 0.25rem;
  visibility: hidden; opacity: 0; pointer-events: none;
  /* closing: 120ms grace before fading, stays interactive until fully hidden */
  transition: opacity 0.15s var(--ease) 0.12s, visibility 0s linear 0.27s;
}
/* invisible bridge covering the gap between trigger and panel */
.dropdown-panel::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-dropdown.is-open > .dropdown-panel {
  visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s, 0s;
}
@media (hover: hover) {
  .nav-dropdown:hover > .dropdown-panel {
    visibility: visible; opacity: 1; pointer-events: auto; transition-delay: 0s, 0s;
  }
}
/* grouped dropdown: core suite (2-col) + ancillary column */
.dropdown-panel:has(.dd-group) {
  width: min(940px, 94vw);
  grid-template-columns: 1fr 1fr 1fr; gap: 0.25rem 0.75rem;
}
.dd-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem; grid-column: span 2; align-content: start; }
.dd-group.dd-more { grid-template-columns: 1fr; grid-column: span 1; border-left: 1px solid var(--line-soft); padding-left: 0.75rem; }
.dd-head {
  grid-column: 1 / -1;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); padding: 0.35rem 0.8rem 0.45rem;
}
@media (max-width: 1180px) {
  .dd-group, .dd-group.dd-more { grid-template-columns: 1fr; grid-column: auto; border-left: 0; padding-left: 0; }
}

.dropdown-item {
  display: flex; gap: 0.8rem; padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md); text-decoration: none;
}
.dropdown-item:hover { background: var(--paper-tint); text-decoration: none; }
.dropdown-item .di-icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.dropdown-item strong {
  display: block; font-size: 0.9375rem; font-weight: 600; color: var(--ink);
}
.dropdown-item span { display: block; font-size: 0.8125rem; color: var(--ink-faint); line-height: 1.4; }
.dropdown-cta {
  grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.35rem; padding: 0.85rem 0.9rem 0.35rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.875rem; color: var(--ink-soft);
}

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown > button {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.42rem 0.75rem; border: 1.5px solid var(--line); border-radius: 100px;
  background: none; font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.lang-dropdown > button:hover { border-color: var(--ink-soft); color: var(--ink); }
.lang-dropdown > button::after { content: none; }
.lang-panel {
  left: auto; right: 0; transform: none;
  width: 230px; grid-template-columns: 1fr; padding: 0.5rem; gap: 0.1rem;
}
.lang-item {
  display: block; padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--ink); text-decoration: none;
}
.lang-item:hover { background: var(--paper-tint); text-decoration: none; }
.lang-item.is-current { font-weight: 700; color: var(--navy-800); }
.lang-item.is-current::after { content: " ✓"; color: var(--teal-ink); }
@media (max-width: 1180px) {
  .lang-dropdown { align-self: flex-start; }
  .lang-dropdown .lang-panel { position: absolute; top: calc(100% + 8px); left: 0; right: auto; box-shadow: var(--shadow-lift); border: 1px solid var(--line-soft); }
}

/* Mobile nav */
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .header-inner { gap: 1rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 0;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--ink);
    border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* absolute (not fixed): backdrop-filter on the sticky header makes the
     header the containing block for fixed descendants */
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - 72px); z-index: 50;
    background: #fff; overflow-y: auto;
    border-top: 1px solid var(--line-soft);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 3rem;
  }
  .site-nav.is-open { display: flex; }
  body.nav-locked { overflow: hidden; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .site-nav > ul > li > a, .site-nav > ul > li > button {
    width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.05rem;
  }
  .dropdown-panel {
    position: static; transform: none; width: 100%;
    border: 0; box-shadow: none; padding: 0 0 1rem;
    grid-template-columns: 1fr;
    display: none; visibility: visible; opacity: 1;
    pointer-events: auto; transition: none;
  }
  .dropdown-panel::before { content: none; }
  .nav-dropdown.is-open .dropdown-panel { display: grid; }
  .nav-actions {
    margin: 1.25rem 0 0; flex-direction: column; align-items: stretch; gap: 0.9rem;
  }
  .nav-actions .btn { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section-sm { padding-block: var(--space-section-sm); }
/* closing CTA section always follows another section on the same background —
   collapse its top padding so the seam doesn't double up */
main > .section-sm:last-child { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.section-tint { background: var(--paper-tint); }
.section-dark { background: var(--navy-900); color: #cdd9e8; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

/* ---------- Hero (homepage) ---------- */
.hero-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(0, 98, 255, 0.38), transparent 60%),
    radial-gradient(900px 600px at -8% 110%, rgba(110, 239, 255, 0.10), transparent 55%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 130%);
  color: #c3d2e4;
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(900px 620px at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 620px at 70% 20%, #000 0%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 6.5fr) minmax(0, 5.5fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.hero-copy h1 {
  font-size: var(--size-hero); font-weight: 700; color: #fff;
  letter-spacing: -0.008em; line-height: 1.14; margin-bottom: 1.4rem;
  text-wrap: balance;
}
.hero-copy .accent { color: var(--teal-500); }
.hero-copy .lede { margin-bottom: 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 4rem; }
}

/* ---------- Stat band ---------- */
.stat-band { border-block: 1px solid var(--line-soft); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stat-item { border-left: 2px solid var(--blue-600); padding-left: 1.25rem; }
.stat-value {
  font-family: var(--font-text); font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em;
  color: var(--navy-800); line-height: 1.05;
}
.stat-label { font-size: var(--size-small); color: var(--ink-soft); margin-top: 0.45rem; line-height: 1.45; }
.section-dark .stat-item, .hero-dark .stat-item { border-left-color: var(--teal-500); }
.section-dark .stat-value, .hero-dark .stat-value { color: #fff; }
.section-dark .stat-label, .hero-dark .stat-label { color: #9fb3ca; }
@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
}

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  text-decoration: none; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover {
  text-decoration: none; border-color: var(--blue-500);
  box-shadow: var(--shadow-card); transform: translateY(-3px);
}
.product-card .pc-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.product-card .pc-role {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 0.65rem;
}
.product-card p { font-size: 0.9375rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.product-card .text-link { margin-top: auto; }

/* Feature rows (icon + copy) */
.feature-list { display: grid; gap: 2rem; }
.feature-item { display: flex; gap: 1.1rem; }
.feature-item .fi-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-600);
}
.feature-item h4 { margin-bottom: 0.3rem; }
.feature-item p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.section-dark .feature-item .fi-icon { background: rgba(127, 183, 240, 0.14); color: #7fb7f0; }
.section-dark .feature-item p { color: #9fb3ca; }

/* ---------- Lifecycle diagram ---------- */
.lifecycle {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem;
  counter-reset: stage;
}
.lifecycle-stage {
  position: relative; counter-increment: stage;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 1.1rem 1rem 1rem;
  text-align: left; font: inherit; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  cursor: pointer;
}
.lifecycle-stage::before {
  content: "0" counter(stage);
  display: block; font-family: var(--font-text); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
.lifecycle-stage strong { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.lifecycle-stage.is-active, .lifecycle-stage:hover {
  border-color: var(--blue-500); box-shadow: var(--shadow-card); background: #fff;
}
.lifecycle-stage.is-active::before { color: var(--blue-600); }
@media (max-width: 1020px) { .lifecycle { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .lifecycle { grid-template-columns: repeat(2, 1fr); } }

.stage-panels { margin-top: 1.75rem; }
.stage-panel {
  display: none; gap: 2.5rem; align-items: start;
  background: var(--paper-tint); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 2rem;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.stage-panel.is-active { display: grid; }
.stage-panel h3 { margin-bottom: 0.5rem; }
.stage-panel .sp-products { display: flex; flex-direction: column; gap: 0.6rem; }
.sp-product-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 0.6rem 0.9rem;
  font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.sp-product-chip:hover { border-color: var(--blue-500); text-decoration: none; }
.sp-product-chip svg { color: var(--blue-600); }
@media (max-width: 860px) { .stage-panel { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Split feature sections ---------- */
.split-section {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split-section.flip > .split-media { order: -1; }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section.flip > .split-media { order: 0; }
}

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 12px; align-self: center;
  border-right: 2px solid var(--teal-500); border-bottom: 2px solid var(--teal-500);
  transform: rotate(45deg) translateY(-2px);
}
.section-dark .checklist li { color: #b4c4d9; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(0, 98, 255, 0.45), transparent 60%),
    var(--navy-800);
  border-radius: var(--radius-lg);
  padding: clamp(2.75rem, 6vw, 4.5rem);
  color: #c3d2e4;
  display: grid; grid-template-columns: minmax(0, 7fr) auto;
  gap: 2rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { margin: 0; color: #b4c4d9; }
.cta-band .hero-ctas { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-ctas { justify-content: flex-start; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { max-width: 18em; text-wrap: balance; }
.page-hero .lede { margin-top: 0.25rem; }
.page-hero-dark {
  background:
    radial-gradient(1000px 480px at 85% -20%, rgba(0, 98, 255, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 140%);
  color: #c3d2e4;
}
.page-hero-dark h1 { color: #fff; }

/* Product hero with app screenshot */
.product-hero {
  display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.ph-shot .shot-frame {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.35), 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}
.ph-shot .shot-frame.device { max-width: 290px; margin-inline: auto; }
@media (max-width: 960px) {
  .product-hero { grid-template-columns: 1fr; }
  .ph-shot { max-width: 480px; }
}

.breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-size: 0.8438rem; color: var(--ink-faint); margin-bottom: 1.75rem;
}
.breadcrumb a { color: inherit; }
.breadcrumb .sep { opacity: 0.5; }
.on-dark .breadcrumb, .page-hero-dark .breadcrumb { color: #8fa3bc; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: #9fb3ca;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; margin-top: 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: 2.5rem; padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid.five-col { grid-template-columns: minmax(0, 3.5fr) repeat(4, minmax(0, 2.2fr)); gap: 2.25rem; }
.footer-brand .brand-name { color: #fff; }
.footer-motto {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400; color: #fff;
  margin: 1.25rem 0 0;
}
.footer-brand p { margin-top: 1rem; max-width: 26rem; line-height: 1.6; }
.site-footer h4 {
  color: #fff; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.site-footer ul a { color: #9fb3ca; }
.site-footer ul a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: 0.8125rem; color: #7288a3;
}
.footer-legal a { color: inherit; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
[data-reveal="4"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Journey timeline (ecosystem page) ---------- */
.journey { position: relative; display: grid; gap: clamp(2rem, 4vw, 3rem); }
.journey::before {
  content: ""; position: absolute; top: 12px; bottom: 12px; left: 27px;
  width: 2px; background: linear-gradient(var(--blue-600), var(--teal-ink));
  opacity: 0.25;
}
.journey-item {
  position: relative; display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.journey-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue-600);
  font-family: var(--font-text); font-weight: 700; font-size: 1.05rem;
  color: var(--navy-800);
}
.journey-body {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem;
}
.journey-body .jb-aside {
  border-left: 1px solid var(--line-soft); padding-left: 2rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.jb-aside-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.2rem;
}
.journey-stage-label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.5rem;
}
.journey-outcome {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem; color: var(--ink-soft);
}
.journey-outcome strong { color: var(--navy-800); }
@media (max-width: 860px) {
  .journey::before { left: 21px; }
  .journey-item { grid-template-columns: 44px minmax(0, 1fr); }
  .journey-num { width: 44px; height: 44px; font-size: 0.95rem; }
  .journey-body { grid-template-columns: 1fr; gap: 1.25rem; }
  .journey-body .jb-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.25rem; }
}

/* ---------- Lifecycle fit strip (product pages) ---------- */
.fit-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem;
  counter-reset: fit;
}
.fit-step {
  counter-increment: fit;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem; font-size: 0.875rem; font-weight: 500;
  color: var(--ink-faint); background: var(--paper);
}
.fit-step::before {
  content: "0" counter(fit);
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; margin-bottom: 0.35rem; opacity: 0.7;
}
.fit-step.is-fit {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
  font-weight: 600;
}
.fit-step.is-fit::before { color: var(--teal-500); opacity: 1; }
@media (max-width: 900px) { .fit-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .fit-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms (get-started) ---------- */
.form-layout {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2.5rem; align-items: start;
  margin-top: calc(-1 * clamp(2rem, 4vw, 2.5rem));
}
@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.span-2 { grid-column: 1 / -1; }
.form-field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.7em 0.9em; background: #fff;
  transition: border-color 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-600);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 0.8125rem; color: var(--ink-faint); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Photos & video ---------- */
.photo-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-square { aspect-ratio: 1; }

/* card with photo header (who-we-serve, homepage audience tiles) */
.product-card .pc-photo {
  margin: -1.75rem -1.75rem 1.4rem;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.product-card .pc-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .pc-photo img { transform: scale(1.04); }

/* editorial overlap: photo with a floating quote/stat card */
.photo-overlap { position: relative; }
.photo-overlap .po-card {
  position: absolute; left: clamp(-2.5rem, -4vw, -1rem); bottom: 2rem;
  max-width: 21rem;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 1.4rem 1.6rem;
}
.photo-overlap .po-card blockquote {
  margin: 0; font-family: var(--font-display); font-size: 1.05rem;
  line-height: 1.5; color: var(--navy-800);
}
.photo-overlap .po-card cite {
  display: block; margin-top: 0.6rem; font-style: normal;
  font-size: 0.8125rem; color: var(--ink-faint);
}
@media (max-width: 900px) {
  .photo-overlap .po-card { position: static; margin: -3rem 1rem 0 auto; }
}

/* responsive video embed */
.video-embed {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--navy-950); box-shadow: var(--shadow-lift);
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-caption {
  margin-top: 0.9rem; font-size: 0.875rem; color: var(--ink-faint);
}
.on-dark .video-caption { color: #8fa3bc; }

/* hero with photographic background (navy duotone wash for brand consistency) */
.hero-photo {
  position: relative; overflow: hidden; color: #c3d2e4;
}
.hero-photo .hp-img {
  position: absolute; inset: 0;
}
.hero-photo .hp-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-photo .hp-img video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo .hp-img video { display: none; }
}
.hero-photo .hp-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 24, 60, 0.94) 0%, rgba(3, 24, 60, 0.82) 42%, rgba(0, 45, 97, 0.45) 100%),
    linear-gradient(rgba(0, 53, 142, 0.18), rgba(0, 53, 142, 0.18));
}
.hero-photo > .container { position: relative; }
/* softer duotone variant for hero photos with a subject on the text side */
.hero-photo .hp-img.hp-soft::after {
  background:
    linear-gradient(100deg, rgba(3, 24, 60, 0.82) 0%, rgba(3, 24, 60, 0.6) 45%, rgba(0, 45, 97, 0.35) 100%),
    linear-gradient(rgba(0, 53, 142, 0.15), rgba(0, 53, 142, 0.15));
}

/* ---------- Screenshot gallery (product pages) ---------- */
.shot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: start;
}
.shot-grid.two-up { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .shot-grid, .shot-grid.two-up { grid-template-columns: 1fr; } }
.shot-figure { margin: 0; }
.shot-frame {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.shot-frame.browser::before {
  content: ""; display: block; height: 26px;
  background: var(--paper-tint); border-bottom: 1px solid var(--line-soft);
  background-image: radial-gradient(circle 4px at 16px 13px, #d40019aa 4px, transparent 5px),
    radial-gradient(circle 4px at 32px 13px, #ffc600aa 4px, transparent 5px),
    radial-gradient(circle 4px at 48px 13px, #6abf4baa 4px, transparent 5px);
}
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-frame.device {
  border-radius: 22px; border-width: 6px; border-color: var(--navy-950);
  max-width: 260px; margin-inline: auto;
}
.shot-caption {
  margin-top: 0.8rem; font-size: 0.875rem; color: var(--ink-faint); line-height: 1.5;
}

/* ---------- Pricing (product pages) ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price-cards.two { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: start; }
@media (max-width: 900px) { .price-cards, .price-cards.two { grid-template-columns: 1fr; } }
.price-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.9rem;
}
.price-card .pc-plan {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 0.9rem;
}
.price-amount {
  font-family: var(--font-text); font-weight: 700;
  font-size: 2.4rem; letter-spacing: -0.02em; color: var(--navy-800); line-height: 1;
}
.price-amount .pa-term { font-size: 0.9375rem; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.price-note { font-size: 0.875rem; color: var(--ink-soft); margin-top: 0.6rem; }
.price-card .checklist { margin: 1.25rem 0 1.5rem; font-size: 0.9375rem; }
.price-card .btn { margin-top: auto; justify-content: center; }
.price-card.featured { border-color: var(--navy-800); border-width: 2px; position: relative; }
.price-card.featured::before {
  content: attr(data-badge); position: absolute; top: -12px; left: 1.6rem;
  background: var(--navy-800); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.25em 0.9em; border-radius: 100px;
}
.price-custom {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 2rem; align-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.5rem);
}
.price-custom .hero-ctas { justify-content: flex-end; }
@media (max-width: 860px) {
  .price-custom { grid-template-columns: 1fr; }
  .price-custom .hero-ctas { justify-content: flex-start; }
}
.price-fineprint { margin-top: 1.25rem; font-size: 0.8125rem; color: var(--ink-faint); }

/* ---------- Misc ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: center;
  opacity: 0.75;
}
.logo-strip span {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.01em; color: var(--ink-faint);
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  font-size: 0.8125rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper-tint); border: 1px solid var(--line-soft);
  border-radius: 100px; padding: 0.3em 0.9em;
}
.on-dark .pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #b4c4d9; }

/* ── About: milestones timeline (horizontal) ─────────────── */
.timeline-h {
  position: relative; display: grid;
  grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr;
  gap: 0 1.1rem; margin-top: 1rem;
}
.timeline-h::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; transform: translateY(-50%); border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), #6EEFFF);
  opacity: 0.35;
}
.tlh-item { position: relative; display: flex; flex-direction: column; }
.tlh-item:nth-child(odd) { grid-row: 1; justify-content: flex-end; padding-bottom: 2.6rem; }
.tlh-item:nth-child(even) { grid-row: 2; justify-content: flex-start; padding-top: 2.6rem; }
.tlh-item::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; height: 1.7rem; background: var(--blue-600); opacity: 0.3;
}
.tlh-item:nth-child(odd)::after { bottom: 0.9rem; }
.tlh-item:nth-child(even)::after { top: 0.9rem; }
.tlh-node {
  position: absolute; left: 50%; z-index: 1;
  background: #fff; border: 2px solid var(--blue-600); color: var(--globe-blue);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.02em;
  border-radius: 100px; padding: 0.24rem 0.8rem; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(3, 24, 60, 0.12);
}
.tlh-item:nth-child(odd) .tlh-node { bottom: 0; transform: translate(-50%, 50%); }
.tlh-item:nth-child(even) .tlh-node { top: 0; transform: translate(-50%, -50%); }
.tlh-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 14px -8px rgba(3, 24, 60, 0.14);
}
.tlh-card h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.tlh-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 900px) {
  .timeline-h { grid-template-columns: 1fr; grid-template-rows: none; }
  .timeline-h::before {
    left: 1.1rem; right: auto; top: 10px; bottom: 10px; height: auto; width: 2px;
    transform: none; background: linear-gradient(180deg, var(--blue-600), #6EEFFF);
  }
  .tlh-item, .tlh-item:nth-child(odd), .tlh-item:nth-child(even) {
    grid-row: auto; grid-column: 1 !important;
    padding: 1.1rem 0 1.1rem 3.4rem; justify-content: flex-start;
  }
  .tlh-item::after { display: none; }
  .tlh-item:nth-child(odd) .tlh-node, .tlh-item:nth-child(even) .tlh-node {
    left: 1.1rem; top: 1.4rem; bottom: auto; transform: translateX(-50%);
  }
}

/* ── About: interactive milestones timeline ──────────────── */
.tlx { margin-top: 0.5rem; }
.tlx-svg { display: block; width: 100%; height: auto; overflow: visible; }
.tlx-base { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 2.5; }
.tlx-progress {
  fill: none; stroke: url(#tlx-grad); stroke-width: 3; stroke-linecap: round;
  filter: url(#tlx-glow);
  transition: stroke-dashoffset 0.55s var(--ease);
}
.tlx-flow {
  fill: none; stroke: #6EEFFF; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 2 26; opacity: 0.5;
  animation: tlxFlow 9s linear infinite;
}
@keyframes tlxFlow { to { stroke-dashoffset: -560; } }
.tlx-node { cursor: pointer; outline: none; }
.tlx-halo {
  fill: #6EEFFF; opacity: 0; transform-origin: center; transform-box: fill-box;
  transition: opacity 0.3s var(--ease);
}
.tlx-dot {
  fill: #0A2A5E; stroke: rgba(110,239,255,0.55); stroke-width: 2;
  transition: fill 0.25s var(--ease), stroke 0.25s var(--ease), r 0.25s var(--ease);
}
.tlx-ic { color: rgba(255,255,255,0.75); pointer-events: none; transition: color 0.25s var(--ease); }
.tlx-year {
  fill: rgba(255,255,255,0.65); font-size: 15px; font-weight: 700; letter-spacing: 0.03em;
  transition: fill 0.25s var(--ease);
}
.tlx-node:hover .tlx-dot, .tlx-node:focus-visible .tlx-dot, .tlx-node.is-active .tlx-dot {
  fill: #6EEFFF; stroke: #6EEFFF; r: 18;
}
.tlx-node:hover .tlx-ic, .tlx-node:focus-visible .tlx-ic, .tlx-node.is-active .tlx-ic { color: #03183C; }
.tlx-node:hover .tlx-year, .tlx-node:focus-visible .tlx-year, .tlx-node.is-active .tlx-year { fill: #6EEFFF; }
.tlx-node.is-active .tlx-halo { opacity: 0.16; }
.tlx-node:focus-visible .tlx-dot { stroke: #fff; }
.tlx-details { position: relative; min-height: 9.5rem; margin-top: 0.75rem; }
.tlx-detail {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: auto 1fr; gap: 1.75rem; align-items: start;
  max-width: 44rem; margin: 0 auto;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.tlx-detail.is-active { opacity: 1; transform: none; pointer-events: auto; }
.tlx-detail-year {
  font-family: Martel, serif; font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: #6EEFFF; min-width: 5.5rem;
}
.tlx-detail h3 { color: #fff; margin: 0 0 0.45rem; }
.tlx-detail p { margin: 0; color: rgba(255,255,255,0.78); max-width: 34rem; }
@media (max-width: 760px) {
  .tlx-svg { display: none; }
  .tlx-details { min-height: 0; }
  .tlx-detail {
    position: static; opacity: 1; transform: none; pointer-events: auto;
    grid-template-columns: auto 1fr; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .tlx-detail:last-child { border-bottom: 0; }
  .tlx-detail-year { font-size: 1.6rem; min-width: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tlx-flow { animation: none; }
  .tlx-progress, .tlx-detail, .tlx-dot { transition: none; }
}

/* ---------- Privacy consent ---------- */
.consent-layer[hidden],
.consent-summary[hidden],
.consent-settings[hidden],
.consent-revisit[hidden],
.consent-close[hidden] {
  display: none !important;
}
.consent-layer {
  position: fixed;
  inset: auto 0 0;
  z-index: 1000;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  pointer-events: none;
}
.consent-banner {
  width: min(1120px, 100%);
  max-height: min(86vh, 720px);
  margin: 0 auto;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(3, 24, 60, 0.24), 0 4px 16px rgba(3, 24, 60, 0.1);
  pointer-events: auto;
}
.consent-summary,
.consent-settings {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  border-radius: var(--radius-lg);
}
.consent-panel-body {
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.consent-copy {
  max-width: 850px;
}
.consent-eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.consent-banner h2 {
  margin-bottom: 0.45rem;
  font-family: var(--font-text);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  letter-spacing: -0.015em;
}
.consent-banner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}
.consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.65rem !important;
  font-size: 0.82rem !important;
}
.consent-links a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}
.consent-footer {
  flex: 0 0 auto;
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  background: var(--paper-tint);
  border-top: 1px solid var(--line-soft);
}
.consent-button {
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid var(--navy-800);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.consent-button-primary {
  color: #fff;
  background: var(--navy-800);
}
.consent-button-primary:hover {
  background: var(--navy-900);
}
.consent-button-secondary {
  color: var(--navy-800);
  background: #fff;
}
.consent-button-secondary:hover {
  background: var(--blue-100);
}
.consent-button:focus-visible,
.consent-close:focus-visible,
.consent-revisit:focus-visible,
.consent-switch input:focus-visible + span {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--navy-800);
}
.consent-settings-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.consent-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}
.consent-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--paper-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.consent-option h3,
.consent-option strong {
  display: block;
  margin: 0 0 0.15rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}
.consent-option p,
.consent-option > span > span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.45;
}
.consent-required {
  color: var(--teal-ink);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.consent-option-toggle {
  cursor: pointer;
}
.consent-switch {
  position: relative;
  display: block;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}
.consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.consent-switch > span {
  position: absolute;
  inset: 0;
  background: #8b99ae;
  border-radius: 100px;
  transition: background 0.18s var(--ease);
}
.consent-switch > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(3, 24, 60, 0.25);
  transition: transform 0.18s var(--ease);
}
.consent-switch input:checked + span {
  background: var(--navy-800);
}
.consent-switch input:checked + span::after {
  transform: translateX(20px);
}
.consent-settings-actions {
  margin: 0;
}
.consent-revisit {
  position: fixed;
  z-index: 900;
  bottom: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  box-shadow: 0 6px 18px rgba(3, 24, 60, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
}
.consent-revisit:hover {
  background: var(--navy-800);
}
@media (max-width: 820px) {
  .consent-actions {
    justify-content: stretch;
  }
  .consent-actions .consent-button {
    flex: 1 1 130px;
  }
}
@media (max-width: 520px) {
  .consent-layer {
    padding: 0.5rem;
  }
  .consent-panel-body {
    padding: 1.1rem;
  }
  .consent-footer {
    padding: 0.85rem 1.1rem;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .consent-summary .consent-button-primary {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .consent-settings-actions {
    display: flex;
  }
  .consent-revisit {
    bottom: 0.6rem;
    left: 0.6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .consent-button,
  .consent-switch > span,
  .consent-switch > span::after {
    transition: none;
  }
}
