:root {
  color-scheme: light;
  --bg: #fdf4e8;
  --bg-soft: #f8ead9;
  --bg-warm: #f3ddc4;
  --card: #ffffff;
  --text: #2c1810;
  --muted: #7a6656;
  --accent: #a65f3d;
  --accent-strong: #8a4a2c;
  --border: #ead9cb;
  --shadow: 0 20px 55px rgba(107, 63, 42, 0.16);
  --shadow-soft: 0 8px 22px rgba(107, 63, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hebrew: one clean sans-serif everywhere (matches body / section-sub text) */
html[lang="he"] body {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="he"] .hero h1,
html[lang="he"] .section h2,
html[lang="he"] .feature h3,
html[lang="he"] .brand,
html[lang="he"] .hero-badge,
html[lang="he"] .hero-lead,
html[lang="he"] .section-sub,
html[lang="he"] .feature p {
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="he"] .hero h1 {
  font-weight: 700;
}

html[lang="he"] .section h2 {
  font-weight: 700;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

.container {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: 24px;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 80% -10%,
      var(--bg-warm),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding-block: clamp(44px, 7vw, 92px);
  min-height: calc(100dvh - 67px);
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  gap: 44px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

@media (max-width: 1023px) {
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-lead {
    max-width: min(48ch, 100%);
    margin-inline: auto;
  }

  .hero .store-links {
    justify-content: center;
    direction: ltr;
  }

  .hero-art {
    padding-bottom: 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(166, 95, 61, 0.12);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 14px;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero-lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  margin: 0 0 30px;
  max-width: min(48ch, 100%);
}

.hero-art {
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(340px, 82%);
  height: auto;
  border-radius: 30px;
  filter: drop-shadow(0 26px 50px rgba(107, 63, 42, 0.28));
}

/* Store badges — matching PNG assets (564×168, same aspect ratio) */
.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: block;
  line-height: 0;
  transition: opacity 0.15s ease, translate 0.15s ease;
}

.store-badge:hover {
  opacity: 0.88;
  translate: 0 -2px;
}

.store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* Sections */
.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-alt {
  background: var(--bg-soft);
}

.section h2 {
  font-size: clamp(27px, 3.6vw, 38px);
  margin: 0 0 12px;
  text-align: center;
  font-weight: 800;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 46px;
  max-width: 58ch;
  font-size: 17px;
}

/* Features */
.features {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(166, 95, 61, 0.12);
  font-size: 27px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Screenshots — real App Store marketing images */
.shots {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(230px, 30vw, 300px);
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

/* CTA */
.cta {
  text-align: center;
}

.cta-card {
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 60px);
  box-shadow: var(--shadow);
}

.cta .store-links {
  justify-content: center;
  margin-top: 28px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 34px;
  color: var(--muted);
  font-size: 14px;
  background: var(--bg-soft);
}

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

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Deep link card */
.deeplink-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.card {
  width: min(100%, 520px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: start;
}

.card .badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(166, 95, 61, 0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.card h1 {
  margin: 16px 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(166, 95, 61, 0.08);
}

.code {
  display: inline-flex;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(166, 95, 61, 0.16);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.actions .primary,
.actions .secondary {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.card .store-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.card .store-badge img {
  height: 45px;
}

.footer-text {
  margin-top: 18px;
  font-size: 13px;
}

.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;
}

[hidden] {
  display: none !important;
}
