/*
 * סלסלה: עיצוב האתר. מקור הצבעים: src/theme/colors.ts (תמה בהירה, כמו האפליקציה שנעולה על בהיר).
 * forest = צבע המותג (לוגו, כותרות). ember = רק לפעולה ראשית. sun = הניצוצות של הלוגו.
 */
:root {
  --surface: #f7f2e8;
  --raised: #ffffff;
  --sunken: #efe7d8;
  --line: #d9cdb8;
  --ink: #1f2a22;
  --ink-muted: #5a665a;
  --ember: #c2410c;
  --on-ember: #ffffff;
  --ember-soft: #fde4d3;
  --pine: #2f6b4f;
  --pine-soft: #dcefe3;
  --sun: #f2b53a;
  --spark: #f6c445;
  --lake: #2a6f97;
  --forest: #1f5a37;
  --forest-soft: #e0eedf;
  --leaf: #2f7d4a;
  --tint-green: #e4f1dc;
  --tint-peach: #fde9d6;
  --tint-lavender: #ece4f4;
  --tint-yellow: #fbf0d4;
  --tint-pink: #f9e3e1;
  --tint-sky: #e1eff4;
  --shadow-card: 0 6px 16px rgba(59, 47, 30, 0.07);
  --shadow-float: 0 18px 40px rgba(59, 47, 30, 0.16);
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Rubik, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ---------- עמודים פשוטים (פרטיות, מחיקת חשבון, הצטרפות) ---------- */
.wrap { max-width: 560px; margin: 0 auto; padding: 40px 16px 40px; text-align: center; }
.logo { width: 96px; height: 96px; margin: 0 auto 12px; }
.wrap > h1 { font-size: 30px; font-weight: 800; color: var(--forest); margin: 8px 0; }
.wrap h2 { font-size: 19px; font-weight: 700; color: var(--forest); margin: 0 0 8px; }
.lead { color: var(--ink-muted); font-size: 17px; margin: 0 0 24px; }
.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; text-align: right; margin-bottom: 24px; box-shadow: var(--shadow-card);
}
.card ol { margin: 0; padding-inline-start: 20px; }
.card li { margin: 6px 0; }
.code {
  font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--forest);
  background: var(--forest-soft); border: 2px dashed var(--forest); border-radius: var(--r-lg);
  padding: 14px; margin: 0 0 16px; direction: ltr;
}
.btn {
  display: block; padding: 14px 20px; border-radius: 999px; text-decoration: none; font-weight: 500;
  margin: 10px 0; background: var(--sunken); color: var(--ink);
}
.btn.primary { background: var(--ember); color: var(--on-ember); box-shadow: 0 6px 14px rgba(194, 65, 12, 0.28); }
.stores { margin-top: 24px; }
footer { margin-top: 32px; color: var(--ink-muted); font-size: 14px; }
footer a { color: var(--forest); }
.doc { text-align: right; }
.doc h2 { margin-top: 28px; }
.doc p, .doc li { color: var(--ink); }
.muted { color: var(--ink-muted); font-size: 14px; }

