/* Livify Website CSS - Calm iOS-inspired aesthetic */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F4F3F0; /* alternate background (light neutral) */
  --color-primary: #7F9A83; /* sage green */
  --color-secondary: #CBA378; /* soft clay */
  --color-text: #333333;
  --color-text-light: #FFFFFF;
  --color-accent: #99BAD7; /* sky blue accent maybe for subtle usage */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  border-radius: 0.5rem;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header/Nav styles */
header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  position: relative;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}
nav a:hover {
  color: var(--color-primary);
}
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* Hero section styles */
.hero {
  background: linear-gradient(120deg, #E8F0F4 0%, #F4EFE8 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero p.tagline {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  text-align: center;
}

.hero-icon,
.tagline-icon,
.feature-icon,
.feature-icon-small {
  color: var(--color-text);
  display: inline-flex;
}
.hero-icon {
  width: 36px;
  height: 36px;
}
.tagline-icon {
  width: 28px;
  height: 28px;
}
.hero .app-screenshots {
  margin: 2rem 0;
}
.iphone-mockup {
  width: 200px;
  border-radius: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.app-screenshots .iphone-mockup:nth-child(1) {
  position: relative;
  z-index: 2;
}
.app-screenshots .iphone-mockup:nth-child(2) {
  position: relative;
  left: -40px;
  top: 20px;
  z-index: 1;
}

/* Feature highlights on home */
.features-highlights {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}
.features-highlights h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 600;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text);
}
.feature-card .feature-icon-small {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.5rem;
}

/* CTA Download button (App Store badge) */
.download-btn img {
  height: 50px;
}

/* Testimonial */
.testimonial {
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
  font-style: italic;
}
.testimonial blockquote {
  quotes: "“" "”" "‘" "’";
}
.testimonial blockquote:before {
  content: open-quote;
}
.testimonial blockquote:after {
  content: close-quote;
}
.testimonial blockquote {
  display: inline-block;
  margin: 0 auto 0.5rem;
}
.testimonial figcaption {
  font-style: normal;
  color: var(--color-text);
  font-size: 0.9rem;
}

/* Features page sections */
.feature-section {
  padding: 3rem 0;
}
.feature-section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.feature-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.feature-content {
  flex: 1 1 50%;
}
.feature-content h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.feature-content p {
  margin-bottom: 1rem;
}
.feature-content .feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}
.feature-media {
  flex: 1 1 45%;
  text-align: center;
}
.feature-media img.feature-screenshot {
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Alternate layout for feature sections */
.feature-section.reverse .container {
  flex-direction: row-reverse;
}

/* Pricing page */
.pricing {
  padding: 3rem 0;
}
.pricing h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.pricing-plans {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.plan-card {
  flex: 1 1 30%;
  background: #FFFFFF;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}
.plan-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.plan-card .price {
  font-size: 2rem;
  margin: 0.5rem 0;
  color: var(--color-primary);
}
.plan-card ul {
  list-style: none;
  text-align: left;
  margin: 1rem 0;
  padding: 0;
}
.plan-card ul li {
  margin: 0.3rem 0;
}
.plan-card .plan-cta {
  margin-top: 1rem;
}
.plan-card .plan-cta a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
}
.plan-card .plan-cta a:hover {
  background: var(--color-secondary);
}

/* Download link (CTA) on Features page */
.download-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
}
.download-link:hover {
  background: var(--color-secondary);
}

/* Download page */
.download-page {
  padding: 3rem 0;
  text-align: center;
}
.download-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.download-page p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.app-badges img {
  height: 60px;
}

/* FAQ page */
.faq {
  padding: 3rem 0;
}
.faq h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.faq-section {
  max-width: 800px;
  margin: 0 auto;
}
.faq-section details {
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: #f9f9f9;
  padding: 0.5rem 1rem;
}
.faq-section summary {
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.faq-section summary::marker {
  display: none;
}
.faq-section summary::after {
  content: "➕";
  float: right;
  font-weight: bold;
}
.faq-section details[open] summary::after {
  content: "➖";
}
.faq-section p {
  margin: 0.5rem 0 0.5rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid #ddd;
}

/* Support page */
.support {
  padding: 3rem 0;
  max-width: 600px;
  margin: 0 auto;
}
.support h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.support p {
  margin-bottom: 1rem;
}
.support a.email-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.support .contact-form {
  margin-top: 1rem;
}
.support .contact-form label {
  display: block;
  margin: 0.5rem 0 0.2rem;
}
.support .contact-form input,
.support .contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font: inherit;
}
.support .contact-form textarea {
  height: 100px;
  resize: vertical;
}
.support .contact-form button {
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 0.3rem;
  font-size: 1rem;
  cursor: pointer;
}
.support .contact-form button:hover {
  background: var(--color-secondary);
}

/* Legal pages (Privacy, Terms) */
.legal {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.legal h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.legal h2 {
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
.legal p, .legal li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Footer */
footer {
  background: #f3f3f3;
  padding: 1rem 0;
  font-size: 0.9rem;
  text-align: center;
  color: #666;
}
footer a {
  color: #666;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
  }
  nav.open ul {
    display: block;
  }
  .nav-toggle {
    display: block;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-content, .feature-media {
    flex: 1 1 100%;
  }
  .pricing-plans {
    flex-direction: column;
  }
  .plan-card {
    margin-bottom: 1rem;
  }
}
