/* ============================================================
   BariApp Landing Page — Styles
   ============================================================ */

:root {
  --color-bg: #FDFCF9;
  --color-surface: #FFFFFF;
  --color-ink: #1E1E1E;
  --color-ink-secondary: #4A4A4A;
  --color-ink-muted: #6B6B6B;
  --color-ink-faint: #9A9A9A;
  --color-primary: #0D9488;
  --color-primary-soft: #E0F2F1;
  --color-primary-ink: #0D7A6E;
  --color-accent: #F97316;
  --color-accent-soft: #FFF7ED;
  --color-success: #10B981;
  --color-warn: #F59E0B;
  --color-hairline: #E8E4DF;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --max-width: 1100px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

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

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--color-primary-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-ink);
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--color-ink-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-surface);
  color: var(--color-ink-secondary);
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-hairline);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-bg);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-disclaimer {
  font-size: 13px;
  color: var(--color-ink-faint);
  max-width: 480px;
  margin: 0 auto;
}

/* ============================================================
   PHONE MOCKUP
   ============================================================ */

.phone-mockup {
  max-width: 320px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-hairline);
}

.phone-screen {
  background: var(--color-bg);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--color-ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-content {
  padding: 48px 20px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-hairline);
}

.phone-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.phone-bar {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-hairline);
  overflow: hidden;
}

.phone-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  width: 65%;
}

.phone-bar-fill-warn {
  background: var(--color-warn);
  width: 35%;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--color-ink-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.testimonial-quote::before {
  content: '"';
  font-size: 48px;
  line-height: 1;
  color: var(--color-primary);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 20px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.testimonial-role {
  font-size: 13px;
  color: var(--color-ink-faint);
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.pricing-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink-faint);
}

.pricing-desc {
  font-size: 14px;
  color: var(--color-ink-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-ink-secondary);
  padding: 6px 0;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   WAITLIST / FORM
   ============================================================ */

.waitlist-section {
  background: var(--color-ink);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.waitlist-section .section-title {
  color: #fff;
}

.waitlist-section .section-desc {
  color: rgba(255,255,255,0.7);
}

.waitlist-form {
  max-width: 480px;
  margin: 32px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row > * {
  flex: 1;
  min-width: 200px;
}

.form-input {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.form-input:focus {
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.12);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}

.btn-form:hover {
  background: var(--color-primary-ink);
  transform: translateY(-1px);
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: #6EE7B7;
  font-size: 15px;
  margin-top: 12px;
}

.form-error {
  display: none;
  padding: 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: 15px;
  margin-top: 12px;
}

.form-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-hairline);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--color-primary);
}

.footer-desc {
  font-size: 14px;
  color: var(--color-ink-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--color-ink-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--color-hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-ink-faint);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--color-ink-faint);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 320px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

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