/* ============================================================
   Picky Eats — Welcome Site
   Mirrors the app's color/spacing system
   ============================================================ */

:root {
  --primary:       #FF6B35;
  --primary-shade: #e05e2f;
  --secondary:     #4A90E2;
  --accent:        #F7B731;
  --text:          #1a1a1a;
  --text-muted:    #6b7280;
  --bg:            #ffffff;
  --bg-alt:        #f9f7f5;
  --border:        #e5e7eb;
  --radius-card:   12px;
  --radius-btn:    8px;
  --max-width:     860px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Layout helpers ─────────────────────────────────────── */

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

section {
  padding: 72px 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

p {
  color: var(--text-muted);
  max-width: 60ch;
}

.intro-text {
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  border: none;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ── Nav ─────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────── */

#hero {
  background: linear-gradient(160deg, #fff8f5 0%, #fff 60%);
  padding: 80px 0 72px;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.2);
  margin-bottom: 28px;
}

#hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
}

#hero h1 span {
  color: var(--primary);
}

#hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto;
}

#hero .btn-group {
  justify-content: center;
}

.price-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
}

/* ── What is Picky Eats ──────────────────────────────────── */

#what .pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.pillar-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

/* ── Getting Started ─────────────────────────────────────── */

#getting-started .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
  counter-reset: steps;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 6px; }

/* ── Features ────────────────────────────────────────────── */

#features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.15s;
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card p { font-size: 0.9rem; }

/* ── Circle ──────────────────────────────────────────────── */

#circle .circle-diagram {
  margin-top: 40px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  text-align: center;
}

.circle-members {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 28px 0;
}

.member-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.avatar-ring.creator {
  border-color: var(--primary);
  background: #fff5f0;
}

.avatar-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.avatar-badge {
  font-size: 0.65rem;
  background: var(--primary);
  color: white;
  padding: 1px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.circle-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  max-width: none;
}

.circle-steps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.circle-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.circle-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ── FAQ ─────────────────────────────────────────────────── */

#faq .faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

details {
  border-bottom: 1px solid var(--border);
}

details:last-child { border-bottom: none; }

details summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  user-select: none;
  transition: background 0.15s;
}

details summary:hover { background: var(--bg-alt); }

details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details .answer {
  padding: 0 24px 20px;
  background: var(--bg);
}

details .answer p {
  font-size: 0.95rem;
}

/* ── Footer ──────────────────────────────────────────────── */

footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-logo img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  opacity: 0.9;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

footer a:hover { color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
  section { padding: 56px 0; }

  #hero { padding: 56px 0 48px; }

  .hero-logo { width: 80px; height: 80px; }

  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { width: 100%; justify-content: center; max-width: 280px; }
}
