/* ZLO public site: shared base. Black and white only.
   Shape rule: interactive elements are pills; screenshots and panels use
   --radius. Page-specific styles live in home.css and pricing.css. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"), url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"), url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-soft: #5c5c5c;
  --paper: #fafafa;
  --panel: #f1f1f1;
  --line: #e2e2e2;
  --on-ink: #fafafa;
  --radius: 20px;
  --max: 1200px;
  --header: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f5;
    --ink-soft: #a3a3a3;
    --paper: #0c0c0c;
    --panel: #161616;
    --line: #2a2a2a;
    --on-ink: #0a0a0a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--ink);
  color: var(--on-ink);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.nowrap {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* Header: sticky, soft blur, hairline once the page scrolls */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.045em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9375rem;
}

.nav a:not(.button) {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 200ms var(--ease);
}

.nav a:not(.button):hover {
  color: var(--ink);
}

@media (max-width: 560px) {
  .nav a:not(.button):not([hreflang]) {
    display: none;
  }
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 220ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}

.button.small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* The arrow nudges forward on hover. */
.button .arrow {
  display: inline-block;
  transition: transform 220ms var(--ease);
}

[dir="rtl"] .button .arrow {
  transform: scaleX(-1);
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.14);
  }

  .button.outline:hover {
    border-color: var(--ink);
    box-shadow: none;
  }

  .button:hover .arrow {
    transform: translateX(3px);
  }

  [dir="rtl"] .button:hover .arrow {
    transform: scaleX(-1) translateX(3px);
  }
}

.button:active {
  transform: scale(0.98);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll reveal (site.js adds .in once; visible without JS) */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

html.js [data-reveal].in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* Panels and documents (privacy, terms, deletion) */

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 32px;
}

.doc {
  padding: 48px 0 120px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  margin: 0 0 48px;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 20ch;
}

.doc .updated {
  margin: -32px 0 48px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.doc h2 {
  margin: 48px 0 12px;
  font-size: 1.375rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  max-width: 68ch;
}

.doc ul,
.doc ol {
  padding-left: 1.25em;
}

.doc li + li {
  margin-top: 6px;
}

.doc .panel {
  margin: 32px 0;
}

.doc .panel p:last-child {
  margin-bottom: 0;
}

/* Closing call to action (home and pricing) */

.closing {
  padding: 120px 0 96px;
  border-top: 1px solid var(--line);
}

.closing h2 {
  margin: 0 0 32px;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
  max-width: 12ch;
  text-wrap: balance;
}

[dir="rtl"] .closing h2 {
  letter-spacing: 0;
  line-height: 1.2;
}

.closing p {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  overflow: hidden;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-footer a {
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.site-footer a:hover {
  color: var(--ink);
}

/* The oversized wordmark that closes the home and pricing pages. */
.site-footer .giant {
  display: block;
  margin: 48px 0 -0.26em;
  font-size: min(34vw, 420px);
  line-height: 0.8;
  font-weight: 600;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .button,
  .button .arrow {
    transition: none;
  }
}
