/* Aisle — the site. Tokens are the app's (apps/aisle-expo/src/ui/theme.ts):
   grouped-grey ground, one brand blue, one coral, aisle tints. Display type is
   Outfit (Rubik in Hebrew) at very heavy weights; motion is eased, never springy. */
:root {
  --bg: #F2F3F7; --surface: #fff; --ink: #0F1629; --ink2: #5C6479; --ink3: #9AA1B2; --line: #E4E6ED;
  --brand: #2F62F5; --brand2: #6B4DFF; --brand-soft: #E6EDFF; --coral: #FF7A59; --coral-soft: #FFEDE7;
  --good: #1F9D63; --good-soft: #E3F6EC; --dark: #14161C;
  --display: 'Outfit', 'Rubik', system-ui, sans-serif; --text: 'Outfit', 'Rubik', system-ui, -apple-system, sans-serif;
  --r: 20px; --r-lg: 28px; --r-xl: 40px;
  --shadow: 0 30px 70px -24px rgba(15, 22, 41, .28), 0 10px 24px -12px rgba(15, 22, 41, .12);
  --ease: cubic-bezier(.22, .8, .24, 1);
}
html[lang="he"] { --display: 'Rubik', 'Outfit', system-ui, sans-serif; --text: 'Rubik', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.center { text-align: center; }
.i { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(242, 243, 247, .78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.lockup { display: flex; align-items: center; gap: 10px; font: 800 24px var(--display); letter-spacing: -.5px; }
.mk { width: 36px; height: 36px; border-radius: 10px; }
.links { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; color: var(--ink2); }
.links a:hover { color: var(--ink); }
.lang { border: 0; background: var(--surface); color: var(--ink); font: 700 14px var(--text); height: 38px; min-width: 46px; border-radius: 19px; cursor: pointer; box-shadow: 0 1px 0 var(--line); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 21px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.btn .i { width: 18px; height: 18px; }
@media (max-width: 860px) { .links { display: none; } .lang { margin-inline-start: auto; } }

/* hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 900px; height: 900px; border-radius: 50%; inset-inline-end: -260px; top: -320px; background: radial-gradient(circle, rgba(47, 98, 245, .16), rgba(47, 98, 245, 0) 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px; }
h1 { font: 900 clamp(54px, 7.4vw, 104px)/.95 var(--display); letter-spacing: -.045em; margin: 0; }
h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand), var(--brand2) 55%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="he"] h1 { letter-spacing: -.02em; line-height: 1.02; }
.lead { font-size: 21px; color: var(--ink2); max-width: 30em; margin: 24px 0 30px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 16px; background: var(--ink); color: #fff; font: 700 20px/1.05 var(--text); transition: transform .25s var(--ease); }
.badge:hover { transform: translateY(-2px); }
.badge svg { width: 28px; height: 28px; }
.badge small { display: block; font-weight: 500; font-size: 12px; opacity: .8; }
.badge.light { background: #fff; color: var(--ink); }
.free { color: var(--ink3); font-size: 15px; margin-top: 16px; }

/* the sorter vignette */
.sorter { background: var(--surface); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); position: relative; }
.sorter-head { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-radius: 24px; padding: 18px 20px; margin-bottom: 14px; overflow: hidden; position: relative; }
.sorter-head::after { content: ''; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 255, 255, .1); inset-inline-end: -40px; top: -70px; }
.sh-store { display: flex; align-items: center; gap: 12px; }
.sh-ic { width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.sh-ic svg { width: 24px; height: 24px; color: #fff; }
.sh-store small { display: block; font-size: 12px; opacity: .8; font-weight: 500; }
.sh-store b { font-size: 18px; }
.sh-n b { font: 800 34px var(--display); }
.sorter-list { list-style: none; margin: 0; padding: 0; position: relative; }
.sorter-list li { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px; border-radius: 14px; position: absolute; inset-inline: 0; transition: transform .7s var(--ease), opacity .4s var(--ease); background: var(--surface); }
.sorter-list li .z { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font: 800 14px var(--display); flex: none; }
.sorter-list li .nm { flex: 1; font-weight: 500; }
.sorter-list li .an { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; opacity: 0; transition: opacity .4s var(--ease) .35s; }
.sorter.sorted .sorter-list li .an { opacity: 1; }
.sorter-list li .ck { width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--ink3); flex: none; }
.sorter-btn { margin-top: 8px; width: 100%; height: 46px; border-radius: 14px; border: 0; background: var(--brand-soft); color: var(--brand); font: 700 15px var(--text); cursor: pointer; }

/* sections */
section { padding: 110px 0; }
.band { background: var(--surface); }
.wash { background: linear-gradient(180deg, #EAF6EF, var(--bg)); }
.dark { background: var(--dark); color: #fff; }
.dark p { color: rgba(255, 255, 255, .72); }
h2 { font: 900 clamp(42px, 5.4vw, 72px)/1 var(--display); letter-spacing: -.04em; margin: 16px 0 20px; }
html[lang="he"] h2 { letter-spacing: -.015em; line-height: 1.06; }
section p { font-size: 19px; color: var(--ink2); max-width: 32em; }
.center p { margin-inline: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two.flip > .copy { order: 2; }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 18px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.dark .tag { background: color-mix(in srgb, var(--c) 22%, transparent); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 34px; font-weight: 500; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 7 10 16l-4-4' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
@media (max-width: 900px) { .hero-grid, .two { grid-template-columns: 1fr; gap: 44px; } .two.flip > .copy { order: 0; } section { padding: 80px 0; } }

/* walk-in map */
.map { position: relative; border-radius: var(--r-xl); box-shadow: var(--shadow); aspect-ratio: 520 / 420; }
.streets { width: 100%; height: 100%; display: block; }
.fence { position: absolute; left: 54.8%; top: 41.5%; width: 34%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 3px dashed rgba(31, 157, 99, .5); background: rgba(31, 157, 99, .08); }
.walker { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); border: 5px solid #fff; box-shadow: 0 0 0 10px rgba(47, 98, 245, .18); transform: translate(-50%, -50%); left: 6%; top: 47%; }
.map.go .walker { animation: walk 9s var(--ease) infinite; }
@keyframes walk { 0% { left: 6%; top: 47% } 45% { left: 54.8%; top: 46.5% } 100% { left: 54.8%; top: 46.5% } }
.notif { position: absolute; inset-inline: 6%; top: -26px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 26px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(20px); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); }
.map.go .notif { animation: notif 9s var(--ease) infinite; }
@keyframes notif { 0%, 44% { opacity: 0; transform: translateY(-10px) } 52%, 92% { opacity: 1; transform: none } 100% { opacity: 0; transform: translateY(-6px) } }
.nm { width: 46px; height: 46px; border-radius: 12px; flex: none; }
.n-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink2); gap: 12px; }
.n-top b { letter-spacing: .08em; }
.n-t { display: block; font-size: 17px; }
.n-b { display: block; font-size: 14px; color: var(--ink2); }

/* live feed */
.feed { background: var(--surface); border-radius: var(--r-xl); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px; min-height: 380px; align-content: start; }
.feed .row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; background: var(--bg); animation: in .5s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
.feed .av { width: 38px; height: 38px; border-radius: 19px; color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.feed .row b { flex: 1; font-weight: 500; }
.feed .row small { color: var(--ink3); font-weight: 600; }
.feed .row.done b { color: var(--ink3); text-decoration: line-through; }

/* WhatsApp */
.wa-stage { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 28px; align-items: center; margin-top: 56px; }
.wa-chat { background: #0B141A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.2' fill='%23ffffff10'/%3E%3C/svg%3E"); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 12px; }
.bub { max-width: 86%; padding: 10px 14px 6px; border-radius: 16px; font-size: 17px; line-height: 1.35; color: #111B21; }
.bub.in { background: #fff; border-start-start-radius: 4px; }
.bub.out { background: #D9FDD3; justify-self: end; border-start-end-radius: 4px; }
.bub b { display: block; font-size: 14px; }
.bub i { display: block; text-align: end; font-style: normal; font-size: 12px; color: #667781; }
.wa-arrow { width: 120px; color: #25D366; }
html[dir="rtl"] .wa-arrow { transform: scaleX(-1); }
.wa-chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border-radius: 26px; background: #fff; color: var(--ink); font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.chip.on { opacity: 1; transform: none; }
.chip img { width: 36px; height: 36px; border-radius: 18px; object-fit: contain; background: var(--bg); padding: 4px; }
.chip em { font-style: normal; color: var(--brand); font-weight: 800; }
@media (max-width: 900px) { .wa-stage { grid-template-columns: 1fr; } .wa-arrow { transform: rotate(90deg); justify-self: center; } html[dir="rtl"] .wa-arrow { transform: rotate(90deg); } }

/* scanner */
.scanner { background: var(--dark); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow); color: #fff; }
.cam { position: relative; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #2a2e38, #121419); }
.frame { position: absolute; inset: 16% 14%; border: 5px solid rgba(255, 255, 255, .92); border-radius: 22px; }
.bars { position: absolute; inset: 30% 26% 34%; background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 7px, #fff 7px 8px, transparent 8px 12px, #fff 12px 16px, transparent 16px 19px); opacity: .92; }
.laser { position: absolute; inset-inline: 14%; top: 50%; height: 4px; background: var(--coral); box-shadow: 0 0 22px var(--coral); }
.scanner.go .laser { animation: laser 2.8s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 30% } 50% { top: 64% } }
.code { position: absolute; bottom: 21%; inset-inline: 0; text-align: center; letter-spacing: .3em; font-size: 13px; opacity: .8; }
.found { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 20px; opacity: 0; transition: opacity .5s var(--ease); }
.scanner.go .found { animation: found 5.6s var(--ease) infinite; }
@keyframes found { 0%, 40% { opacity: 0 } 50%, 90% { opacity: 1 } 100% { opacity: 0 } }
.found span:last-child { color: rgba(255, 255, 255, .6); }
.ok { width: 36px; height: 36px; border-radius: 18px; background: var(--good); display: grid; place-items: center; }
.ok svg { width: 20px; height: 20px; color: #fff; }

/* languages */
.lang-sec { background: linear-gradient(180deg, var(--bg), #EEEAFE); }
.word { font: 900 clamp(84px, 15vw, 210px)/1.05 var(--display); letter-spacing: -.05em; height: 1.15em; margin: 10px 0 18px; overflow: hidden; }
.word span { display: inline-block; background: linear-gradient(100deg, var(--brand), #8B5CF6 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.word span.out { opacity: 0; transform: translateY(18%); }
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.langs span { height: 46px; padding: 0 20px; display: inline-flex; align-items: center; border-radius: 23px; background: var(--surface); font-weight: 700; box-shadow: 0 1px 0 var(--line); }

/* basket */
.basket { background: var(--surface); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--shadow); }
.b-head { display: flex; justify-content: space-between; margin-bottom: 14px; color: var(--ink2); }
.b-head b { color: var(--ink); font-size: 20px; }
.b-row { display: grid; grid-template-columns: 110px 1fr 64px; gap: 14px; align-items: center; height: 50px; }
.b-name { font-weight: 600; }
.b-bar { height: 14px; border-radius: 7px; background: var(--bg); overflow: hidden; }
.b-bar i { display: block; height: 100%; width: 0; border-radius: 7px; background: var(--ink3); transition: width 1.1s var(--ease); }
.basket.go .b-bar i { width: calc(var(--w) * 100%); }
.b-row.best .b-bar i { background: var(--good); }
.b-row.best b { color: var(--good); }
.b-row b { text-align: end; }
.b-note { font-size: 13px; color: var(--ink3); margin: 12px 0 0; }

/* screens fan */
.screens { overflow: hidden; }
.fan { position: relative; height: 640px; margin-top: 50px; perspective: 1600px; }
.ph { position: absolute; left: 50%; top: 0; width: 280px; margin: 0 0 0 -140px; aspect-ratio: 390 / 763; border-radius: 40px; overflow: hidden; background: #000; border: 9px solid #0b0b0f; box-shadow: var(--shadow);
  transform: translateX(calc(var(--x) * 0px)) scale(.9); opacity: 0; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fan.go .ph { opacity: 1; transform: translateX(calc(var(--x) * 230px)) translateY(calc(max(var(--x), -1 * var(--x)) * 34px)) rotate(calc(var(--x) * 5deg)) scale(calc(1 - max(var(--x), -1 * var(--x)) * .08)); }
.ph.main { z-index: 3; } .ph[style*="-1"], .ph[style*=":1"] { z-index: 2; }
@media (max-width: 760px) { .fan { height: 480px; } .ph { width: 210px; margin-inline-start: -105px; } .fan.go .ph { transform: translateX(calc(var(--x) * 120px)) translateY(calc(max(var(--x), -1 * var(--x)) * 26px)) rotate(calc(var(--x) * 5deg)) scale(calc(1 - max(var(--x), -1 * var(--x)) * .1)); } }

/* get */
.get { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; }
.get p { color: rgba(255, 255, 255, .85); }
.get .badges { justify-content: center; margin-top: 28px; }
.get-mark { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 40, .3); }
.weblink { display: inline-block; margin-top: 26px; font-weight: 700; color: rgba(255, 255, 255, .9); border-bottom: 2px solid rgba(255, 255, 255, .4); }

.foot { padding: 34px 0 48px; }
.foot .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; color: var(--ink2); font-size: 15px; margin-inline-start: auto; }
.by { color: var(--ink3); font-size: 15px; }

/* calm reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .map.go .walker, .map.go .notif, .scanner.go .laser, .scanner.go .found { animation: none; }
  .map .walker { left: 54.8%; top: 46.5%; } .map .notif, .scanner .found { opacity: 1; transform: none; }
  .sorter-list li, .ph, .word span, .b-bar i { transition: none; }
}

/* Google Play beta: tag on the badge, and the three-step sheet (SquadX's flow) */
.badge { position: relative; }
.beta-tag { position: absolute; top: -9px; inset-inline-end: -8px; padding: 3px 8px; border-radius: 999px; background: var(--coral); color: #fff; font: 700 11px/1 var(--text); letter-spacing: .06em; }
.beta-sheet { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; border: 0; border-radius: var(--r-xl); padding: 32px 28px 28px; background: var(--bg); color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.beta-sheet[open] { animation: sheetIn .35s var(--ease); }
.beta-sheet::backdrop { background: rgba(15, 22, 41, .45); backdrop-filter: blur(6px); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.beta-x { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink2); font-size: 24px; line-height: 1; cursor: pointer; }
.beta-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-weight: 700; font-size: 14px; color: var(--brand); }
.beta-kick svg { width: 20px; height: 20px; }
.beta-sheet h2 { margin: 0; font: 700 clamp(28px, 6vw, 40px)/1.05 var(--display); letter-spacing: -.03em; padding-inline-end: 40px; }
.beta-sheet ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: s; }
.beta-sheet li { counter-increment: s; background: var(--surface); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; justify-items: start; }
.beta-sheet li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.beta-sheet h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.02em; }
.beta-sheet li p { margin: 0 0 8px; color: var(--ink2); line-height: 1.45; }
.beta-sheet .btn.ghost { background: var(--brand-soft); color: var(--brand); }
@media (prefers-reduced-motion: reduce) { .beta-sheet[open] { animation: none; } }

/* invite link: the household code, big, above the headline */
.join-card { margin-bottom: 28px; padding: 20px 22px; border-radius: 24px; background: var(--surface, #fff); box-shadow: 0 10px 30px rgba(15,22,41,.08); max-width: 460px; }
.join-kick { font: 700 15px/1.3 var(--text); color: var(--brand, #2F62F5); margin: 0 0 8px; }
.join-code { display: block; border: 0; background: none; padding: 0; cursor: copy; font: 900 44px/1.1 var(--display, var(--text)); letter-spacing: .14em; color: var(--ink, #0F1629); }
.join-how { margin: 10px 0 12px; font: 400 15px/1.5 var(--text); color: var(--ink2, #4A5468); }
.join-web { font: 600 14px/1 var(--text); color: var(--brand, #2F62F5); text-decoration: none; }
