/* ============================================================
   Kuberiss — shared site chrome.
   Everything used by more than one page lives here: design tokens,
   resets, the type helpers, the sticky header (incl. the CSS-only
   mobile menu) and the footer. Page-specific layout stays with its
   page — the landing keeps its own <style> block, the legal
   documents load legal.css after this file.

   Mobile-first: base rules describe the phone, min-width queries
   widen it. Nothing here relies on hover or on JavaScript.

   Loaded AFTER _ds/.../styles.css, which supplies the fonts and the
   design-system custom properties this file references.
   ============================================================ */

:root{
  --page-x:20px;          /* horizontal page gutter */
  --hdr-h:60px;
  --section-y:72px;       /* space above each marketing section */
  --card-padding:16px;    /* DS token override — tighter on phones */
  --card-padding-lg:20px;
  --hairline:rgba(20,22,31,.08);
  --ink:#14161F;
  --ink-2:#4E5566;
  --ink-3:#7A8194;
  --green:#013220;
}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{margin:0;padding:0;background:#FFFFFF}
body{overflow-x:hidden}
a{color:var(--green);text-decoration:none}
svg,img{max-width:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.page{
  background:#FFFFFF;color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;letter-spacing:-.005em;
  overflow-x:hidden;
}

/* ---------- layout primitives ---------- */
.container{max-width:1200px;margin:0 auto;padding-left:var(--page-x);padding-right:var(--page-x)}
.section{padding-top:var(--section-y)}
section[id]{scroll-margin-top:calc(var(--hdr-h) + 8px)}

/* ---------- type scale ---------- */
.eyebrow{font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.eyebrow--muted{color:var(--ink-3);font-size:11px}
.h2{font-family:'Manrope',sans-serif;font-weight:700;font-size:clamp(28px,7.2vw,44px);line-height:1.12;letter-spacing:-.025em;margin:14px 0 0}
.lead{font-size:17px;line-height:1.62;color:var(--ink-2);text-wrap:pretty}
.body{font-size:15px;line-height:1.6;color:var(--ink-2)}
.mono{font-family:'IBM Plex Mono',monospace;font-variant-numeric:tabular-nums}

/* ---------- header ---------- */
.hdr{
  position:sticky;top:0;z-index:40;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--hairline);
}
.hdr__inner{
  max-width:1200px;margin:0 auto;padding:0 var(--page-x);
  height:var(--hdr-h);display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.brand{display:flex;align-items:center;gap:9px;flex-shrink:0}
/* off the landing the brand is a link home — keep it ink, not link-green */
a.brand,a.brand:hover{color:var(--ink);text-decoration:none}
.brand__name{font-family:'Manrope',sans-serif;font-weight:800;font-size:19px;letter-spacing:-.02em}
.logo{height:28px;width:auto;flex-shrink:0;display:block}
.logo-sm{height:26px;width:auto;flex-shrink:0;display:block}

/* mobile menu: CSS-only disclosure, JS only closes it */
.nav-check{position:absolute;width:1px;height:1px;opacity:0;margin:0}
.nav{
  position:absolute;top:100%;left:0;right:0;
  display:none;flex-direction:column;align-items:stretch;
  padding:4px var(--page-x) 18px;
  background:#FFFFFF;
  border-bottom:1px solid var(--hairline);
  box-shadow:0 20px 44px rgba(20,22,31,.10);
}
.nav-check:checked ~ .nav{display:flex}
.nav a{display:flex;align-items:center;min-height:50px;font-size:16px;font-weight:500;color:var(--ink-2);border-bottom:1px solid rgba(20,22,31,.06)}
.nav__cta{margin-top:16px;width:100%}
.nav-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;margin-right:-10px;flex-shrink:0;
  border-radius:12px;cursor:pointer;color:var(--ink);
}
.nav-btn__bars,.nav-btn__bars::before,.nav-btn__bars::after{
  display:block;width:20px;height:2px;border-radius:2px;background:currentColor;
  transition:transform .22s cubic-bezier(.4,0,.2,1),top .22s cubic-bezier(.4,0,.2,1),background-color .12s linear;
}
.nav-btn__bars{position:relative}
.nav-btn__bars::before,.nav-btn__bars::after{content:'';position:absolute;left:0}
.nav-btn__bars::before{top:-6px}
.nav-btn__bars::after{top:6px}
.nav-check:checked ~ .nav-btn .nav-btn__bars{background:transparent}
.nav-check:checked ~ .nav-btn .nav-btn__bars::before{top:0;transform:rotate(45deg)}
.nav-check:checked ~ .nav-btn .nav-btn__bars::after{top:0;transform:rotate(-45deg)}
.nav-check:focus-visible ~ .nav-btn{box-shadow:0 0 0 3px rgba(1,50,32,.22)}

/* ---------- button ----------
   A CSS-only twin of the design system's <Button variant="secondary"
   size="sm">, whose .k-btn rules are injected at runtime by
   _ds_bundle.js. Pages that skip the JS runtime use this instead; the
   custom properties resolve from _ds/.../styles.css, which is plain CSS.
   Values copied from the bundle so the two render identically. */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);
  font-family:var(--font-body);font-weight:var(--weight-medium);letter-spacing:-.005em;
  border-radius:var(--radius-button);border:1px solid transparent;
  text-decoration:none;white-space:nowrap;transition:var(--transition-hover);
}
.btn--sm{height:36px;padding:0 var(--space-4);font-size:var(--text-small-size)}
.btn--secondary{background:var(--surface-glass-strong);color:var(--text-primary);border-color:var(--border-subtle)}
.btn--secondary:hover{color:var(--text-accent);border-color:var(--border-accent);background:var(--accent-quiet)}
.btn:focus-visible{outline:none;box-shadow:var(--ring-focus)}
.btn svg{display:block;flex:0 0 auto}

