/* Manager Everywhere: shared styles for the Hebrew (/) and English (/en/) pages.
   Text direction comes from <html dir>, so nothing here is RTL- or LTR-specific. */

/* Heebo, self-hosted (SIL OFL, see fonts/OFL-Heebo.txt). Variable font: one file per script covers 100-900. */
@font-face {
  font-family: "Heebo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/heebo-hebrew-wght-normal.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/heebo-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Layout: sealed package → one narrow column: headline, the mask, two download buttons, one challenge line. Single navy brand look. */
:root {
  --navy: #291155;
  --navy-deep: #1a0b38;
  --navy-soft: #35196b;
  --ink: #ffffff;
  --muted: #cbbdf0;
  --pink: #e31d74;
  --lav: #b47dff;
  --line: rgba(203, 189, 240, .25);
  --font: "Heebo", "Arial Hebrew", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.5; }
body.locked { overflow: hidden; }
.wrap {
  max-width: 520px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 36px 40px;
  display: grid; gap: 22px; justify-items: center; text-align: center;
}
h1 { margin: 0; font-weight: 900; font-size: clamp(38px, 10vw, 58px); line-height: .98; letter-spacing: -0.03em; text-wrap: balance; }
.pk { color: var(--pink); }
.sub { margin: 0; color: var(--muted); font-weight: 700; max-width: 34ch; }

/* Kept to ~45% of the screen height so a thumb can always scroll past it on a phone. */
.stage { position: relative; width: 100%; max-width: min(380px, calc(45svh * .75)); }
#editor {
  width: 100%; aspect-ratio: 3 / 4; height: auto; display: block;
  border-radius: 20px; background: var(--navy-deep);
  touch-action: pan-y;
  box-shadow: 0 24px 60px rgba(10, 4, 26, .55);
}
.stage.editing #editor { touch-action: none; cursor: grab; }
.stage.editing #editor:active { cursor: grabbing; }
.tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--pink); color: #fff; font-weight: 900; font-size: 13px;
  padding: 4px 12px; border-radius: 99px;
}
.zoom { position: absolute; bottom: 12px; left: 12px; display: flex; gap: 6px; }
.zoom button {
  appearance: none; border: 0; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(26, 11, 56, .8); color: #fff; font: 900 20px var(--font); cursor: pointer;
}
.hint { margin: -8px 0 0; font-size: 14px; color: var(--muted); }
.stickers {
  width: 100%; max-width: 380px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding: 12px; border-radius: 16px;
  background: #efeae2 radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.5px) 0 0 / 16px 16px;
}
.stickers img { width: 100%; height: auto; display: block; }
.stickers img[role=button] { cursor: pointer; }
.stk-label { margin: 0 0 -12px; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--lav); }

.btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 18px;
  padding: 15px 26px; border-radius: 999px; width: 100%; max-width: 380px;
  background: var(--pink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn:focus-visible, .zoom button:focus-visible, .link:focus-visible, .check input:focus-visible, .stickers img:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; }
