/* ALIBI website. Same world as the app: dusk-to-ink ground, Rubik, gold and
   crimson accents, chunky "physical" buttons. One column of sections. */
:root {
  color-scheme: dark;
  --ink: #0a0a18;
  --dusk: #170b33;
  --violet: #3a1a78;
  --card: #17172a;
  --line: #2e2e4a;
  --text: #ffffff;
  --soft: #d9d9ea;
  --mute: #b9b9d0;
  --gold: #ffd23f;
  --blue: #8fb8ff;
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  background-image: radial-gradient(90% 900px at 50% 0%, var(--violet) 0%, var(--dusk) 48%, var(--ink) 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: #ffe58a; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px; }
.top img { width: 92px; height: auto; display: block; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-weight: 500; font-size: 15px; }
.top nav a { color: var(--soft); text-decoration: none; padding: 12px 0; }
.top nav a:hover { color: var(--text); }
.top nav a.btn { padding: 0 18px; color: #fff; }
.lang { font: inherit; font-weight: 700; color: var(--text); background: var(--card); border: 2px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 16px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; padding: 0 26px; border-radius: 20px; font-weight: 900; font-size: 19px; text-decoration: none; border: 2px solid transparent; }
.btn small { display: block; font-size: 12px; font-weight: 500; line-height: 1.2; }
.btn svg { flex: none; }
.btn-light { background: #fff; color: #17172a; box-shadow: 0 6px 0 #b9b9d0; }
.btn-light:hover { color: #17172a; }
.btn-dark { background: var(--card); color: #fff; border-color: var(--line); box-shadow: 0 6px 0 #05050c; }
.btn-dark:hover { color: #fff; }
.btn-crimson { background: linear-gradient(180deg, #ff5b6e 0%, #d61f3d 100%); color: #fff; border-color: #ff9aa6; box-shadow: 0 6px 0 #8a0f25; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn-crimson:hover { color: #fff; }
.btn-violet { background: linear-gradient(180deg, #7c5cff 0%, #5b2fe0 100%); color: #fff; border-color: #b3a1ff; box-shadow: 0 6px 0 #37189a; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.btn-violet:hover { color: #fff; }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.btn[aria-disabled='true'] { opacity: 0.6; cursor: default; pointer-events: none; }
.btn-small { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; box-shadow: 0 4px 0 #37189a; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; padding-block: 28px 72px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: 2.5px; color: var(--gold); text-transform: uppercase; }
h1 { margin: 0; font-weight: 900; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; text-wrap: balance; }
h2 { margin: 0; font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; text-wrap: balance; }
.lead { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--soft); }
.note { font-size: 14px; color: var(--mute); margin: 0; }

.phone { flex: 0 1 340px; min-width: 260px; margin: 0 auto; border-radius: 44px; border: 3px solid var(--line); background: var(--ink); padding: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(255, 255, 255, 0.03); transform: rotate(2deg); }
.screen { border-radius: 32px; overflow: hidden; background: radial-gradient(120% 50% at 50% 0%, #2a1458 0%, #120b28 50%, var(--ink) 100%); padding: 18px 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.4; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--soft); }
.timer b { font-weight: 900; font-size: 18px; color: var(--gold); font-variant-numeric: tabular-nums; }
.mod { background: linear-gradient(180deg, #2a1f0a 0%, var(--card) 100%); border: 2px solid var(--gold); border-radius: 16px; padding: 9px 12px; }
.mod b, .bubble b { display: block; font-weight: 900; font-size: 11px; }
.mod b { letter-spacing: 1px; color: var(--gold); }
.line { display: flex; align-items: flex-end; gap: 8px; }
.line img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; flex: none; }
.bubble { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 8px 11px; }
.bubble b { color: var(--blue); }
.mine { align-self: flex-end; background: #2f6bff; border-radius: 16px 16px 4px 16px; padding: 8px 12px; font-weight: 500; }
.chips { display: flex; gap: 6px; }
.chips span { flex: 1; text-align: center; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 4px; font-size: 11px; font-weight: 700; }

/* Sections */
section { padding-block: 56px; }
.sub { margin: 10px 0 0; max-width: 40em; color: var(--soft); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.steps li { background: var(--card); border: 2px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps img { width: 72px; height: 72px; object-fit: contain; }
.steps h3 { margin: 0; font-weight: 900; font-size: 20px; line-height: 1.2; }
.steps p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--soft); }

.cast { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.cast-copy { flex: 1 1 340px; min-width: 0; }
.cast-copy p { margin: 12px 0 0; max-width: 32em; color: var(--soft); }
.faces { flex: 1 1 380px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 10px; }
.faces li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.faces img { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; object-fit: cover; }

.panel { background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.panel > div { flex: 1 1 320px; min-width: 0; }
.panel h2 { font-size: clamp(24px, 3.2vw, 32px); }
.panel p { margin: 10px 0 0; max-width: 34em; font-size: 16px; color: var(--soft); }
.langs { flex: 1 1 320px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.langs li { border: 2px solid var(--line); background: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 16px; }

.closing { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-block: 56px 72px; }
.closing img { width: 220px; height: auto; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55)); }
.closing h2 { font-size: clamp(30px, 4.6vw, 48px); }
.closing .stores { justify-content: center; }

footer { border-top: 2px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 22px 30px; font-size: 14px; color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { padding: 12px 0; display: inline-block; }

/* Invite page */
.invite { max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 48px 22px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.invite .logo { width: 170px; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.55)); }
.invite h1 { margin-top: 6px; font-size: 30px; line-height: 1.13; }
.invite .eyebrow { margin-top: 14px; font-size: 12px; }
.invite .lead { margin-top: 8px; font-size: 15px; }
.code { margin-top: 20px; width: 100%; background: var(--card); border: 2px solid var(--gold); border-radius: 22px; padding: 14px 16px; box-shadow: 0 0 26px rgba(255, 210, 63, 0.18); }
.code span { display: block; font-weight: 700; font-size: 11px; letter-spacing: 2px; color: var(--mute); }
.code strong { display: block; font-weight: 900; font-size: 25px; letter-spacing: 1px; color: var(--gold); overflow-wrap: anywhere; direction: ltr; }
.code button { margin-top: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); background: var(--ink); border: 2px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.invite .btn-crimson { margin-top: 18px; width: 100%; font-size: 20px; border-radius: 22px; }
.or { margin: 22px 0 14px; width: 100%; display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: var(--line); }
.invite .stores { width: 100%; flex-wrap: nowrap; gap: 12px; }
.invite .stores .btn { flex: 1; min-height: 58px; padding: 0 12px; font-size: 17px; }
.todo { list-style: none; margin: 22px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.todo li { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; color: var(--soft); }
.todo li b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.invite .back { margin-top: auto; padding-top: 24px; font-size: 13px; color: var(--mute); }

@media (max-width: 520px) {
  .faces { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; }
  .faces li { font-size: 12px; }
  .panel { padding: 20px; }
  .phone { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active { transform: none; }
}

/* Terms and Privacy: long text in one readable column. Both languages are in
   the page; the one matching <html lang> is shown. */
[data-lang] { display: none; }
html[lang='en'] [data-lang='en'], html[lang='he'] [data-lang='he'] { display: block; }
.legal { max-width: 760px; padding-block: 24px 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--soft); font-size: 16px; line-height: 1.65; }
.legal p { margin: 12px 0 0; }
.legal ul { margin: 12px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal strong { color: var(--text); }
.legal .updated { color: var(--mute); font-size: 14px; }
