:root {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #dd120f; /* Strawberry primary from app */
  --accent-secondary: #ac0b0c; /* Strawberry secondary */
  --accent-light: #e37c92; /* Strawberry background */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f2937;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; }

logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

main.container { padding-top: 1.75rem; padding-bottom: 2.5rem; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.4rem; margin-top: 2rem; }

.hero {
  background: linear-gradient(135deg, rgba(221,18,15,0.1), rgba(172,11,12,0.05), transparent);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.hero h1 { margin-bottom: 0.5rem; }
.hero p { color: var(--muted); margin-top: 0; }

.cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.cta:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(221,18,15,0.3);
}

.site-footer {
  border-top: 1px solid #1f2937;
  color: var(--muted);
  text-align: center;
  margin-top: 3rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

.feature h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
  margin-bottom: 0;
}

.app-preview {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid #1f2937;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #374151;
  transition: all 0.2s ease;
}

.download-btn:hover {
  background: #374151;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .container { padding: 1rem; }
  .hero { padding: 1.5rem; }
  .download-buttons { flex-direction: column; align-items: center; }
}

/* App-like home */
.welcome {
  position: relative;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.welcome-bg { position: absolute; inset: 0; background: radial-gradient(1200px 600px at 20% 10%, rgba(221,18,15,0.25), transparent 60%), linear-gradient(135deg, rgba(221,18,15,0.08), rgba(172,11,12,0.05), transparent); }
.welcome-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(17,24,39,0.7), rgba(17,24,39,0.92));
}
.welcome-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
}
.logo-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--panel);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(221,18,15,0.25);
  border: 1px solid #1f2937;
}
.logo-circle img { width: 110px; height: auto; display: block; }
.welcome-title { margin: 16px 0 8px; font-size: 2.4rem; color: var(--accent); }
.welcome-tagline { color: var(--text); opacity: 0.9; font-size: 1.1rem; }


.header-inner img.logo-image {
  max-width: 50px;
  max-height: 50px;
}

.home-main { max-width: none; padding: 0; }
.home .welcome { border-radius: 0; border: 0; }
.home .site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(17,24,39,0.85), rgba(17,24,39,0));
  border-top: none;
  margin-top: 0;
  z-index: 2;
}

.home .welcome-content { height: 100%; min-height: 0; padding-bottom: 6rem; }

/* Home: full-viewport, no scroll */
.home { height: 100vh; height: 100svh; overflow: hidden; }
.home-main { height: 100%; }
.home .welcome { height: 100%; min-height: 100%; }
.home .site-header { position: absolute; top: 0; left: 0; right: 0; }
.home .welcome-content { padding-top: 5rem; }

.app-home { position: relative; }
.app-home { position: relative; }
.app-home .appbar {
  position: sticky;
  top: 0.5rem;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.app-home .appbar .leading { text-align: left; opacity: 0.9; }
.app-home .appbar .title {
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.app-home .appbar .trailing { text-align: right; }

.empty-state {
  display: none; /* Hidden when we show sample grid below */
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 12px;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
}
.empty-state .icon { font-size: 2rem; margin-bottom: 0.75rem; }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.recipe-card {
  background: var(--panel);
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
}
.recipe-card .thumb {
  aspect-ratio: 1 / 1;
  background: #1f2937;
}
.recipe-card .thumb.placeholder {
  background: linear-gradient(135deg, rgba(221,18,15,0.15), rgba(172,11,12,0.05));
}
.recipe-card .title {
  padding: 0.6rem 0.75rem 0.8rem;
  font-size: 0.95rem;
}

.fab {
  position: fixed;
  right: max(1.25rem, calc((100vw - 920px)/2 + 1.25rem));
  bottom: 2.5rem;
}
.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(221,18,15,0.35);
  cursor: pointer;
}
.fab-menu {
  display: grid;
  gap: 0.5rem;
  position: absolute;
  bottom: 72px;
  right: 0;
}
.fab-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #374151;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 640px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .fab { right: 1rem; bottom: 1.5rem; }
}