/* ---------- כפתורי חנויות ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; direction: ltr;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 184px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge small { font-size: 11px; opacity: .8; }
.badge b { font-size: 18px; font-weight: 500; }
.wrap .badges { justify-content: center; }

/* ---------- דף הבית ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.topbar { padding: 18px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand b { font-size: 28px; font-weight: 800; color: var(--forest); letter-spacing: -0.5px; }
.top-cta {
  font-weight: 500; font-size: 15px; text-decoration: none; color: var(--forest);
  background: var(--forest-soft); padding: 9px 18px; border-radius: 999px;
}

.hero { padding: 24px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: var(--forest-soft); left: -140px; top: 40px; z-index: 0;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  color: var(--forest); background: var(--raised); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px var(--pine-soft); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; color: var(--forest); letter-spacing: -1px; }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 2px; height: 12px; z-index: -1;
  background: var(--spark); opacity: .55; border-radius: 6px;
}
.hero p.sub { font-size: 19px; color: var(--ink-muted); margin: 18px 0 28px; max-width: 520px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-muted); font-size: 15px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts svg { width: 18px; height: 18px; stroke: var(--leaf); }

.stage { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.phone {
  width: 280px; border-radius: 42px; background: var(--ink); padding: 10px;
  box-shadow: var(--shadow-float); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 20px; border-radius: 12px; background: var(--ink); z-index: 2;
}
.phone img { border-radius: 33px; width: 100%; background: var(--surface); border-top: 30px solid var(--surface); }
.stage .basket { position: absolute; width: 230px; bottom: -6px; left: calc(50% - 280px); filter: drop-shadow(0 14px 18px rgba(59, 47, 30, .18)); }
.float {
  position: absolute; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 14px; animation: bob 5s ease-in-out infinite;
}
.float b { display: block; font-weight: 500; font-size: 15px; }
.float small { color: var(--ink-muted); }
.float.taken { top: 90px; right: calc(50% - 250px); border-right: 5px solid var(--sun); }
.float.fresh { top: 300px; left: calc(50% + 100px); background: var(--pine-soft); border-color: transparent; animation-delay: -2.5s; }
.av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.chk { width: 26px; height: 26px; border-radius: 8px; background: var(--pine); display: grid; place-items: center; flex: none; }
.chk svg { width: 16px; height: 16px; stroke: #fff; }
@keyframes bob { 50% { transform: translateY(-8px); } }

section.block { padding: 72px 0; }
.eyebrow { color: var(--leaf); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.eyebrow svg { width: 18px; height: 18px; fill: var(--spark); stroke: none; }
.block h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--forest); letter-spacing: -.5px; }
.block .intro { color: var(--ink-muted); font-size: 18px; margin: 12px 0 36px; max-width: 620px; }
.center { text-align: center; }
.center .intro { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-card); counter-increment: s; position: relative;
}
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-muted); }
.steps .code-chip {
  display: inline-block; direction: ltr; font-weight: 800; letter-spacing: 4px; color: var(--forest);
  background: var(--forest-soft); border: 1.5px dashed var(--forest); border-radius: 10px; padding: 2px 10px; margin-top: 10px;
}

.events { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.events img { border-radius: var(--r-lg); width: 100%; height: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { border-radius: var(--r-xl); padding: 26px; }
.feat .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--raised); display: grid; place-items: center; margin-bottom: 14px; }
.feat .ic svg { width: 24px; height: 24px; stroke: var(--forest); }
.feat h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--ink); opacity: .8; }
.t-green { background: var(--tint-green); } .t-peach { background: var(--tint-peach); }
.t-lav { background: var(--tint-lavender); } .t-yellow { background: var(--tint-yellow); }
.t-pink { background: var(--tint-pink); } .t-sky { background: var(--tint-sky); }

.league { background: var(--raised); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow-card); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.league .trophy { width: 120px; margin-bottom: 12px; }
.podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; align-items: end; }
.podium div { background: var(--sunken); border-radius: var(--r-lg); padding: 52px 10px 18px; text-align: center; position: relative; }
.podium div.first { background: var(--forest-soft); border: 2px solid var(--forest); padding-top: 62px; padding-bottom: 26px; }
.podium img { position: absolute; width: 56px; top: -34px; left: 50%; transform: translateX(-50%); }
.podium b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.podium .first b { color: var(--forest); }
.podium small { color: var(--ink-muted); font-size: 14px; }

.screens { display: flex; gap: 28px; justify-content: center; }
.screens figure { margin: 0; text-align: center; }
.screens .phone { width: 250px; }
.screens figcaption { margin-top: 16px; font-weight: 500; }
.screens figcaption span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 15px; }

.final { padding: 24px 0 72px; }
.final .box {
  background: var(--forest); color: #fff; border-radius: 32px; padding: 48px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.final .box::after {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); left: -80px; bottom: -160px;
}
.final h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; }
.final p { color: rgba(255, 255, 255, .85); font-size: 18px; margin: 10px 0 24px; }
.final .badge { background: #fff; color: var(--ink); }
.final img { width: 260px; position: relative; z-index: 1; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-muted); font-size: 14px; }
.site-foot .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { color: var(--forest); text-decoration: none; }
.site-foot .brand img { width: 30px; height: 30px; }
.site-foot .brand b { font-size: 20px; }

@media (max-width: 900px) {
  .hero .container, .league { grid-template-columns: 1fr; }
  .hero { padding-bottom: 48px; }
  .hero::before { width: 420px; height: 420px; left: -160px; top: auto; bottom: -60px; }
  .stage { margin-top: 8px; }
  .steps, .features { grid-template-columns: 1fr; }
  .features { gap: 10px; }
  .feat { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: var(--r-lg); }
  .feat .ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; margin: 0; }
  .feat .ic svg { width: 20px; height: 20px; }
  .feat h3 { font-size: 17px; margin-bottom: 2px; }
  .feat p { font-size: 14.5px; line-height: 1.45; }
  .events { grid-template-columns: repeat(3, 1fr); }
  .league { padding: 28px 20px; }
  .final .box { grid-template-columns: 1fr; padding: 32px 22px; text-align: center; }
  .final .badges { justify-content: center; }
  .final img { width: 200px; margin: 0 auto; }
  section.block { padding: 52px 0; }
  .screens { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px; margin: 0 -16px; }
  .screens figure { scroll-snap-align: center; flex: none; }
  .screens .phone { width: 230px; }
}
@media (max-width: 520px) {
  .phone { width: 240px; }
  .stage .basket { width: 150px; left: 0; bottom: -10px; }
  .float.taken { right: 0; top: 60px; }
  .float.fresh { left: auto; right: 4px; top: auto; bottom: 90px; }
  .badge { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  html { scroll-behavior: auto; }
}
