/* ---------------------------------------------------------------------------
   metronome.benbasha.com — "Nightstage" web identity.
   Extends the app's design tokens (src/theme/tokens.ts): deep indigo stage bg,
   aqua + violet glows, Heebo type, glassy raised surfaces, soft neon halos.
--------------------------------------------------------------------------- */

:root {
  --bg: #0a0918;
  --surface: #14183a;
  --surface-raised: #1e2452;
  --border: rgba(255, 255, 255, 0.06);
  --hair: rgba(255, 255, 255, 0.12);
  --text: #f1f2ff;
  --text-dim: #9498c0;
  --text-faint: #5b6088;
  --accent: #34e4ea; /* aqua */
  --violet: #8b6cff;
  --in-tune: #34f5b0; /* green */
  --amber: #ffc24b;
  --rose: #ff6b8a;
  --on-accent: #06121a;

  --font-body: 'Heebo', system-ui, -apple-system, sans-serif;

  --radius-card: 24px;
  --radius-chip: 12px;
  --radius-control: 16px;

  --content: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* App background: base bg + two radial glows (violet top, teal bottom). */
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(28, 23, 70, 0.9) 0%, rgba(10, 9, 24, 0) 55%),
    radial-gradient(100% 60% at 50% 100%, rgba(5, 34, 43, 0.85) 0%, rgba(10, 9, 24, 0) 60%);
  background-attachment: fixed;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.5px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------- header -------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 9, 24, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--hair);
}

.brand strong {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.header-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}

.header-nav a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.16s ease;
}

.header-nav a:hover {
  color: var(--text);
}

/* ----------------------------- store badges ------------------------------ */

.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.store-badge img {
  height: 54px;
  width: auto;
  border-radius: 10px;
}

/* Pre-launch: badge visible but clearly marked "בקרוב" and inert. */
.store-badge.soon {
  pointer-events: none;
  opacity: 0.9;
  filter: grayscale(0.2);
}

.store-badge.soon::after {
  content: 'בקרוב';
  position: absolute;
  top: -11px;
  inset-inline-end: -10px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  box-shadow: 0 0 16px rgba(52, 228, 234, 0.4);
}

/* -------------------------------- footer --------------------------------- */

.site-footer {
  background: rgba(20, 24, 58, 0.5);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  padding: 44px 0 52px;
}

.site-footer .wrap {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--text);
  text-decoration-color: rgba(148, 152, 192, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--hair);
}

/* ------------------------------ legal pages ------------------------------ */

.legal-main {
  padding: 44px 0 88px;
}

.legal-main .wrap {
  max-width: 780px;
}

.legal-toggle {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
}

.legal-toggle a {
  padding: 8px 22px;
  text-decoration: none;
  color: var(--text-dim);
  transition: background 0.16s ease, color 0.16s ease;
}

.legal-toggle a.active {
  background: var(--accent);
  color: var(--on-accent);
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 38px 42px 46px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.legal-doc h1 {
  font-size: 34px;
  margin-bottom: 6px;
}

.legal-doc .effective {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0 0 26px;
}

.legal-doc h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hair);
}

.legal-doc h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  color: var(--accent);
}

.legal-doc p,
.legal-doc li {
  color: var(--text-dim);
}

.legal-doc strong {
  color: var(--text);
}

.legal-doc ul {
  padding-inline-start: 22px;
}

.legal-doc li {
  margin: 6px 0;
}

.legal-doc a {
  color: var(--accent);
  text-decoration-color: rgba(52, 228, 234, 0.5);
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 26px 22px 32px;
  }

  .header-nav {
    gap: 14px;
  }
}
