/* ==========================================================================
   Mutendi — brand palette sampled from resources/img/logo.png (#662F97)
   ========================================================================== */

:root {
  --brand-50:  #F6F0FB;
  --brand-100: #EADCF6;
  --brand-200: #D3BAEA;
  --brand-300: #B48FDA;
  --brand-400: #8F5CC2;
  --brand-500: #662F97;  /* logo purple */
  --brand-600: #56287F;
  --brand-700: #442065;
  --brand-800: #33184C;
  --brand-900: #1E0E2D;

  --ink:        #14101A;
  --ink-soft:   #6C6478;
  --ink-faint:  #9A93A6;

  --bg:         #FBF8FD;
  --bg-tint:    #F4EDFA;
  --surface:    #FFFFFF;
  --line:       rgba(102, 47, 151, .12);
  --grid:       rgba(102, 47, 151, .06);

  --shadow-card: 0 1px 2px rgba(30, 14, 45, .06),
                 0 12px 28px -10px rgba(30, 14, 45, .16);
  --shadow-lift: 0 2px 4px rgba(30, 14, 45, .06),
                 0 24px 48px -18px rgba(30, 14, 45, .26);

  --radius: 16px;
  --nav-h: 76px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dark {
  --ink:        #F3EFF8;
  --ink-soft:   #A79EB6;
  --ink-faint:  #7C7290;

  --bg:         #120C1A;
  --bg-tint:    #1A1026;
  --surface:    #1E1429;
  --line:       rgba(180, 143, 218, .16);
  --grid:       rgba(180, 143, 218, .07);

  --shadow-card: 0 1px 2px rgba(0, 0, 0, .5),
                 0 12px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .5),
                 0 24px 48px -18px rgba(0, 0, 0, .7);
}

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

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

a { text-decoration: none; color: inherit; }
svg { width: 1em; height: 1em; display: block; }

/* ---------------------------------------------------------------- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

.nav__inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand__mark { width: 38px; height: 38px; object-fit: contain; }
.brand__name {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .18s ease, color .18s ease;
}
.nav__link:hover { background: var(--bg-tint); color: var(--brand-500); }

/* Marks the section currently under the nav. */
.nav__link.is-current { color: var(--brand-500); font-weight: 600; }
.nav__link.is-current::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  animation: navMark .3s cubic-bezier(.22, 1, .36, 1) both;
}
.dark .nav__link.is-current { color: var(--brand-300); }

@keyframes navMark {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
.nav__link--mobile { display: none; }
.dark .nav__link:hover { color: var(--brand-300); }

.nav__icon  { font-size: 1rem; color: var(--brand-500); }
.dark .nav__icon { color: var(--brand-300); }
.nav__caret { font-size: .8rem; color: var(--ink-faint); }

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.dark .badge { background: rgba(143, 92, 194, .22); color: var(--brand-200); }

.nav__actions { display: flex; align-items: center; gap: 18px; }

.nav__signin { font-size: .95rem; font-weight: 600; }
.nav__signin:hover { color: var(--brand-500); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background-color .18s ease;
}
.theme-toggle:hover { background: var(--bg-tint); }
.theme-toggle .icon-sun  { display: none; }
.dark .theme-toggle .icon-moon { display: none; }
.dark .theme-toggle .icon-sun  { display: block; }

.nav__burger {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav__burger span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* -------------------------------------------------------------- Button -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, border-color .18s ease;
}
.btn svg { font-size: 1.05rem; }

.btn--dark {
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
}
.btn--dark:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(102, 47, 151, .7);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--brand-400);
  color: var(--brand-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.dark .btn--ghost:hover { color: var(--brand-200); }

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

/* Anchor targets stop clear of the sticky nav instead of under it. */
.showcase, .feature, .trust, .testimonials, .cta {
  scroll-margin-top: calc(var(--nav-h) + 18px);
}

/* Symbol library for the cartoon avatars — never rendered directly. */
.avatar-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.face { display: block; border-radius: 50%; }

main { position: relative; z-index: 1; }

/* Grid children default to min-width:auto, which lets a wide child (a mock
   window, a nowrap row) push its whole column past a narrow viewport. */
.feature__copy,
.feature__media,
.testimonials__intro,
.deck,
.footer__brand,
.footer__col,
.stage { min-width: 0; }

/* ---------------------------------------------------------------- Hero -- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 60px 28px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* One continuous grid behind the whole document, faded at the side edges. */
.page-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  pointer-events: none;
}

/* Purple wash across the whole document. Layered radial stops fall off
   smoothly, so the tint never shows a cut-off edge between sections. */
