/* ═══════════════════════════════════════════════════════════════════════════
   Skalnav — shared site stylesheet (landing redesign 2026-10)

   Two layers in one file:

   1. CHROME — the shared header (.sk-header) and footer (.sk-footer) of every
      marketing page, /industries, /docs and /faq. Fixed dark in every theme.
      Every selector is prefixed .sk- and the chrome carries its own --sk-*
      tokens, so it can sit on top of docs.css (which still themes the docs
      bodies) without either file touching the other.

   2. PAGE — the base of the marketing pages (home, /product, /validation,
      /pricing, /services, /enterprise, /about). Scoped to body.sk-page so a
      docs page that loads this file for the chrome gets nothing else.
      The marketing pages run a FIXED light/dark rhythm (dark hero, light
      body, dark film band, light proof, dark CTA + footer) and do not follow
      the stored theme: no theme toggle, no theme-boot.js.

   Page-specific CSS (the moved sections) stays inline in each page, as the
   home page always kept it. The legacy token names (--cyan, --white, ...) are
   defined here so the moved section CSS renders as it did in the light theme.

   Cache: .css is 1y-immutable on skalnav.com, so pages load this file as
   /site.css?v=YYYYMMDDx and every change bumps that stamp.
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
/* 600 / 700 only download where a moved subpage section still sets bold mono (prices, level numbers) */
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

