/* Muck AI site. Colours match the app's Theme.swift tokens. */
:root {
  --bg: #ffffff;
  --surface: #f7f4ff;
  --brand-soft: #d4c5ff;
  --brand: #9b7ef8;
  --brand-strong: #6b46e5;
  --brand-text: #6b46e5;
  --ink: #1c1530;
  --ink-muted: #6e6787;
  --radius: 22px;
  --max: 1040px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120e1c;
    --surface: #1f1830;
    --brand-soft: #3a2f66;
    --brand-text: #b8a4ff;
    --ink: #f3f0ff;
    --ink-muted: #a9a3c2;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--brand-text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--brand-text); }

/* Logo that switches with light and dark mode */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: inline-block; }
}

/* Hero */
.hero {
  text-align: center;
  padding: 56px 0 72px;
  background: radial-gradient(60% 55% at 50% 30%, color-mix(in srgb, var(--brand-soft) 55%, transparent), transparent 70%);
}
.hero-logo {
  width: 168px;
  height: 168px;
  border-radius: 40px;
  box-shadow: 0 18px 48px color-mix(in srgb, var(--brand-strong) 25%, transparent);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.97); }
  50% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}
.hero h1 {
  margin: 28px 0 6px;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.tagline {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  color: var(--brand-text);
}
.lede {
  margin: 0 auto 32px;
  max-width: 30ch;
  font-size: clamp(18px, 2.4vw, 21px);
  color: var(--ink-muted);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.cta svg { width: 20px; height: 20px; fill: currentColor; }
.cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }

/* Sections */
section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.section-sub {
  text-align: center;
  color: var(--ink-muted);
  margin: 0 auto 36px;
  max-width: 46ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.card .num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 800;
  font-size: 20px;
}
.card h3 { margin: 16px 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--ink-muted); }

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.split .card h3 { margin-top: 0; }

.macros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--surface);
}
.pill i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 0;
}

/* Footer */
footer {
  border-top: 1px solid color-mix(in srgb, var(--ink-muted) 22%, transparent);
  padding: 28px 0 40px;
  color: var(--ink-muted);
  font-size: 15px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--brand-text); }

/* Legal pages */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.legal h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 16px 0 8px; letter-spacing: -0.01em; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal p:first-of-type { color: var(--ink-muted); }

@media (max-width: 760px) {
  .steps, .split { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .hero { padding-top: 32px; }
}
