/* 6 Club website: one shared stylesheet for every page.
   Type scale: a 1.25 ratio on a 17px body (16px on phones), fluid between
   phone and desktop with clamp(); line heights fall as sizes grow. Six sizes
   in total: --fs-sm, --fs-base, --fs-lg, --fs-xl, --fs-2xl, --fs-3xl. */

:root {
  --bg: #1a0e00;
  --bg-raised: #241505;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(212, 175, 55, 0.07);
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.45);
  --gold: #d4af37;
  --gold-light: #f3d67b;
  --gold-dark: #917419;
  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.52);
  --green: #4ade80;

  --fs-sm: 0.875rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --fs-3xl: clamp(2.2rem, 1.6rem + 3vw, 4rem);

  --font-display: 'Secular One', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 20px;
  --max: 1140px;
}

/* Secular One has Hebrew + Latin only: Cyrillic, Greek, Arabic, Turkish and
   Romanian headings use a face that has their letters. */
:lang(ru), :lang(tr), :lang(ro) { --font-display: 'Rubik', system-ui, sans-serif; }
:lang(el) { --font-display: 'Noto Sans', system-ui, sans-serif; --font-body: 'Noto Sans', system-ui, sans-serif; }
:lang(ar) { --font-display: 'Noto Sans Arabic', system-ui, sans-serif; --font-body: 'Noto Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 40%, rgba(212, 175, 55, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; font-weight: 700; letter-spacing: -0.005em; }
:lang(he) h1, :lang(he) h2, :lang(he) h3, :lang(en) h1, :lang(en) h2 { font-weight: 400; } /* Secular One is a single weight */
h1 { font-size: var(--fs-3xl); line-height: 1.12; }
h2 { font-size: var(--fs-2xl); line-height: 1.2; text-wrap: balance; }
h3 { font-size: var(--fs-lg); line-height: 1.35; }
p { margin: 0; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.gold { color: var(--gold); }
.gold-gradient { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 14, 0, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: 'Secular One', 'Rubik', sans-serif; font-size: 1.25rem; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand span { direction: ltr; unicode-bidi: isolate; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; display: block; box-shadow: 0 0 0 1px var(--line-strong), 0 0 18px rgba(212, 175, 55, 0.25); }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a { color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; font-size: var(--fs-sm); padding: 10px 18px; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; white-space: nowrap; font-family: var(--font-body); }
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-light); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { font-size: var(--fs-base); padding: 14px 26px; }

/* language switcher (shared by every page, built by i18n.js) */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-strong); border: 1px solid var(--line-strong); color: var(--gold); border-radius: 999px; padding: 8px 12px; font: 600 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; max-height: min(70vh, 460px); overflow: auto; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: 16px; padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); display: none; z-index: 60; }
.lang.open .lang-menu { display: block; }
.lang-menu button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; color: var(--text-2); padding: 10px 12px; border-radius: 10px; font: 500 0.95rem/1.3 system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', sans-serif; cursor: pointer; text-align: start; }
.lang-menu button:hover { background: var(--surface-strong); color: var(--text); }
.lang-menu button[aria-checked="true"] { color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.lang-menu .code { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; }

.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: var(--gold); border-radius: 12px; width: 42px; height: 40px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--text); font-size: var(--fs-base); border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.site-header.open .mobile-nav { display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
}
@media (max-width: 420px) {
  .header-actions .btn-gold { display: none; } /* the hero has the App Store button right below */
  .brand-name-full { display: none; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); }
.eyebrow { display: inline-block; font: 600 0.8rem/1 var(--font-body); color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--line-strong); background: var(--surface-strong); border-radius: 999px; padding: 8px 14px; margin-bottom: 18px; }
:lang(he) .eyebrow, :lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; }
.divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); margin: 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); }
.card h3 { margin-bottom: 8px; color: var(--gold); }
.card p { color: var(--text-2); }
.grid { display: grid; gap: 18px; }
.grid-3, .grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.icon { font-size: 1.75rem; line-height: 1; margin-bottom: 14px; }

/* hero */
.hero { padding-block: clamp(56px, 10vw, 128px) clamp(48px, 7vw, 96px); text-align: center; position: relative; }
.hero h1 { max-width: 21ch; margin-inline: auto; text-wrap: balance; }
.hero h1 span { display: inline; }
.hero .lead { max-width: 40rem; margin: 22px auto 0; font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 30px; color: var(--text-3); font-size: var(--fs-sm); }
.hero-points span::before { content: '✓'; color: var(--gold); margin-inline-end: 6px; }
.android-note { margin-top: 18px; font-size: var(--fs-sm); color: var(--text-3); }

