/* Linekern — site.css v2 */
/* Kernset blue: #2563EB · Dark navy: #0C1628 · Paper: #F8F7F4 */

/* Self-hosted fonts — served from own server only (GDPR / DSGVO). */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/funnel-display-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/funnel-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Funnel Sans';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('/fonts/funnel-sans-italic-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 100 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-italic-latin.woff2') format('woff2');
}

:root {
  --paper: #F8F7F4;
  --paper-blue: #EFF6FF;
  --white: #FFFFFF;
  --ink: #0B0D10;
  --navy: #0C1628;       /* rich blue-navy for dark sections */
  --navy-soft: #132038;
  --accent: #2563EB;     /* Kernset blue */
  --accent-deep: #1D4ED8;
  --accent-light: #3B82F6;
  --accent-soft: rgba(37, 99, 235, 0.07);
  --accent-line: rgba(37, 99, 235, 0.16);
  --gray-50:  #F9F8F5;
  --gray-100: #EFEEEA;
  --gray-200: #E2E1DC;
  --gray-300: #CCCBC6;
  --gray-400: #9B9A93;
  --gray-500: #6B6C6F;
  --gray-600: #4A4C50;
  --success: #27C93F;
  --font-display: "Funnel Display", -apple-system, sans-serif;
  --font-sans:    "Funnel Sans",    -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --r: 12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--ink); background: var(--paper); line-height: 1.5; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── Animations ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:none; } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes slideRight { from { opacity:0; transform:translateX(-12px); } to { opacity:1; transform:none; } }
@keyframes chipPulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(37,99,235,0.4);} 50%{opacity:0.65;box-shadow:0 0 0 5px rgba(37,99,235,0);} }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes scaleX-in { from{transform:scaleX(0)} to{transform:scaleX(1)} }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
@keyframes countUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }
@keyframes navCtaGlow { 0%,100%{box-shadow:0 4px 14px rgba(37,99,235,0);} 50%{box-shadow:0 4px 18px rgba(37,99,235,0.28);} }
@keyframes navCtaPulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,0);} 50%{box-shadow:0 0 0 4px rgba(37,99,235,0.15);} }

/* ── Reveal system ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform; backface-visibility: hidden;
}
.reveal.in { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 80ms); }
.reveal-left { opacity:0; transform:translateX(-20px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); will-change: opacity, transform; backface-visibility: hidden; }
.reveal-left.in { opacity:1; transform:none; }
.reveal-right { opacity:0; transform:translateX(20px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); will-change: opacity, transform; backface-visibility: hidden; }
.reveal-right.in { opacity:1; transform:none; }
.reveal-scale { opacity:0; transform:scale(0.96); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); will-change: opacity, transform; backface-visibility: hidden; }
.reveal-scale.in { opacity:1; transform:none; }

/* Stagger helpers — nth-child sets --i so calc(var(--i, 0) * 90ms) works */
.stagger > *:nth-child(1) { --i: 0; }
.stagger > *:nth-child(2) { --i: 1; }
.stagger > *:nth-child(3) { --i: 2; }
.stagger > *:nth-child(4) { --i: 3; }
.stagger > *:nth-child(5) { --i: 4; }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
main#main:focus {
  outline: none;
}

/* ── Nav ── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,247,244,0.9);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-nav.dark { background: rgba(12,22,40,0.92); }
.site-nav.scrolled { border-bottom-color: rgba(0,0,0,0.08); }
.site-nav.dark.scrolled { border-bottom-color: rgba(255,255,255,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
}
.nav-logo-img { height: 20px; width: auto; transition: filter 0.3s var(--ease), opacity 0.3s; }
.site-nav.dark .nav-logo-img { filter: brightness(0) invert(1); }
.nav-links {
  display: flex; gap: 20px; font-size: 13.5px;
  color: var(--gray-600); letter-spacing: -0.01em;
}
@media(max-width: 900px) {
  .nav-links { gap: 14px; font-size: 12.5px; }
}
.nav-links a { transition: color 0.18s var(--ease); position: relative; }
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--ink);
  border-radius: 999px;
  transition: width 0.22s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::before { width: 100%; }
.nav-links a.active::before { display: none; }
.site-nav.dark .nav-links { color: rgba(255,255,255,0.85); }
.site-nav.dark .nav-links a::before { background: rgba(255,255,255,0.75); }
.site-nav.dark .nav-links a:hover { color: white; }
.nav-kernset-link {
  font-weight: inherit;
  font-family: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit;
}
.site-nav.dark .nav-kernset-link { color: rgba(255,255,255,0.85) !important; }
.site-nav.dark .nav-kernset-link.active { color: white !important; }
.nav-kernset-link.active { color: var(--ink) !important; }
.nav-links a.active.nav-kernset-link::after { background: var(--accent); }
.site-nav.dark .nav-links a.active.nav-kernset-link::after { background: white; }
/* Ensure the underline is visible for Kernset link */
.nav-kernset-link.active::after { display: block !important; }

