@font-face {
  font-family: Onest;
  src: url("assets/onest-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Onest;
  src: url("assets/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --white: #fefefd;
  --ink: #132d47;
  --body: #3c5163;
  --blue: #24477f;
  --line: #cfd8de;
  --band: #132f48;
  --light-ink: #e4edf5;
  --gutter: clamp(22px, 5.5vw, 80px);
  --section-space: clamp(72px, 8.8vw, 136px);
  --font: Onest, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 26px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.55 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2 { letter-spacing: -.06em; font-weight: 600; line-height: 1.03; }
h2 { font-size: clamp(2.5rem, 4.75vw, 4.55rem); }
h3 { font-size: 1.28rem; font-weight: 680; line-height: 1.25; letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.wrap { width: min(1280px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: var(--gutter); z-index: 4; padding: 10px 14px; translate: 0 -140%; background: var(--white); }
.skip-link:focus { translate: none; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; font-size: 1.25rem; font-weight: 710; letter-spacing: -.045em; text-decoration: none; }
.brand img { width: 34px; height: 34px; flex: none; border-radius: 9px; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 42px); }
.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: .95rem;
  font-weight: 570;
  text-decoration: none;
  text-underline-offset: .31em;
}
.site-header nav a:hover { color: var(--blue); text-decoration: underline; }

.hero {
  min-height: calc(100svh - 77px);
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: center;
  padding-block: 36px 48px;
}
.hero__copy { padding-block: 24px; }
.hero h1 { font-size: clamp(3.1rem, 5.4vw, 5rem); }
.hero h1 span { display: block; }
.hero__copy > p:first-of-type { margin-top: 20px; max-width: 39ch; color: var(--body); font-size: clamp(1.02rem, 1.38vw, 1.18rem); }
.hero__availability { margin-top: 15px; width: fit-content; color: var(--blue); font-size: .94rem; font-weight: 650; }
.hero__visual { position: relative; min-width: 0; height: clamp(480px, 48vw, 642px); }

.launch {
  max-width: 490px;
  margin-top: clamp(22px, 2.8vw, 34px);
  padding: 22px 24px 20px;
  border: 1px solid #cdd9e3;
  border-radius: 14px;
  background: var(--white);
}
.launch h2 { font-size: clamp(1.26rem, 2.2vw, 1.53rem); letter-spacing: -.045em; line-height: 1.15; }
.launch__intro { margin-top: 6px; color: var(--body); font-size: .93rem; }
.signup { margin-top: 16px; padding-top: 15px; border-top: 1px solid #e2e9ef; }
.signup__parish { min-width: 0; margin: 0; padding: 0; border: 0; }
.signup__parish legend { padding: 0; font-size: .93rem; font-weight: 670; line-height: 1.35; }
.signup__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.signup__choice { position: relative; }
.signup__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.signup__choice span {
  display: grid;
  place-items: center;
  min-height: 45px;
  padding: 4px;
  border: 1px solid #bacad9;
  border-radius: 7px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}
.signup__choice:hover span { border-color: var(--blue); background: #f2f6fb; }
.signup__choice input:checked + span { border-color: var(--blue); background: #e4eefb; box-shadow: inset 0 0 0 1px var(--blue); color: #17396c; }
.signup__choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.signup__question-meta { display: flex; min-height: 37px; align-items: center; justify-content: space-between; gap: 10px; color: var(--body); font-size: .78rem; }
.signup__clear {
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .17em;
}
.signup__label { display: block; margin-top: 3px; margin-bottom: 4px; font-size: .86rem; font-weight: 640; }
.signup__email {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 8px 10px;
  border: 1px solid #98acbf;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.signup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 15px; margin-top: 10px; }
.signup__submit {
  min-height: 45px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: .91rem;
  font-weight: 650;
  cursor: pointer;
}
.signup__submit:hover { background: #183865; }
.signup__submit:disabled { opacity: .72; cursor: wait; }
.signup__consent { display: flex; align-items: flex-start; gap: 8px; min-height: 40px; margin-top: 7px; padding-block: 7px; color: var(--body); font-size: .84rem; cursor: pointer; }
.signup__consent input { width: 16px; height: 16px; flex: none; margin: 2px 0 0; accent-color: var(--blue); }
.signup__privacy { display: inline-flex; align-items: center; min-height: 44px; font-size: .84rem; color: var(--blue); text-underline-offset: 3px; }
.signup__status { color: #205b42; font-size: .89rem; font-weight: 610; }
.signup__status:not(:empty) { margin-top: 8px; }
.signup__status[data-error] { color: #8b2a26; }

.phone {
  overflow: hidden;
  border: 5px solid #183047;
  border-radius: 31px;
  background: #f3f7fa;
  box-shadow: 0 10px 27px rgb(30 60 92 / 15%), 0 2px 5px rgb(30 60 92 / 13%);
}
.phone img { width: 100%; height: auto; }
.hero__phone { position: absolute; }
.hero__phone--start { z-index: 2; left: 11%; bottom: 2%; width: min(47%, 262px); }
.hero__phone--panel { top: 6.5%; left: 49.5%; width: min(43%, 238px); }
@media (prefers-reduced-motion: no-preference) {
  .hero__phone { animation: arrive 620ms cubic-bezier(.2,.72,.28,1) both; }
  .hero__phone--panel { animation-delay: 90ms; }
  @keyframes arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.product-section { padding-block: var(--section-space); border-top: 1px solid var(--line); background: var(--white); }
.section-heading { margin-bottom: clamp(32px, 5.3vw, 72px); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-item { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.product-item__copy { display: grid; align-content: start; gap: 8px; }
.product-item__copy h3 { font-size: 1.6rem; }
.product-item__copy p { max-width: 34ch; color: var(--body); }
.product-item__screen {
  display: grid;
  justify-items: center;
  align-items: start;
  padding: clamp(16px, 2.6vw, 34px) clamp(10px, 1.2vw, 22px);
  border-radius: 8px;
  background: #eaf1f8;
}
.product-item:nth-child(2) .product-item__screen { background: #eaefee; }
.product-item:nth-child(3) .product-item__screen { background: #f0eee7; }
.product-item__screen .phone { width: min(100%, 236px); border-width: 4px; border-radius: 26px; }

.parish-section { padding-block: var(--section-space); color: #fff; background: var(--band); }
.parish-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(36px, 7vw, 100px); }
.parish-steps { margin-top: clamp(24px, 4vw, 48px); padding-inline-start: 28px; }
.parish-steps li { padding: 17px 0 19px 5px; border-top: 1px solid rgb(234 243 251 / 23%); }
.parish-steps li::marker { color: #c8dbef; font-size: .84rem; font-variant-numeric: tabular-nums; }
.parish-steps h3 { margin-bottom: 5px; }
.parish-steps p { max-width: 47ch; color: var(--light-ink); }

.parish-artwork { display: grid; gap: 16px; }
.art-card { position: relative; display: grid; align-items: end; isolation: isolate; min-height: clamp(226px, 19vw, 264px); overflow: hidden; border-radius: 16px; background: #104353; }
.art-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.art-card--join img { object-position: 75% 68%; }
.art-card--attendance { background: #152d52; }
.art-card--attendance img { object-position: right 53%; }
.art-card__text {
  margin: 0 12px 12px;
  width: min(calc(100% - 24px), 388px);
  padding: 13px 16px 15px;
  border: 1px solid rgb(221 236 248 / 21%);
  border-radius: 12px;
  background: rgb(10 28 48 / 88%);
  color: #fff;
}
.art-card__text p { margin-top: 5px; max-width: 44ch; color: #edf4fb; }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .art-card__text {
    background: linear-gradient(90deg, rgb(9 29 48 / 82%) 0%, rgb(9 29 48 / 73%) 72%, rgb(9 29 48 / 54%));
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    backdrop-filter: blur(15px) saturate(120%);
  }
}

.faq-section { padding-block: var(--section-space); }
.faq-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; }
.faq__item { padding: 19px 0 21px; border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item h3 { font-size: 1.15rem; }
.faq__item p { margin-top: 7px; max-width: 56ch; color: var(--body); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; }
.footer-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__visual { height: clamp(415px, 57vw, 535px); }
  .hero__phone--start { left: 8%; bottom: auto; top: 13%; width: 50%; }
  .hero__phone--panel { left: 47%; top: 23%; width: 45%; }
}

@media (max-width: 790px) {
  :root { --section-space: 70px; }
  .site-header__inner { min-height: 68px; }
  .brand { font-size: 1.14rem; }
  .brand img { width: 28px; height: 28px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .9rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-block: 32px 42px; }
  .hero__copy { padding-block: 8px 2px; }
  .hero h1 { font-size: clamp(3.1rem, 9vw, 4.85rem); }
  .hero__copy > p:first-of-type { margin-top: 16px; }
  .hero__visual { height: clamp(345px, 122vw, 585px); }
  .hero__phone--start { left: 11%; top: 5%; width: min(52%, 244px); }
  .hero__phone--panel { left: 49%; top: 15%; width: min(42%, 210px); }
  .parish-layout, .faq-layout { grid-template-columns: 1fr; gap: 34px; }
  .product-grid { gap: 34px; grid-template-columns: 1fr; }
  .product-item { grid-template-rows: auto; grid-row: auto; gap: 16px; }
  .product-item__screen { padding: 24px; }
  .product-item__screen .phone { width: min(100%, 260px); }
  .art-card__text { margin: 0 10px 10px; width: min(calc(100% - 20px), 388px); }
  .art-card__text h3 { font-size: 1.16rem; }
}

@media (max-width: 430px) {
  :root { --gutter: 18px; }
  .site-header__inner { display: grid; justify-content: stretch; padding-block: 6px 4px; gap: 0; }
  .site-header nav { gap: 22px; }
  .hero { padding-top: 27px; }
  .hero h1 { font-size: clamp(2.67rem, 10.8vw, 3.3rem); }
  .launch { padding: 16px 14px; }
  .hero__phone { border-radius: 24px; border-width: 4px; }
  .hero__phone--start { left: 9%; width: 57%; top: 5%; }
  .hero__phone--panel { left: 50%; width: 42%; top: 16%; }
  .site-footer__inner { min-height: 79px; flex-wrap: wrap; padding-block: 10px; gap: 0 14px; }
  .footer-link { font-size: .86rem; }
}

@media (max-width: 360px) {
  .hero { padding-top: 20px; }
  .hero__copy > p:first-of-type { margin-top: 12px; }
  .launch { margin-top: 20px; }
  .launch h2 { font-size: 1.21rem; }
  .signup__choices { gap: 5px; }
  .signup__actions { gap: 4px 12px; }
}

@supports not (grid-template-rows: subgrid) {
  .product-item { display: flex; flex-direction: column; }
  .product-item__screen { flex: 1; }
}

.legal { max-width: 800px; padding-block: clamp(40px, 7vw, 94px) 96px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
.legal h2 { margin-top: 38px; font-size: clamp(1.38rem, 3.1vw, 1.9rem); letter-spacing: -.036em; line-height: 1.22; }
.legal h3 { margin-top: 20px; font-size: 1.1rem; }
.legal p, .legal ul, .legal-box, .legal-scroll { margin-block: 11px 0; }
.legal ul { padding-inline-start: 23px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-meta { color: var(--body); }
.legal-box { padding: 13px 16px; border-left: 2px solid var(--blue); background: var(--white); }
.legal-scroll { overflow-x: auto; }
.legal-scroll table { min-width: 34rem; border-collapse: collapse; background: var(--white); }
.legal-scroll :is(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