.page-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60vw 46vh at 18%   6%, rgba(102, 47, 151, .14), transparent 70%),
    radial-gradient(52vw 42vh at 88%  26%, rgba(180, 143, 218, .18), transparent 70%),
    radial-gradient(58vw 40vh at  2%  58%, rgba(102, 47, 151, .11), transparent 70%),
    radial-gradient(50vw 38vh at 96%  80%, rgba(180, 143, 218, .15), transparent 70%),
    radial-gradient(74vw 40vh at 50% 100%, rgba(102, 47, 151, .10), transparent 70%);
}
.dark .page-glow {
  background:
    radial-gradient(60vw 46vh at 18%   6%, rgba(102, 47, 151, .38), transparent 70%),
    radial-gradient(52vw 42vh at 88%  26%, rgba(68, 32, 101, .46), transparent 70%),
    radial-gradient(58vw 40vh at  2%  58%, rgba(102, 47, 151, .30), transparent 70%),
    radial-gradient(50vw 38vh at 96%  80%, rgba(68, 32, 101, .40), transparent 70%),
    radial-gradient(74vw 40vh at 50% 100%, rgba(102, 47, 151, .26), transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  text-align: center;
  animation: rise .8s cubic-bezier(.22, 1, .36, 1) both;
}

.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--brand-200);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--brand-500);
  font-size: .88rem;
  font-weight: 600;
}
.dark .pill { border-color: rgba(180, 143, 218, .3); color: var(--brand-300); }

.hero__title {
  margin: 26px 0 0;
  font-size: clamp(2.9rem, 6.2vw, 6rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.045em;
}
.hero__title-alt { color: var(--ink-soft); }

.hero__lead {
  margin: 26px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 600;
  color: var(--brand-500);
  letter-spacing: -.015em;
}
.dark .hero__lead { color: var(--brand-300); }

.hero__sub {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 60px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hero__scroll-dot {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.05rem;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  animation: bob 2.4s ease-in-out infinite;
  transition: border-color .2s ease, color .2s ease;
}
.hero__scroll:hover .hero__scroll-dot {
  border-color: var(--brand-400);
  color: var(--brand-500);
}

/* ------------------------------------------------------------ Floaters -- */

.floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Keep the cluster around the copy on ultra-wide screens rather than
     letting it drift to the far edges. */
  max-width: 1720px;
  margin: 0 auto;
  pointer-events: none;
}

.card,
.chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: pop .7s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(.35s + var(--d, 0s) / 6);
}

.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Second, endless drift layer, started once the pop-in has landed. */
.float > * { will-change: transform; }
.card.float,
.chip.float { animation-name: pop, drift; animation-duration: .7s, 7s;
  animation-timing-function: cubic-bezier(.22,1,.36,1), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
  animation-delay: calc(.35s + var(--d, 0s) / 6), calc(1s + var(--d, 0s));
}

