@import url('/assets/fonts/fonts.css');

/* Count2Know — site.css
   Barlow Condensed / Roboto Condensed (headings, Cyrillic) · Source Sans 3 (body) · DM Mono (labels)
   Iron #0d0e0b · Teal #00BFA5 · Cyan #26D5BC
   Serve with: python3 -m http.server 8000
----------------------------------------------------------------------- */

/* ── 1. Tokens ──────────────────────────────────────────────────────── */
:root {
  /* Brand — iron/teal industrial palette */
  --navy-950: #1a1c16;
  --navy-900: #252821;
  --navy-800: #30332a;
  --navy-700: #2e3129;
  --navy-100: #dedad3;
  --navy-50:  #ede9e2;

  --teal-700: #005c52;
  --teal-600: #00746a;
  --teal-500: #00BFA5;
  --teal-400: #26D5BC;
  --teal-200: #7fd8cc;
  --teal-50:  #E0F7F4;

  /* Neutrals */
  --white:   #faf7f2;
  --bg:      #ede9e2;
  --surface: #f4f1eb;
  --border:  #ccc7be;
  --border-strong: #a8a29a;

  /* Text */
  --ink:     #1a1c17;
  --ink-2:   #5a5750;
  --ink-3:   #67635c;

  /* Semantic */
  --success: #047857;
  --success-bg: #ECFDF5;
  --warn:    #92400E;
  --warn-bg: #FFFBEB;
  --error:   #B91C1C;
  --error-bg:#FEF2F2;
  --info:    #2563EB;
  --info-bg: #EFF6FF;

  /* Spacing */
  --section-y: 96px;
  --container-x: 24px;
  --container-max: 1200px;

  /* Shape — angular, structural */
  --radius-sm: 2px;
  --radius:    3px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  /* Shadow — crisp, structural */
  --shadow-sm:  0 1px 0 rgba(0,0,0,.10);
  --shadow:     0 2px 4px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.05);
  --shadow-md:  0 3px 8px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06);
  --shadow-lg:  0 6px 20px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.07);

  /* Transitions */
  --t-fast: 0.15s ease;
  --t:      0.25s ease;

  /* Nav */
  --nav-h: 64px;
}

/* ── 2. Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* ── 3. Typography ──────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.5vw, 46px); font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; letter-spacing: 0; }
h4 { font-size: 19px; font-weight: 600; letter-spacing: 0; }
h5 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

p { max-width: 62ch; color: var(--ink-2); }
p.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal-500);
  display: block;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--teal-400); }
.eyebrow--muted { color: var(--ink-3); }

code, pre {
  font-family: 'DM Mono', monospace;
  font-size: 0.875em;
  background: var(--navy-50);
  border-radius: var(--radius-sm);
}
code { padding: 2px 6px; }
pre { padding: 20px 24px; overflow-x: auto; }

/* ── 4. Layout ──────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-x);
}

.section {
  padding: var(--section-y) 0;
}
.section--sm   { padding: 64px 0; }
.section--lg   { padding: 120px 0; }
.section--dark { background: var(--navy-950); }
.section--navy { background: var(--navy-900); }
.section--grey { background: var(--bg); }
.section--teal { background: var(--teal-500); }

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}
.section--dark p,
.section--navy p { color: var(--navy-100); }
.section--dark .eyebrow { color: var(--teal-400); }

.section--teal h1,
.section--teal h2,
.section--teal h3 { color: var(--navy-950); }
.section--teal p { color: rgba(13,14,11,0.72); }
.section--teal .eyebrow { color: rgba(13,14,11,0.50); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.flex    { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

.section-header { margin-bottom: 56px; }
.section-header.text-center .eyebrow,
.section-header.text-center h2,
.section-header.text-center p { margin-left: auto; margin-right: auto; }

/* ── 5. Navigation ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-fast);
}

.site-header.scrolled { box-shadow: var(--shadow-md); }


.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 16px;
}
.nav-logo img { height: 32px; width: auto; display: block; }

/* Desktop nav items */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-item { position: relative; }

.nav-link {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); background: var(--bg); text-decoration: none; }
.nav-link.active { color: var(--teal-600); }


