@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tajawal";
  src: url("/assets/fonts/Tajawal-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Tajawal", Arial, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  line-height: 1.65;
  color: #f7fbfd;
  background: #0a1f33;
  --navy: #0a1f33;
  --teal: #70d8cf;
  --muted: #b8cbd5;
  --line: #ffffff20;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.3em; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
a:focus-visible { outline: 3px solid #70d8cf; outline-offset: 6px; }
main:focus { outline: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  color: var(--navy);
  background: #fff;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-shell { max-width: 74rem; padding-inline: 3rem; margin-inline: auto; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
}
.brand { display: inline-flex; gap: 0.85rem; align-items: center; text-decoration: none; }
.brand img { flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 0.85rem; }
.brand-text { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-name { font-size: 1.3rem; font-weight: 700; line-height: 1.25; text-align: start; }
.brand-church { color: var(--muted); font-size: 0.875rem; }
.nav-link { display: inline-block; padding-block: 0.5rem; font-size: 0.95rem; text-decoration: none; }
.nav-link:hover, .footer-links a:hover { color: var(--teal); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  min-height: 40rem;
  padding-block: 3.5rem 2.5rem;
}
.hero-copy { max-width: 32rem; border-inline-start: 3px solid #0e9e97; padding-inline-start: 1.5rem; padding-block: 0.5rem; }
.eyebrow { color: var(--teal); font-size: 1rem; font-weight: 700; margin-block-end: 0.85rem; }
.app-title { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.35; letter-spacing: -0.025em; text-align: right; }
.app-title span { display: inline; }
.hero-intro { color: #c4d0d8; font-size: 1.2rem; line-height: 1.8; margin-block-start: 0.6rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-block-start: 1.4rem; }
.download-card {
  display: block;
  width: clamp(6.5rem, calc(50% - 0.325rem), 9.25rem);
  max-width: 100%;
  border-radius: 0.5rem;
}
.download-card img { width: 100%; }
.download-card--available { text-decoration: none; }
.download-card--available:hover { outline: 2px solid var(--teal); outline-offset: 4px; }
.phone-preview {
  display: flex;
  justify-content: center;
  justify-self: center;
  width: 100%;
}
.phone-preview img { width: auto; max-height: min(70svh, 40rem); object-fit: contain; }
.landing-page .site-shell { max-width: 72rem; min-height: 100svh; display: flex; flex-direction: column; padding-inline: 2.5rem; }
.landing-page main { flex: 1; display: grid; align-items: center; }
.landing-page .eyebrow { color: #19b8ad; font-size: 0.95rem; margin-block-end: 0.5rem; }
.landing-page .site-footer { border: 0; padding-block: 1rem 1.5rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  border-block-start: 1px solid var(--line);
  padding-block: 1.4rem 1.8rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { padding-block: 0.3rem; }
.text-link { display: inline-block; padding-block: 0.5rem; color: var(--teal); }

.privacy-page { background: #f8faf9; color: #193348; color-scheme: light; }
.privacy-page .site-header { border-block-end: 1px solid #d8e2e2; }
.privacy-page .brand-church, .privacy-page .site-footer { color: #4b6575; }
.privacy-page .nav-link:hover, .privacy-page .footer-links a:hover { color: #08645e; }
.privacy-page a:focus-visible { outline-color: #0c766e; }
.privacy-page .skip-link { color: #fff; background: #0a1f33; }
.policy { max-width: 49rem; margin-inline: auto; padding-block: 3.5rem 4rem; }
.policy-header { margin-block-end: 2.25rem; }
.policy-header .eyebrow { color: #08645e; margin-block-end: 0.65rem; }
.policy h1 { font-size: clamp(1.5rem, 5vw, 2.75rem); line-height: 1.4; }
.policy-date { color: #4b6575; font-size: 0.95rem; margin-block-start: 0.5rem; }
.policy-summary { font-size: 1.15rem; line-height: 1.9; margin-block-start: 1.4rem; }
.policy section { margin-block-start: 2rem; }
.policy h2 { font-size: 1.35rem; line-height: 1.6; margin-block-end: 0.55rem; }
.policy p, .policy li { line-height: 1.95; font-size: 1.05rem; overflow-wrap: anywhere; }
.policy p + p { margin-block-start: 0.8rem; }
.policy ul { margin-block: 0.6rem 0; padding-inline-start: 1.4rem; }
.policy li + li { margin-block-start: 0.45rem; }
.policy a { color: #08645e; overflow-wrap: anywhere; }
.policy .policy-return { margin-block-start: 2.5rem; }
.privacy-page .site-footer { border-color: #d8e2e2; }
.error-page { min-height: 100svh; display: grid; place-items: center; padding: 2rem 1.5rem; }
.error-content { max-width: 34rem; text-align: center; }
.error-content img { margin: 0 auto 1.8rem; border-radius: 1.3rem; }
.error-content h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.error-content > p:not(.eyebrow) { color: var(--muted); margin-block: 0.75rem 1rem; }

@media (max-width: 56rem) {
  .site-shell { padding-inline: 1.75rem; }
  .landing-page .site-shell { padding-inline: 1.75rem; }
  .hero { gap: 2rem; }
}

@media (max-width: 42rem) {
  .site-shell { padding-inline: 1.25rem; }
  .site-header { gap: 0.85rem; padding-block: 1.25rem; align-items: flex-start; }
  .brand { gap: 0.6rem; }
  .brand img { width: 2.6rem; height: 2.6rem; border-radius: 0.6rem; }
  .brand-name { font-size: 1.1rem; }
  .brand-church { max-width: 12rem; font-size: 0.875rem; }
  .nav-link { font-size: 0.875rem; max-width: 6rem; }
  .landing-page .site-shell { padding-inline: 1.25rem; }
  .landing-page main { display: block; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; gap: 0.8rem; padding-block: 3.75rem 0.5rem; }
  .hero-copy { padding-inline-start: 1.1rem; }
  .eyebrow { margin-block-end: 0.7rem; }
  .app-title { font-size: clamp(1.65rem, 7.4vw, 2.25rem); }
  .hero-intro { font-size: 1.05rem; margin-block-start: 0.65rem; }
  .downloads { margin-block-start: 1.1rem; }
  .phone-preview img { width: 20rem; max-height: none; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 0.6rem; padding-block: 1.2rem; }
  .footer-links { gap: 0.35rem 1.25rem; }
  .policy { padding-block: 2rem 2.5rem; }
  .policy h2 { font-size: 1.25rem; }
}

@media (max-width: 23rem) {
  .site-shell { padding-inline: 1rem; }
  .landing-page .site-shell { padding-inline: 1rem; }
  .site-header { flex-wrap: wrap; }
  .site-header nav { margin-inline-start: 3.2rem; }
  .nav-link { max-width: none; padding-block: 0.15rem; }
}
