/* ============================================================
   e-ChurchTech — Design System
   ============================================================ */

:root {
  --navy: #101828;
  --royal: #3157D5;
  --soft-blue: #EEF4FF;
  --warm-white: #FAFAF8;
  --charcoal: #252A34;
  --green: #20A36A;
  --orange: #E8850C;
  --red: #D92D20;
  --muted: #667085;
  --border: #E4E7EC;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,.06), 0 2px 4px -2px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 16px -4px rgba(16,24,40,.08), 0 4px 6px -2px rgba(16,24,40,.03);
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--charcoal); background: var(--warm-white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p  { color: var(--muted); font-size: 1rem; }

.section-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--royal); margin-bottom: .5rem; }
.section-title { margin-bottom: .75rem; }
.section-desc  { max-width: 640px; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 5rem 0; }
.section--alt { background: var(--soft-blue); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark .section-label { color: #fff; }
.section--dark p { color: rgba(255,255,255,.7); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: all .2s; }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: #2447b8; }
.btn--secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--soft-blue); }
.btn--ghost { background: transparent; color: var(--royal); padding: .5rem; }
.btn--ghost:hover { text-decoration: underline; }
.btn--white { background: #fff; color: var(--royal); }
.btn--white:hover { background: var(--soft-blue); }

/* ---- Navbar ---- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(250,250,248,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.navbar__logo { font-size: 1.25rem; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: .5rem; }
.navbar__logo span { color: var(--royal); }
.navbar__links { display: flex; gap: 2rem; align-items: center; }
.navbar__links a { font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.navbar__links a:hover { color: var(--navy); }
.navbar__actions { display: flex; gap: .75rem; align-items: center; }
.navbar__toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

@media (max-width: 900px) {
  .navbar__links { display: none; }
  .navbar__toggle { display: block; }
  .navbar__links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
}

/* ---- Hero ---- */
.hero { padding: 8rem 0 5rem; text-align: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero p.hero__sub { font-size: 1.2rem; max-width: 640px; margin: 0 auto 2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---- Dashboard Preview ---- */
.dashboard-preview { max-width: 960px; margin: 3rem auto 0; background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; }
.dp-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--navy); color: #fff; }
.dp-header__left { display: flex; align-items: center; gap: .75rem; }
.dp-header__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--royal); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.dp-header__text h4 { font-size: .95rem; font-weight: 600; color: #fff; }
.dp-header__text span { font-size: .75rem; color: rgba(255,255,255,.6); }
.dp-body { padding: 1.5rem; }
.dp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dp-stat { background: var(--soft-blue); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.dp-stat__num { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.dp-stat__label { font-size: .8rem; color: var(--muted); }
.dp-chart { background: var(--soft-blue); border-radius: var(--radius-sm); padding: 1.25rem; }
.dp-chart__title { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }
.bar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.bar-label { font-size: .8rem; color: var(--muted); width: 100px; text-align: right; }
.bar-track { flex: 1; height: 20px; background: #E4E7EC; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; background: var(--royal); transition: width .6s ease; }
.bar-fill--green { background: var(--green); }
.bar-fill--orange { background: var(--orange); }
.bar-fill--red { background: var(--red); }
.bar-pct { font-size: .8rem; font-weight: 600; color: var(--navy); width: 40px; }

@media (max-width: 768px) {
  .dp-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Cards ---- */
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow-md); }
.card__icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; background: var(--soft-blue); }
.card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.card p { font-size: .9rem; }

/* ---- Product Cards ---- */
.product-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card__body { padding: 1.5rem; }
.product-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.product-card__badge { display: inline-block; background: var(--green); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.product-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.product-card p { font-size: .9rem; margin-bottom: 1rem; }
.product-card__preview { background: var(--soft-blue); border-top: 1px solid var(--border); padding: 1.25rem; min-height: 160px; display: flex; align-items: center; justify-content: center; }

/* ---- Stat Badge ---- */
.stat-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 999px; }
.stat-badge--up { background: #ECFDF3; color: var(--green); }
.stat-badge--down { background: #FEF3F2; color: var(--red); }
.stat-badge--stable { background: var(--soft-blue); color: var(--royal); }

/* ---- Testimonials ---- */
.testimonial { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.testimonial__quote { font-size: 1rem; font-style: italic; color: var(--charcoal); margin-bottom: 1.25rem; line-height: 1.7; }
.testimonial__author { display: flex; align-items: center; gap: .75rem; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--royal); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.testimonial__name { font-weight: 600; font-size: .9rem; color: var(--navy); }
.testimonial__role { font-size: .8rem; color: var(--muted); }

/* ---- Pricing ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }
.pricing-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; position: relative; display: flex; flex-direction: column; }
.pricing-card--featured { border-color: var(--royal); box-shadow: 0 0 0 2px var(--royal); }
.pricing-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--royal); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; }
.pricing-card__name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.pricing-card__desc { font-size: .85rem; color: var(--muted); margin-bottom: 1.25rem; }
.pricing-card__price { margin-bottom: 1.25rem; }
.pricing-card__price span { font-size: 2.5rem; font-weight: 800; color: var(--navy); }
.pricing-card__price small { font-size: .9rem; color: var(--muted); }
.pricing-card__features { flex: 1; margin-bottom: 1.5rem; }
.pricing-card__features li { font-size: .9rem; color: var(--muted); padding: .35rem 0; padding-left: 1.5rem; position: relative; }
.pricing-card__features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---- Trust / Logos ---- */
.logos-row { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; opacity: .5; }
.logos-row span { font-size: .95rem; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ---- CTA Section ---- */
.cta-section { text-align: center; padding: 5rem 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; font-size: 1.1rem; }

/* ---- Footer ---- */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 4rem 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer p, .footer a { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer a:hover { color: #fff; }
.footer__links li { margin-bottom: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer__logo { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer__logo span { color: var(--royal); }
.footer__compliance { display: flex; gap: .75rem; }
.footer__compliance span { font-size: .75rem; background: rgba(255,255,255,.08); padding: .25rem .5rem; border-radius: 4px; }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Problem Section ---- */
.problem-card { padding: 1.5rem; }
.problem-card__num { font-size: .8rem; font-weight: 700; color: var(--royal); margin-bottom: .75rem; }
.problem-card blockquote { font-size: 1.05rem; font-style: italic; color: var(--charcoal); margin-bottom: .75rem; line-height: 1.6; }
.problem-card cite { font-size: .8rem; color: var(--muted); font-style: normal; }

/* ---- Team Cards ---- */
.team-card { text-align: center; }
.team-card__icon { font-size: 2.5rem; margin-bottom: .75rem; }
.team-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.team-card p { font-size: .85rem; }

/* ---- Health Dashboard ---- */
.health-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.health-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.health-item__label { font-size: .75rem; color: var(--muted); margin-bottom: .25rem; }
.health-item__value { font-size: 1.1rem; font-weight: 700; }
@media (max-width: 768px) { .health-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Features Table ---- */
.feature-table { width: 100%; border-collapse: collapse; }
.feature-table th, .feature-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.feature-table th { font-weight: 600; color: var(--navy); background: var(--soft-blue); }
.feature-table td:first-child { font-weight: 500; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero { padding: 6rem 0 3rem; }
  .section { padding: 3rem 0; }
  h1 { font-size: 2rem; }
}