.card__title { margin: 0; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.card__meta  { margin: 2px 0 0; font-size: .78rem; color: var(--ink-faint); }
.card__head  {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.card__head svg { font-size: .95rem; color: var(--brand-400); }
.card__stat  { margin: 6px 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.card__row   { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
}
.ico--green { background: #E4F6EC; color: #1F9254; }
.ico--blue  { background: #E4EEFB; color: #2C6FD1; }
.ico--bare  { width: auto; height: auto; background: none; }
.dark .ico--green { background: rgba(31, 146, 84, .18); color: #4FD08A; }
.dark .ico--blue  { background: rgba(44, 111, 209, .2);  color: #79ABF3; }
.dark .ico--bare  { background: none; }

.ico-accent { color: var(--brand-500) !important; }
.up { color: #1F9254; font-weight: 700; }
.dark .up { color: #4FD08A; }

.avatar { flex: none; width: 40px; height: 40px; }

.date-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  padding: 5px 0;
  border-radius: 11px;
  background: var(--brand-50);
  line-height: 1.15;
}
.date-badge em     { font-style: normal; font-size: .58rem; font-weight: 700; color: var(--brand-500); letter-spacing: .06em; }
.date-badge strong { font-size: 1.02rem; font-weight: 800; color: var(--brand-600); }
.dark .date-badge  { background: rgba(102, 47, 151, .3); }
.dark .date-badge em     { color: var(--brand-300); }
.dark .date-badge strong { color: var(--brand-200); }

.card__input {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-tint);
  font-size: .8rem;
  color: var(--ink-faint);
}

.mini-btn {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .74rem;
  font-weight: 700;
}

.meter {
  display: block;
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--bg-tint);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
}

/* Placement — percentages keep the cards clear of the centred copy. */
.card--visitor  { top: 7%;  left: 27%; }
.chip--time     { top: 12%; left: 65%; color: var(--ink-soft); }
.chip--time svg { color: var(--ink-faint); }
.card--report  { top: 15%; right: 2%; flex-direction: column; align-items: stretch; gap: 9px; width: 232px; }
.card--member   { top: 18%; left: 7%; }
.chip--team     { top: 32%; left: 17%; color: var(--brand-500); border-color: var(--brand-200); }
.dark .chip--team { color: var(--brand-300); border-color: rgba(180,143,218,.3); }
.card--backup   { top: 43%; left: 5%;  flex-direction: column; align-items: flex-start; gap: 0; }
.card--meeting    { top: 40%; right: 11%; }
.card--joined   { top: 62%; right: 9%; }
.card--checkin  { top: 70%; left: 9%; }
.card--members  { top: 78%; right: 3%; flex-direction: column; align-items: stretch; gap: 0; width: 156px; }
.chip--add      { top: 88%; left: 24%; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip--diocese     { top: 85%; right: 21%; color: var(--ink-soft); font-weight: 500; }
.chip--diocese svg { color: var(--ink-faint); }

/* On narrower desktops the cards move to the edges so the headline stays clear. */
@media (max-width: 1600px) {
  .card--visitor { top: 6%;  left: 24%; }
  .chip--time    { top: 11%; left: 66%; }
  .card--report { top: 13%; right: 0;  width: 200px; }
  .card--member  { left: 2%; }
  .chip--team    { left: 11%; }
  .card--backup  { left: 1%; }
  .card--meeting   { right: 5%; }
  .card--joined  { right: 3%; }
  .card--checkin { left: 3%; }
  .card--members { right: 0; }
  .chip--add     { left: 21%; }
  .chip--diocese    { right: 19%; }
}

/* ----------------------------------------------------------- Keyframes -- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ---------------------------------------------------------- Responsive -- */

@media (max-width: 1280px) {
  .floaters { display: none; }
  .hero { min-height: auto; padding: 48px 24px 80px; }
}

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    position: absolute;
    top: var(--nav-h);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lift);
  }
  .nav__links.is-open .nav__link { border-radius: 10px; padding: 12px 14px; }
  .nav__links.is-open .nav__link.is-current { background: var(--bg-tint); }
  .nav__links.is-open .nav__link.is-current::after { display: none; }
  .nav__links.is-open .nav__link--mobile {
    display: block;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    font-weight: 600;
  }
  .nav__links.is-open .nav__link--cta {
    display: none;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: var(--bg);
    text-align: center;
  }
  .nav__links.is-open .nav__link--cta:hover { background: var(--brand-500); color: #fff; }

  .nav__burger { display: flex; }
  .nav__signin { display: none; }
  .nav__actions { margin-left: auto; gap: 10px; }
}

@media (max-width: 640px) {
  .nav__inner { padding: 0 16px; gap: 12px; }
  .nav .btn--dark { padding: 9px 16px; font-size: .88rem; }
  .hero__title { letter-spacing: -.035em; }
  .hero__sub { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__scroll { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .card, .chip, .hero__content { opacity: 1; }
}

/* ======================================================= Module showcase == */

.showcase {
  position: relative;
  padding: 30px 28px 120px;
}

/* Revealed by IntersectionObserver as the section scrolls into view. */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.window.reveal   { transition-delay: .1s; }
.captions.reveal { transition-delay: .2s; }

/* ------------------------------------------------------------- Tab row -- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: .93rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease;
}
.tab__icon { font-size: 1.05rem; }

.tab:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.tab.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.tab:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; }

/* ------------------------------------------------------ Browser window -- */

.window {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }

.window__url {
  margin: 0 auto;
  font-size: .82rem;
  color: var(--ink-faint);
}
.window__ico { font-size: 1.05rem; color: var(--ink-faint); }

.window__body {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 542px;
}

/* --------------------------------------------------------- Mock sidebar -- */

.side {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
}
.side__brand {
  display: block;
  width: 76px;
  height: 26px;
  margin: 0 10px 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
}
.side__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: .87rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color .25s ease, color .25s ease;
}
.side__ico { font-size: 1rem; opacity: .75; }
.side__item.is-active {
  background: var(--brand-50);
  color: var(--brand-600);
  font-weight: 600;
}
.side__item.is-active .side__ico { opacity: 1; }
.dark .side__item.is-active { background: rgba(102, 47, 151, .3); color: var(--brand-200); }

/* -------------------------------------------------------------- Panels -- */

.stage { min-width: 0; padding: 26px 28px; }

.panel { display: none; }
.panel.is-active { display: block; }

/* Each part of the panel eases in, staggered, so a tab switch reads as motion. */
.panel.is-active > *,
.panel.is-active .row {
  animation: panelIn .5s cubic-bezier(.22, 1, .36, 1) both;
}
.panel.is-active .panel__head { animation-delay: .02s; }
.panel.is-active .search      { animation-delay: .07s; }
.panel.is-active .filters     { animation-delay: .12s; }
.panel.is-active .rowsbox     { animation-delay: .16s; }
.panel.is-active .row         { animation-delay: calc(.22s + var(--i) * .07s); }

.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.panel__title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.panel__sub { margin: 3px 0 0; font-size: .85rem; color: var(--ink-faint); }

.panel__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}
.panel__action svg { font-size: .9rem; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--bg-tint);
  font-size: .9rem;
  color: var(--ink-soft);
}
.search svg { font-size: 1rem; color: var(--ink-faint); }
.search__caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: .79rem;
  font-weight: 500;
}
.filter.is-on { background: var(--ink); color: var(--bg); font-weight: 600; }

.rowsbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: var(--bg-tint);
}

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(30, 14, 45, .05);
}
.dark .row { box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

.row__avatar { flex: none; width: 38px; height: 38px; }
.row__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-500);
  font-size: 1.05rem;
}
.dark .row__ico { background: rgba(102, 47, 151, .3); color: var(--brand-200); }