.nav-link .chevron {
  width: 14px; height: 14px;
  transition: transform var(--t-fast);
  flex-shrink: 0;
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  transform: translateX(-50%) translateY(-4px);
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-dropdown a:hover { background: var(--bg); color: var(--ink); }
.nav-dropdown .drop-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 12px 14px 4px;
  display: block;
}
.nav-dropdown .drop-label:first-child { padding-top: 4px; }

/* Mega menu */
.mega-menu {
  left: 0;
  transform: none;
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 16px;
}
.mega-menu.cols-3 { grid-template-columns: 1fr 1fr 1fr; min-width: 720px; }

.nav-item:hover .mega-menu {
  transform: translateY(0);
}

.mega-col { padding: 4px 8px; }
.mega-col + .mega-col { border-left: 1px solid var(--border); padding-left: 20px; }

.mega-col .drop-label { padding: 4px 8px 8px; }
.mega-col a {
  padding: 8px;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
}
.mega-col a:hover { background: var(--bg); }

.mega-link-text { flex: 1; }
.mega-link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1.3;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
}
.mega-link-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  display: block;
  margin-top: 1px;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* BG nav — tighten spacing to compensate for wider Cyrillic glyphs */
:lang(bg) .nav-link { letter-spacing: 0.01em; }
:lang(bg) .nav-actions .btn--sm { letter-spacing: 0.01em; padding-left: 12px; padding-right: 12px; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 4px;
}
.lang-opt {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  padding: 2px 4px;
  border-radius: 4px;
  text-decoration: none;
  transition: color var(--t-fast);
}
.lang-opt:hover { color: var(--teal-600); }
.lang-opt--active { color: var(--teal-600); font-weight: 700; }
.lang-sep { font-size: 11px; color: var(--ink-3); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: none;
  margin-left: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--white);
  overflow-y: auto;
  padding: 24px 24px 48px;
  z-index: 999;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 4px;
}
.nav-overlay.open { display: flex; }
.site-header .nav-overlay .nav-link {
  color: var(--ink);
}
.nav-overlay .nav-link {
  font-size: 17px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  justify-content: space-between;
  width: 100%;
}
.nav-overlay .nav-link:hover { background: none; }
.nav-overlay .mobile-drop { display: none; padding: 8px 0 16px; }
.nav-overlay .mobile-drop.open { display: block; }
.nav-overlay .mobile-drop a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav-overlay .nav-actions {
  margin-left: 0;
  margin-top: 20px;
  flex-direction: column;
}
.nav-overlay .nav-actions .btn { width: 100%; justify-content: center; }

/* ── 6. Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--teal-500);
  color: var(--navy-950);
  border-color: var(--teal-500);
}
.btn--primary:hover {
  background: var(--teal-600);
  border-color: var(--teal-600);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,191,165,0.40);
}

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--secondary:hover {
  background: var(--bg);
  border-color: var(--ink-3);
  color: var(--ink);
  text-decoration: none;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--teal-500);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover {
  color: var(--teal-600);
  text-decoration: none;
  gap: 12px;
}

.btn--sm { font-size: 13.5px; padding: 9px 18px; }
.btn--lg { font-size: 17px; padding: 17px 32px; }

.btn--navy {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn--navy:hover {
  background: var(--navy-800);
  border-color: var(--navy-800);
  text-decoration: none;
}

/* ── 7. Hero ────────────────────────────────────────────────────────── */
.site-hero {
  background: var(--navy-950);
  padding: calc(var(--nav-h) + 80px) 0 96px;
  position: relative;
  overflow: hidden;
}

/* Grid-of-dots background */
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,191,165,0.20) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 50%, black 40%, transparent 100%);
}

.site-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

.site-hero h1 { color: var(--white); margin-bottom: 24px; }
.site-hero h1 span { color: var(--teal-400); }
.site-hero .lead { color: var(--navy-100); margin-bottom: 36px; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--navy-100);
}
.hero-trust-item svg { color: var(--teal-400); flex-shrink: 0; }

