/* KK Digital Platforms – site styles
   Plain CSS, no build step. Colours come from the logo:
   navy #0A1C40 (the K) and teal #00C4BC (the chevron). */

:root {
  --navy: #0A1C40;
  --navy-2: #12295A;
  --navy-3: #1C3772;
  --text: #2B3752;
  --muted: #5A6480;
  --bg: #FBF6F0;
  --bg-2: #F4EDE4;
  --surface: #FFFFFF;
  --line: #E7DED3;
  --line-strong: #D8CCBE;
  --teal: #00C4BC;
  --teal-ink: #00756F;     /* teal dark enough for text on light backgrounds */
  --teal-soft: #E0F5F3;
  --on-navy: #C9D3E6;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 64, 0.06);
  --shadow: 0 10px 30px -12px rgba(10, 28, 64, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 28, 64, 0.28);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-x: clip; /* clip keeps the sticky header working */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.55em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 6.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.4rem); letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a {
  color: var(--teal-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--teal); color: var(--navy); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 240, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 246, 240, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(10, 28, 64, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: auto; transition: transform 0.4s var(--ease); }
.brand:hover img { transform: translateX(2px); }

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

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-list a:hover { background: rgba(10, 28, 64, 0.06); }
.nav-list a[aria-current="page"] { color: var(--teal-ink); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.nav-list .nav-cta a {
  margin-left: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
}
.nav-list .nav-cta a:hover { background: var(--navy-3); }
.nav-list .nav-cta a[aria-current="page"] { color: #fff; }
.nav-list .nav-cta a[aria-current="page"]::after { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s linear 0.35s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .js .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
  }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav-list a { display: block; padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .js .nav-list a[aria-current="page"] { background: var(--teal-soft); }
  .js .nav-list a[aria-current="page"]::after { display: none; }
  .js .nav-list .nav-cta a { margin: 10px 0 0; text-align: center; }

  /* Without JavaScript the menu simply wraps under the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding: 12px 0; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 28, 64, 0.6); }
.btn-primary:hover { background: var(--navy-3); color: #fff; box-shadow: 0 14px 28px -12px rgba(10, 28, 64, 0.6); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--surface); }

.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #2ED8D0; color: var(--navy); }

.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; color: var(--teal-ink); transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--teal-ink); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal-ink);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.lead {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.65;
  color: var(--text);
  max-width: 40rem;
}

.muted { color: var(--muted); }

.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-white { background: var(--surface); }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.split-head .section-head { margin-bottom: 0; }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg::before {
  /* fine grid that fades out towards the edges */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 28, 64, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 28, 64, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-teal { width: 420px; height: 420px; right: 4%; top: 4%; background: rgba(0, 196, 188, 0.35); }
.glow-navy { width: 360px; height: 360px; right: 26%; bottom: -10%; background: rgba(28, 55, 114, 0.18); animation-delay: -6s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-40px, 30px, 0) scale(1.1); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero h1 { margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--teal-ink); }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
}
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* Animated logo panel */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}
.hero-panel {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(155deg, var(--navy-2) 0%, var(--navy) 60%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-panel::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  right: -20%;
  top: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 196, 188, 0.35), transparent 65%);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-mark { position: relative; z-index: 1; width: 62%; overflow: visible; }
.hero-mark .m-bar,
.hero-mark .m-arm,
.hero-mark .m-chev { transform-box: fill-box; }

.rings {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rings::before,
.rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.rings::before { inset: -14%; }
.rings::after { inset: 16%; border-color: rgba(0, 196, 188, 0.18); }

.hero-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.hero-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.chip-1 { left: -8%; top: 14%; }
.chip-2 { right: -6%; bottom: 12%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Logo entrance */
.js .hero-mark .m-bar { animation: barIn 0.9s var(--ease) 0.2s both; }
.js .hero-mark .m-arm { animation: armIn 0.9s var(--ease) 0.4s both; }
.js .hero-mark .m-chev { animation: chevIn 1s var(--ease) 0.65s both, chevPulse 4s ease-in-out 2s infinite; }

@keyframes barIn { from { transform: translateY(40%) scaleY(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes armIn { from { transform: translateX(-30%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chevIn { from { transform: translateX(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes chevPulse {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6%); }
}

/* Load-in for hero text */
.js .hero-in > * { animation: fadeUp 0.9s var(--ease) both; }
.js .hero-in > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero-in > *:nth-child(2) { animation-delay: 0.15s; }
.js .hero-in > *:nth-child(3) { animation-delay: 0.25s; }
.js .hero-in > *:nth-child(4) { animation-delay: 0.35s; }
.js .hero-in > *:nth-child(5) { animation-delay: 0.45s; }
.js .hero-visual { animation: fadeScale 1.1s var(--ease) 0.1s both; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeScale { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin: 8px auto 0; max-width: 400px; }
  .chip-1 { left: 0; }
  .chip-2 { right: 0; }
}

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.page-hero .hero-bg::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 85% 30%, #000 10%, transparent 70%);
}
.page-hero .glow-teal { width: 360px; height: 360px; right: -60px; top: -80px; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }

.page-hero-chevron {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  top: 50%;
  width: clamp(120px, 18vw, 220px);
  transform: translateY(-50%);
  opacity: 0.9;
  z-index: -1;
}
.js .page-hero-chevron polygon { animation: chevIn 1.1s var(--ease) 0.3s both; transform-box: fill-box; }
.js .page-hero-chevron polygon:last-child { animation-delay: 0.45s; }

@media (max-width: 760px) {
  .page-hero-chevron { opacity: 0.12; right: -30px; }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Grids and cards ---------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--navy-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-hover:hover::before { transform: scaleX(1); }
.card p:last-child { margin-bottom: 0; }
.card .card-foot { margin-top: auto; padding-top: 24px; }
.card h3 { margin-bottom: 0.5em; }

.icon-box {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--teal);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.icon-box svg { width: 26px; height: 26px; }
.card-hover:hover .icon-box { transform: rotate(-6deg) scale(1.06); }
.icon-box.soft { background: var(--teal-soft); color: var(--teal-ink); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.live::before { animation: pulseDot 2s ease-out infinite; }
.badge.neutral { background: #EFE7DC; color: #5A5446; }

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0, 117, 111, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(0, 117, 111, 0); }
}

.card-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--line-strong);
}

/* ---------- Feature (product) block ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.feature-body { padding: clamp(28px, 5vw, 64px); }
.feature-body h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
.feature-visual {
  position: relative;
  min-height: 360px;
  background: linear-gradient(160deg, var(--navy-2), var(--navy));
  overflow: hidden;
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-visual { min-height: 260px; order: -1; }
}

/* abstract "flow" illustration: three rows that slide like work moving through stages */
.flow {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px clamp(24px, 5vw, 56px);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.flow-row:nth-child(2) { margin-left: 8%; }
.flow-row:nth-child(3) { margin-left: 16%; }
.flow-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); }
.flow-line { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); position: relative; overflow: hidden; }
.flow-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(0, 196, 188, 0.9), transparent);
  animation: sweep 3.2s ease-in-out infinite;
}
.flow-row:nth-child(2) .flow-line::after { animation-delay: 0.5s; }
.flow-row:nth-child(3) .flow-line::after { animation-delay: 1s; }
.flow-tag { flex: none; width: 52px; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.28); }

@keyframes sweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300756F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Steps / process ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 27px;
  height: 2px;
  background: var(--line-strong);
}
.steps::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 27px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy-3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.2s;
}
.steps.is-visible::after { transform: scaleX(1); }
html:not(.js) .steps::after { transform: scaleX(1); }

.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.steps li:hover::before { background: var(--navy); color: var(--teal); }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before, .steps::after {
    left: 27px; right: auto; top: 28px; bottom: 28px;
    width: 2px; height: auto;
  }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-visible::after { transform: scaleY(1); }
  html:not(.js) .steps::after { transform: scaleY(1); }
  .steps li { padding-left: 80px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Split content ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.split.center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 860px) { .sticky-col { position: static; } }

.prose p { font-size: 1.08rem; }
.prose p.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: var(--navy); }

