/* Shared styles for all Eaves pages */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #5a5a5a;
  --line: #ececec;
  --card: #f6f6f7;
  --accent: #ff3b3b;
  --green: #2bd45b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 40% at 0% 10%, rgba(160,140,255,0.18), transparent 60%),
    radial-gradient(60% 40% at 100% 0%, rgba(120,180,255,0.15), transparent 60%),
    radial-gradient(50% 50% at 100% 100%, rgba(255,180,220,0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top nav */
.topnav {
  position: absolute;
  top: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  z-index: 100;
}

.logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topnav nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--ink-soft);
}

.topnav nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-dark {
  background: #1c1c1e;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
}

.btn-light {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25);
  border: 1px solid var(--line);
}

/* Footer (shared across all pages) */
footer.site-footer {
  padding: 80px 0 50px;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

footer.site-footer .msg {
  color: var(--ink-soft);
  font-size: 13.5px;
}

footer.site-footer .socials {
  margin-top: 18px;
  display: inline-flex;
  gap: 14px;
}

footer.site-footer .socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--card);
  transition: background 0.15s ease, transform 0.15s ease;
}
footer.site-footer .socials a:hover { background: #ececec; transform: translateY(-1px); }
footer.site-footer .socials svg { width: 18px; height: 18px; fill: #1c1c1e; }

footer.site-footer .copy {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 12px;
}

footer.site-footer .legal {
  margin-top: 14px;
  display: inline-flex;
  gap: 18px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
footer.site-footer .legal a:hover { color: var(--ink); }

/* Page-content base for sub-pages */
.page {
  padding: 130px 0 60px;
}

.page h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.page .lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
  margin-bottom: 40px;
}

.page h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}

.page p, .page li {
  font-size: 15px;
  line-height: 1.65;
  color: #2a2a2a;
  margin-bottom: 12px;
  max-width: 70ch;
}

.page ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.page strong { color: #000; font-weight: 600; }

/* Toast / status banners */
.toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: #1c1c1e;
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #c41e3a; }
.toast.success { background: #2bd45b; color: #022014; }