.row__body { flex: 1; min-width: 0; }
.row__title {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.row__meta {
  margin: 2px 0 0;
  font-size: .78rem;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 700;
}
.tag--green  { background: #E4F6EC; color: #1F7A47; }
.tag--amber  { background: #FDF0DC; color: #9A6414; }
.tag--purple { background: var(--brand-50); color: var(--brand-600); }
.dark .tag--green  { background: rgba(31, 146, 84, .2);  color: #63DC9B; }
.dark .tag--amber  { background: rgba(214, 152, 38, .2); color: #F0BB63; }
.dark .tag--purple { background: rgba(102, 47, 151, .34); color: var(--brand-200); }

/* ------------------------------------------------------------ Captions -- */

.captions {
  position: relative;
  max-width: 700px;
  min-height: 132px;
  margin: 44px auto 0;
  text-align: center;
}
.caption { display: none; }
.caption.is-active {
  display: block;
  animation: panelIn .55s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: .1s;
}
.caption__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
}
.caption__text {
  margin: 14px 0 0;
  font-size: 1.03rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* -------------------------------------------- Showcase responsiveness -- */

@media (max-width: 860px) {
  .showcase { padding: 20px 18px 90px; }
  .tabs { justify-content: flex-start; margin-bottom: 24px; }
  .window__body { grid-template-columns: 1fr; min-height: 0; }
  .side { display: none; }
  .stage { padding: 22px 18px; }
  .panel__head { flex-direction: column; gap: 14px; }
  .captions { min-height: 168px; margin-top: 34px; }
}

@media (max-width: 640px) {
  .row { gap: 11px; padding: 12px; }
  .row__meta { font-size: .74rem; }
  .tag { padding: 4px 9px; font-size: .67rem; }
  .window__url { display: none; }
  .dots { margin-right: auto; }
}

/* ========================================================== Trust strip == */

.trust {
  position: relative;
  padding: 20px 28px 40px;
}

.trust__label {
  margin: 0 0 30px;
  text-align: center;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.trust__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.parish {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1),
              box-shadow .25s ease, border-color .25s ease;
}
.parish:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-card);
}
.dark .parish:hover { border-color: rgba(180, 143, 218, .34); }

.parish__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 700;
}
.parish__name { margin: 0; font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.parish__meta { margin: 2px 0 0; font-size: .77rem; color: var(--ink-faint); }

/* Continuous ticker of the same parishes, faded at both ends. */
.marquee {
  max-width: 1180px;
  margin: 44px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-faint);
  white-space: nowrap;
  opacity: .55;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ========================================================== Testimonials == */

.testimonials {
  position: relative;
  padding: 70px 28px 130px;
}

.testimonials__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.dark .eyebrow { color: var(--brand-300); }

.testimonials__title {
  margin: 20px 0 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.testimonials__title-alt { color: var(--ink-soft); }

.testimonials__lead {
  max-width: 400px;
  margin: 22px 0 0;
  font-size: 1.03rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

.pager { display: flex; gap: 9px; margin-top: 34px; }
.pager__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand-200);
  cursor: pointer;
  transition: width .35s cubic-bezier(.22, 1, .36, 1), background-color .35s ease;
}
.pager__dot.is-on { width: 30px; background: var(--brand-500); }
.dark .pager__dot { background: rgba(180, 143, 218, .35); }
.dark .pager__dot.is-on { background: var(--brand-300); }
.pager__dot:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; }

/* ------------------------------------------------------- The card deck -- */

.deck {
  position: relative;
  min-height: 358px;
}

.quote {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 34px 36px 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  /* Resting state: buried at the back of the stack. */
  opacity: 0;
  transform: translateY(74px) scale(.86);
  z-index: 0;
  pointer-events: none;
  transition: transform .62s cubic-bezier(.22, 1, .36, 1),
              opacity .62s ease;
}
.quote[data-pos="0"] {
  opacity: 1;
  transform: none;
  z-index: 3;
  pointer-events: auto;
}
.quote[data-pos="1"] {
  opacity: .58;
  transform: translateY(34px) scale(.95);
  z-index: 2;
}
.quote[data-pos="2"] {
  opacity: .28;
  transform: translateY(62px) scale(.9);
  z-index: 1;
}

.quote__mark {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: .62;
  color: var(--brand-300);
}
.dark .quote__mark { color: var(--brand-400); }

.quote__text {
  margin: 20px 0 0;
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.58;
  letter-spacing: -.015em;
}

.quote__who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quote__avatar { flex: none; width: 44px; height: 44px; }
.quote__name { margin: 0; font-size: .96rem; font-weight: 700; letter-spacing: -.01em; }
.quote__role { margin: 3px 0 0; font-size: .82rem; color: var(--ink-faint); }

/* ------------------------------------------ Social proof responsiveness -- */

@media (max-width: 1000px) {
  .testimonials { padding: 50px 24px 100px; }
  .testimonials__inner { grid-template-columns: 1fr; gap: 44px; }
  .testimonials__lead { max-width: none; }
  .pager { margin-top: 26px; }
}

@media (max-width: 640px) {
  .trust { padding: 10px 18px 30px; }
  .trust__grid { gap: 10px; }
  .parish { flex: 1 1 100%; }
  .marquee { margin-top: 32px; }
  .testimonials { padding: 40px 18px 80px; }
  .quote { padding: 26px 24px 24px; }
  .quote__text { font-size: 1.05rem; }
  .deck { min-height: 372px; }
}

/* ====================================================== Feature blocks == */

.feature {
  position: relative;
  padding: 60px 28px;
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 84px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
/* Alternate which side the mock sits on. */
.feature--flip .feature__media { order: -1; }

.feature__title {
  margin: 20px 0 0;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.feature__text {
  max-width: 460px;
  margin: 20px 0 0;
  font-size: 1.03rem;
  line-height: 1.66;
  color: var(--ink-soft);
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}
.bullet { display: flex; gap: 15px; }
.bullet__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-size: 1.15rem;
}
.dark .bullet__ico { background: rgba(102, 47, 151, .3); color: var(--brand-200); }
.bullet__title { margin: 0; font-size: .99rem; font-weight: 700; letter-spacing: -.015em; }
.bullet__text  { margin: 4px 0 0; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------------- Mock windows -- */

.mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.mock__title { font-size: .82rem; font-weight: 500; color: var(--ink-faint); }

.mock__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.mock__filters { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mock__ghost {
  width: 86px;
  height: 27px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--brand-100);
}
.dark .mock__ghost { background: rgba(102, 47, 151, .34); }

/* Rows sit on tint here, since the mock body is already the surface colour. */
.mock .row { background: var(--bg-tint); box-shadow: none; }

@media (max-width: 1000px) {
  .feature { padding: 44px 24px; }
  .feature__inner { grid-template-columns: 1fr; gap: 40px; }
  .feature--flip .feature__media { order: 0; }
  .feature__text { max-width: none; }
}

@media (max-width: 640px) {
  .feature { padding: 34px 18px; }
  .bullets { gap: 20px; }
  .mock__body { padding: 14px; }
  .mock__ghost { width: 54px; }
}

/* ================================================== Closing CTA + footer == */

/* This panel stays dark in both themes — it is the page's full stop. */
.cta,
.footer {
  --panel:      #150E20;
  --panel-line: rgba(237, 231, 244, .12);
  --panel-ink:  #F3EEF8;
  --panel-soft: #A79BB8;
  position: relative;
  z-index: 1;
  background: var(--panel);
  color: var(--panel-ink);
}

.cta {
  overflow: hidden;
  padding: 96px 28px 110px;
  text-align: center;
}

.cta__glow {
  position: absolute;
  top: -230px;
  left: 50%;
  width: 980px;
  height: 660px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(102, 47, 151, .85), transparent 72%);
  pointer-events: none;
}

/* ------------------------------------------------- Congregation band -- */

.avatars {
  position: relative;
  height: 210px;
  margin-bottom: 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 17%, #000 83%, transparent);
}

.avatars__layer {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
}
.avatars__track {
  display: flex;
  align-items: center;
  width: max-content;
}

/* Three depths: smaller and dimmer behind, larger and solid in front. */
.avatars__layer--back  { top: 34px; opacity: .38; }
.avatars__layer--mid   { top: 62px; opacity: .68; }
.avatars__layer--front { top: 88px; opacity: 1; }

.avatars__layer--back  .avatars__track { gap: 14px; animation: band-left  52s linear infinite; }
.avatars__layer--mid   .avatars__track { gap: 16px; animation: band-right 40s linear infinite; }
.avatars__layer--front .avatars__track { gap: 18px; animation: band-left  30s linear infinite; }

.avatars__layer--back  .av { width: 34px; height: 34px; }
.avatars__layer--mid   .av { width: 46px; height: 46px; }
.avatars__layer--front .av { width: 58px; height: 58px; }

.av {
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .16);
  transform: translateY(var(--y, 0));
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .55);
}
.av .face { width: 100%; height: 100%; }

@keyframes band-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes band-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ------------------------------------------------------------ CTA copy -- */

.cta__copy { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }

.cta__title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.cta__text {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--panel-soft);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.btn--light {
  background: var(--panel-ink);
  color: #150E20;
  border: 1px solid var(--panel-ink);
}
.btn--light:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7);
}
.btn--outline {
  background: transparent;
  color: var(--panel-ink);
  border: 1px solid var(--panel-line);
}
.btn--outline:hover {
  border-color: var(--panel-ink);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------- Footer -- */

.footer { border-top: 1px solid var(--panel-line); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 56px;
}

.brand--footer { color: var(--panel-ink); }
.footer__blurb {
  max-width: 320px;
  margin: 20px 0 0;
  font-size: .93rem;
  line-height: 1.66;
  color: var(--panel-soft);
}
.footer__where {
  margin: 14px 0 0;
  font-size: .86rem;
  color: var(--panel-soft);
  opacity: .7;
}

.footer__heading {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--panel-soft);
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li + li { margin-top: 12px; }
.footer__list a {
  font-size: .93rem;
  color: var(--panel-ink);
  opacity: .78;
  transition: opacity .18s ease, color .18s ease;
}
.footer__list a:hover { opacity: 1; color: var(--brand-300); }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 28px 34px;
  border-top: 1px solid var(--panel-line);
  font-size: .86rem;
  color: var(--panel-soft);
}
.footer__bar p { margin: 0; }