/* ---------- Pill list (platforms) ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ---------- Company details ---------- */

.details { margin: 0; }
.details > div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.details > div:first-child { padding-top: 0; }
.details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.details dt { color: var(--muted); font-weight: 500; }
.details dd { margin: 0; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .details > div { grid-template-columns: 1fr; } }

/* ---------- Navy band / CTA ---------- */

.band {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  isolation: isolate;
}
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--teal); }
.band a:not(.btn) { color: var(--teal); }
.band a:not(.btn):hover { color: #fff; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.band .glow-teal { right: -120px; top: -160px; opacity: 0.45; z-index: -1; }

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 32px 64px;
}
.cta h2 { margin-bottom: 0.3em; }
.cta p { font-size: 1.12rem; margin: 0; max-width: 38rem; }
.cta .btn-row { margin-top: 0; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

.band-chevrons {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 320px;
  opacity: 0.08;
  z-index: -1;
}

/* ---------- Values ---------- */

.value {
  padding-top: 28px;
  border-top: 2px solid var(--navy);
}
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); margin: 0; }
.band .value { border-top-color: var(--teal); }
.band .value p { color: var(--on-navy); }

/* ---------- Contact ---------- */

.contact-card {
  display: grid;
  gap: 0;
  padding: 0;
}
.contact-row {
  display: flex;
  gap: 20px;
  padding: 28px clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon-box { flex: none; margin: 0; width: 48px; height: 48px; }
.contact-row .icon-box svg { width: 22px; height: 22px; }
.contact-row .label { display: block; color: var(--muted); font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.contact-row .value-text { color: var(--navy); font-size: 1.12rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-row address { font-style: normal; color: var(--navy); font-weight: 500; line-height: 1.6; }
.contact-row a { text-decoration: none; }
.contact-row a:hover { text-decoration: underline; }

.email-big {
  display: inline-block;
  font-size: clamp(1.25rem, 4.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  background-image: linear-gradient(var(--teal), var(--teal));
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.5s var(--ease);
  overflow-wrap: anywhere;
}
.email-big:hover { background-size: 100% 3px; color: var(--navy); }

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--teal-soft);
  color: var(--navy);
  font-weight: 500;
}
.note svg { flex: none; width: 22px; height: 22px; color: var(--teal-ink); margin-top: 2px; }

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc-title { font-weight: 700; color: var(--navy); margin: 0 0 12px; font-size: 0.95rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.toc a:hover { color: var(--navy); background: var(--bg); }
.toc a.is-active { color: var(--navy); border-left-color: var(--teal); background: var(--teal-soft); font-weight: 600; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  margin-top: 2.2em;
  padding-top: 0.2em;
}
.legal-body h2:first-of-type { margin-top: 1.2em; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.8em; }
.legal-body ul { padding-left: 1.25em; margin: 0 0 1em; }
.legal-body li { margin-bottom: 0.5em; }
.legal-body li::marker { color: var(--teal-ink); }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

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

.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(56px, 8vw, 88px) 0 32px;
  font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand p { max-width: 26rem; margin: 0 0 16px; }
.footer-brand address { font-style: normal; line-height: 1.6; color: var(--on-navy); }
.footer-col h2 {
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--on-navy); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 28px;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.error-page .code {
  display: block;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--navy);
  margin-bottom: 16px;
}
.error-page .code span { color: var(--teal); }
.error-page .lead { margin: 0 auto; }
.error-page .btn-row { justify-content: center; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

a.card { color: inherit; text-decoration: none; }
a.card:hover .link-arrow { color: var(--teal-ink); }
a.card:hover .link-arrow svg { transform: translateX(4px); }
