/* Night Sky and Stars - the download site. Same night palette and type as the app. */
:root {
  --ink: #060914;
  --deep: #0d1530;
  --star: #eef1fb;
  --brass: #f3c969;
  --muted: #8e98b8;
  --line: rgba(190, 205, 255, 0.12);
  --display: 'Alef', 'Heebo', system-ui, sans-serif;
  --sans: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--star); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brass); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 10px; }

/* one language at a time */
html[lang="he"] [lang="en"], html[lang="en"] [lang="he"] { display: none !important; }

/* top bar */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); background: linear-gradient(rgba(6, 9, 20, 0.85), rgba(6, 9, 20, 0)); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--star); text-decoration: none; font: 700 18px/1 var(--display); }
.mark img { width: 34px; height: 34px; border-radius: 9px; }
.lang { border: 1px solid var(--line); background: rgba(13, 21, 48, 0.7); color: var(--star); font: 500 14px/1 var(--sans); padding: 9px 14px; border-radius: 999px; cursor: pointer; }

/* hero: the night sky over the hills, the phone standing in it */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; background: radial-gradient(120% 90% at 70% 20%, #16265a 0%, #0a1230 45%, var(--ink) 80%); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto; padding: 108px 20px 120px; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; }
.hero h1 { margin: 0 0 22px; font: 700 clamp(52px, 8.6vw, 108px)/0.94 var(--display); letter-spacing: -0.01em; color: var(--star); text-align: start; }
html[dir="rtl"] .hero h1 { text-align: right; }
.lede { margin: 0 0 30px; max-width: 30em; font-size: clamp(18px, 2.1vw, 21px); color: #d3daf0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.small { margin: 0; color: var(--muted); font-size: 15px; }
.hills { position: absolute; z-index: 1; inset: auto 0 0 0; width: 100%; height: 22vh; min-height: 120px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(243, 201, 105, 0.55); background: rgba(13, 21, 48, 0.72); color: var(--star); font: 500 17px/1 var(--sans); text-decoration: none; }
.btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: linear-gradient(#f7d888, #e7b84d); color: #1b1404; border-color: transparent; box-shadow: 0 10px 30px rgba(243, 201, 105, 0.22); font-weight: 700; }
.btn.wide { width: 100%; }
.btn .size { font-weight: 400; opacity: 0.75; font-size: 14px; }

/* phone frame around real screenshots */
.phone { margin: 0; justify-self: center; width: min(310px, 78vw); padding: 9px; border-radius: 42px; background: #0f1730; border: 1px solid rgba(243, 201, 105, 0.28); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.6) inset; }
.phone img { border-radius: 34px; }
.hero-phone { transform: translateY(40px); }

/* what it does */
.feature { width: min(1040px, 100%); margin: 0 auto; padding: 96px 20px; display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 64px; }
.feature.flip .phone { order: 2; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h2, .install h2 { margin: 0 0 16px; font: 700 clamp(30px, 4.2vw, 46px)/1.08 var(--display); text-wrap: balance; }
.feature p { margin: 0; max-width: 30em; color: #cbd3ea; font-size: 18px; }

/* install */
.install { background: linear-gradient(var(--ink), var(--deep)); padding: 96px 20px 110px; }
.install > h2 { width: min(1040px, 100%); margin: 0 auto 36px; }
.ways { width: min(1040px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1.15fr 0.85fr; gap: 20px; align-items: start; }
.way { padding: 26px 24px; border-radius: 24px; background: rgba(6, 9, 20, 0.55); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.way.mine { border-color: rgba(243, 201, 105, 0.6); box-shadow: 0 0 0 4px rgba(243, 201, 105, 0.08); }
.way h3 { margin: 0; font: 700 26px/1.1 var(--display); }
.way ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; color: #d3daf0; }
.way ol li::marker { color: var(--brass); font-weight: 700; }
.way p { margin: 0; color: #cbd3ea; }
.way .note { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ico { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.foot { padding: 36px 20px calc(40px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot p { margin: 0 auto 10px; max-width: 60em; }
.credits { font-size: 12.5px; opacity: 0.85; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 96px 20px 0; gap: 34px; text-align: start; }
  .hero-phone { transform: none; margin-bottom: -60px; width: min(280px, 72vw); }
  .hills { height: 120px; }
  .feature { grid-template-columns: 1fr; gap: 34px; padding: 72px 20px; }
  .feature .phone, .feature.flip .phone { order: 2; width: min(270px, 72vw); }
  .ways { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
