/* WaBaCRM web, theme 2: "signal" — dark, luminous, glass. Shared by every page. */
:root {
  --void: #04060C;          /* page background */
  --deep: #070B16;          /* raised sections */
  --panel: rgb(255 255 255 / .035);
  --panel-2: rgb(255 255 255 / .06);
  --stroke: rgb(148 170 210 / .14);
  --stroke-2: rgb(148 170 210 / .24);
  --text: #EAF0FB;
  --text-2: #96A6C0;
  --text-3: #6B7A93;
  --cobalt: #3B7BFF;
  --cobalt-deep: #2F6BFF;
  --cyan: #22D3EE;
  --violet: #8B5CF6;
  --mint: #34D399;
  --warn: #FBBF24;
  --grad: linear-gradient(115deg, #3B7BFF 0%, #22D3EE 100%);
  --grad-3: linear-gradient(115deg, #8B5CF6 0%, #3B7BFF 45%, #22D3EE 100%);
  --glow: 0 0 0 1px rgb(59 123 255 / .35), 0 10px 40px -10px rgb(59 123 255 / .55);

  /* aliases used by learn.css and pages.css */
  --bg: var(--void);
  --surface: #0A101E;
  --border: var(--stroke);
  --link: #7FB0FF;
  --ink: #04060C;
  --ink-line: var(--stroke);
  --cloud: #0A101E;
  --slate: var(--text);
  --muted: var(--text-2);
  --line: var(--stroke);
  --soft: #7FA6FF;

  --font-display: "Unbounded", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body {
  margin: 0; min-height: 100vh;
  background: var(--void);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint engineering grid behind everything, fading out toward the bottom of the first screen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(148 170 210 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 170 210 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; text-wrap: balance; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgb(59 123 255 / .45); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; color: #fff; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad); box-shadow: 0 8px 30px -8px rgb(34 211 238 / .55), inset 0 1px 0 rgb(255 255 255 / .25); color: #03101F; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgb(34 211 238 / .75), inset 0 1px 0 rgb(255 255 255 / .3); }
.btn-ghost { background: var(--panel); border-color: var(--stroke-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgb(127 176 255 / .55); background: var(--panel-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(4 6 12 / .65); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--stroke); color: var(--text); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.site-footer .brand img { height: 44px; }
.menu { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; transition: color .15s, background .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: var(--panel-2); }
.header-cta { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.header-cta .login { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 6px; }
.header-cta .login:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: var(--panel); border: 1px solid var(--stroke-2); color: #fff; border-radius: 10px; width: 44px; height: 40px; cursor: pointer; }
.menu-toggle svg { margin: auto; }
@media (max-width: 900px) {
  .menu { display: none; }
  .menu-toggle { display: block; }
  .site-header.open .menu {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgb(6 9 18 / .97); padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--stroke);
  }
  .site-header.open .nav { flex-direction: column; margin: 0; }
  .site-header.open .nav a { padding: 12px; font-size: 17px; }
  .site-header.open .header-cta { margin: 0; flex-direction: column; align-items: stretch; }
  .site-header.open .header-cta .login { padding: 12px; font-size: 17px; }
}

/* Footer */
.site-footer { position: relative; background: var(--void); color: var(--text-2); font-size: 15px; padding: 64px 0 28px; border-top: 1px solid var(--stroke); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgb(59 123 255 / .6), rgb(34 211 238 / .6), transparent); }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h3 { font: 600 14px/1.3 var(--font-body); color: var(--text-3); margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid .brand { margin-bottom: 14px; }
.footer-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--stroke); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--text-3); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Screenshot lightbox (any a.zoom) */
a.zoom { cursor: zoom-in; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgb(2 4 9 / .94); backdrop-filter: blur(6px); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-bar { background: rgb(4 6 12 / .9); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text-2); font-size: 14px; border-bottom: 1px solid var(--stroke); }
.lightbox-bar button { background: var(--panel-2); color: #fff; border: 1px solid var(--stroke-2); border-radius: 10px; height: 40px; padding: 0 16px; font: 600 15px var(--font-body); cursor: pointer; }
.lightbox-body { flex: 1; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 16px; -webkit-overflow-scrolling: touch; }
.lightbox-body img { max-width: none; width: min(100%, 1440px); border-radius: 10px; box-shadow: 0 30px 80px rgb(0 0 0 / .6), 0 0 0 1px var(--stroke-2); margin: auto; }
@media (max-width: 900px) { .lightbox-body { justify-content: flex-start; } .lightbox-body img { width: 1440px; } }

code { font-family: var(--font-mono); font-size: .88em; background: rgb(59 123 255 / .14); color: #CFE0FF; padding: 1px 6px; border-radius: 6px; }
