/* Mobile-first landing page styles matching app theme with dark mode & accessibility */
:root{
  --app-primary: #f29049;
  --app-secondary: #88ae88;
  --bg: #faf4eb;
  --bg-alt: #ffffff;
  --text: #323232;
  --text-dim: rgba(50,50,50,0.75);
  --radius: 16px;
  --shadow: 0 2px 4px rgba(0,0,0,0.08), 0 6px 18px rgba(0,0,0,0.08);
  --max-width: 1100px;
  --header-height: 70px;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#1c1c1e;
    --bg-alt:#242426;
    --text:#ececec;
    --text-dim:rgba(236,236,236,0.7);
    --shadow: 0 2px 4px rgba(0,0,0,0.6), 0 6px 18px rgba(0,0,0,0.6);
  }
}
*{box-sizing:border-box;-webkit-font-smoothing:antialiased;}
html,body{height:100%;}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
}

/* Layout Utilities */
.container-wide {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--bg); /* or transparent/blur */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
@media (prefers-color-scheme: dark){
  .site-header { border-bottom: 1px solid rgba(255,255,255,0.05); }
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.header-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--app-primary);
}
.btn-download-small {
  background: var(--app-primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.btn-download-small:hover {
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding: 60px 0;
  overflow: hidden;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .hero-content {
    flex: 1;
  }
  .hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
  color: var(--text);
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--app-primary);
  margin-bottom: 20px;
}
.hero-description {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .hero-description { margin-left: 0; }
}

/* Features */
.feature {
  padding: 80px 0;
}
.feature-alt {
  background-color: var(--bg-alt);
}
.feature-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
@media (min-width: 768px) {
  .feature-container {
    flex-direction: row;
    gap: 60px;
  }
  .feature-container.reverse-mobile {
    flex-direction: row-reverse;
  }
}

.feature-content {
  flex: 1;
}
.feature-image {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}
.feature-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.feature-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Image Placeholders */
.image-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9/19.5; /* Mobile phone ratio */
  background-color: #ddd;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 4px solid var(--bg-alt);
}
@media (prefers-color-scheme: dark){
  .image-placeholder {
    background-color: #333;
    color: #aaa;
    border-color: #444;
  }
}

/* Responsive image utilities for real screenshots */
.hero-img,
.feature-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

@media (min-width: 768px) {
  .feature-img,
  .hero-img { 
    max-width: 340px; 
    margin: 0; /* Align left/right in flex containers */
  }
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--bg);
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 30px;
}
.cta-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--app-primary);
  margin-bottom: 40px;
}

/* Store Badge */
.store-badge-container {
  display: flex;
  justify-content: center;
}
@media (min-width: 768px) {
  .hero .store-badge-container {
    justify-content: flex-start;
  }
}
.store-badge img {
  display: block;
  transition: transform .18s ease;
}
.store-badge:hover img {
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  padding: 40px 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}
@media (prefers-color-scheme: dark){
  .site-footer { border-top: 1px solid rgba(255,255,255,0.05); }
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}
.footer-logo {
  width: 32px;
  height: 32px;
}
.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: var(--app-primary);
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* =========================================
   LEGACY STYLES (For Invite Page & Others)
   ========================================= */
.container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 18px;
  /* Restore centering for legacy pages if they rely on body flex centering. 
     Note: Body flex centering was removed. Legacy pages might need adjustment.
     However, .container margin: 0 auto handles horizontal centering.
     Vertical centering was on body. If invite page needs vertical centering, 
     it might look different now (top aligned). 
     I will add a specific class for vertical centering if needed, but for now let's just restore the card styles.
  */
}

.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px 26px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
@media (max-width: 560px) {
  .card { padding: 28px 20px 26px; border-radius: 20px; }
}

.logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.title {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  letter-spacing: -.5px;
  margin: 0 0 6px;
  font-weight: 700;
}

.tagline {
  margin: 0 0 24px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.actions.single {
  margin-top: 4px;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .25px;
  font-size: 0.95rem;
  min-width: 140px;
  text-align: center;
  position: relative;
  transition: background .22s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--app-primary); color: #fff; }
.btn.secondary { background: var(--app-secondary); color: #fff; }
.btn:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .btn:focus-visible { outline: 3px solid #fff; }
}

.note {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.footer {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 12px;
}

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

/* iPhone narrow adjustments for legacy card */
@media (max-width: 420px) {
  .actions { flex-direction: column; gap: 10px; }
  .btn { width: 100%; padding: 16px 20px; font-size: 1rem; }
  .card { padding: 26px 18px 24px; }
}
