:root {
  --cream: #F7F5F0;
  --navy: #081B38;
  --navy-soft: #162B55;
  --purple: #6854BA;
  --purple-dark: #5844A8;
  --lavender: #BBAEF2;
  --lavender-soft: #F1EDF9;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-dark: #46556A;
  --line: #E1E5EB;
  --shadow: 0 24px 70px rgba(8, 27, 56, 0.12);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.65;
}

body,
button,
input,
textarea {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  color: var(--navy);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  color: var(--slate-dark);
  font-size: 0.94rem;
  font-weight: 500;
}

.desktop-nav a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--purple);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--purple);
  border-radius: 14px;
  background: var(--purple);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--purple-dark);
  background: var(--purple-dark);
}

.button-small {
  min-height: 44px;
  padding-inline: 18px;
}

.button-secondary {
  border-color: #DCE1E8;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--purple);
  background: white;
  color: var(--purple);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: var(--cream);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}

.hero-glow-one {
  right: -80px;
  top: 60px;
  width: 420px;
  height: 420px;
  background: rgba(104, 84, 186, 0.13);
}

.hero-glow-two {
  left: 35%;
  bottom: -120px;
  width: 340px;
  height: 340px;
  background: rgba(187, 174, 242, 0.18);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
  padding-top: 86px;
  padding-bottom: 92px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 6.1vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
  color: var(--navy);
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--navy);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  color: var(--navy);
}

.hero-lead {
  max-width: 660px;
  color: var(--slate);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.hero-points div {
  min-width: 0;
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 0.93rem;
}

.hero-points span {
  color: #8792A3;
  font-size: 0.8rem;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
}

.hero-image-glow {
  position: absolute;
  inset: 9%;
  border-radius: 44px;
  background: rgba(104, 84, 186, 0.16);
  filter: blur(46px);
}

.hero-image-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 80px rgba(8, 27, 56, 0.14);
  transform: rotate(1.5deg);
}

.hero-image-shell img {
  width: 100%;
  height: auto;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:last-child {
  margin-inline: auto;
  max-width: 690px;
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 28px;
  background: white;
  box-shadow: 0 3px 12px rgba(8, 27, 56, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(8, 27, 56, 0.08);
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 17px;
  background: rgba(104, 84, 186, 0.10);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
}

.feature-card p,
.step p,
.church-copy p,
.contact-copy p {
  margin-bottom: 0;
  color: var(--slate);
  line-height: 1.8;
}

.steps-section {
  padding: 96px 0;
  border-block: 1px solid rgba(226, 232, 240, 0.82);
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 54px;
  margin-top: 60px;
}

.step {
  text-align: center;
}

.step-number {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 999px;
  background: var(--purple);
  color: white;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(104, 84, 186, 0.18);
}

.step p {
  max-width: 320px;
  margin-inline: auto;
}

.church-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 74px;
}

.church-copy p {
  margin-bottom: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--purple);
  font-weight: 600;
}

.setup-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft) 70%, var(--purple));
  color: white;
  box-shadow: var(--shadow);
}

.setup-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -100px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.setup-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  color: #CFC6F6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.setup-card h3 {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin-bottom: 22px;
  color: white;
  font-size: 1.8rem;
}

.setup-card ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-card li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
}

.setup-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #CFC6F6;
  font-weight: 700;
}

.social-strip {
  padding: 48px 0;
}

.social-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 38px;
  border: 1px solid rgba(104, 84, 186, 0.14);
  border-radius: 28px;
  background: var(--lavender-soft);
}