@media (max-width: 1000px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 24px 44px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .cta { padding: 72px 24px 84px; }
  .avatars { height: 178px; margin-bottom: 34px; }
  .avatars__layer--back  { top: 22px; }
  .avatars__layer--mid   { top: 46px; }
  .avatars__layer--front { top: 68px; }
}

@media (max-width: 640px) {
  .cta { padding: 54px 18px 66px; }
  .cta__actions .btn { flex: 1 1 100%; }
  .avatars { height: 152px; }
  .avatars__layer--front .av { width: 48px; height: 48px; }
  .avatars__layer--mid   .av { width: 38px; height: 38px; }
  .avatars__layer--back  .av { width: 28px; height: 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 18px 36px; }
  .footer__bar { padding: 22px 18px 30px; }
}

/* Small phones: the nav CTA moves into the menu so the bar still fits, and the
   mock rows scale down so member names still sit on one line. */
@media (max-width: 420px) {
  .showcase { padding: 16px 14px 70px; }
  .stage { padding: 18px 14px; }
  .rowsbox { padding: 10px; }
  .row { gap: 9px; padding: 10px; }
  .row__ico { width: 32px; height: 32px; font-size: .68rem; }
  .row__avatar { width: 32px; height: 32px; }
  .row__title { font-size: .86rem; }
  .row__meta { font-size: .72rem; }
  .tag { padding: 3px 8px; font-size: .64rem; }
  .mock__body { padding: 12px; }
  .panel__title { font-size: 1.15rem; }
  .caption__title { font-size: 1.35rem; }
  .caption__text { font-size: .95rem; }

  .nav__inner { padding: 0 14px; gap: 10px; }
  .nav__actions { gap: 4px; }
  .nav .btn--dark { display: none; }
  .nav__links.is-open .nav__link--cta { display: block; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__name { font-size: 1.15rem; }

  .hero { padding: 36px 18px 64px; }
  .hero__title { font-size: clamp(2.15rem, 11vw, 2.9rem); }
  .hero__lead { font-size: 1rem; }
  .hero__sub { font-size: .96rem; }
  .pill { font-size: .8rem; padding: 7px 14px; }
}


/* ==========================================================================
   Contact, Privacy and the contact CTAs
   Added alongside the existing site — same palette, same pill buttons, same
   1180px measure. Nothing above this line is changed by any of it.
   ========================================================================== */

/* --------------------------------------------------------- WhatsApp --- */

/* WhatsApp's own green, kept off the brand palette on purpose: people
   recognise it, and that recognition is the point of the button. */
:root { --wa: #25D366; --wa-deep: #128C7E; --wa-ink: #0B3D2C; }

.btn--wa {
  background: var(--wa);
  color: var(--wa-ink);
  border: 1px solid var(--wa);
  font-weight: 700;
}
.btn--wa:hover {
  background: var(--wa-deep);
  border-color: var(--wa-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(18, 140, 126, .8);
}
.btn--wa:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; }
.dark .btn--wa { color: #06251A; }

/* The floating button. Sits clear of the footer bar on small screens. */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #06251A;
  font-size: 1.6rem;
  box-shadow: 0 10px 26px -8px rgba(18, 140, 126, .85);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wa-float:hover {
  background: var(--wa-deep);
  color: #fff;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 18px 36px -10px rgba(18, 140, 126, .9);
}
.wa-float:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 4px; }

.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 1.45rem; }
  /* No room for a tooltip beside it on a phone, and the icon is unambiguous. */
  .wa-float__tip { display: none; }
}