/* ═══ 1. CHROME ═══════════════════════════════════════════════════════════ */
.sk-header, .sk-footer, .sk-drawer {
  --sk-ink:      #081226;
  --sk-ink-2:    #0B1730;
  --sk-line:     rgba(255, 255, 255, 0.09);
  --sk-line-hi:  rgba(255, 255, 255, 0.18);
  --sk-text:     #E8EEF8;
  --sk-text-sec: rgba(232, 238, 248, 0.74);
  --sk-text-mut: rgba(232, 238, 248, 0.52);
  --sk-accent:   #2563EB;
  --sk-accent-h: #3B76F6;
  --sk-link:     #8DB8FF;
  --sk-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --sk-mono: 'JetBrains Mono', 'Cascadia Code', monospace;
  font-family: var(--sk-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sk-skip {
  position: absolute; left: 12px; top: -48px; z-index: 300;
  padding: 10px 16px; border-radius: 8px;
  background: #2563EB; color: #fff; font: 600 14px/1 'Inter', system-ui, sans-serif; text-decoration: none;
}
.sk-skip:focus { top: 10px; }

.sk-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(8, 18, 38, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--sk-line);
  color: var(--sk-text);
}
.sk-header-inner {
  max-width: 1240px;
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.sk-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.sk-logo { height: 44px; width: auto; display: block; }
.sk-beta {
  font-family: var(--sk-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text-sec);
  border: 1px solid var(--sk-line-hi);
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
}

.sk-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.sk-nav > a,
.sk-nav-top {
  font: 500 15px/1 var(--sk-sans);
  color: var(--sk-text-sec);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, background 0.15s;
}
.sk-nav > a:hover,
.sk-nav-top:hover,
.sk-nav-group:focus-within .sk-nav-top { color: #fff; background: rgba(255, 255, 255, 0.06); }
.sk-nav > a[aria-current="page"],
.sk-nav-top.is-current { color: #fff; }
.sk-nav-top::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
}
.sk-nav-group { position: relative; }
.sk-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 248px;
  margin-top: 8px;
  padding: 8px;
  background: var(--sk-ink-2);
  border: 1px solid var(--sk-line-hi);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.sk-nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sk-nav-group:hover:not(.is-dismissed) .sk-nav-menu,
.sk-nav-group:focus-within:not(.is-dismissed) .sk-nav-menu,
.sk-nav-group.is-open .sk-nav-menu { opacity: 1; visibility: visible; transform: none; }
.sk-nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--sk-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.sk-nav-menu a small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: var(--sk-text-mut);
}
.sk-nav-menu a:hover, .sk-nav-menu a:focus-visible { background: rgba(255, 255, 255, 0.07); }

.sk-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sk-login {
  font: 500 15px/1 var(--sk-sans);
  color: var(--sk-text-sec);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
}
.sk-login:hover { color: #fff; }
.sk-cta {
  display: inline-flex;
  align-items: center;
  font: 600 15px/1 var(--sk-sans);
  color: #fff;
  background: var(--sk-accent);
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}
.sk-cta:hover { background: var(--sk-accent-h); color: #fff; }
.sk-header a:focus-visible, .sk-header button:focus-visible,
.sk-footer a:focus-visible { outline: 2px solid var(--sk-link); outline-offset: 2px; }

.sk-burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--sk-line-hi);
  background: transparent;
  color: var(--sk-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.sk-burger svg { width: 20px; height: 20px; display: block; }
.sk-burger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.08); }

.sk-drawer {
  border-top: 1px solid var(--sk-line);
  background: var(--sk-ink);
  padding: 8px 20px 24px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.sk-drawer[hidden] { display: none; }
.sk-drawer-group { padding: 12px 0 4px; border-bottom: 1px solid var(--sk-line); }
.sk-drawer-label {
  margin: 0 0 4px;
  font-family: var(--sk-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text-mut);
}
.sk-drawer a { display: block; padding: 10px 0; font-size: 16px; color: var(--sk-text); text-decoration: none; }
.sk-drawer-actions { display: flex; gap: 10px; padding-top: 18px; }
.sk-drawer-actions .sk-cta { flex: 1; justify-content: center; }
.sk-drawer-actions .sk-login { border: 1px solid var(--sk-line-hi); border-radius: 999px; padding: 11px 18px; }

@media (max-width: 1080px) {
  .sk-nav, .sk-actions .sk-login { display: none; }
  .sk-burger { display: inline-flex; }
  .sk-header-inner { gap: 12px; padding: 0 20px; }
}
@media (min-width: 1081px) { .sk-drawer { display: none !important; } }
@media (max-width: 420px) {
  .sk-actions .sk-cta { padding: 10px 14px; font-size: 14px; }
  .sk-logo { height: 38px; }
}

/* ── Footer ── */
.sk-footer {
  background: var(--sk-ink);
  color: var(--sk-text-sec);
  border-top: 1px solid var(--sk-line);
  padding: 64px 32px 40px;
  font-size: 15px;
  line-height: 1.6;
}
.sk-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr));
  gap: 32px;
}
.sk-footer-brand .sk-logo { height: 52px; }
.sk-footer-tag { margin: 14px 0 12px; max-width: 300px; color: var(--sk-text-sec); font-size: 15px; }
.sk-footer-org { color: var(--sk-text-mut); font-size: 14px; }
.sk-footer-org a { color: var(--sk-text-sec); text-decoration: none; }
.sk-footer-org a:hover { color: #fff; }
.sk-footer-h {
  margin: 0 0 12px;
  font-family: var(--sk-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sk-text-mut);
}
.sk-footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--sk-text-sec);
  text-decoration: none;
  font-size: 14.5px;
}
.sk-footer-col a:hover { color: #fff; }
.sk-footer-col a:target { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sk-footer-notes {
  max-width: 1240px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--sk-line);
  display: grid;
  gap: 10px;
}
.sk-footer-notes p { margin: 0; font-size: 13.5px; color: var(--sk-text-mut); line-height: 1.65; }
.sk-footer-notes strong { color: var(--sk-text-sec); font-weight: 600; }
.sk-footer-ref span { font-family: var(--sk-mono); font-size: 12.5px; }
.sk-footer-base {
  max-width: 1240px;
  margin: 20px auto 0;
  font-size: 13px;
  color: var(--sk-text-mut);
}
@media (max-width: 1080px) {
  .sk-footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sk-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sk-footer { padding: 48px 20px 32px; }
  .sk-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

/* ═══ 2. PAGE (marketing pages only: body.sk-page) ════════════════════════ */
body.sk-page {
  /* light body — the moved sections' legacy names map onto these */
  --bg:            #F4F6FA;
  --bg-raised:     #EAEEF5;
  --surface:       #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hi:    #FFFFFF;
  --border:        rgba(14, 26, 58, 0.12);
  --border-med:    rgba(14, 26, 58, 0.18);
  --border-hi:     rgba(37, 99, 235, 0.45);
  --accent:        #2563EB;
  --accent-strong: #1B2A5E;
  --accent-hover:  #1D4FD7;
  --on-accent:     #FFFFFF;
  --accent-glow:   rgba(37, 99, 235, 0.22);
  --accent-glow-faint: rgba(37, 99, 235, 0.06);
  --cyan:          var(--accent);
  --cyan-dim:      rgba(37, 99, 235, 0.45);
  --cyan-bg:       rgba(37, 99, 235, 0.06);
  --gold:          #8A5F00;
  --gold-dim:      rgba(154, 107, 0, 0.4);
  --gold-bg:       rgba(240, 180, 41, 0.12);
  --red-dim:       rgba(192, 57, 43, 0.3);
  --danger-t:      #B03427;
  --danger-dim:    rgba(192, 57, 43, 0.4);
  --ok-t:          #1E7E52;
  --ok-dim:        rgba(30, 142, 90, 0.45);
  --text:          #0E1A3A;
  --text-hi:       #0E1A3A;
  --text-sec:      rgba(14, 26, 58, 0.76);
  --text-mut:      rgba(14, 26, 58, 0.58);
  --white:         #0E1A3A;
  --strip-bg:      rgba(255, 255, 255, 0.6);
  --final-glow:    rgba(37, 99, 235, 0.16);
  --shadow-md:     0 14px 34px rgba(14, 26, 58, 0.10);
  --shadow-lg:     0 24px 60px rgba(14, 26, 58, 0.16);
  --thumb-border:  #FFFFFF;
  --link:          #1D4FD7;
  --mono:          'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
  --sans:          'Inter', -apple-system, system-ui, 'Segoe UI', sans-serif;
  --max-w:         1200px;
  --max-w-narrow:  800px;
  --ink:           #081226;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
/* dark bands: hero, film, final CTA */
body.sk-page .on-dark {
  --bg:            #081226;
  --bg-raised:     #0B1730;
  --surface:       rgba(255, 255, 255, 0.04);
  --bg-card:       rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.10);
  --border-med:    rgba(255, 255, 255, 0.16);
  --border-hi:     rgba(141, 184, 255, 0.5);
  --accent:        #2563EB;
  --cyan:          #8DB8FF;
  --cyan-dim:      rgba(141, 184, 255, 0.5);
  --cyan-bg:       rgba(141, 184, 255, 0.08);
  --text:          #E8EEF8;
  --text-hi:       #FFFFFF;
  --text-sec:      rgba(232, 238, 248, 0.76);
  --text-mut:      rgba(232, 238, 248, 0.56);
  --white:         #FFFFFF;
  --link:          #8DB8FF;
  background: var(--bg);
  color: var(--text);
}

:where(body.sk-page) *, :where(body.sk-page) *::before, :where(body.sk-page) *::after { box-sizing: border-box; }
html:has(body.sk-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.sk-page) { scroll-behavior: auto; } }
/* the header is sticky at 64 px: anchor targets land below it */
:where(body.sk-page) [id] { scroll-margin-top: 84px; }

:where(body.sk-page) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd) { margin: 0; }
:where(body.sk-page) :where(ul, ol) { padding: 0; }
:where(body.sk-page) :where(img, video, svg) { max-width: 100%; }
:where(body.sk-page) a { color: var(--link); }

