:root {
  --ink: #153d38;
  --muted: #60716e;
  --green: #0c695d;
  --green-dark: #064a43;
  --mint: #dff2eb;
  --cream: #fbfaf5;
  --gold: #e5b857;
  --white: #fff;
  --border: rgba(12, 105, 93, 0.13);
  --shadow: 0 18px 50px rgba(6, 74, 67, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 25%, rgba(229, 184, 87, 0.22), transparent 25%),
    linear-gradient(135deg, var(--green-dark), var(--green));
}

.site-header::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
}

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

.navbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 1.3rem;
}

.nav-wrap,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-wrap {
  gap: 30px;
}

.nav-links {
  gap: 26px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--white);
}

.nav-links .nav-download {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  gap: 10px;
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switcher svg {
  width: 16px;
  flex: 0 0 auto;
}

.language-select {
  width: 100%;
  border: 0;
  padding: 9px 20px 9px 0;
  appearance: none;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.language-select option {
  color: var(--ink);
  background: var(--white);
}

.language-chevron {
  position: absolute;
  right: 10px;
  width: 10px;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 4px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  min-height: 610px;
  padding-block: 75px 110px;
}

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

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}

.store-buttons a {
  display: inline-flex;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.store-buttons a:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.store-badge {
  align-items: center;
  gap: 9px;
  min-width: 166px;
  min-height: 54px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  color: #fff;
  background: #050505;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.store-logo {
  width: 28px;
  height: 32px;
  flex: 0 0 auto;
}

.apple-logo {
  width: 27px;
}

.store-badge > span {
  display: grid;
  line-height: 1;
}

.store-badge small {
  margin-bottom: 3px;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

.store-badge strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(2, 37, 33, 0.23);
  backdrop-filter: blur(14px);
}

.hero-card-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-prayer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 12px 0 25px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.next-prayer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.next-prayer span {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
}

.prayer-list {
  display: grid;
  gap: 14px;
}

.prayer-row {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.75);
}

.prayer-row.active {
  color: var(--white);
  font-weight: 700;
}

.section {
  padding: 100px 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.feature-card {
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(6, 74, 67, 0.045);
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  background: var(--mint);
  color: var(--green);
  font-size: 1.35rem;
}

.feature-icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
}

.feature-card h3 {
  margin: 0 0 9px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.download-section {
  padding: 0 0 100px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 50px 55px;
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  box-shadow: var(--shadow);
}

.download-panel h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.download-panel p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  padding: 46px 0 28px;
  color: rgba(255, 255, 255, 0.72);
  background: #073f39;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 35px;
}

.footer-grid p {
  max-width: 390px;
  margin: 14px 0 0;
}

.footer-title {
  margin: 0 0 12px;
  color: var(--white);
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  text-align: center;
}

.inner-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}

.page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 100px;
}

.page-title {
  margin-bottom: 45px;
}

.page h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.1;
}

.page h2 {
  margin: 36px 0 8px;
  color: var(--ink);
  font-size: 1.25rem;
}

.page p,
.page li {
  color: var(--muted);
}

.page a:not(.button) {
  color: var(--green);
  font-weight: 600;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card {
  margin: 28px 0;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.info-card h2 {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.faq-list details {
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.faq-list summary {
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin-bottom: 0;
}

[data-lang]:not([hidden]) {
  display: initial;
}

[data-lang][hidden] {
  display: none;
}

html:not(.js) [data-lang="it"] {
  display: none;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: #064a43;
    box-shadow: 0 20px 40px rgba(2, 37, 33, 0.3);
  }

  .nav-wrap.open {
    display: grid;
    gap: 20px;
  }

  html:not(.js) .nav-wrap {
    position: static;
    display: grid;
    width: 100%;
    margin-bottom: 14px;
  }

  html:not(.js) .navbar {
    flex-wrap: wrap;
  }

  html:not(.js) .menu-toggle {
    display: none;
  }

  .nav-wrap .language-switcher {
    width: 100%;
  }

  .nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
    padding-top: 65px;
  }

  .hero-card {
    max-width: 540px;
    width: 100%;
  }

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

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .container,
  .page {
    width: min(100% - 28px, 1120px);
  }

  .navbar {
    min-height: 72px;
  }

  .hero {
    min-height: auto;
    padding: 58px 0 80px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.1rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .store-badge {
    min-width: 150px;
    min-height: 50px;
    padding: 6px 10px;
  }

  .store-badge strong {
    font-size: 0.98rem;
  }

  .hero-card {
    padding: 25px;
  }

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

  .section {
    padding: 75px 0;
  }

  .download-panel {
    padding: 34px 26px;
  }

  .download-panel .store-buttons {
    display: grid;
    width: 100%;
  }

  .download-panel .store-buttons a {
    width: max-content;
    max-width: 100%;
  }

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