/* App Store badge (drawn, black like Apple's) */
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px; padding: 9px 18px 9px 14px; transition: border-color .2s, transform .15s; direction: ltr; }
.store-badge:hover { border-color: var(--gold); color: #fff; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .t1 { display: block; font: 400 0.7rem/1.1 system-ui, -apple-system, sans-serif; color: rgba(255, 255, 255, 0.75); }
.store-badge .t2 { display: block; font: 600 1.2rem/1.1 system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 0.95rem/1 var(--font-body); }
.steps li span { padding-top: 4px; }
.track-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

/* fair play */
.fair-steps { counter-reset: fs; }
.fair-steps .card { position: relative; }
.fair-steps .num { font: 700 1.6rem/1 var(--font-body); color: rgba(212, 175, 55, 0.35); margin-bottom: 10px; display: block; }

/* download */
.download-box { text-align: center; background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.03)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); }
.req { list-style: none; padding: 0; margin: 28px auto 0; display: grid; gap: 10px; max-width: 34rem; text-align: start; }
.req li { display: flex; gap: 10px; color: var(--text-2); }
.req li::before { content: '✓'; color: var(--gold); flex: none; }
.req li.soon::before { content: '⏳'; }
.pill-soon { display: inline-block; font-size: 0.75rem; color: var(--gold); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; margin-inline-start: 8px; vertical-align: middle; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; color: var(--text); font-weight: 600; font-size: var(--fs-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--text-2); }

/* facts table */
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; }
.facts .v { color: var(--text); font-weight: 500; text-align: end; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 36px; background: rgba(0, 0, 0, 0.25); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer-grid h4 { font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
:lang(he) .footer-grid h4, :lang(ar) .footer-grid h4 { letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: var(--fs-sm); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 0.8rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- document pages (privacy, terms, support, delete account) ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px); }
.doc h1 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.doc h2 { font-size: var(--fs-xl); color: var(--gold); margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); line-height: 1.75; }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-inline-start: 1.4rem; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--text); }
.doc-notice { margin: 0 0 28px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-strong); color: var(--text); font-size: var(--fs-sm); }
.doc-notice[hidden] { display: none; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); margin-top: 22px; }
.doc .box h2 { margin-top: 0; }
.doc .box.warn h2 { color: #f87171; }
.doc .cta-wrap { text-align: center; margin-top: 36px; }

/* entrance: content is visible without JS; JS only adds the subtle fade */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* the few layout helpers the legal pages' existing markup still uses */
.doc .elite-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.doc .elite-card h2 { margin-top: 0; font-size: var(--fs-lg); }
.doc .text-gold-gradient { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.doc .text-center { text-align: center; }
.doc .mb-1 { margin-bottom: 4px; } .doc .mb-4 { margin-bottom: 14px; } .doc .mb-6 { margin-bottom: 20px; } .doc .mb-8 { margin-bottom: 22px; } .doc .mb-12 { margin-bottom: 36px; }
.doc .mt-2 { margin-top: 8px; } .doc .mt-4 { margin-top: 14px; }
.doc .text-sm { font-size: var(--fs-sm); }
.doc .font-bold { font-weight: 600; color: var(--text); }
.doc .uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
:lang(he) .doc .uppercase, .doc:lang(he) .uppercase { text-transform: none; letter-spacing: 0; }
.doc ul.space-y-3 { list-style: none; padding: 0; }
.doc .space-y-3 > * + * { margin-top: 10px; }
.doc .space-y-6 > * + * { margin-top: 20px; }
.doc .flex { display: flex; } .doc .items-start { align-items: flex-start; } .doc .items-center { align-items: center; } .doc .justify-center { justify-content: center; }
.doc .gap-3 { gap: 10px; } .doc .gap-4 { gap: 14px; } .doc .shrink-0 { flex-shrink: 0; }
.doc .w-8 { width: 32px; } .doc .h-8 { height: 32px; } .doc .rounded-full { border-radius: 50%; }
.doc .inline-block { display: inline-block; } .doc .px-10 { padding-inline: 32px; } .doc .py-4 { padding-block: 14px; } .doc .rounded-xl { border-radius: 14px; } .doc .text-lg { font-size: var(--fs-lg); }
.doc .no-underline { text-decoration: none; }
.doc .tracking-widest { letter-spacing: 0.1em; }

/* /join and /club invite page */
.invite .invite-card { text-align: center; background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.03)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 44px) clamp(18px, 4vw, 40px); }
.invite .invite-logo { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto 18px; box-shadow: 0 0 0 1px var(--line-strong), 0 10px 30px rgba(212, 175, 55, 0.18); }
.invite h1 { font-size: var(--fs-2xl); margin-bottom: 10px; }
.invite .invite-lead { font-size: var(--fs-lg); color: var(--text-2); max-width: 32rem; margin: 0 auto; }
.invite .invite-code { margin-top: 18px; color: var(--text-3); font-size: var(--fs-sm); }
.invite .invite-code bdi { display: inline-block; margin-inline-start: 6px; padding: 4px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--gold); font: 600 1rem/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.invite .invite-open { margin-top: 22px; min-width: 240px; text-decoration: none; }
.invite .invite-note { margin-top: 16px; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.invite [hidden] { display: none; }
.doc .store-badge, .doc .btn, .doc .brand { text-decoration: none; }
