*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg:          #F7F4EA;
    --surface:     #FFFFFF;
    --surface-soft:#E2EEE4;
    --border:      #EEF1EA;
    --text:        #1F2A22;
    --text-dim:    #4A5A4F;
    --text-mute:   #3A4A40;
    --muted:       #8A978E;
    --green-deep:  #14492F;
    --green:       #1E6B47;
    --green-mid:   #2C7E53;
    --green-light: #3E9A63;
    --cream-strong:#F6E7B8;
    --cream:       #F5F0E3;
    --on-dark-dim: #CFE3D5;
    --shadow: 0 1px 2px rgba(20,73,47,.06), 0 8px 24px rgba(20,73,47,.06);
  }

  html { font-size: 16px; scroll-behavior: smooth; }
  body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.5;
  }
  a { color: inherit; text-decoration: none; }
  a:hover { opacity: .9; }
  img, svg { display: block; max-width: 100%; }

  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  /* ── HERO ── */
  .hero { position: relative; overflow: hidden; background: var(--green); color: var(--cream); padding-bottom: 64px; }
  .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--cream); flex-shrink: 0; }
  .brand svg { width: 32px; height: 32px; flex-shrink: 0; }
  .nav-links { display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 500; color: var(--on-dark-dim); flex-shrink: 0; }
  .nav-links a:hover { color: var(--cream); }
  .nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
  .lang-pill { height: 34px; padding: 3px; border-radius: 17px; background: var(--green-mid); display: flex; font-size: .78rem; font-weight: 600; flex-shrink: 0; }
  .lang-pill a, .lang-pill span { padding: 0 13px; border-radius: 14px; display: flex; align-items: center; }
  .lang-pill .active { background: var(--cream-strong); color: var(--green-deep); }
  .lang-pill a { color: var(--on-dark-dim); }
  .btn { height: 48px; padding: 0 24px; border-radius: 24px; background: var(--cream-strong); color: var(--green-deep); display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; white-space: nowrap; }
  .btn-outline { height: 48px; padding: 0 24px; border-radius: 24px; border: 2px solid var(--on-dark-dim); color: var(--cream); display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600; }

  .hero-grid { position: relative; z-index: 1; display: flex; align-items: center; gap: 48px; padding: 36px 0 0; }
  .hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
  .hero-eyebrow { height: 34px; padding: 0 16px; border-radius: 17px; background: var(--green-mid); display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; color: var(--cream-strong); width: fit-content; }
  .hero-copy h1 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--cream); }
  .hero-copy > p { font-size: 1.1rem; line-height: 1.6; color: var(--on-dark-dim); max-width: 42ch; }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
  .hero-qr { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
  .hero-qr img { width: 112px; height: 112px; border-radius: 14px; background: #fff; padding: 6px; flex-shrink: 0; }
  .hero-qr span { font-size: .82rem; line-height: 1.4; color: var(--on-dark-dim); }

  /* phone mockup */
  .phone-wrap { width: 300px; flex-shrink: 0; }
  .phone { border-radius: 34px; background: var(--green-deep); padding: 12px; box-shadow: var(--shadow); }
  .phone-slides { position: relative; aspect-ratio: 390 / 920; border-radius: 22px; overflow: hidden; }
  .phone-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: slideshow 12s infinite; }
  .phone-slides img:nth-child(1) { animation-delay: 0s; }
  .phone-slides img:nth-child(2) { animation-delay: 3s; }
  .phone-slides img:nth-child(3) { animation-delay: 6s; }
  .phone-slides img:nth-child(4) { animation-delay: 9s; }
  @keyframes slideshow { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    .phone-slides img { animation: none; opacity: 0; }
    .phone-slides img:first-child { opacity: 1; }
  }

  /* ── STATS ── */
  .stats { display: flex; gap: 60px; flex-wrap: wrap; padding: 56px 0; }
  .stat .v { font-size: 2.6rem; line-height: 1.1; font-weight: 800; color: var(--green); }
  .stat .l { font-size: 1rem; color: var(--text-dim); max-width: 26ch; margin-top: 4px; }

  /* ── SECTION HEAD ── */
  .section-head { display: flex; flex-direction: column; gap: 12px; max-width: 46ch; margin-bottom: 36px; }
  .eyebrow { font-size: .9rem; font-weight: 700; color: var(--green-light); letter-spacing: .06em; }
  .section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.25; font-weight: 800; color: var(--green-deep); }

  /* ── FEATURES ── */
  .features { padding: 24px 0 72px; }
  .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .f-card { border-radius: 24px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
  .f-banner { height: 130px; background: var(--green); display: flex; align-items: center; justify-content: center; position: relative; }
  .f-banner .circle { width: 64px; height: 64px; border-radius: 32px; background: var(--cream-strong); display: flex; align-items: center; justify-content: center; }
  .f-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
  .f-body h3 { font-size: 1.25rem; font-weight: 700; color: var(--green-deep); }
  .f-body p { font-size: .92rem; line-height: 1.5; color: var(--text-dim); }

  /* ── HOW IT WORKS ── */
  .how { background: var(--surface-soft); padding: 64px 0; }
  .steps { display: flex; gap: 32px; justify-content: space-between; align-items: flex-start; position: relative; }
  .steps-line { position: absolute; left: 0; top: 36px; width: 100%; height: 190px; z-index: 0; pointer-events: none; }
  @keyframes march { to { stroke-dashoffset: -32; } }
  @keyframes marchV { to { background-position: 0 14px; } }
  .steps-line .march { animation: march 1.2s linear infinite; }
  @media (prefers-reduced-motion: reduce) { .steps-line .march { animation: none; } .step::after { animation: none !important; } }
  .step { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .step.step-mid { margin-top: 110px; }
  .step-circle { width: 72px; height: 72px; border-radius: 36px; background: var(--green); border: 5px solid var(--cream-strong); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--cream); }
  .step h3 { font-size: 1.25rem; font-weight: 700; color: var(--green-deep); }
  .step p { font-size: .92rem; color: var(--text-dim); max-width: 26ch; }

  /* ── FINAL CTA ── */
  .final-cta { background: var(--green-deep); padding: 72px 0; text-align: center; }
  .final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--cream); margin-bottom: 14px; }
  .final-cta p { font-size: 1.05rem; color: var(--on-dark-dim); margin-bottom: 20px; }
  .final-cta .cta-row { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
  .qr-card { width: 216px; height: 216px; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--shadow); flex-shrink: 0; margin: 0 auto; }
  .qr-card img { width: 100%; height: 100%; display: block; }
  .qr-caption { font-size: .88rem; color: var(--on-dark-dim); max-width: 216px; text-align: center; margin: 10px auto 0; }

  /* ── FOOTER ── */
  .site-footer { padding: 36px 24px; background: var(--green-deep); color: var(--on-dark-dim); font-size: .88rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid rgba(255,255,255,.08); }
  .site-footer .links { display: flex; gap: 24px; flex-wrap: wrap; }
  .site-footer a:hover { color: var(--cream); }

  @media (max-width: 960px) {
    .hero-grid { flex-direction: column; }
    .phone-wrap { width: 260px; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; align-items: center; gap: 28px; }
    .step:not(:last-child)::after {
      content: ''; display: block; position: absolute;
      left: 50%; bottom: -28px; width: 3px; height: 28px;
      transform: translateX(-50%);
      background: repeating-linear-gradient(to bottom, #3E9A63 0 4px, transparent 4px 10px);
      background-size: 3px 14px;
      animation: marchV .8s linear infinite;
    }
    .steps-line { display: none; }
    .step.step-mid { margin-top: 0; }
    .nav-links { display: none; }
  }
  @media (max-width: 640px) {
    .wrap { padding: 0 18px; }
    .stats { gap: 32px; padding: 40px 0; }
  }

  :focus-visible { outline: 2px solid var(--green-light); outline-offset: 2px; }

  /* ── SCROLL REVEAL ── */
  .reveal-up {
    opacity: 0; transform: translateY(28px);
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  }
  .reveal-up.in-view { opacity: 1; transform: none; }

  .stagger > * {
    opacity: 0; transform: translateY(28px);
    transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  }
  .stagger > *:nth-child(1) { transition-delay: 0s; }
  .stagger > *:nth-child(2) { transition-delay: .08s; }
  .stagger > *:nth-child(3) { transition-delay: .16s; }
  .stagger > *:nth-child(4) { transition-delay: .24s; }
  .stagger > *:nth-child(5) { transition-delay: .32s; }
  .stagger > *:nth-child(6) { transition-delay: .4s; }
  .stagger.in-view > * { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .reveal-up, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  }

/* ── CHURCH PAGES (generated) ── */
.crumbs { position: relative; z-index: 1; font-size: .85rem; color: var(--on-dark-dim); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--cream); }
.hero-addr { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; line-height: 1.55; color: var(--on-dark-dim); max-width: 46ch; }
.hero-addr svg { flex-shrink: 0; margin-top: 3px; }
.hero-addr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.addr-dir { height: 34px; padding: 0 16px; border-radius: 17px; border: 1.5px solid var(--on-dark-dim); color: var(--cream); display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.addr-dir:hover { background: var(--green-mid); opacity: 1; }
.schedule { padding: 64px 0 32px; }
.sched-card { max-width: 880px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.sched-row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; padding: 16px 24px; border-top: 1px solid var(--border); }
.sched-row:first-child { border-top: 0; }
.sched-row.is-sun { background: var(--cream); }
.sched-day { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 6px; font-weight: 700; color: var(--green-deep); }
.sched-times { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sched-times li { padding: 6px 14px; border-radius: 16px; background: var(--surface-soft); color: var(--green-deep); font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sched-row.is-sun .sched-times li { background: var(--cream-strong); }
.sched-times li.none { padding-left: 0; padding-right: 0; background: none !important; color: var(--muted); font-weight: 500; }
.sched-row.is-today { background: var(--green); }
.sched-row.is-today .sched-day { color: var(--cream); }
.sched-row.is-today .sched-times li { background: var(--green-mid); color: var(--cream); }
.sched-row.is-today .sched-times li.none { color: var(--on-dark-dim); }
.sched-row.is-today .sched-times li.is-past { opacity: .55; }
.sched-row.is-today .sched-times li.is-next { background: var(--cream-strong); color: var(--green-deep); box-shadow: 0 0 0 3px rgba(246,231,184,.35); }
.today-badge { padding: 2px 10px; border-radius: 10px; background: var(--cream-strong); color: var(--green-deep); font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.sched-empty { padding: 24px; color: var(--text-dim); line-height: 1.6; }
.sched-note { max-width: 70ch; margin-top: 16px; font-size: .88rem; color: var(--text-dim); }
@media (max-width: 960px) {
  .hero .phone-wrap { display: none; }
}
@media (max-width: 640px) {
  .brand { font-size: .95rem; }
  .hero-qr { display: none; }
  .schedule { padding: 48px 0 24px; }
  .sched-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 18px; }
  .sched-day { padding-top: 0; }
}
