/* Keymber — public site. Hebrew-first RTL, system fonts, white, restrained. */

:root {
  --text: #1e293b;
  --muted: #64748b;
  --light-muted: #94a3b8;
  --surface: #f1f5f9;
  --border: #e2e8f0;
  --accent: #704cf9;
  --accent-deep: #5b3fd6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.wordmark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--text);
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 56px 0 40px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}

/* ── Sections ───────────────────────────────────────────────────────── */

section {
  padding: 26px 0;
}

h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

section > .wrap > p,
.card p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 20px;
}

.card + .card {
  margin-top: 14px;
}

.card h2 {
  color: var(--text);
}

/* ── Flow steps ─────────────────────────────────────────────────────── */

.flow {
  list-style: none;
  counter-reset: step;
  margin: 12px 0 0;
  padding: 0;
}

.flow li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
}

.flow li + li {
  border-top: 1px solid var(--border);
}

.flow li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(4px);
}

/* ── Soon note ──────────────────────────────────────────────────────── */

.soon {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}

.soon strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.soon p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--light-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--text);
}

/* ── Document pages (privacy / terms) ───────────────────────────────── */

.doc-header {
  padding: 40px 0 8px;
}

.doc-header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

.version-pill {
  display: inline-block;
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
}

.draft-banner {
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px 0 6px;
}

.draft-banner strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.draft-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.doc-body {
  padding: 10px 0 20px;
}

.doc-body h2 {
  font-size: 17px;
  margin: 26px 0 6px;
}

.doc-body p {
  margin: 0 0 10px;
  color: var(--text);
}

/* ── Simple pages (contact / 404) ───────────────────────────────────── */

.page {
  padding: 48px 0 20px;
}

.page h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
}

.page p {
  color: var(--muted);
  margin: 0 0 12px;
  max-width: 36em;
}

.back-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* ── Accessibility ──────────────────────────────────────────────────── */

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

.skip-link {
  position: absolute;
  top: -48px;
  right: 16px;
  background: var(--white);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus {
  top: 8px;
}

/* ── Small screens ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 30px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .hero p {
    font-size: 16px;
  }
}
