:root {
  --navy-950: #081423;
  --navy-900: #0d2340;
  --navy-850: #123052;
  --navy-800: #183d67;
  --blue-700: #285f9f;
  --blue-500: #4f84c1;
  --slate-900: #14202f;
  --slate-700: #42556f;
  --slate-600: #5d6f86;
  --slate-300: #cbd4df;
  --slate-200: #dfe6ee;
  --slate-100: #edf2f7;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --shadow: 0 26px 70px rgba(8, 20, 35, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --site-width: min(1160px, calc(100vw - 3rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 132, 193, 0.16), transparent 30%),
    radial-gradient(circle at right 10%, rgba(24, 61, 103, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #eef3f8 100%);
}

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

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

.page-shell {
  width: var(--site-width);
  margin: 0 auto;
  padding-bottom: 3rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem auto 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 35px rgba(13, 35, 64, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  color: var(--white);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  background: linear-gradient(145deg, var(--blue-700), var(--navy-900));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span:last-child {
  color: var(--slate-600);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  color: var(--slate-700);
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.link-list a:hover,
.link-list a:focus-visible {
  color: var(--blue-700);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.82rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  box-shadow: 0 16px 34px rgba(13, 35, 64, 0.22);
}

.button-secondary {
  color: var(--navy-900);
  border-color: rgba(13, 35, 64, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(13, 35, 64, 0.08);
}

.button-ghost {
  color: var(--navy-900);
  border-color: rgba(13, 35, 64, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.section {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--blue-700);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-card-large h2,
.content-card h2,
.download-card h2,
.site-footer h2,
.page-hero h1,
.policy-layout h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.6rem;
  align-items: center;
  min-height: calc(100vh - 10rem);
  padding: 3rem 0 2rem;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.hero-text,
.intro-card p,
.feature-card p,
.content-card p,
.process-card p,
.download-card p,
.faq-item p,
.footer-meta,
.page-hero p,
.policy-layout p,
.policy-layout li,
.screen-card p,
.hero-panel p {
  color: var(--slate-700);
  font-size: 1.02rem;
  line-height: 1.78;
}

.hero-actions,
.download-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.hero-note span {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(13, 35, 64, 0.06);
}

.hero-panel,
.intro-card,
.feature-card,
.content-card,
.process-card,
.screen-card,
.download-card,
.faq-item,
.site-footer,
.page-hero,
.policy-layout,
.trust-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 35, 64, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(23, 61, 103, 0.96), rgba(8, 20, 35, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.hero-panel::after,
.primary-download::after {
  content: "";
  position: absolute;
  inset: auto -10% -18% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 132, 193, 0.42), transparent 68%);
}

.panel-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-panel h2 {
  margin: 1rem 0 0.8rem;
  font-size: 1.95rem;
  line-height: 1.14;
}

.hero-panel p,
.stats-grid dt {
  color: rgba(255, 255, 255, 0.78);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 0;
}

.stats-grid div {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.stats-grid dt {
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats-grid dd {
  margin: 0;
  color: var(--white);
  font-weight: 700;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
}

.trust-strip p {
  margin: 0;
  color: var(--slate-700);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.25rem;
}

.intro-card,
.feature-card,
.content-card,
.process-card,
.screen-card,
.download-card,
.faq-item,
.site-footer,
.page-hero,
.policy-layout {
  border-radius: var(--radius-lg);
}

.intro-card,
.feature-card,
.content-card,
.process-card,
.screen-card,
.download-card,
.faq-item,
.policy-layout {
  padding: 1.8rem;
}

.intro-card-large {
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 242, 247, 0.92));
}

.intro-card-large h2,
.section-heading h2,
.download-card h2,
.site-footer h2,
.page-hero h1,
.policy-layout h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.intro-card h3,
.feature-card h3,
.content-card h3,
.process-card h3,
.download-card h3,
.screen-card strong {
  margin-top: 0;
  font-size: 1.22rem;
}

.card-section {
  padding: 0.4rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feature-grid,
.process-grid,
.screenshot-grid {
  display: grid;
  gap: 1.25rem;
}

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

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(145deg, var(--blue-700), var(--navy-900));
}

.catechism-layout,
.download-layout {
  display: grid;
  gap: 1.25rem;
}

.catechism-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.download-layout {
  grid-template-columns: 1.15fr 0.85fr;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(24, 61, 103, 0.98), rgba(8, 20, 35, 0.96));
  color: var(--white);
}

.accent-card p,
.accent-card h3 {
  color: var(--white);
}

.screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(237, 242, 247, 0.9));
}

.phone-frame {
  width: min(100%, 240px);
  margin: 0 auto;
  padding: 0.8rem;
  border-radius: 30px;
  background: linear-gradient(180deg, #1b2f4a, #0a1626);
  box-shadow: 0 18px 40px rgba(8, 20, 35, 0.22);
}

.phone-screen {
  min-height: 360px;
  padding: 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(231, 238, 245, 0.94));
}

.screen-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: var(--blue-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(40, 95, 159, 0.09);
}

.phone-screen strong {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--navy-900);
}

.primary-download {
  background:
    linear-gradient(160deg, rgba(16, 39, 69, 0.98), rgba(8, 20, 35, 0.98));
  color: var(--white);
}

.primary-download p,
.primary-download h2 {
  color: var(--white);
}

.secondary-download {
  background: var(--surface-strong);
}

.link-list {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
  color: var(--slate-700);
}

.link-list li + li {
  margin-top: 0.7rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: var(--surface-strong);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--navy-900);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--blue-700);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.15fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
}

.footer-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  color: var(--slate-700);
}