/* Occupancy widget */
.occupancy-widget {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,191,165,0.14);
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.widget-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.widget-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--teal-400);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.widget-count {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 58px;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.widget-count-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.widget-capacity {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.widget-capacity-fill {
  height: 100%;
  background: var(--teal-500);
  border-radius: 2px;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
}
.widget-capacity-label {
  display: flex;
  justify-content: space-between;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.floor-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}
.floor-dot {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  transition: background 0.6s ease;
}
.floor-dot.occupied { background: var(--teal-500); }
.floor-dot.occupied.recent { background: var(--teal-400); }

.widget-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.widget-metric {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 12px;
}
.widget-metric-value {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 0;
}
.widget-metric-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 2px;
}

/* Inner page hero */
.page-hero {
  background: var(--navy-900);
  padding: calc(var(--nav-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,191,165,0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}
.page-hero .container { position: relative; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-hero h1 { color: var(--white); margin-bottom: 18px; max-width: 14ch; }
.page-hero .lead { color: var(--navy-100); }
.page-hero .hero-actions { margin-top: 36px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.hero-split h1 { max-width: none; }
.hero-sketch { width: 100%; height: auto; }
@media (max-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .hero-sketch { max-width: 420px; } }
.hero-split h1 { overflow-wrap: break-word; }

/* ── 8. Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.card--linked { text-decoration: none; display: block; }
.card--linked:hover { text-decoration: none; }
.card--linked:hover h3, .card--linked:hover h4 { color: var(--teal-600); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card-icon svg { color: var(--teal-600); }

.card h3, .card h4 { margin-bottom: 8px; transition: color var(--t-fast); }
.card p { font-size: 15px; margin: 0; }

.card--dark {
  background: var(--navy-800);
  border-color: rgba(255,255,255,0.08);
}
.card--dark h3, .card--dark h4 { color: var(--white); }
.card--dark p { color: var(--navy-100); }
.card--dark .card-icon { background: rgba(0,191,165,0.15); }

/* Solution card */
.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.solution-card-img {
  height: 160px;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.solution-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,14,11,0.65) 100%);
}
.solution-card-body { padding: 24px; flex: 1; }
.solution-card-body h3 { font-size: 20px; margin-bottom: 8px; }
.solution-card-body p { font-size: 14.5px; }
.solution-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-600);
}

/* Feature card */
.feature-item {
  display: flex;
  gap: 20px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { color: var(--teal-600); }
.feature-icon--dark {
  background: rgba(0,191,165,0.15);
}
.feature-icon--dark svg { color: var(--teal-400); }
.feature-body h4 { margin-bottom: 6px; font-size: 17px; }
.feature-body p { font-size: 15px; }

/* ── 9. Stats ───────────────────────────────────────────────────────── */
.stats-band {
  background: var(--navy-950);
  padding: 64px 0;
}
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 800;
  font-size: 44px;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-value span { color: var(--teal-400); }
.stat-label {
  font-size: 14.5px;
  color: var(--navy-100);
}

/* ── 10. Trust bar / logos ──────────────────────────────────────────── */
.trust-bar {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.trust-bar-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 28px;
  text-align: center;
}
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-item {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ── 11. CTA band ───────────────────────────────────────────────────── */
.cta-band {
  background: var(--teal-500);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { color: var(--navy-950); margin-bottom: 16px; }
.cta-band p { color: rgba(13,14,11,0.72); margin: 0 auto 36px; }
.cta-band .btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-band--dark {
  background: var(--navy-950);
}
.cta-band--dark h2 { color: var(--white); }
.cta-band--dark p { color: var(--navy-100); }

/* ── 12. Pricing ────────────────────────────────────────────────────── */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  font-size: 15px;
  color: var(--ink-2);
}
.toggle-track {
  width: 48px; height: 26px;
  background: var(--teal-500);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-fast);
}
.toggle-track.monthly { background: var(--border-strong); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--t-fast);
}
.toggle-track:not(.monthly) .toggle-thumb { transform: translateX(22px); }
.toggle-save {
  font-size: 12px;
  background: var(--teal-50);
  color: var(--teal-600);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card--featured {
  background: var(--navy-950);
  border-color: var(--teal-500);
  box-shadow: 0 0 0 1px var(--teal-500), var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-500);
  color: var(--navy-950);
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-name {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}
.pricing-card--featured .pricing-name { color: var(--white); }

.pricing-price {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 44px;
  color: var(--ink);
  letter-spacing: 0.01em;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card--featured .pricing-price { color: var(--white); }
.pricing-price sup { font-size: 22px; vertical-align: super; font-weight: 700; }
.pricing-price-period { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.pricing-card--featured .pricing-price-period { color: var(--navy-100); }

.pricing-desc {
  font-size: 14px;
  color: var(--ink-2);
  margin: 12px 0 24px;
  max-width: none;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-card--featured .pricing-desc { color: var(--navy-100); border-bottom-color: rgba(255,255,255,0.1); }

.pricing-features { flex: 1; margin: 0 0 28px; }
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.pricing-card--featured .pricing-feature { color: var(--navy-100); }
.pricing-check { color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.pricing-card--featured .pricing-check { color: var(--teal-400); }

.pricing-cta { margin-top: auto; }

/* ── 13. Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 16px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: 2px solid var(--teal-700);
  outline-offset: 1px;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0,191,165,0.18);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* ── 14. How it works / Steps ───────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--border);
}
.step-item { text-align: center; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 0;
  background: var(--teal-50);
  color: var(--teal-600);
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  border: 2px solid var(--border);
}
.step-item h4 { margin-bottom: 8px; font-size: 17px; }
.step-item p { font-size: 14.5px; margin: 0 auto; }

/* ── 15. Integration logos ──────────────────────────────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.integration-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.integration-chip:hover {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.integration-chip-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── 16. Badges ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warn    { background: var(--warn-bg);    color: var(--warn); }
.badge--error   { background: var(--error-bg);   color: var(--error); }
.badge--info    { background: var(--info-bg);    color: var(--info); }
.badge--teal    { background: var(--teal-50);    color: var(--teal-600); }
.badge--navy    { background: var(--navy-100);   color: var(--navy-800); }

/* Status indicators */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.status-dot--green { background: var(--success); }
.status-dot--yellow { background: var(--warn); }
.status-dot--red { background: var(--error); }

/* ── 17. Testimonial ────────────────────────────────────────────────── */
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.testimonial-quote {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
  max-width: none;
  font-style: italic;
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--teal-600);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.testimonial-role { font-size: 13px; color: var(--ink-3); }

/* Case study card */
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow var(--t), transform var(--t);
}
.case-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.case-card-header {
  background: var(--navy-800);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.case-metric {
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--teal-400);
  letter-spacing: 0.01em;
  line-height: 1;
}
.case-metric-label { font-size: 12px; color: var(--navy-100); }
.case-card-body { padding: 24px; flex: 1; }
.case-card-body h4 { margin-bottom: 8px; }
.case-card-body p { font-size: 14.5px; }
.case-tag {
  display: inline-block;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-600);
  background: var(--teal-50);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* ── 18. Tables ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
th {
  text-align: left;
  padding: 12px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

/* ── 19. Footer ─────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-950);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { display: inline-flex; margin-bottom: 16px; }
.footer-brand .nav-logo img { height: 22px; filter: brightness(0) invert(1); }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 22ch;
}
.footer-heading {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: rgba(255,255,255,0.9); }
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer-legal a:hover { color: rgba(255,255,255,0.9); }

/* ── 20. Check / tick list ──────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.check-tick { color: var(--teal-500); flex-shrink: 0; margin-top: 1px; }
.check-list--light .check-tick { color: var(--teal-400); }
.check-list--light .check-item { color: var(--navy-100); }

/* ── 21. Tabs ───────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
  background: none;
  cursor: pointer;
}
.tab-btn.active { color: var(--teal-600); border-bottom-color: var(--teal-500); }
.tab-btn:hover { color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── 22. Alert / notice ─────────────────────────────────────────────── */
.notice {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: 14.5px;
}
.notice--info   { background: var(--info-bg);    border-color: var(--info);    color: var(--info); }
.notice--success{ background: var(--success-bg); border-color: var(--success); color: var(--success); }
.notice--warn   { background: var(--warn-bg);    border-color: var(--warn);    color: var(--warn); }
.notice--error  { background: var(--error-bg);   border-color: var(--error);   color: var(--error); }
.notice p { color: inherit; max-width: none; margin: 0; font-size: 14.5px; }

/* ── 23. Accordion ──────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: 'Barlow Condensed', 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  transition: background var(--t-fast);
}
.accordion-trigger:hover { background: var(--bg); }
.accordion-trigger .chevron { transition: transform var(--t-fast); flex-shrink: 0; }
.accordion-trigger.open .chevron { transform: rotate(180deg); }
.accordion-body { padding: 0 24px 20px; display: none; }
.accordion-body.open { display: block; }
.accordion-body p { font-size: 15px; margin: 0; }

/* ── 24. Split layout (50/50 image+text) ────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.split--reverse { direction: rtl; }
.split.split--reverse > * { direction: ltr; }
.split-visual {
  background: var(--navy-900);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.split-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,191,165,0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── 25. Utilities ──────────────────────────────────────────────────── */
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* main content offset for fixed nav */
body > main { padding-top: var(--nav-h); }
/* pages with a site-hero or page-hero already account for nav height */
body > main > .site-hero,
body > main > .page-hero { margin-top: calc(-1 * var(--nav-h)); padding-top: calc(var(--nav-h) + 80px); }

/* ── 26. Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-y: 72px; }
  .nav-menu { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-actions { display: none; }
  .nav-overlay .nav-actions { display: flex; }
  .site-hero .container { grid-template-columns: 1fr; }
  .site-hero .occupancy-widget { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  :root { --section-y: 56px; --container-x: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.split--reverse { direction: ltr; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn--lg { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .logo-row { gap: 24px; }
  .stats-band .container { grid-template-columns: 1fr 1fr; }
  .widget-metrics { grid-template-columns: 1fr; }
  .mega-menu { min-width: unset; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── 99. Text alignment (site-wide) ─────────────────────────────────────
   Headings centred; subtitles and body text justified and spread over the
   full width of their panel. Where a panel has a picture, the text column
   sits beside it (grid/flex on the panel) and fills that column. */
main h1, main h2, main h3, main h4, main h5, main h6,
main .eyebrow { text-align: center; }
main .eyebrow { display: block; }
main p, main li, main p.lead { text-align: justify; max-width: none; }
main .page-hero h1, main .site-hero h1 { max-width: none; }
main .hero-actions { justify-content: center; }
html:lang(bg) main :is(p, li) { hyphens: auto; -webkit-hyphens: auto; }
/* short centred statements keep their own alignment */
main .stat-item p, main .step-item p, main .cta-band p, main .trust-bar-label,
main .text-center p { text-align: center; }


/* ── Accessibility (EN 301 549 / WCAG 2.1 AA) ────────────────────────── */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--navy-950); color: var(--white);
  padding: 10px 16px; border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif; font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 8px; outline: 2px solid var(--teal-400); outline-offset: 2px; }

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal-700);
  outline-offset: 2px;
}
.site-footer a:focus-visible, .page-hero a:focus-visible, .cta-band a:focus-visible,
.nav-overlay a:focus-visible, .nav-overlay button:focus-visible {
  outline-color: var(--teal-400);
}
.form-input, .form-select, .form-textarea { border-color: #857f78; }

/* Keyboard-operable dropdowns: open on hover, focus inside, or .open (click/Enter) */
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-item:focus-within .mega-menu,
.nav-item.open .mega-menu { transform: translateY(0); }
.nav-item:focus-within .chevron,
.nav-item.open .chevron { transform: rotate(180deg); }

.nav-item.esc .nav-dropdown { opacity: 0; visibility: hidden; }

h1.h2 { font-size: clamp(26px, 3.5vw, 46px); }

/* ink-3 was darkened for contrast on light grounds; keep a light tone on the dark live widget */
.widget-title, .widget-count-label, .widget-capacity-label, .widget-metric-label,
#occupancy-widget .widget-title, #occ-pct, #occ-cap { color: #a8a29a; }

/* Sketch panels in solution cards (same style as the case-study sketches) */
.solution-card-img--sketch { background: var(--navy-900) !important; padding: 8px 12px; }
.solution-card-img--sketch::after { display: none; }
