/* Uplift — website design system. Matches the iOS app: deep-navy "cosmic coach"
   with glowing purple/blue accents. Self-contained (no shared styles.css). */

:root {
  --bg:        #080E1C;   /* app background */
  --panel:     #0E1526;   /* slightly lifted panel */
  --purple:    #943FF9;
  --blue:      #27B4FF;
  --cta-a:     #943FF9;
  --cta-b:     #4AA8FF;
  --text:      #FFFFFF;
  --text2:     #CFCFCF;
  --muted:     #7B7B7B;
  --card:      rgba(255,255,255,0.06);
  --card-2:    rgba(255,255,255,0.04);
  --border:    rgba(255,255,255,0.12);
  --border-2:  rgba(255,255,255,0.08);
  --radius:    18px;
  --wrap:      1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
/* Ambient glowing "orbs" behind everything (the app's orbit motif). */
body::before, body::after {
  content: ""; position: fixed; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%;
  filter: blur(120px); opacity: 0.22;
}
body::before { top: -18vw; left: -14vw; background: radial-gradient(circle, var(--purple), transparent 60%); }
body::after  { bottom: -22vw; right: -16vw; background: radial-gradient(circle, var(--blue), transparent 60%); }

.container, .wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Brand / nav ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__icon { width: 44px; height: 44px; border-radius: 12px; }
.brand__icon--sm { width: 34px; height: 34px; }
.brand__lines { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand__name--light { color: var(--text2); font-weight: 600; }
.brand__by { font-size: .82rem; color: var(--muted); transition: color .15s ease; }
.brand__by:hover { color: var(--text2); }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn .ico { width: 18px; height: 18px; }
.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, var(--cta-a), var(--cta-b));
  box-shadow: 0 8px 26px rgba(148,63,249,.35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(148,63,249,.5); }
.btn--ghost { color: var(--text2); border-color: var(--border); background: var(--card); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--white { background: #fff; color: #0b1220; }
.btn--white:hover { transform: translateY(-2px); }
.btn--glass { background: rgba(255,255,255,.08); color: #fff; border-color: var(--border); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--center { align-self: center; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 40px; }
.hero__content { max-width: 780px; margin: 60px auto 0; text-align: center; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; line-height: 1.05; margin: 0 0 18px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 55%, #c9d4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__subtitle { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--text2); margin: 0 auto 30px; max-width: 620px; }
.hero__orb {
  width: min(340px, 70vw); aspect-ratio: 1; margin: 44px auto 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b98bff, var(--purple) 40%, #2f6bd6 75%, transparent 78%);
  box-shadow: 0 0 90px rgba(148,63,249,.55), inset 0 0 60px rgba(39,180,255,.4);
  filter: saturate(1.1);
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 46px 0; }
.prose-center, .section__head { max-width: 720px; margin: 0 auto; text-align: center; }
.h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
.h2--center { text-align: center; }
.lead { font-size: 1.1rem; color: var(--text2); margin: 0 auto; }
.lead--narrow { max-width: 560px; }
.muted { color: var(--text2); }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.feature {
  background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(148,63,249,.5); background: var(--card-2); }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(148,63,249,.9), rgba(39,180,255,.9));
  box-shadow: 0 8px 22px rgba(148,63,249,.35);
}
.feature-ico .ico { width: 26px; height: 26px; stroke: #fff; fill: none; }
.feature__title { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.feature p { color: var(--text2); margin: 0; font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta { position: relative; margin: 30px auto 80px; max-width: var(--wrap); }
.cta__inner {
  text-align: center; padding: 56px 28px; border-radius: 28px;
  background: linear-gradient(120deg, rgba(148,63,249,.9), rgba(39,180,255,.85));
  box-shadow: 0 24px 70px rgba(148,63,249,.4);
}
.cta__title { color: #fff; margin: 0 0 10px; }
.cta__sub { color: rgba(255,255,255,.9); margin: 0 0 26px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-2); padding: 40px 0; margin-top: 20px; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__copy { color: var(--muted); font-size: .9rem; margin: 0; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--text2); font-size: .92rem; }
.footer__links a:hover { color: #fff; }
.sw-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sw-tag__glyph { width: 20px; height: 20px; }

/* ---------- Legal pages (privacy.html / terms.html) ---------- */
.legal__top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.legal__back { color: var(--text2); font-size: .92rem; }
.legal__back:hover { color: #fff; }
.legal { padding: 10px 0 70px; }
.legal .container { max-width: 760px; }
.legal__doc { color: var(--text2); }
.legal__doc h1 { color: #fff; font-size: 2.2rem; letter-spacing: -0.02em; margin: 6px 0 4px; }
.legal__doc h2 { color: #fff; font-size: 1.3rem; margin: 34px 0 10px; }
.legal__doc h3 { color: var(--text); font-size: 1.05rem; margin: 22px 0 6px; }
.legal__doc p, .legal__doc li { color: var(--text2); font-size: 1rem; }
.legal__doc ul { padding-left: 20px; }
.legal__doc li { margin: 6px 0; }
.legal__doc a { color: #b99bff; text-decoration: underline; }
.legal__doc a:hover { color: #d9c9ff; }
.legal__doc strong { color: var(--text); }
.legal__updated { color: var(--muted) !important; font-size: .9rem; margin-top: 0; }
.legal__note {
  background: rgba(148,63,249,.1); border: 1px solid rgba(148,63,249,.35);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0; color: var(--text2); font-size: .95rem;
}
.legal__note strong { color: #fff; }

@media (max-width: 640px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .section { padding: 52px 0; }
}