.social-inner h2 {
  max-width: 580px;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 11px 15px;
  border: 1px solid rgba(104, 84, 186, 0.17);
  border-radius: 13px;
  background: white;
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-section {
  background: linear-gradient(180deg, var(--cream), white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 72px;
}

.contact-form {
  padding: 32px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 55px rgba(8, 27, 56, 0.08);
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

label span {
  color: var(--purple);
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #D7DDE6;
  border-radius: 13px;
  background: white;
  color: var(--navy);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(104, 84, 186, 0.10);
}

textarea {
  resize: vertical;
}

.form-button {
  width: 100%;
  border: 0;
}

.form-note {
  margin: 10px 0 0;
  color: #8A95A6;
  font-size: 0.78rem;
}

.cta-section {
  padding: 0 0 96px;
  background: white;
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 50px 54px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 60%, var(--purple));
  color: white;
  box-shadow: 0 20px 60px rgba(8, 27, 56, 0.14);
}

.cta-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  filter: blur(8px);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.cta-card h2 {
  margin-bottom: 12px;
  color: white;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cta-card p {
  margin-bottom: 0;
  color: #D8DEEA;
  font-size: 1rem;
}

.button-light {
  flex-shrink: 0;
  border-color: white;
  background: white;
  color: var(--navy);
}

.button-light:hover {
  border-color: white;
  background: #F4F5F7;
  color: var(--navy);
}

.site-footer {
  padding: 52px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.70);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto auto;
  align-items: start;
  gap: 38px;
}

.footer-brand .brand span {
  color: white;
}

.footer-brand p {
  margin: 10px 0 0;
  font-size: 0.85rem;
}

.footer-links,
.footer-socials {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-links a:hover,
.footer-socials a:hover {
  color: white;
}

.copyright {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid,
  .church-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .church-grid,
  .contact-grid {
    gap: 46px;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .brand span {
    font-size: 1.08rem;
  }

  .button-small {
    margin-left: auto;
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero-grid {
    padding-top: 58px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  h1 span {
    display: inline;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }

  .hero-image-shell {
    border-radius: 20px;
    transform: none;
  }

  .section,
  .steps-section {
    padding: 68px 0;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    gap: 38px;
    margin-top: 44px;
  }

  .social-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 22px;
  }

  .cta-section {
    padding-bottom: 68px;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 28px;
  }

  .cta-card .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .copyright {
    grid-column: 1;
  }
}

/* --- Ministri Cloud + Fellowship Licence additions --- */
.cloud-section {
  border-block: 1px solid rgba(226, 232, 240, 0.82);
  background: white;
}

.cloud-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 74px;
}

.cloud-copy p {
  margin-bottom: 18px;
  color: var(--slate);
  line-height: 1.85;
}

.status-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(104, 84, 186, 0.16);
  border-radius: 999px;
  background: var(--lavender-soft);
  color: var(--purple-dark);
  font-size: 0.82rem;
  font-weight: 600;
}

.fellowship-strip {
  padding: 68px 0;
  background: var(--cream);
}

.fellowship-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  padding: 38px 42px;
  border: 1px solid rgba(104, 84, 186, 0.14);
  border-radius: 30px;
  background: white;
  box-shadow: 0 12px 36px rgba(8, 27, 56, 0.05);
}

.fellowship-inner h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

.fellowship-inner p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--slate);
}

.fellowship-inner .button {
  flex-shrink: 0;
}

.licence-hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: var(--cream);
}

.licence-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.licence-hero h1 {
  max-width: 820px;
}

.licence-note {
  display: inline-flex;
  max-width: 760px;
  margin-top: 32px;
  padding: 15px 18px;
  border: 1px solid rgba(104, 84, 186, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.six-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 34px;
  margin-top: 56px;
}

.detail-step p {
  max-width: 340px;
}

.licence-section {
  background: var(--cream);
}

.licence-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: stretch;
  gap: 28px;
}

.licence-column {
  padding: 40px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 30px;
  background: white;
}

.licence-column h2 {
  font-size: clamp(2rem, 3.7vw, 3rem);
}

.dark-licence-card {
  border-color: transparent;
  background: linear-gradient(145deg, var(--navy), var(--navy-soft) 72%, var(--purple));
  color: white;
  box-shadow: var(--shadow);
}

.dark-licence-card h3 {
  margin-bottom: 22px;
  color: white;
  font-size: 1.8rem;
}

.licence-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.licence-list li {
  position: relative;
  padding: 10px 0 10px 29px;
  color: var(--slate-dark);
}

.licence-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.light-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
}

.light-list li::before {
  color: #CFC6F6;
}

.restrictions-section {
  background: white;
}

.restrictions-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 68px;
}

.restriction-lead {
  color: var(--slate);
  font-size: 1.03rem;
  line-height: 1.85;
}

.restriction-card {
  padding: 34px;
  border: 1px solid rgba(104, 84, 186, 0.15);
  border-radius: 28px;
  background: var(--lavender-soft);
}

.restriction-card .licence-list {
  margin-top: 12px;
}

.fellowship-only-section {
  padding: 0 0 96px;
  background: white;
}

.fellowship-only-card {
  padding: 48px 50px;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft) 66%, var(--purple));
  color: white;
  box-shadow: 0 20px 60px rgba(8, 27, 56, 0.14);
}

.fellowship-only-card h2 {
  max-width: 820px;
  color: white;
}

.fellowship-only-card p:last-child {
  max-width: 850px;
  margin-bottom: 0;
  color: #D8DEEA;
  line-height: 1.85;
}

@media (max-width: 980px) {
  .cloud-grid,
  .licence-grid,
  .restrictions-grid {
    grid-template-columns: 1fr;
  }

  .six-step-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fellowship-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .cloud-grid {
    gap: 40px;
  }

  .fellowship-strip {
    padding: 48px 0;
  }

  .fellowship-inner,
  .licence-column,
  .fellowship-only-card {
    padding: 28px;
  }

  .fellowship-inner .button {
    width: 100%;
  }

  .licence-hero {
    padding: 72px 0 68px;
  }

  .six-step-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .restrictions-grid {
    gap: 34px;
  }

  .fellowship-only-section {
    padding-bottom: 68px;
  }
}

/* --- Fresh public-site spacing + scroll reveal --- */

/* Extra breathing room between the Ministri Cloud copy/status and its navy card,
   especially when the Cloud section stacks to one column. */
.cloud-copy .status-pill {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .cloud-grid {
    gap: 56px;
  }

  .cloud-copy {
    padding-bottom: 4px;
  }
}

/* Progressive-enhancement scroll reveal:
   content stays visible if JavaScript is unavailable. */
.reveal-section {
  opacity: 1;
  transform: none;
}

.js .reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-section,
  .js .reveal-section.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
