:root {
  --radius: 0.875rem;
  --background: oklch(0.985 0.012 85);
  --foreground: oklch(0.21 0.04 270);
  --surface: oklch(0.97 0.018 85);
  --card: oklch(1 0 0);
  --primary: oklch(0.38 0.16 275);
  --primary-foreground: oklch(0.985 0.012 85);
  --primary-glow: oklch(0.55 0.22 280);
  --muted: oklch(0.5 0.03 270);
  --border: oklch(0.9 0.02 270);
  --gold: oklch(0.78 0.16 80);
  --gold-foreground: oklch(0.22 0.05 80);
  --gradient-hero: linear-gradient(
    135deg,
    oklch(0.38 0.16 275) 0%,
    oklch(0.55 0.22 280) 50%,
    oklch(0.62 0.18 310) 100%
  );
  --gradient-gold: linear-gradient(135deg, oklch(0.82 0.16 85) 0%, oklch(0.72 0.18 60) 100%);
  --shadow-soft: 0 8px 24px -10px color-mix(in oklab, var(--primary) 18%, transparent);
  --shadow-glow: 0 0 60px -10px color-mix(in oklab, var(--primary-glow) 50%, transparent);
  --font: "Heebo", "Rubik", system-ui, sans-serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 3rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-header {
  height: 2.25rem;
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-wash {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.1;
}

.hero-glow {
  pointer-events: none;
  position: absolute;
  top: -6rem;
  left: 50%;
  width: 18rem;
  height: 18rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: color-mix(in oklab, var(--primary) 20%, transparent);
  filter: blur(64px);
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding: 4rem 0 5rem;
}

.hero-mark {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: color-mix(in oklab, var(--primary) 10%, transparent);
  color: var(--primary);
}

.badge svg {
  width: 0.9rem;
  height: 0.9rem;
}

h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Staircase slogan (mirrors the app's StairSlogan): lines end-align and are padded with invisible
   "ים", so each line's "ים" starts where the line above's ends, in any font. Punctuation hangs
   past the ם, outside the layout width, so it never counts toward the alignment. */
.slogan {
  display: inline-block;
  text-align: end;
}

.slogan-line {
  display: block;
}

.slogan-word {
  position: relative;
}

.slogan-mark {
  position: absolute;
  inset-inline-start: 100%;
}

.slogan-pad {
  visibility: hidden;
}

.slogan-pad::after {
  content: attr(data-pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lede {
  margin: 1.25rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.body-copy {
  margin: 1rem 0 0;
  max-width: 40rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.store-badge {
  display: inline-flex;
  direction: ltr;
  align-items: center;
  gap: 0.65rem;
  height: 48px;
  min-width: 162px;
  padding: 0 0.95rem 0 0.75rem;
  border-radius: 8px;
  border: 1px solid #a6a6a6;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  unicode-bidi: isolate;
  box-sizing: border-box;
}

.store-badge svg {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

.store-badge .apple-mark {
  width: 18px;
  height: 22px;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-badge-copy small {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
}

.store-badge-copy strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pills {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  width: 100%;
}

.pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: start;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--card) 80%, transparent);
  box-shadow: var(--shadow-soft);
}

.icon-well {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: color-mix(in oklab, var(--primary) 15%, transparent);
  color: var(--primary);
}

.icon-well svg {
  width: 1.75rem;
  height: 1.75rem;
}

.pill h3,
.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.pill p,
.muted {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
}

.step {
  text-align: center;
}

.step-num {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.step .icon-well {
  margin-inline: auto;
  width: 3rem;
  height: 3rem;
}

.step .icon-well svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audience {
  background: color-mix(in oklab, var(--surface) 50%, transparent);
  border-block: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.audience-grid {
  display: grid;
  gap: 2rem;
}

.audience .card {
  padding: 2rem;
}

.audience h2 {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
}

.audience-lead {
  margin: 0.5rem 0 0;
  color: var(--foreground);
  font-size: 0.95rem;
}

.audience ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.audience li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.audience li svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--primary);
}

.audience .gold-icon {
  color: var(--gold);
}

.icon-hero {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
}

.icon-hero.gold {
  background: var(--gradient-gold);
  color: var(--gold-foreground);
  box-shadow: var(--shadow-soft);
}

.icon-hero svg {
  width: 1.5rem;
  height: 1.5rem;
}

.audience .btn {
  margin-top: 1.5rem;
}

/* Company / about */
.company {
  background: var(--surface);
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.company-inner {
  max-width: 46rem;
  margin-inline: auto;
}

.company-inner h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.company-lead {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  color: color-mix(in oklab, var(--foreground) 88%, var(--muted));
}

.company-facts {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.company-facts div {
  margin: 0;
}

.company-facts dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-facts dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.company-facts a {
  text-decoration: none;
}

.company-facts a:hover {
  text-decoration: underline;
}

.company-he {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.logo-wordmark {
  height: 2rem;
  width: auto;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.5rem;
}

.footer-link-pair {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.footer-sep {
  color: var(--muted);
  font-weight: 400;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
  color: var(--foreground);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-legal-name,
.footer-copy {
  margin: 0;
}

.footer-legal-name {
  font-weight: 600;
  color: var(--foreground);
}

/* Legal document */
.legal-page main {
  padding: 3rem 0 4rem;
}

.legal-doc {
  max-width: 46rem;
  margin-inline: auto;
  scroll-margin-top: 5rem;
}

.legal-doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-actions {
  margin: 1.25rem 0 2rem;
}

.legal-doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.legal-doc h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.legal-doc p,
.legal-doc li {
  color: color-mix(in oklab, var(--foreground) 88%, var(--muted));
  font-size: 1rem;
  line-height: 1.75;
}

.legal-doc ul,
.legal-doc ol {
  padding-inline-start: 1.25rem;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: start;
  vertical-align: top;
}

.legal-doc th {
  background: var(--surface);
  font-weight: 700;
}

.legal-doc .contact-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.legal-lang-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  max-width: 46rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-lang-nav a {
  text-decoration: none;
}

.legal-lang-nav a:hover {
  color: var(--primary);
}

.legal-notice {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  font-size: 0.92rem;
  color: var(--muted);
}

.legal-notice a {
  font-weight: 600;
  color: var(--foreground);
}

.legal-notice a:hover {
  color: var(--primary);
}

.legal-en {
  direction: ltr;
  text-align: left;
}

.legal-he {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .pills {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-inner {
    flex-direction: row;
    text-align: start;
    align-items: center;
    gap: 3rem;
    padding-block: 5rem;
  }

  .hero-copy {
    flex: 1;
  }

  .hero-mark {
    width: 9rem;
    height: 9rem;
  }

  .store-row,
  .pills {
    justify-content: flex-start;
  }

  .body-copy {
    max-width: none;
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}
