/* -----------------------------------------------------------------------
   Klikli, shared marketing chrome.

   Used by /privacy, /terms, /contact, /faq. Self-contained; no other
   stylesheet is required on those pages. Mirrors the visual language
   of landing.html and /blog (Modernist Calm, light-only, zero JS).

   Kept deliberately small (< 6 KB). Page-specific styles live
   inline at the top of each page so this file stays as just the
   site chrome (top nav, footer, container, type, links, primitives).
   ----------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --fg: #0a0a0a;
  --fg-muted: #6b6b6b;
  --fg-subtle: #767676;
  --rule: #ececec;
  --link-underline: #b8b8b8;
  --measure: 36em;
  --max-w: 880px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  font-family:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  transition: border-bottom-color 120ms ease;
}
a:hover,
a:focus-visible {
  border-bottom-color: var(--fg);
}
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 24px;
  margin: 0 auto;
}
.measure {
  max-width: var(--measure);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

/* ----- Top nav -------------------------------------------------------- */

.topbar {
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
  font-size: 14px;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  z-index: 50;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  padding: 0 24px;
  margin: 0 auto;
}
.wordmark {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: 16px;
  border: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  border: 0;
  color: var(--fg-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    color 120ms ease,
    background 120ms ease;
}
.nav a:hover.nav a:focus-visible.nav a[aria-current='page'] {
  color: var(--fg);
  background: var(--bg-soft);
}
.nav .open-app {
  margin-left: 8px;
  padding: 8px 16px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 500;
}
.nav .open-app:hover {
  background: var(--fg);
  color: var(--bg);
  opacity: 0.85;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--fg);
  padding: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
  }
  .nav a {
    padding: 12px 16px;
    border-radius: 0;
  }
  .nav .open-app {
    margin: 8px;
    border-radius: 999px;
    text-align: center;
  }
  .nav-toggle {
    display: block;
  }
  .topbar:has(.nav-toggle:checked) .nav.topbar:has(input.nav-toggle-state:checked) .nav.nav-toggle-state:checked ~ .nav {
    display: flex;
  }
  .nav-toggle-state {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle-state:checked + .nav-toggle::before {
    content: '\00d7';
  }
  .nav-toggle::before {
    content: '\2630';
  }
}

/* ----- Page hero & sections ------------------------------------------ */

.page-hero {
  padding: 72px 0 24px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .page-hero {
    padding: 112px 0 40px;
  }
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
@media (min-width: 760px) {
  .page-hero h1 {
    font-size: 56px;
  }
}
.page-hero .lede {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: var(--measure);
}

/* Default content slab, long-form pages (privacy, terms). */

.content {
  padding: 56px 0 32px;
}
.content > .container {
  max-width: var(--measure);
}
.content h2 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-top: 2.4em;
}
.content h2:first-child {
  margin-top: 0;
}
.content h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.content p.content ul.content ol.content table.content blockquote {
  margin-top: 1.2em;
  font-size: 17px;
  line-height: 1.65;
}
.content ul.content ol {
  padding-left: 1.4em;
}
.content li + li {
  margin-top: 0.5em;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.content th.content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.content th {
  font-weight: 500;
  color: var(--fg-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-soft);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}
.content blockquote {
  border-left: 2px solid var(--fg);
  padding-left: 20px;
  color: var(--fg-muted);
}
.content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.4em 0;
}
.last-updated {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--fg-subtle);
  font-style: italic;
}

/* ----- Footer --------------------------------------------------------- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 96px;
  padding: 56px 0 64px;
  font-size: 14px;
  color: var(--fg-muted);
}
footer.site-footer .container {
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  footer.site-footer .container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
footer.site-footer h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 16px;
}
footer.site-footer ul {
  list-style: none;
}
footer.site-footer li {
  margin-top: 10px;
}
footer.site-footer a {
  color: var(--fg-muted);
  border: 0;
}
footer.site-footer a:hover {
  color: var(--fg);
}
footer.site-footer .colophon a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer.site-footer .colophon {
  font-size: 13px;
  color: var(--fg-subtle);
  line-height: 1.6;
}
footer.site-footer .legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--fg-subtle);
}

/* ----- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