/* Active nav: exactly one primary item per page (no CTA duplication as "current") */
.nav-links a.active { color: var(--ink); font-weight: 500; position: relative; }
.nav-links a.active::after { content: ""; position: absolute; bottom: -4px; left: 0; right: 0; height: 1.5px; background: var(--ink); border-radius: 999px; }
.site-nav.dark .nav-links a.active { color: white; }
.site-nav.dark .nav-links a.active::after { background: white; }
.nav-links .nav-kernset-link.active { opacity: 1; }
.nav-links .nav-kernset-link.active::after { background: var(--accent); }
.nav-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.01em;
  background: var(--ink); color: white;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap; cursor: pointer; border: none;
  animation: navCtaGlow 3s ease-in-out infinite;
}
.nav-cta-btn:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.35); animation: none; }
.site-nav.dark .nav-cta-btn { background: var(--accent); }
.site-nav.dark .nav-cta-btn:hover { background: var(--accent-deep); }
.nav-circle-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-circle-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.nav-circle-cta-icon {
  font-size: 16px;
  line-height: 1;
  transform: translateX(1px);
}
.site-nav.dark .nav-circle-cta { background: white; color: var(--ink); }
.site-nav.dark .nav-circle-cta:hover { background: var(--accent); color: white; }
@media(max-width: 900px) {
  .nav-cta-btn { padding: 0 14px; font-size: 12.5px; }
}
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-mobile-cta { display: none; }
@media (max-width: 899px) {
  .nav-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--ink) !important;
    color: white !important;
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: -0.01em;
    border: none !important;
  }
  .nav-mobile-cta:hover {
    background: var(--accent) !important;
    color: white !important;
  }
  .site-nav.dark.is-open .nav-links .nav-mobile-cta {
    background: var(--accent) !important;
  }
  .site-nav.dark.is-open .nav-links .nav-mobile-cta:hover {
    background: var(--accent-deep) !important;
  }
}

/* ── Footer ── */
.site-footer {
  background: white; border-top: 1px solid var(--gray-200);
  padding: 72px var(--gutter) 40px; font-size: 13px; color: var(--gray-500);
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 52px; max-width: var(--container); margin: 0 auto;
}
.footer-brand img { height: 19px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.65; color: var(--gray-500); max-width: 240px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; font-weight: 500; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color 0.15s var(--ease), padding-left 0.15s var(--ease); }
.footer-col a:hover { color: var(--ink); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--gray-200); margin-top: 52px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; max-width: var(--container); margin-inline: auto; font-size: 12px; color: var(--gray-400); }
.footer-bottom span:last-child { font-family: var(--font-mono); letter-spacing: 0.06em; font-size: 11px; }
@media(max-width: 720px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media(max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* Mobile: leave room for floating contact bubble + iOS safe area so the FAB doesn't cover footer content */
@media(max-width: 767px) {
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* Bump tap targets to ≥44px (WCAG 2.5.5) on mobile-only — affects inline arrow links and footer links */
  .site-footer .footer-col a,
  .site-footer .footer-bottom a { display: inline-block; padding: 8px 0; min-height: 44px; line-height: 28px; }
  .footer-col ul { gap: 4px; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 0 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: all 0.2s var(--ease);
  white-space: nowrap; cursor: pointer; font-family: var(--font-sans);
  text-decoration: none; line-height: 1;
}
.btn-sm  { height: 38px; font-size: 13px; padding: 0 18px; }
.btn-md  { height: 44px; }
.btn-lg  { height: 52px; font-size: 15.5px; padding: 0 28px; }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.32); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,0.35); }
.btn-ghost { background: transparent; border-color: var(--gray-300); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.7); }
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.55); color: white; }
.btn-white { background: white; color: var(--ink); }
.btn-white:hover { background: var(--accent); color: white; box-shadow: 0 6px 18px rgba(37,99,235,0.3); }
.arr { transition: transform 0.22s var(--ease-spring); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }

/* ── Form status messages (success after submit / error on failure) ── */
.form-status {
  display: block; margin-top: 14px; padding: 12px 14px;
  border-radius: 8px; font-size: 13.5px; line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status--success { background: #ecfdf3; border: 1px solid #abefc6; color: #0e5a1f; }
.form-status--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.form-status a { color: inherit; text-decoration: underline; }

/* ── Typography helpers ── */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-500);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: currentColor; display: block; }
.eyebrow-light  { color: rgba(255,255,255,0.55); }
.eyebrow-light::before { background: rgba(255,255,255,0.55); }
.eyebrow-accent { color: var(--accent); }
.eyebrow-accent::before { background: var(--accent); }

