/* Vesti Landing Page - Optimized Styles */

/* ========== CSS VARIABLES ========== */
:root {
  /* Colors - Keep burgundy as-is for logo consistency */
  --cream: #F8F8F8;
  --burgundy: #800020;
  --charcoal: #222222;
  --muted: #666666;  /* FIXED: Was #777777 (failed WCAG AA), now #666666 (6.04:1 contrast) */

  /* Spacing - 8pt grid system */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-lg);
}

@media (min-width: 640px) {
  .container {
    padding: var(--space-lg);
  }
}

@media (min-width: 768px) {
  .container {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .container { padding: var(--space-xl); }
}

.grid {
  display: grid;
  gap: var(--space-md);
  align-items: center;
  width: 100%;
  justify-items: center;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    justify-items: stretch;
  }
}

/* ========== TYPOGRAPHY ========== */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

@media (min-width: 768px) {
  .hero-title {
    margin-bottom: var(--space-sm);
  }
}

.hero-subtitle {
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .hero-subtitle {
    margin-bottom: var(--space-lg);
  }
}

.bullet-list {
  list-style: none;
  margin: var(--space-md) 0;
}

@media (min-width: 768px) {
  .bullet-list {
    margin: var(--space-lg) 0;
  }
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: left;
}

@media (min-width: 768px) {
  .bullet-item {
    gap: var(--space-md);
    margin-bottom: var(--space-md);
  }
}

.bullet-dot {
  width: 8px;
  height: 8px;
  background-color: var(--burgundy);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.bullet-text strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ========== IMAGES ========== */
.logo {
  width: clamp(140px, 35vw, 240px);
  height: auto;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .logo {
    margin-bottom: var(--space-lg);
  }
}

.screenshot {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background: var(--cream);
}

@media (min-width: 768px) {
  .screenshot {
    max-width: 340px;
  }
}

/* ========== CTA ========== */
.cta-wrapper {
  margin: var(--space-md) 0;
}

@media (min-width: 768px) {
  .cta-wrapper {
    margin: var(--space-lg) 0;
  }
}

.app-store-badge {
  display: inline-block;
  height: clamp(40px, 10vw, 64px);
  width: auto;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-store-badge:active {
  transform: translateY(0);
}

/* ========== TRUST SIGNALS ========== */
.trust-signals {
  font-size: 0.75rem;
  color: var(--muted);
  margin: var(--space-md) 0;
}

@media (min-width: 640px) {
  .trust-signals { font-size: 0.875rem; }
}

/* ========== FOOTER ========== */
footer {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: var(--space-md);
}

@media (min-width: 768px) {
  footer {
    margin-top: var(--space-lg);
  }
}

@media (min-width: 640px) {
  footer { font-size: 0.875rem; }
}

footer a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
  /* Minimum 44px touch target */
  padding: var(--space-sm);
  margin: calc(var(--space-sm) * -1);
}

footer a:hover {
  opacity: 0.7;
}

footer a:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ========== ACCESSIBILITY ========== */
/* CRITICAL: Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link for screen readers - hidden until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--burgundy);
  color: white;
  padding: var(--space-sm) var(--space-md);
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus {
  top: 0;
  opacity: 1;
  pointer-events: auto;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }

@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:justify-end { justify-content: flex-end; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }

/* Mobile: hide elements */
.md\:hidden {
  display: block;
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }
}

/* Desktop: hide mobile elements, show desktop elements */
.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }
}