.actions { display: grid; gap: 10px; width: 100%; justify-items: center; }
.link { background: none; border: 0; color: var(--muted); font: 700 15px var(--font); text-decoration: underline; cursor: pointer; padding: 4px; }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.check { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }
.fine { margin: 0; font-size: 13px; color: var(--muted); opacity: .8; }
.msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--lav); }
.msg.err { color: #ff8db9; }

.challenge {
  width: 100%; display: grid; gap: 6px; padding: 22px 20px; border-radius: 20px;
  background: var(--pink);
}
.challenge b { font-weight: 900; font-size: 26px; line-height: 1.05; }
.challenge span { font-weight: 700; font-size: 15px; }
.challenge span b { font-size: inherit; font-weight: 900; }
.challenge i { font-style: normal; font-weight: 900; color: var(--navy); }
.real { width: 100%; display: grid; gap: 12px; padding: 24px 22px; border-radius: 20px; background: var(--navy-soft); box-shadow: inset 0 0 0 2px var(--line); }
.real b { font-weight: 900; font-size: 24px; line-height: 1.15; }
.real b em { font-style: normal; color: var(--pink); }
.real span { font-weight: 700; font-size: 15px; color: var(--muted); }
.real a { justify-self: center; text-decoration: none; }
.logo { width: 110px; height: auto; opacity: .95; }

/* Sealed package */
.pkg {
  position: fixed; inset: 0; z-index: 50; background: var(--navy-deep);
  display: grid; place-items: center; align-content: center; gap: 22px; text-align: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  transition: opacity .5s ease .45s, visibility 0s linear .95s; overflow: hidden;
}
.pkg.open { opacity: 0; visibility: hidden; }
.pkg .arrived { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--lav); }
.box { position: relative; width: min(340px, 82vw); aspect-ratio: 1.25; }
.box .body {
  position: absolute; inset: 22% 0 0 0; border-radius: 6px;
  background: #c9a477 repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 2px, transparent 2px 7px);
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.08), 0 30px 60px rgba(0,0,0,.45);
}
.box .lid {
  position: absolute; inset: 10% -3% auto -3%; height: 18%; border-radius: 6px;
  background: #d6b285; box-shadow: 0 6px 0 rgba(0,0,0,.12);
  transform-origin: 85% 100%; transition: transform .6s cubic-bezier(.3,1.4,.5,1); z-index: 2;
}
.pkg.open .lid { transform: translate(-8%, -160%) rotate(-24deg); }
.tape {
  position: absolute; left: 0; right: 0; top: 50%; height: 15%; transform: translateY(-50%);
  background: var(--pink); color: #fff; overflow: hidden; white-space: nowrap;
  font-weight: 900; font-size: clamp(11px, 3.4vw, 14px); display: flex; align-items: center;
}
.tape span { padding-inline: 6px; }
.lid .tape { height: 60%; }
.box .body .tape { top: 24%; }
.label {
  position: absolute; right: 7%; bottom: 9%; width: 52%;
  background: #fffdf7; color: var(--navy); border-radius: 4px; padding: 8px 10px;
  text-align: start; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.35; font-weight: 700;
  transform: rotate(-2deg); box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.label b { display: block; font-weight: 900; }
.stamp {
  position: absolute; left: 8%; bottom: 14%;
  border: 3px solid #b3123f; color: #b3123f; border-radius: 6px; padding: 2px 10px;
  font-weight: 900; font-size: clamp(14px, 4.4vw, 20px); transform: rotate(-14deg); opacity: .85;
}
.pkg h2 { margin: 0; font-weight: 900; font-size: clamp(34px, 8vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.pkg .btn { width: auto; }
@media (prefers-reduced-motion: reduce) { .pkg, .box .lid, .btn { transition: none; } }

/* Face-size slider (shown after upload) */
.size { width: 100%; max-width: 380px; display: flex; align-items: center; gap: 12px; margin-top: -8px; }
.size span { font-size: 14px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.size input { flex: 1; height: 36px; accent-color: var(--pink); }

.legal { margin-top: -8px; }


/* Tap-to-copy hint and feedback */
.tap-hint { margin: -8px 0 0; max-width: 34ch; font-size: 15px; font-weight: 800; color: var(--lav); }
.stickers img.copied { animation: copied .6s ease; }
@keyframes copied { 0% { transform: scale(1); } 40% { transform: scale(1.12); filter: drop-shadow(0 0 10px var(--pink)); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .stickers img.copied { animation: none; outline: 3px solid var(--pink); } }

/* One step before the stickers: email, role, terms */
.unlock { width: 100%; max-width: 420px; scroll-margin: 24px; }
.unlock form { display: grid; gap: 12px; text-align: start; padding: 24px 20px 20px; border-radius: 22px; background: var(--navy-soft); box-shadow: 0 0 0 3px var(--pink), 0 24px 60px rgba(10,4,26,.5); }
.unlock .step { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: var(--pink); }
.unlock h2 { margin: 0; font-weight: 900; font-size: 26px; line-height: 1.1; }
.unlock p { margin: 0; color: var(--muted); font-weight: 700; font-size: 15px; }
.unlock input[type=email], .unlock input[type=text] { width: 100%; font: 700 17px var(--font); padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--navy-deep); color: #fff; }
.unlock input[type=email]:focus, .unlock input[type=text]:focus { outline: none; border-color: var(--lav); }
.unlock input[type=email] { direction: ltr; text-align: left; }
.unlock input[type=email]:placeholder-shown { direction: inherit; text-align: start; }
.unlock .check { justify-content: flex-start; align-items: flex-start; text-align: start; line-height: 1.4; }
.unlock .check input { flex: none; margin-top: 2px; }
.unlock a, .legal a { color: var(--ink); }
.unlock .btn { max-width: none; }
/* Honeypot for bots. Kept inside the form box: pushing it off-screen widens RTL pages. */
.unlock form { position: relative; }
.hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.gerr { min-height: 1.3em; margin: 0; color: #ff8db9; font-size: 14px; font-weight: 700; }
.roles { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 800; color: #fff; }
.roles label { flex: 1 1 auto; cursor: pointer; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles span { display: block; text-align: center; padding: 10px 12px; border-radius: 999px; font-size: 15px; font-weight: 800; color: var(--muted); box-shadow: inset 0 0 0 2px var(--line); }
.roles input:checked + span { background: var(--pink); color: #fff; box-shadow: none; }
.roles input:focus-visible + span { outline: 3px solid var(--lav); outline-offset: 2px; }
.stickers { position: relative; }
.stickers.locked img { filter: blur(7px) saturate(.6); pointer-events: none; }
.stickers.locked::after { content: attr(data-lock); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 17px; color: var(--navy); background: rgba(239,234,226,.35); border-radius: 16px; }
.how { font-size: 15px; color: var(--lav); margin-top: -10px; }

/* How-to demo: a little phone that loops tap → copied → WhatsApp → hold → Paste → sticker */
.demo { position: fixed; inset: 0; z-index: 70; background: rgba(10,4,26,.78); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.demo-card { width: 100%; max-width: 360px; display: grid; gap: 14px; justify-items: center; padding: 22px 18px 18px; border-radius: 22px; background: var(--navy-soft); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 2px var(--line); text-align: center; }
.demo-card h3 { margin: 0; font-weight: 900; font-size: 24px; }
.demo-card .btn { max-width: none; }
.phone { position: relative; width: 210px; height: 370px; border-radius: 30px; background: #111; padding: 10px; box-shadow: 0 0 0 3px #2b2b35, 0 20px 40px rgba(0,0,0,.45); overflow: hidden; }
.phone > * { position: absolute; inset: 10px; border-radius: 22px; overflow: hidden; }
.scr { background: var(--navy); animation: dS1 10s infinite; }
.ph-title { margin: 14px 0 8px; font-size: 12px; font-weight: 900; color: var(--lav); }
.ph-grid { margin: 0 10px; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 12px; background: #efeae2; }
.ph-grid img { width: 100%; aspect-ratio: 1; }
.toast { position: absolute !important; inset: auto 0 70px !important; margin: 0 auto; width: max-content; padding: 6px 16px; border-radius: 99px; background: var(--pink); color: #fff; font-weight: 900; font-size: 14px; animation: dToast 10s infinite; }
.chat { background: #efeae2; display: grid; grid-template-rows: 42px 1fr 50px; animation: dChat 10s infinite; }
.wa-head { background: #075e54; color: #fff; font-size: 13px; font-weight: 800; display: grid; align-items: center; padding-inline: 14px; text-align: start; }
.wa-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; align-items: flex-start; }
.b { max-width: 75%; padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #111; background: #fff; }
.b.out { align-self: flex-end; background: #d9fdd3; }
.b.short { padding: 3px 8px; }
.dstk.sent { width: 92px; height: 92px; align-self: flex-end; animation: dSent 10s infinite; }
.wa-input { margin: 8px; border-radius: 99px; background: #fff; display: grid; align-items: center; padding-inline: 14px; font-size: 12px; color: #8a8a8a; text-align: start; }
.paste { position: absolute; bottom: 58px; inset-inline-start: 22px; padding: 7px 14px; border-radius: 10px; background: #2d2d33; color: #fff; font-size: 13px; font-weight: 800; animation: dPaste 10s infinite; }
.finger { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(227,29,116,.9), 0 6px 14px rgba(0,0,0,.35); }
.f1 { top: 64px; inset-inline-start: 28px; animation: dF1 10s infinite; }
.f2 { bottom: 16px; left: calc(50% - 17px); animation: dF2 10s infinite; }
.ring { position: absolute; bottom: 9px; left: calc(50% - 24px); width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--pink); animation: dRing 10s infinite; }
.f3 { bottom: 56px; inset-inline-start: 48px; animation: dF3 10s infinite; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; width: 100%; text-align: start; }
.steps li { padding: 8px 12px; border-radius: 12px; font-size: 15px; font-weight: 800; color: var(--muted); opacity: .45; }
.steps .c1 { animation: dC1 10s infinite; } .steps .c2 { animation: dC2 10s infinite; } .steps .c3 { animation: dC3 10s infinite; } .steps .c4 { animation: dC4 10s infinite; }
@keyframes dS1 { 0%, 24% { opacity: 1; } 27%, 100% { opacity: 0; } }
@keyframes dChat { 0%, 24% { opacity: 0; } 27%, 100% { opacity: 1; } }
@keyframes dF1 { 0%, 2% { opacity: 0; transform: scale(1.3); } 6% { opacity: 1; transform: scale(1); } 9% { transform: scale(.75); } 12%, 22% { opacity: 1; transform: scale(1); } 25%, 100% { opacity: 0; } }
@keyframes dToast { 0%, 10% { opacity: 0; transform: translateY(8px); } 12%, 23% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; } }
@keyframes dF2 { 0%, 28% { opacity: 0; transform: scale(1.3); } 31% { opacity: 1; transform: scale(.85); } 46% { opacity: 1; transform: scale(.85); } 49%, 100% { opacity: 0; transform: scale(.85); } }
@keyframes dRing { 0%, 31% { opacity: 0; transform: scale(.3); } 33% { opacity: 1; transform: scale(.4); } 45% { opacity: 1; transform: scale(1); } 49%, 100% { opacity: 0; transform: scale(1); } }
@keyframes dPaste { 0%, 45% { opacity: 0; transform: translateY(6px); } 48%, 62% { opacity: 1; transform: none; } 65%, 100% { opacity: 0; } }
@keyframes dF3 { 0%, 51% { opacity: 0; transform: scale(1.3); } 55% { opacity: 1; transform: scale(1); } 58% { transform: scale(.75); } 61% { opacity: 1; transform: scale(1); } 64%, 100% { opacity: 0; } }
@keyframes dSent { 0%, 63% { opacity: 0; transform: scale(.2); } 67% { opacity: 1; transform: scale(1.12); } 70%, 97% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes dC1 { 0%, 25% { opacity: 1; color: #fff; background: rgba(227,29,116,.25); } 27%, 100% { opacity: .45; } }
@keyframes dC2 { 0%, 25% { opacity: .45; } 27%, 48% { opacity: 1; color: #fff; background: rgba(227,29,116,.25); } 50%, 100% { opacity: .45; } }
@keyframes dC3 { 0%, 48% { opacity: .45; } 50%, 63% { opacity: 1; color: #fff; background: rgba(227,29,116,.25); } 65%, 100% { opacity: .45; } }
@keyframes dC4 { 0%, 63% { opacity: .45; } 65%, 100% { opacity: 1; color: #fff; background: rgba(227,29,116,.25); } }
@media (prefers-reduced-motion: reduce) {
  .phone { display: none; }
  .steps li { animation: none !important; opacity: 1; color: #fff; }
}

/* "More below" cue */
.scroll-cue { position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); padding: 11px 18px; border: 0; border-radius: 999px; cursor: pointer; background: #fff; color: var(--navy); font: 800 14px var(--font); box-shadow: 0 10px 30px rgba(10,4,26,.45); animation: cueIn .4s ease both, cueBob 1.6s ease-in-out .4s infinite; }
.scroll-cue span { font-size: 18px; line-height: 1; }
@keyframes cueIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes cueBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -7px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }

/* Cookie banner: Accept and Reject are the same size and style (no nudging) */
.cookie { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; display: grid; gap: 10px; padding: 14px 16px max(14px, env(safe-area-inset-bottom, 0px)); background: #fff; color: var(--navy); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(10,4,26,.45); text-align: start; }
.cookie p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.cookie a { color: var(--navy); }
.ck-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-btn { appearance: none; cursor: pointer; padding: 11px 12px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 800 15px var(--font); }
.ck-btn:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
body.ck-open .scroll-cue { display: none; }
.link.inline { padding: 0; font-size: inherit; color: inherit; opacity: 1; }