/* Consistent hero eyebrow spacing — removes need for inline style="margin-bottom:24px" */
.hero-content .eyebrow:first-child,
.ks-hero-text .eyebrow:first-child,
.contact-hero-text .eyebrow:first-child,
.demo-hero-text .eyebrow:first-child,
.page-hero-text .eyebrow:first-child {
  margin-bottom: 24px;
}

/* ── Chip ── */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: 999px; padding: 5px 14px 5px 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  width: fit-content; max-width: 100%; align-self: flex-start;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: chipPulse 2.4s ease-in-out infinite; }

/* ── Section containers ── */
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }
.container  { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ── Browser chrome ── */
.browser-chrome {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(11,13,16,0.12), 0 4px 16px rgba(11,13,16,0.06);
  border: 1px solid var(--gray-200);
}
.browser-bar { background: #F2F2F0; border-bottom: 1px solid var(--gray-200); padding: 10px 14px; display: flex; align-items: center; gap: 7px; }
.b-dot { width: 10px; height: 10px; border-radius: 50%; }
.b-dot:nth-child(1){background:#FF5F56;} .b-dot:nth-child(2){background:#FFBD2E;} .b-dot:nth-child(3){background:#27C93F;}
.b-url { flex: 1; background: white; border-radius: 5px; border: 1px solid var(--gray-200); padding: 4px 10px; margin-inline: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); letter-spacing: 0.03em; display: flex; align-items: center; gap: 5px; }
.b-url::before { content: "🔒"; font-size: 9px; }

/* ── Stats strip ── */
.stats-strip {
  display: flex; gap: 0;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
  justify-content: center; text-align: center;
  max-width: var(--container); margin-left: auto; margin-right: auto;
  /* Side borders to visually contain the strip at the content edge */
  border-left: 1px solid var(--gray-200); border-right: 1px solid var(--gray-200);
}
.stat-item {
  flex: 1; padding: 28px 24px; border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-width: 0;
}
.stat-item:last-child { border-right: none; }
.stat-val { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -0.04em; color: var(--ink); line-height: 1; margin-bottom: 6px; transition: color 0.3s var(--ease); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.stat-val .stat-unit { font-size: 0.55em; opacity: 0.5; letter-spacing: -0.01em; }
.stat-label { font-size: 13px; color: var(--gray-500); line-height: 1.45; max-width: 16rem; margin: 0 auto; }
@media(max-width: 640px) {
  .stats-strip { flex-wrap: wrap; border-left: none; border-right: none; max-width: 100%; }
  .stat-item { flex: 0 0 50%; }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--gray-200); }
}

/* ── Pricing cards (shared base) ── */
.plan-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 14px;
  padding: 36px 32px; transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.plan-card:hover { box-shadow: 0 20px 50px rgba(11,13,16,0.1); transform: translateY(-4px); }
.plan-card.featured {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
  border-color: var(--accent-line);
  border-width: 1.5px;
  padding: 44px 36px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.12);
  position: relative;
}
.plan-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  pointer-events: none;
}
.plan-card.featured:hover { transform: translateY(-4px); box-shadow: 0 26px 64px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(37, 99, 235, 0.2); }
.pc-badge { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 11px; border-radius: 999px; display: inline-block; margin-bottom: 18px; }
.plan-card.featured .pc-badge { background: var(--accent-soft); color: var(--accent-deep); }
.pc-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 4px; }
.plan-card.featured .pc-name { color: var(--ink); }
.pc-tagline { font-size: 13px; color: var(--gray-500); margin-bottom: 28px; line-height: 1.5; }
.plan-card.featured .pc-tagline { color: var(--gray-600); }
.pc-price { font-family: var(--font-display); font-size: 52px; font-weight: 500; letter-spacing: -0.048em; line-height: 1; color: var(--ink); }
.pc-price-from { font-size: 36px; line-height: 1.15; }
.plan-card.featured .pc-price { color: var(--ink); }
.pc-period { font-family: var(--font-mono); font-size: 11px; color: var(--gray-400); letter-spacing: 0.06em; margin-top: 5px; margin-bottom: 28px; }
.plan-card.featured .pc-period { color: var(--gray-500); }
.pc-divider { border: none; border-top: 1px solid var(--gray-100); margin-bottom: 24px; }
.plan-card.featured .pc-divider { border-color: var(--gray-200); }
.pc-features { display: grid; gap: 13px; margin-bottom: 32px; }
.pc-features li { display: flex; gap: 11px; font-size: 14px; color: var(--gray-600); line-height: 1.45; align-items: baseline; }
.plan-card.featured .pc-features li { color: var(--gray-600); }
.pc-check { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--gray-500); margin-top: 1px; }
.plan-card.featured .pc-check { border-color: var(--accent-line); color: var(--accent-deep); background: var(--accent-soft); }
.pc-cta { width: 100%; height: 44px; border-radius: 999px; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); color: var(--ink); background: transparent; transition: all 0.2s; cursor: pointer; font-family: var(--font-sans); }
.pc-cta:hover { background: var(--ink); color: white; border-color: var(--ink); }
.plan-card.featured .pc-cta { background: var(--ink); color: white; border-color: var(--ink); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); }
.plan-card.featured .pc-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ── Float tags ── */
.float-tag {
  position: absolute; background: white; border: 1px solid var(--gray-200);
  border-radius: 8px; padding: 8px 13px; box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  font-family: var(--font-mono); font-size: 11px; color: var(--gray-600);
  letter-spacing: 0.04em; white-space: nowrap; animation: floatY 3.2s ease-in-out infinite;
}
.float-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); margin-right: 7px; vertical-align: middle; }

