/* Quieta for Q Organizers — Rebuilt Landing Page */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #FAF8F5;
  --bg-card: #FFFFFF;
  --sage: #2D503B;
  --sage-light: #E8EFE9;
  --sage-hover: #376647;
  --coral: #E8603C;
  --red: #D44030;
  --text: #2C2C2C;
  --text-muted: #6B6B6B;
  --border: #D6D1CB;
  --radius: 10px;
}

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.15; }
a { color: inherit; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Badge */
.badge {
  display: inline-block; background: var(--sage); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-brand {
  font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem;
  color: var(--sage); text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: var(--sage-hover); }
.btn-outline {
  background: transparent; color: var(--sage);
  border: 2px solid var(--sage); padding: 12px 26px;
}
.btn-outline:hover { background: var(--sage-light); }
.btn-small { padding: 8px 18px; font-size: 0.875rem; background: var(--sage); color: #fff; border-radius: 8px; }
.btn-small:hover { background: var(--sage-hover); }
.btn-large { padding: 18px 40px; font-size: 1.125rem; }

/* Hero */
.hero { text-align: center; padding: 140px 24px 100px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); color: var(--sage); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero .subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 580px; margin: 0 auto 36px; line-height: 1.55; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); text-align: center; color: var(--sage); margin-bottom: 48px; }
.title-accent { font-size: 0.6em; color: var(--coral); font-style: italic; }

/* Before / After comparison */
.comparison { background: #fff; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin: 0 auto; }
.comparison-col { border-radius: 16px; padding: 32px 28px; }
.comparison-col h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.comparison-col ul { list-style: none; }
.comparison-col li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; font-size: 0.95rem; line-height: 1.45; }
.comparison-before { background: #FDF2F0; border: 1px solid #F0D0CA; }
.comparison-before h3 { color: var(--red); }
.comparison-after { background: var(--sage-light); border: 1px solid #B8D0BE; }
.comparison-after h3 { color: var(--sage); }
.icon-x { color: var(--red); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; width: 20px; text-align: center; }
.icon-check { color: var(--sage); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; width: 20px; text-align: center; }

/* Feature comparison table */
.table-section { background: var(--bg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table th, .compare-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  background: var(--sage); color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.compare-table thead th.col-quieta { background: #1E3C2A; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: #FDFCFA; }
.t-check { color: var(--text-muted); font-weight: 700; }
.t-x { color: var(--red); font-weight: 700; }
.q-check { color: var(--sage); font-weight: 700; margin-right: 6px; }
.price-them { color: var(--red); font-weight: 700; }
.price-us { color: var(--sage); font-weight: 700; }

/* How it works — phone mockups */
.how { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-card { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--sage); color: #fff;
  font-family: Georgia, serif; font-size: 1rem; font-weight: 700; border-radius: 50%;
  margin: 20px 0 12px;
}
.step-card h3 { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.45; }

/* Phone frame CSS mockup */
.phone-frame {
  width: 180px; height: 280px; margin: 0 auto;
  border: 3px solid #333; border-radius: 28px;
  background: #fff; overflow: hidden; position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), inset 0 0 0 1px rgba(0,0,0,0.04);
}
.phone-frame::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px; background: #E5E5E5; border-radius: 3px; z-index: 2;
}
.phone-screen { padding: 28px 14px 14px; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.phone-header {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); text-align: center;
}
.phone-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 0.75rem; color: var(--text);
}
.phone-btn-mock {
  background: var(--sage); color: #fff; border-radius: 8px;
  padding: 8px; font-size: 0.7rem; font-weight: 600; text-align: center;
}
.phone-message {
  background: var(--sage-light); border-radius: 10px;
  padding: 10px 12px; font-size: 0.72rem; line-height: 1.4; color: var(--text);
}
.phone-status { font-size: 0.65rem; color: var(--sage); text-align: center; font-weight: 600; }
.phone-caption { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* QR mock */
.qr-mock { display: flex; justify-content: center; padding: 6px 0; }
.qr-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  width: 84px; height: 84px;
}
.qr-grid span {
  background: var(--sage); border-radius: 1px;
}
.qr-grid span:nth-child(2n) { background: transparent; }
.qr-grid span:nth-child(3n+1) { background: var(--sage); }

/* Roster mock */
.roster-row { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; padding: 3px 0; }
.roster-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.roster-dot.going { background: var(--sage); }
.roster-dot.out { background: var(--red); }
.roster-dot.pending { background: #D4A843; }

/* Parents section */
.parents { background: var(--bg); }
.parents-intro { text-align: center; font-size: 1.05rem; color: var(--text); max-width: 640px; margin: -24px auto 40px; line-height: 1.6; }
.parents-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 36px; }
.parent-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 24px 18px; text-align: center;
}
.parent-icon { color: var(--sage); margin-bottom: 12px; }
.parent-card h3 { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.parent-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; }
.parents-bottom { text-align: center; font-size: 1.1rem; color: var(--text); font-family: Georgia, serif; font-style: italic; }

/* Pricing */
.pricing { background: #fff; }
.pricing-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--sage); color: #fff; border-radius: 20px;
  padding: 52px 40px; position: relative; overflow: hidden;
}
.pricing-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; background: rgba(255,255,255,0.05); border-radius: 50%;
}
.price-compare { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 24px; }
.price-old {
  font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400;
  color: rgba(255,255,255,0.5); text-decoration: line-through; text-decoration-color: var(--coral);
}
.price-old .per { font-size: 0.4em; }
.price-arrow { font-size: 1.5rem; color: rgba(255,255,255,0.4); }
.price-new { font-family: Georgia, serif; font-size: 3.5rem; font-weight: 400; color: #fff; }
.price-new .per { font-size: 0.35em; color: rgba(255,255,255,0.7); }
.pricing-card h2 { font-size: 1.4rem; color: #fff; margin-bottom: 16px; line-height: 1.4; }
.pricing-detail { font-size: 1rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; }
.pricing-fine { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* FAQ */
.faq { background: var(--bg); }
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 12px; background: #fff; overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--sage); font-weight: 300; transition: transform 0.2s; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 18px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* CTA */
.cta { text-align: center; background: var(--sage); color: #fff; padding: 80px 24px; }
.cta h2 { font-size: clamp(2rem, 5vw, 2.75rem); color: #fff; margin-bottom: 12px; }
.cta p { font-size: 1.1rem; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.cta .btn-primary { background: #fff; color: var(--sage); }
.cta .btn-primary:hover { background: rgba(255,255,255,0.9); }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-tagline { font-family: Georgia, serif; font-size: 0.875rem; color: var(--text-muted); font-style: italic; }

/* Responsive */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .parents-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 120px 24px 72px; }
  section { padding: 60px 0; }

  .comparison-grid { grid-template-columns: 1fr; gap: 16px; }

  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px 14px; }

  .steps-grid { grid-template-columns: 1fr; gap: 32px; max-width: 260px; margin: 0 auto; }
  .phone-frame { width: 200px; height: 300px; }

  .parents-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto 36px; }

  .pricing-card { padding: 40px 24px; }
  .price-old { font-size: 1.8rem; }
  .price-new { font-size: 2.8rem; }
  .pricing-card h2 { font-size: 1.2rem; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .compare-table th, .compare-table td { padding: 12px 16px; }
}