/* ------------------------------------------------ sub-page hero band --- */

.pagehero {
  position: relative;
  padding: 74px 28px 46px;
  text-align: center;
}
.pagehero__inner { max-width: 780px; margin: 0 auto; }
.pagehero__title {
  margin: 22px 0 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.02em;
}
.pagehero__lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ---------------------------------------------------- contact page --- */

.contact { padding: 26px 28px 90px; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 42px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.contact__side { display: flex; flex-direction: column; gap: 18px; }

.ccard {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
/* WhatsApp leads, so it gets the green edge and a little more room. */
.ccard--wa {
  padding: 32px;
  border-color: color-mix(in srgb, var(--wa) 42%, var(--line));
  box-shadow: var(--shadow-lift);
}

.ccard__ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--bg-tint);
  color: var(--brand-500);
  font-size: 1.4rem;
}
.ccard__ico--wa { background: color-mix(in srgb, var(--wa) 16%, transparent); color: var(--wa-deep); }
.dark .ccard__ico--wa { color: var(--wa); }

.ccard__title { margin: 18px 0 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.ccard__text  { margin: 10px 0 0; color: var(--ink-soft); font-size: .97rem; line-height: 1.62; }
.ccard__detail {
  margin: 16px 0 20px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.ccard .btn { width: 100%; }

.ccard__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0 4px;
  color: var(--ink-faint);
  font-size: .9rem;
}
.ccard__note svg { font-size: 1rem; }

/* --------------------------------------------------- enquiry form --- */

.contact__form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.enquiry__title { margin: 0; font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.enquiry__lead  { margin: 8px 0 26px; color: var(--ink-soft); font-size: .97rem; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .9rem;
  font-weight: 600;
}
.req { color: var(--brand-500); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: .97rem;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus {
  outline: none;
  border-color: var(--brand-400);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-300) 35%, transparent);
}
.input:focus-visible { outline: none; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C6478' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
}
.textarea { resize: vertical; min-height: 118px; line-height: 1.6; }

/* +263 sits inside the field rather than beside it, so the pair reads as one. */
.input-prefixed { position: relative; }
.input-prefixed__pre {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-faint);
  font-size: .97rem;
  font-weight: 600;
  pointer-events: none;
}
.input-prefixed .input { padding-left: 58px; }