@media(prefers-reduced-motion: reduce) {
  /* Convert any infinite CSS animation to a single cycle and crush durations to 0.01ms
     so the element ends up at its final state immediately rather than flickering at high frequency. */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-visual {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .stats-strip .stat-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Hero browser-mockup uses CSS `--hb-delay` driven keyframes (hb-fly-up/-down/-left/-right/-scale-in).
     Under reduced-motion, snap every element to its final position with no transform. */
  [class*="hb-fly-"], [class*="hb-scale-"] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  /* Decorative infinite-loop accents — kill outright to remove any residual motion */
  .chip-dot, .nav-cta-btn, .hero-glow, .hero-glare, .float-tag,
  .hero-badge-float, .hbf-dot, .glare-sweep {
    animation: none !important;
  }
}

/* ── Premium polish additions ── */

/* Hero visual — slide-in-from-right entrance (inline JS sets .style.opacity/transform,
   which triggers these transitions; .in class path also supported) */
.hero-visual {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.8s var(--ease-out) 0.3s, transform 0.8s var(--ease-out) 0.3s;
}
.hero-visual.in {
  opacity: 1;
  transform: none;
}

/* Service links — gap-spring hover + colour */
.svc-link {
  transition: gap 0.2s var(--ease-spring), color 0.15s var(--ease);
}
.svc-link:hover { gap: 10px; color: var(--accent-deep); }

/* Stats strip — child stagger triggered when parent gains .in via reveal system */
.stats-strip .stat-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stats-strip.reveal.in .stat-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stats-strip.reveal.in .stat-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.stats-strip.reveal.in .stat-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.stats-strip.reveal.in .stat-item:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }

/* Feature/how-step card lift — for pages that use these classes */
.how-step,
.build-ch {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.how-step:hover,
.build-ch:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(11,13,16,0.07);
}
.cfaq-item {
  transition: color 0.18s var(--ease);
}
.cfaq-item:hover .cfaq-q {
  color: var(--accent);
}

/* Focus-visible improvements — accessible outline, no ring on mouse clicks */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important;}

/* ===== Language Switcher ===== */
.lang-switcher { position: relative; font-size: 0.875rem; }

.lang-switcher summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-secondary, #555);
  font-weight: 500;
  min-height: 36px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  border: none;
  background: transparent;
}
.lang-switcher summary::-webkit-details-marker { display: none; }

.lang-switcher summary:hover,
.lang-switcher[open] summary {
  color: var(--text, #111);
  background: rgba(0, 0, 0, 0.05);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  z-index: 60;
}

.lang-menu a {
  display: block;
  padding: 8px 16px;
  color: #111;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.1s;
  white-space: nowrap;
}

.lang-menu a:hover,
.lang-menu a[aria-current='true'] {
  background: rgba(0, 0, 0, 0.05);
  color: var(--accent, #0040C1);
}

/* Dark nav override (kernset page - .site-nav.dark) */
.site-nav.dark .lang-switcher summary { color: rgba(255, 255, 255, 0.85); }

.site-nav.dark .lang-switcher summary:hover,
.site-nav.dark .lang-switcher[open] summary {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.site-nav.dark .lang-menu {
  background: #1a2840;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.site-nav.dark .lang-menu a { color: rgba(255, 255, 255, 0.85); }

.site-nav.dark .lang-menu a:hover,
.site-nav.dark .lang-menu a[aria-current='true'] {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
