@font-face { font-family: 'Rubik Var'; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-hebrew-wght-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik Var'; font-weight: 300 900; font-display: swap; src: url(/fonts/rubik-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cinzel'; font-weight: 600; font-display: swap; src: url(/fonts/cinzel-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url(/fonts/cinzel-latin-700-normal.woff2) format('woff2'); }

:root {
  --navy-1: #0e1014; --navy-2: #1a1d24; --navy-3: #2c2f38;
  --gold: #e6cf94; --gold-soft: #fbf1d6; --gold-deep: #bf9d58;
  --ink: #f4f1e8; --muted: #b9bcc6; --line: rgb(230 207 148 / 0.35);
  --card: rgb(255 255 255 / 0.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  font-family: 'Rubik Var', 'Segoe UI', Arial, sans-serif; color: var(--ink); line-height: 1.6;
  background:
    radial-gradient(70rem 36rem at 50% -8%, rgb(110 118 138 / 0.30), transparent 70%),
    radial-gradient(40rem 24rem at 100% 40%, rgb(230 207 148 / 0.08), transparent 70%),
    linear-gradient(180deg, var(--navy-2), var(--navy-1) 70%);
  background-attachment: fixed;
  display: flex; flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: .75rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--gold); color: #1a1203; font-weight: 600; border-radius: 10px; text-decoration: none; }
.skip:focus { top: .75rem; }

/* decorative glowing curves, like the logo */
.waves { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.waves svg { position: absolute; width: 140%; left: -20%; bottom: -8%; opacity: .5; }

main { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem 2rem; }

.hero { text-align: center; padding: 1.5rem 0 2.5rem; }
.hero img.logo { width: clamp(150px, 34vw, 230px); height: auto; filter: drop-shadow(0 18px 38px rgb(0 0 0 / .55)); animation: rise .9s ease both; }
.wordmark {
  margin: 1.1rem 0 0; font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 700; letter-spacing: .16em;
  font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.1;
  background: linear-gradient(180deg, #fbf1d6 0%, #e6cf94 45%, #8a6d33 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s .1s ease both;
}
.tagline { margin: .35rem 0 0; font-family: 'Cinzel', serif; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.8rem, 2.6vw, 1.05rem); color: var(--gold-soft); animation: rise .9s .2s ease both; }
.lead { max-width: 34rem; margin: 1.4rem auto 0; font-size: clamp(1rem, 3.4vw, 1.2rem); color: var(--muted); animation: rise .9s .3s ease both; }
.rule { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 2rem auto 0; max-width: 22rem; }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rule i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

h2.section { text-align: center; font-weight: 500; font-size: clamp(1.15rem, 4vw, 1.5rem); margin: 0 0 1.4rem; color: var(--ink); }
.apps { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.3rem 1.3rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(6px);
  box-shadow: 0 14px 40px rgb(0 0 0 / .35); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 50px rgb(0 0 0 / .45); }
.card .head { display: flex; align-items: center; gap: .95rem; }
.card .icon { width: 68px; height: 68px; border-radius: 18px; object-fit: cover; box-shadow: 0 6px 18px rgb(0 0 0 / .45); border: 2px solid rgb(230 207 148 / .6); flex-shrink: 0; }
.card .icon.ph { display: grid; place-items: center; background: linear-gradient(160deg, #3a3f4c, #1a1d24); font-family: 'Cinzel', serif; font-weight: 700; font-size: 2rem; color: var(--gold); }
.card h3 { margin: 0; font-family: 'Cinzel', 'Times New Roman', serif; font-weight: 700; letter-spacing: .1em; font-size: 1.25rem; color: var(--gold-soft); direction: ltr; text-align: start; }
.card .kind { margin: 0; font-size: .85rem; color: var(--muted); }
.card p.desc { margin: 0; color: var(--ink); opacity: .92; }
.card .go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.2rem; border-radius: 14px; font-weight: 600; background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: #1a1203; }
.card .go svg { width: 18px; height: 18px; }
.badge { position: absolute; top: 14px; inset-inline-end: 14px; padding: .15rem .7rem; border-radius: 99px; font-size: .75rem; font-weight: 600; background: rgb(230 207 148 / .15); color: var(--gold-soft); border: 1px solid var(--line); }
/* each app has its own colour: BAZELET in dusk blue, HAGABAY in a soft modern sky blue */
.card.app-bazelet { background: linear-gradient(160deg, rgb(42 84 168 / .55), rgb(14 36 88 / .78)); border-color: rgb(110 160 255 / .5); }
a.card.app-bazelet:hover { border-color: #8ab4ff; box-shadow: 0 20px 50px rgb(20 50 120 / .55); }
.card.app-bazelet .kind { color: #c4d5f5; }
.card.app-bazelet .badge { background: rgb(138 180 255 / .18); border-color: rgb(138 180 255 / .45); color: #d6e4ff; }
.card.app-hagabay {
  background:
    radial-gradient(60% 55% at 88% -6%, rgb(255 255 255 / .55), transparent 70%),
    radial-gradient(40% 35% at 62% 4%, rgb(255 255 255 / .22), transparent 70%),
    linear-gradient(165deg, #2aa6ea 0%, #1b86d3 55%, #0f5ea6 100%);
  border-color: rgb(255 255 255 / .6); overflow: hidden;
}
.card.app-hagabay::after { content: ""; position: absolute; inset-inline-start: -20px; bottom: -26px; width: 150px; height: 70px; border-radius: 50%; background: rgb(255 255 255 / .18); filter: blur(10px); pointer-events: none; }
.card.app-hagabay h3 { color: #ffffff; text-shadow: 0 1px 6px rgb(8 60 110 / .45); }
.card.app-hagabay .kind { color: #eaf6ff; }
.card.app-hagabay p.desc { color: #ffffff; text-shadow: 0 1px 4px rgb(8 60 110 / .35); }
.card.app-hagabay .badge { background: rgb(255 255 255 / .9); border-color: transparent; color: #0f5ea6; }
.card.app-hagabay .icon.ph { background: linear-gradient(160deg, #ffffff, #bfe5fb); color: #1470bd; border-color: #ffffff; }
.card.app-hagabay.soon .go { border: 1px dashed rgb(255 255 255 / .8); color: #ffffff; background: rgb(255 255 255 / .12); }
.card.soon { opacity: 1; }
.card.soon .go { background: transparent; color: var(--muted); border: 1px dashed var(--line); }

footer { position: relative; z-index: 1; text-align: center; padding: 1.6rem 1.25rem max(1.6rem, env(safe-area-inset-bottom)); border-top: 1px solid rgb(230 207 148 / .18); color: var(--muted); font-size: .9rem; }
footer .links { display: flex; flex-wrap: wrap; gap: .25rem 1.2rem; justify-content: center; margin-bottom: .5rem; }
footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--gold-soft); }
footer a:hover { text-decoration: underline; }
footer .dev { direction: ltr; font-size: .85rem; opacity: .85; }

/* text pages (accessibility statement, privacy, 404) */
.doc { max-width: 46rem; }
.doc header.top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.doc header.top img { width: 64px; height: 64px; border-radius: 16px; }
.doc h1 { margin: 0; font-weight: 600; font-size: clamp(1.5rem, 5vw, 2rem); color: var(--gold-soft); }
.doc .back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: .6rem; color: var(--gold-soft); text-decoration: none; font-weight: 500; }
.doc .back:hover { text-decoration: underline; }
.doc { counter-reset: sec; }
.doc .intro { font-size: 1.02rem; color: var(--ink); margin: 1rem 0 .4rem; }
.doc section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; margin: 1rem 0; }
.doc h2 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.doc h2::before { counter-increment: sec; content: counter(sec); flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: #1a1203; font-size: .8rem; font-weight: 700; }
.doc .legal-foot { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.4rem; }
.doc .legal-foot a { color: var(--gold-soft); }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-inline-start: 1.3rem; margin: .4rem 0; }
.doc a:not(.back) { color: var(--gold-soft); }
.doc .meta { margin: 0; color: var(--muted); font-size: .85rem; }
.notfound { text-align: center; padding-top: 4rem; }
.notfound .big { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(4rem, 20vw, 7rem); line-height: 1; background: linear-gradient(180deg, #fbf1d6, #e6cf94 50%, #8a6d33); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 14px; font-weight: 600; text-decoration: none; background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: #1a1203; border: 0; font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--gold-soft); border: 1px solid var(--line); }

/* accessibility button and panel (a11y.js) */
.a11y-btn { position: absolute; z-index: 40; top: max(.75rem, env(safe-area-inset-top)); inset-inline-start: .75rem; width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .9); background: linear-gradient(180deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep)); color: #1a1203; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgb(0 0 0 / .55); }
.a11y-btn svg { width: 28px; height: 28px; }
.a11y-btn .dot { position: absolute; top: -2px; inset-inline-end: -2px; width: 14px; height: 14px; border-radius: 50%; background: #1263df; border: 2px solid #fff; display: none; }
.a11y-btn.on .dot { display: block; }
.a11y-back { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .55); display: none; }
.a11y-back.open { display: block; }
.a11y-panel { position: fixed; z-index: 91; inset-inline: .75rem; bottom: .75rem; max-width: 26rem; margin-inline: auto; max-height: 90vh; overflow: auto; background: #1a1d24; color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem 1.1rem 1.2rem; box-shadow: 0 20px 60px rgb(0 0 0 / .6); display: none; }
.a11y-panel.open { display: block; }
.a11y-panel h2 { margin: 0 0 .15rem; font-size: 1.2rem; }
.a11y-panel .sub { margin: 0 0 .9rem; font-size: .85rem; color: var(--muted); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; min-height: 52px; padding: .55rem .8rem; margin-bottom: .5rem; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.a11y-row small { display: block; color: var(--muted); font-size: .78rem; }
.a11y-sw { flex: none; width: 44px; height: 24px; border-radius: 99px; background: #3b4a6b; padding: 2px; display: flex; }
.a11y-sw i { width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.a11y-row[aria-checked="true"] .a11y-sw { background: var(--gold); }
.a11y-row[aria-checked="true"] .a11y-sw i { transform: translateX(-20px); }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem .8rem; margin-bottom: .5rem; border: 1px solid var(--line); border-radius: 14px; }
.a11y-size button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 1.4rem; cursor: pointer; }
.a11y-size button:disabled { opacity: .35; cursor: default; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; }
.a11y-foot a { color: var(--gold-soft); }

/* the options themselves, as classes on <html> */
html.a11y-t1 { font-size: 112.5%; } html.a11y-t2 { font-size: 125%; } html.a11y-t3 { font-size: 150%; }
html.a11y-contrast { --navy-1: #000; --navy-2: #000; --navy-3: #000; --ink: #fff; --muted: #fff; --line: #fff; --card: #000; --gold-soft: #ffe27a; }
html.a11y-contrast body { background: #000; }
html.a11y-contrast .waves { display: none; }
html.a11y-contrast .a11y-panel { background: #000; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font *:not(.wordmark):not(.tagline):not(h3) { font-family: Arial, Tahoma, sans-serif !important; letter-spacing: .01em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (prefers-contrast: more) { :root { --line: rgb(230 207 148 / 0.8); --muted: #dfe6f5; } }
@media print { .a11y-btn, .waves { display: none; } body { background: #fff; color: #000; } }