.input.is-good { border-color: color-mix(in srgb, var(--wa) 55%, var(--line)); }
.input.is-bad  { border-color: #D64550; background: color-mix(in srgb, #D64550 6%, var(--bg)); }
.input.is-bad:focus { box-shadow: 0 0 0 3px rgba(214, 69, 80, .25); }

.field__err {
  display: none;
  margin: 7px 0 0;
  color: #C13540;
  font-size: .85rem;
}
.field__err.is-shown { display: block; }
.dark .field__err { color: #FF9AA2; }

.field__hint { margin: 7px 0 0; color: var(--ink-faint); font-size: .85rem; }

.enquiry__submit { width: 100%; margin-top: 6px; }
.enquiry__alt {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: .9rem;
  text-align: center;
}
.enquiry__alt a { color: var(--wa-deep); font-weight: 700; text-decoration: underline; }
.dark .enquiry__alt a { color: var(--wa); }

.enquiry__done { text-align: center; padding: 34px 8px; }
.enquiry__tick {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wa) 18%, transparent);
  color: var(--wa-deep);
  font-size: 1.7rem;
}
.dark .enquiry__tick { color: var(--wa); }
.enquiry__done h2 { margin: 0; font-size: 1.4rem; font-weight: 700; }
.enquiry__done p  { margin: 12px auto 0; max-width: 380px; color: var(--ink-soft); line-height: 1.65; }
.enquiry__done a  { color: var(--brand-500); font-weight: 600; text-decoration: underline; }
.dark .enquiry__done a { color: var(--brand-300); }

/* ------------------------------------------------------------- FAQ --- */

.faq { padding: 20px 28px 110px; }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-align: center;
}
.faq__lead { margin: 10px 0 32px; color: var(--ink-soft); text-align: center; }

.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--brand-200); box-shadow: var(--shadow-card); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand-500); }
.faq__q:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }

.faq__chev { flex: none; color: var(--ink-faint); font-size: 1.15rem; transition: transform .2s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }

.faq__a { padding: 0 22px 20px; }
.faq__a p { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.72; }
.faq__a a { color: var(--brand-500); font-weight: 600; text-decoration: underline; }
.dark .faq__a a { color: var(--brand-300); }

