/* ============================================================
   APPSOLUTION — The Catholic Confession App
   Palette: near-black, off-white, ecclesiastical purple, gold accent
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.75rem + 6vw, 6.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color — Appsolution palette */
  --color-bg: #070609;             /* near-black with a faint blue-violet warmth */
  --color-bg-2: #0d0b12;
  --color-surface: #12101a;
  --color-surface-2: #171423;
  --color-surface-3: #1c1929;
  --color-border: rgba(255,255,255,0.08);
  --color-border-strong: rgba(255,255,255,0.14);
  --color-divider: rgba(255,255,255,0.06);

  --color-text: #f5f2ff;
  --color-text-muted: #a09bb8;
  --color-text-faint: #6b6685;

  /* Purple — ecclesiastical */
  --color-purple: #a86fdf;
  --color-purple-2: #7a39bb;
  --color-purple-deep: #4a1e7a;
  --color-purple-glow: rgba(168, 111, 223, 0.35);
  --color-purple-soft: rgba(168, 111, 223, 0.12);

  /* Accent gold — used sparingly like ecclesiastical gold thread */
  --color-gold: #d9b26a;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px var(--color-purple-glow);

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1120px;
  --content-wide: 1360px;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* scroll-behavior handled in JS to avoid competing with programmatic scrolls */
  scroll-padding-top: 5rem;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
}