/* ── Type: Inter for headings and body, JetBrains Mono for numbers and labels ── */
:where(body.sk-page) :where(h1, h2, h3, h4) {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
:where(body.sk-page) h1 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -0.03em; line-height: 1.04; }
:where(body.sk-page) h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
:where(body.sk-page) h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.01em; }
:where(body.sk-page) h4 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }

.sk-page .eyebrow {
  display: block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.sk-page .lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--text-sec);
  max-width: 700px;
}
.sk-page .num { font-family: var(--mono); font-feature-settings: 'tnum' 1; }

/* ── Layout ── */
.sk-page .section { padding: 96px 32px; }
.sk-page .section--alt { background: var(--bg-raised); }
.sk-page .section--white { background: var(--surface); }
.sk-page .section-inner { max-width: var(--max-w); margin: 0 auto; }
.sk-page .section-head { max-width: 760px; margin-bottom: 48px; }
.sk-page .section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sk-page .section-head--center .lead { margin: 0 auto; }
@media (max-width: 768px) {
  .sk-page .section { padding: 72px 20px; }
  .sk-page .section-head { margin-bottom: 36px; }
}

/* ── Buttons: one filled pill for the main goal, a quiet pill for the rest ── */
.sk-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.sk-page .btn--primary { background: var(--accent); color: #fff; }
.sk-page .btn--primary:hover { background: #3B76F6; color: #fff; box-shadow: 0 8px 24px var(--accent-glow); }
.sk-page .btn--outline,
.sk-page .btn--ghost { background: rgba(14, 26, 58, 0.06); color: var(--text-hi); border-color: rgba(14, 26, 58, 0.08); }
.sk-page .btn--outline:hover,
.sk-page .btn--ghost:hover { background: rgba(14, 26, 58, 0.1); color: var(--text-hi); }
.sk-page .on-dark .btn--outline,
.sk-page .on-dark .btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.14); }
.sk-page .on-dark .btn--outline:hover,
.sk-page .on-dark .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.sk-page .btn--sm { padding: 9px 16px; font-size: 14px; width: 100%; }
.sk-page .btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sk-page .text-link {
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sk-page .text-link::after { content: '\2192'; transition: transform 0.15s; }
.sk-page .text-link:hover::after { transform: translateX(3px); }
@media (max-width: 560px) {
  .sk-page .btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* ── Subpage hero (dark band under the header) ── */
.sk-page .page-hero {
  position: relative;
  padding: 88px 32px 80px;
  overflow: hidden;
}
.sk-page .page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
}
.sk-page .page-hero-inner { position: relative; max-width: var(--max-w); margin: 0 auto; }
.sk-page .page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); max-width: 900px; margin-bottom: 20px; }
.sk-page .page-hero .lead { max-width: 760px; }
@media (max-width: 768px) { .sk-page .page-hero { padding: 64px 20px 56px; } }