/* --------------------------------------------------------- pricing --- */

.pricing { padding: 40px 28px 20px; }
.pricing__inner { max-width: 1180px; margin: 0 auto; }
.pricing__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 46px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  text-align: center;
}
.pricing__title {
  margin: 22px 0 0;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.025em;
}
.pricing__lead {
  margin: 16px auto 0;
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.66;
}
.pricing__note { margin: 18px 0 0; font-size: 1rem; font-weight: 600; }
.pricing__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------------------------------------------------- the document --- */

.doc { padding: 20px 28px 100px; }
.doc__inner {
  display: grid;
  grid-template-columns: 232px minmax(0, 800px);
  gap: 56px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}

.toc { position: sticky; top: calc(var(--nav-h) + 22px); align-self: start; }
.toc__head {
  margin: 0 0 12px;
  color: var(--ink-faint);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.toc__list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 3px; }
.toc__list li { color: var(--ink-faint); font-size: .84rem; }
.toc__list a {
  display: block;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: .9rem;
  line-height: 1.4;
  transition: color .14s ease, background-color .14s ease;
}
.toc__list a:hover { color: var(--brand-500); background: var(--bg-tint); }
.toc__list a.is-current { color: var(--brand-500); background: var(--bg-tint); font-weight: 600; }
.toc__list a:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 1px; }

.doc__body { min-width: 0; }
.doc__body section { scroll-margin-top: calc(var(--nav-h) + 20px); }
.doc__body h2 {
  margin: 52px 0 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.doc__body section:first-of-type h2 { margin-top: 12px; }
.doc__body h3 {
  margin: 30px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--brand-500);
}
.dark .doc__body h3 { color: var(--brand-300); }
.doc__body p  { margin: 15px 0 0; color: var(--ink-soft); font-size: 1.01rem; line-height: 1.78; }
.doc__body strong { color: var(--ink); font-weight: 700; }
.doc__body ul { margin: 15px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; }
.doc__body li { color: var(--ink-soft); font-size: 1.01rem; line-height: 1.7; }
.doc__body a  { color: var(--brand-500); font-weight: 600; text-decoration: underline; }
.dark .doc__body a { color: var(--brand-300); }

.doc__callout {
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  border: 1px solid var(--brand-200);
  border-left: 3px solid var(--brand-500);
  border-radius: 14px;
  background: var(--bg-tint);
}
.doc__callout p { margin: 0; color: var(--ink); font-size: .96rem; line-height: 1.68; }
.doc__callout-ico { flex: none; color: var(--brand-500); font-size: 1.3rem; }
.dark .doc__callout { border-color: rgba(180, 143, 218, .3); }
.dark .doc__callout-ico { color: var(--brand-300); }

.doc__emphasis {
  margin-top: 18px !important;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--ink) !important;
  font-weight: 600;
}

.doc__contact {
  margin-top: 26px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.doc__contact-title { margin: 0 !important; font-size: 1.25rem; font-weight: 700; color: var(--ink) !important; }
.doc__contact-text  { margin: 10px 0 0 !important; }
.doc__contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ------------------------------------------- footer contact details --- */

.footer__contact { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: .92rem;
  transition: color .14s ease;
}
.footer__contact a:hover { color: var(--brand-500); }
.footer__contact svg { flex: none; font-size: 1.05rem; color: var(--ink-faint); }
.footer__contact a:hover svg { color: inherit; }

/* ------------------------------------------------------ responsive --- */

@media (max-width: 1100px) {
  .doc__inner { grid-template-columns: 1fr; gap: 30px; max-width: 800px; }
  /* The contents list stops being a sidebar and becomes a card above the text. */
  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }
  .toc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
}

@media (max-width: 960px) {
  .contact__inner { grid-template-columns: 1fr; gap: 26px; max-width: 680px; }
}

@media (max-width: 640px) {
  .pagehero { padding: 54px 20px 34px; }
  .contact { padding: 20px 20px 70px; }
  .contact__form { padding: 24px 20px; }
  .ccard, .ccard--wa { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .faq { padding: 12px 20px 80px; }
  .faq__q { padding: 15px 17px; font-size: .97rem; }
  .faq__a { padding: 0 17px 17px; }
  .pricing { padding: 24px 20px 10px; }
  .pricing__card { padding: 36px 22px; border-radius: 20px; }
  .pricing__actions .btn { width: 100%; }
  .doc { padding: 12px 20px 76px; }
  .toc__list { grid-template-columns: 1fr; }
  .doc__body h2 { margin-top: 40px; font-size: 1.35rem; }
  .doc__contact { padding: 24px 20px; }
  .doc__contact-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float__tip, .faq__chev, .input, .toc__list a { transition: none; }
  .wa-float:hover { transform: none; }
}