::selection {
  background: var(--color-purple-2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.section-alt {
  background: var(--color-bg-2);
  position: relative;
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, var(--color-purple-soft), transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--color-purple-soft), transparent 70%);
  pointer-events: none;
}
.section-alt > * { position: relative; }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.eyebrow.purple { color: var(--color-purple); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
  margin-inline: auto;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-head--left {
  text-align: left;
  margin-inline: 0;
  margin-bottom: var(--space-12);
}
.section-head--left .section-sub { margin-inline: 0; }

.grad {
  background: linear-gradient(120deg, #f5f2ff 0%, #c9a6ff 40%, var(--color-purple) 70%, var(--color-purple-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-weight: 300;
}
.lead em { color: var(--color-purple); font-style: italic; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg  { padding: var(--space-4) var(--space-8); font-size: var(--text-sm); }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(180deg, var(--color-purple) 0%, var(--color-purple-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -8px var(--color-purple-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px var(--color-purple-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-purple);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  pointer-events: none;
  transition: padding var(--transition);
}
.site-header > * { pointer-events: auto; }

.header-pill {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 8px 14px 8px 20px;
  border-radius: 9999px;
  background: rgba(18, 8, 32, 0.35);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled .header-pill {
  background: rgba(12, 6, 20, 0.75);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
  flex: none;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
}
.brand-logo--footer {
  height: 56px;
  border-radius: 10px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--color-text); }

.nav-download {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: none;
}
.nav-download-label {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.nav-download-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.nav-download-sub {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.nav-download-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}
.nav-icon-btn:hover {
  background: rgba(168, 111, 223, 0.22);
  border-color: rgba(168, 111, 223, 0.5);
  transform: scale(1.08);
}

@media (min-width: 900px) {
  .site-nav { display: inline-flex; }
}

/* On mobile: hide the download-icons cluster so the header shows
   only logo + hamburger (the mobile menu has its own CTA). */
@media (max-width: 899px) {
  .nav-download { display: none; }
}

/* ============================================================
   MOBILE NAV (hamburger + overlay)
   ============================================================ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-text);
  transition: background-color 180ms ease, border-color 180ms ease;
  margin-left: auto;
}
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
}
.nav-toggle:hover {
  background: rgba(168, 111, 223, 0.1);
  border-color: rgba(168, 111, 223, 0.35);
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 6, 9, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 90; /* below the header pill which is z-index: 100 */
  padding: calc(var(--space-16) + 4rem) var(--space-8) var(--space-8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 480px;
  margin: 0 auto;
}
.mobile-menu-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 180ms ease, padding-left 200ms ease;
  letter-spacing: -0.01em;
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:focus {
  color: var(--color-purple);
  padding-left: var(--space-3);
}
.mobile-menu-nav .mobile-menu-cta {
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: #0a0810;
  background: var(--color-purple);
  border-bottom: none;
  border-radius: 999px;
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.mobile-menu-nav .mobile-menu-cta:hover,
.mobile-menu-nav .mobile-menu-cta:focus {
  color: #0a0810;
  background: var(--color-purple-2);
  padding-left: var(--space-6);
}

/* Lock body scroll while menu is open */
body.menu-open {
  overflow: hidden;
}
@media (min-width: 1024px) {
  .nav-download-label { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* Tightened so the download badges land above the fold */
  padding-block: var(--space-20) var(--space-12);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1500ms ease-in-out;
}
.hero-video.active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,9,0.4) 0%, rgba(7,6,9,0.35) 40%, rgba(7,6,9,0.85) 85%, var(--color-bg) 100%),
    linear-gradient(90deg, rgba(7,6,9,0.65) 0%, rgba(7,6,9,0.25) 55%, rgba(7,6,9,0.55) 100%),
    radial-gradient(ellipse 80% 60% at 30% 40%, transparent 0%, rgba(7,6,9,0.35) 100%);
}

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

.hero-brand {
  margin-bottom: var(--space-3);
  display: block;
  width: 100%;
  max-width: 320px;
}

.hero-brand-mark {
  /* Transparent PNG — show the whole square at natural aspect so the stole 
     collar at the top and the fringes at the bottom are both visible. */
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  user-select: none;
}

@media (max-width: 720px) {
  .hero-brand {
    max-width: 240px;
    margin-bottom: var(--space-2);
  }
}

.hero-title {
  font-family: var(--font-display);
  /* Fluid: ~44px on mobile up to ~72px on desktop — large enough to 
     command the hero, small enough to keep download badges above the fold */
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.hero-sub {
  font-size: var(--text-base);
  line-height: 1.5;
  color: rgba(245, 242, 255, 0.85);
  max-width: 60ch;
  margin-bottom: var(--space-6);
  font-weight: 300;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
}

.hero-release {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin: 0 0 var(--space-10);
}
.hero-release::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--color-purple);
  box-shadow: 0 0 0 4px rgba(168, 111, 223, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(168, 111, 223, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(168, 111, 223, 0.05); }
}

/* Official store badges */
.store-badges {
  gap: 12px;
  align-items: center;
}
.store-badge {
  display: inline-block;
  transition: transform 180ms ease, opacity 180ms ease;
  will-change: transform;
}
.store-badge img {
  display: block;
  height: 48px;
  width: auto;
}
.store-badge--google img {
  /* Google Play PNG has ~20% built-in padding — scale up to match Apple visual height */
  height: 70px;
  margin: -11px -6px;
}
.store-badge:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6) var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 720px;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(245, 242, 255, 0.8);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.meta-item svg {
  color: var(--color-purple);
  flex: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(245, 242, 255, 0.55);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 1;
  animation: hint 2.5s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50% { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* ============================================================
   QUOTE BREAK
   ============================================================ */
.quote-break {
  padding-block: clamp(var(--space-16), 12vw, var(--space-24));
  background: var(--color-bg);
  position: relative;
}
.quote-break--dark { background: #050409; }

.quote {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  padding-inline: var(--space-4);
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-purple);
  font-weight: 500;
}

/* ============================================================
   TWO COLUMN — SACRAMENT
   ============================================================ */
.two-col {
  display: grid;
  gap: var(--space-16);
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.15fr 1fr; gap: var(--space-20); }
}

.col-text .section-title { margin-bottom: var(--space-6); }
.col-text p { color: var(--color-text-muted); margin-bottom: var(--space-4); max-width: 60ch; }

.col-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,6,9,0.5) 100%);
  pointer-events: none;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.pillar {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-4);
}
.pillar-num {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-purple);
  display: block;
  margin-bottom: var(--space-2);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}
.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ============================================================
   FULL BLEED BREAK
   ============================================================ */
.bleed-break {
  position: relative;
  height: 55vh;
  min-height: 380px;
  max-height: 640px;
  overflow: hidden;
}
.bleed-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bleed-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7,6,9,0.55) 0%, rgba(7,6,9,0.35) 50%, var(--color-bg) 100%);
}
.bleed-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-2xl);
  color: #fff;
  text-align: center;
  padding-inline: var(--space-6);
  max-width: 20ch;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

