/* Mazalot — marketing site
   Warm midnight navy, matte champagne gold, warm editorial serif.
   Marketing register: same palette DNA as the app, more breathing light.
   No literal astrology iconography. Magic = colour and light only, at rest. */

:root {
  /* Base — warm midnight navy (warmed toward ink; never pure black, never purple) */
  --navy-deepest: #080B14;
  --navy-base:    #0E1426;
  --navy-raised:  #151D33;
  --navy-elevated:#1E2842;

  /* Accent — matte champagne gold (one metal, sparing) */
  --gold-champagne: #E7C892;
  --gold-bright:    #F3DCA8;
  --gold-muted:     #B7975E;

  /* Text — warm off-white, never pure white */
  --text-primary:   #F4EEE1;
  --text-secondary: #C6BFB0;
  --text-tertiary:  #8B93A6;

  --hairline: rgba(231, 200, 146, 0.16);
  --hairline-soft: rgba(244, 238, 225, 0.08);

  --maxw: 1120px;
  --readw: 720px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--navy-base);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* The single ambient warmth: one soft champagne glow over the navy.
   Fixed, low opacity, very slow breath. Readable at rest; motion optional. */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 12%, rgba(231, 200, 146, 0.14), rgba(231, 200, 146, 0.05) 40%, transparent 70%),
    radial-gradient(90% 70% at 50% 120%, rgba(30, 40, 66, 0.55), transparent 60%);
  animation: breath 14s ease-in-out infinite;
}
@keyframes breath {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

.page { position: relative; z-index: 1; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 8px;
}
.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .mark {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--gold-bright), var(--gold-champagne) 55%, var(--gold-muted) 100%);
  box-shadow: 0 0 14px 2px rgba(231, 200, 146, 0.45);
  flex: none;
}
.topbar nav a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 22px;
}
.topbar nav a:hover { color: var(--text-secondary); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 0 40px;
  max-width: 860px;
  margin: 0 auto;
}
/* The real brand lockup (Joel's logo), background removed to transparent so it
   composites cleanly on the page navy with no rectangle. */
.brand {
  display: block;
  width: min(440px, 82vw);
  margin: 0 auto 30px;
}
.brand-lockup {
  display: block;
  width: 100%;
  height: auto;
}
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 26px;
}
.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(2.05rem, 5vw, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 auto 26px;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--gold-champagne); font-style: italic; }
.hero .sub {
  font-family: var(--sans);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 auto 30px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
}
.status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-champagne);
  box-shadow: 0 0 10px 1px rgba(231,200,146,0.5);
  flex: none;
}

/* ---------- Section ---------- */
section { padding: 46px 0; }
.section-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  text-align: center;
  margin: 0 0 40px;
}

/* "What it is" — four quiet blocks */
.beats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}
.beat {
  background: linear-gradient(180deg, rgba(21,29,51,0.75), rgba(14,20,38,0.4));
  border: 1px solid var(--hairline-soft);
  border-radius: 20px;
  padding: 30px 30px 32px;
}
.beat h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.beat p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}
.beat .num {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-muted);
  display: block;
  margin-bottom: 14px;
}

/* Disclaimer line */
.disclaimer {
  max-width: var(--readw);
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}

/* Notify block */
.notify {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(30,40,66,0.5), rgba(14,20,38,0.3));
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 44px 32px;
}
.notify h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--text-primary);
  margin: 0 0 14px;
}
.notify p { color: var(--text-secondary); margin: 0 auto 24px; max-width: 42ch; }
.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--navy-deepest);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-champagne));
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 24px -8px rgba(231,200,146,0.5);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(231,200,146,0.6); }
.notify .fineprint { font-size: 0.82rem; color: var(--text-tertiary); margin: 18px auto 0; max-width: 40ch; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline-soft);
  margin-top: 40px;
  padding: 44px 0 56px;
  color: var(--text-tertiary);
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  justify-content: space-between;
}
.footer-brand .wordmark { font-size: 1.25rem; margin-bottom: 14px; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 12px;
  font-weight: 600;
}
.footer-col address {
  font-style: normal;
  line-height: 1.7;
  color: var(--text-secondary);
}
.footer-col a { color: var(--text-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--gold-champagne); }
.footer-col ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--text-tertiary);
  font-size: 0.86rem;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: var(--readw);
  margin: 0 auto;
  padding: 24px 0 40px;
}
.legal .back {
  display: inline-block;
  color: var(--gold-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 8px 0 32px;
}
.legal .back:hover { color: var(--gold-champagne); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.legal .updated { color: var(--text-tertiary); font-size: 0.9rem; margin: 0 0 12px; }
.legal .lead { color: var(--text-secondary); font-size: 1.05rem; margin: 0 0 40px; }
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  color: var(--gold-champagne);
  margin: 44px 0 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 26px 0 8px;
}
.legal p, .legal li { color: var(--text-secondary); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal strong { color: var(--text-primary); font-weight: 600; }
.legal a { color: var(--gold-champagne); }
.legal .flag {
  background: rgba(231, 200, 146, 0.08);
  border: 1px dashed var(--gold-muted);
  border-radius: 12px;
  padding: 4px 8px;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 0.95em;
  font-weight: 600;
}
.legal .contact-block {
  background: rgba(21,29,51,0.6);
  border: 1px solid var(--hairline-soft);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 12px;
  line-height: 1.8;
}

/* ---------- A11y: visible focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-champagne);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 28px; }
  .beats { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 30px; }
  section { padding: 34px 0; }
  .notify { padding: 34px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
  .btn-gold { transition: none; }
}

/* ---------- Print (legal pages) ---------- */
@media print {
  .glow, .topbar nav, .legal .back { display: none; }
  body { background: #fff; color: #111; }
  .legal h1, .legal h2, .legal h3, .legal strong { color: #111; }
  .legal p, .legal li { color: #333; }
}
