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

:root {
  --bg: #f9f9fb;
  --surface: #ffffff;
  --border: #e5e5ea;
  --text: #1c1c1e;
  --muted: #6c6c70;
  --accent: #007aff;
  --accent-dark: #0056cc;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Navbar ── */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.nav-brand span { color: var(--accent); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  color: #fff;
  padding: 80px 24px 64px;
  text-align: center;
}
.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.hero .tagline {
  font-size: 1.15rem;
  opacity: 0.8;
  max-width: 520px;
  margin: 0 auto 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-appstore {
  background: #fff;
  color: #000;
}
.btn-appstore svg { width: 20px; height: 20px; }
.badge-coming-soon {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.3);
}

/* ── Main content ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ── Screenshots ── */
.screenshots {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.screenshots img {
  height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  object-fit: contain;
  background: #000;
}

/* ── Feature grid ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.feature-card .icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; color: var(--muted); }

/* ── Section headings ── */
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* ── Complications list ── */
.complication-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 56px;
}
.complication-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.complication-list li .label { color: var(--muted); font-size: 0.82rem; display: block; }
.complication-list li .example { font-size: 1.1rem; font-weight: 700; direction: rtl; }

/* ── Support box ── */
.support-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.support-box p { color: var(--muted); margin-bottom: 16px; }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: underline; }

/* ── Privacy page ── */
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 10px; }
.prose p, .prose li { font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--text); }

/* ── RTL / Hebrew pages ── */
.rtl { direction: rtl; text-align: right; }
.rtl .nav { flex-direction: row-reverse; }
.rtl .prose ul { padding-right: 20px; padding-left: 0; }
.rtl .prose h2 { margin: 32px 0 10px; }
.rtl footer { direction: rtl; }
.rtl .section-title { text-align: right; }
.rtl .support-box { direction: rtl; }
.rtl .support-box p { text-align: right; }
.steps { list-style: none; counter-reset: steps; margin-bottom: 40px; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(steps);
  min-width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.rtl .steps li { flex-direction: row-reverse; }
.display-options {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}
.display-options li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  text-align: center;
}
.nav-links { display: flex; gap: 20px; margin-right: auto; font-size: 0.9rem; }
.rtl .nav-links { margin-right: 0; margin-left: auto; }

/* ── Homepage app card ── */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.app-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.12); }
.app-card img { width: 64px; height: 64px; border-radius: 14px; }
.app-card h2 { font-size: 1.1rem; font-weight: 700; }
.app-card p { font-size: 0.9rem; color: var(--muted); flex: 1; }
.app-card .links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; }