/* ============================================================
   FEATURES
   ============================================================ */
.phase {
  margin-top: var(--space-12);
}
.phase:first-of-type { margin-top: var(--space-10); }

.phase-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.phase-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-2));
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: -0.02em;
  flex: none;
}
.phase-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin: 0 0 6px;
}
.phase-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card--wide { grid-column: span 2; }
}

.feature-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 400px 200px at var(--mx, 50%) var(--my, -10%), var(--color-purple-soft), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--color-purple);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-purple-soft);
  color: var(--color-purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-purple-glow);
}
.feature-card h3,
.feature-card h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.feature-card--wide h3 { font-size: var(--text-xl); }
.feature-card--wide p { font-size: var(--text-base); }

.feature-list {
  list-style: none;
  margin-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: var(--space-2);
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-purple);
}

/* ============================================================
   APP SCREENS
   ============================================================ */
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}
@media (min-width: 900px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-16); }
  .screen-block--wide { grid-column: 1 / -1; }
}

.screen-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}
@media (min-width: 900px) {
  .screen-block--wide {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: var(--space-16);
  }
  .screen-block--wide .screen-copy { flex: 1; max-width: 480px; }
  .screen-block--wide .screen-frame { flex: 1.4; }

  /* Sin Reflection trio overrides the row layout of --wide */
  .sin-reflection-block {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--space-10) !important;
    text-align: center !important;
  }
  .sin-reflection-block .screen-copy {
    flex: none !important;
    max-width: 720px;
    margin-inline: auto;
  }
  .sin-reflection-block .screen-copy p { margin-inline: auto; }
}

.screen-copy--centered { text-align: center; }
.screen-copy--centered .tab-badge { margin-inline: auto; }

.sin-trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .sin-trio { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}
.sin-trio .screen-frame { margin: 0; }

.screen-copy .tab-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-purple);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-5);
}
.screen-copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.screen-copy p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: 50ch;
  margin-inline: auto;
}
.screen-block--wide .screen-copy p { margin-inline: 0; }

.screen-frame {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.screen-frame img {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-lg), 0 0 60px -20px var(--color-purple-glow);
}
.screen-frame--phone img {
  max-width: 340px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.screen-frame--desktop img {
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.sin-trio .screen-frame--phone img { max-width: 300px; }

/* ============================================================
   PRIVACY BAND
   ============================================================ */
.privacy-band {
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  background: linear-gradient(135deg, var(--color-purple-deep) 0%, #1a0d33 45%, var(--color-bg) 100%);
  border-block: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 30% 50%, rgba(168, 111, 223, 0.25), transparent 60%);
  pointer-events: none;
}
.privacy-inner {
  position: relative;
  display: grid;
  gap: var(--space-8);
  align-items: start;
  max-width: 900px;
}
@media (min-width: 700px) {
  .privacy-inner { grid-template-columns: auto 1fr; gap: var(--space-10); }
}
.privacy-icon {
  color: var(--color-purple);
  filter: drop-shadow(0 0 20px var(--color-purple-glow));
}
.privacy-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.privacy-copy {
  font-size: var(--text-base);
  color: rgba(245, 242, 255, 0.85);
  line-height: 1.55;
  max-width: 60ch;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 700px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.1em;
  left: 0.3em;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: var(--color-purple);
  opacity: 0.18;
}
.testimonial p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  position: relative;
}
.testimonial figcaption {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  font-weight: 500;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1100px;
  margin-inline: auto;
}
.pricing-grid--4 {
  max-width: 1320px;
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.plan {
  position: relative;
  padding: var(--space-10) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
}
.plan--featured {
  background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-surface) 100%);
  border-color: var(--color-purple);
  box-shadow: var(--shadow-lg), 0 0 40px -20px var(--color-purple-glow);
  transform: none;
}
@media (min-width: 900px) {
  .plan--featured { transform: translateY(-8px); }
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--color-purple) 0%, var(--color-purple-2) 100%);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
}

