/* The Protein Grind — marketing site. Self-contained; brand tokens mirror the
   app's styles.css so the two feel like one product. Follows the OS light/dark
   preference (no toggle needed here). */
:root {
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-50: #f0fdf4;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --purple-50: #faf5ff;
  --ink: #1b1726;
  --muted: #5d5a6b;
  --card-bg: #ffffff;
  --surface-2: #f6f5fa;
  --border: #ece9f2;
  --bg: #fbfcfb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(27, 23, 38, 0.06);
  --shadow: 0 8px 24px -10px rgba(27, 23, 38, 0.16);
  --shadow-lg: 0 18px 40px -12px rgba(27, 23, 38, 0.24);
  --brand: linear-gradient(135deg, var(--green-600) 0%, var(--purple-600) 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9f3;
    --muted: #9d99ad;
    --card-bg: #1b1a22;
    --surface-2: #24222e;
    --border: #322f3d;
    --bg: #131119;
    --green-50: rgba(34, 197, 94, 0.12);
    --purple-50: rgba(168, 85, 247, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-700);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  box-shadow: var(--shadow-lg);
}
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 84px 0 64px;
}
.hero .logo {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: var(--brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Sections ---- */
section {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-600);
  margin: 0 0 8px;
}

/* ---- Feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.feature .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.4rem;
  background: var(--green-50);
  margin-bottom: 14px;
}
.feature:nth-child(2n) .ico {
  background: var(--purple-50);
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
}
.step .num {
  counter-increment: step;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  background: var(--brand);
  margin-bottom: 14px;
}
.step .num::before {
  content: counter(step);
}
.step h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.step p {
  margin: 0;
  color: var(--muted);
}

/* ---- CTA band ---- */
.cta {
  text-align: center;
}
.cta-card {
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 24px;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0 0 12px;
}
.cta-card p {
  margin: 0 0 28px;
  opacity: 0.92;
  font-size: 1.05rem;
}
.cta-card .btn-primary {
  color: var(--green-700);
  background: #fff;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--ink);
}
