/* Mes Petites Courses - Base Styles (shadcn-like tokens + light theme) */

/* CSS Variables inspired by shadcn/ui design tokens */
:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;

  --popover: 0 0% 100%;
  --popover-foreground: 222.2 84% 4.9%;

  --card: 0 0% 100%;
  --card-foreground: 222.2 84% 4.9%;

  --border: 214.3 31.8% 91.4%;
  --input: 214.3 31.8% 91.4%;

  /* Primary: deep purple */
  --primary: 262 83% 58%;
  --primary-foreground: 210 40% 98%;

  --secondary: 210 40% 96.1%;
  --secondary-foreground: 222.2 47.4% 11.2%;

  --accent: 210 40% 96.1%;
  --accent-foreground: 222.2 47.4% 11.2%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --ring: 262 83% 58%;
  --radius: 0.75rem; /* 12px */
}

/* Reset-ish */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }
body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 1.2rem + 2.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; color: hsl(var(--muted-foreground)); }

.lead { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: hsl(var(--muted-foreground)); }
.muted { color: hsl(var(--muted-foreground)); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: saturate(180%) blur(6px);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; font-weight: 700;
}
.brand .logo img {
  width: 100px; height: 100px; border-radius: 3px;
}
.nav-links { display: none; gap: 1rem; }
.nav-cta { display: none; }

@media (min-width: 768px) {
  .nav-links { display: inline-flex; }
  .nav-cta { display: inline-flex; }
}

.navbar a { color: hsl(var(--muted-foreground)); }
.navbar a:hover { color: hsl(var(--foreground)); }

/* Ensure primary button text in navbar is pure white */
.navbar .btn-primary { color: #fff; }

/* Hero */
.hero { padding: 72px 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: hsl(var(--primary)); display: inline-block; }
.hero-title { margin-top: 0.5rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.hero-media {
  border: 1px solid hsl(var(--border));
  background: linear-gradient(180deg, hsl(var(--muted)) 0%, white 100%);
  border-radius: calc(var(--radius) * 1.25);
  padding: 1rem; 
  box-shadow: 0 10px 30px -12px hsl(var(--foreground) / 0.18);
}
.hero-media .device {
  width: min(360px, 100%);
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  border: 8px solid #0a0a0a;
  margin: 0 auto;
  background: white;
  overflow: hidden;
}
.hero-media .device .screen {
  height: 100%;
  background: linear-gradient(180deg, #fafafa 0%, #f0e9ff 100%);
  display: grid; place-items: center; color: #6d28d9; font-weight: 700;
}

@media (min-width: 992px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* Grid utilities */
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Card */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -20px hsl(var(--foreground) / 0.25);
}
.card-body { padding: 1rem; }
.card-header { padding: 1rem 1rem 0; font-weight: 600; }
.card-footer { padding: 0 1rem 1rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 40px; padding: 0 1rem; border-radius: calc(var(--radius) - 4px);
  border: 1px solid transparent; cursor: pointer; user-select: none;
  background: hsl(var(--secondary)); color: hsl(var(--secondary-foreground));
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: hsl(var(--accent)); }

.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.92); }

.btn-outline { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-outline:hover { background: hsl(var(--muted)); }

.btn-ghost { background: transparent; color: hsl(var(--foreground)); }
.btn-ghost:hover { background: hsl(var(--muted)); }

.btn-lg { height: 48px; padding: 0 1.25rem; }
.btn-sm { height: 32px; padding: 0 0.75rem; font-size: 0.875rem; }

/* Sections */
.section { padding: 56px 0; }
.section-header { margin-bottom: 1.25rem; text-align: center; }
.section-subtitle { max-width: 720px; margin: 0.5rem auto 0; }

/* Feature list */
.feature { display: grid; gap: 0.5rem; }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  background: hsl(var(--primary) / 0.08); color: hsl(var(--primary));
}

/* Footer */
.footer { border-top: 1px solid hsl(var(--border)); padding: 32px 0; margin-top: 40px; color: hsl(var(--muted-foreground)); }
.footer a { color: inherit; }
.footer a:hover { color: hsl(var(--foreground)); }

/* Forms */
.input {
  width: 100%; height: 40px; padding: 0 0.75rem; border-radius: calc(var(--radius) - 4px);
  border: 1px solid hsl(var(--input)); background: white; color: inherit;
}
.input:focus { outline: none; box-shadow: 0 0 0 4px hsl(var(--ring) / 0.12), 0 0 0 1px hsl(var(--ring)); }

/* Focus-visible */
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 6px; }

/* Utilities */
.max-w-prose { max-width: 72ch; }
.center { text-align: center; }
.stack { display: grid; gap: 0.5rem; }
.stack-md { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.5rem; }

/* Download badges (placeholder) */
.store-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.store-badge { height: 48px; padding: 0 0.75rem; border: 1px solid hsl(var(--border)); border-radius: 10px; display: inline-flex; align-items: center; gap: 0.5rem; background: white; }
.store-badge .badge-mark { width: 28px; height: 28px; border-radius: 7px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); display: grid; place-items: center; font-size: 0.85rem; font-weight: 700; }

/* Privacy content */
.prose { color: hsl(var(--muted-foreground)); }
.prose h1, .prose h2, .prose h3 { margin-top: 1rem; color: hsl(var(--foreground)); }
.prose p { color: hsl(var(--muted-foreground)); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.25rem 0; color: hsl(var(--muted-foreground)); }
.prose a { color: hsl(var(--foreground)); text-decoration: underline; }
.prose a:hover { opacity: 0.85; }
.prose .btn { text-decoration: none; }
.prose pre { padding: 0.75rem 1rem; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); overflow: auto; }
