/* Beacon Puzzle — marketing & legal site.
   Single stylesheet shared across every page. Light by default, with
   prefers-color-scheme: dark support so visitors see something that
   matches the app's vibe on dark-mode devices. */

:root {
  --bg:           #fffaf2;
  --surface:      #ffffff;
  --surface-alt:  #fff3e0;
  --text:         #1a1a1a;
  --text-muted:   #555;
  --text-faint:   #888;
  --border:       #ecdcc4;
  --accent:       #ff8a3c;
  --accent-deep:  #d96a1a;
  --link:         #c2541a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #15110d;
    --surface:      #1d1814;
    --surface-alt:  #2a2018;
    --text:         #f5efe6;
    --text-muted:   #b8a99a;
    --text-faint:   #7a6e63;
    --border:       #3a2e22;
    --accent:       #ff9a4f;
    --accent-deep:  #ff7a2a;
    --link:         #ffb37a;
  }
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 22px 64px;
}

/* ------- Header / brand ------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-bottom: 28px;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; }
.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.brand-name .sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-top: -2px;
}

/* ------- Hero (landing only) ------- */
.hero {
  text-align: center;
  padding: 28px 0 14px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0 0 10px;
  line-height: 1.1;
}
.hero .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

.cta {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 22px;
  background: var(--accent);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 138, 60, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 138, 60, 0.45);
}
.cta.coming {
  background: var(--surface-alt);
  color: var(--accent-deep) !important;
  box-shadow: none;
  border: 1.5px dashed var(--accent);
  cursor: default;
}
.cta.coming:hover { transform: none; box-shadow: none; }

/* ------- Feature grid ------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 18px 16px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ------- Legal / content pages ------- */
.legal h1 {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 4px;
  letter-spacing: -0.5px;
}
.legal .effective {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 24px;
}
.legal h2 {
  margin: 28px 0 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}
.legal p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.legal p.callout {
  background: var(--surface-alt);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--text);
  font-weight: 600;
}
.legal p.contact {
  color: var(--text);
  font-weight: 500;
  line-height: 1.7;
}

/* ------- Contact page ------- */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-top: 18px;
}
.contact-block .email {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  padding: 10px 14px;
  margin-top: 6px;
  background: var(--surface-alt);
  border-radius: 8px;
  color: var(--accent-deep);
}

/* ------- Footer ------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
footer nav a {
  margin-right: 14px;
  color: var(--text-muted);
}
footer .copy { color: var(--text-faint); }

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 15px; }
  .wrap { padding: 22px 18px 48px; }
}
