/* Kompentra marketing site — design tokens from Corporate Identity &
   Brand Guidelines v1.0 (Sept 2026). */
:root {
  --navy: #082B57;
  --navy-dark: #061f3f;
  --blue: #087FEA;
  --green: #35A853;
  --teal: #00A6A6;
  --light-blue: #EAF5FF;
  --light-green: #EAF7EE;
  --text: #1F2937;
  --muted: #6B7280;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(8, 43, 87, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 43, 87, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 16px; color: var(--text); }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(8,127,234,0.32); }
.btn-primary:hover { background: #0670cc; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid (not translucent+blurred) on purpose: backdrop-filter on this
     element would establish a containing block for its position:fixed
     mobile-nav child, trapping that overlay inside the header's own
     (short) box instead of the viewport. */
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
}
.main-nav a:hover { color: var(--blue); text-decoration: none; }
.main-nav a.active { color: var(--blue); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .main-nav { position: fixed; inset: 66px 0 0 0; background: #fff; flex-direction: column;
    align-items: flex-start; padding: 24px; gap: 20px; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 18px; }
  .header-cta .btn-outline { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0a3a73 55%, #0a4a8f 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(53,168,83,0.28), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; position: relative; }
.hero-tag { color: var(--light-blue); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lede { color: #cfe3f7; font-size: 19px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-flow {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.flow-steps { display: flex; flex-direction: column; gap: 0; }
.flow-step {
  display: flex; align-items: center; gap: 14px; padding: 11px 4px; color: #fff;
  font-size: 14.5px; font-weight: 600;
}
.flow-step .dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
}
.flow-arrow { text-align: center; color: rgba(255,255,255,0.4); font-size: 14px; padding-left: 15px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-tint { background: var(--light-blue); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cfe3f7; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 22px; color: #fff;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

/* pillar icon backgrounds cycling through brand colours */
.bg-blue { background: var(--blue); }
.bg-green { background: var(--green); }
.bg-teal { background: var(--teal); }
.bg-navy { background: var(--navy); }

/* ---------- Pillars strip ---------- */
.pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.pillar {
  text-align: center; padding: 28px 16px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
}
.pillar .num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 10px; }
.pillar h4 { margin-bottom: 6px; }
.pillar p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Table styling (problems, before/after, pricing) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table.kx-table { width: 100%; border-collapse: collapse; min-width: 560px; }
table.kx-table th {
  background: var(--navy); color: #fff; text-align: left; padding: 16px 20px;
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
}
table.kx-table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
table.kx-table tr:last-child td { border-bottom: none; }
table.kx-table tr:nth-child(even) td { background: #FAFCFE; }

/* ---------- Before / after ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--radius); padding: 28px; }
.compare-before { background: #FFF5F0; border: 1px solid #FAD9C6; }
.compare-after { background: var(--light-green); border: 1px solid #bfe6c9; }
.compare-col h4 { margin-bottom: 18px; }
.compare-item { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14.5px; border-bottom: 1px dashed rgba(0,0,0,0.08); }
.compare-item:last-child { border-bottom: none; }
.compare-mark { flex: none; font-weight: 700; }
.compare-before .compare-mark { color: #c2410c; }
.compare-after .compare-mark { color: var(--green); }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------- Operating model flow (horizontal, for Home/Features pages) ---------- */
.op-flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.op-node {
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 12px 18px; font-weight: 600; font-size: 14px; color: var(--navy);
  box-shadow: var(--shadow);
}
.op-arrow { color: var(--teal); font-size: 18px; font-weight: 700; }
@media (max-width: 760px) { .op-flow { flex-direction: column; } .op-arrow { transform: rotate(90deg); } }

/* ---------- Status pill demo (Skills Matrix illustration) ---------- */
.status-demo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.status-pill { text-align: center; padding: 14px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }
.status-current { background: var(--light-green); color: #1c7a37; }
.status-expiring { background: #FEF3E2; color: #92610a; }
.status-expired { background: #FDECEC; color: #b3261e; }
.status-progress { background: var(--light-blue); color: #0a5aad; }
.status-none { background: #F1F3F5; color: var(--muted); }
@media (max-width: 640px) { .status-demo { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Logo / industry chips ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 20px; font-size: 14.5px; font-weight: 600; color: var(--navy);
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.price-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: 0.04em;
}
.price-card .pkg-name { font-weight: 700; color: var(--navy); font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; }
.price-card .pkg-users { color: var(--muted); font-size: 13px; margin: 4px 0 18px; }
.price-card .pkg-price { font-size: 26px; font-weight: 800; color: var(--navy); }
.price-card .pkg-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.price-card .pkg-annual { font-size: 13px; color: var(--teal); font-weight: 600; margin: 4px 0 18px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; font-size: 13.5px; color: var(--text); flex: 1; }
.price-card ul li { padding: 6px 0; border-bottom: 1px solid #F1F3F5; }
.price-card ul li:last-child { border-bottom: none; }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.industry-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), #0a4a8f);
  border-radius: 24px;
  padding: 56px;
  text-align: center;
  color: #fff;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe3f7; max-width: 620px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c9dd; padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .wordmark { font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 0.01em; }
.footer-brand .wordmark span { color: var(--green); }
.footer-brand p { color: #9fb2c9; font-size: 14px; max-width: 320px; margin-top: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #b9c9dd; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: #8098b5;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.small-print { font-size: 13px; color: var(--muted); }
.badge-soft {
  display: inline-block; background: var(--light-blue); color: var(--blue);
  font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.divider { height: 1px; background: var(--border); margin: 56px 0; border: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #cfe3f7; max-width: 640px; margin: 0 auto; }

/* ---------- Currency switcher (pricing.html) ---------- */
.currency-switcher { display: inline-flex; align-items: center; gap: 10px; margin: 24px auto 0; padding: 8px 8px 8px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; }
.currency-switcher label { font-size: 13px; font-weight: 600; color: #cfe3f7; letter-spacing: 0.02em; }
.currency-switcher select { appearance: none; -webkit-appearance: none; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; border: none; border-radius: 999px; padding: 7px 32px 7px 16px; cursor: pointer; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23082B57' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.currency-switcher select:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.currency-status { display: block; margin-top: 10px; font-size: 12px; color: #9fc2e8; }