/* ---------- footer ---------- */
.footer{margin-top:var(--section-y);border-top:1px solid var(--hairline)}
.footer__grid{display:grid;grid-template-columns:1fr 1fr;gap:30px 20px;padding-top:40px}
.footer__brand{grid-column:1 / -1;display:flex;flex-direction:column;gap:12px}
.footer__about{font-size:14px;line-height:1.6;color:var(--ink-3);max-width:320px}
.footer__col{display:flex;flex-direction:column;gap:8px}
.footer__col a{font-size:14px;color:var(--ink-2);padding:5px 0}
.footer__bottom{
  display:flex;flex-direction:column;gap:8px;
  padding-top:32px;padding-bottom:32px;
  font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--ink-3);
}

/* ============================================================
   >= 768px — tablet
   ============================================================ */
@media (min-width:768px){
  :root{
    --page-x:32px;
    --hdr-h:76px;
    --section-y:104px;
    --card-padding:24px;
    --card-padding-lg:32px;
  }
  .brand__name{font-size:20px}
  .logo{height:34px}
  .logo-sm{height:28px}
  .lead{font-size:19px}
  .footer__grid{grid-template-columns:1.4fr repeat(3,1fr);gap:48px;padding-top:64px}
  .footer__brand{grid-column:auto}
  .footer__bottom{flex-direction:row;justify-content:space-between;padding-top:48px;padding-bottom:48px}
}

/* ============================================================
   >= 900px — full desktop navigation
   ============================================================ */
@media (min-width:900px){
  .nav-btn{display:none}
  .nav-check{display:none}
  .nav{
    position:static;display:flex;flex-direction:row;align-items:center;gap:30px;
    padding:0;background:none;border-bottom:0;box-shadow:none;
  }
  .nav a{min-height:0;font-size:14px;border-bottom:0}
  .nav a:hover{color:var(--green)}
  .nav__cta{margin-top:0;width:auto;margin-left:2px}
}

/* ============================================================
   >= 1000px
   ============================================================ */
@media (min-width:1000px){
  :root{--section-y:128px}
}
