/* Phew marketing + legal site — cream/navy, matching the app's design tokens. */
:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --navy: #1C2B4A;
  --text: #1C2B4A;
  --text-secondary: #6B7385;
  --border: #E6E0D9;
  --accent: #1C2B4A;
  --joy-green: #2FA980;
  --joy-purple: #6C4AB6;
  --joy-coral: #E5484D;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--joy-purple); }

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

/* ── Site header / nav ── */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy);
  text-decoration: none;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-left: 18px;
}
.nav a:hover { color: var(--navy); }

/* ── Hero (landing) ── */
.hero {
  text-align: center;
  padding: 64px 24px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero .chips {
  display: flex;
  justify-content: center;
  gap: -12px;
  margin-bottom: 28px;
  height: 110px;
  position: relative;
}
.hero .chip {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: #fff;
  position: absolute;
  top: 8px;
  box-shadow: 0 10px 24px rgba(28, 43, 74, 0.18);
}
.hero .chip .d { font-size: 34px; font-weight: 800; line-height: 1; }
.hero .chip .m { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.hero .chip.back { background: var(--joy-purple); transform: translateX(-58px) rotate(-14deg); }
.hero .chip.mid { background: var(--joy-green); transform: translateX(58px) rotate(8deg); }
.hero .chip.front { background: var(--accent); }
.hero h1 { font-size: 48px; font-weight: 800; margin: 8px 0 8px; letter-spacing: -0.5px; }
.hero .tagline { font-size: 19px; color: var(--text-secondary); margin: 0 auto; max-width: 30ch; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 16px;
}
.btn.secondary { background: var(--surface); color: var(--navy); border: 1.5px solid var(--border); }
.btn:hover { opacity: 0.92; }

/* ── Feature cards ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  max-width: var(--maxw);
  margin: 48px auto 0;
  padding: 0 24px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 20px rgba(28, 43, 74, 0.06);
}
.feature h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.feature p { margin: 0; color: var(--text-secondary); font-size: 15px; }

/* ── Legal pages ── */
.legal h1 { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.legal .updated { color: var(--text-secondary); font-size: 15px; margin: 0 0 8px; }
.legal .draft-note {
  background: #FFF8F5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-weight: 700; }
.legal hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
  color: var(--text-secondary);
  font-size: 14px;
}
.site-footer a { color: var(--text-secondary); margin: 0 10px; }

/* ── Invite redirect page ── */
.center-card {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.center-card .inner { max-width: 420px; }
.center-card h1 { font-size: 28px; font-weight: 800; margin: 16px 0 8px; }
.center-card p { color: var(--text-secondary); }