/* ── Final CTA (dark), shared by every marketing page ── */
.sk-page .final {
  position: relative;
  text-align: center;
  padding: 120px 32px;
  overflow: hidden;
}
.sk-page .final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 100%, var(--final-glow), transparent 70%);
  pointer-events: none;
}
.sk-page .final-inner { position: relative; max-width: 760px; margin: 0 auto; }
.sk-page .final h2 { margin-bottom: 18px; }
.sk-page .final .lead { margin: 0 auto 36px; }
.sk-page .final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sk-page .final-pub {
  display: inline-block;
  margin-top: 28px;
  font-size: 15px;
  color: var(--text-mut);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sk-page .final-pub:hover { color: var(--text); }
@media (max-width: 768px) { .sk-page .final { padding: 88px 20px; } }

/* ── Browser frame around an app capture ── */
.sk-page .frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(14, 26, 58, 0.14);
  background: #fff;
  box-shadow: 0 30px 80px rgba(14, 26, 58, 0.18), 0 2px 6px rgba(14, 26, 58, 0.06);
  overflow: hidden;
}
.sk-page .frame-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(14, 26, 58, 0.1);
  background: #F1F3F8;
}
.sk-page .frame-dots { display: flex; gap: 6px; }
.sk-page .frame-dots span { width: 10px; height: 10px; border-radius: 50%; background: #D3D8E3; }
.sk-page .frame-url {
  flex: 0 1 320px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(14, 26, 58, 0.08);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mut);
  text-align: center;
}
.sk-page .frame img { display: block; width: 100%; height: auto; }

/* ── Legacy anchors (/#pricing, /#startup, ...): landing.js forwards them ── */
.sk-page .moved-note { font-size: 15px; color: var(--text-mut); }
.sk-page .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
