/* AI בדקה — shared styles for download/landing pages.
   System font stack only (no third-party font loading). */

:root {
  --color-bg: #fbf5ec;
  --color-card: #ffffff;
  --color-text: #2b2420;
  --color-text-muted: #6b5f52;
  /* WCAG AA: white on accent = 5.04:1, accent on white card = 5.04:1,
     white on accent-dark (hover/focus) = 6.84:1. */
  --color-accent: #a65c1a;
  --color-accent-dark: #8a4a12;
  --color-accent-soft: #fdf0dc;
  --color-border: #ecdfc9;
  --color-danger-soft: #fdeceb;
  --max-width: 640px;
  --radius: 16px;
  --font-sans: "Segoe UI", Arial, "Noto Sans Hebrew", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* touch target */
  padding: 4px 6px;
  margin-bottom: 16px;
  text-decoration: none;
  color: var(--color-text);
}

.brand__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.brand__name {
  font-weight: 700;
  font-size: 18px;
}

.card {
  width: 100%;
  max-width: var(--max-width);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 8px 24px rgba(184, 104, 32, 0.08);
}

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

h1.title {
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 16px;
  color: var(--color-text);
}

.lede {
  font-size: 17px;
  color: var(--color-text);
  margin: 0 0 24px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}

.download-btn:hover,
.download-btn:focus {
  background: var(--color-accent-dark);
}

.download-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.fallback {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
}

.fallback a {
  display: inline-block;
  min-height: 44px; /* touch target */
  padding: 10px 4px;
  line-height: 24px;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.meta-note {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--color-accent-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.home-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.home-links a:hover,
.home-links a:focus {
  border-color: var(--color-accent);
}

.home-links .arrow {
  color: var(--color-accent-dark);
  font-weight: 400;
}

.back-link {
  margin-top: 28px;
  font-size: 14px;
}

.back-link a {
  display: inline-block;
  min-height: 44px; /* touch target */
  padding: 10px 8px;
  line-height: 24px;
  color: var(--color-text-muted);
  text-decoration: underline;
}

footer.site-footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

@media (min-width: 480px) {
  body {
    font-size: 18px;
  }

  h1.title {
    font-size: 30px;
  }

  .card {
    padding: 36px 32px;
  }
}
