/* ==========================================================================
   Again — Component Stylesheet (components.css)
   Interactive demo, feature cards, rhythm dot matrix, pricing, FAQ, footer
   ========================================================================== */

/* Section Shared */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tag {
  font-size: 13px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 12px; display: block;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 400; letter-spacing: -0.015em;
  margin-bottom: 16px; color: var(--text-primary);
}
.section-desc { font-size: 17px; color: var(--text-secondary); line-height: 1.6; }

/* 1. Interactive Demo Card (Hero Device Mockup) */
.demo-wrapper { max-width: 380px; margin: 0 auto; position: relative; }
.interactive-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-xl); padding: 36px 28px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); text-align: center;
  position: relative; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.interactive-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px rgba(0, 0, 0, 0.12); }
.demo-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: var(--bg-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; border: 1px solid var(--border-subtle);
}
.demo-icon-wrap svg {
  width: 28px; height: 28px; stroke: var(--text-primary); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.demo-item-title { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: var(--text-primary); }
.demo-item-elapsed {
  font-size: 34px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 28px; letter-spacing: -0.02em; min-height: 42px; transition: all 0.3s ease;
}
.demo-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 52px;
  background: var(--btn-primary-bg); color: var(--btn-primary-text); font-size: 16px; font-weight: 600;
  border-radius: var(--radius-md); transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: var(--shadow-sm);
}
.demo-btn:hover { opacity: 0.92; transform: scale(0.99); }
.demo-btn:active { transform: scale(0.96); }
.demo-btn.done { background: #10b981; color: #ffffff; }
.demo-hint { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }

/* Toast Floating Notification */
.demo-toast {
  position: absolute; top: -24px; left: 50%; transform: translateX(-50%) translateY(10px) scale(0.92);
  opacity: 0; pointer-events: none; background: var(--glass-bg); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-color); padding: 10px 18px;
  border-radius: 999px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  color: var(--text-primary); box-shadow: var(--shadow-md); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap; z-index: 10;
}
.demo-toast.active { transform: translateX(-50%) translateY(0) scale(1); opacity: 1; }
.demo-toast-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }

/* 2. Philosophy Contrast Box */
.philosophy-card {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl);
  padding: 48px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 30px;
}
.philosophy-column h3 { font-size: 20px; font-weight: 500; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.philosophy-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.philosophy-list li {
  display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-secondary); line-height: 1.5;
}
.philosophy-list li .badge-icon { flex-shrink: 0; margin-top: 2px; font-size: 14px; }

/* 3. Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all 0.25s ease; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, 0.16); box-shadow: var(--shadow-md); }
[data-theme="dark"] .feature-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.feature-icon-box {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg-secondary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; border: 1px solid var(--border-subtle);
}
.feature-icon-box svg { width: 22px; height: 22px; stroke: var(--text-primary); fill: none; stroke-width: 1.8; }
.feature-title { font-size: 19px; font-weight: 500; margin-bottom: 10px; color: var(--text-primary); }
.feature-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* 4. Interactive Rhythm Footprints Demonstration */
.rhythm-box {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 40px 36px; box-shadow: var(--shadow-sm);
}
.rhythm-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-bottom: 1px solid var(--border-color);
  padding-bottom: 28px; margin-bottom: 32px; text-align: center;
}
.rhythm-stat-num { font-size: 32px; font-weight: 500; color: var(--text-primary); }
.rhythm-stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.footprints-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 6px; margin: 20px 0 12px; }
.footprint-dot {
  aspect-ratio: 1; border-radius: 50%; background: var(--accent-faint);
  transition: transform 0.2s ease, background 0.2s ease;
}
.footprint-dot.recorded { background: var(--accent-dot); }
.footprint-dot:hover { transform: scale(1.4); }
.rhythm-months { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); margin-top: 8px; }

/* 5. Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 820px; margin: 0 auto; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl);
  padding: 40px 32px; display: flex; flex-direction: column; position: relative; transition: all 0.25s ease;
}
.pricing-card.featured { border-color: var(--text-primary); box-shadow: var(--shadow-md); }
.pricing-badge {
  position: absolute; top: -12px; right: 28px; background: var(--btn-primary-bg); color: var(--btn-primary-text);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: 999px;
}
.plan-name { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.plan-desc { font-size: 14px; color: var(--text-secondary); min-height: 42px; }
.plan-price-wrap { margin: 24px 0 32px; display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; }
.plan-period { font-size: 14px; color: var(--text-tertiary); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; flex-grow: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
.plan-features li svg { width: 16px; height: 16px; stroke: var(--text-primary); fill: none; stroke-width: 2.2; flex-shrink: 0; }

/* 6. FAQ Accordion */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-card);
  overflow: hidden; transition: border-color 0.2s ease;
}
.faq-question {
  width: 100%; text-align: left; padding: 20px 24px; display: flex; justify-content: space-between;
  align-items: center; font-size: 16px; font-weight: 500; color: var(--text-primary);
}
.faq-icon {
  width: 16px; height: 16px; stroke: var(--text-secondary); fill: none;
  stroke-width: 2; transition: transform 0.25s ease; flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px; font-size: 14px; color: var(--text-secondary); line-height: 1.65;
}
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 20px; }

/* 7. Footer */
.site-footer {
  border-top: 1px solid var(--border-color); padding: 60px 0 40px; background: var(--bg-secondary);
  font-size: 13px; color: var(--text-secondary);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px;
}
.footer-brand h4 { font-size: 18px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.footer-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle);
  padding-top: 24px; color: var(--text-tertiary); flex-wrap: wrap; gap: 16px;
}

/* Responsive adjustments for components */
@media (max-width: 768px) {
  .philosophy-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .rhythm-stats { grid-template-columns: 1fr; gap: 16px; }
  .footprints-grid { grid-template-columns: repeat(14, 1fr); }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}
