/* css/medication-reminder-app.css */

.page-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-top: 6rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.15;
  padding: 0 1rem;
  letter-spacing: -0.02em;
}

.page-title span {
  color: var(--accent);
}

.page-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  padding: 0 1rem;
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 3rem auto 5rem;
  padding: 2rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat { text-align: center; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #254652;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 160px;
  line-height: 1.4;
}

/* ── Section titles ── */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.feature-card {
  background: white;
  padding: 2.25rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1rem;
}

/* ── Comparison table ── */
.comparison-section {
  max-width: 1000px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.comparison-table th,
.comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-table th {
  background: #fdfdfd;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.comparison-table th.highlight {
  background: rgba(255, 183, 3, 0.1);
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  width: 35%;
}

.comparison-table td {
  color: var(--text-secondary);
  font-size: 1rem;
}

.comparison-table td.highlight {
  background: rgba(255, 183, 3, 0.03);
  font-weight: 500;
  color: var(--text-primary);
}

.comparison-table tr:last-child td { border-bottom: none; }

.icon-check { color: #10B981; font-weight: bold; margin-right: 0.4rem; }
.icon-cross  { color: #EF4444; font-weight: bold; margin-right: 0.4rem; }

/* ── FAQ section ── */
.faq-section {
  max-width: 820px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}

.faq-item {
  background: white;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.faq-item p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, rgba(37, 70, 82, 0.07), rgba(37, 70, 82, 0.02));
  border-radius: 32px;
  margin: 0 1.5rem 4rem;
}

.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.cta-section > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-links {
  margin-top: 2rem !important;
  font-size: 0.88rem !important;
}

.cta-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-links a:hover { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-title    { font-size: 2.1rem; margin-top: 5rem; }
  .stats-bar     { gap: 2rem; margin-bottom: 3rem; }
  .stat-number   { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .cta-section   { border-radius: 24px; padding: 3.5rem 1.25rem; }
  .cta-section h2 { font-size: 1.8rem; }
  .faq-item      { padding: 1.25rem 1.25rem; }
  .comparison-table th,
  .comparison-table td { padding: 1rem 0.75rem; font-size: 0.9rem; }
}
