/* memberpilot-style.css — site-wide styles. Tokens + layout law live in style.md. */

:root {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --ink: #17181d;
  --body: #4c5158;
  --muted: #868c96;
  --line: #e7e9ee;
  --blurple: #5865f2;
  --blurple-hover: #4752c4;
  --blurple-tint: #eef0fe;
  --green: #23a55a;
  --red: #e5484d;
  --r-panel: 20px;
  --r-card: 12px;
  --r-btn: 10px;
  --shadow: 0 1px 2px rgba(23, 24, 29, 0.04), 0 12px 32px rgba(23, 24, 29, 0.07);
  --shadow-hover: 0 2px 4px rgba(23, 24, 29, 0.05), 0 18px 44px rgba(23, 24, 29, 0.11);
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }

/* ── Floating panel sections (the separation IS the whitespace) ── */
.panel {
  background: var(--panel);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  max-width: var(--max);
  margin: 28px auto;
  padding: 72px 64px;
}
.panel-head { max-width: 640px; margin-bottom: 40px; }
.panel-head .kicker {
  display: inline-block;
  background: var(--blurple-tint);
  color: var(--blurple);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.panel-head p { margin-top: 10px; }

/* ── Nav (injected by site-nav.js) ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--blurple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.logo-word { color: var(--ink); font-weight: 800; font-size: 1.1rem; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a:not(.btn) { color: var(--body); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--r-btn);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blurple); color: #fff; box-shadow: 0 6px 18px rgba(88, 101, 242, 0.32); }
.btn-primary:hover { background: var(--blurple-hover); box-shadow: 0 10px 24px rgba(88, 101, 242, 0.4); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 9px 18px; font-size: 0.88rem; }

/* ── Cards (generic) ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* ── Scroll reveal (js/all/scroll-reveal.js flips .visible) ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Video placeholders ── */
.video-slot {
  aspect-ratio: 16 / 9;
  background: linear-gradient(180deg, #fafbfc, #f0f1f5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-slot:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.video-slot .play {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blurple);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.35);
}
.video-slot .play::after {
  content: ""; margin-left: 4px;
  border-left: 17px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.video-slot p { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

/* ── Footer (injected) ── */
.site-footer { max-width: var(--max); margin: 40px auto 28px; padding: 0 24px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--muted);
}
.footer-inner a { color: var(--muted); }

/* ── Mobile ── */
@media (max-width: 900px) {
  .panel { padding: 48px 24px; margin: 16px 12px; border-radius: 16px; }
  .nav-links a:not(.btn) { display: none; }
}
