/* Jazmin site theme — mirrors the app's design tokens (Theme.swift):
   neutral-950 surface, indigo primary, green/amber/blue macro accents. */

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --text-subtle: #b0b0b0;
  --text-muted: #969696;
  --text-muted2: #7a7a7a;
  --primary: #818cf8;      /* indigo-400 */
  --primary-btn: #6366f1;  /* indigo-500 */
  --protein: #4ade80;      /* green-400 */
  --carbs: #fbbf24;        /* amber-400 */
  --fat: #60a5fa;          /* blue-400 */
  --surface: rgba(255, 255, 255, 0.04);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --radius-card: 24px;
  --radius-field: 16px;
  --radius-chip: 12px;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint aurora wash behind everything, like the app background. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% -10%, rgba(99, 102, 241, 0.22), transparent 70%),
    radial-gradient(45% 35% at 85% 0%, rgba(96, 165, 250, 0.10), transparent 70%),
    radial-gradient(50% 40% at 70% 105%, rgba(74, 222, 128, 0.06), transparent 70%);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover { text-decoration: none; }

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}

.site-nav a { color: var(--text-subtle); }
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Current page */
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 6px;
  text-decoration: underline 2px var(--primary);
}

/* Landing hero */

.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.hero .app-icon {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 28px 0 12px;
}

.hero .tagline {
  color: var(--text-subtle);
  font-size: 1.15rem;
  max-width: 34em;
  margin: 0 auto;
}

.store-badge {
  display: inline-block;
  margin-top: 32px;
}

.store-badge img { height: 52px; display: block; }

.hero .fineprint {
  color: var(--text-muted2);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* Pitch card — mirrors the onboarding averages demo. */

.pitch { padding: 8px 0 16px; }

.pitch-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px;
}

.pitch-text { flex: 1 1 260px; }

.pitch-text .eyebrow {
  color: var(--text-muted2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.pitch-text h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.pitch-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pitch-chart {
  flex: 1 1 300px;
  max-width: 400px;
  min-width: 0;
  height: auto;
}

@media (max-width: 700px) {
  .pitch-card { flex-direction: column-reverse; align-items: stretch; gap: 24px; }
  /* In a column the basis would become height and stretch the card. */
  .pitch-text, .pitch-chart { flex: 0 0 auto; }
  .pitch-chart { max-width: 100%; }
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 8px 0 64px;
}

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-card);
  padding: 22px;
}

.feature .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.feature h2 {
  font-size: 1.02rem;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Text pages (legal, support) */

.page { padding: 24px 0 80px; }

.page h1 { font-size: 1.7rem; margin: 24px 0 4px; }

.page .updated {
  color: var(--text-muted2);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.page h2 { font-size: 1.1rem; margin: 32px 0 8px; }

.page p { margin: 8px 0; color: var(--text-subtle); }

.page strong { color: var(--text); }

.page ol, .page ul { color: var(--text-subtle); }

/* Invite */

.invite {
  text-align: center;
  padding: 56px 0 80px;
}

.invite .app-icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  border: 1px solid var(--hairline);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.invite h1 { font-size: 1.9rem; margin: 24px 0 8px; }

.invite p { color: var(--text-subtle); }

.invite .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* balance the letter-spacing on the last glyph */
  padding: 16px 24px;
  margin: 24px auto;
  display: inline-block;
  border: 1px solid var(--primary-btn);
  border-radius: var(--radius-field);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
}

.invite ol {
  text-align: left;
  display: inline-block;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.invite ol li { margin: 6px 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--hairline-soft);
  padding: 28px 0 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted2);
  font-size: 0.85rem;
}

.site-footer nav { display: flex; gap: 18px; }

.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); text-decoration: none; }