.footer-meta {
  grid-column: 1 / -1;
  margin: 0;
}

.page-hero {
  margin-top: 1rem;
  padding: 2.1rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 242, 247, 0.92));
}

.page-hero h1 {
  max-width: 14ch;
}

.page-hero p {
  max-width: 52rem;
  margin-bottom: 0;
}

.policy-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.policy-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(13, 35, 64, 0.08);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(237, 242, 247, 0.9));
  box-shadow: 0 16px 38px rgba(8, 20, 35, 0.08);
}

.policy-summary-card strong {
  color: var(--navy-900);
  font-size: 1rem;
}

.policy-summary-card span {
  color: var(--slate-700);
  font-size: 0.96rem;
  line-height: 1.65;
}

.policy-page .section {
  margin-bottom: 1.4rem;
}

.policy-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(13, 35, 64, 0.08);
}

.policy-updated {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.policy-section + .policy-section {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(13, 35, 64, 0.08);
}

.policy-layout h2 {
  margin-bottom: 1rem;
}

.policy-layout h3 {
  margin: 1.4rem 0 0.7rem;
  font-size: 1.08rem;
  color: var(--navy-900);
}

.policy-layout ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0 0;
}

.policy-layout li + li {
  margin-top: 0.45rem;
}

.policy-layout a {
  color: var(--blue-700);
}

.policy-contact {
  background:
    linear-gradient(145deg, rgba(248, 251, 253, 0.98), rgba(231, 238, 245, 0.92));
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
}

.policy-contact-link {
  margin: 0.25rem 0 0;
}

.policy-contact-link a {
  font-weight: 800;
  word-break: break-word;
}

.policy-last-updated {
  margin: 1rem 0 0;
  color: var(--slate-600);
  font-size: 0.92rem;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero,
  .overview-grid,
  .feature-grid,
  .process-grid,
  .catechism-layout,
  .screenshot-grid,
  .download-layout,
  .policy-summary,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .section-heading,
  .policy-header,
  .site-footer {
    align-items: start;
    justify-content: start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 1.2rem, 100%);
  }

  .site-header {
    position: static;
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .brand-copy span:last-child {
    display: none;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .hero-panel,
  .intro-card,
  .feature-card,
  .content-card,
  .process-card,
  .screen-card,
  .download-card,
  .faq-item,
  .site-footer,
  .page-hero,
  .policy-layout,
  .trust-strip {
    padding: 1.4rem;
  }

  .stats-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