.plan-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-purple);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}
.plan-price { margin-bottom: var(--space-8); }
.p-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}
.p-cycle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-list {
  list-style: none;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.plan-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.4;
}
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--color-purple);
  background: var(--color-purple-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23a86fdf' stroke-width='2'%3E%3Cpath d='M3 7l3 3 5-6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-10);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item[open] {
  border-color: var(--color-purple);
  background: var(--color-surface-2);
}
.faq-item summary {
  padding: var(--space-5) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: color var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-purple);
  border-bottom: 2px solid var(--color-purple);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex: none;
  margin-top: -6px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.faq-item p {
  padding: 0 var(--space-6) var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  overflow: hidden;
  isolation: isolate;
}
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--color-bg) 0%, rgba(7,6,9,0.4) 40%, rgba(7,6,9,0.85) 100%),
    radial-gradient(ellipse 60% 60% at 50% 100%, var(--color-purple-soft), transparent 60%);
}
.cta-inner { text-align: center; }
.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
}
.cta-sub {
  font-size: var(--text-lg);
  color: rgba(245, 242, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto var(--space-10);
}
.cta-inner .hero-actions { justify-content: center; margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding-block: var(--space-16) var(--space-8);
  background: #050409;
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.4fr 2fr; }
}

.footer-tagline {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 40ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: var(--space-4);
}
.footer-nav a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-1);
}
.footer-nav a:hover { color: var(--color-text); }

.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}
@media (min-width: 700px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}
.footer-verse {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-purple);
}

.footer-parent {
  text-align: center;
  color: rgba(245, 242, 255, 0.7);
  font-size: var(--text-sm);
}
.footer-parent a {
  color: var(--color-purple);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 111, 223, 0.35);
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-parent a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

/* Full-width scripture break inside the footer, styled to echo the 
   Pope Benedict quote-break so it reads as an intentional section marker. */
.footer-verse-break {
  padding-block: clamp(var(--space-16), 10vw, var(--space-20));
  border-top: 1px solid rgba(168, 111, 223, 0.15);
  border-bottom: 1px solid rgba(168, 111, 223, 0.15);
  margin-bottom: var(--space-8);
  position: relative;
}
.footer-verse-break .quote p {
  color: var(--color-text);
}
.footer-verse-break .quote cite {
  color: var(--color-purple);
}

/* ============================================================
   MOTION UTILITIES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video { transition: none; }
}

/* ============================================================
   CONTACT SECTION
   Two-column: left = eyebrow + heading + subhead + stacked contact rows
   Right = card with download badges. Modeled after Rosary Experience.
   ============================================================ */
.contact-inner {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.contact-lead .section-title {
  margin-bottom: var(--space-4);
}

.contact-lead .section-sub {
  margin-inline: 0;
  max-width: 46ch;
  text-align: left;
  margin-bottom: var(--space-10);
}

/* Stacked contact rows (email, phone) */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
  transition: color 180ms ease, transform 180ms ease;
}
.contact-row:hover {
  color: #fff;
  transform: translateX(2px);
}
.contact-row:hover .contact-icon {
  background: rgba(168, 111, 223, 0.2);
  border-color: rgba(168, 111, 223, 0.5);
}

.contact-icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(168, 111, 223, 0.1);
  border: 1px solid rgba(168, 111, 223, 0.22);
  color: var(--color-purple);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-lg);
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: #fff;
  /* Never break the email/phone mid-word */
  white-space: nowrap;
}

.contact-note {
  font-size: var(--text-sm);
  color: rgba(245, 242, 255, 0.6);
  line-height: 1.4;
}

/* Right-column download card */
.contact-download {
  border: 1px solid rgba(168, 111, 223, 0.22);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(168, 111, 223, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  padding: var(--space-12) var(--space-8);
}

.contact-download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.contact-download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Contact section reuses .store-badge and .store-badge--google
   (defined above) — same Google Play padding fix applies here. */

.contact-download-note {
  font-size: var(--text-sm);
  color: rgba(245, 242, 255, 0.7);
  margin: 0;
}
.contact-download-note strong {
  color: var(--color-purple);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Mobile: allow email to wrap between local-part and domain if it truly must,
   but keep it visually intact by shrinking font instead */
@media (max-width: 480px) {
  .contact-value {
    font-size: var(--text-base);
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
